67.7.3 TC Channel Mode Register: Waveform Mode

This register can only be written if the WPEN bit is cleared in the TC Write Protection Mode Register.

Name: TC_CMRx (WAVEFORM MODE)
Offset: 0x04 + x*0x40 [x=0..2]
Reset: 0x00000000
Property: Read/Write

Bit 3130292827262524 
 BSWTRG[1:0]BEEVT[1:0]BCPC[1:0]BCPB[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 2322212019181716 
 ASWTRG[1:0]AEEVT[1:0]ACPC[1:0]ACPA[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 15141312111098 
 WAVEWAVSEL[1:0]ENETRGEEVT[1:0]EEVTEDG[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 CPCDISCPCSTOPBURST[1:0]CLKITCCLKS[2:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 31:30 – BSWTRG[1:0] Software Trigger Effect on TIOBx

ValueNameDescription
0 NONE

None

1 SET

Set

2 CLEAR

Clear

3 TOGGLE

Toggle

Bits 29:28 – BEEVT[1:0] External Event Effect on TIOBx

ValueNameDescription
0 NONE

None

1 SET

Set

2 CLEAR

Clear

3 TOGGLE

Toggle

Bits 27:26 – BCPC[1:0] RC Compare Effect on TIOBx

ValueNameDescription
0 NONE

None

1 SET

Set

2 CLEAR

Clear

3 TOGGLE

Toggle

Bits 25:24 – BCPB[1:0] RB Compare Effect on TIOBx

ValueNameDescription
0 NONE

None

1 SET

Set

2 CLEAR

Clear

3 TOGGLE

Toggle

Bits 23:22 – ASWTRG[1:0] Software Trigger Effect on TIOAx

ValueNameDescription
0 NONE None
1 SET Set
2 CLEAR Clear
3 TOGGLE Toggle

Bits 21:20 – AEEVT[1:0] External Event Effect on TIOAx

ValueNameDescription
0 NONE None
1 SET Set
2 CLEAR Clear
3 TOGGLE Toggle

Bits 19:18 – ACPC[1:0] RC Compare Effect on TIOAx

ValueNameDescription
0 NONE None
1 SET Set
2 CLEAR Clear
3 TOGGLE Toggle

Bits 17:16 – ACPA[1:0] RA Compare Effect on TIOAx

ValueNameDescription
0 NONE None
1 SET Set
2 CLEAR Clear
3 TOGGLE Toggle

Bit 15 – WAVE Waveform Mode

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

Bits 14:13 – WAVSEL[1:0] Waveform Selection

ValueNameDescription
0 UP UP mode without automatic trigger on RC Compare
1 UPDOWN UPDOWN mode without automatic trigger on RC Compare
2 UP_RC UP mode with automatic trigger on RC Compare
3 UPDOWN_RC UPDOWN mode with automatic trigger on RC Compare

Bit 12 – ENETRG External Event Trigger Enable

Whatever the value programmed in ENETRG, the selected external event only controls the TIOAx output and TIOBx if not used as input (trigger event input or other input used).
ValueDescription
0 The external event has no effect on the counter and its clock.
1 The external event resets the counter and starts the counter clock.

Bits 11:10 – EEVT[1:0] External Event Selection

Signal selected as external event.

Value Name Description TIOB Direction
0 TIOB TIOB Input
1 XC0 XC0 Output
2 XC1 XC1 Output
3 XC2 XC2 Output
Note: If TIOB is chosen as the external event signal, it is configured as an input and no longer generates waveforms and subsequently no IRQs.

Bits 9:8 – EEVTEDG[1:0] External Event Edge Selection

ValueNameDescription
0 NONE None
1 RISING Rising edge
2 FALLING Falling edge
3 EDGE Each edge

Bit 7 – CPCDIS Counter Clock Disable with RC Compare

ValueDescription
0 Counter clock is not disabled when counter reaches RC.
1 Counter clock is disabled when counter reaches RC.

Bit 6 – CPCSTOP Counter Clock Stopped with RC Compare

ValueDescription
0 Counter clock is not stopped when counter reaches RC.
1 Counter clock is stopped when counter reaches RC.

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