IMXRT1020 PWM Generation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IMXRT1020 PWM Generation

738件の閲覧回数
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 返信

731件の閲覧回数
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 件の賞賛
返信