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

  • KH: TPS62200 will get him to under 15uA, a bit better than the 20-30uA he mentioned. I would try the same thing. Switch some resistors in...
  • KH: Yeah, it's an end-user thing. Very few people would spend hundreds of hours on this kind of project and sustain it. It's more or less...
  • Max: Not quite a dinosaur if you've seen Big Hero 6 though... wait. You've watched it with your kids, didn't you? That's cheating...! ;) One of...
  • Edward Mallon: A visiting researcher dropped by our humble basement workshop with questions about the physical skill level students would need if they added one of our...
  • KH: And that looks really expensive... Only browsed the vid though, I'm an dinosaur so I had the sound off too. Nice of him to open-source...