PWM Application with Timer 4 and 3 Channels: Considering the characteristics of the STM32F407 microcontroller, the Timer 4 counter frequency is set to 1 MHz,and the PWM frequency is set to 10 kHz.Timer 4 will be configured to output PWM signals on channels 1, 2, and 4 with duty cycles of 80%,40%, and 20%,
respectively. These PWM signals will be sent to the red, green, and blue LEDs on the board. The code will be written in C.
Input Oscillator:
8 MHz System Clock and AHB 1 bus:168MHz
APB 1 peripherals bus:42 MHz
APB 1 timer units clock: 84 MHz
APB2 peripherals bus:84 MHz
APB 2 timer units clock: 168 MHz
Timer 4 ARR: 100