ad7879-1acbz-rl Analog Devices, Inc., ad7879-1acbz-rl Datasheet - Page 33

no-image

ad7879-1acbz-rl

Manufacturer Part Number
ad7879-1acbz-rl
Description
Low Voltage Controller For Touch Screens
Manufacturer
Analog Devices, Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AD7879-1ACBZ-RL
Manufacturer:
ADI/亚德诺
Quantity:
20 000
Writing Data over the I
The process of writing to the AD7879-1 over the I
shown in Figure 42 and Figure 44. The device address is sent
over the bus followed by the R/ W bit set to 0. This is followed
by two bytes of data that contain the 10-bit address of the inter-
nal data register to be written. The address is contained in the
8 LSBs of the register address byte. The bit map in
shows the register address byte.
Table 24.
MSB
7
Bit 7
The third data byte contains the 8 MSBs of the data to be
written to the internal register. The fourth data byte contains
the 8 LSBs of data to be written to the internal register.
The AD7879-1 address pointer register automatically increments
after each write. This allows the master to sequentially write to all
registers on the AD7879-1 in the same write transaction. However,
the address pointer register does not wrap around after the last
address.
Any data written to the AD7879-1 after the address pointer has
reached its maximum value is discarded.
SDA
SCL
START
NOTES
1. A START CONDITION AT THE BEGINNING IS DEFINED AS A HIGH-TO-LOW TRANSITION ON SDA WHILE SCL REMAINS HIGH.
2. A STOP CONDITION AT THE END IS DEFINED AS A LOW-TO-HIGH TRANSITION ON SDA WHILE SCL REMAINS HIGH.
3. 7-BIT DEVICE ADDRESS [DEV A6:DEV A0] = [0 1 0 1 1 X X], WHERE THE Xs ARE DON'T CARE BITS.
4. REGISTER DATA [D15:D8] AND REGISTER DATA [D7:D0] ARE ALWAYS SEPARATED BY A LOW ACK BIT.
6
Bit 6
ACK
18
D15
t
1
19
5
Bit 5
DEV
A6
REGISTER DATA[D15:D8]
D14
1
20
AD7879 DEVICE ADDRESS
DEV
Register Address
A5
4
Bit 4
2
2
C Bus
DEV
A4
3
DEV
3
Bit 3
A3
t
2
D9
4
25
DEV
A2
D8
t
5
Figure 42. Example of I
4
26
2
Bit 2
DEV
A1
ACK
6
t
27
3
DEV
A0
2
D7
Table 24
7
C bus is
1
Bit 1
28
R/W
REGISTER DATA[D7:D0]
D6
8
29
t
5
ACK
0
Bit 0
2
9
LSB
C Timing for Single Register Write Operation
Rev. 0 | Page 33 of 36
A7
10
REGISTER ADDRESS[A7:A0]
A6
D1
11
34
All registers on the AD7879-1 have 16 bits. Two consecutive
8-bit data bytes are combined and written to the 16-bit registers.
To avoid errors, all writes to the device must contain an even
number of data bytes.
To finish the transaction, the master generates a stop condition
on SDA, or generates a repeat start condition if the master is to
maintain control of the bus.
Reading Data Over the I
To read from the AD7879-1, the address pointer register must
first be set to the address of the required internal register. The
master performs a write transaction and writes to the AD7879-1
to set the address pointer. The master then outputs a repeat start
condition to keep control of the bus, or if this is not possible, the
master ends the write transaction with a stop condition. A read
transaction is initiated, with the R/ W bit set to 1.
The AD7879-1 supplies the upper eight bits of data from the
addressed register in the first read back byte, followed by the
lower eight bits in the next byte. This is shown in Figure 43
and Figure 44.
Because the address pointer automatically increases after each
read, the AD7879-1 continues to output readback data until
the master puts a no acknowledge and a stop condition on the
bus. If the address pointer reaches its maximum value, and the
master continues to read from the part, the AD7879-1 repeat-
edly sends data from the last register addressed.
D0
35
ACK
36
A1
16
37
STOP
t
6
A0
17
t
8
START
t
7
2
C Bus
DEV
A6
AD7879 DEVICE ADDRESS
1
DEV
A5
2
DEV
A4
3
AD7879

Related parts for ad7879-1acbz-rl