??? 10/21/09 17:08 Read: times |
#169946 - Of course not Responding to: ???'s previous message |
Garry Motter said:
Your biggest problem here is that when you return from the interrupt, you have nowhere to go. Recall that your code will jump to the next instruction after the one that was interrupted. So instead of:
MOV DPTR,#0000 MOV SBUF,DPH JMP $you would do better with: MOV DPTR,#0000 ;initialize data MOV SBUF,DPH ;transmit hi byte CHURN: JMP $ ;wait for tx interrupt JMP CHURN ;upon return, go wait for next interrupt That would mean that if any interrupt came during any normal JMP instruction the jump would not be made and the following code executed instead. |