English
Language : 

SAM4L Datasheet, PDF (971/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
• On toggle of the window compare output (ACWOUT).
• When the comparison in both ACs in the window mode is ready.
• When the common input voltage enters the window (i.e., rising-edge of ACWOUT).
• When the common input voltage leaves the window (i.e., falling-edge of ACWOUT).
37.6.5.3
Window Mode Peripheral Events
When operating in window mode, each AC can generate the same peripheral events as in nor-
mal mode, see Section 37.6.4.3.
Additionally, user enables generation of window peripheral events by writing a one to the Win-
dow Peripheral Event Enable bit (CONFWx.WFEN).
Writing to Window Mode Peripheral Event Selection Source (CONFWx.WEVSRC) selects the
peripheral events source:
• As soon as the common input voltage is inside the window.
• As soon as the common input voltage is outside the window.
• On toggle of the window compare output (ACWOUT)
• Whenever a comparison is ready and the common input voltage is inside the window.
• Whenever a comparison is ready and the common input voltage is outside the window.
• When the comparison of both ACs in the window mode is ready.
37.6.6
Analog Hysteresis Control
The user can select the hysteresis voltage used by each AC to reduce noise in its output. As
shown in Figure 37-3, the output of the AC switches from zero to one when the differential volt-
age VD (= VINP - VINN) is greater than (hysteresis voltage / 2) and switches from one to zero when
VD is less than (hysteresis voltage / 2). The hysteresis voltage for each AC is selected by writing
to the Hysteresis Voltage field in the CONFx register (CONFx.HYS), as shown in Table 37-3.
Figure 37-3. Hysteresis Voltage
ACOUT
VDD
Hysteresis Voltage
VD = VINP – VINN
Table 37-3. Hysteresis Voltage Selection
CONFx.HYS Hysteresis Voltage (mV)
0
0
1
25
2
50
3
75
42023C–SAM–02/2013
971