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.