Specifications
Touch Controllers Reference Guide36
Calibrate Raw
Syntax: <SOH>CR<CR>
Description: Allows the collection of raw (signed) X and Y coordinates prior to the
normal scaling, linearization, and filtering processes. The controller
sends the coordinates whenever a touch is detected and continues to
send a stream of data as long as a finger or pen remains in contact with
the touchscreen.
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 in 7-bit
format. Also, the TouchPen controller must be in Pen Only mode or
Finger Only mode before executing the Calibrate Raw command.
To end Calibrate Raw mode, issue a Reset command.
MicroTouch uses the Calibrate Raw command during manufacturing
and testing, and recommends you use this command for diagnostics
when you want raw data. Use the Calibrate Extended command for
standard interactive, two-point calibration.
Response: <SOH>0<CR> Positive response.
After the controller is in Calibrate Raw mode, touching the screen
causes the controller to return a response in the following format:
SXxYy
where:
S = Status byte; first byte of data. Refer to Table 8.
X
x = X (horizontal) coordinate data; second and third bytes of data.
Yy = Y (vertical) coordinate data; fourth and fifth bytes of data.