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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/03/04 18:07
Read: times


 
#61858 - RE: Sbuf value \\
Responding to: ???'s previous message
After serial interrupt: "mov 20h,sbuf", I need to receive new data from the serial port.

Well then you need to properly handle the serial subsystem. A review of 8051 the architecture shows you that a prerequisite for serial reception and transfer into SBUF, is that the RI bit be clear. The 8051 executes your ISR in response to RI becoming set, then your code must clear RI to enable further reception.

Can I read the new data from the SBUF before I RETI?

Yes, assuming that after clearing RI, it becomes set again, indicating that new data is available in SBUF.


List of 12 messages in thread
TopicAuthorDate
Sbuf value "refresh"?            01/01/70 00:00      
   RE: Sbuf value "refresh"?            01/01/70 00:00      
   RE: Sbuf value \\            01/01/70 00:00      
      RE: Sbuf value            01/01/70 00:00      
         RE: Sbuf value            01/01/70 00:00      
   RE: Sbuf value \\\\\\\\            01/01/70 00:00      
      ***Details***            01/01/70 00:00      
         RE: ***Details***            01/01/70 00:00      
   RE: Sbuf value "refresh"?            01/01/70 00:00      
      RE: Sbuf value \            01/01/70 00:00      
         RE: Sbuf value \            01/01/70 00:00      
         Silly problem solved...            01/01/70 00:00      

Back to Subject List