28.5.1 Control A
Name: | CTRLA |
Offset: | 0x00 |
Reset: | 0x00 |
Property: | - |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
RUNSTDBY | OUTEN | INTMODE[1:0] | HYSMODE[1:0] | ENABLE | |||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit 7 – RUNSTDBY Run in Standby Mode
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.Value | Description |
---|---|
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
1
’ makes the OUT signal available on the
pin.Bits 5:4 – INTMODE[1:0] Interrupt Modes
Writing to this bit field selects what edges of the AC output triggers an interrupt request.
Value | Name | Description |
---|---|---|
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
Writing to this bit field selects the Hysteresis mode for the AC input.
Value | Name | Description |
---|---|---|
0x0 | OFF | OFF |
0x1 | 10 | ±10 mV |
0x2 | 25 | ±25 mV |
0x3 | 50 | ±50 mV |
Bit 0 – ENABLE Enable AC
1
’ enables the AC.