AVR16DD28 AC0 registers

The 5 registers of AC0 (Analog Comparator), from 0x680, with their reset value and every field. The AVR16DD28 has 440 registers in 42 peripherals, one page each.

AC0 Analog Comparator

CTRLAControl A

Address
0x680
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
  • 3 Power profile 3
HYSMODE2:1Hysteresis Mode
  • 0 No hysteresis
  • 1 Small hysteresis
  • 2 Medium hysteresis
  • 3 Large hysteresis
ENABLE0Enable

MUXCTRLMux Control A

Address
0x682
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
  • 3 Positive Pin 3
  • 4 Positive Pin 4
MUXNEG2:0Negative Input MUX Selection
  • 0 Negative Pin 0
  • 2 Negative Pin 2
  • 3 Negative Pin 3
  • 4 DAC Reference

DACREFDAC Voltage Reference

Address
0x685
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
0x686
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5INTMODE1
  4. 4INTMODE0
  5. 3–
  6. 2–
  7. 1–
  8. 0CMP
2 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
CMP0Interrupt Enable

STATUSStatus

Address
0x687
Reset
0x00
Access
read/write
  1. 7–
  2. 6–
  3. 5–
  4. 4CMPSTATE
  5. 3–
  6. 2–
  7. 1–
  8. 0CMPIF
2 fields
FieldBitsWhat it does
CMPSTATE4Analog Comparator State
CMPIF0Analog Comparator Interrupt Flag