
5.7.2
Touch-Screen Measurements
5.7.2.1 Conversion Controlled by the TSC2117 – Initiated by Touch Detect
5.7.2.2 Conversion Controlled by the TSC2117 – Initiated by the Host
5.7.3
Temperature Measurement
TSC2117
Low-Power Audio Codec With Embedded miniDSP, Stereo Class-D
Speaker Amplifier, and Smart Four-Wire Touch-Screen Controller
SLAS550A – APRIL 2009 – REVISED JUNE 2009
www.ti.com
The touch screen ADC either can be controlled by the host processor or can be self-controlled to offload
processing from the host processor. Writing to page 3/register 3, bit D7 sets the control mode of the
TSC2117 touch-screen ADC.
This mode can be set by writing to page 3/register 3, bit D7 and page 3/register 4, bit D7. In this mode,
the TSC2117 detects when the touch screen is touched and then causes the GPIO1 or GPIO2 line to go
low. At the same time, the TSC2117 starts up its internal clock. Assuming the part was configured to
convert XY coordinates, it then turns on the Y drivers, and after a programmed panel-voltage-stabilization
time, powers up the ADC and converts the Y coordinate.
If the screen is still touched at this time, the X drivers are enabled and the process repeats, but measuring
instead the X coordinate, storing the result in the X register.
If only X and Y coordinates are to be measured, then the conversion process is complete. If touch is still
there, then the foregoing conversion process is repeated again and again until touch is removed or the
SAR ADC is powered down. The time it takes to complete this process depends on the selected
resolution, internal conversion clock rate, panel voltage stabilization time, and precharge and sense times.
Precharge time can be set by writing to page 3/register 4, bits D6–D4. Sense time can be set by writing to
page 3/register 4, bits D2–D0. Voltage stabilization time can be set by writing to page 3/register 5, bits
D2–D0.
See Conversion Time Calculation,
Section 5.7.9, for timing diagrams and conversion-time calculations.
In this mode, the TSC2117 detects when the touch screen is touched and causes the GPIO1 or GPIO2
line to go low. The host recognizes the interrupt request, and then writes to the ADC control register (on
page 3/register 3, bits D5–D2) to select one of the touch-screen scan functions. The host can either
choose to initiate one of the scan functions, in which case the TSC2117 controls the driver turn-on and
wait times (e.g., on receiving the interrupt, the host can initiate the continuous scan function (X-Y), after
which the TSC2117 controls the rest of conversion).
See Conversion Time Calculation,
Section 5.7.9, for timing diagrams and conversion-time calculations.
In some applications, such as battery charging, a measurement of ambient temperature is required. The
temperature measurement technique used in the TSC2117 relies on the characteristics of a
semiconductor junction operating at a fixed current level. The forward diode voltage (Vj) has a well-defined
characteristic versus temperature. The ambient temperature can be predicted in applications by knowing
the 25
°C value of the V
j voltage and then monitoring the variation of that voltage as the temperature
changes.
The TSC2117 offers two modes of temperature measurement. The first mode requires a single reading to
predict the ambient temperature. A diode, as shown in
Figure 5-42, is used during this measurement
cycle. This voltage is typically 600 mV at 25
°C with a 20-A current through it. The absolute value of this
diode voltage can vary a few millivolts. The temperature coefficient of this voltage is typically 2 mV/
°C.
During the final test of the end product, the diode voltage at a known room temperature is stored in
nonvolatile memory. Further calibration can be done to calculate the precise temperature coefficient of the
particular device. This method has a temperature resolution of approximately 0.4
°C/LSB and accuracy of
approximately
single and two-temperature calibration, respectively.
APPLICATION INFORMATION
74