Atmel SAM4L-EK Atmel ATSAM4L-EK ATSAM4L-EK Data Sheet

Product codes
ATSAM4L-EK
Page of 1204
935
42023E–SAM–07/2013
ATSAM4L8/L4/L2
34.7.7
Threshold Register 
Name:
THRESH
Access Type: Read/Write
Offset: 
0x18
Reset Value:
0x00000000
• LENGTH: Threshold Length
The amount of successive samples that have to be beyond the threshold before a in- or out-of-touch event is detected.
• DIR: Threshold Direction
0: Touch is detected when LEVEL goes above threshold value.
1: Touch is detected when LEVEL goes below threshold value.
• RTHRESH: Integer Threshold Value
The integer part of the threshold value. Note that some of the LSB’s of this field might not be implemented. Refer to the Module 
Configuration section.
• FTHRESH: Fractional Threshold Value
The fractional part of the threshold value. Note that some of the LSB’s of this field might not be implemented. Refer to the 
Module Configuration section.
31
30
29
28
27
26
25
24
-
-
-
LENGTH
23
22
21
20
19
18
17
16
DIR
-
-
-
RTHRESH[7:4]
15
14
13
12
11
10
9
8
RTHRESH[3:0]
FTHRESH[11:8]
7
6
5
4
3
2
1
0
FTHRESH[7:0]