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.
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.
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