Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 859 Bytes

File metadata and controls

15 lines (13 loc) · 859 Bytes

Sinusoidal Pulse Width Modulation

Generate three phase AC signals through inductive loads

This program can be used as a driver for the following two-level inverter:
The schematics of a two-level inverter with passive diode front-end, DC-link capacitor and a motor equivalent connected. Snubbers and anti-parallel diodes are not shown.
Image from switchcraft.org

To adjust the frequency of the fundamental waves, adjust the following:

$\text{TIM6}_{\text{Period}}=\frac{32\text{M}}{\text{Sine}_f \text{Q}_\text{Levels} \text{TIM6}_\text{Prescaler}}$

The lookup-gen branch can be used to generate lookup tables for the three phases.