Hi, i recently used a microchip 16F chip to control a H-bridge using PWM Enhanced Mode capability. basically what it do, it will enable one output with a fixed level, and switch with a fixed duty cycle the complementary side on the other half bridge, with a single bit you can change the outputs configuration to change direction without touching any thing else.
example : fix B pulse C and then fix D and pulse A .am using this in as a pure Sin inventer and it works fine.
what i like the most is that am totally capable of switching direction by simply writing 1 bit.
what am trying to find is an equivalent capability in the STM32 family chips. i used F3,F1 and F0 and i don't think i can figure out any timer configuration that will do the same thing with the same algorithm. what i did with the st chips that i have to manually stop one channel and switch to the other one, i took at least 4 instructions, while it's not fatal i had some bizarre wave slipping. it's like the period is not the same.
anyone know about a stm32 chips with timers that may work as described ?