ADC Software Trigger Continuous scan : not working

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

ADC Software Trigger Continuous scan : not working

867 次查看
tech_mofu
Contributor II

Hi,

Test H/w : XPC56XX EVB MOTHEBOARD Rev.C

MCU : XPC560S 176LQFP Mini Module 

We are using above hardware for low cost instrument cluster application. Before connecting the TFT to DCU we want to try out some basic functionalities provided in the cookbook AN2865

example 22 : ADC Software Trigger Continuous scan is the one we are trying. The Pot/ Trimmer on Mother Board (jumper removed) variable pin is connected to AN0 (PC0). While running the code the ADC values are not changing. Though the trimmer voltage is varied the results are not changing. We get values like 0xA0 all times on all 3 ADC inputs (AN0:2). Some times we get 0x3FF on all 3 inputs.

Checked the VDD-A it is 5V.  

Please help us to move forward.

Regards

Raghu

 

0 项奖励
回复
1 回复

858 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, I can point 2 references I done in the past, one is simple example for MPC5604B what similar device with almost equal ADC:
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5604B-ADC-Pot-ADCWatchDog-INTC-printf...

Second if MPC5606S demo, where i have uses ANS[0] ADC channel for external humidity sensor connection (all ADC configuration in main.c file):
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Demo-application-MPC5606S-DEMO-LM75B-HIH-5030-PC...

or derived simplified example code:
https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5606S-DEMO-HIH-5030-TFT-CW210/ta-p/11...

 

Hope it helps

0 项奖励
回复