English
Language : 

SAMD20G_14 Datasheet, PDF (462/676 Pages) ATMEL Corporation – SMART ARM-Based Microcontroller
27.8.3 Control B Clear
This register allows the user to change this register without doing a read-modify-write operation. Changes in this register
will also be reflected in the Control B Set (CTRLBSET) register.
Name:
CTRLBCLR
Offset: 0x04
Reset:
0x00
Property: Write-Protected, Write-Synchronized, Read-Synchronized
Bit
7
6
5
4
3
2
1
0
CMD[1:0]
ONESHOT
DIR
Access
R/W
R/W
R
R
R
R/W
R
R/W
Reset
0
0
0
0
0
0
0
0
z Bits 7:6 – CMD[1:0]: Command
These bits are used for software control of retriggering and stopping the TC. When a command has been exe-
cuted, the CMD bit group will read back as zero. The commands are executed on the next prescaled GCLK_TC
clock cycle.
Writing a zero to one of these bits has no effect.
Writing a one to one of these bits will clear the pending command.
Table 27-8. Command
Value
0x0
0x1
0x2
0x3
Name
NONE
RETRIGGER
STOP
-
Description
No action
Force a start, restart or retrigger
Force a stop
Reserved
z Bits 5:3 – Reserved
These bits are unused and reserved for future use. For compatibility with future devices, always write these bits to
zero when this register is written. These bits will always return zero when read.
z Bit 2 – ONESHOT: One-Shot
This bit controls one-shot operation of the TC. When in one-shot mode, the TC will stop counting on the next over-
flow/underflow condition or a stop command.
0: The TC will wrap around and continue counting on an overflow/underflow condition.
1: The TC will wrap around and stop on the next underflow/overflow condition.
Writing a zero to this bit has no effect.
Writing a one to this bit will disable one-shot operation.
z Bit 1 – Reserved
This bit is unused and reserved for future use. For compatibility with future devices, always write this bit to zero
when this register is written. This bit will always return zero when read.
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).
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129L–SAM-D20_datasheet–09/2014
462