S12ZVML128 ADC programming.

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

S12ZVML128 ADC programming.

772 Views
albertolega
Contributor I

Dear all,

I need to set up ADC conversion list for executing triggered conversion. Reading reference manual I understood that the list can be set in RAM or NVM properly setteng a particular register. Moreover I understood that the list can contain up to 64 elements. What I miss are the values I should put in the list to associate an element to a specific ADC channel (internal or external) and what values are associated to End of Section and End of List.

 

Thank you very much.

Regards

Alberto

Labels (1)
0 Kudos
3 Replies

479 Views
iggi
NXP Employee
NXP Employee

Hi,

please, see my post here:

S12ZVC_ multiple ADC channels

There is example of ADC_init function and how Command and Result Value list can be defined. The command list is stored in NVM, while result list is in RAM. This is from simple reason that while command is executing from Flash, it cannot be stored in the same and so it is stored in RAM.

Note that the ADC module is the same on both S12ZVML and S12ZVC.

Hope it makes some things clear.

0 Kudos

479 Views
albertolega
Contributor I

Thank you very much. Now it is more clear.

0 Kudos

479 Views
iggi
NXP Employee
NXP Employee

Good to hear that. I reviewed my post and found a typo in one sentence, so now it is like this:

"This is from simple reason that while command is executing from Flash, it cannot be stored in the same and so it is stored in RAM."

0 Kudos