Hi
I use for developement an MC912ZVMC256 board and I want to ADC triggered by Output Compare.
I set it up as below.
I have connected the PT0_IOC0 pin to the PAD9 pin,and I can get the ad value of PAD9 pin in the AD1_OnEnd() function.But it is not triggered by Output Compare.How can I modify it to achieve this function.
Solved! Go to Solution.
Hi Daniel,
Thanks for your answer ! I've started trying to trigger ADC with PTU module.
Best Regards,
Alan
Hi Alan,
Please take a look at Section 1.13.3.1 Motor Control Loop Overview in the RM.
As you can see, TIM OC0 generates a commutation event that is used by PMF to generate an async_reload event.
The ADC is then triggered by the PTU module.
You can refer to:
MTRCKTSBNZVM128: 3-phase Sensorless BLDC Development Kit with S12 MagniV S12ZVM
AN4704 3-phase Sensorless BLDC Motor Control Kit with the S12 MagniV MC9S12ZVM
https://www.nxp.com/docs/en/application-note/AN4704.pdf
Regards,
Daniel
Hi Daniel,
Thanks for your answer ! I've started trying to trigger ADC with PTU module.
Best Regards,
Alan