Datasheet
1077
32117D–AVR-01/12
AT32UC3C
35.6.1.1 ACIFA Output
An analog comparator generates one output acout
x
(with x = a or b) according to the input volt-
ages vip
x
(AC positive input) and vin
x
(AC negative input):
•acout
x
= 1 if vip
x
> vin
x
•acout
x
= 0 if vip
x
< vin
x
•acout
x
= 0 if the AC output is not available (ie. The AC Ready bit in the Status Register
(SR.ACxRDY) is still zero)
The ACIFA generates two independent events according to the configuration of the Event
Source Selection field in the Event Configuration register (EVSRC0.EVSRC and
EVSRC1.EVSRC):
• as soon as vip
x
> vin
x
or
• as soon as vip
x
< vin
x
or
• on toggle of the ACA output (acout
A
) or
• on toggle of the ACB output (acout
B
)
35.6.1.2 ACIFA Interrupt
Each AC has one source of interrupt. The configuration of the source of the interruption is done
by writing in the Interrupt Settings field in the Configuration Register (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
)
35.6.2 Window Mode
In window mode, the two ACs are grouped. The negative input of ACA and the positive input of
ACB are the same and are defined in the Window Common Input Selection field in the Window
Configuration register (WCONF.WINSEL). The positive input of ACA and the negative input of
ACB are still configured by CONF0.INSELP and CONF1.INSELN.
35.6.2.1 ACIFA Output
Like in normal mode, the ACs generate the acout
x
outputs according to the input voltages vip
x
(AC positive input) and vin
x
(AC negative input):
•acout
x
= 1 if vip
x
> vin
x
•acout
x
= 0 if vip
x
< vin
x
•acout
x
= 0 if the AC output is not available (ie. SR.ACxRDY is still 0)
The ACIFA generates a window function signal (acwout) according to the common input voltage
to be compared:
• acwout = 1 if the common input voltage is inside the window, vin
B
< v
common
< vip
A
• acwout = 0 if the common input voltage is outside the window, v
common
< vin
B
or v
common
> vip
A