AVR32DA48S AC2 registers

The 6 registers of AC2 (Analog Comparator), from 0x690, with their reset value and every field. The AVR32DA48S has 659 registers in 56 peripherals, one page each.

AC2 Analog Comparator

CTRLAControl A

Address
0x690
Reset
0x00
Access
read/write
  1. 7RUNSTDBY
  2. 6OUTEN
  3. 5–
  4. 4POWER1
  5. 3POWER0
  6. 2HYSMODE1
  7. 1HYSMODE0
  8. 0ENABLE
5 fields
FieldBitsWhat it does
RUNSTDBY7Run in Standby Mode
OUTEN6Output Pad Enable
POWER4:3Power profile
  • 0 Power profile 0, Shortest response time, highest consumption
  • 1 Power profile 1
  • 2 Power profile 2
HYSMODE2:1Hysteresis Mode
  • 0 No hysteresis
  • 1 Small hysteresis
  • 2 Medium hysteresis
  • 3 Large hysteresis
ENABLE0Enable

CTRLBControl B

Address
0x691
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4–
  5. 3–
  6. 2–
  7. 1WINSEL1
  8. 0WINSEL0
1 field
FieldBitsWhat it does
WINSEL1:0Window selection mode
  • 0 Window function disabled
  • 1 Select ACn+1 as upper limit in window compare
  • 2 Select ACn+2 as upper limit in window compare

MUXCTRLMux Control A

Address
0x692
Reset
0x00
Access
read/write
  1. 7INVERT
  2. 6INITVAL
  3. 5MUXPOS2
  4. 4MUXPOS1
  5. 3MUXPOS0
  6. 2MUXNEG2
  7. 1MUXNEG1
  8. 0MUXNEG0
4 fields
FieldBitsWhat it does
INVERT7Invert AC Output
INITVAL6AC Output Initial Value
  • 0 Output initialized to 0
  • 1 Output initialized to 1
MUXPOS5:3Positive Input MUX Selection
  • 0 Positive Pin 0
  • 1 Positive Pin 1
  • 2 Positive Pin 2
  • 3 Positive Pin 3
MUXNEG2:0Negative Input MUX Selection
  • 0 Negative Pin 0
  • 1 Negative Pin 1
  • 2 Negative Pin 2
  • 3 DAC Reference

DACREFDAC Voltage Reference

Address
0x695
Reset
0xFF
Access
read/write
  1. 7DACREF7
  2. 6DACREF6
  3. 5DACREF5
  4. 4DACREF4
  5. 3DACREF3
  6. 2DACREF2
  7. 1DACREF1
  8. 0DACREF0
1 field
FieldBitsWhat it does
DACREF7:0DACREF

INTCTRLInterrupt Control

Address
0x696
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5INTMODE1
  4. 4INTMODE0
  5. 3–
  6. 2–
  7. 1–
  8. 0CMP
3 fields
FieldBitsWhat it does
INTMODE5:4Interrupt Mode
  • 0 Positive and negative inputs crosses
  • 2 Positive input goes below negative input
  • 3 Positive input goes above negative input
INTMODE5:4Interrupt Mode
  • 0 Window interrupt when input above both references
  • 1 Window interrupt when input betweeen references
  • 2 Window interrupt when input below both references
  • 3 Window interrupt when input outside reference
CMP0Interrupt Enable

STATUSStatus

Address
0x697
Reset
0x00
Access
read/write
  1. 7WINSTATE1
  2. 6WINSTATE0
  3. 5–
  4. 4CMPSTATE
  5. 3–
  6. 2–
  7. 1–
  8. 0CMPIF
3 fields
FieldBitsWhat it does
WINSTATE7:6Analog Comparator Window State
  • 0 Above window
  • 1 Inside window
  • 2 Below window
CMPSTATE4Analog Comparator State
CMPIF0Analog Comparator Interrupt Flag