29.5.1 Control A

Name: CTRLA
Offset: 0x00
Reset: 0x00
Property: -

Bit 76543210 
 RUNSTDBYOUTENINTMODE[1:0]LPMODEHYSMODE[1:0]ENABLE 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bit 7 – RUNSTDBY 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
0In Standby Sleep mode, the peripheral is halted
1In Standby Sleep mode, the peripheral continues operation

Bit 6 – OUTEN 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

Writing to these bits selects what edges of the AC output triggers an interrupt request.

ValueNameDescription
0x0BOTHEDGEBoth negative and positive edge
0x1-Reserved
0x2NEGEDGENegative edge
0x3POSEDGEPositive edge

Bit 3 – LPMODE Low-Power Mode

Writing a '1' to this bit reduces the current through the comparator. This reduces the power consumption but increases the reaction time of the AC.

ValueDescription
0Low-Power mode disabled
1Low-Power mode enabled

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

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

ValueNameDescription
0x0OFFOFF
0x110±10 mV
0x225±25 mV
0x350±50 mV

Bit 0 – ENABLE Enable AC

Writing this bit to '1' enables the AC.