IMXRT1020 PWM Generation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMXRT1020 PWM Generation

737 次查看
Irv95G
Contributor II

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

0 项奖励
回复
1 回复

730 次查看
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 项奖励
回复