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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/04/02 00:00
Read: times


 
#33711 - serial int processing
Can't work out if I'm being dumb here, but I'll take a chance on it.

a fairly normal serial int routine ...

if (TI){
SBUF = *NextTxChar;
}

if (RI){
LastRxChar = SBUF;
}

Looks OK? But if TI and RI should happen to happen on the same m/c cycle (not likely, but possible), the tx part will trash the incoming char.

So the order should be reversed. Am I right?

(Sometimes engineering feels like a course in advanced pessimism.)

Thanks

Daniel

List of 12 messages in thread
TopicAuthorDate
serial int processing            01/01/70 00:00      
RE: serial int processing            01/01/70 00:00      
RE: serial int processing            01/01/70 00:00      
RE: serial int processing            01/01/70 00:00      
RE: serial int processing            01/01/70 00:00      
RE: serial int processing            01/01/70 00:00      
RE: serial int processing            01/01/70 00:00      
RE: serial int processing            01/01/70 00:00      
RE: serial int processing            01/01/70 00:00      
back to serial int processing            01/01/70 00:00      
RE: back to serial int processing            01/01/70 00:00      
RE: back to serial int processing            01/01/70 00:00      

Back to Subject List