Datasheet

Table Of Contents
46.8.12 Comparator Control n
Name:  COMPCTRL
Offset:  0x10 + n*0x04 [n=0..1]
Reset:  0x00000000
Property:  PAC Write-Protection
Bit 31 30 29 28 27 26 25 24
OUT[1:0] FLEN[2:0]
Access
R/W R/W R/W R/W R/W
Reset 0 0 0 0 0
Bit 23 22 21 20 19 18 17 16
HYST[1:0] HYSTEN SPEED[1:0]
Access
R/W R/W R/W R/W R/W
Reset 0 0 0 0 0
Bit 15 14 13 12 11 10 9 8
SWAP MUXPOS[2:0] MUXNEG[2:0]
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 6 5 4 3 2 1 0
RUNSTDBY INTSEL[1:0] SINGLE ENABLE
Access
R/W R/W R/W R/W R/W
Reset 0 0 0 0 0
Bits 29:28 – OUT[1:0] Output
These bits configure the output selection for comparator n. COMPCTRLn.OUT can be written only while
COMPCTRLn.ENABLE is zero.
Note:  For internal use of the comparison results by the CCL, this bit must be 0x1 or 0x2.
These bits are not synchronized.
Value Name Description
0x0
OFF The output of COMPn is not routed to the COMPn I/O port
0x1
ASYNC The asynchronous output of COMPn is routed to the COMPn I/O port
0x2
SYNC The synchronous output (including filtering) of COMPn is routed to the COMPn I/O
port
0x3
N/A Reserved
Bits 26:24 – FLEN[2:0] Filter Length
These bits configure the filtering for comparator n. COMPCTRLn.FLEN can only be written while
COMPCTRLn.ENABLE is zero.
These bits are not synchronized.
Value Name Description
0x0
OFF No filtering
0x1
MAJ3 3-bit majority function (2 of 3)
0x2
MAJ5 5-bit majority function (3 of 5)
0x3-0x7
N/A Reserved
SAM D5x/E5x Family Data Sheet
AC – Analog Comparators
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1666