Datasheet

Table Of Contents
515
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
29.5.2 Power Management
The AC will continue to operate in any sleep mode where the selected source clock is running. The AC’s interrupts can
be used to wake up the device from sleep modes. The events can trigger other operations in the system without exiting
sleep modes. Refer to “PM – Power Manager” on page 101 for details on the different sleep modes.
29.5.3 Clocks
The AC bus clock (CLK_AC_APB) can be enabled and disabled in the Power Manager, and the default state of the
CLK_AC_APB can be found in the Peripheral Clock Masking section of “PM – Power Manager” on page 101.
Two generic clocks (GCLK_AC_DIG and GCLK_AC_ANA) are used by the AC. The digital clock (GCLK_AC_DIG) is
required to provide the sampling rate for the comparators, while the analog clock (GCLK_AC_ANA) is required for low-
voltage operation (V
DDANA
< 2.5V) to ensure that the resistance of the analog input multiplexors remains low. These
clocks must be configured and enabled in the Generic Clock Controller before using the peripheral.
Refer to “GCLK – Generic Clock Controller” on page 79 for details.
These generic clocks are asynchronous to the CLK_AC_APB clock. Due to this asynchronicity, writes to certain registers
will require synchronization between the clock domains. Refer to “Synchronization” on page 523 for further details.
29.5.4 Interrupts
The interrupt request line is connected to the Interrupt Controller. Using the AC interrupts requires the Interrupt Controller
to be configured first. Refer to “Nested Vector Interrupt Controller” on page 25 for details.
29.5.5 Events
The events are connected to the Event System. Using the events requires the Event System to be configured first. Refer
to “EVSYS – Event System” on page 306 for details.
29.5.6 Debug Operation
When the CPU is halted in debug mode, the peripheral continues normal operation. If the peripheral is configured in a
way that requires it to be periodically serviced by the CPU through interrupts or similar, improper operation or data loss
may result during debugging.
29.5.7 Register Access Protection
All registers with write-access are optionally write-protected by the Peripheral Access Controller (PAC), except the
following registers:
z Control B register (CTRLB)
z Interrupt Flag register (INTFLAG)
Write-protection is denoted by the Write-Protected property in the register description.
Write-protection does not apply for accesses through an external debugger. Refer to “PAC – Peripheral Access
Controller” on page 28 for details.
29.5.8 Analog Connections
Each comparator has up to four I/O pins that can be used as analog inputs. Each pair of comparators shares the same
four pins. These pins must be configured for analog operation before using them as comparator inputs.
Any internal reference source, such as a bandgap reference voltage or the DAC, must be configured and enabled prior to
its use as a comparator input.
29.5.9 Other Dependencies
Not applicable.