17
Host Interfaces
Reset
The HMP8154/HMP8156A resets to its default operating
mode on power up, when the reset pin is asserted for at
least four CLK cycles, or when the software reset bit of the
host control register is set. During the reset cycle, the
encoder returns its internal registers to their reset state and
deactivates the I
2
C interface.
I
2
C Interface
The HMP8154/HMP8156A provides a standard I
2
C interface
and supports fast-mode (up to 400 Kbps) transfers. The
device acts as a slave for receiving and transmitting data
only. It will not respond to general calls or initiate a transfer.
The encoder’s slave address is either 0100 000x
B
when the
SA input pin is low or 0100 001x
B
when it is high. (The ‘x’ bit
in the address is the I
2
C read flag.)
The I
2
C interface consists of the SDA and SCL pins. When
the interface is not active, SCL and SDA must be pulled high
using external 4-6k
pull-up resistors. The I
2
C clock and
data timing is shown in Figures 20 and 21.
During I
2
C write cycles, the first data byte after the slave
address specifies the sub address, and is written into the
address register. Only the seven LSBs of the subaddress are
used; the MSB is ignored. Any remaining data bytes in the
I
2
C write cycle are written to the control registers, beginning
with the register specified by the address register. The 7-bit
address register is incremented after each data byte in the
I
2
C write cycle. Data written to reserved bits within registers
or reserved registers is ignored.
During I
2
C read cycles, data from the control register
specified by the address register is output. The address
register is incremented after each data byte in the I
2
C read
cycle. Reserved bits within registers return a value of “0”.
Reserved registers return a value of 00
H
.
The HMP8154/HMP8156A’s operating modes are
determined by the contents of its internal registers which are
accessed via the I
2
C interface. All internal registers may be
written or read by the host processor at any time. However,
some of the bits and words are read only or reserved and
data written to these bits is ignored.
Table 10 lists the HMP8154/HMP8156A’s internal registers.
Their bit descriptions are listed in Tables 11-30.
TABLE 10. CONTROL REGISTER NAMES
SUB ADDRESS
(HEX)
CONTROL REGISTER
RESET
CONDITION
00
01
02
03
04
05
06
07-0E
0F
10
11
12
13
14-1F
20
21
22
23
24
25
26
27
28-2F
30-7F
Product ID
Output Format
Input Format
Video Processing
Timing I/O 1
Timing I/O 2
Aux Data Enable
Reserved
Host Control
Closed Caption_21A
Closed Caption_21B
Closed Caption_284A
Closed Caption_284B
Reserved
Start H_Blank Low
Start H_Blank High
End H_Blank
Start V_Blank Low
Start V_Blank High
End V_Blank
Field Control 1
Field Control 2
Reserved
Test and Unused
54
H
00
H
06
H
A0
H
00
H
00
H
00
H
-
0C
H
80
H
80
H
80
H
80
H
-
4A
H
03
H
7A
H
03
H
01
H
13
H
80H
00H
-
-
FIGURE 20. I
2
C SERIAL TIMING FLOW
FIGURE 21. REGISTER WRITE PROGRAMMING FLOW
SDA
SCL
START
CONDITION
S
1-7
ADDRESS
8
R/W
9
ACK
1-7
DATA
8
9
ACK
STOP
CONDITION
P
S = START CYCLE
P = STOP CYCLE
A = ACKNOWLEDGE
NA = NO ACKNOWLEDGE
FROM MASTER
FROM ENCODER
0x40 OR
0x42
DATA WRITE
DATA
DATA
DATA READ
REGISTER
POINTED
TO BY
SUBADDR
REGISTER
POINTED
TO BY
SUBADDR
0x41 OR
0x43
P
NA
A
S
CHIP ADDR
A
SUB ADDR
A
DATA
DATA
A
A
P
A
CHIP ADDR
S
A
SUB ADDR
A
CHIP ADDR
S
OPTIONAL FRAME
MAY BE REPEATED
n TIMES
OPTIONAL FRAME
MAY BE REPEATED
n TIMES
0x40 OR
0x42
HMP8154, HMP8156A