11-16-2019, 10:57 AM
I have been trying, unsuccessfully, to read the temperature from the TS-ADC controller. I have configured the various TSADC registers and. as far as I can tell, the relevant clocks are all enabled. Still, any attempt to read TSADC_DATA0 results in 0. Also, if I understand correctly, the value of TSADC_USER_CON shows that the analog-to-digital conversion never finishes.
Here are the values of the various registers that I believe are related to the TSADC:
Am I missing anything?
Thanks,
--Elad
Here are the values of the various registers that I believe are related to the TSADC:
Code:
CRU_CLKSEL_CON27=1f (DIV=1f SEL=0)
CRU_CLKGATE_CON9=0 (TSADC=0)
CRU_CLKGATE_CON22=0 (PCLK_TSADC=0)
CRU_CLKSEL_CON25=187
CRU_CLKGATE_CON8=0 (PERILP1=0)
GRF_SARADC_TESTBIT=4
GRF_TSADC_TESTBIT_L=80
GRF_TSADC_TESTBIT_H=84
TSADC_USER_CON=1200
TSADC_AUTO_CON=10133
TSADC_AUTO_PERIOD=753
TSADC_AUTO_PERIOD_HT=753
TSADC_HIGHT_INT_DEBOUNCE=4
TSADC_HIGHT_TSHUT_DEBOUNCE=4
Am I missing anything?
Thanks,
--Elad