Datasheet

14.3.2.7 Synchronization Delay
The synchronization will delay write and read accesses by a certain amount. This delay D is within the
range of:
5 ×
GCLK
+ 2 ×
APB
< < 6 ×
GCLK
+ 3 ×
APB
Where
GCLK
is the period of the generic clock and
APB
is the period of the peripheral bus clock. A
normal peripheral bus register access duration is 2 ×
APB
.
14.4 Enabling a Peripheral
In order to enable a peripheral that is clocked by a Generic Clock, the following parts of the system needs
to be configured:
A running Clock Source.
A clock from the Generic Clock Generator must be configured to use one of the running Clock
Sources, and the Generator must be enabled.
The Generic Clock Multiplexer that provides the Generic Clock signal to the peripheral must be
configured to use a running Generic Clock Generator, and the Generic Clock must be enabled.
The user interface of the peripheral needs to be unmasked in the PM. If this is not done the
peripheral registers will read all 0’s and any writing attempts to the peripheral will be discarded.
14.5 Disabling a Peripheral
When disabling a peripheral and if a pin change interrupt is enabled on pins driven by the respective
peripheral, a wake condition may be generated. If this happen the interrupt flag will not be set. As a
consequence the system will not be able to identify the wake source. To avoid this, the interrupt enable
register of the peripheral must be cleared (or the Nested Vectored Interrupt Controller (NVIC) Enable for
the peripheral must be cleared) before disabling the peripheral.
14.6 On-demand, Clock Requests
Figure 14-4. Clock request routing
DFLL48M
Generic Clock
Generator
Clock request
Generic Clock
Multiplexer
Clock request
Peripheral
Clock request
ENABLE
RUNSTDBY
ONDEMAND
CLKEN
RUNSTDBY
ENABLE
RUNSTDBY
GENEN
All clock sources in the system can be run in an on-demand mode: the clock source is in a stopped state
unless a peripheral is requesting the clock source. Clock requests propagate from the peripheral, via the
GCLK, to the clock source. If one or more peripheral is using a clock source, the clock source will be
started/kept running. As soon as the clock source is no longer needed and no peripheral has an active
request, the clock source will be stopped until requested again.
The clock request can reach the clock source only if the peripheral, the generic clock and the clock from
the Generic Clock Generator in-between are enabled. The time taken from a clock request being
asserted to the clock source being ready is dependent on the clock source startup time, clock source
SAM D21 Family
Clock System
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40001882D-page 115