Datasheet
1078
32117D–AVR-01/12
AT32UC3C
• acwout = 0 if the window mode output is not available (ie. The Window Function Ready bit in
the Status Register (SR.WFRDY) is still 0)
The ACIFA generates two independent events (like in normal mode) according to the configura-
tion of EVSRC0 and EVSRC1:
• as soon as vip
x
> vin
x
or
• as soon as vip
x
< vin
x
or
• as soon as vin
B
< vcommon < vip
A
or
• as soon as vcommon < vin
B
or vcommon > vip
A
or
• on toggle of the ACA output (acout
A
) or
• on toggle of the ACB output (acout
B
) or
• on toggle of the window compare output (acwout)
35.6.2.2 ACIFA Interrupt
Like in normal mode, each AC has one source of interrupt. The configuration of the source of
interruption is set in CONF0.IS and CONF1.IS. The interrupt can be triggered:
• as soon as vip
x
> vin
x
• as soon as vip
x
< vin
x
• on toggle of the AC output (acout
x
)
An additional source of interrupt can be generated in window mode. Its configuration is set in the
Window Interrupt Settings field in the Window Configuration register (WCONF.WIS). The source
of interrupt can be triggered:
• 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)
35.6.3 Input Channels
Each Analog Comparator has one positive and one negative input. Each input may be chosen
among one external input pin in addition to some internal signals. The user writes the input
selection:
• in normal mode by writing in the Positive Input Selection field (CONFx.INSELP) and in the
Negative Input Selection field in the Configuration register (CONFx.INSELN)
• in window mode by writing in the CONFA.INSELP, WCONF.WINSEL and CONFB.INSELN
fields. In this case the WCONF.WINSEL field overrides the CONFA.INSELN and
CONFB.INSELP fields.
35.6.4 Internal Inputs
Three internal inputs are available for the Analog Comparator.
35.6.5 High-speed vs Low Power Modes
It is possible to enable High-speed mode by writing a one to the Speed Selection bit in the
CONF register (CONFx.SS) to get the shortest possible propagation delay. This mode con-
sumes more power than the default low power mode (when CONFx.SS is written to zero) that
has a longer propagation delay.