Datasheet

Table Of Contents
Bits 21:20 – HYST[1:0] Hysteresis Level
These bits indicate the hysteresis level of comparator n when hysteresis is enabled
(COMPCTRLn.HYSTEN=1). Hysteresis is available only for continuous mode (COMPCTRLn.SINGLE=0).
COMPCTRLn.HYST can be written only while COMPCTRLn.ENABLE is zero.
These bits are not synchronized.
Value Name Description
0x0
HYST50 50mV
0x1
HYST100 100mV
0x2
HYST150 150mV
0x3
N/A Reserved
Bit 19 – HYSTEN Hysteresis Enable
This bit indicates the hysteresis mode of comparator n. Hysteresis is available only for continuous mode
(COMPCTRLn.SINGLE=0).
This bit is not synchronized.
Value Description
0
Hysteresis is disabled.
1
Hysteresis is enabled.
Bits 17:16 – SPEED[1:0] Speed Selection
This bit must be written to 0x3 for each comparator n. COMPCTRLn.SPEED can be written only while
COMPCTRLn.ENABLE is zero.
These bits are not synchronized.
Value Name Description
0x3
HIGH High speed
Other
- Reserved
Bit 15 – SWAP Swap Inputs and Invert
This bit swaps the positive and negative inputs to COMPn and inverts the output. This function can be
used for offset cancellation. COMPCTRLn.SWAP can be written only while COMPCTRLn.ENABLE is
zero.
These bits are not synchronized.
Value Description
0
The output of MUXPOS connects to the positive input, and the output of MUXNEG connects
to the negative input.
1
The output of MUXNEG connects to the positive input, and the output of MUXPOS connects
to the negative input.
Bits 14:12 – MUXPOS[2:0] Positive Input Mux Selection
These bits select which input will be connected to the positive input of comparator n.
COMPCTRLn.MUXPOS can be written only while COMPCTRLn.ENABLE is zero.
These bits are not synchronized.
Value Name Description
0x0
PIN0 I/O pin 0
0x1
PIN1 I/O pin 1
0x2
PIN2 I/O pin 2
0x3
PIN3 I/O pin 3
0x4
VSCALE VDD scaler
0x5–0x7
- Reserved
SAM D5x/E5x Family Data Sheet
AC – Analog Comparators
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1667