Skip to main content
Elektraglide
Associate II
January 16, 2021
Question

I am using GPIOA in Alternate Function mode. I'm using Channel 1 & 2 as PWM but I want to bit-bang Channel 3 in the Channel CC2 IRQ (ie turn it on/off). What do I set the Channel 3 OCMode to?

  • January 16, 2021
  • 1 reply
  • 615 views

If I set it to Active, it cannot be overwritten.. What am I missing?

This topic has been closed for replies.

1 reply

TDK
January 16, 2021

What chip are you using?

On most (all?) families, there is no issue setting channel 1 and 2 pins to AF mode and having the pin for channel 3 be a GPIO pin. In this case, it doesn't matter what OCMODE for channel 3 is set to since the pin is disconnected from the timer.

"If you feel a post has answered your question, please click ""Accept as Solution""."