SCT0_OUT0 and SCT0_OUT1 PWM control in LPC11U67

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

SCT0_OUT0 and SCT0_OUT1 PWM control in LPC11U67

跳至解决方案
2,258 次查看
Hari_Royal
Contributor II

Hi i can able to use SCT0 for generating PMW signals of fixed 50% duty cycle on SCT0_OUT0 & SCT0_OUT1 but i cant able to control the outs (On/Off) individually. . Can someone help me how can i Turn ON/OFF the individual output (SCT0_OUT0 & SCT0_OUT1)  independently whenever i want.

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
2,241 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Hari_Royal 

When want to turn off, you can configure the related SCT0_OUT pin as gpio, and configure it pull up/down.

When want to turn on, configure it as SCT0_OUT function.

 

BR

Alice

在原帖中查看解决方案

3 回复数
2,238 次查看
Hari_Royal
Contributor II

Alice , you mean when i need to turn Off the PWM on SCT0_OUT / SCT0_OU1 i need to change the configuration to GPIO with Pullup/down then set Pin to Low ? and then when i need to turn on PWM i need to configure back to SCTO output. 

so each time i need to change the configuration

==> from GPIO->SCT_OUTPUT to Turn ON PWM

==>from SCT_OUTPUT -> GPIO to Turn OFF PWM   ?? is that what you mean 

0 项奖励
回复
2,221 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Hari_Royal 

1)"so each time i need to change the configuration

==> from GPIO->SCT_OUTPUT to Turn ON PWM

==>from SCT_OUTPUT -> GPIO to Turn OFF PWM   ?? is that what you mean "

->> Yes.

2) Confirm one of my mistake, when change to GPIO, configure it as output, not input, then out put  low or high refer to your requirement. 

 

BR

Alice

2,242 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @Hari_Royal 

When want to turn off, you can configure the related SCT0_OUT pin as gpio, and configure it pull up/down.

When want to turn on, configure it as SCT0_OUT function.

 

BR

Alice