53.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
0NONE

None

1SET

Set

2CLEAR

Clear

3TOGGLE

Toggle

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

ValueNameDescription
0NONE

None

1SET

Set

2CLEAR

Clear

3TOGGLE

Toggle

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

ValueNameDescription
0NONE

None

1SET

Set

2CLEAR

Clear

3TOGGLE

Toggle

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

ValueNameDescription
0NONE

None

1SET

Set

2CLEAR

Clear

3TOGGLE

Toggle

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

ValueNameDescription
0NONENone
1SETSet
2CLEARClear
3TOGGLEToggle

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

ValueNameDescription
0NONENone
1SETSet
2CLEARClear
3TOGGLEToggle

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

ValueNameDescription
0NONENone
1SETSet
2CLEARClear
3TOGGLEToggle

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

ValueNameDescription
0NONENone
1SETSet
2CLEARClear
3TOGGLEToggle

Bit 15 – WAVE Waveform Mode

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

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

ValueNameDescription
0UPUP mode without automatic trigger on RC Compare
1UPDOWNUPDOWN mode without automatic trigger on RC Compare
2UP_RCUP mode with automatic trigger on RC Compare
3UPDOWN_RCUPDOWN 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
0The external event has no effect on the counter and its clock.
1The external event resets the counter and starts the counter clock.

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

Signal selected as external event.

ValueNameDescriptionTIOB Direction
0TIOBTIOBInput
1XC0XC0Output
2XC1XC1Output
3XC2XC2Output
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
0NONENone
1RISINGRising edge
2FALLINGFalling edge
3EDGEEach edge

Bit 7 – CPCDIS Counter Clock Disable with RC Compare

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

Bit 6 – CPCSTOP Counter Clock Stopped with RC Compare

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

Bits 5:4 – BURST[1:0] Burst Signal Selection

ValueNameDescription
0NONEThe clock is not gated by an external signal.
1XC0XC0 is ANDed with the selected clock.
2XC1XC1 is ANDed with the selected clock.
3XC2XC2 is ANDed with the selected clock.

Bit 3 – CLKI Clock Invert

ValueDescription
0Counter is incremented on rising edge of the clock.
1Counter 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
0TIMER_CLOCK1Clock selected: internal GCLK [35], GCLK [36] clock signal (from PMC)
1TIMER_CLOCK2Clock selected: internal System bus clock divided by 8 clock signal (from PMC)
2TIMER_CLOCK3Clock selected: internal System bus clock divided by 32 clock signal (from PMC)
3TIMER_CLOCK4Clock selected: internal System bus clock divided by 128 clock signal (from PMC)
4TIMER_CLOCK5Clock selected: internal TD_SLCK clock signal (from PMC)
5XC0Clock selected: XC0
6XC1Clock selected: XC1
7XC2Clock selected: XC2