English
Language : 

ATUC128L3U_14 Datasheet, PDF (752/963 Pages) ATMEL Corporation – High-performance, Low-power 32-bit Atmel
ATUC64/128/256L3/4U
Figure 30-2. Analog Comparator Interface in Window Mode
ACAP0
ACAN0
+
AC0
-
Filter
ACOUT0
Interrupt
Generator
IRQ
COMMON
ACBP0
ACBN0
Comparator pair 0
+
AC1
-
Filter
Window
Module
ACOUT1
ACWOUT
Peripheral Event
Generator
Window
window event
30.6.5.1
30.6.5.2
Window Mode Output
When operating in window mode, each channel generates the same ACOUT outputs as in nor-
mal mode, see Section 30.6.4.1.
Additionally, the ACIFB 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, VACN(N+1) < Vcommon < VACP(N)
• ACWOUT = 0 if the common input voltage is outside the window, Vcommon < VACN(N+1) or
Vcommon > VACP(N)
• ACWOUT = 0 if the window mode output is not available (SR.ACRDYn=0 or
SR.ACRDYn+1 = 0)
Window Mode Interrupts
When operating in window mode, each channel can generate the same interrupts as in normal
mode, see Section 30.6.4.2.
Additionally, when channels operate in window mode, programming Window Mode Interrupt Set-
tings in the Window Mode Configuration Register (CONFWn.WIS) can cause interrupts to be
generated when:
• As soon as the common input voltage is inside the window.
• As soon as the common input voltage is outside the window.
• On toggle of the window compare output (ACWOUT).
• When the comparison in both channels in the window pair is ready.
32142D–06/2013
752