Control A

  0x00 8 - 0x00    

Control A

Bit  7 6 5 4 3 2 1 0  
Access  R/W R/W R/W R/W R/W R/W R/W R/W  
Reset  0 0 0 0 0 0 0 0  

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.
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 which edges of the AC output triggers an interrupt request.

Table 1. Interrupts in Regular Mode
Value Name Description
0x0 BOTHEDGE Both negative and positive edge
0x1 - Reserved
0x2 NEGEDGE Negative edge
0x3 POSEDGE Positive edge

Bit 3 – LPMODE: Low-Power Mode

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.

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

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

Hysteresis Mode Select

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

0x0 NONE No hysteresis
0x1 SMALL Small hysteresis
0x2 MEDIUM Medium hysteresis
0x3 LARGE Large hysteresis

Bit 0 – ENABLE: Enable AC

Enable AC

Writing this bit to '1' enables the AC.