Texas Instruments TSC2006EVM-PDK Evaluation Module TSC2006EVM-PDK TSC2006EVM-PDK Scheda Tecnica

Codici prodotto
TSC2006EVM-PDK
Pagina di 25
www.ti.com
Kit Operation
The first character of a line indicates the command type.
lists all the command types of the
TSC2006EVM-PDK software.
Following the command type or r, the byte is the I2C device address. For TSC2006, a SPI device,
this address must be always 0x00.
No byte follows a (comment) or a (break) command.
The byte or bytes following a command type is the delay time in milliseconds.
The second byte in a or command line is the address of the configuration register.
provides
the common use address in a and command line.
Table 7. Eligible TSC2006 Configuration Register Address (in Hexadecimal)
Description
w/r
Stop ADC
81
SW Reset TSC2006
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 bit#2 =1, ADC bias power ON always; and if bit2=0, it
powered down between converter.
In an 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 command, the two bytes after the address (see
) are the data writing to the 16-bit TSC2006
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 TSC2006'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 00 80
Example 2: Writing 0xA924 to CFR0 register and writing to CB0 to set ADC bias power on always.
w 00 62 A9 24
SLAU200 – January 2007
TSC2006EVM and TSC2006EVM-PDK
15