Using the EUSART

Posted on Sunday, April 3rd, 2011 in app notes, data transfer, demonstrations, PIC by the machinegeek

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 on Sunday, April 3rd, 2011 at 4:00 pm and is filed under app notes, data transfer, demonstrations, PIC. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

One Response to “Using the EUSART”

  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 Reply

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

Recent Comments

  • jmarc78: Hello
  • JB: Hey.
  • Andrew: Me!!!
  • vmorgan: 1774 — the Laws of Cricket were revised by a committee meeting at the Star and Garter on Pall Mall in London
  • Crawford: Holy biscuits!