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 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
  SBSMPLR[2:0]LDRB[1:0]LDRA[1:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 15141312111098 
 WAVECPCTRG   ABETRGETRGEDG[1:0] 
Access R/WR/WR/WR/WR/W 
Reset 00000 
Bit 76543210 
 LDBDISLDBSTOPBURST[1:0]CLKITCCLKS[2:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 22:20 – SBSMPLR[2:0] Loading Edge Subsampling Ratio

ValueNameDescription
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

ValueNameDescription
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

ValueNameDescription
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

ValueDescription
0 Capture mode is enabled.
1 Capture mode is disabled (Waveform mode is enabled).

Bit 14 – CPCTRG RC Compare Trigger Enable

ValueDescription
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

ValueDescription
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

ValueNameDescription
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

ValueDescription
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

ValueDescription
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

ValueNameDescription
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

ValueDescription
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

To operate at maximum peripheral clock frequency, see TC_EMRx.
ValueNameDescription
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