ATxmega128A3U ACB registers

The 10 registers of ACB (Analog Comparator), from 0x390, with their reset value and every field. The ATxmega128A3U has 707 registers in 67 peripherals, one page each.

ACB Analog Comparator

AC0CTRLAnalog Comparator 0 Control

Address
0x390
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
0x391
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
0x392
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
0x393
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
0x394
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1AC1OUT
  8. 0AC0OUT
2 fields
FieldBitsWhat it does
AC1OUT1Analog Comparator 1 Output Enable
AC0OUT0Analog Comparator 0 Output Enable

CTRLBControl Register B

Address
0x395
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
0x396
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
0x397
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

CURRCTRLCurrent Source Control

Address
0x398
Reset
0x00
Access
read/write
  1. 7CURRENT
  2. 6CURRMODE
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1AC1CURR
  8. 0AC0CURR
4 fields
FieldBitsWhat it does
CURRENT7Current Source Enable
CURRMODE6Current Mode
AC1CURR1AC1 Current Source Output Enable
AC0CURR0AC0 Current Source Output Enable

CURRCALIBCurrent Source Calibration

Address
0x399
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3CALIB3
  6. 2CALIB2
  7. 1CALIB1
  8. 0CALIB0
1 field
FieldBitsWhat it does
CALIB3:0Current Source Calibration