Question
Turn PWM on and off with a control variable
I'm using the STM32F103C8T6 microcontroller, better known as the blue pill.
I need to make a code that reads the voltage of a port (which I already managed to do) and depending on the input voltage it turns the PWM on or off. I'm having trouble because the code seems to be correct, but the PWM doesn't turn on.
Below I provide my Timer and PWM configuration in the hope that someone can help me. This is the code I made:



Could anyone help me?
