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 08:13
Read: times


 
#66098 - Serial IO Control
Responding to: ???'s previous message
Ahmed Barakat said:
want to know how would the MC know that the PC send or recieve from it while there's no hand shaking

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

Your serial IO can be interrupt-driven or polled:

interrupt-driven serial IO uses the UART Interrupt to handle sending & receiving characters;

polled serial IO continuously examines (or "polls") the flags.

Ahmed Barakat said:
i'll need hand shaking so should i use other signals such as CST,RTS,DTR,DSR??

These are to do with flow control - they show when characters may be received or transmitted; they do not indicate when a character actually has been received or transmitted!

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