35.7.1.9 Waveform Generation Control
Name: | WAVE |
Offset: | 0x0C |
Reset: | 0x00 |
Property: | PAC Write-Protection, Enable-Protected |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
WAVEGEN[1:0] | |||||||||
Access | R/W | R/W | |||||||
Reset | 0 | 0 |
Bits 1:0 – WAVEGEN[1:0] Waveform Generation Mode
These bits select the waveform generation operation. They affect the top value, as shown in 35.6.2.6.1 Waveform Output Operations. They also control whether frequency or PWM waveform generation should be used. The waveform generation operations are explained in 35.6.2.6.1 Waveform Output Operations.
These bits are not synchronized.
Value | Name | Operation | Top Value | Output
Waveform on Match |
Output
Waveform on Wraparound |
---|---|---|---|---|---|
0x0 | NFRQ | Normal frequency | PER1 / Max | Toggle | No action |
0x1 | MFRQ | Match frequency | CC0 | Toggle | No action |
0x2 | NPWM | Normal PWM | PER1 / Max | Set | Clear |
0x3 | MPWM | Match PWM | CC0 | Set | Clear |
1) This depends on the TC mode: In 8-bit mode, the top value is the Period Value register (PER). In 16- and 32-bit mode it is the respective MAX value.