4.6.1 Tuner Write Operation
4.6.2 Tuner Read Operation
TVP9900
VSB/QAM Receiver
SLEA064 – MARCH 2007
If the host INTREQ is not used, the TCIDONE and TCIERROR interrupts should be masked and the hostshould poll the TCIDONE status bit to determine when the transaction is complete, and the host shouldpoll the TCIERROR status bit to determine when an error has occurred.
Tuner data transfers occur utilizing the following illustrated formats.
The following steps are required to initiate a write operation to the tuner. The host processor first writesthe required transaction data to a set of registers in the TVP9900 via the host processor I
2
C interface.
Step 1
Register 55h
Set tuner I
2
C slave address (bits 7:1) and read/write control (bit 0 = 0)
Step 2
Registers 56h to 5Dh Write data bytes to be sent to tuner; 56h is first byte sent
Step 3
Set byte count (bits 7:5) and I
2
C mode (bit 0)Register 5Eh
Set bit 2 to 1 to start transaction to tuner
Step 4
Register FBh Check state of bits 1:0 or INTREQ pin to verify successful transaction
After the transaction has been initiated, the TVP9900 internal MCU transfers the data to the tuner via thetuner control interface. Acting as the I
2
C master, the TVP9900 initiates a write operation to the tuner (asshown below), by generating a start condition, followed by the tuner I
2
C address, in MSB-first bit order,followed by a 0 to indicate a write cycle. After receiving an acknowledge from the tuner, the TVP9900presents the sub-address of the register, if needed, followed by one or more bytes of data, MSB first. Thetuner acknowledges each byte after completion of each transfer. The TVP9900 terminates the writeoperation by generating a stop condition.
TVP9900/Tuner Write Operation
Device BaseSDA Start W Ack Ack Data 1 Ack ... Data N Ack StopAddress Address
The following steps are required to initiate a read operation from the tuner. The host processor first writesthe required transaction data to a set of registers in the TVP9900 via the host processor I
2
C interface,then reads the data bytes received from the tuner stored in TVP9900 registers.
Step 1
Register 55h
Set tuner I
2
C slave address (bits 7:1) and read/write control (bit 0 = 1)
Step 2
Set byte count (bits 7:5) and I
2
C mode (bit 0)Register 5Eh
Set bit 2 to 1 to start transaction to tuner
Step 3
Register FBh Check state of bits 1:0 or INTREQ pin to verify successful transaction
Step 4
Registers 56h to 5Dh Read data bytes from tuner; 56h is first byte received
After the transaction has been initiated, the TVP9900 internal MCU transfers the data from the tuner viathe tuner control interface. The read operation consists of two phases, as shown below. The first phase isthe address phase. In this phase, the TVP9900 I
2
C master initiates a write operation to the tuner bygenerating a start condition, followed by the tuner I
2
C address, in MSB-first bit order, followed by a 0 toindicate a write cycle. After receiving an acknowledge from the tuner, the TVP9900 presents thesub-address of the register, if needed. After the cycle is acknowledged, the master terminates the cycleimmediately by generating a stop condition.
Functional Description18 Submit Documentation Feedback