21.5.10 Capture/Compare

The TCB.CCMPL and TCB.CCMPH register pair represents the 16-bit value TCB.CCMP. The low byte [7:0] (suffix L) is accessible at the original offset. The high byte [15:8] (suffix H) can be accessed at offset + 0x01. For more details on reading and writing 16-bit registers, refer to 8.5.6 Accessing 16-bit Registers.

This register has different functions depending on the mode of operation:
  • For capture operation, these registers contain the captured value of the counter at the time the capture occurs
  • In periodic interrupt/timeout and single shot mode this register acts as the TOP value.
  • In 8-bit PWM mode, TCB.CCMPL and TCB.CCMPH act as two independent registers.
Name: CCMP
Offset: 0x0C
Reset: 0x00
Property: -

Bit 15141312111098 
 CCMP[15:8] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 CCMP[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 15:8 – CCMP[15:8] Capture/Compare Value high byte

These bits hold the MSB of the 16-bit compare, capture and top value

Bits 7:0 – CCMP[7:0] Capture/Compare Value low byte

These bits hold the LSB of the 16-bit compare, capture and top value