how to make ADC configuration with MC9S12ZVC

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

how to make ADC configuration with MC9S12ZVC

1,097 Views
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.

Labels (1)
0 Kudos
6 Replies

699 Views
vinitekghare
Contributor I

Where to get AN5162??sunkemiao

0 Kudos

699 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

I think you are looking for 

AN5168 Using the ADC Module in S12ZVM

AN5168SW

Regards,

Daniel

0 Kudos

699 Views
vinitekghare
Contributor I

Hi Daniel,

Thank you..

Regards,

Vinit

0 Kudos

699 Views
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 Kudos

699 Views
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 Kudos

699 Views
sunkemiao
Contributor II

Hi,Daniel :

I have made the