GPIO interrupting PWM output

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Hi All,

I would like to have an input to the GPIO stop the output of a PWM signal coming from the CCU4 or CCU8. Is there a way to do this without going through the GPIO->ERU->NVIC->CPU->CCU4 route? I would like this to happen without having the CPU be interrupted.

Regards
Enigma
0 Likes
5 Replies
User10076
Level 2
Level 2
Hi enigmaldc,

Do you have a constraint about not using an interrupt? How about ADC? Check the ADC value and stop the PWM.
Just an idea.

Regards,
Petru S.
0 Likes
Not applicable
Hi Petru S

I would like to get the quickest possible response and I can get. I have a digital input that tells my PWM when to switch off. And since all peripherals are connected it should be possible to stop the output of my PWM on a rising edge of an incomming digital input from the GPIO, right?

I believe your ADC suggestion would work, but it would be slow.

Regals
Enigma
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
enigmaldc wrote:
Hi All,

I would like to have an input to the GPIO stop the output of a PWM signal coming from the CCU4 or CCU8. Is there a way to do this without going through the GPIO->ERU->NVIC->CPU->CCU4 route? I would like this to happen without having the CPU be interrupted.

Regards
Enigma



Yes, you can link the external start/ stop to a ERU.

1707.attach
0 Likes
Not applicable
Hi Travis,

Thanks, I did that and it works well.

Regards
Enigma
0 Likes
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Very glad to hear that.
0 Likes