23.6.1 Control A

Name: CTRLA
Offset: 0x00
Reset: 0x00000000
Property: PAC Write-Protection

Bit 3130292827262524 
     CPTEN3CPTEN2CPTEN1CPTEN0 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 2322212019181716 
 DMAOS      FCYCLE 
Access R/WR/W 
Reset 00 
Bit 15141312111098 
  ALOCKPRESCSYNC[1:0]RUNSTDBYPRESCALER[2:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 76543210 
       ENABLESWRST 
Access R/WR/W 
Reset 00 

Bits 24, 25, 26, 27 – CPTENn Capture Channel n Enable

These bits are isused to select the capture or compare operation on channel x.

Writing a ‘1’ to CPTENn enables capture on channel x.

Writing a ‘0’ to CPTENn disables capture on channel x.

Note: These bits are enable-protected. These bits

Bit 23 – DMAOS DMA One-Shot Trigger Mode

This bit enables the DMA One-shot Trigger Mode.

Writing a ‘1’ to this bit will generate a DMA trigger on the TCC cycle following a TCC_CTRLBSET_CMD_DMAOS command.

Writing a ‘0’ to this bit will generate DMA triggers on each TCC cycle.

Note: This bit is enable-protected, and is not synchronized.

Bit 16 – FCYCLE Full Cycle Enable

Writing a ‘1’ to this bit will cause the TCC to wait for the end of the current cycle before evaluating the stop condition.

Writing a ‘0’ to this bit will make the TCC evaluate the stop condition immediately.

Note: This bit is enable-protected, and is not synchronized.
ValueDescription
0The stop condition is evaluated immediately
1The stop condition is evaluated at the end of the cycle

Bit 14 – ALOCK Auto Lock

Note: This bit is enable-protected, and is not synchronized.
ValueDescription
0The Lock Update bit in the Control B Clear or Set registers (CTRLBCLR/SET.LUPD) is not affected by overflow, underflow, or retrigger events
1CTRLBCLR/SET.LUPD is set to ‘1’ on each overflow, underflow, or retrigger event

Bits 13:12 – PRESCSYNC[1:0] Prescaler and Counter Synchronization

This bit field selects whether, on a retrigger event, the counter is cleared or reloaded on either the next GCLK_TCCn clock, or the next prescaled GCLK_TCCn clock. It is also possible to reset the prescaler on retrigger event.

Note: This bit is enable-protected, and is not synchronized.
ValueNameDescription
0x0GCLKReload or reset Counter on the next GCLK
0x1PRESCReload or reset Counter on the next prescaler clock
0x2RESYNCReload or reset Counter on the next GCLK and reset prescaler counter
OtherReserved

Bit 11 – RUNSTDBY Run in Standby

This bit is used to keep the TCC running in Standby sleep mode.

Note: This bit is enable-protected, and is not synchronized..
ValueDescription
0The TCC is halted in standby
1The TCC continues to run in standby

Bits 10:8 – PRESCALER[2:0] Prescaler

This bit field select the Counter prescaler factor.

Note: This bit is enable-protected, and is not synchronized.
ValueNameDescription
0x0DIV1Prescaler: GCLK_TCC
0x1DIV2Prescaler: GCLK_TCC/2
0x2DIV4Prescaler: GCLK_TCC/4
0x3DIV8Prescaler: GCLK_TCC/8
0x4DIV16Prescaler: GCLK_TCC/16
0x5DIV64Prescaler: GCLK_TCC/64
0x6DIV256Prescaler: GCLK_TCC/256
0x7DIV1024Prescaler: GCLK_TCC/1024

Bit 1 – ENABLE Enable

Note: This bit is not enable-protected.
Note: This bit is write-synchronized. The ENABLE Synchronization Busy bit in the Synchronization Busy register (SYNCBUSY.ENABLE) must be checked to ensure that synchronization of the ENABLE bit between the clock domains is complete.
ValueDescription
0The peripheral is disabled
1The peripheral is enabled

Bit 0 – SWRST Software Reset

Writing a ‘0’ to this bit has no effect.

Writing a ‘1’ to this bit resets all registers in the TCC (except DBGCTRL) to their initial state, and the TCC will be disabled.

Writing a ‘1’ to CTRLA.SWRST will always take precedence; all other writes in the same write-operation will be discarded.

Note: This bit is not enable-protected.
Note: This bit is write-synchronized. The SWRST Synchronization Busy bit in the Synchronization Busy register (SYNCBUSY.SWRST) must be checked to ensure that synchronization of the SWRST bit between the clock domains is complete.
Important:
  1. After CTRLA.SWRST is written to ‘1’, the user must poll the SYNCB.SWRST bit to verify when the reset operation is complete.
  2. During a Software Reset, access to registers or bits not affected by a Software Reset are not allowed before the SYNCBUSY.SWRST bit is cleared by hardware.
ValueDescription
0There is no reset operation ongoing
1The reset operation is ongoing