405
8331B–AVR–03/12
Atmel AVR XMEGA AU
This flag is automatically cleared when the analog comparator window interrupt vector is exe-
cuted. The flag can also be cleared by writing a one to its bit location.
• Bit 1 – AC1IF: Analog Comparator 1 Interrupt Flag
This is the interrupt flag for AC1. AC1IF is set according to the INTMODE setting in the corre-
sponding
”ACnCTRL – Analog Comparator n Control register” on page 401
.
This flag is automatically cleared when the analog comparator 1 interrupt vector is executed.
The flag can also be cleared by writing a one to its bit location.
• Bit 0 – AC0IF: Analog Comparator 0 Interrupt Flag
This is the interrupt flag for AC0. AC0IF is set according to the INTMODE setting in the corre-
sponding
”ACnCTRL – Analog Comparator n Control register” on page 401
.
This flag is automatically cleared when the analog comparator 0 interrupt vector is executed.
The flag can also be cleared by writing a one to its bit location.
30.9.7
CURRCTRL – Current Source Control register
• Bit 7 – CURRENT: Current Source Enable
Setting this bit to one will enable the constant current source.
• Bit 6 – CURRMODE: Current Mode
Setting this bit to one will combine the two analog comparator current sources in order to double
the output current for each analog comparator.
• Bit 5:2 – Reserved
These bits are unused and reserved for future use. For compatibility with future devices, always
write these bits to zero when this register is written.
• Bit 1 – AC1CURR: AC1 Current Source Output Enable
Setting this bit to one will enable the constant current source output on the pin selected by MUX-
NEG in AC1MUXTRL.
• Bit 0 – AC0CURR: AC0 Current Source Output Enable
Setting this bit to one will enable the constant current source output on the pin selected by MUX-
NEG in AC0MUXTRL.
30.9.8
CURRCALIB – Current Source Calibration register
Bit
7
6
5
4
3
2
1
0
+0x08
CURRENT
CURRMODE
–
–
–
–
AC1CURR
AC0CURR
CURRCTRL
Read/Write
R/W
R/W
R
R
R
R
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
+0x09
–
–
–
–
CALIB[3:0]
CURRCALIB
Read/Write
R
R
R
R
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0