STM32F103C8T6 PWM based on external clock
Hey guys, I need your help:
I want to use the STM32F103C8T6 board.
The microcontroller will receive an external 8 MHz clock (from a source other than the system clock).
I want the microcontroller to count to 8, and for 2 of those counts, one of the outputs should be high, and then for the remaining 6 counts, it should be low — this way generating a 1 MHz PWM signal with a 25% duty cycle.
It's important to me that the PWM signal remains in phase with the external source.
Is it possible to achieve this with the STM32F103C8T6 controller? If so how to approach this? Or will I need a different controller to implement this?
