Pages

About Lan Ahmad

My photo
Pendang, Kedah, Malaysia
It's all about my real life!!!

UART Modul

UART stands for Universal Asynchronous Receiver Transmitter. Address involved in the UART Module is TXSTA, RCSTA and SPBRG.





UART signals to send and receive data over the three wires TX, RX and GND. UART signals in Synchronous or Asynchronous type. Synchronous transmission requires the sender and receiver share the same clock signal. Asynchronous transmission allows the data is sent without a clock signal sent but the sender and receiver must operate at the same timing parameters known Baud Rate.


Baud Rate Formula



Setting Baud Rate BRGH will determine Formula. For example, using a 20MHz crystal, Low Speed ​​Asynchronous Baud Rate can be produced from 1.221 Hz-312, 500Hz, High Speed ​​Asynchronous Baud Rate can be produced from 4.883 Hz-1, 250kHz and can produce Synchronous Baud Rate from 19.53kHz-5MHz.