Reading the CPU temperature
#1
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:


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


Messages In This Thread
Reading the CPU temperature - by elahav - 11-16-2019, 10:57 AM
RE: Reading the CPU temperature - by xalius - 11-16-2019, 12:06 PM
RE: Reading the CPU temperature - by elahav - 11-16-2019, 02:37 PM
RE: Reading the CPU temperature - by xalius - 11-16-2019, 05:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cases and temperature davidm 3 5,756 04-29-2019, 02:58 AM
Last Post: evilbunny

Forum Jump:


Users browsing this thread: 1 Guest(s)