ENGLISH 简体中文 日本語 한국어  

    로그인 | 회원가입 


   
 
키워드나 부품번호를 입력해주세요    




애플리케이션 노트 1073

Tiny Analog Switch Alleviates I2C Address Conflicts

Abstract: A small SPDT switch can be used to alleviate 2-wire addressing conflicts. This simple circuit depicts how a simple switch can provide proper address to two components with identical addresses.

To avoid address conflicts, every peripheral on an I2C™ bus must have a unique address. Sometimes, however, peripherals may be assigned the same address. The circuit of Figure 1 resolves address conflicts by enabling the I2C bus to select between two peripherals with the same address.

Figure 1. A dual analog switch (IC1) and a single controller line (SELECT) enable this I2C bus to select between two peripherals with identical addresses.
Figure 1. A dual analog switch (IC1) and a single controller line (SELECT) enable this I2C bus to select between two peripherals with identical addresses.

The popular I2C bus is an open-collector, 2-wire interface that includes a clock line and a bidirectional data line. It allows a controller (the master) to select a particular device (the slave) by first issuing a serial address on the data line, then issuing appropriate commands or data. Master and slave can send data in both directions by pulling the data line low, and slaves can generate wait states by pulling the clock line low. Bus switching, however, is complicated by the open-collector architecture—it cannot be accomplished with the CMOS outputs of AND gates or 74HC157 data selectors.

The peripherals shown in Figure 1 are a Philips I2C real-time clock (PCF-8583) and a large I2C EEPROM (Microchip M-24LC16). Both have an internal, hexadecimal slave address of A0. (The EEPROM takes up the entire address range, making it impossible to avoid.) The analog switch connects either one device or the other. Selection involves the data line (SDA) only, because an I2C start condition requires that the SDA signal goes low before the clock goes low. To select between the devices, the master device sets a port pin to control the state of the dual SPST analog switch.

IC1 is a CMOS chip well suited to this function. Its normally open switch and normally closed switch perform the 2:1 selector operation with no additional inverters or port lines. It features low on-resistance (33Ω) and low supply current (1µA), and is specified for operation below 3V. Also, its tiny 8-pin SOT package (µMAX) is only one-half the size of an SO-8 package.

A similar idea appeared in the 6/23/97 issue of Electronic Design.


관련 부품  APP 1073: Jul 22, 1998
MAX325 정밀, 단일 전원, SPST 아날로그 스위치 전체 데이터 시트
(PDF, 120kB)
무료 샘플

자동 업데이트
관심 분야의 애플리케이션 노트가 나올 때 자동으로 업데이트를 원하십니까? 그렇다면 EE-Mail™을 신청하십시오.


We Want Your Feedback!



의견을 보내주세요!
위 내용이 도움이 되셨나요?
여러분의 의견을 기다립니다 — Maxim은 보내주신 정정이나 제안사항을 반영하고 있습니다. 이 페이지를 평가하고 의견을 보내주십시오.

 

다운로드, PDF 형식다운로드, PDF 형식 (31kB)
 AN1073, AN 1073, APP1073, Appnote1073, Appnote 1073

        •         •         •     개인정보보호 정책     •     법적 고지

    Copyright © 2009 by Maxim Integrated Products