Specifications
90 Chapter 6 - Command Reference
Mode ('M','m')
Function: Sets the various operating modes of the controller.
The Mode command offers two methods of setting the various operating modes.
The binary method uses two bitmapped bytes to set the mode. The binary method
is indicated by the presence of a null byte in position 1. The ASCII method uses a
string of ASCII letters to set the mode, useful if the controller is connected to a
terminal for evaluation purposes. Modes are discussed in the tutorial in Chapter 4.
The Mode1 byte has the following bit positions, corresponding to bit positions in
the Status byte in the Touch packet.
Bit Function Description
0 Initial Touch Mode If 1, a Touch packet will be transmitted on
initial touch. Bit 0 in the Status byte of the
Touch packet will be set indicating an Initial
touch.
1 Stream Mode If 1, Touch Packets will be transmitted
continuously while the touchscreen is being
touched. Bit 1 in the Status byte of the Touch
packet will be set indicating Stream touches.
When Stream Mode is disabled, the controller
is in Single-Point Mode.
2 Untouch Mode If 1, a Touch Packet will be transmitted on
untouch (release). Bit 2 in the Status byte of
the Touch packet will be set indicating an
Untouch.
3 Reserved
4 Warning Pending If 1, an Acknowledge query should be issued
to receive non-command-related warning(s).
This bit is only valid on a Mode query.
5 Reserved
6 Range Checking If 1, Range Checking Mode is enabled. Bit 6
in the Status byte of the Touch packet will be
set indicating a touch is outside the
calibration points. Calibration Mode must also
be enabled (bit 2 of Mode2 below) and
Calibration Points set with the Calibration
command. Range Checking Mode is typically
combined with Trim Mode (bit 1 of Mode2
below).