imxrt1024 flexpwm PWM_X

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

imxrt1024 flexpwm PWM_X

2,379 Views
po-pony
Contributor II

Hi,

I am using the FlexPWM of imxrt1024 to generate PWM. There is no problem with PWM_A and PWM_B channels, but there is  no PWM output when I using PWM_X. I see that some people have asked this question in the post, but no one make it clear and there is not a solution.

I used MCUXpresso config tools to configure the pins as PMW_X function. I also found that in the peripheral configuration, both channel A and B can select the PWM function, but the X channel does not have this option. In the official SDK, the PWM_SetupPwm function does not seem to be able to configure PWM_X. 

Can anyone explain what is going on?

Thanks.

po-pony_0-1622186532704.png

po-pony_1-1622186588323.png

 

 

Tags (1)
0 Kudos
Reply
2 Replies

2,356 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello po-pony,

I looked for other threads regarding this topic and it seems that there are confusions in regards of the PWM_X pin.

There are only two FlexPWMs on the i.MXRT1024. The PWM_X is not an independent signal, it is an accessory signal, it's rising edge and falling edge are controlled by the VAL0 and VAL1 registers.

PWM_X pin can also optionally output a third PWM signal from each submodule. However, this function is apparently not enabled on the SDK driver, only capture is available.

You can find how this is setup in Figure 50-2 PWM Submodule, on the i.MXRT1024 Reference Manual.

Figure 50-2 PWM.jpg

 

I hope that this information helps!

Regards,
Gustavo

0 Kudos
Reply

2,352 Views
po-pony
Contributor II

Hi Gustavo

This is the clearest explanation about PWM_X so far. Your info help me a lot, thank you very much.

Regards,
po-pony

0 Kudos
Reply