Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/11/02 10:21
Read: times


 
#19653 - Understanding Serial Interrupt code
Hi,

I was hoping someone could give me a hand to understand what the following section of code does, this section is only called if RI was set (if TI was set it clears then RETI's).
I understand most of it, it's just the parts indicated by *'s that I'm not sure about:

L0032 PUSH ACC
PUSH PSW
MOV PSW,#018H
MOV R1,SBUF
CLR RI
MOV A,@R1
JNB RB8,L0052
MOV R0,#00FH
MOVX A,@R0
ADD A,#0FCH
MOVX A,@R1
JC L0052
CLR EA ;*
INC P2 ;*
MOVX A,@R1 ;*
DEC P2 ;*
SETB EA ;*
;
L0052 MOV SBUF,A
POP PSW
POP ACC
;
L0058 RETI

Cheers,

George

List of 6 messages in thread
TopicAuthorDate
Understanding Serial Interrupt code            01/01/70 00:00      
RE: Understanding Serial Interrupt code            01/01/70 00:00      
RE: Understanding Serial Interrupt code            01/01/70 00:00      
RE: Understanding Serial Interrupt code            01/01/70 00:00      
RE: Understanding Serial Interrupt code            01/01/70 00:00      
email addy            01/01/70 00:00      

Back to Subject List