Page 1 of 1
Tsens ulp instruction
Posted: Sun Dec 06, 2020 6:04 pm
by adesandr
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.
Re: Tsens ulp instruction
Posted: Mon Dec 07, 2020 1:49 am
by ESP_Sprite
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.
Re: Tsens ulp instruction
Posted: Thu Apr 11, 2024 5:23 pm
by Sheepling
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)".
Re: Tsens ulp instruction
Posted: Fri Apr 12, 2024 2:28 am
by ESP_Sprite
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.
Re: Tsens ulp instruction
Posted: Fri Apr 12, 2024 10:18 pm
by Sheepling
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