Reading an external voltage using the SAR ADC

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
auwi_3091191
Level 1
Level 1
5 questions asked 5 replies posted 10 sign-ins

I am trying to read the voltage of a battery using the SAR ADC but I am not getting the correct values. The ADC outputs 0x7FF0 no matter what the voltage is I am trying to measure. I am using a voltage divider with 357K ohm resistors and an input voltage of 3.8V though this can go as low as 2.5V. The ADC is using an internal Vref of 1.024V. Any help would be appreciated.

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

If the Vref is 1.024V the input voltage should not exceed that value,

so you need to divide the voltage more ... since you wrote the voltage is 3.8V,

I would try 1/4 dividing.

Meantime, you may not need OpAmp in front of ADC.

moto

View solution in original post

0 Likes
1 Reply