S12ZVMC256 ADC Triggered By Output Compare

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

S12ZVMC256 ADC Triggered By Output Compare

Jump to solution
759 Views
Alan_Smith
Contributor I

Hi

I use for developement an MC912ZVMC256 board and I want to ADC triggered by Output Compare.

I set it up as below.

 

微信图片_20210115120542.png

微信图片_20210115120646.png

微信图片_20210115121019.png

微信图片_20210115121140.png

 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. 

 

 

 

Tags (1)
0 Kudos
1 Solution
730 Views
Alan_Smith
Contributor I

Hi Daniel,

  Thanks for your answer ! I've started trying to trigger ADC with PTU module.

Best Regards,

Alan

View solution in original post

0 Kudos
2 Replies
736 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Alan,

Please take a look at Section 1.13.3.1 Motor Control Loop Overview in the RM.

danielmartynek_0-1610976916689.png

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

https://www.nxp.com/design/development-boards/automotive-motor-control-solutions/magniv-and-s12-solu...

 

AN4704 3-phase Sensorless BLDC Motor Control Kit with the S12 MagniV MC9S12ZVM

https://www.nxp.com/docs/en/application-note/AN4704.pdf

danielmartynek_1-1610977352139.png

 

Regards,

Daniel

0 Kudos
731 Views
Alan_Smith
Contributor I

Hi Daniel,

  Thanks for your answer ! I've started trying to trigger ADC with PTU module.

Best Regards,

Alan

0 Kudos