Tsens ulp instruction

adesandr
Posts: 22
Joined: Sat May 05, 2018 10:51 am

Tsens ulp instruction

Postby adesandr » Sun Dec 06, 2020 6:04 pm

Hello,

I'm trying to read the internal temperature sensor using a simple ulp code.
I use Tsens instruction to read the temperature, and the return of the read is about 117.
Does it mean that is 117°C, or a conversion need to be done ?

I red that the temperature range of the internal temperature sensor is -40°C to +125°C, so I a value of 117 seems very curious.

Thank you in advance for your help.

Regards.

ESP_Sprite
Posts: 9582
Joined: Thu Nov 26, 2015 4:08 am

Re: Tsens ulp instruction

Postby ESP_Sprite » Mon Dec 07, 2020 1:49 am

It would need scaling, but note that as the temperature sensor in the ESP32 is unreliable at best and misleading at worst, we don't really support it anymore.

Sheepling
Posts: 12
Joined: Sun Feb 11, 2024 1:48 pm

Re: Tsens ulp instruction

Postby Sheepling » Thu Apr 11, 2024 5:23 pm

I've tried using this instruction as I was under the impression that it still worked, as per the latest datasheet:

ESP32-S3
https://www.espressif.com/sites/default ... ual_en.pdf on page 317
and
ESP32-S2
https://www.espressif.com/sites/default ... ual_en.pdf on page 41

Both documented the instruction. However,
https://github.com/espressif/esp-idf/bl ... 32s2/ulp.h
The github for ESP-IDF ULP components says otherwise, indicating that it is "(not implemented yet)".

ESP_Sprite
Posts: 9582
Joined: Thu Nov 26, 2015 4:08 am

Re: Tsens ulp instruction

Postby ESP_Sprite » Fri Apr 12, 2024 2:28 am

You're replying to a 4-year old thread; I was talking about the 'original' ESP32 (no -S or -C suffix). I think it's indeed supported again on later chips. I guess we didn't bother to implement it in the ULP toolchain yet, though.

Sheepling
Posts: 12
Joined: Sun Feb 11, 2024 1:48 pm

Re: Tsens ulp instruction

Postby Sheepling » Fri Apr 12, 2024 10:18 pm

ESP_Sprite wrote:
Fri Apr 12, 2024 2:28 am
You're replying to a 4-year old thread; I was talking about the 'original' ESP32 (no -S or -C suffix). I think it's indeed supported again on later chips. I guess we didn't bother to implement it in the ULP toolchain yet, though.
Oof, my mistake :(
I'm assuming there's no other way to read the temperature sensor in ULP-FSM then

Who is online

Users browsing this forum: No registered users and 266 guests