INTSEL=TOGGLE, MUXPOS=PIN0, OUT=OFF, FLEN=OFF, SPEED=LOW, MUXNEG=PIN0
Comparator Control n
ENABLE | Enable |
SINGLE | Single-Shot Mode |
SPEED | Speed Selection 0 (LOW): Low speed 1 (HIGH): High speed |
INTSEL | Interrupt Selection 0 (TOGGLE): Interrupt on comparator output toggle 1 (RISING): Interrupt on comparator output rising 2 (FALLING): Interrupt on comparator output falling 3 (EOC): Interrupt on end of comparison (single-shot mode only) |
MUXNEG | Negative Input Mux Selection 0 (PIN0): I/O pin 0 1 (PIN1): I/O pin 1 2 (PIN2): I/O pin 2 3 (PIN3): I/O pin 3 4 (GND): Ground 5 (VSCALE): VDD scaler 6 (BANDGAP): Internal bandgap voltage 7 (DAC): DAC output |
MUXPOS | Positive Input Mux Selection 0 (PIN0): I/O pin 0 1 (PIN1): I/O pin 1 2 (PIN2): I/O pin 2 3 (PIN3): I/O pin 3 |
SWAP | Swap Inputs and Invert |
OUT | Output 0 (OFF): The output of COMPn is not routed to the COMPn I/O port 1 (ASYNC): The asynchronous output of COMPn is routed to the COMPn I/O port 2 (SYNC): The synchronous output (including filtering) of COMPn is routed to the COMPn I/O port |
HYST | Hysteresis Enable |
FLEN | Filter Length 0 (OFF): No filtering 1 (MAJ3): 3-bit majority function (2 of 3) 2 (MAJ5): 5-bit majority function (3 of 5) |