Writing Data To Ad5100; Reading Data From Ad5100; Changes To Table 14 And Reading Data From Ad5100 Section - Analog Devices AD5100 Manual

System management ic with factory programmed quad voltage monitoring and supervisory functions
Table of Contents

Advertisement

WRITING DATA TO AD5100

When writing data to the AD5100, the user begins by writing
an address byte followed by the R/ W bit set to 0. The AD5100
acknowledges (if the correct address byte is used) by pulling
the SDA line low during the ninth clock pulse. The user then
follows with two data bytes. The first data byte is the address of
the internal data register to be written to, which is stored in the
address pointer register. The second byte is the data to be written
to the internal data register. After each byte, the AD5100
acknowledges by pulling the SDA line low during the ninth
clock pulse.
Figure 21
illustrates this operation.

READING DATA FROM AD5100

When reading data from an AD5100 register, there are two
possibilities.
If the AD5100 address pointer register value is unknown
or not at the desired value, it is first necessary to set it to
the correct value before data can be read from the desired
data register. This is done by performing a write to the
AD5100, but only a value containing the register address
is sent because data is not to be written to the register. This
is shown in Figure 22. A read operation is then performed
consisting of the serial bus address, R/ W bit set to 1,
followed by the data byte from the data register. This is
shown in
Figure 23
.
SCL
0
1
0
SDA
START BY
SLAVE ADDRESS BYTE
MASTER
Figure 21. Writing a Register Address to the Address Pointer Register, Then Writing Data to the Selected Register
START BY
MASTER
START BY
MASTER
1
1
1
AD0 R/W
OTP AP6 AP5 AP4 AP3 AP2 AP1 AP0
ACK. BY
AD5100
FRAME 1
SCL
0
1
0
1
1
1
SDA
FRAME 1
SLAVE ADDRESS BYTE
Figure 22. Dummy Write to Set Proper Address Pointer
SCL
1
0
1
0
1
1
SDA
FRAME 1
SLAVE ADDRESS BYTE
Figure 23. Read Data from the Address Pointer Register
If the address pointer is known to be already at the desired
address, data can be read from the corresponding data
register without first writing to the address pointer register.
Table 14 shows the readback data byte structure. Bits[6:0] con-
tain the data from the register just read. Bit 7 is a reserved bit
and should be ignored for normal read operations. The majority
of AD5100 registers are four bits wide, with only the fault detect
and status register and disable special functions register at seven
bits and five bits wide, respectively.
Table 14. Readback Data Byte Structure
Bit Number
7
6
5
4
3
2
1
0
ACK. BY
AD5100
FRAME 2
ADDRESS POINTER BYTE
AD0 R/W
OTP AP6 AP5 AP4 AP3 AP2 AP1 AP0
ACK. BY
AD5100
FRAME 2
ADDRESS POINTER BYTE
AD0 R/W
OTP
D6
D5
D4
D3
OK
ACK. BY
AD5100
FRAME 2
READ DATA BYTE
Rev. A | Page 27 of 36
Function
Reserved
D6
D5
D4
D3
D2
D1
D0 (LSB)
D6
D5
D4
D3
D2
D1
D0
D7
FRAME 3
DATA BYTE
ACK. BY
AD5100
STOP BY
MASTER
D2
D1
D0
NO ACK. BY
MASTER
STOP BY
MASTER
AD5100
ACK. BY
AD5100
STOP BY
MASTER

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AD5100 and is the answer not in the manual?

Table of Contents