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.
Solved! Go to Solution.
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
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
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
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