22 3M™ MicroTouch™ Controller EX Serial Reference Guide
3M Touch Systems, Inc. Proprietary Information – TSD-29087 Rev D
Calibrate Extended
Syntax:
<SOH>CX<CR>
Note: This command should not be used when 3M™ MicroTouch™ Software is being
used. The CX command will interfere with the auto orientation algorithm. To calibrate,
use the 2- or 4-point calibration in 3M™ MicroTouch™ Software.
Description:
Initiates an interactive 2-point calibration.
During the calibration process, you define the active area of the sensor by mapping
locations to an absolute X/Y coordinate system. You touch two target areas on the
sensor. Touching the target areas sends the X/Y coordinates for those touch points to the
controller. The controller calculates all other touch points based on these two points.
The Calibrate Extended command sets the calibration targets (points) inward from the
corner of the video image. Setting the targets inward makes the calibration process easier
and more accurate.
Guidelines for Calibrate Extended
Here are several guidelines for using the Calibrate Extended command:
The controller uses the data immediately before liftoff to register a calibration touch.
Therefore, you can touch the sensor, move your finger to the target, hold for a few
seconds, and then lift off. Instructing users to touch this way results in a more
accurate calibration.
The controller stores the data in non-volatile memory (NOVRAM). Therefore, you
do not have to calibrate the sensor each time you power on the system. You should,
however, recalibrate the sensor any time the video display changes size or resolution.
You can restart calibration at any time during this sequence by issuing a Reset
command and reissuing a CX command.
3M™ MicroTouch™ Controller EX Serial Reference Guide 23
3M Touch Systems, Inc. Proprietary Information – TSD-29087 Rev D
Determining Target Areas
The default calibration targets (points) are located 12.5% (1/8) inward from the corners
of the video image. For example, suppose the display resolution of your display is 1024 x
768. The Calibrate Extended command calculates the amount to move inward as follows:
Amount to move inward in the X direction: 1024 x 1/8 = 128
Amount to move inward in the Y direction: 768 x 1/8 = 96
*The coordinates are in video terms, with the origin (0, 0) in the upper left corner of the sensor. Examples from the
controller’s perspective, however, place the origin at the lower left corner of the sensor (numbers in brackets). The
controller outputs 0 to 64K on both axes independent of display screen resolution.
The Calibrate Extended command then positions the first calibration target inward from
the lower left corner and the second calibration target inward from the upper right
corner. The following illustration shows how the calibration targets are calculated.
Calibrate Extended Procedure
To use the CX command:
1. Enter the Calibrate Extended (CX) command. The controller sends an initial
acknowledgment of <SOH>0<CR>.
2. Touch the sensor at a lower left target, which is located 12.5% (1/8) in from the
corner of the video image. The controller returns an acknowledgment of
<SOH>1<CR>. This is a positive response. If you receive a negative response
<SOH>0<CR>, you can cancel the calibration by issuing a Reset command and then
start over again.
3. Touch the sensor at an upper right target, which is located 12.5% (1/8) in from the
corner of the video image. The controller returns an acknowledgment of
(0, 767) [0, 1024]* [1024, 1024]*
Upper Right Calibration Target
X = 1023
– (1024 x 1/8) = 1023 – 128 = 895
Y = 0 + (768
x 1/8) = 0 + 96 = 96
Lower Left Calibration Target
X = 0 + (1024 x 1/8) = 0 + 128 = 128
Y = 767 - (768 x 1/8) = 767 - 96 = 671
(0, 0) [0, 0]*
(
1023, 0) [1024, 0]*
(128, 671)
(895, 96)
24 3M™ MicroTouch™ Controller EX Serial Reference Guide
3M Touch Systems, Inc. Proprietary Information – TSD-29087 Rev D
<SOH>1<CR>. This is a positive response. If you receive a negative response, you
must start over again.
Touching the two valid calibration points results in a successful calibration. If either
calibration point is invalid, the calibration fails. The EX122 and EX112 controllers
restore the previous calibration values. If the Calibrate Extended failed, repeat the CX
process.
Response:
<SOH>1<CR> Positive response.
Indicates that the controller received a valid touch coordinate (point) when the target was
touched. Two valid touch points indicate a successful calibration.
<SOH>0<CR> Negative response
Indicates that the touch point is out of range of the expected target area. If you receive a
negative response, you must start over again.
No Response
Indicates that you did not touch the target long enough to provide an accurate calibration
point.
Calibrate Raw
Syntax:
<SOH>CR<CR>
Description:
Allows the collection of raw (signed) X and Y coordinates before the normal scaling,
linearization, and filtering processes. The controller sends a continuous stream of data in
Calibrate Raw mode.
The Calibrate Raw data is a 5-byte packet that includes 1 status byte and 4 bytes of
binary X/Y coordinate data. Each X/Y coordinate includes 10 binary bits and 1 sign bit.
The 10 bits represent coordinates within a range of -1024 to +1023.
To use the Calibrate Raw command, the controller and host system must be in an 8-bit
data communication mode. The Calibrate Raw command returns a negative response if
the controller is not using an 8-bit communication mode. To end Calibrate Raw mode,
issue a Reset command.
3M Touch Systems uses the Calibrate Raw command during manufacturing and testing,
and recommends you only use this command for diagnostics when you want raw data.
Response:
<SOH>0<CR> Positive response.
After the controller is in Calibrate Raw mode, the controller returns a response in the
following format:
SXxYy where:
S = Status byte, first byte of data. Refer to Table 6.

98000332621

Mfr. #:
Manufacturer:
3M
Description:
TOUCH SCREEN CAPACITIVE 19.73"
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet