How to get to the timer registers to setup center aligned

Post here first, or if you can't find a relevant section!
Post Reply
bmentink
Posts: 1
Joined: Tue Apr 16, 2024 12:50 am

How to get to the timer registers to setup center aligned

Post by bmentink »

Hi all,

I am very new to stm32duino. I have installed the arduino framework in platformio.

So far I have managed to get the stm32f103 bluepill to run at 72Mhz by some PLL code, and I have a PWM with interrupts working.

However for my motor controller project I need 3-phase pwm off the same timer (TIM1) and to be able to get at the registers to setup
centre-aligned PWM and set the deadtime. There does not seem to be a way to do this on the standard official API. I know the arduino framwork has HAL and CMSIS underneath, maybe that will help me?

I am using this site for Arduino API : https://github.com/stm32duino/Arduino_C ... er-library

Can anyone help here?
Post Reply

Return to “General discussion”