ATxmega64D4 ACA registers The 8 registers of ACA (Analog Comparator), from 0x380, with their reset value and every field. The ATxmega64D4 has 441 registers in 45 peripherals, one page each.
ACA Analog Comparator AC0CTRLAnalog Comparator 0 Control
Address 0x380
Reset 0x00
Access read/write 7 INTMODE1 6 INTMODE0 5 INTLVL1 4 INTLVL0 3 – 2 HYSMODE1 1 HYSMODE0 0 ENABLE 4 fields
Field Bits What it does INTMODE 7:6 Interrupt Mode0 Interrupt on both edges2 Interrupt on falling edge3 Interrupt on rising edge INTLVL 5:4 Interrupt Level0 Interrupt disabled1 Low level2 Medium level3 High level HYSMODE 2:1 Hysteresis Mode0 No hysteresis1 Small hysteresis2 Large hysteresis ENABLE 0 Enable
AC1CTRLAnalog Comparator 1 Control
Address 0x381
Reset 0x00
Access read/write 7 INTMODE1 6 INTMODE0 5 INTLVL1 4 INTLVL0 3 – 2 HYSMODE1 1 HYSMODE0 0 ENABLE 4 fields
Field Bits What it does INTMODE 7:6 Interrupt Mode0 Interrupt on both edges2 Interrupt on falling edge3 Interrupt on rising edge INTLVL 5:4 Interrupt Level0 Interrupt disabled1 Low level2 Medium level3 High level HYSMODE 2:1 Hysteresis Mode0 No hysteresis1 Small hysteresis2 Large hysteresis ENABLE 0 Enable
AC0MUXCTRLAnalog Comparator 0 MUX Control
Address 0x382
Reset 0x00
Access read/write 7 – 6 – 5 MUXPOS2 4 MUXPOS1 3 MUXPOS0 2 MUXNEG2 1 MUXNEG1 0 MUXNEG0 2 fields
Field Bits What it does MUXPOS 5:3 MUX Positive Input0 Pin 01 Pin 12 Pin 23 Pin 34 Pin 45 Pin 56 Pin 6 MUXNEG 2:0 MUX Negative Input0 Pin 01 Pin 12 Pin 33 Pin 54 Pin 76 Bandgap Reference7 Internal voltage scaler
AC1MUXCTRLAnalog Comparator 1 MUX Control
Address 0x383
Reset 0x00
Access read/write 7 – 6 – 5 MUXPOS2 4 MUXPOS1 3 MUXPOS0 2 MUXNEG2 1 MUXNEG1 0 MUXNEG0 2 fields
Field Bits What it does MUXPOS 5:3 MUX Positive Input0 Pin 01 Pin 12 Pin 23 Pin 34 Pin 45 Pin 56 Pin 6 MUXNEG 2:0 MUX Negative Input0 Pin 01 Pin 12 Pin 33 Pin 54 Pin 76 Bandgap Reference7 Internal voltage scaler
CTRLAControl Register A
Address 0x384
Reset 0x00
Access read/write 7 – 6 – 5 – 4 – 3 – 2 – 1 AC1OUT 0 AC0OUT 2 fields
Field Bits What it does AC1OUT 1 Analog Comparator 1 Output Enable AC0OUT 0 Analog Comparator 0 Output Enable
CTRLBControl Register B
Address 0x385
Reset 0x00
Access read/write 7 – 6 – 5 SCALEFAC5 4 SCALEFAC4 3 SCALEFAC3 2 SCALEFAC2 1 SCALEFAC1 0 SCALEFAC0 1 field
Field Bits What it does SCALEFAC 5:0 VCC Voltage Scaler Factor
WINCTRLWindow Mode Control
Address 0x386
Reset 0x00
Access read/write 7 – 6 – 5 – 4 WEN 3 WINTMODE1 2 WINTMODE0 1 WINTLVL1 0 WINTLVL0 3 fields
Field Bits What it does WEN 4 Window Mode Enable WINTMODE 3:2 Window Interrupt Mode0 Interrupt on above window1 Interrupt on inside window2 Interrupt on below window3 Interrupt on outside window WINTLVL 1:0 Window Interrupt Level0 Interrupt disabled1 Low priority2 Medium priority3 High priority
STATUSStatus
Address 0x387
Reset 0x00
Access read/write 7 WSTATE1 6 WSTATE0 5 AC1STATE 4 AC0STATE 3 – 2 WIF 1 AC1IF 0 AC0IF 6 fields
Field Bits What it does WSTATE 7:6 Window Mode State0 Signal above window1 Signal inside window2 Signal below window AC1STATE 5 Analog Comparator 1 State AC0STATE 4 Analog Comparator 0 State WIF 2 Window Mode Interrupt Flag AC1IF 1 Analog Comparator 1 Interrupt Flag AC0IF 0 Analog Comparator 0 Interrupt Flag