SPRUJ79 November 2024 F29H850TU , F29H859TU-Q1
Table 30-182 lists the memory-mapped registers for the DE_REGS registers. All register offset addresses not listed in Table 30-182 should be considered as reserved locations and the register contents should not be modified.
Offset | Acronym | Register Name | Protection |
---|---|---|---|
0h | DECTL | DE control register | |
4h | DECOMPSEL | DE comparator source select register | |
8h | DEACTCTL | DE Action Control | |
Ch | DESTS | DE Status register | |
10h | DEFRC | DE Status force register | |
14h | DECLR | DE Status clear register | |
20h | DEMONCNT | DE trip monitor counter | |
24h | DEMONCTL | DE monitor mode control | |
28h | DEMONSTEP | DE monitor counter step | |
2Ch | DEMONTHRES | DE monitor counter threshold |
Complex bit access types are encoded to fit into small table cells. Table 30-183 shows the codes that are used for access types in this section.
Access Type | Code | Description |
---|---|---|
Read Type | ||
R | R | Read |
R-0 | R -0 | Read Returns 0s |
Write Type | ||
W | W | Write |
W1S | W 1S | Write 1 to set |
Reset or Default Value | ||
-n | Value after reset or the default value | |
Register Array Variables | ||
i,j,k,l,m,n | When these variables are used in a register name, an offset, or an address, they refer to the value of a register array where the register is part of a group of repeating registers. The register groups form a hierarchical structure and the array is represented with a formula. | |
y | When this variable is used in a register name, an offset, or an address it refers to the value of a register array. |
DECTL is shown in Figure 30-275 and described in Table 30-184.
Return to the Summary Table.
DE control register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
REENTRYDLY | |||||||
R/W-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | MODE | ENABLE | |||||
R-0h | R/W-0h | R/W-0h | |||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-16 | RESERVED | R | 0h | Reserved |
15-8 | REENTRYDLY | R/W | 0h | Determines the blocking window after DEACTIVE flag is cleared in which setting of DEACTIVE flag is prevented from being set. 0 : No blocking 1 : Blocked until 1 EPWMSYNCPER event 2 : Blocked until 2 EPWMSYNCPER events . . 255 : Blocked until 255 EPWMSYNCPER events Reset type: SYSRSn |
7-2 | RESERVED | R | 0h | Reserved |
1 | MODE | R/W | 0h | 0 : DEACTIVE flag works in cycle by cycle mode. On every EPWMSYNCPER, set condition of DEACTIVE flag is evaluated. If the set condition is not present the flag is cleared. 1 : DEACTIVE flag works in one shot mode (hardware set) and software clear. Reset type: SYSRSn |
0 | ENABLE | R/W | 0h | DE function enable 0 : Diode Emulation mode functionality is disabled. DEACTIVE flag is not set on a TRIPH_OR_TRIPL event. 1 : Diode Emulation mode functionality is enabled. DEACTIVE flag is set on a TRIPH_OR_TRIPL event. Note: ENABLE bit is cleared on a EPWMTRIPOUT event. Software has to re-enable this bit after EPWMTRIPOUT condition is serviced. Reset type: SYSRSn |
DECOMPSEL is shown in Figure 30-276 and described in Table 30-185.
Return to the Summary Table.
Used to configure the comparator whose trip sources will be used.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | TRIPH | RESERVED | TRIPL | ||||||||||||||||||||||||||||
R-0h | R/W-0h | R-0h | R/W-0h | ||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-22 | RESERVED | R | 0h | Reserved |
21-16 | TRIPH | R/W | 0h | These bits determine the source of the TRIPH signal. Other Values defined in the 'ePWM DE TripH Selection' table Note: All the reserved encodings result in TRIPH being 0. Reset type: SYSRSn |
15-6 | RESERVED | R | 0h | Reserved |
5-0 | TRIPL | R/W | 0h | These bits determine the source of the TRIPL signal. Other Values defined in the 'ePWM DE TripL Selection' table Note: All the reserved encodings result in TRIPL being 0. Reset type: SYSRSn |
DEACTCTL is shown in Figure 30-277 and described in Table 30-186.
Return to the Summary Table.
Used to configure the PWM controls when in DE mode.
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | TRIPENABLE | ||||||
R-0h | R/W-0h | ||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | TRIPSELB | PWMB | RESERVED | TRIPSELA | PWMA | ||
R-0h | R/W-0h | R/W-0h | R-0h | R/W-0h | R/W-0h | ||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-17 | RESERVED | R | 0h | Reserved |
16 | TRIPENABLE | R/W | 0h | 0 : EPWMTRIPOUT does not bypass the diode emulation logic. 1 : EPWMTRIPOUT bypasses the diode emulation ePWM generation logic (not complete bypass of module) Reset type: SYSRSn |
15-7 | RESERVED | R | 0h | Reserved |
6 | TRIPSELB | R/W | 0h | 0 : TRIPH 1 : TRIPL Reset type: SYSRSn |
5-4 | PWMB | R/W | 0h | 00 : synchronized version of TRIPH or TRIPL signal as selected by the TRIPSELB 01 : synchronized and inverted version of TRIPH or TRIPL signal as selected by the TRIPSELB 10 : A constant 0 drives PWMB when DEACTIVE flag is set. 11 : A constant 1 drives PWMB when DEACTIVE flag is set. Reset type: SYSRSn |
3 | RESERVED | R | 0h | Reserved |
2 | TRIPSELA | R/W | 0h | 0 : TRIPH 1 : TRIPL Reset type: SYSRSn |
1-0 | PWMA | R/W | 0h | 00 : synchronized version of TRIPH or TRIPL signal as selected by the TRIPSELA 01 : synchronized and inverted version of TRIPH or TRIPL signal as selected by the TRIPSELA 10 : A constant 0 drives PWMA when DEACTIVE flag is set. 11 : A constant 1 drives PWMA when DEACTIVE flag is set. Reset type: SYSRSn |
DESTS is shown in Figure 30-278 and described in Table 30-187.
Return to the Summary Table.
DE Status register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DEACTIVE | ||||||
R-0h | R-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | DEACTIVE | R | 0h | 0 : Diode emulation mode is not active 1 : Diode emulation mode is active Reset type: SYSRSn |
DEFRC is shown in Figure 30-279 and described in Table 30-188.
Return to the Summary Table.
DE Status force register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DEACTIVE | ||||||
R-0h | R-0/W1S-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | DEACTIVE | R-0/W1S | 0h | 0 : No effect. 1 : Forces DEACTIVE flag to 1. Reset type: SYSRSn |
DECLR is shown in Figure 30-280 and described in Table 30-189.
Return to the Summary Table.
DE Status clear register
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DEACTIVE | ||||||
R-0h | R-0/W1S-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | DEACTIVE | R-0/W1S | 0h | 0 : No effect. 1 : Clears DEACTIVE flag. Reset type: SYSRSn |
DEMONCNT is shown in Figure 30-281 and described in Table 30-190.
Return to the Summary Table.
DE trip monitor counter
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | CNT | ||||||||||||||||||||||||||||||
R-0h | R-0h | ||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-16 | RESERVED | R | 0h | Reserved |
15-0 | CNT | R | 0h | An 16-bit counter which monitors the frequency of diode mode trip events. When TripHorTripL is active: Increment CNT (increment INCSTEP on every EPWMxSYNC) When TripHorTripL is in-active: Decrement CNT (decrement DECSTEP on every EPWMxSYNC) If( CNT > THRESHOLD) then generate DETRIP and clear the counter. If( (CNT - DECSTEP) < 0) then CNT = 0 If( (CNT + INCSTEP) >= 0xFFFF) then CNT = 0xFFFF Note : CNT is cleared when DECTL.ENABLE is 0 Note: DEMONTHRES == 0x0 should not generate trip as the DEMONTHRES and DEMONCNT registers have reset value of 0x0 Reset type: SYSRSn |
DEMONCTL is shown in Figure 30-282 and described in Table 30-191.
Return to the Summary Table.
DE monitor mode control
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 |
RESERVED | |||||||
R-0h | |||||||
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
RESERVED | |||||||
R-0h | |||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | ENABLE | ||||||
R-0h | R/W-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-1 | RESERVED | R | 0h | Reserved |
0 | ENABLE | R/W | 0h | Enable bit for DE Mode Monitor counter function. 0: DE Mode Monitor counter function is disabled 1: DE Mode Monitor counter function is enabled Reset type: SYSRSn |
DEMONSTEP is shown in Figure 30-283 and described in Table 30-192.
Return to the Summary Table.
DE monitor counter step
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DECSTEP | RESERVED | INCSTEP | ||||||||||||||||||||||||||||
R-0h | R/W-0h | R-0h | R/W-0h | ||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-24 | RESERVED | R | 0h | Reserved |
23-16 | DECSTEP | R/W | 0h | Defines the decrement step of DEMONCNT[CNT] counter. Reset type: SYSRSn |
15-8 | RESERVED | R | 0h | Reserved |
7-0 | INCSTEP | R/W | 0h | Defines the increment step of DEMONCNT[CNT] counter. Reset type: SYSRSn |
DEMONTHRES is shown in Figure 30-284 and described in Table 30-193.
Return to the Summary Table.
DE monitor counter threshold
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | THRESHOLD | ||||||||||||||||||||||||||||||
R-0h | R/W-0h | ||||||||||||||||||||||||||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
31-16 | RESERVED | R | 0h | Reserved |
15-0 | THRESHOLD | R/W | 0h | Defines the threshold of DE monitor counter. Reset type: SYSRSn |