Atmel /ATSAMR21G18A /AC /COMPCTRL1

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as COMPCTRL1

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (ENABLE)ENABLE 0 (SINGLE)SINGLE 0 (LOW)SPEED 0 (TOGGLE)INTSEL 0 (PIN0)MUXNEG 0 (PIN0)MUXPOS 0 (SWAP)SWAP 0 (OFF)OUT0 (HYST)HYST 0 (OFF)FLEN

INTSEL=TOGGLE, MUXPOS=PIN0, OUT=OFF, FLEN=OFF, SPEED=LOW, MUXNEG=PIN0

Description

Comparator Control n

Fields

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)

Links

() ()