40.7.17 Waveform Control
| Symbol | Description | Symbol | Description | Symbol | Description |
|---|---|---|---|---|---|
| R | Readable bit | HC | Cleared by Hardware | (Grey cell) | Unimplemented |
| W | Writable bit | HS | Set by Hardware | X | Bit is unknown at Reset |
| K | Write to clear | S | Software settable bit | — | — |
| Name: | WAVE |
| Offset: | 0x3C |
| Reset: | 0x00000000 |
| Property: | RW |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| SWAP[3:0] | |||||||||
| Access | |||||||||
| Reset | 0 | 0 | 0 | 0 | |||||
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| POL[7:0] | |||||||||
| Access | |||||||||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| CICCEN[3:0] | |||||||||
| Access | |||||||||
| Reset | 0 | 0 | 0 | 0 | |||||
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| CIPEREN | RAMP[2:0] | WAVEGEN[2:0] | |||||||
| Access | |||||||||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
Bits 27:24 – SWAP[3:0] Swap DTI Output Pair x
Bits 23:16 – POL[7:0] Channel x Polarity
Bits 11:8 – CICCEN[3:0] Circular Channel x Enable
Bit 7 – CIPEREN Circular period Enable
Setting this bits enable the period circular buffer option. When the bit is set, the PER register value is copied-back into the PERBUF register on UPDATE condition.
Bits 6:4 – RAMP[2:0] Ramp Mode
These bits select Ramp operation (RAMP). These bits are not synchronized.
| Value | Name | Description |
|---|---|---|
| 0 | RAMP1 | RAMP1 operation |
| 1 | RAMP2A | Alternative RAMP2 operation |
| 2 | RAMP2 | RAMP2 operation |
| 3 | RAMP2C | Critical RAMP2 operation |
| 4 | RAMP2CS | Critical Swapped RAMP2 operation |
Bits 2:0 – WAVEGEN[2:0] Waveform Generation
These bits select the waveform generation operation. The settings impact the top value and control if frequency or PWM waveform generation should be used. These bits are not synchronized.
| Value | Name | Description | ||||||
|---|---|---|---|---|---|---|---|---|
| Operation | Top | Update | Waveform Output On Match | Waveform Output On Update | OVF Interrupt
Flag/Event Up Down | |||
| 0x0 | NFRQ | Normal Frequency | PER | TOP/Zero | Toggle | Stable | TOP | Zero |
| 0x1 | MFRQ | Match Frequency | CC0 | TOP/Zero | Toggle | Stable | TOP | Zero |
| 0x2 | NPWM | Normal PWM | PER | TOP/Zero | Set | Clear | TOP | Zero |
| 0x3 | DPWM | Dual Compare PWM | PER | TOP/ZERO | Set/Clear | Clear | - | Zero |
| 0x4 | DSCRITICAL | Dual-slope PWM | PER | Zero | ~DIR | Stable | – | Zero |
| 0x5 | DSBOTTOM | Dual-slope PWM | PER | Zero | ~DIR | Stable | – | Zero |
| 0x6 | DSBOTH | Dual-slope PWM | PER | TOP & Zero | ~DIR | Stable | TOP | Zero |
| 0x7 | DSTOP | Dual-slope PWM | PER | Zero | ~DIR | Stable | TOP | – |
| Value | Name | Description |
|---|---|---|
| 0 | NFRQ | Normal frequency |
| 1 | MFRQ | Match frequency |
| 2 | NPWM | Normal PWM |
| 3 | DPWM | Dual compare PWM |
| 4 | DSCRITICAL | Dual-slope critical |
| 5 | DSBOTTOM | Dual-slope with interrupt/event condition when COUNT reaches ZERO |
| 6 | DSBOTH | Dual-slope with interrupt/event condition when COUNT reaches ZERO or TOP |
| 7 | DSTOP | Dual-slope with interrupt/event condition when COUNT reaches TOP |
