Texas Instruments TSC2004EVM Evaluation Module TSC2004EVM TSC2004EVM 데이터 시트

제품 코드
TSC2004EVM
다운로드
페이지 24
www.ti.com
6.4
Program Description
6.4.1
Human Interface Tab
6.4.1.1
Touch Screen Control Function
6.4.1.2
Data Acquisition Functions
Kit Operation
After the TSC2004EVM-PDK software installation (described in Section 6.2), evaluation and development
with the TSC2004 can begin.
Running the TSC2004EVM-PDK software on your PC displays the interface GUI as shown in
On
the top-left side of the GUI, a lit green LED indicates the digital serial interface type, which should be I
2
C
for the TSC2004EVM-PDK. The next box shows the location and version of the firmware.
The two LEDs around the top center of the GUI can be used to reset TSC2004 by software and to stop
the TSC2004's ADC operation. Note that the two LEDs reflect the corresponding bits inside the CB1.
When the SW Reset LED is lit (in blue), the bit 1 of CB1 is set to logic 1 and TSC2004 is in the software
reset mode; when the LED is OFF (in black), the bit 1 is set to logic 0 and TSC2004 is not reset and is in
normal mode. When the Stop ADC LED is lit (in red), the bit 0 of the CB1 is set to logic 1 and TSC2004's
ADC is stopped. When this LED is OFF (in black), the bit 0 is logic 0 and TSC2004 is running in normal
operating mode.
On the top-right side of the GUI, two boxes labeled CB0 and CB1 display the current/default settings of
the TSC2004 control byte mode 0 (CB0) and mode 1 (CB1), respectively. See the TSC2004 data sheet on
the control byte and its two modes.
The data in CB0 is written to TSC2004 while writing to a control register, and CB0 is the command byte.
The data in CB1 is written to TSC2004 while one of the following occurs:
Bit 0 (STS or Stop ADC) is set by clicking on the LED in left/top corner.
Bit 1 (SWREST or SW Reset) is set by clicking on the SW Reset LED.
Bit 2 (RM or Resolution) is set at the Human Interface tab.
Bits 3 through 6 (Converter Function Select) can be set at the Configuration tab beneath the CFR1
section.
The majority evaluation can be implemented using three tabs on the TSC2004EVM GUI: Human Interface,
Configuration, and Command Line Interface. Clicking on a tab accesses the functions corresponding to
the tab. The following discussion details the three tabs.
The Human Interface tab is shown in
The touch screen box in this tab is updated when a touch is detected on the touch screen. As the touch
screen is drawn on, the motion on the touch screen is translated into pixels on this box. The software
takes X, Y, Z1, and Z2 readings which are shown to the right of the touch screen box. As the touch
pressure is increased, the pixel size increases; a lighter touch results in thinner pixel sizes.
The Z-value displayed is not totally what is described in the TSC2004 data sheet, because in the data
sheet equations, it is assumed that the resistance of the touch screen being used is known. The value
used in this program is calculated by Equation 1 of the TSC2004 data sheet, but without multiplying it by
the R
x-plate
resistance. This value is shown as beneath the measured touch data, X, Y, Z1, and Z2; and
normally ranges from 0 to 4, with larger numbers representing a more forceful press on the screen. Using
the Maximum Z Value to Display knob, you can set a threshold so that the program does not display
lightly pressed points. This threshold setting helps to eliminate display of spurious points that may result
from touch screen mechanical bouncing.
The display in the touch screen box can be cleared by pressing the Clear Graph button on the screen.
The TSC2004 provides for measuring an auxiliary-input voltage and the temperature. A data acquisition
functions on this tab displays the measured values for these parameters. Measurements are updated only
when the touch screen is not being pressed, and the Auto Reading LED is on.
SLAU215 – May 2007
TSC2004EVM and TSC2004EVM-PDK
9