how to make ADC configuration with MC9S12ZVC

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

how to make ADC configuration with MC9S12ZVC

2,737 次查看
sunkemiao
Contributor II

I have made ADC configuratin according to  soft Demo AN5162 .Now I can use four channels to sample four groups data,but when I want to add a channel to sample data,the MC9S12ZVC do not work under Debugging.You can look at ADC initialization part of my code.

标签 (1)
0 项奖励
回复
6 回复数

2,339 次查看
vinitekghare
Contributor I

Where to get AN5162??sunkemiao

0 项奖励
回复

2,339 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

I think you are looking for 

AN5168 Using the ADC Module in S12ZVM

AN5168SW

Regards,

Daniel

0 项奖励
回复

2,339 次查看
vinitekghare
Contributor I

Hi Daniel,

Thank you..

Regards,

Vinit

0 项奖励
回复

2,339 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi

 

You should use End_of_list command (CMD_SEL = 0xCx) only for the last channel, after that the measurement will be terminated. Also, make sure the RAM address you use to allocate lists is not address of the stack.

 

Regards

Daniel  

0 项奖励
回复

2,339 次查看
sunkemiao
Contributor II

Hi,Daniel:

I follow your advice.I use End_of list command only for the last channel.Now I can sample data. I am very happy,because the problem have perlexed me for long time.

0 项奖励
回复

2,339 次查看
sunkemiao
Contributor II

Hi,Daniel :

I have made the