8-bit AVR Microcontroller

Analog Comparator Control and Status Register 0

Name:
ACSRB
Offset:
0x1E
Reset:
0x00
Access:
Bit76543210
ACOEACPMUX
AccessR/WR/W
Reset00

Bit 1 – ACOE: Analog Comparator Output Enable

Analog Comparator Output Enable

When this bit is set, the analog comparator output is connected to the ACO pin.

Bit 0 – ACPMUX: Analog Comparator Positive Input Multiplexer

Analog Comparator Positive Input Multiplexer

When this bit is set, a fixed bandgap reference voltage replaces the positive input to the Analog Comparator. When this bit is cleared, AIN0 is applied to the positive input of the Analog Comparator. When the bandgap reference is used as input to the Analog Comparator, it will take a certain time for the voltage to stabilize. If not stabilized, the first conversion may give a wrong value.