| ??? 04/12/07 22:02 Read: times |
#137086 - work needed. Responding to: ???'s previous message |
ORG 00H JMP MAIN ORG 23H JMP SERIAL_ISR MAIN: MOV SCON, #50H ; 50H=01010000B MOV TMOD, #20H ; MOV TH1, #0FDH ; MOV IE, #10010000B SETB TR1 CLR RI SERIAL_ISR: JNB RI, SERIAL_ISR CLR RI MOV R2, SBUF CALL INIT_LCD CALL DATA_DISPLAY Why do you jump to MAIN on reset and then after executing main, run your ISR? looking further into your code, you then run INIT_LCD, and issue a "RET" that gets you nowhere... as you didn't "CALL" your INIT_LCD... I have the impression it's cut n paste work with some modification, but you need ta actually understand what you are doing. Try to run your program manually, using a list of the instruction set, and see what happens if you run your code... Regards Patrick |
| Topic | Author | Date |
| RxD to LCD problems | 01/01/70 00:00 | |
| Serial ISR | 01/01/70 00:00 | |
| work needed. | 01/01/70 00:00 | |
| you need to control flow | 01/01/70 00:00 | |
| confused | 01/01/70 00:00 | |
| this is what I mean | 01/01/70 00:00 | |
| OK | 01/01/70 00:00 | |
| yes | 01/01/70 00:00 | |
| Non-useful Serial ISR | 01/01/70 00:00 | |
| AND it's stuck | 01/01/70 00:00 | |
| thanks | 01/01/70 00:00 | |
| I was going for optimization. | 01/01/70 00:00 | |
| It's functioning | 01/01/70 00:00 | |
| now stay consistent | 01/01/70 00:00 | |
| Terminating code? | 01/01/70 00:00 | |
| . | 01/01/70 00:00 | |
| correct terminology | 01/01/70 00:00 | |
| Missing the point | 01/01/70 00:00 | |
| i get it now | 01/01/70 00:00 | |
| Most, but not all | 01/01/70 00:00 | |
| why on earth | 01/01/70 00:00 | |
| if it\'s almost correct, it\'s still wrong :-) | 01/01/70 00:00 | |
| ok | 01/01/70 00:00 | |
| Not R6 and R7 | 01/01/70 00:00 | |
| well it happend again | 01/01/70 00:00 | |
| Q.E.D. | 01/01/70 00:00 | |
| One further comment is needed | 01/01/70 00:00 | |
| Hey | 01/01/70 00:00 | |
| Dangerous recommendation | 01/01/70 00:00 | |
| good point | 01/01/70 00:00 | |
they all do | 01/01/70 00:00 | |
| it 'trust' the same as 'experiment'? | 01/01/70 00:00 | |
| more issues | 01/01/70 00:00 | |
| Joe, please read this | 01/01/70 00:00 |



