Abstract

This chapter describes different aspects of RS-232 serial interface. RS-232 applies to the lowest, or physical layer, where it defines voltage and signal levels, pin wiring, connector standardization, and flow control. The 2840 Board implements five lines of the full 9-pin RS-232 standard. MBasic gives two alternative means of sending and receiving serial communications. The means include a purely software-implemented method and a hardware method. MBasic's procedures SerIn and SerOut are software-based serial input and output procedures and may be used with any PIC supported by MBasic. MBasic's procedures HSerIn and HSerOut are hardware-based serial input and output procedures and may be used only with PICs constructed with a universal synchronous/asynchronous receiver/transmitter (USART). HSerStat is a very powerful addition to MBasic's suite of serial tools and allows one to write programs that execute other code and periodically check to see if any serial data has been received. This gives us a quasimultitasking mode, where the PIC's serial data input functions run seemingly independently of the rest of the code.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.