Line 19: Line 19:
  
 
=Code=
 
=Code=
Below is the sample code to send a string a 9600 baud rate.<br>
+
Below is the sample code to transmit a string at 9600 baud rate.<br>
 
Refer the uart.c/uart.h files for more functions.<br>
 
Refer the uart.c/uart.h files for more functions.<br>
 
<html>
 
<html>

Latest revision as of 19:01, 2 May 2016

In this tutorial we will be doing the serial communication on PIC16F877A Starter board.
PIC starter board has an on board Usb-to-Serial converter and you do not need any other hardware other than this board.
0 UART main.gif


UART Pins

Below table shows the PIC16F877A Starter board UART pins.

UART Pin Controller Pin
RX PORTC.7
TX PORTC.6



Code

Below is the sample code to transmit a string at 9600 baud rate.
Refer the uart.c/uart.h files for more functions.
Pic16f877a uart.PNG