24.5.2 Control B

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

Bit 76543210 
  ASYNCCCMPINITCCMPEN CNTMODE[2:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 

Bit 6 – ASYNC Asynchronous Enable

Writing this bit to ‘1’ will allow asynchronous updates of the TCB output signal in Single-Shot mode.

ValueDescription
0 The output will go HIGH when the counter starts after synchronization
1 The output will go HIGH when an event arrives

Bit 5 – CCMPINIT Compare/Capture Pin Initial Value

This bit is used to set the initial output value of the pin when a pin output is used. This bit has no effect in 8-bit PWM mode and Single-Shot mode.

ValueDescription
0 Initial pin state is LOW
1 Initial pin state is HIGH

Bit 4 – CCMPEN Compare/Capture Output Enable

Writing this bit to ‘1’ enables the waveform output. This will make the waveform output available on the corresponding pin regardless of the direction that is set on the pin, and overriding the value in the corresponding PORT output register.
ValueDescription
0 Waveform output is not enabled on the corresponding pin
1 Waveform output will override the output value of the corresponding pin

Bits 2:0 – CNTMODE[2:0] Timer Mode

Writing to this bit field selects the Timer mode.

ValueNameDescription
0x0 INT Periodic Interrupt mode
0x1 TIMEOUT Time-Out Check mode
0x2 CAPT Input Capture on Event mode
0x3 FRQ Input Capture Frequency Measurement mode
0x4 PW Input Capture Pulse-Width Measurement mode
0x5 FRQPW Input Capture Frequency and Pulse-Width Measurement mode
0x6 SINGLE Single-Shot mode
0x7 PWM8 8-Bit PWM mode