Internal to external ADC channel switching during run time using S12ZVML64

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

Internal to external ADC channel switching during run time using S12ZVML64

936 次查看
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 项奖励
回复
1 回复

927 次查看
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 项奖励
回复