Tool/software:
Hello,
I want to create a basic command for reading ADC values in uboot.
I refer to this question https://e2e.ti.com/support/processors-group/processors/f/processors-forum/207404/code-to-read-voltage-of-battery-with-adc-of-am335x
This instuction casues a reset.
while((__raw_readl(TSC_ADC_SS_CTRL) & ADC_SS_CTRL_ENABLE) !=0);
these are the values used
TSC_ADC_SS_CTRL 0x40200040 ADC_SS_CTRL_ENABLE 0x00000001
My questions are:
1- is there a specific reasons why this cause a reset ?
2- Is there a programming guide to follow to help implmenting a basic driver for reading ADC channels
Best regards,
Achraf