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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/06/00 18:38
Read: times


 
#3599 - RE: serial Transmitting and reciving
I was browsing and noticed the following code in your last reply:
READ: JNB RI,$
CLR RI
MOV A,SBUF
RET

This will not work well, especially if receiving multiple data.

You should clear RI after retriving the first data byte...
READ: JNB RI,$
MOV A,SBUF
CLR RI
RET

I found this out the hard way once!!
Best Regards



List of 4 messages in thread
TopicAuthorDate
serial Transmitting and reciving            01/01/70 00:00      
RE: serial Transmitting and reciving            01/01/70 00:00      
RE: serial Transmitting and reciving            01/01/70 00:00      
RE: serial Transmitting and reciving            01/01/70 00:00      

Back to Subject List