Datasheet
www.ti.com
Kit Operation
No byte follows a # (comment) or a b (break) command.
The byte or bytes following a command type d is the delay time in milliseconds.
• The second byte in a w or r command line is the address of the configuration register. Table 7 provides
the common use address in a w and r command line.
Table 7. Eligible TSC2004 Configuration Register Address (in Hexadecimal)
Description w/ r
Stop ADC 81
SW Reset TSC2004 82
Measure XYZ 80 or 84
(1)
Control Byte Mode 1 Measure XY 88 or 8C
(1)
Measure AUX A0 or A4
(1)
MeasureTEMP1 B0 or B4
(1)
MeasureTEMP2 B8 or BC
(1)
X Data Register 00 or 02
(2)
Y Data Register 08 or 0A
(2)
Z1 Data Register 10 or 12
(2)
Z2 Data Register 18 or 1A
(2)
AUX Data Register 20 or 22
(2)
TEMP1 Data Register 28 or 2A
(2)
TEMP2 Data Register 30 or 32
(2)
Status Register 38 or 3A
(2)
Control Byte Mode 0 And/Or
Control Registers
AUX High Threshold Register 40 or 42
(2)
AUX Low Threshold Register 48 or 4A
(2)
TEMP High Threshold Register 50 or 52
(2)
TEMP Low Threshold Register 58 or 5A
(2)
CFR0 Register 60 or 62
(2)
CFR1 Register 68 or 6A
(2)
CFR2 Register 70 or 72
(2)
Convert Function Select Status Register 78 or 7A
(2)
(1)
Where the first byte is for 10 bits of resolution and the second byte is for 12 bits.
(2)
Where the two bytes reflect the different ADC bias power modes: if bit2 =1, ADC bias power ON always; and if bit2=0, it
powered down between converter.
In an r command, the byte after the address indicates the number of registers reading from; and the next
byte is ignored. If more than one register needs to be read, the next byte is the address and is followed by
two dummy bytes that are ignored.
In a w command, the two bytes after the address (see Table 7 ) are the data writing to the 16-bit TSC2004
registers. If more than one registers needs to be written, the next byte is the address and followed by two
data bytes.
For writing to TSC2004's CB1, this byte includes both address and content and thus there will be no
further byte after this address byte.
Example 1: Writing to CB1 and changing the resolution mode to 10 bit.
w 90 80
Example 2: Writing 0xA924 to CFR0 register and writing to CB0 to set ADC bias power on always.
w 90 62 A9 24
Example 3: Do the same as Example 2, but writing to CB0 to set ADC bias power OFF between
converter.
w 90 60 A9 24
Example 4: Writing the four threshold registers to set up the max=0xFF0 and min=0x00F.
SLAU215 – May 2007 TSC2004EVM and TSC2004EVM-PDK 15
Submit Documentation Feedback