Difference between revisions of "Serial Communication with PIC16F877A"
Line 12: | Line 12: | ||
!Register || Description | !Register || Description | ||
|- | |- | ||
− | |TXSTA|| | + | |TXSTA|| Transmit Status And Control Register |
|- | |- | ||
− | |RCSTA|| | + | |RCSTA|| Receive Status And Control Register |
|- | |- | ||
|SPBRG|| USART Baud Rate Generator | |SPBRG|| USART Baud Rate Generator | ||
|} | |} | ||
<br><br> | <br><br> |
Revision as of 10:23, 5 May 2016
In this tutorial we are going to discuss the serial/UART communication using PIC16F877A.
PIC16F877A comes with inbuilt USART which can be used for Synchronous/Asynchronous communication. We will be discussing only the UART. After understating the basics of PIC16F877A UART module, We will see how to use the ExploreEmbedded libraries to communicate with any of the UART devices.
UART Registers
The below table shows the registers associated with PIC16F877A UART.
Register | Description |
---|---|
TXSTA | Transmit Status And Control Register |
RCSTA | Receive Status And Control Register |
SPBRG | USART Baud Rate Generator |