Line 1: Line 1:
 
[[Category:PIC Tutorials]]
 
[[Category:PIC Tutorials]]
[http://exploreembedded.com/wiki/images/9/96/Schematic_PIC_Serial_Port_Programming.pdf '''Schematic''']
+
In this tutorial we are going to discuss how to use the inbuilt PIC16f877A ADC.<br>
 +
We will be reading the ADC values from chanel Zero and transmitted on UART at 9600 baudrate.
 +
<br><br>
  
[[File:Schematic PIC  Serial Port Programming.JPG|680px]]
+
 
<span style="color:red">'''Code and Explanation will be updated soon..'''</span>
+
 
 +
=PIC16F877A ADC pins=
 +
PIC16F877A has inbuilt 8channel 10-bit ADC. Below tables shows the ADC pin mapping.<br>
 +
{| class="table table-striped table-hover table-condensed table-bordered"
 +
|-class="info"
 +
!Adc Channel || Pic16f877a Pin || Pin Function
 +
|-
 +
|0|| PA.0 || AN0
 +
|-       
 +
|1|| PA.1 || AN1
 +
|-       
 +
|2|| PA.2 || AN2/VREF-
 +
|-       
 +
|3|| PA.3 || AN3/VREF+
 +
|-           
 +
|4|| PA.5 || AN4
 +
|-       
 +
|2|| PE.0 || AN5
 +
|-       
 +
|3|| PE.1 || AN6
 +
|-         
 +
|4|| PE.2 || AN7
 +
|}<br><br>

Revision as of 13:48, 5 May 2016

In this tutorial we are going to discuss how to use the inbuilt PIC16f877A ADC.
We will be reading the ADC values from chanel Zero and transmitted on UART at 9600 baudrate.


PIC16F877A ADC pins

PIC16F877A has inbuilt 8channel 10-bit ADC. Below tables shows the ADC pin mapping.

Adc Channel Pic16f877a Pin Pin Function
0 PA.0 AN0
1 PA.1 AN1
2 PA.2 AN2/VREF-
3 PA.3 AN3/VREF+
4 PA.5 AN4
2 PE.0 AN5
3 PE.1 AN6
4 PE.2 AN7