2023-05-05 03:13 AM - edited 2023-11-20 06:23 AM
Hi,
i had a programm running on the stm32f407 and PWM output via Tim2
The timer is configured with clock 84MHz and PWM Counter Period 5040 which gives me a period time of 60us. The timer is clocked via APB1. this works fine
now i use an h753 with the same settings(at least this is what i think) and my output period is halved with the same counter period of 5040
ok, i could double my counter period and get the result i want but i do not understand what setting i'm missing which halves my period. can anybody give me a hint where to look?
Solved! Go to Solution.
2023-05-05 03:56 AM
Unpack the clock routing from the chip side, not the PC GUI.
Dump/Decode the RCC registers.
Check the Peripheral Clock selections as there are now muxes to route different TIM clocks, not just the APB or APB*2
2023-05-05 03:56 AM
Unpack the clock routing from the chip side, not the PC GUI.
Dump/Decode the RCC registers.
Check the Peripheral Clock selections as there are now muxes to route different TIM clocks, not just the APB or APB*2
2023-05-05 04:28 AM
ok, everything works as expected. D2PPPRE1 was wrong. seems like i had main.c opened while generating with cubemx, so the changes where completly written. after regenrating, the the divider was set correctly and now the period is 60us as expected.
so the error sits in front of the pc. buisiness as usual :(