Tool/software:
Hello,
I have a custom board of AM263P4 and I am working on I/O modules. I have more than 40 ADC channel in my board and they are reading one-by-one with mux. I used the "ADC SOC RTI" example in SDK but I changed a few thing to adapt multi channel ADC.
My question is:
I am reading ADC digital values from ADC_RESULTS_ADCRESULT0 register with "ADC_readResult" function. How should I calculate analog voltage from digital value?
I found this equation in reference manual but this is not giving me correct analog value.
Thank you for help.
Best Regards,
BK
In my board,
VREFHI = 1.8V
VREFLO = 0V
Some test results:
Voltage Value | Raw Value(Register) |
2697mV | 3176 |
396mV | 628 |
2121mV | 2528 |
312mV | 535 |