This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM6548: How to get ADC temperature value?

Part Number: AM6548

Hi Ti,

We are using Linux RT SDK 07.01.00.18 on our customized board.

From TRM, there are 8 temperature sensors register can read.

I tried to get ADC value from VTM_TMPSENS0_STAT for example. So I tired to check the value of VTM_TMPSENS0_CTRL.

root@delta-am65x:~# devmem2 0x42050080 w 0xE0
/dev/mem opened.
Memory mapped at address 0x7f9eca6000.
Read at address 0x42050080 (0x7f9eca6080): 0x000000E0
Write at address 0x42050080 (0x7f9eca6080): 0x000000E0, readback 0x000000E0

Then I tried to get the value from VTM_TMPSENS0_STAT register.

root@delta-am65x:~# devmem2 0x42050088
/dev/mem opened.
Memory mapped at address 0x7f90ea4000.
Read at address 0x42050088 (0x7f90ea4088): 0x00120F1F

And we got the ADC value is 799.

In this way, we can mapping this to temperature in TRM.

I want to check if this way is correct or not.

Thanks.

Eric