Ti I2c
Ti I2c
Ti I2c
Guide
ti.com/i2c 2013
I2C Guide
and Repeaters
5 Special Functions 5 LED Driver 6 LCD Bias 7 One-Wire Interface 8 I2C Translators 8 Keypad Controller
Resources
9 Frequently Asked Questions 11 Packages 12 Product Casts 12 Technical Support
Texas Instruments (TI) has supported the highly efficient I2C bus interface for many years. This overview provides an updated look at I2C applications and how TIs I/O expanders, multiplexers, buffers and repeaters can help system designers achieve effective subsystem communications using proven I2C devices. History During the 1980s, Philips (Koninklijke Philips Electronics N.V.) developed the two-wire inter-integrated circuit (I2C) bus to provide an easy way to connect
TI Solution
VCC2
VCC3
I/O Expanders
MicroControllers Processors
Multiplexers Switches
VCC4
Data Converters
EEPROM
Temperature Sensors
Texas Instruments
I2C Guide
I/O Expanders
The I2C I/O expanders (as shown in the block diagram) allow system layout to be greatly simplified. The two-wire bus reduces PCB complexity through trace reduction and routing simplification. Key Features Easy board routing Board-space savings Processor-pin savings Low cost Industry standard Applications Complements processors with limited I/Os Feature enhancements Keypad control
Parallel Interface
Device LM8335 TCA6408A TCA6416A TCA6418E TCA6424A TCA7408 TCA9535 TCA9538 TCA9539 TCA9554/A TCA9555
Interrupt 4 4 4 4 4 4 4 4 4 4
Reset 4 4 4 4 4 4 4
4 4
4 4
Texas Instruments
I2C Guide
TCA9548A
SCL SDA SCL0 SDA0
5.5 V
Key Features Pin savings on the I2C master, as each switch is activated or isolated through the I2C software Supports voltage-level translation for any bus voltages in the range of 1.65 V-5.5 V which is essential in mixed voltage I2C systems Applications Resolves I2C address conflicts I2C bus isolation I2C bus expansion
I C System 2.7 V
I C System
Key Features Can isolate a section on the I2C bus through enable (EN) pin Supports voltage-level translation from 0.8-VCCB to 2.2 V-5.5 V buses, which is essential in mixed-voltage I2C systems Supports fast-mode plus (1 MHz) Applications I2C-bus expansion through buffering of I2C signals Resolving address conflicts
TCA9617A
EN Bus 0 Bus 1
Texas Instruments
I2C Guide
Max I2C Frequency (kHz) 400 400 1,000 400 400 1 MHz 400 400 1,000
I2C Address None None None None None None None None None
VCC Range (V) 0 to 5.5 2.3 to 5.5 3.0 to 12.0 2.0 to 15.0 2.7 to 5.5 1.65 to 5.5 0.9 to 5.5 0.9 to 5.5 0.9 to 5.5
Enable Pin 4 4
Each Slave Side (pF) Bypass 400 3000 4000 400 Bypass 400 400 550
4 4 4 4 4 4 4
4 4 4 4 4 4
4 4
4 4 4
TCA9406, PCA9306
VCCA SDAA VCCA 3
VCCA
VCCB
Static Offset
SDAA VCCA T1 R1 VCCA 10 k One-Shot VCCA T1 R1 Gate Bias 10 k A T1 One-Shot A T1 One-Shot Gate Bias One-Shot N2 One-Shot T2 B T2 SCLA R1 10 k 2 B VCCB 5 B ISx Pullup Resistor Sx Lx EN One-Shot One-Shot T2 VCCA R1 One-Shot 10 k VCCA T2 SCLA SDAA R1 10 k EN 2 3 VCCB 5
SDAB
Pullup Resistor
7 SCLB 4 GND
SCLB
R1 include integrated pull up Note: PCA9306 does not R1 R1 10 k N2 10 k 10 k resistors and one shot circuitry
VCC
A
R1 10 k
TI Products
SCLIN
Gate Bias
R3 10 k
R4 10 k N2 C1 SCLOUT 0.01 F 2
B
2
EN
R3 10 k
R4 10 k SCLOUT VCC
Current Sense 30
2
4 GND ISx
Sx
P82B715
SDAIN
SDAOUT C1 C1 0.01 F R1 R2 R3 F k 6 R3 0.01 7 10 k R2 R4 8 10 k 10 8 TCA4311 10 k1 SDAIN 5 10 k 10 k EN Ready 3 2 GND 3 SCLIN 2 SCLOUT 4 TCA4311 1 5 EN GND Ready 4 6 7 6 SDAIN 7 SDAOUT 1 TCA4311 5 EN GND Ready 4 TCA4311 5 GND Ready 4
R4 10 k SDAOUT
GND SCLOUT 2
Sx
Lx
+ VCC ISx
9 I Sx Current Sense 30
Sx Lx
ISx
9 ISx
I Sx
SDAOUT
VCC
GND VCC +
I Sx
EN
GND
GND
Texas Instruments
Special Functions
LED Driver
Low-Voltage 7-Bit I2C and SMBus LED Driver TCA6507
The LED driver frees the processed from having to manage the LEDs. It will manage turning the LEDs on and off (per the required dimming rate). This will free up valuable processor time, thus creating a more efficient system.
TPS61052
SW SW AVIN P VOUT C OUT 10 F 1.8 V
L 2.2 H C IN
Key Features Supports brightness control and blink modes at the same time 1.8-V compatible for use with nextgeneration processors Multiple PWMs for multiple blink modes Applications Fun light (decoration) Enhanced feature set Driving RGB LEDs Control function (indicator lights)
TCA6507
VCC P0 P1 P2 P3 EN SCL SDA P4 P5 P6 GND
LED
PGND PGND P
Texas Instruments
I2C Guide
LCD Bias
Fully IC programmable 6 Channel LCD Bias IC TPS65177
The TPS65177 is a fully IC programmable six-channel LCD Bias IC for all television sizes and includes Gate Pulse Modulation. The device provides all supply rails needed by a GIP (Gate-in-Panel) or non-GIP TFT-LCD panel.
VIN 8.6 V...14.7 V
Boost Converter Isolation Switch Buck Converter 1 Buck Converter 2 (Synchronous)
VAVDD 13.5 V...19 V, 2.2 A at 18 V VIO 2.2 V...3.7 V, 2.7 A at 3.3 V VCORE 0.8 V...3.3 V, 2.4 A at 1.2 V VHAVDD 4.8 V...11.1 V, 1 A at 9 V VGH 20 V...40 V, 200 mA VGL -5.5 V-14.5 V, 200 mA
I2C Compatible
Buck Converter 3 (Synchronous) Positive Charge Pump Controller (Temp. Compensated) Negative Charge Pump Controller Gate Pulse Modulation
Key Features Temperature compensation for VGH 40-pin 6x6 mm QFN package Input voltage: 8.6 V to 14.7 V Integrated VAVDD isolation switch Three-bit programmable switch current limit up to 4.25 A Four-bit programmable high voltage stress mode One-bit programmable soft-start 1.7 A switch current limit Four-bit programmable high voltage stress mode Applications GIP (Gate-in-Panel) LCD TVs Non-GIP LCD TVs
Single-Wire Interface
Low Voltage 5-Bit Self-Timed, Single-Wire Output Expander TCA5405
The TCA5405 is a 5-bit output expander controlled using a single wire input. This device is ideal for portable applications as it has a wide VCC range of 1.65 V to 3.6 V. The TCA5405 uses a self-timed serial data protocol with a single data input driven by a master device synchronized to an internal clock of that device. During a Setup phase, the bit period is sampled, then the TCA5405 generates its own internal clock synchronized to that of the Master device to sample the input over a five-bit-period Data Transfer phase and writes the bit states on the parallel outputs after the last bit is sampled. The TCA5405 is available in an 8-pin 1.5mm x 1.5mm RUG QFN package.
3.3 V
Master I/O
DIN
TCA5405
Q4 Q3 Q2 Q1 Q0
Key Features Operating power-supply voltage range of 1.65 V to 3.6 V Five independent push-pull outputs Single input (DIN) controls state of all outputs High-current drive outputs maximum capability for directly driving LEDs Latch-up performance exceeds 100 mA per JESD 78, class II ESD protection exceeds JESD 22 2000-V human-body model 1000-V charged-device model Applications Cell phones PDAs Portable media players MP3 players Portable instrumentation
I2C Guide 2013
Texas Instruments
I2C Guide
Keypad Controller
Low-Voltage 8x16 Keyboard Scanner with HID over I2C Compliant Interface TCA8424
The TCA8424 keypad controller frees the processor from having to scan the keypad for presses and releases. It is a keypad scan device with 18 GPIOs that can be configured into 8 inputs and 16 outputs to support up to an 8 x 16 keypad array (128 buttons).
C o lu m n s 0 - 7
Key Features Smaller package options Lower power consumption No firmware development Support of 128 keys Applications Smart phones Notebooks GPSs MP3 players Tablets
Non-Volatile Memory
HID Descriptor (30 bytes)
Registers (volatile)
Input Register (8 bytes)
Rows 0 - 15
LEDs Report Descriptor (194 bytes) Core Logic and internal registers Interrupt Command Register (2 bytes) SDA Report Ids Usage Codes Function Key Location (32 bytes) I2C buffers and Logic Data Register (2 bytes) SCL
I2C-Compatible Keypad Controller with GPIO, PWM, and IEC61000 ESD Protection LM8330
The LM8330 I/O Expander and Keypad Controller is a dedicated device designed to unburden a host processor from scanning a matrix-addressed keypad and to provide flexible and general purpose, host programmable input/output functions. Three independent Pulse Width Modulation (PWM) timer outputs are provided for dynamic LED brightness modulation. 1.8 V (typ)
0.1 F (required) SCL SDA Main Processing Device IRQN RESETN Command Interpreter VCC
Key Features Unburden a host processor from scanning a matrix-addressed keypad Ultra-low-power operation No need for external RC passives for ESD Applications Mobile phones Qwerty keyboard Universal remote
LM 8330
ACCESS.bus Internal OSC
DIV
Keypad Matrix
Key-Scan Control Wake-Up Control Input /Output Expansion PWM Generator ASIP ESD Protection
PWM 0 PWM 1
PWM 2
Texas Instruments
Resources
Q. What is the power-on default for the interrupt (/INT) pin? A. High. Q. How can an /INT be cleared (returned back to high state)? A. Read (clock) the data on the I/O port that generated the /INT. Change the data on the I/O to the original setting. A stop event will clear the /INT. Q. How can a low /INT be avoided at power up in I2C I/O expanders? A. At power up, the P ports are configured as inputs by default. When power up ends and the device has a valid VCC value, the input port (P port) is compared to the internal input register (no clock needed), and /INT goes active (low) unless there is a match. The internal input registers are designed to power up with all ones or high. The /INT should start high at power up if the P port is initially high (all ones) to match the internal input register.
Q. How should an unused /RESET pin be terminated? A. /RESET is an input to the master. It requires a pull-up resistor to VCC if no active connection is used. Q. What is the functionality of the interrupt (/INT) control? A. The /INT is an open-drain output in the I2C slave. It is used to inform the I2C master if any of the inputs in the slave device have changed state. If any of the I/Os configured as inputs change state before the I/O is read (i.e., if a mismatch between the I/O and the contents of the internal input register occurs), /INT will become low. /INT is not affected by I/Os configured as outputs. /INT can be tied to any voltage (or VCC pin) up to 5.5 V through a pull-up resistor.
A. Power-on reset: When power (from 0 V) is applied to the VCC, the internal power- on reset holds the device in a reset condition until VCC reaches Vpor (~1.4 V). Once VCC reaches Vpor, the internal registers and I2C/SMBus state machine are initialized to their default states. After this, the device can be returned to its default reset state if VCC is lowered to 0 V. /RESET: Simply asserting a low on the /RESET input returns the device to its default state.
Texas Instruments
Housekeeping Functions Temperature, fan, audio control Humidity sensors LED status Hardware control monitor Feature Richness
Resources
Solution No. 1: Using Legacy I2C Devices 1.8 V 1.8 V 2.8 V 2.8 V
MicroProcessor
Level Shifter
Legacy I 2C Devices
MicroProcessor
TCA Devices
For the PCF8575C and devices without internal pull-up resistors, the input is 3-state. Q. What is a fun light and what is its purpose? A. Fun lights are any set of lights used for less critical tasks such as: Decoration. Enhancing the feature set of an application. Control functions (such as indicator lights). Fun lights are mostly found on battery-powered portable applications: Notebooks Handsets Consumer portables Portable media players Some example fun-light applications are: Predictive key entry for text messages. Making a smartphone flash to remind the user of an appointment. Providing battery-charging status. Enhancing audio experience through supporting a base.
Q. How should an unused I/O pin in an I2C I/O expander be terminated? A. For devices with internal resistors between VCC and the I/O, such as PCA9555, PCA9536 and PCA9554/A, the I/O can be connected directly to VCC or GND. For devices without internal resistors, a resistor can be used to terminate unused I/Os to VCC or GND.
Q. What are the benefits of using TCA- series devices? (See figure above.) A. Low-voltage operation. TCA- series devices provide a one-chip interface with processors operating at 1.8 V to: Save board costs. Save board space. Provide better inventory management. Wide-voltage operation: Can interface with legacy and next-generation processors. Low power consumption.
10
Texas Instruments
Resources
Packages
0.037 (0,95) 0.077 (1,95)
1.55 (1,45)
0.057 (1,45)
0.083 (2,10)
0.083 (2,10)
0.260 (6,60)
0.163 (4,15)
1.60
Texas Instruments
11
Use the popular WEBENCH designer tools to simultaneously compare performance across multiple parameters for complete systems including efficiency, size, and cost in seconds. Get instant access to the latest simulation models, parametric data, and package information for power, lighting, and sensing applications.
> Optimize your design in seconds > Simulate your results > Order a prototype
ti.com/webench
Model Simulation
TINA-TI SPICE Simulation Software
Important Notice: The products and services of Texas Instruments Incorporated and its subsidiaries described herein are sold subject to TIs standard terms and conditions of sale. Customers are advised to obtain the most current and complete information about TI products and services before placing orders. TI assumes no liability for applications assistance, customers applications or product designs, software performance, or infringement of patents. The publication of information regarding any other companys products or services does not constitute TIs approval, warranty or endorsement thereof. 2013 Texas Instruments Incorporated. The platform bar and E2E are trademarks of Texas Instruments. All other trademarks are the property of their respective owners. Printed in U.S.A.
SSZC003E
IMPORTANT NOTICE
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All semiconductor products (also referred to herein as components) are sold subject to TIs terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TIs terms and conditions of sale of semiconductor products. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not necessarily performed. TI assumes no liability for applications assistance or the design of Buyers products. Buyers are responsible for their products and applications using TI components. To minimize the risks associated with Buyers products and applications, Buyers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other intellectual property right relating to any combination, machine, or process in which TI components or services are used. Information published by TI regarding third-party products or services does not constitute a license 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 significant portions 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. TI is not responsible or liable for such altered documentation. Information of third parties may be subject to additional restrictions. Resale of TI components or services with statements different from or beyond the parameters stated by TI for that component or service voids all express and any implied warranties for the associated TI component or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause harm and take appropriate remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use of any TI components in safety-critical applications. In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TIs goal is to help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and requirements. Nonetheless, such components are subject to these terms. No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties have executed a special agreement specifically governing such use. Only those TI components which TI has specifically designated as military grade or enhanced plastic are designed and intended for use in military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components which have not been so designated is solely at the Buyer's risk, and that Buyer is solely responsible for compliance with all legal and regulatory requirements in connection with such use. TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of non-designated products, TI will not be responsible for any failure to meet ISO/TS16949. Products Audio Amplifiers Data Converters DLP Products DSP Clocks and Timers Interface Logic Power Mgmt Microcontrollers RFID OMAP Applications Processors Wireless Connectivity www.ti.com/audio amplifier.ti.com dataconverter.ti.com www.dlp.com dsp.ti.com www.ti.com/clocks interface.ti.com logic.ti.com power.ti.com microcontroller.ti.com www.ti-rfid.com www.ti.com/omap TI E2E Community e2e.ti.com www.ti.com/wirelessconnectivity Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265 Copyright 2013, Texas Instruments Incorporated Applications Automotive and Transportation Communications and Telecom Computers and Peripherals Consumer Electronics Energy and Lighting Industrial Medical Security Space, Avionics and Defense Video and Imaging www.ti.com/automotive www.ti.com/communications www.ti.com/computers www.ti.com/consumer-apps www.ti.com/energy www.ti.com/industrial www.ti.com/medical www.ti.com/security www.ti.com/space-avionics-defense www.ti.com/video