Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

STMPE812 Datasheet(PDF) 37 Page - STMicroelectronics

Part # STMPE812
Description  S-Touch® enhanced 4-wire resistive touchscreen controller with PWM
PDF  51 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

STMPE812 Datasheet(HTML) 37 Page - STMicroelectronics

Back Button STMPE812 Datasheet HTML 33Page - STMicroelectronics STMPE812 Datasheet HTML 34Page - STMicroelectronics STMPE812 Datasheet HTML 35Page - STMicroelectronics STMPE812 Datasheet HTML 36Page - STMicroelectronics STMPE812 Datasheet HTML 37Page - STMicroelectronics STMPE812 Datasheet HTML 38Page - STMicroelectronics STMPE812 Datasheet HTML 39Page - STMicroelectronics STMPE812 Datasheet HTML 40Page - STMicroelectronics STMPE812 Datasheet HTML 41Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 37 / 51 page
background image
STMPE812
Touchscreen controller
Doc ID 17732 Rev 3
37/51
11.4
Programming model
Below are steps to configure the Touchscreen controller in 3 different acquisition modes.
A. Autonomous touchscreen controller, 100 Hz, lowest power possible
1.
Initialize the touchscreen controller (choose ACQ_Mode ‘00’ - data acquisition timed by
internal timer)
2.
Initialize Interrupt (With TSC_Data enabled, normal interrupt mode)
3.
Wait for Interrupt
4.
On interrupt: Read interrupt status (this clears the set bits too)
5.
If data is available, read data.
Note:
If one set of data is available in buffer, and not accessed by the I2C host, yet the sampling
timer is up for the next data, the STMPE812 samples the next data as scheduled.
If old data is still NOT accessed when new data is ready to be written to the buffer, it is over-
written.
If old data is IN PROGRESS of being accessed, new data is DISCARDED.
If I2C host accessed PART OF the data, and moved on to read ANY OTHER REGISTER
LOCATION, the existing data is CONSIDERED READ, and new data ready to be written into
buffer
B. Non-autonomous touchscreen controller style-interrupt, 100Hz, lowest
power possible:
1.
Initialize TSC (Choose ACQ_Mode ‘01’ - Data acquisition triggered by a write to “ACQ”
bit)
2.
Initialize Interrupt (With TSC_Data, TSC_Touch enabled, PEN_DOWN interrupt mode)
3.
Wait for Interrupt
4.
On Interrupt: Read Interrupt Status (this clears the set bits too)
5.
If PEN_DOWN, start SYSTEM_TIMER (10 ms typically)
6.
On TIMEOUT, write ACQ bit to start acquisition
7.
Poll interrupt status register or ACQ bit to check for acquisition status
8.
ON issuing ACQ, 812 may assume that data in buffer is already accessed by I2C host,
and reset the relevant pointers.
C. Host-controlled sampling rate (lowest bus utilization)
1.
Initialize TSC (choose ACQ_Mode ‘10’ - Data acquisition using host-controlled
sampling rate control)
2.
Initialize interrupt (with TSC_Data, TSC_Touch enabled, PEN_DOWN interrupt mode)
3.
Wait for Interrupt
4.
On interrupt: Read Interrupt Status (this clears the set bits too)
5.
If PEN_DOWN, start SYSTEM_TIMER (10 ms typically)
6.
On TIMEOUT, read data
Obsolete
Product(s)
- Obsolete
Product(s)



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 38 39 40 41 42 43 44 45 46 47 48 49 50 51


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