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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/24/05 14:44
Read: times


 
#100002 - comments
Responding to: ???'s previous message
SER_INT
	clr	ET0 ;comment 3
	clr	RI
	mov	A,	SBUF
	mov	R1,	A ;comment 1
	jnb	RI,	$ ;comment 2
	mov	A,	SBUF
	CLR	RI
	mov	R3,	A ;comment 1
	setb	ET0
	ret
comment1: it is a bad idea to transfer characters between an ISR and the main code in registers. Invariably, some day, something will be added that will make it blow up
comment 2: NEVER "hang" in an interrupt
comment 3: a) WHY b) clr/setb - what if it was disabled

how about
mov a,sbuf
mov @Ri,A
inc Ri

Erik


List of 2 messages in thread
TopicAuthorDate
2 characters received in interrupt            01/01/70 00:00      
   comments            01/01/70 00:00      

Back to Subject List