My controller is running at 8MHz internal oscillator. Ok, so now I’m going to set my UART (asynchronous and high speed – BRGH = 1) to 9600bauds. Synchronous = Either TX or RX at a time – half duplex What’s the difference between Asynchronous and Synchronous?Īsynchronous = Transmit (TX) and Receive (RX) can happen at same time – full duplex So first we need to set the speed/baud rate and here is the formula Read this document for complete PIC (mid range) USART understanding: In order to know what’s going on inside the controller and how your firmware is behaving, serial port serves as a window to look into. Serial communication is one of the best debug tool ever when it comes to embedded systems. I was about to start Analog to Digital Converters (ADC), but then how am I going to see the output? We need some type of debug terminal and so decided to start with serial port or say Universal Synchronous/Asynchronous Receiver/Transmitter.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |