SystemDesigner ePWM Module

SystemDesigner includes a complete PWM generator based on the Texas Instruments Piccolo™ enhanced PWM (ePWM) module. This PWM module can generate almost any PWM pattern, including variable frequency (LLC) or phase-shifted topologies. The ePWM module can generate Start-of-Conversion (SOC) signals at any point in the PWM cycle, allowing you to accurately model the time-domain sampling behavior of the converter. The SOC signals are then routed globally to all SystemDesigner ADC converters through the global Start of Conversion routing system.

* Piccolo is a trademark of Texas Instruments Incorporated.

In this topic:

Model Name: SystemDesigner TI Piccolo ePWM Module
Simulator: This device is compatible with the SIMPLIS simulator.
Parts Selector
Menu Location:
SystemDesigner Functions (max. 32 bit) | Probes
Symbol Library: None - the symbol is automatically generated when placed or edited.
Model File: SIMPLIS_SystemDesigner_ePWMs.lb
Subcircuit Name: SIMPLIS_SD_EPWM_V7p2
Symbols: Various - The symbol is automatically drawn to match the required pins.
Multiple Selections: Only one SystemDesigner TI Piccolo ePWM Module  may be edited at a time.

Description

This model was carefully constructed from publicly available information including the two TI data sheets:

Because the two TI data sheets completely describe the behavior of the ePWM, the details of the ePWM module are not documented in the SIMetrix/SIMPLIS help system.

The full implementation of the Piccolo DSP includes eight submodules. Five of these eight submodules are included in the SystemDesigner ePWM module:

  • Time-Base (TB) Submodule
  • Counter-Compare (CC) Submodule
  • Action-Qualifier (AQ) Submodule
  • Dead-Band (DB) Submodule
  • Event-Trigger (ET) Submodule

The following modules are not included:

  • PWM_Chopper (PC) Submodule
  • Trip-Zone (TZ) Submodule
  • Digital-Compare (DC) Submodule

Register Configuration

The ePWM module is configured using the same register names as noted in the TI data sheets. Instead of setting the register values in code, the SystemDesigner ePWM uses a parameter editing dialog, which is shown below with the tool tip for the Time-Base Period Register. Each edit control on the dialog has a similar tool tip explaining the usage of the parameter or register value.

Is Value Constant?

On the parameter editing dialog, most edit controls have a check box to tell the program if the register value is constant. Checking Is value constant?  fixes that value for the entire simulation. The pin normally associated with that register value is hidden on the symbol, making the symbol smaller. In the dialog-box illustration above, the Time-Base period register, TBPRD, is held constant because this ePWM is configured for fixed-frequency operation.

Show debug pins?

At the bottom of the editing dialog is a check box that determines if the debug pins are added to the symbol:

  • If Show debug pins? is checked, the ePWM symbol has several output pins that are not normally present. This facilitates probing of internal signals but generates a slightly larger symbol. To probe the bus outputs, use the SystemDesigner Bus Probe (Regular Buses) probe.
  • If unchecked, the additional debug pins are hidden, and only the two ePWM output pins are drawn on the symbol.

Create minimum sized symbol?

Also at the bottom of the editing dialog is a check box that determines the generated symbol size:

  • If Create minimum sized symbol? is checked, the ePWM symbol is the minimum size for the pins, and all pins are adjacent with no gaps. This provides the minimum-sized symbol, with the penalty that if pins are added in the future, the symbol will require rewiring.
  • If unchecked, the symbol pins are located in a fixed location. This allows for debugging without the need to rewire the symbol pins but the symbol is larger.

Symbol Description

Each ePWM module has a Symbol description label to describe how the ePWM is configured. The description is not used in the simulation, and the program never changes the label value. For example, if you place a trailing-edge-configured ePWM and then change the register values to configure the ePWM as a leading edge ePWM, the label will not change.