42.7.1 Control A

Table 42-6. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: CTRLA
Offset: 0x00
Reset: 0x00000000
Property: PAC Write-Protection

Bit 3130292827262524 
 CPTEN7CPTEN6CPTEN5CPTEN4CPTEN3CPTEN2CPTEN1CPTEN0 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
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, 28, 29, 30, 31 – CPTEN Capture Channel x EnableThese bits are used to select the capture or compare operation on channel x.Writing a '1' to CPTENx enables capture on channel x.Writing a '0' to CPTENx disables capture on channel x.These bits are enable-protected. These bits are not synchronized.

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

Writing a '1' to CPTENx enables capture on channel x.

Writing a '0' to CPTENx disables capture on channel x.

This bit is enable-protected.

Bit 23 – DMAOS DMA One-shot Trigger ModeThis bit enables the DMA One-shot Trigger Mode.Writing a '1' to this bit will generate a DMA trigger on TCC cycle following a TCC_CTRLBSET_CMD_DMAOS command. Writing a '0' to this bit will generate DMA triggers on each TCC cycle.This bit is enable-protected. This bit is not synchronized.

Bit 16 – FCYCLE Full Cycle Enable

When this bit is set, TCC will wait for the end of the current cycle, to evaluate the stop condition.

This bit is enable-protected.

ValueDescription
0The stop condition is evaluated immediately.
1The stop condition is evaluated at the end of the cycle.

Bit 14 – ALOCK Auto Lock

This bit is enable-protected.

ValueDescription
0The Lock Update bit in the Control B register (CTRLB.LUPD) is not affected by overflow/underflow, and re-trigger events
1CTRLB.LUPD is set to '1' on each overflow/underflow or re-trigger event.

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

These bits select if on re-trigger event, the Counter is cleared or reloaded on either the next GCLK_TCCx clock, or on the next prescaled GCLK_TCCx clock. It is also possible to reset the prescaler on re-trigger event.

These bits are enable-protected.

ValueNameDescription
Counter ReloadedPrescaler
0x0GCLKReload or reset Counter on next GCLK-
0x1PRESCReload or reset Counter on next prescaler clock-
0x2RESYNCReload or reset Counter on next GCLKReset prescaler counter
0x3Reserved

Bit 11 – RUNSTDBY Run in Standby

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

This bit is enable-protected.

ValueDescription
0The TCC is halted in standby.
1The TCC continues to run in standby.

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

These bits select the Counter prescaler factor.

These bits are enable-protected.

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

Due to synchronization there is delay from writing CTRLA.ENABLE until the peripheral is enabled/disabled. The value written to CTRLA.ENABLE will read back immediately and the ENABLE bit in the SYNCBUSY register (SYNCBUSY.ENABLE) will be set. SYNCBUSY.ENABLE will be cleared when the operation 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.

Due to synchronization there is a delay from writing CTRLA.SWRST until the reset is complete. CTRLA.SWRST and SYNCBUSY.SWRST will both be cleared when the reset is complete.

ValueDescription
0There is no reset operation ongoing.
1The reset operation is ongoing.