PWM mod. Where in the code is the microcontroller pin enabled and disabled?
STM32F407There are only two lines in the code that I wrote.HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_2);TIM4->CCR2=3;The pin is activated when the number in the CNT register and the CCR2 register match.The pin is deactivated at the end of counting in the...