Using the EUSART

The term UART (Universal Asynchronous Receiver Transmitter) is the technical term for the good old serial port found on most MCUs. The term USART similarly refers to a serial port capable of handling both synchronous and asynchronous operation. Over the past few years, Microchip has been integrating an updated serial port into many of their MCUs known as the Enhanced Universal Synchronous Asynchronous Receiver Transmitter or EUSART.

The main feature of EUSART is the ability to auto-detect the baud rate of received signals. An example of of a chip featuring EUSART is the PIC16F688, which is the subject of a Microchip App Note covering the use of EUSART.

A practical illustration of the EUSART in action is this sample project from ENMCU using the PIC18F2455 to detect the baud rate of a serial character received and display the speed on an attached LCD.

This entry was posted in app notes, data transfer, demonstrations, PIC and tagged , , .

Comments

  1. error404 says:

    Nifty that they’ve done it all for you in hardware, but it’s really not all that tricky to do in software, at least on AVR.

    Use a pin change interrupt on the RX pin to interrupt on all edges. Time a few periods worth, keep the shortest and you’re golden. Simple and works well as long as there are some 1-bit periods in the input characters.

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.