Control B
Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
ASYNC | CCMPINIT | CCMPEN | CNTMODE[2:0] | ||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 |
Asynchronous Enable
Writing this bit to '1' will allow asynchronous updates of the TCB output signal in Single-Shot mode.
Value | Description |
---|---|
0 | The output will go HIGH when the counter actually starts |
1 | The output will go HIGH when an event arrives |
Compare/Capture Pin Initial Value
This bit is used to set the initial output value of the pin when a pin output is used.
Value | Description |
---|---|
0 | Initial pin state is LOW |
1 | Initial pin state is HIGH |
Compare/Capture Output Enable
Value | Description |
---|---|
0 | Compare/Capture Output is zero |
1 | Compare/Capture Output has a valid value |
Timer Mode
Writing these bits selects the Timer mode.
Value | Description |
---|---|
0x0 | Periodic Interrupt mode |
0x1 | Time-out Check mode |
0x2 | Input Capture on Event mode |
0x3 | Input Capture Frequency Measurement mode |
0x4 | Input Capture Pulse-Width Measurement mode |
0x5 | Input Capture Frequency and Pulse-Width Measurement mode |
0x6 | Single-Shot mode |
0x7 | 8-Bit PWM mode |