Set PWM output(using CTimer) to LOW when stopped

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

Set PWM output(using CTimer) to LOW when stopped

跳至解决方案
939 次查看
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

标记 (1)
0 项奖励
回复
1 解答
910 次查看
hemanthvasista
Contributor IV

The issue got solved when I call below APIs

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
924 次查看
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 项奖励
回复
911 次查看
hemanthvasista
Contributor IV

The issue got solved when I call below APIs

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

0 项奖励
回复