English
Language : 

AR1000_16 Datasheet, PDF (35/61 Pages) Microchip Technology – AR1000 Series Resistive Touch Screen Controller
AR1000 SERIES RESISTIVE TOUCH SCREEN CONTROLLER
9.3.4.3
Calibration Data Encoded and
Stored in EEPROM
System integrators may prefer to preload a calibration
into their design. This allows the user to properly
navigate to the calibration routine icon or shortcut
without the use of a mouse. This also addresses the
need to calibrate each system individually before
deploying it to the field.
The raw touch coordinates, decoded by the controller,
for each of the four calibration touches are extrapolated
if CalibrationInset was non-zero. The four coordinate
pairs are then re-oriented, if required, such that the
upper left corner is the minimum (X,Y) “origin” value
pair and the lower right corner is the maximum (X,Y)
value pair.
Coordinates are 10-bit significant values, scaled to
16-bit and stored in a High (Hi) and Low (Lo) byte pair.
Separator
Upper Left (Node 1)
X
Y
Lo Hi Lo Hi
Upper Right (Node 2) Lower Right (Node 3)
X
Y
X
Y
Lo Hi Lo Hi Lo Hi Lo Hi
Lower Left (Node 4)
X
Y
Lo Hi Lo Hi
Decode the above data to as follows:
1. Swap the order of stored low and high bytes for
a given coordinate.
2. Convert the 16-bit value (stored high and low
bytes) from hexadecimal to decimal.
3. Divide the result by 64 to properly rescale the
16-bit stored value back to a 10-bit significant
coordinate.
Example of Low = 0x40 and High = 0xF3:
Swap:
0xF340
Hex to Decimal: 62272
Divide by 64: 973
Flip State
REGISTER 9-2: FLIP STATE BYTE
U-0
U-0
U-0
U-0
—
—
—
—
bit 7
U-0
R/W
R/W
R/W
—
XYFLIP
XFLIP
YFLIP
bit 0
Legend:
R = Readable bit
W = Writable bit
bit 7-3
bit 2
bit 1
bit 0
Unimplemented: Read as ‘0’
XYFLIP: X and Y Axis Flip bit
1 = X and Y axis are flipped
0 = X an Y axis are not flipped
XFLIP: X-Axis Flip bit
1 = X-axis flipped
0 = X-axis not flipped
YFLIP:Y-Axis Flip bit
1 = Y-axis flipped
0 = Y-axis not flipped
For storing desired calibration values to the EEPROM:
• AR1010/AR1020 (See Section 9.3.12 “EEPROM
Map”).
• AR1011/AR1021 (See Section 9.3.12 “EEPROM
Map” and Section 10.2 “AR1011/AR1021 Stor-
ing Default Calibration Values to EEPROM”).
U = Unimplemented bit, read as ‘0’
 2009-2016 Microchip Technology Inc.
DS40001393C-page 35