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
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
HYST70
70mV
0x2
HYST90
90mV
0x3
HYST110
110mV
Bit 19 – HYSTEN: Hysteresis Enable
This bit indicates the hysteresis mode of comparator n. Hysteresis is available only for continuous mode
(COMPCTRLn.SINGLE=0). COMPCTRLn.HYST can be written only while COMPCTRLn.ENABLE is
zero.
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 indicates the speed/propagation delay mode of comparator n. COMPCTRLn.SPEED can be
written only while COMPCTRLn.ENABLE is zero.
These bits are not synchronized.
Value
Name
Description
0x0
LOW
Low speed
0x1
MEDLOW
Medium low speed
0x2
MEDHIGH
Medium high speed
0x3
HIGH
High speed
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.
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
1056