Atmel Xplained Pro Evaluation Kit for the ATSAMD21J18A Microcontroller ATSAMD21-XPRO ATSAMD21-XPRO Fiche De Données

Codes de produits
ATSAMD21-XPRO
Page de 1018
880
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181C–SAM-D21_Datasheet–07/2014
Figure 33-6. Continuous Mode Filtering
Figure 33-7. Single-Shot Filtering
During sleep modes, filtering is supported only for single-shot measurements. Filtering must be disabled if continuous 
measurements will be done during sleep modes, or the resulting interrupt/event may be generated incorrectly.
33.6.10 Comparator Output
The output of each comparator can be routed to an I/O pin by setting the Output bit group in the Comparator Control x 
register (COMPCTRLx.OUT). This allows the comparator to be used by external circuitry. Either the raw, non-
synchronized output of the comparator or the CLK_AC-synchronized version, including filtering, can be used as the I/O 
signal source. The output appears on the corresponding CMP[x] pin.
33.6.11 Offset Compensation
The Swap bit in the Comparator Control registers (COMPCTRLx.SWAP) controls switching of the input signals to a 
comparator's positive and negative terminals. When the comparator terminals are swapped, the output signal from the 
comparator is also inverted, as shown in 
. This allows the user to measure or compensate for the comparator 
input offset voltage. As part of the input selection, COMPCTRLx.SWAP can be changed only while the comparator is 
disabled.
Figure 33-8. Input Swapping for Offset Compensation
Sampling Clock
Sampled
Comparator Output
3-bit Majority
Filter Output
5-bit Majority
Filter Output
Sampling Clock
3-bit Sampled
Comparator Output
3-bit Majority
Filter Output
Start
5-bit Sampled
Comparator Output
5-bit Majority
Filter Output
t
SUT
MUXPOS
MUXNEG
+
-
COMPx
SWAP
ENABLE
HYSTERESIS
SWAP
CMPx
COMPCTRLx