Control A
Name:
CTRLA
Offset:
0x00
Reset:
0x00
Access:
-
Bit76543210
RUNSTDBYOUTENINTMODE[1:0]HYSMODE[1:0]ENABLE
AccessR/WR/WR/WR/WR/WR/WR/W
Reset0000000

Bit 7 – RUNSTDBY: Run in Standby Mode

Run in Standby Mode

Writing a '1' to this bit allows the AC to continue operation in Standby sleep mode. Since the clock is stopped, interrupts and status flags are not updated.
ValueDescription
0 In Standby sleep mode, the peripheral is halted
1 In Standby sleep mode, the peripheral continues operation

Bit 6 – OUTEN: Analog Comparator Output Pad Enable

Analog Comparator Output Pad Enable

Writing this bit to '1' makes the OUT signal available on the pin.

Bits 5:4 – INTMODE[1:0]: Interrupt Modes

Interrupt Modes

Writing to these bits selects what edge(s) of the AC output an interrupt request is triggered.

ValueNameDescription
0x0 BOTHEDGE both negative and positive edge
0x1 - Reserved
0x2 NEGEDGE Negative edge
0x3 POSEDGE Positive edge

Bits 2:1 – HYSMODE[1:0]: Hysteresis Mode Select

Hysteresis Mode Select

Writing these bits selects the hysteresis mode for the AC input.

ValueNameDescription
0x0 OFF OFF
0x1 10 ±10mV
0x2 25 ±25mV
0x3 50 ±50mV

Bit 0 – ENABLE: Enable AC

Enable AC

Writing this bit to '1' enables the AC.