67.7.2 TC Channel Mode Register: Capture Mode
This register can be written only if the WPEN bit is cleared in the TC Write Protection Mode Register.
Name: | TC_CMRx (CAPTURE MODE) |
Offset: | 0x04 + x*0x40 [x=0..2] |
Reset: | 0x00000000 |
Property: | Read/Write |
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
Access | |||||||||
Reset |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
SBSMPLR[2:0] | LDRB[1:0] | LDRA[1:0] | |||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
WAVE | CPCTRG | ABETRG | ETRGEDG[1:0] | ||||||
Access | R/W | R/W | R/W | R/W | R/W | ||||
Reset | 0 | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
LDBDIS | LDBSTOP | BURST[1:0] | CLKI | TCCLKS[2: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 22:20 – SBSMPLR[2:0] Loading Edge Subsampling Ratio
Value | Name | Description |
---|---|---|
0 | ONE | Load a Capture register each selected edge. |
1 | HALF | Load a Capture register every 2 selected edges. |
2 | FOURTH | Load a Capture register every 4 selected edges. |
3 | EIGHTH | Load a Capture register every 8 selected edges. |
4 | SIXTEENTH | Load a Capture register every 16 selected edges. |
Bits 19:18 – LDRB[1:0] RB Loading Edge Selection
Value | Name | Description |
---|---|---|
0 | NONE | None |
1 | RISING | Rising edge of TIOAx |
2 | FALLING | Falling edge of TIOAx |
3 | EDGE | Each edge of TIOAx |
Bits 17:16 – LDRA[1:0] RA Loading Edge Selection
Value | Name | Description |
---|---|---|
0 | NONE | None |
1 | RISING | Rising edge of TIOAx |
2 | FALLING | Falling edge of TIOAx |
3 | EDGE | Each edge of TIOAx |
Bit 15 – WAVE Waveform Mode
Value | Description |
---|---|
0 | Capture mode is enabled. |
1 | Capture mode is disabled (Waveform mode is enabled). |
Bit 14 – CPCTRG RC Compare Trigger Enable
Value | Description |
---|---|
0 | RC Compare has no effect on the counter and its clock. |
1 | RC Compare resets the counter and starts the counter clock. |
Bit 10 – ABETRG TIOAx or TIOBx External Trigger Selection
Value | Description |
---|---|
0 | TIOBx is used as an external trigger. |
1 | TIOAx is used as an external trigger. |
Bits 9:8 – ETRGEDG[1:0] External Trigger Edge Selection
Value | Name | Description |
---|---|---|
0 | NONE | The clock is not gated by an external signal. |
1 | RISING | Rising edge |
2 | FALLING | Falling edge |
3 | EDGE | Each edge |
Bit 7 – LDBDIS Counter Clock Disable with RB Loading
Value | Description |
---|---|
0 | Counter clock is not disabled when RB loading occurs. |
1 | Counter clock is disabled when RB loading occurs. |
Bit 6 – LDBSTOP Counter Clock Stopped with RB Loading
Value | Description |
---|---|
0 | Counter clock is not stopped when RB loading occurs. |
1 | Counter clock is stopped when RB loading occurs. |
Bits 5:4 – BURST[1:0] Burst Signal Selection
Value | Name | Description |
---|---|---|
0 | NONE | The clock is not gated by an external signal. |
1 | XC0 | XC0 is ANDed with the selected clock. |
2 | XC1 | XC1 is ANDed with the selected clock. |
3 | XC2 | XC2 is ANDed with the selected clock. |
Bit 3 – CLKI Clock Invert
Value | Description |
---|---|
0 | Counter is incremented on rising edge of the clock. |
1 | Counter is incremented on falling edge of the clock. |
Bits 2:0 – TCCLKS[2:0] Clock Selection
Value | Name | Description |
---|---|---|
0 | TIMER_CLOCK1 | Clock selected: internal GCLK [TC_ID] clock signal (from PMC) |
1 | TIMER_CLOCK2 | Clock selected: internal MCK0/8 clock signal (from PMC) |
2 | TIMER_CLOCK3 | Clock selected: internal MCK0/32 clock signal (from PMC) |
3 | TIMER_CLOCK4 | Clock selected: internal MCK0/128 clock signal (from PMC) |
4 | TIMER_CLOCK5 | Clock selected: internal TD_SLCK clock signal (from PMC) |
5 | XC0 | Clock selected: XC0 |
6 | XC1 | Clock selected: XC1 |
7 | XC2 | Clock selected: XC2 |