How to generate pwm wave by PWMX pin in RT1064?

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

How to generate pwm wave by PWMX pin in RT1064?

1,712 Views
SSFG1992
Contributor I

platform: imxrt1064 evaluation board, SDK2.8.6

It's easy to run the pwm driver example code and observe the right pwm wave whith scope.

I try to modify the code to output pwm wave in PWMX pin(IOMUXC_GPIO_AD_B0_02_FLEXPWM1_PWMX00), but failed. 

So, how to modify the example code to output pwm by GPIO_AD_B0_02?  

Labels (1)
0 Kudos
5 Replies

1,139 Views
Alexander-cloud
Contributor I

Is your problem solved?

0 Kudos

1,684 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @SSFG1992,

This pin correspond to the channel 0  in the FLEXPWM1 module. Did you modify the PWM_SetupPwm API to use this channel?

Best Regards,

Alexis Andalon

0 Kudos

1,671 Views
SSFG1992
Contributor I

Thanks for your reply!

Did you mean the third argument of the PWM_SetupPwm?

Could you give me a integrated example?1609909547(1).png

0 Kudos

1,661 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @SSFG1992,

One thing I forgot to mention is that the PWMX is used to generate the frequency and the other two channels are used for the duty cycle so you only can use the channels PWMA and PWMB to output the PWM signal.

Best Regards,

Alexis Andalon 

0 Kudos

1,658 Views
SSFG1992
Contributor I

Hello Alexis Andalon,

Did you mean PWMX can generate pwm signal with fixed 50 percent duty?

It is ok for my application with frequency signal. So, I want to know how to modify the configration(code)?

0 Kudos