www.ti.com
Counter-Compare (CC) Submodule
The key signals associated with the
Table 2-5. Counter-Compare Submodule Key Signals
Signal | Description of Event | Registers Compared |
CTR = CMPA | TBCTR = CMPA | |
CTR = CMPB | TBCTR = CMPB | |
CTR = PRD | TBCTR = TBPRD | |
| Used to load active |
|
| shadow register |
|
CTR = ZERO | TBCTR = 0x0000 | |
| Used to load active |
|
| shadow register |
|
2.3.3 Operational Highlights for the Counter-Compare Submodule
The
1.CTR = CMPA:
2.CTR = CMPB:
For
The
∙Shadow Mode:
The shadow mode for the CMPA is enabled by clearing the CMPCTL[SHDWAMODE] bit and the shadow register for CMPB is enabled by clearing the CMPCTL[SHDWBMODE] bit. Shadow mode is enabled by default for both CMPA and CMPB.
If the shadow register is enabled then the content of the shadow register is transferred to the active register on one of the following events:
–CTR = PRD:
–CTR = Zero:
–Both CTR = PRD and CTR = Zero
Which of these three events is specified by the CMPCTL[LOADAMODE] and CMPCTL[LOADBMODE] register bits. Only the active register contents are used by the
∙Immediate Load Mode:
If immediate load mode is selected (i.e., TBCTL[SHADWAMODE] = 1 or TBCTL[SHADWBMODE] = 1), then a read from or a write to the register will go directly to the active register.
2.3.4Count Mode Timing Waveforms
The
∙
∙
34 | ePWM Submodules |