SCT0_OUT0 and SCT0_OUT1 PWM control in LPC11U67

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

SCT0_OUT0 and SCT0_OUT1 PWM control in LPC11U67

ソリューションへジャンプ
1,467件の閲覧回数
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 解決策
1,450件の閲覧回数
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 返答(返信)
1,447件の閲覧回数
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 件の賞賛
返信
1,430件の閲覧回数
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

1,451件の閲覧回数
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