S32K142 FTM_PWM SDK RTM3.0

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

S32K142 FTM_PWM SDK RTM3.0

674 Views
Sunj
Contributor II

Dear Engineer:

There is a problem when i imitate the AN12235(3-phase PMSM control user guide) to configure the six ways complementary PWM. I followed the example which is shown as figure 15 in AN12235.And imitate the code in MCSPTE1AK144_PMSM_FOC_2SH/Source/actuate_s32k.c to debug. But the output PWM is always high for each way.

My configuration and code as follows:

941e3589caa1ff2c26056c027f2e579.png

 

83f84886c2f4af8d11e075fdfe7d763.png

 

349aec60ac67229faeff6b78509da93.png

 

e79fd0bf405d8ce2db1c5ef29cbd382.png

Labels (1)
0 Kudos
3 Replies

639 Views
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

If you are looking to migrate the MCSPTE1AK144 examples to a S32K142 I recommend you refer directly to the examples of the MCSXTE2BK142 Development Board.

Hope it helps you.

Have a nice day!

0 Kudos

632 Views
Sunj
Contributor II

Hi:

dear engineer, i also refer to the examples of the MCSXTE2BK142 when i face this question, but i cant solve it.Now i find if i want to unmask the channel, i must add a period of delay after i call the code that FTM_DRV_MaskOutputChannels(INST_FLEXTIMER_PWM1, 0x3F, true);

 

is there any limitation when use the code? i just imitate the actuate.c in 

MCSPTE1AK144 examples or MCSXTE2BK142 examples..

0 Kudos

597 Views
_Leo_
NXP TechSupport
NXP TechSupport

No limitation is reported when using this code.

0 Kudos