cancel
Showing results for 
Search instead for 
Did you mean: 

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?

Elektraglide
Associate III

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

1 REPLY 1
TDK
Guru

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".