Reading temperature and voltage data

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reading temperature and voltage data

847 Views
Arsenii
Contributor I

Hello.

Im started working with MPC5777C few days ago and trying to understand how to read raw voltage or temperature data. In reference manual i found a lot of data about  LVD and HVD self test, but cannot find anything about raw voltage (or temperature) data.

If i get it right i need to do the following:

1. Set PMC_ADC_CS to ADC voltage reference channel (what channel is it?).

2. Set ADC to conversion resolution (or its fixed 16 bit only?).

3. Enable specific ADC.

4. Trigger the conversion (how?).

5. Get result from SDADC_1-4.

6. Reset the buffers.

7. Disable ADC.

Please, fill the gaps if i forget something or (ideally) provide an example.

Thanks!

0 Kudos
Reply
1 Reply

827 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

below example shows MCU's temperature measurement with the help of TSENS;
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5777C-TSENS-Temperature-calculation-G...

BR, Petr

0 Kudos
Reply