Is there PWM_X Example Code?

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

Is there PWM_X Example Code?

325 Views
mrd
Contributor III

I need to use the RT1176's PWM4 X,3 signal to control backlight intensity. Is there example code for setup of a PWM_X output? Something simple to get me started would be great. I'm using MCUXpresso and have enabled the PWM4 X,3 signal on GPIO_AD_21 configured as an output, but it doesn't look like the SDK 2.13.1 supports kPWM_PwmX as a signal channel for an output signal.

I did find this link where fsl_pwm.c was patched to provide PWM_X capability, but this hasn't worked for me either.  I have also read this article but I'm still struggling.

Thank you.

0 Kudos
1 Reply

306 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @mrd ,

  What's the board you are using? The MIMXRT1170-EVK from NXP?

 I think, we don't have the directly PWM_X example, but it is not difficult, you even can configure the register to realize it.

   Anyway, tell me your used board and IDE, then I will find time to help you to check it on my side.

   If you already write the related code, but can't work, just also upload it, I can help you to check it.

 

Best Regards,

kerry

0 Kudos