Value
Name
Description
0x5
DIV64
Prescaler: GCLK_TC/64
0x6
DIV256
Prescaler: GCLK_TC/256
0x7
DIV1024
Prescaler: GCLK_TC/1024
Bit 7 – ONDEMAND: Clock On Demand
This bit selects the clock requirements when the TC is stopped.
In standby mode, if the Run in Standby bit (CTRLA.RUNSTDBY) is '0', ONDEMAND is forced to '0'.
This bit is not synchronized.
Value
Description
0
The On Demand is disabled. If On Demand is disabled, the TC will continue to request the
clock when its operation is stopped (STATUS.STOP=1).
1
The On Demand is enabled. When On Demand is enabled, the stopped TC will not request
the clock. The clock is requested when a software re-trigger command is applied or when an
event with start/re-trigger action is detected.
Bit 6 – RUNSTDBY: Run in Standby
This bit is used to keep the TC running in standby mode.
This bit is not synchronized.
Value
Description
0
The TC is halted in standby.
1
The TC continues to run in standby.
Bits 5:4 – PRESCSYNC[1:0]: Prescaler and Counter Synchronization
These bits select whether the counter should wrap around on the next GCLK_TCx clock or the next
prescaled GCLK_TCx clock. It also makes it possible to reset the prescaler.
These bits are not synchronized.
Value
Name
Description
0x0
GCLK
Reload or reset the counter on next generic clock
0x1
PRESC
Reload or reset the counter on next prescaler clock
0x2
RESYNC Reload or reset the counter on next generic clock. Reset the prescaler counter
0x3
-
Reserved
Bits 3:2 – MODE[1:0]: Timer Counter Mode
These bits select the counter mode.
These bits are not synchronized.
Value
Name
Description
0x0
COUNT16
Counter in 16-bit mode
0x1
COUNT8
Counter in 8-bit mode
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
767