??? 11/29/04 00:25 Read: times |
#82136 - CLR TR0 is in t0 interrupt subroutine Responding to: ???'s previous message |
CLR TR0 is in t0 interrupt subroutine,
the program doesn't work properly means that: suppose while DATA0=0 main program is carrying out other code.till the other code is complete,DATA0 has became 1.so a 0-bit has been lost. the even-odd check of the cardno must haven't been passed,and it seems MCU can't receive cardno from ID modual.the only method is receive every bit in the extral interrupt routine. (it isn't correct only make a flag 1 to indicate the start receiving of the cardno.because the main routine is carrying out other code and not reach the code where the flag is enqiried although the flag is 1) |
Topic | Author | Date |
about wiegand26 receive | 01/01/70 00:00 | |
no need to use timer here | 01/01/70 00:00 | |
the program i listed is a subroutine. | 01/01/70 00:00 | |
Feng Shui | 01/01/70 00:00 | |
no time to look at | 01/01/70 00:00 | |
now i past the progarm with comment. | 01/01/70 00:00 | |
minor suggestion | 01/01/70 00:00 | |
CLR TR0 is in t0 interrupt subroutine | 01/01/70 00:00 | |
The Odd Bit | 01/01/70 00:00 | |
wait for the odd bit! | 01/01/70 00:00 | |
Sorry, my fault![]() | 01/01/70 00:00 |