データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

X  

AN2641 データシート(PDF) 30 Page - STMicroelectronics

部品番号 AN2641
部品情報  Using the color LCD controller
PDF  37 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
メーカー  STMICROELECTRONICS [STMicroelectronics]
ホームページ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2641 データシート(HTML) 30 Page - STMicroelectronics

Back Button AN2641 Datasheet HTML 26Page - STMicroelectronics AN2641 Datasheet HTML 27Page - STMicroelectronics AN2641 Datasheet HTML 28Page - STMicroelectronics AN2641 Datasheet HTML 29Page - STMicroelectronics AN2641 Datasheet HTML 30Page - STMicroelectronics AN2641 Datasheet HTML 31Page - STMicroelectronics AN2641 Datasheet HTML 32Page - STMicroelectronics AN2641 Datasheet HTML 33Page - STMicroelectronics AN2641 Datasheet HTML 34Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 30 / 37 page
background image
Touchscreen
AN2641
30/37
Doc ID 14027 Rev 1
7
Touchscreen
7.1
Theory of operation
SPEAr uses a combination of ADC and GPIO for touchscreen operation. By outputting
GPIO high the device-driver reads the X-coordinate from ADC channel number 5 and again
by outputting GPIO low it reads the Y-coordinate from ADC channel number 6. There is no
dedicated touchscreen controller in SPEAr.
The touchscreen driver has a state machine which is called every 100 milliseconds and
reads each ADC channel. The state machine has 3 states and works as shown in Figure 18.
Figure 18.
Touchscreen state machine
The touchscreen driver is probed as an input driver during Linux boot-up. At this time it only
opens the ADC. The State machine starts only after the CLCD is activated (at user level this
is typically done by an FB_ACTIVATE_FORCE call).
Just after Activation of the CLCD the ADC channels are read to get the idle values when
touchscreen is not touched. This gives an estimated threshold value.
Once the state machine is started, it reads the values from ADC channels (by polling in a
100 millisecond loop) and once it gets values above threshold, the touchscreen is assumed
to be touched (or pressed).
Once the touchscreen is pressed, the driver keeps sending coordinates unless the values
from the ADC channels go lower. This event means that the touchscreen is untouched (or
released).
The polling time (currently 100 milliseconds) of the driver is an important parameter
because it determines the touchscreen driver response time.
The touchscreen driver can be selected from menu config as follows:
Device Drivers
→ Input device support → Touchscreens →
[*] Touchscreen for SPEAr based platforms
The name of the touchscreen device is '/dev/input/ts' with the major number 13 and
minor number 64.
- PRESS state comes when panel is
touched.
- It remains in the same state while touched
and send event again and again
IDLE
PRESS
RELEASE
- This state comes when finger is
removed from panel
- Just send one event and change
state to IDLE
- Initial default state
- Comes back to IDLE state from
RELEASE after finger is removed



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 27 28 29 30 31 32 33 34 35 36 37


データシート ダウンロード

Go To PDF Page


リンク URL



ALLDATASHEETはお客様のビジネスに役立ちますか?  [ DONATE ] 

Alldatasheetは   |   広告   |   お問い合わせ   |   プライバシーポリシー   |   データシートへのリンク    |   リンク交換   |   メーカーリスト
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