Pour la documentation en FRANÇAIS, utilisez l’outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Use the SPWM Generators to generate sinusoidal pulse width modulated signals on the FPGA.  These signals can be mapped directly to the circuit model Switches

SPWM Generators Section Channels

In the System Explorer window configuration tree, expand the Power Electronics Add-On custom device, then Circuit Model >> SPWM Generators to display the following subsections and custom device channels.  Assign values to the channels to configure the SPWM Generators.


SPWM Carrier

Channel NameType

Units

Default Value

Description


Carrier Frequency

InputHz5000 HzFrequency of the Carrier signal.

Modulation IndexInput
1Amplitude of the Modulation signal.
SPWM Frequency Generators

Channel NameType

Units

Default Value

Description


SPWM Frequency Engine X

InputHz60 HzFrequency of the Modulation signal.
SPWM Generator X

Channel NameType

Units

Default Value

Description


Dead TimeInputSeconds0 s

Time during which both the SPWM signal and its complementary are held in an inactive state, immediately before the SPWM signal goes active.

Frequency EngineInput
0

Index of the SPWM Frequency Engine used to generate the PWM signal.

Setting a value of 2 will connect SPWM Frequency Engine 2 to the SPWM generator. Use the same SPWM Frequency Engine with multiple different SPWM generators to ensure that they stay phase locked in time.

PhaseInputDegrees0Phase offset of the generated SPWM signal relative to the other SPWM signals using the same frequency engine.

SPWM Generators Description

Sine Triangle PWM is a common modulation technique for converting DC power sources into AC power sources.  In the Power Electronics Add-On, the specific implementation of the SPWM generators allows for multiple SPWM signal outputs, but only one carrier frequency and one modulation index.  Frequency Engines are responsible for storing the current phase for signals based on their frequency and a free-running clock on the FPGA represented as 'time' in equation (1)


(1)


Each SPWM Generator can select which Frequency Engine to use through the Frequency Engine channel.


(2)

Modulation & carrier signals are internal signals used for storing the current state of each individual SPWM generator.  The carrier signal is a triangle wave whose frequency is set by the Carrier Frequency channel.  The amplitude of the Modulation signal is set through the Modulation Index channel. 

(3)


When the Modulation signal is greater than the Carrier Signal, the SPWM generator outputs True, otherwise it outputs False.  The animation below shows the internal Modulation and Carrier signals with the corresponding SPWM signal.  In this example, the Modulation Index is 0.6.


  • No labels