Hello NXP Team,
I am working on the S32K312 internal temperature sensor and need help with incorrect temperature readings.
I have reviewed similar threads and confirmed the basic configurations, but the ADC results do not reflect the ambient temperature.
What I have done so far:
(2)ADC configuration
ADC instance: ADC0
Channel: Temperature Sensor (TEMPSENSE)
Trigger mode: Software trigger
(3)Measurement routine
Periodically start ADC conversion
Wait for conversion complete flag
Read ADC data register
(4)Result
However, the converted temperature value does not match the actual ambient temperature.
Hi@SunLucas
The temperature channel requires a relatively long sampling time, with a minimum of 1.2 microseconds.
Therefore, please check the sampling time settings.
I further switched the ADC voltage reference to 0x50, but the issue persists:
The temperature readings deviate significantly from the ambient temperature (28°C).
Temperature data retrieved via the API exhibits severe fluctuations, as shown in the attached plot.
Hi@SunLucas
Then you should set TempSense voltage supply to: 5V * 16 = 0x50
The TempSense voltage supply is configured as 0x58, hardware's VDD_HV_A supply voltage is 5V
Hi@SunLucas
Please check the "TempSense Voltage Supply" and tell me what your current hardware's VDD_HV_A supply voltage is.