Set PWM output(using CTimer) to LOW when stopped

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

Set PWM output(using CTimer) to LOW when stopped

Jump to solution
693 Views
hemanthvasista
Contributor IV

Hello ,

I am using LPC54606 controller with PWM using CTimer.

When I stop the PWM using "CTIMER_StopTimer", occasionally the PWM output still remains HIGH.

Is there a way I can force the PWM output to go LOW when stopped?

 

regards,

Hemanth

Tags (1)
0 Kudos
1 Solution
664 Views
hemanthvasista
Contributor IV

The issue got solved when I call below APIs

"CTIMER_Reset" & "CTIMER_Deinit". After these, the pin output goes LOW.

View solution in original post

0 Kudos
2 Replies
678 Views
FelipeGarcia
NXP Employee
NXP Employee

Hi Hemanth,

I don’t think so because PWM outputs follow certain rules as you can see in 17.7.1 Rules for single edge controlled PWM outputs section of the UM. An option is that you change alternative of the pin and manually change the output to low using GPIO.

Best regards,

Felipe

0 Kudos
665 Views
hemanthvasista
Contributor IV

The issue got solved when I call below APIs

"CTIMER_Reset" & "CTIMER_Deinit". After these, the pin output goes LOW.

0 Kudos