15
www.ti.com
TSC2200
SBAS191F
TABLE VII. STS Bit Operation.
STS
READ/WRITE
VALUE
DESCRIPTION
Read
Read
Write
Write
0
1
0
1
Converter is Busy
Conversions are Complete, Data is Available
Normal Operation
Stop Conversion and Power Down
A/D3
A/D2
A/D1
A/D0
FUNCTION
0
0
0
0
0
0
0
1
Invalid. No registers will be updated. This is the default state after a reset.
Touch screen scan function: X and Y coordinates converted and the results returned to the X and Y data registers.
Scan continues until either the pen is lifted or a stop bit is sent.
Touch screen scan function: X, Y, Z
, and Z
coordinates converted and the results returned to the X, Y, Z
1
, and Z
2
data registers. Scan continues until either the pen is lifted or a stop bit is sent.
Touch screen scan function: X coordinate converted and the results returned to the X data register.
Touch screen scan function: Y coordinate converted and the results returned to the Y data register.
Touch screen scan function: Z
1
and Z
2
coordinates converted and the results returned to the Z
1
and Z
2
data registers.
Battery Input 1 converted and the results returned to the BAT1 data register.
Battery Input 2 converted and the results returned to the BAT2 data register.
Auxiliary Input 1 converted and the results returned to the AUX1 data register.
Auxiliary Input 2 converted and the results returned to the AUX2 data register.
A temperature measurement is made and the results returned to the temperature measurement 1 data register.
Port scan function: Battery Input 1, Battery Input 2, Auxiliary Input 1, and Auxiliary Input measurements are made
and the results returned to the appropriate data registers.
A differential temperature measurement is made and the results returned to the temperature measurement 2 data
register.
Turn on X+, X
–
drivers.
Turn on Y+, Y
–
drivers.
Turn on Y+, X
–
drivers.
0
0
1
0
0
0
0
0
0
1
1
1
1
0
1
1
1
1
0
0
0
0
1
0
0
1
1
0
0
1
1
1
0
1
0
1
0
1
0
1
1
1
0
0
1
1
1
1
1
1
0
1
1
1
0
1
TABLE VIII. A/D Converter Function Select.
PSM
READ/WRITE
VALUE
DESCRIPTION
Read
Read
Write
Write
0
1
0
1
No Screen Touch Detected
Screen Touch Detected
Conversions Controlled by Host
Conversions Controlled by TSC2200
TABLE V. PSM Bit Operation.
MSB
BIT 15
LSB
BIT 0
BIT 14
BIT 13
BIT 12
BIT 11
BIT 10
BIT 9
BIT 8
BIT 7
BIT 6
BIT 5
BIT 4
BIT 3
BIT 2
BIT 1
PSM
STS
AD3
AD2
AD1
AD0
RS1
RS0
AV1
AV0
CL1
CL0
PV2
PV1
PV0
X
TABLE VI. A/D Converter Control Register.
RS1
RS0
FUNCTION
0
0
12-Bit Resolution. Power up and reset default.
0
1
8-Bit Resolution
1
0
10-Bit Resolution
1
1
12-Bit Resolution
TABLE IX. A/D Converter Resolution Control.
TSC2200 A/D CONVERTER CONTROL REGISTER
(PAGE 1, ADDRESS 00
H
)
The A/D converter in the TSC2200 is shared between all the
different functions. A control register determines which input
is selected, as well as other options. The result of the
conversion is placed in one of the result registers in Page 0
of memory, depending upon the function selected.
The A/D Converter Control Register controls several aspects
of the A/D converter. The register is formatted as shown in
Table VI.
Bit 15: PSM
—
Pen Status/Control Mode. Reading this bit
allows the host to determine if the screen is touched. Writing
to this bit determines the mode used to read coordinates:
host controlled, or under control of the TSC2200 responding
to a screen touch. When reading, the PENSTS bit indicates
if the pen is down or not. When writing to this register, this bit
determines if the TSC2200 controls the reading of coordi-
nates, or if the coordinate conversions are host-controlled.
The default state is host-controlled conversions (0).
Bit 14: STS
—
A/D Converter Status. When reading, this bit
indicates if the converter is busy, or if conversions are
complete and data is available. Writing a 0 to this bit will
cause touch screen scans to continue until either the pen is
lifted or the process is stopped. Continuous scans or conver-
sions can be stopped by writing a 1 to this bit. This will
immediately halt a conversion (even if the pen is still down)
and cause the A/D converter to power down. The default
state is continuous conversions, but if this bit is read after a
reset or power-up, it will read 1.
Bits [13:10]: AD3
–
AD0
—
A/D Converter Function Select.
These bits control which input is to be converted, and what
mode the converter is placed in. These bits are the same
whether reading or writing. A complete listing of how these
bits are used is shown in Table VIII.
Bits[9:8]: RS1, RS0
—
Resolution Control. The A/D converter
resolution is specified with these bits. A description of these
bits is shown in Table IX. These bits are the same whether
reading or writing.