Data Sheet
110
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
14.8.4 Generic Clock Generator Control
This register allows the user to configure one of the generic clock generators, as specified in the GENCTRL.ID bit group.
To write to the GENCTRL register, do a 32-bit write with all configurations and the ID.
To read the GENCTRL register, first do an 8-bit write to the GENCTRL.ID bit group with the ID of the generic clock
generator whose configuration is to be read, and then read the GENCTRL register.
Name: GENCTRL
Offset: 0x4
Reset: 0x00000000
Property: Write-Protected, Write-Synchronized
z Bits 31:22 – 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 21 – RUNSTDBY: Run in Standby
This bit is used to keep the generic clock generator running when it is configured to be output to its dedicated
GCLK_IO pin. If GENCTRL.OE is zero, this bit has no effect and the generic clock generator will only be running if
a peripheral requires the clock.
0: The generic clock generator is stopped in standby and the GCLK_IO pin state (one or zero) will be dependent
on the setting in GENCTRL.OOV.
1: The generic clock generator is kept running and output to its dedicated GCLK_IO pin during standby mode.
Bit 3130292827262524
AccessRRRRRRRR
Reset00000000
Bit 2322212019181716
RUNSTDBY
DIVSEL OE OOV IDC GENEN
Access R R R/W R/W R/W R/W R/W R/W
Reset00000000
Bit 151413121110 9 8
SRC[4:0]
Access R R R R/W R/W R/W R/W R/W
Reset00000000
Bit 76543210
ID[3:0]
AccessRRRRR/WR/WR/WR/W
Reset00000000