![](http://datasheet.mmic.net.cn/300000/BT864AKPF_datasheet_16193110/BT864AKPF_66.png)
Subaddress
(XX)
3.0 PC Board Considerations
Bt864A/865A
3.6 I
2
C Programming
YCrCb to NTSC/PAL Digital Video Encoder
3-10
Conexant
100138B
3.6 I
2
C Programming
3.6.1 Data Transfer on the I
2
C Bus
An I
2
C reference manual has been developed and may be obtained upon request.
This provides farther information on I
2
C bus protocol.
Figure 3-5
shows the
relationship between SDA and SCL to be used when programming the I
2
C bus. If
the bus is not being used, both SDA and SCL lines must be left high.
Every byte put onto the SDA line should be 8 bits long (MSB first), followed
by an acknowledge bit, which is generated by the receiving device.
Each data transfer is initiated with a start condition and ended with a stop
condition. The first byte after a start condition is always the address byte. If this is
the device
’
s own address, the device will generate an acknowledge by pulling the
SDA line low during the ninth clock pulse, then accept the data in subsequent
bytes (autoincrementing the subaddress) until another stop condition is detected.
Bit 8 of the address byte is the read/write bit (high = read from addressed
device, low = write to the addressed device) so, for the Bt864A/865A, the address
is only considered valid if the R/W bit is low.
Data bytes are always acknowledged during the ninth clock pulse by the
addressed device. Note that during the acknowledge period the transmitting
device must leave the SDA line high.
Premature termination of the data transfer is allowed by generating a stop
condition at any time. When this happens, the Bt864A/865A will remain in the
state defined by the last complete data byte transmitted. Any master acknowledge
subsequent to reading the chip ID is ignored.
Figure 3-5. I
2
C Diagram
NOTE(S):
(1)
Acknowledge generated by Bt864A/865A.
1
SCL
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
Subsequent Bytes and Acknowledge
Interpreted as Data Values for
Autoincremented Subaddress Locations
SDA
M
L
(1)
S
S
Data
(XX)
Main Address
(XX)
(1)
(1)