English
Language : 

SAM4L Datasheet, PDF (930/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
34.7.7 Threshold Register
Name:
THRESH
Access Type:
Read/Write
Offset:
0x18
Reset Value:
0x00000000
ATSAM4L4/L2
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]
• 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.
42023C–SAM–02/2013
930