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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/06/04 23:57
Read: times


 
#66149 - RE: Serial IO Control
Responding to: ???'s previous message
Ahmed Barakat said:
i wanted to writ any thing to the MC through the serial connection how it will understand that i write or read


As I said before:

"Look up the operation of the UART Interrupt, and the RI and TI flags.
See "the bible" in the 'Links' section."


Have you done that?

These are the only means by which the processor knows that it has sent or received a character; there is no other way to tell.
The fact that you are using a "null-modem"[1] connection is totally irrelevant to this problem!
Adding modem control lines (RTS, DTS, etc) will make no difference whatsoever.

For an example of interrupt-driven serial IO, see:
http://www.keil.com/download/docs/intsio.zip.asp


[1] Strictly, a "Null Modem" cable connects all of the modem control signals - what you're using is a simple 3-wire "crossover" lead, that just connects the 8051's transmitter to the PC's receiver, and vice-versa

List of 14 messages in thread
TopicAuthorDate
AT89C51Null modem connection            01/01/70 00:00      
   Serial IO Control            01/01/70 00:00      
      RE: Serial IO Control: Barakat            01/01/70 00:00      
      RE: Serial IO Control - Andy            01/01/70 00:00      
         RE: Serial IO Control - Andy            01/01/70 00:00      
      RE: Serial IO Control            01/01/70 00:00      
         RE: Serial IO Control            01/01/70 00:00      
            RE: Serial IO Control            01/01/70 00:00      
               RE: Serial IO Control            01/01/70 00:00      
               RE: Serial IO Control            01/01/70 00:00      
               Next step            01/01/70 00:00      
                  RE: Next step            01/01/70 00:00      
         Serial Interrupt will do it for you            01/01/70 00:00      
   RE: AT89C51Null modem connection            01/01/70 00:00      

Back to Subject List