Simulating TL494 Full-Bridge (H-Bridge) control using STM32F103 (Blue Pill) – 180° phase-shifted PWM
Hello everyone,
My name is Aleksandar, and this is my first time posting here.
I’m trying to simulate the operation of the TL494 controller in a full-bridge (H-bridge) configuration using an STM32F103 (Blue Pill) and STM32CubeIDE with the HAL library.
Project goal: The aim is to simulate the TL494 controller and apply it to control MOSFETs in a full-bridge (H-bridge) configuration.
The goal is to generate two PWM signals that are phase-shifted by 180°.
I would like to have full control over the switching frequency (1kHz - 200kHz) and duty cycle (5% - 45%) , and I also want to implement dead time (5%) that is proportional (percentage-based) to the frequency.
I have already tried to simulate this behavior in CubeIDE, but I couldn’t get the correct phase-shifted signals.
I would really appreciate some guidance or examples on how to properly configure the timers for this.
My question is:
Is it better to use CH1 and CH1N of a single timer (with complementary outputs), or two independent timers?
Thank you in advance for your help and advice!
This is just an introduction to my project, and I’ll likely have more questions as I move forward.
Best regards,
Aleksandar
