??? 11/25/04 11:59 Read: times |
#81917 - no need to use timer here Responding to: ???'s previous message |
Your program has a lot of logical mistakes. For instance,
1) label ERR is subroutine but you call it by JB time_out_flag,ERR instructions several times. 2) There is no JMP wiegand_rxstart to go to the beginning of the program. My advice is: put this program into a bin and start to write the new one. Just connect data0 and data1 lines to the external interrupt pins of MC and shift 0s and 1s into 12-bit SW register, that's all. And one more thing. If you want to get qualified help, comment the lines of your program. |
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 |