Electronic Components Datasheet Search
  English  ▼

X  

AN4316 Datasheet(PDF) 17 Page - STMicroelectronics

Part # AN4316
Description  Tuning a STMTouch-based application
PDF  26 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4316 Datasheet(HTML) 17 Page - STMicroelectronics

Back Button AN4316 Datasheet HTML 13Page - STMicroelectronics AN4316 Datasheet HTML 14Page - STMicroelectronics AN4316 Datasheet HTML 15Page - STMicroelectronics AN4316 Datasheet HTML 16Page - STMicroelectronics AN4316 Datasheet HTML 17Page - STMicroelectronics AN4316 Datasheet HTML 18Page - STMicroelectronics AN4316 Datasheet HTML 19Page - STMicroelectronics AN4316 Datasheet HTML 20Page - STMicroelectronics AN4316 Datasheet HTML 21Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 17 / 26 page
background image
DocID024847 Rev 2
17/26
AN4316
Tuning of the thresholds
25
4.3
Debounce settings
In order to improve the robustness of the application, the STMTouch driver provides the
debounce feature. To validate a touch detection, the delta must have exceeded the
threshold during a certain number of consecutive samples as shown in Figure 8. This is to
avoid a false-detection due to a noise peak.
Figure 8. Debouncing example
Due to the use of a down-counter, the DEBOUNCE preprocessor constant must be set to n-
1 while n consecutive sample must be measured below the detection threshold before
triggering a detection.
#define TSLPRM_DEBOUNCE_DETECT (2) //3 consecutive samples needed to enter
in Detection.
The debounce feature is configurable for each state transition:
•
TSLPRM_DEBOUNCE_PROX: while switching from release state to proximity state
•
TSLPRM_DEBOUNCE_DETECT: while switching from release state or proximity to
touch detection state
•
TSLPRM_DEBOUNCE_RELEASE: while switching from touch or proximity state to
release state
•
TSLPRM_DEBOUNCE_CALIB: while switching from release state to calibration state
(compute again the reference)
•
TSLPRM_DEBOUNCE_ERROR: while switching from any state to error state



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com