www.ti.com
Figure 4-4. Time-Base Control Register (TBCTL)
15 | 14 | 13 | 12 |
| 10 | 9 | 8 |
FREE, SOFT | PHSDIR |
| CLKDIV |
|
| HSPCLKDIV | |
|
|
|
| ||||
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
HSPCLKDIV | SWFSYNC | SYNCOSEL |
| PRDLD | PHSEN |
| CTRMODE |
|
| ||||||
LEGEND: R/W = Read/Write; R = Read only; |
|
|
|
|
Table 4-4. Time-Base Control Register (TBCTL) Field Descriptions
Bit | Field | Value | Description |
|
| |
15:14 | FREE, SOFT |
| Emulation Mode Bits. These bits select the behavior of the ePWM |
| ||
|
|
| emulation events: |
|
| |
|
| 00 | Stop after the next |
|
| |
|
| 01 | Stop when counter completes a whole cycle: |
|
| |
|
|
| ∙ |
|
| |
|
|
| ∙ |
| ||
|
|
| ∙ |
| ||
|
| 1X | Free run |
|
| |
13 | PHSDIR |
| Phase Direction Bit. |
|
| |
|
|
| This bit is only used when the |
| ||
|
|
| PHSDIR bit indicates the direction the | |||
|
|
| event occurs and a new phase value is loaded from the phase (TBPHS) register. This is |
| ||
|
|
| irrespective of the direction of the counter before the synchronization event.. |
|
| |
|
|
| In the |
|
| |
|
| 0 | Count down after the synchronization event. |
|
| |
|
| 1 | Count up after the synchronization event. |
|
| |
12:10 | CLKDIV |
|
|
| ||
|
|
| These bits determine part of the |
|
| |
|
|
| TBCLK = SYSCLKOUT / (HSPCLKDIV × CLKDIV) |
|
| |
|
| 000 | /1 (default on reset) |
|
| |
|
| 001 | /2 |
|
|
|
|
| 010 | /4 |
|
|
|
|
| 011 | /8 |
|
|
|
|
| 100 | /16 |
|
| |
|
| 101 | /32 |
|
| |
|
| 110 | /64 |
|
| |
|
| 111 | /128 |
|
| |
9:7 | HSPCLKDIV |
| High Speed |
|
| |
|
|
| These bits determine part of the |
|
| |
|
|
| TBCLK = SYSCLKOUT / (HSPCLKDIV × CLKDIV) |
|
| |
|
|
| This divisor emulates the HSPCLK in the TMS320x281x system as used on the Event Manager |
| ||
|
|
| (EV) peripheral. |
|
| |
|
| 000 | /1 |
|
|
|
|
| 001 | /2 (default on reset) |
|
| |
|
| 010 | /4 |
|
|
|
|
| 011 | /6 |
|
|
|
|
| 100 | /8 |
|
|
|
|
| 101 | /10 |
|
| |
|
| 110 | /12 |
|
| |
|
| 111 | /14 |
|
| |
Registers | 95 |