Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/AM3358: Reading half of ADC value during Uboot stage.

$
0
0

Part Number:AM3358

Tool/software: Linux

Hi,

I am writing some code for the Uboot to check battery voltage when the processor power up. 

For some reason my ADC value is roughly half of what it should be. instead or 1.6V i get 944mV. I read 0x00000864 from the FIFO

I have changed the Number of Average, FIFO, Internal VREF, and Clock Speed. And still no luck I get the same 944mV value.

After the Kernel boots and do a read using in_voltage0_raw() I get the right voltage from the ADC 1.6V.

I changed the voltage going into the ADC and across the 0-1.8V range. I am reading half the voltage.

Is there a instruction or flag I am missing to read the ADC during Uboot.


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>