Data Sheet
692
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
z Bit 2 – ONESHOT: One-Shot
This bit controls one-shot operation of the TCC. When one-shot operation is enabled, the TCC will stop counting
on the next overflow/underflow condition or on a stop command.
0: The TCC will update the counter value on overflow/underflow condition and continues operation.
1: The TCC will stop counting on the next underflow/overflow condition.
Writing a zero to this bit has no effect
Writing a one to this bit will disable the one-shot operation.
z Bit 1 – LUPD: Lock Update
This bit controls the update operation of the TCC buffered registers. When this bit is set, no update of the buffered
registers is performed, even though an UPDATE condition has occurred. Locking the update ensures that all buf-
fers registers are valid before an update is performed.
This bit has no effect when input capture operation is enabled.
1: The CCBx, PERB, PGVB, PGEB, and SWAPBx buffer registers value are not copied into the corresponding
CCx, PER, PGV, PGE and SWAPx registers.
0: The CCBx, PERB, PGVB, PGEB, and SWAPBx buffer registers value are copied into the corresponding CCx,
PER, PGV, PGE and SWAPx registers on counter update condition.
z Bit 0 – DIR: Counter Direction
This bit is used to change the direction of the counter.
0: The timer/counter is counting up (incrementing).
1: The timer/counter is counting down (decrementing).
Writing a zero to this bit has no effect
Writing a one to this bit will make the counter count up.
0x1 SET Set index: cycle B will be forced in the next cycle
0x2 CLEAR Clear index: cycle A will be forced in the next cycle
0x3 HOLD
Hold index: the next cycle will be the same as the current
cycle
IDXCMD[1:0] Name Description