25.5.2 Control B

Name: CTRLB
Offset: 0x01
Reset: 0x00
Property: Enable-protected

Bit 76543210 
 CMP1EVCMP0EVCLKSEL[2:0]WGMODE[2:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 7 – CMP1EV Compare 1 Event Generation

This bit field controls the waveform mode on the event output line. Writing this bit to '1' will output the waveform output on the event line instead of the compare match or overflow pulse. The WO1EN bit is ignored for the event outputs.
ValueNameDescription
0PULSEAn event pulse is generated when there is a match or overflow
1WAVEFORMThe event output is equal to the waveform output WO1, whatever WO1EN bit it is

Bit 6 – CMP0EV Compare 0 Event Generation

This bit field controls the waveform mode on the event output line. Writing this bit to '1' will output the waveform output on the event line instead of the compare match or overflow pulse. The WO0EN bit is ignored for the event outputs.
ValueNameDescription
0PULSEAn event pulse is generated when there is a match or overflow
1WAVEFORMThe event output is equal to the waveform output WO0, whatever WO0EN bit it is

Bits 5:3 – CLKSEL[2:0] Clock Select

This bit field controls the Timer/Counter clock source and cannot be changed while the Timer/Counter is enabled.
ValueNameDescription
0x0CLKPERPeripheral clock
0x1EVENTEvent edge
0x2OSCHFInternal high-frequency oscillator
0x3OSC32KInternal 32kHz oscillator
0x4-Reserved
0x5PLLPhase Locked Loop
Others-Reserved

Bits 2:0 – WGMODE[2:0] Waveform Generation Mode

This bit field selects the Waveform mode.

ValueNameDescription
0x0FRQFrequency
0x1NCOPFNumerical Controlled Oscillator Pulse-Frequency
0x2NCOFDCNumerical Controlled Oscillator Fixed Duty-Cycle
0x3-0x6-Reserved
0x7PWM88-Bit PWM mode