The ePWM module on the F2837xD/S/07x
devices remains functionally the same, and includes many enhancements. As a result,
additional registers have been added, and the ePWM address space has been remapped
for better alignment and usage. These enhancements include:
- Counter Compare Sub-module – added counter compares CMPC and
CMPD to allow Interrupts and ADC SOC events to be generated.
- Action Qualifier Sub-module – added shadow loading of AQCTLA
and AQCTLB registers to enable changes that must occur at the end of a period
even when the phase changes. Additionally, shadow to active load on SYNC and
Global Reload for the Action Qualifier Sub-module is supported.
- Dead-Band Sub-module – added high resolution capability to
dead-band RED and FED in half-cycle clocking mode. Includes features to enable
both RED and FED on either PWM outputs. Increased dead-band with 14-bit
counters. Dead-band/dead-band high-resolution registers are shadowed to allow
dynamic configuration changes.
- Event Trigger Sub-module – Interrupts and ADC
start-of-conversion can now be generated on both the TBCTR == zero and TBCTR ==
period events. This feature enables dual edge PWM control. Additionally, the ADC
start-of conversion can be generated from an event defined in the digital
compare submodule. Enhanced pre-scaling logic is also implemented to issue
interrupt requests and ADC SOC expanded up to every 15 events, to allow software
initialization of event counters on SYNC event.
- Trip-Zone Sub-module – independent flags have been added to
reflect the trip status for each of the TZ sources. Also, changes have been made
to the trip zone module to support certain power converter switching techniques,
such as valley switching. Trip-zone TZ4 is sourced from an inverted EQEPxERR
signal, TZ5 is connected to the system clock fail logic, and TZ6 is sourced from
the EMUSTOP output from the CPU.
- Digital Compare Sub-module – Addition of the digital compare
submodule which enhances the event triggering and trip zone submodules by
providing filtering, blanking and improved trip functionality to digital compare
signals. Such features are essential for peak current mode control and for
support of analog comparators. The Digital Compare Trip Select logic [DCTRIPSEL]
has up to 12 external trip sources that are selected by the Input X-BAR logic.
This is in addition to an ability to OR all of them, for up to 14 external and
internal sources which are used to create the respective DCxEVTs. Blanking
window filter register width is 16 bits, and the DCCAP functionality has been
enhanced to provide more programming flexibility.
- High-Resolution PWM – includes the ability to enable
high-resolution period and duty cycle control on both ePWMxA and ePWMxB
outputs.
- Simultaneous Writes to TBPRD and CMPx Registers – allows
writes to TBPRD, CMPA:CMPAHR, CMPB:CMPBHR, CMPC, and CMPD of any ePWM module to
be tied to any other ePWM module, and also allows all ePWM modules to be tied to
a particular ePWM module, if desired.
- Shadow to Active Load on SYNC of TBPRD and CMP Registers –
supports simultaneous writes of TBPRD and CMPA/B/C/D registers.
- Delayed Trip Functionality – changes have been added to
achieve dead-band insertion capabilities to support delayed trip functionality,
which is needed for peak current mode control type applications. This has been
accomplished by allowing comparator events to go into the Action Qualifier
Submodule as a trigger event (Events T1 and T2). If comparator T1/T2 events are
used to modify the PWM, changes to the PWM waveform will not take place
immediately, but instead they will synchronize to the next TBCLK.
- One Shot and Global Reload of Registers – allows one shot and
global reload capability from shadow to active registers. This avoids partial
reload conditions in, for example, multi-phase applications. It also allows
programmable pre-scale of shadow to active reload events. Global Load can
simplify ePWM software by removing interrupts and ensuring that all registers
are loaded at the same time.
- PWM SYNC Related Enhancements – sync scheme now includes two
possible external PWM SYNCIN sources that feed into every third instance of ePWM
modules (ex. ePWM1, ePWM4, ePWM7, and so forth). The sync scheme allows PWM
SYNCOUT generation based on CMPC and CMPD events. These events can also be used
for PWMSYNC pulse selection.