Specifications

Chapter 2 Firmware Commands 41
Format Binary
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>FB<CR>
Description: Outputs the X, Y touch coordinate data as a 5-byte packet in a binary
format. The packet includes the following 5 bytes:
1 header byte (status byte because Format Binary issues a Mode
Status command)
2 bytes of binary X coordinate data
2 bytes of binary Y coordinate data
When called, Format Binary automatically issues a Mode Polled
command and a Mode Status command.
In Mode Polled, the controller sends an X, Y coordinate only when
requested by the host system and only when a user touches the screen.
The host system must send an XON character (Ctrl Q or ^Q) before
the controller can send the 5-byte data packet.
The controller sends the buffered data upon request from the host.
Data is sent as a string of decimal ASCII characters, ranging from the
‘space’ character (20 hexadecimal) to the question mark (?) character
(3F hexadecimal). The protocol establishes the X and Y coordinate
output as 0 to 1023.
The Mode Status command forces the first byte (that is, the header
byte) to become a status byte. The 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.