35.8.18 Compare/Capture Channel x
The CCx register represents the 16-, 24- or 32-bit value, CCx. The register has two functions, depending of the mode of operation.
For capture operation, this register represents the second buffer level and access point for the CPU and DMA.
For compare operation, this register is continuously compared to the counter value. Normally, the output form the comparator is then used for generating waveforms.
CCx register is updated with the buffer value from their corresponding CCBUFx register when an UPDATE condition occurs.
In addition, in match frequency operation, the CC0 register controls the counter period.
Name: | CCx |
Offset: | 0x44 + x*0x04 [x=0..3] |
Reset: | 0x00000000 |
Property: | Write-Synchronized |
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
CC25 | CC24 | CC23 | CC22 | CC21 | CC20 | CC19 | CC18 | ||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
CC17 | CC16 | CC15 | CC14 | CC13 | CC12 | CC11 | CC10 | ||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
CC9 | CC8 | CC7 | CC6 | CC5 | CC4 | CC3 | CC2 | ||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
CC1 | CC0 | DITHER[5:0] | |||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bits 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 – CCx Channel x Compare/Capture Value
These bits hold the value of the Channel x compare/capture register.
CTRLA.RESOLUTION | Bits [31:m] |
---|---|
0x0 - NONE | 31:0 |
0x1 - DITH4 | 31:4 |
0x2 - DITH5 | 31:5 |
0x3 - DITH6 | 31:6 (depicted) |
Bits 5:0 – DITHER[5:0] Dithering Cycle Number
CTRLA.RESOLUTION | Bits [n:0] |
---|---|
0x0 - NONE | - |
0x1 - DITH4 | 3:0 |
0x2 - DITH5 | 4:0 |
0x3 - DITH6 | 5:0 (depicted) |