Hi Mahtab,
Unfortunately, currently, I don’t have here VLG-S12ZVC board for testing.
Some basic S12Z ADC example code (no PE) could be downloaded here:
https://community.nxp.com/docs/DOC-332384
In fact, the external settings are not irrelevant. You configured ADC to use VRH_0/VRL_0 signals as the reference. According to RM: ”ADC reference Voltage signal VRH_1 is mapped to VDDA and VRH_0 is mapped to PAD3. VRL_1 is mapped to VSSA and VRL_0 is mapped to VSSA.”
So, if you didn’t connect any external reference voltage to PAD3 pin, please use VRH_1/VRL_1 signals as the reference.
The Temperature Sensor Slope should be around 5.25mV/°C. See Table E-1. Voltage Regulator Electrical Characteristics (Junction Temperature From –40°C To +175°C) in RM.
In fact, there is also second temperature sensor directly as part of ADC module.
Some more details about this temperature sensor you could get from our application note AN3624 S12X Temperature Sensor
http://www.nxp.com/files/microcontrollers/doc/app_note/AN3624.pdf
The calibration methods are nicely described in AN3031 Temperature Sensor for the HCS08 Microcontroller Family
http://www.nxp.com/files/microcontrollers/doc/app_note/AN3031.pdf
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------