Data Sheet
909
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
z Bits 23:20 – Reserved
These bits are unused and reserved for future use. For compatibility with future devices, always write these bits to
zero when this register is written. These bits will always return zero when read.
z Bit 19 – HYST: Hysteresis Enable
This bit indicates the hysteresis mode of comparator n. Hysteresis is available only for continuous mode (COMPC-
TRLn.SINGLE=0). COMPCTRLn.HYST can be written only while COMPCTRLn.ENABLE is zero.
0: Hysteresis is disabled.
1: Hysteresis is enabled.
This bit is not synchronized
z Bit 18 – Reserved
This bit is unused and reserved for future use. For compatibility with future devices, always write this bit to zero
when this register is written. This bit will always return zero when read.
z Bits 17:16 – OUT[1:0]: Output
These bits configure the output selection for comparator n. COMPCTRLn.OUT can be written only while COMPC-
TRLn.ENABLE is zero.
These bits are not synchronized.
Table 33-7. Output
z 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 off-
set cancellation. COMPCTRLn.SWAP can be written only while COMPCTRLn.ENABLE is zero.
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.
This bit is not synchronized
z Bit 14 – Reserved
This bit is unused and reserved for future use. For compatibility with future devices, always write this bit to zero
when this register is written. This bit will always return zero when read.
0x1 MAJ3 3-bit majority function (2 of 3)
0x2 MAJ5 5-bit majority function (3 of 5)
0x3-0x7 Reserved
OUT[1:0] 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 Reserved
FLEN[2:0] Name Description