Hello NXP team,
How to read MCU internal temperature sensor value through ADC.
How to configure this pin in the configuration.
which pin need to configured for this.
After this its Tca1 its going to the vector catch.
its going to the trap_bus_isr and went to vector catch.
Can you tell me the flow or procedure how to access the temperature value (ETS) from MCU chip.
please take a look at this post
I am not familiar with EB, if you have questions about EB, please remember to create a new case and add keywords such as EB or MCAL.
Here are the test results I did based on the demo in the link
What you need to pay attention to is the reference voltage of your ADC module
The Vref I set here is 3.3V, which is 53
Hi@Senlent
I'm also using the same 3.3 Vref
But for me Tempsense variable not updating correctly but in data variable its updating.
In Tempsense variable always giving a value as (Tca0).
I posted a new question with a subject name as EB_MCAL.
And after getting the tempsense value how to covert that into degrees.
thank you for understanding.
As shown in the test result I provided above, the ADC sampling value is 1402, the converted result is 2947, and the actual temperature is 29.47℃。
Hi@Senlent
I too geeting the tempesense value.
How you are converting that into temperature.(your getting 2947 in millivolt its 2.3748mV how you calculated into temperature 29.47degree C.)
In reference manual not specified the formula.
I know the formula like (mV - 0.5)*100 for temperature calculation.
Is there any formula is there to convert?
By using the formula the junction temperature calculated like this mentioned.
You can check the routine provided by me, you will find that the function of calculating temperature has been given in the driver provided by RTD
This function is consistent with the calculation formula given in the data sheet
I missed your reply because I didn't read the mail, I'm sorry for that! Now I've solved this problem, but a new problem has arisen about CAN communication. How do I send you an email?
Hi@Senlent
I used that Api().
I can use one Api among these 3 Api's, I can get the temperature correct.
For the first one we need ADC sampling data, For the second api no need of any data directly we can call the api and get the temp through the sensor correct?
Third one also we can able to use?
Can you tell me the flow of Api which one i need to call first.
Your understanding is correct, but you only need to use one of them.
Also you don't have to call Adc_Sar_Ip_TempSenseEnable/Disable every time.