O'Reilly logo

Embedded C Programming by Mark Siegesmund

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 22

External Serial Busses

Abstract

This chapter covers RS-232-like serial buses typically used for communication external to a product. The electrical characteristics, byte formats, flow control, and higher level protocol issues are all covered in this chapter. This chapter includes detailed diagrams, schematics, and specific C functions needed for this type of communication. The popular NEMA GPS protocol is used as an example. Software techniques, all in C, are explained for protocols, flow control, UART control, text I/O, and interrupts.

Variations for RS-422 and RS-485 are also a part of this chapter.

Examples and exercises are for the popular PIC® microcontroller manufactured by Microchip.

Keywords

Asynchronous

RS-232

RS-422 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required