Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

PIC16F1789 adc reading accuracy problem

$
0
0
i am using PIC16F1789 (internal osc 32MHz) controller to measure voltage using using 12bit ADC.
i generated circuit to measure 1860 mV but PIC do not giving accurate adc count value.
it is giving me adc count 1800 =1800mv because using 4.096V as reference voltage.
how can i get accurate adc count 1860 for 1860mv ?

Following code of adc initialization.
Code (C):
  1. void adc_init(){
  2.         FVRCON=0x83;//Fixed Reference voltage 4.046
  3.         ADCON1=0xE3;//Selection of fixed ref 4.096V as...
PIC16F1789 adc reading accuracy problem

Viewing all articles
Browse latest Browse all 4923

Trending Articles