ATxmega128A1 ACA registers

The 8 registers of ACA (Analog Comparator), from 0x380, with their reset value and every field. The ATxmega128A1 has 721 registers in 72 peripherals, one page each.

ACA Analog Comparator

AC0CTRLAnalog Comparator 0 Control

Address
0x380
Reset
0x00
Access
read/write
  1. 7INTMODE1
  2. 6INTMODE0
  3. 5INTLVL1
  4. 4INTLVL0
  5. 3HSMODE
  6. 2HYSMODE1
  7. 1HYSMODE0
  8. 0ENABLE
5 fields
FieldBitsWhat it does
INTMODE7:6Interrupt Mode
  • 0 Interrupt on both edges
  • 2 Interrupt on falling edge
  • 3 Interrupt on rising edge
INTLVL5:4Interrupt Level
  • 0 Interrupt disabled
  • 1 Low level
  • 2 Medium level
  • 3 High level
HSMODE3High-speed Mode
HYSMODE2:1Hysteresis Mode
  • 0 No hysteresis
  • 1 Small hysteresis
  • 2 Large hysteresis
ENABLE0Enable

AC1CTRLAnalog Comparator 1 Control

Address
0x381
Reset
0x00
Access
read/write
  1. 7INTMODE1
  2. 6INTMODE0
  3. 5INTLVL1
  4. 4INTLVL0
  5. 3HSMODE
  6. 2HYSMODE1
  7. 1HYSMODE0
  8. 0ENABLE
5 fields
FieldBitsWhat it does
INTMODE7:6Interrupt Mode
  • 0 Interrupt on both edges
  • 2 Interrupt on falling edge
  • 3 Interrupt on rising edge
INTLVL5:4Interrupt Level
  • 0 Interrupt disabled
  • 1 Low level
  • 2 Medium level
  • 3 High level
HSMODE3High-speed Mode
HYSMODE2:1Hysteresis Mode
  • 0 No hysteresis
  • 1 Small hysteresis
  • 2 Large hysteresis
ENABLE0Enable

AC0MUXCTRLAnalog Comparator 0 MUX Control

Address
0x382
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5MUXPOS2
  4. 4MUXPOS1
  5. 3MUXPOS0
  6. 2MUXNEG2
  7. 1MUXNEG1
  8. 0MUXNEG0
2 fields
FieldBitsWhat it does
MUXPOS5:3MUX Positive Input
  • 0 Pin 0
  • 1 Pin 1
  • 2 Pin 2
  • 3 Pin 3
  • 4 Pin 4
  • 5 Pin 5
  • 6 Pin 6
  • 7 DAC output
MUXNEG2:0MUX Negative Input
  • 0 Pin 0
  • 1 Pin 1
  • 2 Pin 3
  • 3 Pin 5
  • 4 Pin 7
  • 5 DAC output
  • 6 Bandgap Reference
  • 7 Internal voltage scaler

AC1MUXCTRLAnalog Comparator 1 MUX Control

Address
0x383
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5MUXPOS2
  4. 4MUXPOS1
  5. 3MUXPOS0
  6. 2MUXNEG2
  7. 1MUXNEG1
  8. 0MUXNEG0
2 fields
FieldBitsWhat it does
MUXPOS5:3MUX Positive Input
  • 0 Pin 0
  • 1 Pin 1
  • 2 Pin 2
  • 3 Pin 3
  • 4 Pin 4
  • 5 Pin 5
  • 6 Pin 6
  • 7 DAC output
MUXNEG2:0MUX Negative Input
  • 0 Pin 0
  • 1 Pin 1
  • 2 Pin 3
  • 3 Pin 5
  • 4 Pin 7
  • 5 DAC output
  • 6 Bandgap Reference
  • 7 Internal voltage scaler

CTRLAControl Register A

Address
0x384
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1–
  8. 0AC0OUT
1 field
FieldBitsWhat it does
AC0OUT0Analog Comparator 0 Output Enable

CTRLBControl Register B

Address
0x385
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5SCALEFAC5
  4. 4SCALEFAC4
  5. 3SCALEFAC3
  6. 2SCALEFAC2
  7. 1SCALEFAC1
  8. 0SCALEFAC0
1 field
FieldBitsWhat it does
SCALEFAC5:0VCC Voltage Scaler Factor

WINCTRLWindow Mode Control

Address
0x386
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4WEN
  5. 3WINTMODE1
  6. 2WINTMODE0
  7. 1WINTLVL1
  8. 0WINTLVL0
3 fields
FieldBitsWhat it does
WEN4Window Mode Enable
WINTMODE3:2Window Interrupt Mode
  • 0 Interrupt on above window
  • 1 Interrupt on inside window
  • 2 Interrupt on below window
  • 3 Interrupt on outside window
WINTLVL1:0Window Interrupt Level
  • 0 Interrupt disabled
  • 1 Low priority
  • 2 Medium priority
  • 3 High priority

STATUSStatus

Address
0x387
Reset
0x00
Access
read/write
  1. 7WSTATE1
  2. 6WSTATE0
  3. 5AC1STATE
  4. 4AC0STATE
  5. 3–
  6. 2WIF
  7. 1AC1IF
  8. 0AC0IF
6 fields
FieldBitsWhat it does
WSTATE7:6Window Mode State
  • 0 Signal above window
  • 1 Signal inside window
  • 2 Signal below window
AC1STATE5Analog Comparator 1 State
AC0STATE4Analog Comparator 0 State
WIF2Window Mode Interrupt Flag
AC1IF1Analog Comparator 1 Interrupt Flag
AC0IF0Analog Comparator 0 Interrupt Flag