Note:
If several events are connected to the ADC, the enabled action will be taken on any of the
incoming events. If FLUSH and START events are available at the same time, the FLUSH event has
priority.
Related Links
41.6.6. Sleep Mode Operation
The ONDEMAND and RUNSTDBY bits in the Control A register (CTRLA) control the behavior of the ADC
during standby sleep mode, in cases where the ADC is enabled (CTRLA.ENABLE = 1). For further details
on available options, refer to
.
Note:
When CTRLA.ONDEMAND=1, the analog block is powered-off when the conversion is complete.
When a start request is detected, the system returns from sleep and starts a new conversion after the
start-up time delay.
Table 41-4. ADC Sleep Behavior
CTRLA.RUNSTDBY CTRLA.ONDEMAND CTRLA.ENABLE Description
x
x
0
Disabled
0
0
1
Run in all sleep modes except
STANDBY.
0
1
1
Run in all sleep modes on request,
except STANDBY.
1
0
1
Run in all sleep modes.
1
1
1
Run in all sleep modes on request.
41.6.7. Synchronization
Due to asynchronicity between the main clock domain and the peripheral clock domains, some registers
need to be synchronized when written or read.
The following bits are synchronized when written:
•
Software Reset bit in Control A register (CTRLA.SWRST)
•
Enable bit in Control A register (CTRLA.ENABLE)
The following registers are synchronized when written:
•
Input Control register (INPUTCTRL)
•
Control C register (CTRLC)
•
Average control register (AVGCTRL)
•
Sampling time control register (SAMPCTRL)
•
Window Monitor Lower Threshold register (WINLT)
•
Window Monitor Upper Threshold register (WINUT)
•
Gain correction register (GAINCORR)
•
Offset Correction register (OFFSETCORR)
•
Software Trigger register (SWTRIG)
Required write-synchronization is denoted by the "Write-Synchronized" property in the register
description.
Related Links
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
999