Software AN3301
16/35 Doc ID 18161 Rev 1
2.2 Embedded data valid bit
In order to facilitate a more bandwidth efficient for data read, it is possible to program
through Bit[5] of TSC_DET_CFG2 register (0x42) whereby the data valid bit is embedded in
within the first byte of the touch data (FIFO).
Figure 11. TSC data register
In applications whereby no GPIO input/PWM/ADC is used and Pen Down interrupt mode is
selected, it is no longer necessary to read the ISR register. The data valid info can be
obtained through the embedded data valid bit and the touch release info can be obtained
merely by observing the INT pin signal. (ie. INT low: touched; INT high: release).
2.3 Pen down interrupt mode
In Pen down interrupt mode, the INT pin signal is an OR function of the Pen Down and other
enabled GPIO/PWM/ADC interrupts at Port 0 to Port 3.
It is recommended to use Pen Down mode when the GPIO/PWM/ADC functions are not
required or the GPIO/PWM/ADC interrupts are not enabled. In this condition, the INT signal
provides the exclusive indication for touched (INT low) and release (INT high).
AM08680V1
-
[7:0] of Y
[3:0] of X
[11:8] of Y
[11:4] of X
Data valid
status
411
[7:0] of Z[7:0] of Y
[3:0] of X
[11:8] of Y
[11:4] of X
Data valid
status
510
--[7:0] of Y
[3:0] of X
[11:8] of Y
[11:4] of X301
-[7:0] of Z[7:0] of Y
[3:0] of X
[11:8] of Y
[11:4] of X400
Bit[5]
StatusRead
Bit[4]
OpMode
Byte4Byte3Byte2Byte1Byte0
Number of
bytes to
read from
TSC_Data
TSC_DET_CFG2 Register
-
[7:0] of Y
[3:0] of X
[11:8] of Y
[11:4] of X
Data valid
status
411
[7:0] of Z[7:0] of Y
[3:0] of X
[11:8] of Y
[11:4] of X
Data valid
status
510
--[7:0] of Y
[3:0] of X
[11:8] of Y
[11:4] of X301
-[7:0] of Z[7:0] of Y
[3:0] of X
[11:8] of Y
[11:4] of X400
Bit[5]
StatusRead
Bit[4]
OpMode
Byte4Byte3Byte2Byte1Byte0
Number of
bytes to
read from
TSC_Data
TSC_DET_CFG2 Register
RSVDVALIDRSVD
01234567
RSVDVALIDRSVD
01234567
AN3301 Software
Doc ID 18161 Rev 1 17/35
2.4 TSC_DATA read
The TSC_DATA contains the converted data for touchscreen controller. Three to five bytes
readings are required depending on the programmed value in TSC_DET_CFG2 register.
In order to preserve the integrity of the data, it is mandatory to ensure the following:
System host to read exactly the number of bytes according to the programmed
operating mode
–I
2
C host to insert a STOP condition after each data read command
2.5 Touchscreen controller sampling
The touchscreen controller sampling time is determined by the following programmable
parameters:
Touch detect delay
Settling time
ADC conversion time
MAV (median average filter)
TSC operating mode (X/Y or X/Y/Z acquisition)
Figure 12 illustrates the diagram of a complete sampling cycle. MAV is acting within the
Sampling period of X, Y and Z respectively.
Figure 12. Touchscreen controller sampling
The overall sampling time/frequency can be calculated with below formulae.
Sampling time in X/Y/Z mode = touch detect delay *2 + (settling time + (ADC conversion
time * MAV)) * 3
Time taken for sampling in X/Y/Z mode = touch detect delay *2 + (settling time + (ADC
conversion time * MAV)) * 2
AM08681V2
-
-
A complete sampling cycle
To uch Detect Delay
Settling Time
Sampling X
Settling Time
Sampling Y
Settling Time
Sampling Z
To uch Detect Delay
Software AN3301
18/35 Doc ID 18161 Rev 1
Table 2. Example of sampling time calculation
ADC
conversion time
Touch detect
delay
Settling time MAV
Sampling
time/freq
(complete X/Y/Z
sample sets)
50 µs
40 µs 40 µs None
40*2 +
3*(40+(50*1))
=350 µs (2.8 K
sample sets/sec)
50 µs 40 µs 40 µs 10-2
40*2 + 3*(40+
(50*10))
=1700 µs (588
sample sets/sec)
50 µs 640 µs 640 µs 20-4
640*2 + 3*(640+
(50*20))
=6200 µs (161
sample sets/sec)

STMPE812ABJR

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
Touch Screen Controllers Touchscreen cntrlr S-Touch
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet