Question: 2 channel PWM application with Timer 4 : The Timer 4 counter frequency in the STM 3 2 F 4 0 7 microcontroller is set

2 channel PWM application with Timer 4: The Timer 4 counter frequency in the STM32F407 microcontroller is set to 1MHz and the PWM frequency to 10kHz, taking into account the microcontroller features, and with the necessary configurations, 90% and 30% duty-cycle is achieved from the Timer 41st and 4th channels, respectively. Prepare and report the code that will send the PWM signals received at high rates to the red and blue LEDs on the card. When editing your reports, Timer 4 and PWM frequency adjustment processes should be clearly stated before the code lines and the code lines should be adequately explained.
Also, explain the result to be observed in LEDs in technical details.
Note 1: Required system library 'stm32f4xx.h'
Note 2: It will be assumed that the operating clock values of the processor are as follows:
Input Oscillator: 8 MHz
System Clock and AHB1 line: 168 MHz
APB1 peripherals line: 42 MHz
APB1 timer units clock: 84 MHz
APB2 peripherals line: 84 MHz
APB2 timer units clock: 168 MHz
Timer 4 ARR: 100
Note 3: Codes that appear to be produced with tools similar to ChatGPT will not be evaluated.
Note 4: It will be assumed that the reports are prepared individually by each group and reports containing similar explanations and codes will not be evaluated.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!