Specifications
Touch Controllers Reference Guide60
Mode Polled
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>MQ<CR>
Description: Sends an X, Y coordinate only when requested by the host system and
only when a user touches the screen. The format of the coordinate
data depends on the last format command received by the controller.
To request touch coordinate data, the host system sends an XON
character (Ctrl Q or ^Q) to the controller. The controller returns one
X, Y coordinate to the host system only if a user touched the screen
since the last ^Q.
Mode Polled causes the controller to report a touch coordinate as
follows:
If the controller receives a ^Q before a touchdown is detected, the
controller sends a single packet immediately upon detecting a
touch. The controller waits for the next ^Q to send the touchdown
or liftoff coordinates depending on whether the finger is touching
at the time the next ^Q is received. The controller reports one
packet at a time for each ^Q received while the finger is touching
the screen.
If the controller detects a touchdown before a ^Q is received, the
controller remembers the touchdown coordinate and waits for a
^Q before sending out the touchdown packet.
If the controller detects both a touchdown and a liftoff before a ^Q
is received, the controller remembers both points and waits for a
^Q. Upon receiving a ^Q, the controller reports the touchdown
packet and waits for the next ^Q before sending the liftoff packet.
If the host system sends two or more ^Q signals before a
touchdown occurs, the controller does not send multiple packets
when a touchdown is detected.