English
Language : 

SAM4L Datasheet, PDF (970/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
Figure 37-2. Analog Comparator Interface in Window mode
ACAPx
ACANx
+
ACx
-
ACOUTx
CONFx.INSELN
COMMON
Comparator pair
Window
Module
ACBPx
ACBNx
+
ACx+1
-
ACOUTx+1
CONFx+1.INSELN
Interrupt
Generator
IRQ
ACWOUT
Peripheral Event
Generator
Window
WINDOW MODE
PERIPHERAL
EVENT
37.6.5.1
37.6.5.2
Window Mode Output
When operating in window mode, each AC generates the same ACOUT outputs as in normal
mode, see Section 37.6.4.1.
Additionally, the ACIFC generates a window mode signal (ACWOUT) according to the common
input voltage to be compared:
• ACWOUT = 1 if the common input voltage is inside the window, VACBNx+1 < Vcommon < VACAPx
• ACWOUT = 0 if the common input voltage is outside the window, Vcommon < VACANx+1 or
Vcommon > VACAPx
• ACWOUT = 0 if the window mode output is not available (SR.ACRDYx=0 or
SR.ACRDYx+1 = 0)
The Windowx Mode Current Status bit in SR (SR.WFCSx) gives the comparison status of the
window pair.
Window Mode Interrupts
When operating in window mode, each AC can generate the same interrupt as in normal mode,
see Section 37.6.4.2.
Additionally, when ACs operate in window mode, a third type of interrupt based on ACWOUT
can be generated (bit ISR.WFINTx).
Writing to Window Mode Interrupt Settings in Windowx Mode Configuration Register (CON-
FWx.WIS) selects an interrupt source:
• As soon as the common input voltage is inside the window.
• As soon as the common input voltage is outside the window.
42023C–SAM–02/2013
970