UART
Abstract
This chapter describes the PIC32’s universal asynchronous receiver and transmitter (UART) communication modules. Topics include using the special function registers (SFRs) to set the baud rate, data length, stop bits, parity, and hardware flow control. Sample code in this chapter includes interrupt-based communication with a host computer; streaming data from the PIC32 to the host computer using a circular buffer; sending data for plotting by MATLAB or Python, allowing the PIC32 to act as a data acquisition device while MATLAB or Python is used for signal processing; and connecting to the XBee wireless radio to create a wireless link.
Keywords
Universal asynchronous receiver and transmitter (UART)
Baud
Stop bits
Get Embedded Computing and Mechatronics with the PIC32 Microcontroller now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.