ADV7181B
MPU PORT DESCRIPTION
The ADV7181B supports a 2-wire (I
face. Two inputs, serial data (SDA) and serial clock (SCLK),
carry information between the ADV7181B and the system I
master controller. Each slave device is recognized by a unique
address. The ADV7181B's I
configure the decoder and to read back captured VBI data. The
ADV7181B has four possible slave addresses for both read and
write operations, depending on the logic level on the ALSB pin.
These four unique addresses are shown in Table 80. The
ADV7181B's ALSB pin controls Bit 1 of the slave address. By
altering the ALSB, it is possible to control two ADV7181Bs in
an application without having a conflict with the same slave
address. The LSB (Bit 0) sets either a read or write operation.
Logic 1 corresponds to a read operation; Logic 0 corresponds to
a write operation.
2
Table 80. I
C Address for ADV7181B
ALSB
R/W
0
0
0
1
1
0
1
1
To control the device on the bus, a specific protocol must be
followed. First, the master initiates a data transfer by establish-
ing a start condition, which is defined by a high-to-low
transition on SDA while SCLK remains high. This indicates that
an address/data stream follows. All peripherals respond to the
start condition and shift the next eight bits (7-bit address +
R/W bit). The bits are transferred from MSB down to LSB. The
peripheral that recognizes the transmitted address responds by
pulling the data line low during the ninth clock pulse; this is
known as an acknowledge bit. All other devices withdraw from
the bus at this point and maintain an idle condition. The idle
condition is where the device monitors the SDA and SCLK
lines, waiting for the start condition and the correct transmitted
address. The R/W bit determines the direction of the data.
WRITE
SEQUENCE
READ
SEQUENCE
Downloaded from
Elcodis.com
electronic components distributor
2
C-compatible) serial inter-
2
C port allows the user to set up and
Slave Address
0x40
0x41
0x42
0x43
SDATA
SCLOCK
S
1–7
8
START ADDR
R/W
ACK
Figure 38. Bus Data Transfer
S
SLAVE ADDR A(S)
SUB ADDR
A(S)
LSB = 0
S
SLAVE ADDR
A(S)
SUB ADDR
A(S) S
S = START BIT
A(S) = ACKNOWLEDGE BY SLAVE
P = STOP BIT
A(M) = ACKNOWLEDGE BY MASTER
Figure 39. Read and Write Sequence
Logic 0 on the LSB of the first byte means that the master writes
information to the peripheral. Logic 1 on the LSB of the first
2
C
byte means that the master reads information from the
peripheral.
The ADV7181B acts as a standard slave device on the bus.
The data on the SDA pin is eight bits long, supporting the 7-bit
addresses plus the R/W bit. The ADV7181B has 249 subad-
dresses to enable access to the internal registers. It therefore
interprets the first byte as the device address and the second
byte as the starting subaddress. The subaddresses auto-
increment, allowing data to be written to or read from the
starting subaddress. A data transfer is always terminated by a
stop condition. The user can also access any unique subaddress
register on a one-by-one basis without updating all the registers.
Stop and start conditions can be detected at any stage during the
data transfer. If these conditions are asserted out of sequence with
normal read and write operations, they cause an immediate
jump to the idle condition. During a given SCLK high period,
the user should only issue one start condition, one stop condition,
or a single stop condition followed by a single start condition. If
an invalid subaddress is issued by the user, the ADV7181B does
not issue an acknowledge and returns to the idle condition.
If in auto-increment mode the user exceeds the highest
subaddress, the following occurs:
•
In read mode, the highest subaddress register contents
continue to be output until the master device issues a no
acknowledge. This indicates the end of a read. A no
acknowledge condition is when the SDA line is not pulled
low on the ninth pulse.
•
In write mode, the data for the invalid byte is not loaded
into any subaddress register, a no acknowledge is issued by
the ADV7181B, and the part returns to the idle condition.
9
1–7
8
9
1–7
8
SUBADDRESS
ACK
DATA
ACK
DATA
A(S)
DATA
LSB = 1
SLAVE ADDR
A(S)
DATA
A(M)
A(S) = NO-ACKNOWLEDGE BY SLAVE
A(M) = NO-ACKNOWLEDGE BY MASTER
Rev. B | Page 60 of 100
P
9
STOP
A(S) P
DATA
A(M) P
Need help?
Do you have a question about the ADV7181BCP and is the answer not in the manual?
Questions and answers