SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
The ePWM module represents one complete PWM channel composed of two PWM outputs: EPWMxA and EPWMxB. Multiple ePWM modules are instanced within a device as shown in Multiple ePWM Modules Each ePWM instance is identical with one exception. Some instances include a hardware extension that allows more precise control of the PWM outputs. This extension is the high-resolution pulse width modulator (HRPWM) and is described in High-Resolution Pulse Width Modulator (HRPWM). See the device data sheet to determine which ePWM instances include this feature. Each ePWM module is indicated by a numerical value starting with 0. For example, ePWM0 is the first instance and ePWM2 is the third instance in the system and ePWMx indicates any instance.
The ePWM modules are chained together by way of a clock synchronization scheme that allows them to operate as a single system when required. Additionally, this synchronization scheme can be extended to the capture peripheral submodules (eCAP). The number of submodules is device-dependent and based on target application needs. Submodules can also operate standalone.
Each ePWM module supports the following features:
Each ePWM module is connected to the input/output signals shown in Figure 7-148. The signals are described in detail in subsequent sections.
Each ePWM module consists of eight submodules and is connected within a system by way of the signals shown in Figure 7-148. The order in which the ePWM modules are connected can differ from what is shown in the figure. See Time-Base Counter Synchronization for the synchronization scheme for a particular device.
Figure 7-149 shows more internal details of a single ePWM module. The main signals used by the ePWM module are:
The PWM output signals are made available external to the device
These input signals alert the ePWM module of fault conditions external to the ePWM module. Each submodule on a device can be configured to either use or ignore any of the trip-zone signals
For more information, see Time-Base Counter Synchronization
Each ePWM module also generates another PWMSYNC signal called EPWMxSYNCPER. EPWMxSYNCPER goes to the CMPSS for synchronization purposes. Functionality is configured using the HRPCTL register, but has no relation with the HRPWM. For more information on how EPWMxSYNCPER is used by the CMPSS, see their respective chapters.
Each ePWM module has two ADC start of conversion signals. Any ePWM module can trigger a start of conversion. Whichever event triggers the start of conversion is configured in the event-trigger submodule of the ePWM.
Output signals from the comparator module can be fed through EPWM X-BAR to one or all of the and in conjunction with the trip zone signals can generate digital compare events.
The peripheral bus is 32-bits wide and allows both 16-bit and 32-bit writes to the ePWM register file.