TPI DO-PWM – Helper block
Table of Contents
The TPI DO-PWM helper block is a wrapper that simplifies the use of the DO-PWM block with the all-in-one programmable inverter (TPI8032 22kW). Since the topology of the converter is fixed, the channel assignment and part of the modulators’ configuration are known beforehand.
The topology of the converter and the connection of the PWM channels are shown below. To prevent short-circuiting the DC bus, the upper and lower leg switches always use pseudo-complementary signals with a fixed dead-time of 124 ns. This value was chosen as low as possible to minimize the distortion introduced by the dead-time.

PWM channel | PWM lane | Description |
0 | 0 | PWM High – Phase A (M0) |
1 | PWM Low – Phase A (M0) | |
1 | 2 | PWM High – Phase B (M1) |
3 | PWM Low – Phase B (M1) | |
2 | 4 | PWM High – Phase C (M2) |
5 | PWM Low – Phase C (M2) |
Simulink DO PWM helper block
Signal specification
- The input
in
is a 3-dimensional vector applied to the modules M0, M1, and M2 (phases A, B, and C). Each component sets the PWM_H signal of the corresponding module directly to ‘1’ (in>0) or ‘0’ (in<=0), right after the interrupt execution and without modulation. The PWM_L signals are automatically set as the logical complement of their PWM_H counterpart. - The input
A
allows the activation (>0) or deactivation (<=0) of the PWM outputs. - The
sim
output is a vector corresponding to the six generated PWM signals (phase A high and low, phase B high and low, and phase C high and low). They are only used in simulation.

Parameters
Device ID
selects which TPI to address when used in a multi-device configuration.Show "activate" input
makes theA
input visible. If not checked, the TPI CB-PWM block is active by default.Simulate dead-time
toggles the option to simulate the effect of the dead-time.


PLECS DO PWM helper block
Signal specification
- The input
in
is a 3-dimensional vector applied to the modules M0, M1, and M2 (phases A, B, and C). Each component sets the PWM_H signal of the corresponding module directly to ‘1’ (in>0) or ‘0’ (in<=0), right after the interrupt execution and without modulation. The PWM_L signals are automatically set as the logical complement of their PWM_H counterpart. - The input
A
allows the activation (>0) or deactivation (<=0) of the PWM outputs. - The target output port (only visible at the atomic subsystem level) is a vector corresponding to the six generated PWM signals (phase A high and low, phase B high and low, and phase C high and low). They are only used in simulation.

Parameters
Device ID
selects which TPI to address when used in a multi-device configuration.Show "activate" input
makes theA
input visible. If not checked, the TPI CB-PWM block is active by default.Simulate dead-time
toggles the option to simulate the effect of the dead-time.



C++ functions
There are no C++ helper functions for the TPI. Please refer to the generic DO-PWM functions.