AD7889 Analog Devices, AD7889 Datasheet - Page 32

no-image

AD7889

Manufacturer Part Number
AD7889
Description
Low Voltage Controller for Touch Screens
Manufacturer
Analog Devices
Datasheet

Specifications of AD7889

Resolution (bits)
12bit
# Chan
6
Sample Rate
105kSPS
Interface
I²C/Ser 2-Wire,Ser,SPI
Analog Input Type
SE-Uni
Ain Range
Uni Vdd
Adc Architecture
SAR
Pkg Type
CSP
AD7879/AD7889
SERIAL INTERFACE
The AD7879 and AD7879-1 (and the AD7889 and AD7889-1)
differ only in the serial interface provided on the part. The
AD7879 and the AD7889 are available with a serial peripheral
interface (SPI). The AD7879-1 and the AD7889-1 are available
with an I
addresses outside the register map not be written to.
SPI INTERFACE
The AD7879/AD7889 have a 4-wire SPI. The SPI has a data
input pin (DIN) for inputting data to the device, a data output
pin (DOUT) for reading data back from the device, and a data
clock pin (SCL) for clocking data into and out of the device. A
chip select pin ( CS ) enables or disables the serial interface. CS is
required for correct operation of the SPI interface. Data is
clocked out of the AD7879/AD7889 on the falling edge of SCL,
and data is clocked into the device on the rising edge of SCL.
SPI Command Word
All data transactions on the SPI bus begin with the master
taking CS from high to low and sending out the command
word. This indicates to the AD7879/AD7889 whether the
transaction is a read or a write and gives the address of the
register from which to begin the data transfer. The bit map in
Table 24 shows the SPI command word.
Table 24. SPI Command Word
MSB
15
1
14
1
2
C-compatible interface. It is recommended that
SCL
DIN
CS
13
1
NOTES
1. DATA BITS ARE LATCHED ON SCL RISING EDGES. SCL CAN IDLE HIGH OR LOW BETWEEN WRITE OPERATIONS.
2. ALL 32 BITS MUST BE WRITTEN: 16 BITS FOR THE COMMAND WORD AND 16 BITS FOR DATA.
3. 16-BIT COMMAND WORD SETTINGS FOR SINGLE WRITE OPERATION:
CW[15:11] = 11100 (ENABLE WORD)
CW[10] = 0 (R/W)
CW[9:0] = [AD9, AD8, AD7, AD6, AD5, AD4, AD3, AD2, AD1, AD0] (10-BIT MSB JUSTIFIED REGISTER ADDRESS)
CW
15
12
0
t
2
1
t
1
CW
ENABLE WORD
14
2
t
11
0
3
CW
13
3
CW
12
10
R/W
4
CW
11
5
t
R/W
[9:0]
Register address
CW
4
10
6
16-BIT COMMAND WORD
CW
9
7
CW
8
Figure 39. Single Register Write, SPI Timing
8
CW
7
t
5
9
REGISTER ADDRESS
CW
6
10
LSB
Rev. C | Page 32 of 40
CW
5
11
CW
4
12
CW
3
13
Bits[15:11] of the command word must be set to 11100 to
successfully begin a bus transaction.
Bit 10 is the read/write bit; 1 indicates a read, and 0 indicates
a write.
Bits[9:0] contain the target register address. When reading or
writing to more than one register, this address indicates the
address of the first register to be written to or read from.
Writing Data
Data is written to the AD7879/AD7889 in 16-bit words. The
first word written to the device is the command word, with the
read/write bit set to 0. The master then supplies the 16-bit input
data-word on the DIN line. The AD7879/AD7889 clock the
data into the register addressed in the command word. If there
is more than one word of data to be clocked in, the AD7879/
AD7889 automatically increment the address pointer and clock
the next data-word into the following register.
The AD7879/AD7889 continue to clock in data on the DIN line
until the master ends the write transition by pulling CS high or
until the address pointer reaches its maximum value. The AD7879/
AD7889 address pointer does not wrap. When the address
pointer reaches its maximum value, any data provided by the
master on the DIN line is ignored by the AD7879/AD7889.
CW
2
14
CW
1
15
CW
0
16
D15
17
D14
18
D13
19
16-BIT DATA
D2
30
D1
t
31
8
D0
32

Related parts for AD7889