SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
Table 12-4315 lists the registers used to control and monitor the time-base submodule.
Acronym | Register Description | Address Offset | Shadowed |
---|---|---|---|
EPWM_TBCTL | Time-Base Control Register | 0h | No |
EPWM_TBSTS | Time-Base Status Register | 2h | No |
HRPWM_TBPHSHR | HRPWM extension Phase Register (1) | 4h | No |
EPWM_TBPHS | Time-Base Phase Register | 6h | No |
EPWM_TBCNT | Time-Base Counter Register | 8h | No |
EPWM_TBPRD | Time-Base Period Register | Ah | Yes |
Figure 12-2233 shows the critical signals and registers of the time-base submodule. Table 12-4316 provides descriptions of the key signals associated with the time-base submodule.
Signal | Description |
---|---|
EPWMxSYNCI | Time-base synchronization input. |
Input pulse used to synchronize the time-base counter with the counter of another EPWM module earlier in the synchronization chain. An EPWM peripheral can be configured to use or ignore this signal. For the first EPWM module (EPWM0) this signal comes from a device pin. For subsequent EPWM modules this signal is passed from another EPWM peripheral. For example, EPWM2SYNCI is generated by the EPWM1 peripheral and the EPWM3SYNCI is generated (optional through internal multiplexer) by EPWM2 or from a device pin. See Section 12.4.3.4.2.3.2 for information on the synchronization order of a particular device. | |
EPWMxSYNCO | Time-base synchronization output. |
This output pulse is used to synchronize the counter of an EPWM module later in the synchronization chain. The EPWM module generates this signal from one of three event sources:
| |
PRD_eq | Time-base counter equal to the specified period. |
This signal is generated whenever the counter value is equal to the active period register value. That is when TBCNT = TBPRD. | |
CNT_zero | Time-base counter equal to zero. |
This signal is generated whenever the counter value is zero. That is when TBCNT equals 0000h. | |
CMPB_eq | Time-base counter equal to active counter-compare B register (TBCNT = CMPB). |
This event is generated by the counter-compare submodule and used by the synchronization out logic. | |
CNT_dir | Time-base counter direction. |
Indicates the current direction of the EPWM's time-base counter. This signal is high when the counter is increasing and low when it is decreasing. | |
CNT_max | Time-base counter equal max value (TBCNT = FFFFh). |
Generated event when the EPWM_TBCNT register value reaches its maximum value. This signal is only used only as a status bit. | |
TBCLK | Time-base clock. |
This is a prescaled version of the system clock — FICLK and is used by all submodules within the EPWMn. This clock determines the rate at which time-base counter increments or decrements. |