Line 1: Line 1:
 
[[Category:PIC Tutorials]]
 
[[Category:PIC Tutorials]]
 
In this tutorial we are going to discuss the serial/UART communication using PIC16F877A.<br>
 
In this tutorial we are going to discuss the serial/UART communication using PIC16F877A.<br>
PIC16F877A comes with inbuilt USART which can be used for Synchronous/Asynchronous communication. We will be discussing only the UART.<br>
+
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.<br><br>
After understating the basics of PIC16F877A UART module, We will discuss how to use the ExploreEmbedded libraries to communicate with any of the UART devices.<br><br><br><br>
+
 
+
  
 
[[File:0 UART main.gif]]
 
[[File:0 UART main.gif]]
 +
 +
 +
=UART Registers=
 +
The below table shows the registers associated with PIC16F877A UART.<br>
 +
{| class="table table-striped table-hover table-condensed table-bordered"
 +
|-class="info"
 +
!Register || Description
 +
|-
 +
|TXSTA|| TRANSMIT STATUS AND CONTROL REGISTER
 +
|-
 +
|RCSTA|| RECEIVE STATUS AND CONTROL REGISTER
 +
|-
 +
|SPBRG|| USART Baud Rate Generator
 +
|}
 +
<br><br>

Revision as of 10:14, 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.

0 UART main.gif


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