Texas Instruments | TVP5154A Indirect Registers | Application notes | Texas Instruments TVP5154A Indirect Registers Application notes

Texas Instruments TVP5154A Indirect Registers Application notes
Application Report
SLEA100 – June 2010
TVP5154A Indirect Registers
.....................................................................................................................................................
1
Procedure for Accessing TVP5154A Indirect Registers
The TVP5154A data sheet (SLES214) describes I2C/PHI registers 00–FF, which are the normal way of
controlling and reading the state of the device. The TVP5154A data sheet also describes other registers
inside the TVP5154A, such as the scaling control registers, which are known as indirect registers. These
indirect registers require a four-step I2C transaction to read from or write to the register. There are other
indirect registers inside the TVP5154A that are undocumented in the data sheet, but which the user may
desire access to for certain applications. Information about these hidden indirect registers is proprietary,
but may be released by TI as required.
The TVP5154A indirect registers may be written to or read by an indirect method using four reserved
I2C/PHI registers at addresses 0x21–0x24. Indirect registers are divided into four banks, based on function
or physical location in the TVP5154A. The address used to access these registers is the eight
least-significant bits (LSBs) of the physical address. Each indirect register transaction reads or writes 16
bits of data, although the actual register may contain fewer defined bits. The procedures for writing to and
reading from indirect registers are detailed in the following sections. To write to an indirect register, the
TVP5154A must first be unlocked, as shown in Section 1.4.
It is also important to correctly use the decoder write enable (0xFE) and the decoder read enable (0xFF)
registers. Before an I2C write operation, the desired decoder select bits should be set in register 0xFE, and
register 0xFF should not be written to. For an I2C read, the desired decoder should be selected by setting
the appropriate bit in register 0xFF and register 0xFE should not be written to. This is because when
register 0xFE is loaded, register 0xFF is set to 0x00, and when register 0xFF is loaded, register 0xFE is
set to 0x00.
For indirect register access, it is necessary to select the desired decoder with a write to register 0xFE
before both writing and reading any indirect register, and it is necessary to program register 0xFF between
the two writes and two reads when reading any indirect register. So, for an indirect register read, this
procedure should be followed:
1.
2.
3.
4.
1.1
Write to register 0xFE to write enable the desired decoder(s).
Write the address and read strobe to registers 0x23 and 0x24.
Write to register 0xFF to read enable the desired decoder.
Read the register data from registers 0x21 and 0x22.
To Write to Indirect Registers
1.
2.
3.
4.
Write
Write
Write
Write
MSBs of data to I2C/PHI register 0x21.
LSBs of data to I2C/PHI register 0x22.
indirect register address (eight LSBs) to I2C/PHI register 0x23.
the write strobe (varies, depending on bank) to I2C/PHI register 0x24.
SLEA100 – June 2010
TVP5154A Indirect Registers
Copyright © 2010, Texas Instruments Incorporated
1
Procedure for Accessing TVP5154A Indirect Registers
1.2
www.ti.com
To Read from Indirect Registers
1.
2.
3.
4.
Write indirect register address (eight LSBs) to I2C/PHI register 0x23.
Write the read strobe (varies, depending on bank) to I2C/PHI register 0x24.
Read MSBs of data from I2C/PHI register 0x21.
Read LSBs of data from I2C/PHI register 0x22.
Table 1. Register Banks with Read/Write Strobe Values
REGISTER BANK
R0–R127
1.3
DESCRIPTION
READ STROBE
WRITE STROBE
General-purpose registers
01
02
0x200–0x2FF
Data memory
03
04
0x300–0x3FF
Digital die registers
05
06
AFE 0–9
Analog die registers
07
08
Example 1: Read from Indirect Register
Read value from decoder 1 for DID control, digital die register address 0x36A.
1.
2.
3.
4.
5.
6.
1.4
Write 0x01 to I2C/PHI register 0xFE to write enable decoder 1.
Write 0x6A to I2C/PHI register 0x23.
Write 0x05 to I2C/PHI register 0x24.
Write 0x01 to I2C/PHI register 0xFF to read enable decoder 1.
Read MSBs of 16-bit DID control from I2C/PHI register 0x21.
Read LSBs of 16-bit DID control from I2C/PHI register 0x22.
Example 2: Write to Indirect Register
Write new value for DID control, register 0x36A, to decoders 1, 2, and 3.
Write enable decoders 1, 2, and 3:
1. Write 0x07 to I2C/PHI register 0xFE.
Unlock TVP5154A password to enable indirect register write:
1.
2.
3.
4.
Write
Write
Write
Write
0x51 to I2C/PHI register 0x21.
0x54 to I2C/PHI register 0x22.
0xFF to I2C/PHI register 0x23.
0x04 to I2C/PHI register 0x24.
Write new value to DID control register:
1.
2.
3.
4.
2
Write
Write
Write
Write
MSBs of new 16-bit DID control to I2C/PHI register 0x21.
LSBs of new 16-bit DID control to I2C/PHI register 0x22.
0x6A to I2C/PHI register 0x23.
0x06 to I2C/PHI register 0x24.
TVP5154A Indirect Registers
SLEA100 – June 2010
Copyright © 2010, Texas Instruments Incorporated
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements,
and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should
obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are
sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment.
TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standard
warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where
mandated by government requirements, testing of all parameters of each product is not necessarily performed.
TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and
applications using TI components. To minimize the risks associated with customer products and applications, customers should provide
adequate design and operating safeguards.
TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right,
or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information
published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a
warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual
property of the third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of TI information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied
by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive
business practice. TI is not responsible or liable for such altered documentation. Information of third parties may be subject to additional
restrictions.
Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all
express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not
responsible or liable for any such statements.
TI products are not authorized for use in safety-critical applications (such as life support) where a failure of the TI product would reasonably
be expected to cause severe personal injury or death, unless officers of the parties have executed an agreement specifically governing
such use. Buyers represent that they have all necessary expertise in the safety and regulatory ramifications of their applications, and
acknowledge and agree that they are solely responsible for all legal, regulatory and safety-related requirements concerning their products
and any use of TI products in such safety-critical applications, notwithstanding any applications-related information or support that may be
provided by TI. Further, Buyers must fully indemnify TI and its representatives against any damages arising out of the use of TI products in
such safety-critical applications.
TI products are neither designed nor intended for use in military/aerospace applications or environments unless the TI products are
specifically designated by TI as military-grade or "enhanced plastic." Only products designated by TI as military-grade meet military
specifications. Buyers acknowledge and agree that any such use of TI products which TI has not designated as military-grade is solely at
the Buyer's risk, and that they are solely responsible for compliance with all legal and regulatory requirements in connection with such use.
TI products are neither designed nor intended for use in automotive applications or environments unless the specific TI products are
designated by TI as compliant with ISO/TS 16949 requirements. Buyers acknowledge and agree that, if they use any non-designated
products in automotive applications, TI will not be responsible for any failure to meet such requirements.
Following are URLs where you can obtain information on other Texas Instruments products and application solutions:
Products
Applications
Amplifiers
amplifier.ti.com
Audio
www.ti.com/audio
Data Converters
dataconverter.ti.com
Automotive
www.ti.com/automotive
DLP® Products
www.dlp.com
Communications and
Telecom
www.ti.com/communications
DSP
dsp.ti.com
Computers and
Peripherals
www.ti.com/computers
Clocks and Timers
www.ti.com/clocks
Consumer Electronics
www.ti.com/consumer-apps
Interface
interface.ti.com
Energy
www.ti.com/energy
Logic
logic.ti.com
Industrial
www.ti.com/industrial
Power Mgmt
power.ti.com
Medical
www.ti.com/medical
Microcontrollers
microcontroller.ti.com
Security
www.ti.com/security
RFID
www.ti-rfid.com
Space, Avionics &
Defense
www.ti.com/space-avionics-defense
RF/IF and ZigBee® Solutions www.ti.com/lprf
Video and Imaging
www.ti.com/video
Wireless
www.ti.com/wireless-apps
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2010, Texas Instruments Incorporated
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising