Level Translator For SPI and I²C Bus Signals

Similar documents
UM3221E/UM3222E/UM3232E

SM05G. Low Capacitance Quad Line ESD Protection Diode Arry SM05/G SOT23-3. General Description. Rev.02 Nov.

2-Bit Bidirectional Voltage-Level Translator with Auto Direction sensing and ±15kV ESD Protection UM3302H CSP UM3302Q QFN

Single Line ESD Protection Diode Array

Low Capacitance Bidirectional Single Line TVS Protection Diode UM5080T DFN

UM Pin Microprocessor Reset Circuits UM803 SOT323/SOT23-3. General Description. Applications. Features

UM5075/5079 Single Line ESD Protection Diode Array UM5075 SOD523 UM5079 DFN General Description Applications Features

4-Bit Bidirectional Voltage-Level Translator for Open-Drain and Push-Pull Application UM3204H CSP UM3204QS QFN

UESD6V8L1F. Low Capacitance Single Line ESD Protection Diode Array UESD6V8L1F DFN General Description

AMS 5812 OEM pressure sensor with an analog and digital output

UM5204EECE. Quad Channel Low Capacitance ESD Protection Array. General Description. Rev.03 Dec /6

FPGA Implementation Of SPI To I2C Bridge

Craft Port Tiny RS-232 Transceiver for Portable Applications ADM101E. Data Sheet FUNCTIONAL BLOCK DIAGRAM

Evaluation Board User Guide UG-047

UM5204EEBF. Quad Channel Low Capacitance ESD Protection Array UM5204EEAF SC70-6/SC88/SOT363 UM5204EECF TSOP-6/SOT23-6. General Description

PART MAX3397EELA+ Maxim Integrated Products 1

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI

Company Profile. Union Semiconductor.

Low Voltage, 10-Bit Digital Temperature Sensor in 8-Lead MSOP AD7314

UM5304EEBF. Quad Channel Low Capacitance ESD Protection Array UM5304EEAF SC70-6/SC88/SOT363 UM5304EECF TSOP-6/SOT23-6. General Description

Digital Discovery Reference Manual

DS WIRE INTERFACE 11 DECOUPLING CAP GND

Addressable Bus Buffer Provides Capacitance Buffering, Live Insertion and Nested Addressing in 2-WireBus Systems

AIC1526. Dual USB High-Side Power Switch FEATURES DESCRIPTION APPLICATIONS

Understanding SPI with Precision Data Converters

D115 The Fast Optimal Servo Amplifier For Brush, Brushless, Voice Coil Servo Motors

+1.2V to +5.5V, ±15kV ESD-Protected, 0.1µA, 35Mbps, 8-Channel Level Translators

UM3222E,UM3232E. High ESD-Protected, Low Power, 3.3V to 5.5V, True RS-232 Transceivers. General Description. Applications.

Evaluation Board for the AD7790/AD /24-Bit, Low Power, Σ- ADC

AIC1520. Ferrite Bead GND. *33µF, 16V Tantalum, or 100µF, 10V Electrolytic Bold line indicate high-current traces. USB High-Side Power Switch

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

GRAVITECH GROUP

SN8200 LI+ DUAL BATTERY CONTROLLER

Amarjeet Singh. January 30, 2012

SQFlash Industrial SD Card SQFlash Technical Manual

2-Wire, 5-Bit DAC with Three Digital Outputs

PRODUCTION DATA SHEET

APPLICATION NOTE. Atmel AT01080: XMEGA E Schematic Checklist. Atmel AVR XMEGA E. Features. Introduction

Serial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses

The Serial Peripheral Interface

TS2043 Preliminary CMOS IC

DS1306. Serial Alarm Real Time Clock (RTC)

Summary of Well Known Interface Standards

RS485 3 click. How does it work? PID: MIKROE-2821

PARALLEL COMMUNICATIONS

HDMI To HDTV Converter

EVAL-ADT7516. SPI -/I 2 C -Compatible, Temperature Sensor, 4-Channel ADC and Quad Voltage Output DAC FEATURES APPLICATIONS

Revision History. Version Date Changes Error in PIN description SPI jack Initial version

USB-to-I2C. Professional Hardware User s Manual.

MIC2027/2077. Features. General Description. Applications. Typical Application. Quad USB Power Distribution Switch

Features. V CC 2.7V to 5.5V 10k OVERCURRENT GND NC

Win-I2CUSB Hardware User s Manual

Unity Digital Industrial Solution SLC SD 3.0 Specification

Introduction to I2C & SPI. Chapter 22

Pmod modules are powered by the host via the interface s power and ground pins.

HM9708 HM9708. Battery-Powered Equipment Motherboard USB Power Switch USB Device Power Switch Hot-Plug Power Supplies Battery-Charger Circuits DC+ VIN

PART TOP VIEW ADDR2 ADDR3 ADDR4 SELECT S/H CONFIG V L DGND V SS AGND IN CH. Maxim Integrated Products 1

Designing with Siliconix PC Card (PCMCIA) Power Interface Switches

PCB Layout and Design Guide for CH7102A HDMI to BT656 Converter with IIC Slave

SPI 3-Wire Master (VHDL)

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5092 P-DIP-8-1

Evaluation Board for Transducer ADC EVAL-AD7730EB

EE100 EEPROM On Board and Off line Programmer Specification

MIC826. General Description. Features. Applications. Typical Application

+1.2V to +5.5V, ±15kV ESD-Protected, 0.1µA, 35Mbps, 8-Channel Level Translators

Figure 1 Typical Application Circuit

Embedded Systems and Software

PART IN+ IN- TX_DISABLE TX_FAULT BIAS SET BIASMAX 2 APCSET 2 MODSET 2 MOD SET PC_MON BS_MON

Features VCC MIC1810 RESET RESET

Applications +5V V CC V S EN SYNCH0, SYNCV0 SDA0, SCL0 RED SYNCH1, SYNCV1 SDA1, SCL1 MAX14895E BLU GND

V PP IN V CC3 IN V CC5 IN EN0 EN1 MIC2561 V CC5_EN V CC3_EN

10K 10K 10K 10K CTLA FLGA OVERCURRENT IN(A/B) FLGB OVERCURRENT ON/OFF CTLB CTLC OUTB FLGC OUTC FLGD ON/OFF OVERCURRENT OVERCURRENT IN(C/D) CTLD

Implementing Bus LVDS Interface in Cyclone III, Stratix III, and Stratix IV Devices

McMaster University Embedded Systems. Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016

DS21T09 Plug and Play SCSI Terminator

USB interface MP3/WAV Recording and Playing Solution OTG15H

Features. 10k. 10k ON/OFF. 1µF OVERCURRENT OVERCURRENT. Typical Two-Port Bus-Powered Hub

±0.5 C Accurate, 16-Bit Digital SPI Temperature Sensor ADT7310

USB-to-I2C. Ultra Hardware User s Manual.

1.3inch OLED User Manual

Manual iaq-engine Indoor Air Quality sensor

DS1306 Serial Alarm Real-Time Clock

OP-SFP Gbps SFP+ Transceiver

App Note Application Note: Addressing Multiple FPAAs Using a SPI Interface

DS1305 Serial Alarm Real Time Clock (RTC)

TOP VIEW CLOCK GENERATOR A1 A2 GND CPU SPEED SELECT

DS21S07AE. SCSI Terminator

EVALUATION KIT AVAILABLE High-Bandwidth, VGA 2:1 Switch with ±15kV ESD Protection

Markus Hintermann Global Technical Marketing / Sales Manager at Micro Crystal

The 9S12 Serial Peripheral Inteface (SPI) Huang Section 10.2 through 10.6 SPI Block User Guide

Preliminary Data MOS IC. Type Ordering Code Package SDA Q67100-H5096 P-DIP-8-1

XRA1202/1202P 8-BIT I2C/SMBUS GPIO EXPANDER WITH RESET

INTEGRATED CIRCUITS. PCA9512 Level shifting hot swappable I 2 C and SMBus buffer. Product data sheet 2004 Oct 05. Philips Semiconductors

AN510 Using SPI protocol with pressure sensor modules

DM-OLED X 64 BLUE GRAPHIC OLED DISPLAY MODULE WITH SPI, I2C INTERFACE

DIO V Current Limited Load Switch

Evaluation Board for 14-/16-Bit, Serial Input, VOUT NanoDACs EVAL-AD5040EB/EVAL-AD506xEB

Release Note. How to Use the OptoCon Connection Module. 1 Introduction. Option C Revision 4 Revised 8/13/98

Interfacing Techniques in Embedded Systems

DS1305EN. Serial Alarm Real-Time Clock

Transcription:

Level Translator For SPI and I²C Bus Signals APN007 Abstract A serial interface is often used for board-level communication between different integrated circuits, especially in space-constrained applications at low-to-medium data rates. The most popular serial interfaces are I²C and SPI. If a system has different supply voltages for the µp and for peripheral devices, suitable level translators are required to be able to use one of these serial interfaces. There are several reasons why today s systems have two or more supply-voltages. High-speed µps and DSPs are implemented on the most advanced processes to get maximum performance with the lowest power consumption. Another reason for different supply voltages is the use of ASICs or FPGAs together with a µp. For all these applications the designer needs a uni-or bi-directional level translator for the bus signals. The UM3378 level shift was designed to solve these problems. This application note describes SPI and I²C and some level-translation circuits that interface to them. SPI Bus The SPI bus has 4 signals: active-low CS = active-low Chip select, SCLK = Clock, DIN = Data In, and DOUT = Data Out. Figure 1 illustrates the timing of these signals. The SPI specification has a clock polarity (CPOL) and a clock phase (CPHA) bit. Figure 1 relates to the most common combination of these bits, CPOL = 0 (data-transfer on the rising clock edge) and CPHA = 0 (clock transitions in the middle of bit timing). Figure 1. Signals and timing of the SPI interface. Several devices might be connected to the same bus, where all devices share the DIN and SCLK line. Each device has a separate chip-select signal, so that the µp can address the appropriate part by the relevant active-low CS signal. If a chip does not talk back to the µp (e.g., DAC), the DOUT line is not needed. The SPI bus is well suited to data-rates to 20Mbps. Some devices (e.g., RTCs) have a 3-wire interface, where the data- line is bi-directional. This interface is similar to SPI. I²C bus The I²C-bus has 2 signals: SCL = Clock and SDA = Data in/out. Figure 2 illustrates the timing of the I²C-bus. Each device has a unique 7-bit or 10-bit address. As the data-line is bi-directional, only 2 wires are required, which is an advantage in space-constrained applications or in designs where different parts of the circuit have to be optically isolated. Data-rates for the I²C-bus are 100kbps, 400kbps, or even µp to 3.4Mbps for the high-speed mode. The I²C-bus requires pull-up resistors R P, where the value of R P depends on the supply-voltage and the bus-capacitance (number of devices connected to the bus and length of the http://www.union-ic.com Rev.01 Jun.2008 1/6

bus). Figure 2. Signals and timing of the I²C-interface If a system has different supply voltages for the µp and for peripheral devices, suitable level translators are required to be able to use one of these serial interfaces. There are several reasons why today's systems have two or more supply-voltages. High-speed µps and DSPs are implemented on the most advanced processes to get maximum performance with the lowest power consumption. These processes are often limited to supply voltages of 3V or less. Typical core-voltages are 1.5V-2.5V. On the other hand, I/O-devices like DA-and AD-converters might have a supply-voltage of 3.3V or 5V to achieve the required dynamic range. In portable and low-power applications there is another reason to have the µp run with the lowest possible supply voltage. Current consumption of a typical microprocessor depends on clock frequency and supply voltage. One way to achieve low current consumption is therefore to reduce the supply voltage. This also leads to the situation where the µp runs from a different supply than other devices. Another reason for different supply voltages might be the use of ASICs or FPGAs together with a µp. For all these applications the designer needs a uni-or bi-directional level translator for the bus signals. Figure 3 shows a basic level translator with an N-channel MOSFET. If neither Q2 or Q3 pulls the data-line low, VGS of Q1 is 0V and Data 1.8 has a level of 1.8V, Data 3.3 is at 3.3V. If Q2 pulls Data 1.8 low, VGS of Q1 is 1.8V and will turn on Q1, pulling Data 3.3 low. If Q3 pulls Data 3.3 low, the body diode of Q1 will be forward- biased, pulling the source to 0.3V. VGS will be 1.5V and Q1 will turn on, pulling Data 1.8 low. So logic-levels are translated in both directions. We assume here that Q2 has zero on-resistance. For a real application we would have to consider this on-resistance, which is 133Ω worst-case for an I²C-compatible output (0.4V at 3mA) or 22Ω for the 74LVC125 buffer (0.55V at 24mA). In this case the voltage VGS to turn on Q1 would no longer be 1.8V, but would be lower, depending on R1 and the on-resistance of Q1. Figure 3. Basic level translator http://www.union-ic.com Rev.01 Jun.2008 2/6

There are several problems associated with this circuit: 1. With VL being 1.8V or even lower, the choice of suitable MOSFETs with a low enough VGS threshold voltage is rather limited. One candidate might be the TN2501 from Supertex. 2. The slew-rate and, therefore, the maximum transmission rate depends on the value of R1/R2 and on the number of devices on the bus, which determines the capacitance. It is possible to increase the maximum transmission rate by choosing lower value resistors R1/R2. This will lead to higher current consumption, which is undesirable in portable/low-power applications. 3. With this simple circuit it is not possible to tristate the bus and disconnect R1/R2. Therefore one cannot switch off segments of the bus. The UM3378 level translator solves these problems. Figure 4 shows the simplified schematic of theum3378, where two MOSFETs Q4 and Q5 have been added. Q4 and Q5 close for a short time during the rising edge and speed-up the low-to-high transition. Minimum guaranteed data-rate for the UM3378 is 8Mbps, up to 16Mbps is possible if VCC - VL < 0.8V. This level-translator has a three-state mode, where the pull-up resistors are disconnected. This makes them ideal in multidrop-networks or for controlling I²C-devices with the same address, where these devices are on different sections of the network, which are decoupled by a level translator. The data-lines on the VCC-side are ±15kV ESD-protected, which is a valuable feature in applications where the bus is accessible on a connector and where ESD-strikes are likely to occur. A thermal-shutdown circuit puts the level-translator in the three-state mode if temperature exceeds 150 C. Figure 4. Improved level translator UM3378 with speed-up circuit. Typical Applications Figure 5 shows a typical application for the UM3378 level translator in a battery-powered measurement circuit. A low-power instrumentation amplifier amplifies the signal from the bridge. The signal is AD-converted. The supply voltage for the analog front-end is 5V, the low- power µp has a supply of 2.5V. The UM3378 level shifts the SPI signals from 2.5V to 5V and from 5V to 2.5V for the DOUT signal. http://www.union-ic.com Rev.01 Jun.2008 3/6

Figure 5. The UM3378 level translator in an SPI-bus application. Figure 6 shows a similar application with an I²C-bus. The UM3378 level translator is used to interface the µp I/O levels to the I²C. Figure 6. UM3378 used in an I 2 C-bus application with optional pull-up resistors R PP Depending on the number of devices on the bus, optional pull-up resistors R PP might be required. The UM3378 level translator has internal 10kΩ pull-up resistors. In Figure 7 we can see that this is sufficient for a bus-capacitance of about 90pF, assuming we do not connect the optional resistor R S (R S = 0). http://www.union-ic.com Rev.01 Jun.2008 4/6

Figure 7. Maximum value of R P as a function of bus capacitance for a standard-mode I²C-bus, from I²C- specification. If there are several devices on the same bus or if the bus is relatively long (>30cm), it is necessary to use external pull-up resistors R PP. Figure 8 shows the minimum value of R P, which is 1.7kΩ for R S = 0 and VDD =5V. From this we find the minimum value for R PP to be 2.2kΩ, so that R PP in parallel with the internal pull-up of10kω is 1.83kΩ. Figure 8. Minimum value of R P as a function of supply voltage with the value of R S as a parameter, from I²C- specificatio In summary, the UM3378 is ideal solution to solve the I²C or SPI bus-level translation problems found in low-voltage systems. Guaranteed data rates, low power requirements, low-supply-voltage operability, and small package help solve the many problems facing designers in bus architectures today http://www.union-ic.com Rev.01 Jun.2008 5/6

IMPORTANT NOTICE The information in this document has been carefully reviewed and is believed to be accurate. Nonetheless, this document is subject to change without notice. Union assumes no responsibility for any inaccuracies that may be contained in this document, and makes no commitment to update or to keep current the contained information, or to notify a person or organization of any update. Union reserves the right to make changes, at any time, in order to improve reliability, function or design and to attempt to supply the best product possible. Union Semiconductor, Inc Add: 7F, No. 5, Bibo Road, Shanghai 201203 Tel: 021-51097928 Fax: 021-51026018 Website: www.union-ic.com http://www.union-ic.com Rev.01 Jun.2008 6/6