Internal to external ADC channel switching during run time using S12ZVML64

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

Internal to external ADC channel switching during run time using S12ZVML64

943 Views
pratibhasurabhi
Contributor V

Dear Team,

I am using S12ZVML64 MCU for motor control development.

I am using ADC0 and ADC1.

I have defined the  ADC0 and ADC1 command list in code and ADC conversion is done based on PTU trigger timing.

I want to know can we switch the ADC channel from internal to external OR vice-versa during runt time by updating the ADC command list?

In datasheet it is given that, ADCCMD register can be written only if SMOD_ACC bit is set

I am not using MCU special mode.

pratibhasurabhi_0-1602172844273.png

 

If we can switch the ADC channel from internal to external what precaution needs to take while implementing this switching in code.

Thanks in advance.

 

0 Kudos
Reply
1 Reply

934 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Pratibha,

Please have a look at Section 9.6.3.2.2 Introduction of the two Command Sequence Lists (CSLs) in the RM.

You can have two command lists and while one is active and should not be modified, the inactive one can be modified.

 

BR, Daniel

0 Kudos
Reply