ePWM_2_MDD
Module –
High-Level Description
This module implements the shutdown mechanisms functionality with respect to the EPWM module. This module implements the requirements specific to the EPWM output direction control, which is implemented in the diverse path as required.
Figures
Component Diagram

Variable Data Dictionary
For details on module input / output variable, refer to the Data Dictionary for the application. Input / output variable names are listed here for reference.
| Module Inputs | Module Outputs | |
|---|---|---|
| None | None | |
Module Internal Variables
This section identifies the name, range and resolutions for module specific data created by this module. If there are no range restrictions on the variable, the term “FULL” is placed into the table for legal range.
| Variable Name | Resolution | Legal Range (min) | Legal Range (max) | Software Segment |
|---|---|---|---|---|
User defined typedef definition/declaration
This section documents any user types uniquely used for the module.
(Refer the included ref for more details of register)
| Typedef Name | Element Name | User Defined Type | Legal Range (min) | Legal Range (max) |
|---|---|---|---|---|
Constant Data Dictionary
Calibration Constants
This section lists the calibrations used by the module. For details on calibration constants, refer to the Data Dictionary for the application.
| Constant Name |
|---|
| None |
Program(fixed) Constants
Embedded Constants
All embedded constants whose values are provided in Eng units will be evaluated to the equivalent counts by using the FPM_InitFixedPoint_m() macro within the #define statement.
Local
| Variable Name | Resolution | Legal Range (min) | Legal Range (max) | Software Segment |
|---|---|---|---|---|
Global
This section lists the global constants used by the module. For details on global constants, refer to the Data Dictionary for the application.
| Constant Name |
|---|
| None |
Module specific Lookup Tables Constants
| Constant Name | Resolution | Value | Software Segment |
|---|---|---|---|
| None |
Functions/Macros used by the Sub-Modules
Library Functions / Macros
The library and functions / Macros that are called by the various sub modules are identified below,
ePWM_EnableOutputs
ePWM_DisableOutputs
Data Hiding Functions
None
Global Functions/Macros Defined by this Module
Local Macro
None
Local Functions/Macros Used by this MDD only
None
Software Module Implementation
Runtime Environment (RTE) Initial Values
This section lists the initial values of data written by this module but controlled by the RTE. After RTE initialization, the data in this table will contain these values.
| Data | Value |
|---|---|
| None |
Initialization Functions
Init: _Init1
Design Rationale
None
Module Outputs
None
Module Internal
None
Initialize EPWM Direction Register
Periodic Functions
None
Fault Recovery Functions
None
Shutdown Functions
None
Interrupt Functions
None
Serial Communication Functions
None
Transition Functions
Trns: _Trns1
Design Rationale
None
Program Flow Start
N/A
Store Module Inputs to Local copies
None
Set EPWM Direction Register to Output
Store Local copy of outputs into Module Outputs
None
Program Flow End
N/A
Trns: _Trns2
Design Rationale
None
Program Flow Start
N/A
Store Module Inputs to Local copies
None
Set EPWM Direction Register to Input
Store Local copy of outputs into Module Outputs
None
Program Flow End
N/A
Execution Requirements
Execution Rates for sub-modules called by the Scheduler
This table serves as reference for the Scheduler design
| Function Name | Calling Frequency | System State(s) in which the function is called |
|---|---|---|
| ePWM2_Trns1 | On Event | On Entering OPERATE |
| ePWM2_Trns2 | On Event | On Leaving OPERATE |
Execution Requirements for Serial Communication Functions
| Function Name | Sub-Module called by (Serial Comm Function Name) |
|---|---|
| None |
Memory Map Definition Requirements
Sub Modules (Functions)
This table identifies the software segments for functions identified in this module.
| Name of Sub Module | Software Segment |
|---|---|
| ePWM2_Trns1 | RTE_START_SEC_AP_EPWM2_APPL_CODE |
| ePWM2_Trns2 | RTE_START_SEC_AP_EPWM2_APPL_CODE |
Local Functions
This table identifies the software segments for local functions identified in this module.
| Name of Sub Module | Software Segment |
|---|---|
| None |
Known Issues / Limitations With Design
None
Revision Control Log
| Rev # | Change Description | Date | Author Initials |
|---|---|---|---|
| 1.0 | Initial Version (Shutdown Mechs FDD 34B) | 18-Feb-13 | Selva |
| 2 | Updated modes for Trns functions | 8-Mar-13 | OT |