Reading temperature and voltage data

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Reading temperature and voltage data

879 次查看
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 项奖励
回复
1 回复

859 次查看
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 项奖励
回复