3M™ MicroTouch™ Controller SX112 Reference Guide
23
3M Touch Systems, Inc. Proprietary Information
Format Tablet
Syntax: <SOH>
FT
<CR>
Description: Outputs the X/Y touch coordinate data in a 5-byte packet. The packet includes 1 status
byte and 4 bytes of binary X/Y coordinate data. The protocol also establishes the X and Y
coordinate output as 14 binary bits providing a range of 0 to 16,383.
The low order bits (X3 – X0 and Y3 – Y0) are not significant in a 1024 by 1024 sensor
because data can fluctuate with each touch, and therefore may not be completely
accurate.
To use Format Tablet, the controller and host system must be in an 8-bit data
communication mode. The Format Tablet command returns a negative response if the
controller is in 7-bit format.
Response:
<SOH>
0
<CR> Positive response.
With the controller in Format Tablet mode, touching the sensor causes the controller to
return a response in the following format:
SXxYy
S
= Status byte, first byte of data. Refer to Table 10.
Xx
= X (horizontal) coordinate data; second and third bytes of data.
Yy
= Y (vertical) coordinate data; fourth and fifth bytes of data.
Table 10 Data Sequence
MSB*
Bits
LSB*
Data Sequence 7
6
5
4
3
2
1
0
S Byte
1 1 S6 S5 S4 S3 S2 S1 S0
X Byte
2 0 X6 X5 X4 X3 X2 X1 X0
x
Byte
3 0 X13 X12 X11 X10 X9 X8 X7
Y Byte
4 0 Y6 Y5 Y4 Y3 Y2 Y1 Y0
y
Byte
5 0 Y13 Y12 Y11 Y10 Y9 Y8 Y7
*
MSB = Most Significant Bit, LSB = Least Significant Bit
Table 11 defines the status bits (Byte 1) for the Format Tablet data.
Table 11 Format Tablet Status Bits
Bit
Description
Values
S0 – S5 Reserved
—
S6
Proximity (touch state)
1 = Sensor is being touched (a touchdown or a continued touch).
0 = Sensor is not being touched (a touch liftoff or inactive).
When the proximity bit changes from 1 to 0 (touch liftoff), the
controller outputs one final set of X/Y coordinate data with the bit
equal to 0 and the X/Y coordinate data equal to the last touch point.
S7
Packet synchronization Always 1.