IMXRT1020 PWM Generation

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

IMXRT1020 PWM Generation

473 Views
Irv95G
Contributor II

Hi, in general what are the steps to follow for generating a pwm signal on  pin for instance j18(5) ?  

0 Kudos
1 Reply

466 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Irv95G 

  What's the board you are using? MIMXRT1020-EVK? If yes, J18_5 is GPIO_AD_B1_15.

  About the PWM code, you can refer to the SDK code:

SDK_2_10_0_EVK-MIMXRT1020\boards\evkmimxrt1020\driver_examples\pwm

  You need to check the PWM supported pins:

kerryzhou_0-1629178486403.png

Your GPIO_AD_B1_15 is not the PWM pin.

So, you also can use the timer associated with the GPIO to toggle your GPIO_AD_B1_15.

 About the timer, you can use PIT, GPT etc.

In fact, I think you can use the QTMR , PWM supported pins to output the PWM.

 

Wish it helps you!

Best Regards,

kerry

 

 

 

0 Kudos