Specifications
Touch Controllers Reference Guide62
Mode Status
Note:
MicroTouch provides this command for compatibility with older touchscreen
controllers. To ensure compatibility with all existing and future MicroTouch controllers,
do not use this command when developing your touch drivers and applications.
Syntax: <SOH>MT<CR>
Description: Sends a touch status byte preceding the X, Y coordinate data sent in
response to a Format Decimal or Format Hexadecimal command. The
format of the data depends on the last format command received by
the controller.
By default, Format Decimal and Format Hexadecimal send a 9-byte
data packet. The first byte is the header byte. If you use the Mode
Status command, the first byte becomes a status byte. This status byte
defines whether the X, Y coordinates are generated from a
touchdown, a touch continuation (when the finger is resting on the
screen), or a touch liftoff.
MicroTouch recommends that you use the Mode Status command in
conjunction with Format Decimal and Format Hexadecimal so that the
touch data includes status information in the packet header byte. By
default, Format Decimal and Format Hexadecimal do not contain the
status information in the header byte.
Note:
You should always send the format command (Decimal and
Hexadecimal) first, and then send the Mode Status command.
You do not need to send a Mode Status command if you are using
Format Tablet, Format Binary, or Format Binary Stream.
The Format Tablet protocol automatically includes status
information in the first byte of data.
Format Binary and Format Binary Stream automatically issue a
Mode Status command.