??? 10/21/09 14:13 Read: times Msg Score: -4 -4 Answer is Wrong |
#169941 - Return from interrupt Responding to: ???'s previous message |
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 |