SPRUIZ1B July 2023 – August 2024 TMS320F28P650DH , TMS320F28P650DK , TMS320F28P650SH , TMS320F28P650SK , TMS320F28P659DH-Q1 , TMS320F28P659DK-Q1 , TMS320F28P659SH-Q1
Table 20-2 lists the memory-mapped registers for the CMPSS_REGS registers. All register offset addresses not listed in Table 20-2 should be considered as reserved locations and the register contents should not be modified.
Offset | Acronym | Register Name | Write Protection | Section |
---|---|---|---|---|
0h | COMPCTL | CMPSS Comparator Control Register | EALLOW | Go |
1h | COMPHYSCTL | CMPSS Comparator Hysteresis Control Register | EALLOW | Go |
2h | COMPSTS | CMPSS Comparator Status Register | Go | |
3h | COMPSTSCLR | CMPSS Comparator Status Clear Register | EALLOW | Go |
4h | COMPDACHCTL | CMPSS High DAC Control Register | EALLOW | Go |
5h | COMPDACHCTL2 | CMPSS High DAC Control Register 2 | EALLOW | Go |
6h | DACHVALS | CMPSS High DAC Value Shadow Register | Go | |
7h | DACHVALA | CMPSS High DAC Value Active Register | Go | |
8h | RAMPHREFA | CMPSS High Ramp Reference Active Register | Go | |
Ah | RAMPHREFS | CMPSS High Ramp Reference Shadow Register | Go | |
Ch | RAMPHSTEPVALA | CMPSS High Ramp Step Value Active Register | Go | |
Dh | RAMPHCTLA | CMPSS High Ramp Control Active Register | Go | |
Eh | RAMPHSTEPVALS | CMPSS High Ramp Step Value Shadow Register | Go | |
Fh | RAMPHCTLS | CMPSS High Ramp Control Shadow Register | Go | |
10h | RAMPHSTS | CMPSS High Ramp Status Register | Go | |
12h | DACLVALS | CMPSS Low DAC Value Shadow Register | Go | |
13h | DACLVALA | CMPSS Low DAC Value Active Register | Go | |
14h | RAMPHDLYA | CMPSS High Ramp Delay Active Register | Go | |
15h | RAMPHDLYS | CMPSS High Ramp Delay Shadow Register | Go | |
16h | CTRIPLFILCTL | CTRIPL Filter Control Register | EALLOW | Go |
17h | CTRIPLFILCLKCTL | CTRIPL Filter Clock Control Register | EALLOW | Go |
18h | CTRIPHFILCTL | CTRIPH Filter Control Register | EALLOW | Go |
19h | CTRIPHFILCLKCTL | CTRIPH Filter Clock Control Register | EALLOW | Go |
1Ah | COMPLOCK | CMPSS Lock Register | EALLOW | Go |
1Ch | DACHVALS2 | CMPSS High DAC Value Shadow Register 2 | Go | |
1Dh | DACLVALS2 | CMPSS Low DAC Value Shadow Register 2 | Go | |
24h | COMPDACLCTL | CMPSS Low DAC Control Register | EALLOW | Go |
25h | COMPDACLCTL2 | CMPSS Low DAC Control Register 2 | EALLOW | Go |
28h | RAMPLREFA | CMPSS Low Ramp Reference Active Register | Go | |
2Ah | RAMPLREFS | CMPSS Low Ramp Reference Shadow Register | Go | |
2Ch | RAMPLSTEPVALA | CMPSS Low Ramp Step Value Active Register | Go | |
2Dh | RAMPLCTLA | CMPSS Low Ramp Control Active Register | Go | |
2Eh | RAMPLSTEPVALS | CMPSS Low Ramp Step Value Shadow Register | Go | |
2Fh | RAMPLCTLS | CMPSS Low Ramp Control Shadow Register | Go | |
30h | RAMPLSTS | CMPSS Low Ramp Status Register | Go | |
34h | RAMPLDLYA | CMPSS Low Ramp Delay Active Register | Go | |
35h | RAMPLDLYS | CMPSS Low Ramp Delay Shadow Register | Go | |
37h | CTRIPLFILCLKCTL2 | CTRIPL Filter Clock Control Register 2 | EALLOW | Go |
39h | CTRIPHFILCLKCTL2 | CTRIPH Filter Clock Control Register 2 | EALLOW | Go |
Complex bit access types are encoded to fit into small table cells. Table 20-3 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 |
WSonce | W Sonce | Write Set once |
Reset or Default Value | ||
-n | Value after reset or the default value |
COMPCTL is shown in Figure 20-7 and described in Table 20-4.
Return to the Summary Table.
CMPSS Comparator Control Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
COMPDACE | ASYNCLEN | CTRIPOUTLSEL | CTRIPLSEL | COMPLINV | COMPLSOURCE | ||
R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | ||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | ASYNCHEN | CTRIPOUTHSEL | CTRIPHSEL | COMPHINV | COMPHSOURCE | ||
R-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | ||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15 | COMPDACE | R/W | 0h | Comparator/DAC enable. 0 Comparator/DAC disabled 1 Comparator/DAC enabled Reset type: SYSRSn |
14 | ASYNCLEN | R/W | 0h | Low comparator asynchronous path enable. Allows asynchronous comparator output to feed into OR gate with latched digital filter signal when CTRIPLSEL=3 or CTRIPOUTLSEL=3. 0 Asynchronous comparator output does not feed into OR gate with latched digital filter output 1 Asynchronous comparator output feeds into OR gate with latched digital filter output Reset type: SYSRSn |
13-12 | CTRIPOUTLSEL | R/W | 0h | Low comparator CTRIPOUTL source select. 0 Asynchronous comparator output drives CTRIPOUTL 1 Synchronous comparator output drives CTRIPOUTL 2 Output of digital filter drives CTRIPOUTL 3 Latched output of digital filter drives CTRIPOUTL Reset type: SYSRSn |
11-10 | CTRIPLSEL | R/W | 0h | Low comparator CTRIPL source select. 0 Asynchronous comparator output drives CTRIPL 1 Synchronous comparator output drives CTRIPL 2 Output of digital filter drives CTRIPL 3 Latched output of digital filter drives CTRIPL Reset type: SYSRSn |
9 | COMPLINV | R/W | 0h | Low comparator output invert. 0 Output of comparator is not inverted 1 Output of comparator is inverted Reset type: SYSRSn |
8 | COMPLSOURCE | R/W | 0h | Low comparator input source. 0 Inverting input of comparator driven by internal DAC 1 Inverting input of comparator driven through external pin Reset type: SYSRSn |
7 | RESERVED | R | 0h | Reserved |
6 | ASYNCHEN | R/W | 0h | High comparator asynchronous path enable. Allows asynchronous comparator output to feed into OR gate with latched digital filter signal when CTRIPHSEL=3 or CTRIPOUTHSEL=3. 0 Asynchronous comparator output does not feed into OR gate with latched digital filter output 1 Asynchronous comparator output feeds into OR gate with latched digital filter output Reset type: SYSRSn |
5-4 | CTRIPOUTHSEL | R/W | 0h | High comparator CTRIPOUTH source select. 0 Asynchronous comparator output drives CTRIPOUTH 1 Synchronous comparator output drives CTRIPOUTH 2 Output of digital filter drives CTRIPOUTH 3 Latched output of digital filter drives CTRIPOUTH Reset type: SYSRSn |
3-2 | CTRIPHSEL | R/W | 0h | High comparator CTRIPH source select. 0 Asynchronous comparator output drives CTRIPH 1 Synchronous comparator output drives CTRIPH 2 Output of digital filter drives CTRIPH 3 Latched output of digital filter drives CTRIPH Reset type: SYSRSn |
1 | COMPHINV | R/W | 0h | High comparator output invert. 0 Output of comparator is not inverted 1 Output of comparator is inverted Reset type: SYSRSn |
0 | COMPHSOURCE | R/W | 0h | High comparator input source. 0 Inverting input of comparator driven by internal DAC 1 Inverting input of comparator driven through external pin Reset type: SYSRSn |
COMPHYSCTL is shown in Figure 20-8 and described in Table 20-5.
Return to the Summary Table.
CMPSS Comparator Hysteresis Control Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | COMPHYS | ||||||
R-0h | R/W-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-4 | RESERVED | R | 0h | Reserved |
3-0 | COMPHYS | R/W | 0h | Comparator hysteresis. Sets the amount of hysteresis on the comparator inputs. 0 None 1 Set to typical hysteresis 2 Set to 2x of typical hysteresis 3 Set to 3x of typical hysteresis 4 Set to 4x of typical hysteresis others : undefined Reset type: SYSRSn |
COMPSTS is shown in Figure 20-9 and described in Table 20-6.
Return to the Summary Table.
CMPSS Comparator Status Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | COMPLLATCH | COMPLSTS | |||||
R-0h | R-0h | R-0h | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | COMPHLATCH | COMPHSTS | |||||
R-0h | R-0h | R-0h | |||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-10 | RESERVED | R | 0h | Reserved |
9 | COMPLLATCH | R | 0h | Latched value of low comparator digital filter output Reset type: SYSRSn |
8 | COMPLSTS | R | 0h | Low comparator digital filter output Reset type: SYSRSn |
7-2 | RESERVED | R | 0h | Reserved |
1 | COMPHLATCH | R | 0h | Latched value of high comparator digital filter output Reset type: SYSRSn |
0 | COMPHSTS | R | 0h | High comparator digital filter output Reset type: SYSRSn |
COMPSTSCLR is shown in Figure 20-10 and described in Table 20-7.
Return to the Summary Table.
CMPSS Comparator Status Clear Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | LSYNCCLREN | LLATCHCLR | RESERVED | ||||
R-0h | R/W-0h | R-0/W1S-0h | R-0h | ||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | HSYNCCLREN | HLATCHCLR | RESERVED | ||||
R-0h | R/W-0h | R-0/W1S-0h | R-0h | ||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-11 | RESERVED | R | 0h | Reserved |
10 | LSYNCCLREN | R/W | 0h | Low comparator latch EPWMSYNCPER clear. Enable EPWMSYNCPER reset of low comparator digital filter output latch COMPSTS[COMPLLATCH]. 0 EPWMSYNCPER will not reset latch 1 EPWMSYNCPER will reset latch Reset type: SYSRSn |
9 | LLATCHCLR | R-0/W1S | 0h | Low comparator latch software clear. Perform software reset of low comparator digital filter output latch COMPSTS[COMPLLATCH]. Reads always return 0. 0 No effect 1 Generate a single pulse of latch reset signal for COMPSTS[COMPLLATCH] Reset type: SYSRSn |
8-3 | RESERVED | R | 0h | Reserved |
2 | HSYNCCLREN | R/W | 0h | High comparator latch EPWMSYNCPER clear. Enable EPWMSYNCPER reset of high comparator digital filter output latch COMPSTS[COMPHLATCH]. 0 EPWMSYNCPER will not reset latch 1 EPWMSYNCPER will reset latch Reset type: SYSRSn |
1 | HLATCHCLR | R-0/W1S | 0h | High comparator latch software clear. Perform software reset of high comparator digital filter output latch COMPSTS[COMPHLATCH]. Reads always return 0. 0 No effect 1 Generate a single pulse of latch reset signal for COMPSTS[COMPHLATCH] Reset type: SYSRSn |
0 | RESERVED | R | 0h | Reserved |
COMPDACHCTL is shown in Figure 20-11 and described in Table 20-8.
Return to the Summary Table.
CMPSS High DAC Control Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
FREESOFT | RAMPDIR | BLANKEN | BLANKSOURCE | ||||
R/W-0h | R/W-0h | R/W-0h | R/W-0h | ||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SWLOADSEL | RAMPLOADSEL | SELREF | RAMPSOURCE | DACSOURCE | |||
R/W-0h | R/W-0h | R/W-0h | R/W-0h | R/W-0h | |||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-14 | FREESOFT | R/W | 0h | Free-run or software-run emulation behavior. Behavior of the High/Low ramp generators during emulation suspend. 00b Ramp generator stops immediately during emulation suspend 01b Ramp generator completes current ramp and stops at next EPWMSYNCPER during emulation suspend 1Xb Ramp generator runs freely Reset type: SYSRSn |
13 | RAMPDIR | R/W | 0h | High Ramp Generator Direction control bit. 0 Decrementing Ramp. 1 Incrementing Ramp. Reset type: SYSRSn |
12 | BLANKEN | R/W | 0h | COMPH EPWMBLANK enable. This bit enables the EPWMBLANK signal. 0 EPWMBLANK signal is disabled. 1 EPWMBLANK signal is enabled. Reset type: SYSRSn |
11-8 | BLANKSOURCE | R/W | 0h | COMPH EPWMBLANK source select. This bit field determines which EPWMnBLANK is passed on as the EPWMBLANK signal. Where n represents the maximum number of EPWMBLANK signals available on the device: 0 EPWM1BLANK 1 EPWM2BLANK 2 EPWM3BLANK ... n-1 EPWMnBLANK Reset type: SYSRSn |
7 | SWLOADSEL | R/W | 0h | Software load select. Determines whether DACxVALA is updated from DACxVALS on SYSCLK or EPWMSYNCPER. 0 DACxVALA is updated from DACxVALS on SYSCLK 1 DACxVALA is updated from DACxVALS on EPWMSYNCPER Reset type: SYSRSn |
6 | RAMPLOADSEL | R/W | 0h | Ramp load select. Determines whether RAMPHSTS is updated from RAMPHREFA or RAMPHREFS when COMPSTS[COMPHSTS] is triggered. 0 RAMPHSTS is loaded from RAMPHREFA 1 RAMPHSTS is loaded from RAMPHREFS Reset type: SYSRSn |
5 | SELREF | R/W | 0h | DAC reference select. Determines which voltage supply is used as the reference for the internal comparator DACs. 0 VDDA is the voltage reference for the DAC 1 VDAC is the voltage reference for the DAC Reset type: SYSRSn |
4-1 | RAMPSOURCE | R/W | 0h | High Ramp generator source select. Determines which EPWMSYNCPER signal is used within the COMPH Where n represents the maximum number of EPWMSYNCPER signals available on the device: 0 EPWM1SYNCPER 1 EPWM2SYNCPER 2 EPWM3SYNCPER ... n-1 EPWMnSYNCPER Reset type: SYSRSn |
0 | DACSOURCE | R/W | 0h | DACH source select. Determines whether DACHVALA is updated from DACHVALS or from the high ramp generator. 0 DACHVALA is updated from DACHVALS 1 DACHVALA is updated from the high ramp generator Reset type: SYSRSn |
COMPDACHCTL2 is shown in Figure 20-12 and described in Table 20-9.
Return to the Summary Table.
CMPSS High DAC Control Register 2
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | XTRIGCFG | RESERVED | RAMPSOURCEUSEL | RESERVED | BLANKSOURCEUSEL | ||
R-0h | R/W-0h | R-0h | R/W-0h | R-0h | R/W-0h | ||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | DEACTIVESEL | DEENABLE | |||||
R-0h | R/W-0h | R/W-0h | |||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-14 | RESERVED | R | 0h | Reserved |
13-12 | XTRIGCFG | R/W | 0h | Ramp Generator Cross Trigger Configuration 00 : RAMPH and RAMPL operate independently (RAMPH SOR and RAMPL SOR are triggered by their corresponding selected PWMSYNCx signals) 01 : RAMPL is cross triggered by RAMPH (RAMPH SOR is triggered by its selected PWMSYNCx signal and RAMPL SOR is triggered by RAMPH EOR) 10 : RAMPH is cross triggered by RAMPL (RAMPL SOR is triggered by its selected PWMSYNCx signal and RAMPH SOR is triggered by RAMPL EOR 11 : Reserved Note : RAMPy SOR = Start of Ramp, RAMPy EOR = End of Ramp (COMPySTS signal) XTRIGCFG[0] = XTRIGCFG-L XTRIGCFG[1] = XTRIGCFG-H Reset type: SYSRSn |
11 | RESERVED | R | 0h | Reserved |
10 | RAMPSOURCEUSEL | R/W | 0h | 0: Selects EPWM1 to 16 as RAMP source for RAMPH 1: Selects EPWM17 to 32 as RAMP source for RAMPH Reset type: SYSRSn |
9 | RESERVED | R | 0h | Reserved |
8 | BLANKSOURCEUSEL | R/W | 0h | 0: Selects EPWM1 to 16 as BLANK source for COMPH 1: Selects EPWM17 to 32 as BLANK source for COMPH Reset type: SYSRSn |
7-6 | RESERVED | R | 0h | Reserved |
5-1 | DEACTIVESEL | R/W | 0h | DEACTIVE source select. This bit field determines which EPWMn.DEACTIVE is passed on as the DEACTIVE signal. Where n represents the maximum number of EPWMDEACTIVE signals available on the device: 0 : EPWM1.DEACTIVE 1 : EPWM2.DEACTIVE 2 : EPWM3.DEACTIVE 3 : EPWM4.DEACTIVE .... n-1 : EPWMn.DEACTIVE Reset type: SYSRSn |
0 | DEENABLE | R/W | 0h | Diode Emulation mode enable. 0 DE mode features disabled. 1 DE mode features enabled. Reset type: SYSRSn |
DACHVALS is shown in Figure 20-13 and described in Table 20-10.
Return to the Summary Table.
CMPSS High DAC Value Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DACVAL | ||||||
R-0h | R/W-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DACVAL | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-12 | RESERVED | R | 0h | Reserved |
11-0 | DACVAL | R/W | 0h | High DAC shadow value. When COMPDACCTL[DACSOURCE]=0, the value of DACHVALS is loaded into DACHVALA on the trigger signal selected by COMPDACCTL[SWLOADSEL]. Reset type: SYSRSn |
DACHVALA is shown in Figure 20-14 and described in Table 20-11.
Return to the Summary Table.
CMPSS High DAC Value Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DACVAL | ||||||
R-0h | R-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DACVAL | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-12 | RESERVED | R | 0h | Reserved |
11-0 | DACVAL | R | 0h | High DAC active value. Value that is actively driven by the high DAC. Reset type: SYSRSn |
RAMPHREFA is shown in Figure 20-15 and described in Table 20-12.
Return to the Summary Table.
CMPSS High Ramp Reference Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPHREF | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPHREF | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPHREF | R | 0h | High Ramp reference active value. Latched value to be loaded into ramp generator RAMHPSTS. Reset type: SYSRSn |
RAMPHREFS is shown in Figure 20-16 and described in Table 20-13.
Return to the Summary Table.
CMPSS High Ramp Reference Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPHREF | |||||||
R/W-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPHREF | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPHREF | R/W | 0h | High Ramp reference shadow. Unlatched value to be loaded into ramp generator RAMPHSTS. Reset type: SYSRSn |
RAMPHSTEPVALA is shown in Figure 20-17 and described in Table 20-14.
Return to the Summary Table.
CMPSS High Ramp Step Value Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPHSTEPVAL | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPHSTEPVAL | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPHSTEPVAL | R | 0h | High Ramp step value active. Latched value that will be subtracted from RAMPHSTS. Reset type: SYSRSn |
RAMPHCTLA is shown in Figure 20-18 and described in Table 20-15.
Return to the Summary Table.
CMPSS High Ramp Control Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | RAMPCLKDIV | ||||||
R-0h | R-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-4 | RESERVED | R | 0h | Reserved |
3-0 | RAMPCLKDIV | R | 0h | Ramp High Clock Divider Active Value RAMPCLK = SYSCLK/(RAMPCLKDIV+1) Reset type: SYSRSn |
RAMPHSTEPVALS is shown in Figure 20-19 and described in Table 20-16.
Return to the Summary Table.
CMPSS High Ramp Step Value Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPHSTEPVAL | |||||||
R/W-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPHSTEPVAL | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPHSTEPVAL | R/W | 0h | High Ramp step value shadow. Unlatched value to be loaded into RAMPHSTEPVALA. Reset type: SYSRSn |
RAMPHCTLS is shown in Figure 20-20 and described in Table 20-17.
Return to the Summary Table.
CMPSS High Ramp Control Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | RAMPCLKDIV | ||||||
R-0h | R/W-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-4 | RESERVED | R | 0h | Reserved |
3-0 | RAMPCLKDIV | R/W | 0h | Ramp High Clock Divider Shadow Value This will be the unlatched value that will be loaded into the RAMPCLKDIV field of the RAMPCTLA register Reset type: SYSRSn |
RAMPHSTS is shown in Figure 20-21 and described in Table 20-18.
Return to the Summary Table.
CMPSS High Ramp Status Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPHVALUE | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPHVALUE | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPHVALUE | R | 0h | High Ramp value. Present value of ramp generator. Reset type: SYSRSn |
DACLVALS is shown in Figure 20-22 and described in Table 20-19.
Return to the Summary Table.
CMPSS Low DAC Value Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DACVAL | ||||||
R-0h | R/W-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DACVAL | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-12 | RESERVED | R | 0h | Reserved |
11-0 | DACVAL | R/W | 0h | Low DAC shadow value. value to be loaded into DACLVALA on the trigger signal selected by COMPDACCTL[SWLOADSEL]. Reset type: SYSRSn |
DACLVALA is shown in Figure 20-23 and described in Table 20-20.
Return to the Summary Table.
CMPSS Low DAC Value Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DACVAL | ||||||
R-0h | R-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DACVAL | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-12 | RESERVED | R | 0h | Reserved |
11-0 | DACVAL | R | 0h | Low DAC active value. Value that is actively driven by the low DAC. Reset type: SYSRSn |
RAMPHDLYA is shown in Figure 20-24 and described in Table 20-21.
Return to the Summary Table.
CMPSS High Ramp Delay Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DELAY | ||||||
R-0h | R-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DELAY | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-13 | RESERVED | R | 0h | Reserved |
12-0 | DELAY | R | 0h | High Ramp delay active value. Latched value of the number of cycles to delay the start of the ramp generator stepper after a EPWMSYNCPER is received. Reset type: SYSRSn |
RAMPHDLYS is shown in Figure 20-25 and described in Table 20-22.
Return to the Summary Table.
CMPSS High Ramp Delay Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DELAY | ||||||
R-0h | R/W-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DELAY | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-13 | RESERVED | R | 0h | Reserved |
12-0 | DELAY | R/W | 0h | High Ramp delay shadow value. Unlatched value to be loaded into RAMPHDLYA. Reset type: SYSRSn |
CTRIPLFILCTL is shown in Figure 20-26 and described in Table 20-23.
Return to the Summary Table.
CTRIPL Filter Control Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
FILINIT | THRESH | SAMPWIN | |||||
R-0/W1S-0h | R/W-0h | R/W-0h | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SAMPWIN | FILTINSEL | ||||||
R/W-0h | R/W-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15 | FILINIT | R-0/W1S | 0h | Low filter initialization. 0 No effect 1 Initialize all samples to the filter input value Reset type: SYSRSn |
14-9 | THRESH | R/W | 0h | Low filter majority voting threshold. At least THRESH samples of the opposite state must appear within the sample window in order for the output to change state. Threshold used is THRESH+1. Reset type: SYSRSn |
8-3 | SAMPWIN | R/W | 0h | Low filter sample window size. Number of samples to monitor is SAMPWIN+1. Reset type: SYSRSn |
2-0 | FILTINSEL | R/W | 0h | Low filter Input Mux Select Bit 0 Selects the COMPL output as the filter input 1 Selects the external signal EXT_FILTIN_L[1] as the filter input 2 Selects the external signal EXT_FILTIN_L[2] as the filter input ... ... 7 Selects the external signal EXT_FILTIN_L[7] as the filter input Reset type: SYSRSn |
CTRIPLFILCLKCTL is shown in Figure 20-27 and described in Table 20-24.
Return to the Summary Table.
CTRIPL Filter Clock Control Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
CLKPRESCALE | |||||||
R/W-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CLKPRESCALE | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | CLKPRESCALE | R/W | 0h | Low filter sample clock prescale. Number of system clocks between samples is CLKPRESCALE+1. Reset type: SYSRSn |
CTRIPHFILCTL is shown in Figure 20-28 and described in Table 20-25.
Return to the Summary Table.
CTRIPH Filter Control Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
FILINIT | THRESH | SAMPWIN | |||||
R-0/W1S-0h | R/W-0h | R/W-0h | |||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
SAMPWIN | FILTINSEL | ||||||
R/W-0h | R/W-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15 | FILINIT | R-0/W1S | 0h | High filter initialization. 0 No effect 1 Initialize all samples to the filter input value Reset type: SYSRSn |
14-9 | THRESH | R/W | 0h | High filter majority voting threshold. At least THRESH samples of the opposite state must appear within the sample window in order for the output to change state. Threshold used is THRESH+1. Reset type: SYSRSn |
8-3 | SAMPWIN | R/W | 0h | High filter sample window size. Number of samples to monitor is SAMPWIN+1. Reset type: SYSRSn |
2-0 | FILTINSEL | R/W | 0h | High filter Input Mux Select Bit 0 Selects the COMPH output as the filter input 1 Selects the external signal EXT_FILTIN_H[1] as the filter input 2 Selects the external signal EXT_FILTIN_H[2] as the filter input ... ... 7 Selects the external signal EXT_FILTIN_H[7] as the filter input Reset type: SYSRSn |
CTRIPHFILCLKCTL is shown in Figure 20-29 and described in Table 20-26.
Return to the Summary Table.
CTRIPH Filter Clock Control Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
CLKPRESCALE | |||||||
R/W-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CLKPRESCALE | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | CLKPRESCALE | R/W | 0h | High filter sample clock prescale. Number of system clocks between samples is CLKPRESCALE+1. Reset type: SYSRSn |
COMPLOCK is shown in Figure 20-30 and described in Table 20-27.
Return to the Summary Table.
CMPSS Lock Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | RESERVED | CTRIP | DACCTL | COMPHYSCTL | COMPCTL | ||
R-0h | R/WSonce-0h | R/WSonce-0h | R/WSonce-0h | R/WSonce-0h | R/WSonce-0h | ||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-5 | RESERVED | R | 0h | Reserved |
4 | RESERVED | R/WSonce | 0h | Reserved |
3 | CTRIP | R/WSonce | 0h | Lock write-access to the CTRIPxFILTCTL and CTRIPxFILCLKCTL* registers. 0 CTRIPxFILCTL and CTRIPxFILCLKCTL* registers are not locked. Write 0 to this bit has no effect. 1 CTRIPxFILCTL and CTRIPxFILCLKCTL* registers are locked. Only a system reset can clear this bit. Reset type: SYSRSn |
2 | DACCTL | R/WSonce | 0h | Lock write-access to the COMPDAC*CTL* register(s). 0 COMPDAC*CTL* register(s) not locked. Write 0 to this bit has no effect. 1 COMPDAC*CTL* register(s) locked. Only a system reset can clear this bit. Reset type: SYSRSn |
1 | COMPHYSCTL | R/WSonce | 0h | Lock write-access to the COMPHYSCTL register. 0 COMPHYSCTL register is not locked. Write 0 to this bit has no effect. 1 COMPHYSCTL register is locked. Only a system reset can clear this bit. Reset type: SYSRSn |
0 | COMPCTL | R/WSonce | 0h | Lock write-access to the COMPCTL register. 0 COMPCTL register is not locked. Write 0 to this bit has no effect. 1 COMPCTL register is locked. Only a system reset can clear this bit. Reset type: SYSRSn |
DACHVALS2 is shown in Figure 20-31 and described in Table 20-28.
Return to the Summary Table.
CMPSS High DAC Value Shadow Register 2
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DACVAL | ||||||
R-0h | R/W-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DACVAL | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-12 | RESERVED | R | 0h | Reserved |
11-0 | DACVAL | R/W | 0h | High DAC shadow register2 value. When COMPDACCTL[DACSOURCE]=0, the value of DACHVALS2 is loaded into DACHVALA when DE mode is enabled and selected DEACTIVE input is asserted. Reset type: SYSRSn |
DACLVALS2 is shown in Figure 20-32 and described in Table 20-29.
Return to the Summary Table.
CMPSS Low DAC Value Shadow Register 2
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DACVAL | ||||||
R-0h | R/W-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DACVAL | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-12 | RESERVED | R | 0h | Reserved |
11-0 | DACVAL | R/W | 0h | Low DAC shadow register2 value. Value of DACHVALS2 is loaded into DACHVALA when DE mode is enabled and selected DEACTIVE input is asserted. Reset type: SYSRSn |
COMPDACLCTL is shown in Figure 20-33 and described in Table 20-30.
Return to the Summary Table.
CMPSS Low DAC Control Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | RAMPDIR | BLANKEN | BLANKSOURCE | ||||
R-0h | R/W-0h | R/W-0h | R/W-0h | ||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | RAMPLOADSEL | RESERVED | RAMPSOURCE | DACSOURCE | |||
R-0h | R/W-0h | R-0h | R/W-0h | R/W-0h | |||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-14 | RESERVED | R | 0h | Reserved |
13 | RAMPDIR | R/W | 0h | Low Ramp Generator Direction control bit. 0 Decrementing Ramp. 1 Incrementing Ramp. Reset type: SYSRSn |
12 | BLANKEN | R/W | 0h | COMPL EPWMBLANK enable. This bit enables the EPWMBLANK signal. 0 EPWMBLANK signal is disabled. 1 EPWMBLANK signal is enabled. Reset type: SYSRSn |
11-8 | BLANKSOURCE | R/W | 0h | COMPL EPWMBLANK source select. This bit field determines which EPWMnBLANK is passed on as the EPWMBLANK signal. Where n represents the maximum number of EPWMBLANK signals available on the device: 0 EPWM1BLANK 1 EPWM2BLANK 2 EPWM3BLANK ... n-1 EPWMnBLANK Reset type: SYSRSn |
7 | RESERVED | R | 0h | Reserved |
6 | RAMPLOADSEL | R/W | 0h | Ramp load select. Determines whether RAMPLSTS is updated from RAMPLREFA or RAMPLREFS when COMPSTS[COMPLSTS] is triggered. 0 RAMPLSTS is loaded from RAMPLREFA 1 RAMPLSTS is loaded from RAMPLREFS Reset type: SYSRSn |
5 | RESERVED | R | 0h | Reserved |
4-1 | RAMPSOURCE | R/W | 0h | Low Ramp generator source select. Determines which EPWMSYNCPER signal is used within the COMPL Where n represents the maximum number of EPWMSYNCPER signals available on the device: 0 EPWM1SYNCPER 1 EPWM2SYNCPER 2 EPWM3SYNCPER ... n-1 EPWMnSYNCPER Reset type: SYSRSn |
0 | DACSOURCE | R/W | 0h | DACL source select. Determines whether DACLVALA is updated from DACLVALS or from the low ramp generator. 0 DACLVALA is updated from DACLVALS 1 DACLVALA is updated from the low ramp generator Reset type: SYSRSn |
COMPDACLCTL2 is shown in Figure 20-34 and described in Table 20-31.
Return to the Summary Table.
CMPSS Low DAC Control Register 2
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | RAMPSOURCEUSEL | RESERVED | BLANKSOURCEUSEL | ||||
R-0h | R/W-0h | R-0h | R/W-0h | ||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-11 | RESERVED | R | 0h | Reserved |
10 | RAMPSOURCEUSEL | R/W | 0h | 0: Selects EPWM1 to 16 as RAMP source for RAMPL 1: Selects EPWM17 to 32 as RAMP source for RAMPL Reset type: SYSRSn |
9 | RESERVED | R | 0h | Reserved |
8 | BLANKSOURCEUSEL | R/W | 0h | 0: Selects EPWM1 to 16 as BLANK source for COMPL 1: Selects EPWM17 to 32 as BLANK source for COMPL Reset type: SYSRSn |
7-0 | RESERVED | R | 0h | Reserved |
RAMPLREFA is shown in Figure 20-35 and described in Table 20-32.
Return to the Summary Table.
CMPSS Low Ramp Reference Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPLREF | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPLREF | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPLREF | R | 0h | Low Ramp reference active value. Latched value to be loaded into ramp generator RAMHPSTS. Reset type: SYSRSn |
RAMPLREFS is shown in Figure 20-36 and described in Table 20-33.
Return to the Summary Table.
CMPSS Low Ramp Reference Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPLREF | |||||||
R/W-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPLREF | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPLREF | R/W | 0h | Low Ramp reference shadow. Unlatched value to be loaded into ramp generator RAMPHSTS. Reset type: SYSRSn |
RAMPLSTEPVALA is shown in Figure 20-37 and described in Table 20-34.
Return to the Summary Table.
CMPSS Low Ramp Step Value Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPLSTEPVAL | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPLSTEPVAL | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPLSTEPVAL | R | 0h | Low Ramp step value active. Latched value that will be subtracted from RAMPHSTS. Reset type: SYSRSn |
RAMPLCTLA is shown in Figure 20-38 and described in Table 20-35.
Return to the Summary Table.
CMPSS Low Ramp Control Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | RAMPCLKDIV | ||||||
R-0h | R-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-4 | RESERVED | R | 0h | Reserved |
3-0 | RAMPCLKDIV | R | 0h | Ramp Low Clock Divider Active Value RAMPCLK = SYSCLK/(RAMPCLKDIV+1) Reset type: SYSRSn |
RAMPLSTEPVALS is shown in Figure 20-39 and described in Table 20-36.
Return to the Summary Table.
CMPSS Low Ramp Step Value Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPLSTEPVAL | |||||||
R/W-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPLSTEPVAL | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPLSTEPVAL | R/W | 0h | Low Ramp step value shadow. Unlatched value to be loaded into RAMPHSTEPVALA. Reset type: SYSRSn |
RAMPLCTLS is shown in Figure 20-40 and described in Table 20-37.
Return to the Summary Table.
CMPSS Low Ramp Control Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RESERVED | RAMPCLKDIV | ||||||
R-0h | R/W-0h | ||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-4 | RESERVED | R | 0h | Reserved |
3-0 | RAMPCLKDIV | R/W | 0h | Ramp Low Clock Divider Shadow Value This will be the unlatched value that will be loaded into the RAMPCLKDIV field of the RAMPCTLA register Reset type: SYSRSn |
RAMPLSTS is shown in Figure 20-41 and described in Table 20-38.
Return to the Summary Table.
CMPSS Low Ramp Status Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RAMPLVALUE | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
RAMPLVALUE | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-0 | RAMPLVALUE | R | 0h | Low Ramp value. Present value of ramp generator. Reset type: SYSRSn |
RAMPLDLYA is shown in Figure 20-42 and described in Table 20-39.
Return to the Summary Table.
CMPSS Low Ramp Delay Active Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DELAY | ||||||
R-0h | R-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DELAY | |||||||
R-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-13 | RESERVED | R | 0h | Reserved |
12-0 | DELAY | R | 0h | Low Ramp delay active value. Latched value of the number of cycles to delay the start of the ramp generator stepper after a EPWMSYNCPER is received. Reset type: SYSRSn |
RAMPLDLYS is shown in Figure 20-43 and described in Table 20-40.
Return to the Summary Table.
CMPSS Low Ramp Delay Shadow Register
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | DELAY | ||||||
R-0h | R/W-0h | ||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
DELAY | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-13 | RESERVED | R | 0h | Reserved |
12-0 | DELAY | R/W | 0h | Low Ramp delay shadow value. Unlatched value to be loaded into RAMPHDLYA. Reset type: SYSRSn |
CTRIPLFILCLKCTL2 is shown in Figure 20-44 and described in Table 20-41.
Return to the Summary Table.
CTRIPL Filter Clock Control Register 2
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CLKPRESCALEU | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-8 | RESERVED | R | 0h | Reserved |
7-0 | CLKPRESCALEU | R/W | 0h | COMP Low filter sample clock prescale Upper Bits. The effective prescale value is (CLKPRESCALEH:CLKPRESCALE)+1 Reset type: SYSRSn |
CTRIPHFILCLKCTL2 is shown in Figure 20-45 and described in Table 20-42.
Return to the Summary Table.
CTRIPH Filter Clock Control Register 2
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 |
RESERVED | |||||||
R-0h | |||||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CLKPRESCALEU | |||||||
R/W-0h | |||||||
Bit | Field | Type | Reset | Description |
---|---|---|---|---|
15-8 | RESERVED | R | 0h | Reserved |
7-0 | CLKPRESCALEU | R/W | 0h | COMP High filter sample clock prescale Upper Bits. The effective prescale value is (CLKPRESCALEH:CLKPRESCALE)+1 Reset type: SYSRSn |