Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
I2C interface 3.3V device to ZX-24

 
Post new topic   Reply to topic    Forum Index -> General
Author Message
victorf



Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York

Posted: 25 February 2010, 20:56 PM    Post subject: I2C interface 3.3V device to ZX-24 Reply with quote

To make it simple: How do I interface a 3.3V I2C device to a 5.0V ZX-24? The device is a SFE HM6343 BO.

Any enlightenment will be appreciated.

Vic
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 25 February 2010, 22:47 PM    Post subject: Re: I2C interface 3.3V device to ZX-24 Reply with quote

victorf wrote:
How do I interface a 3.3V I2C device to a 5.0V ZX-24?
Since both SDA and SCL are bi-directional lines this is a more difficult case - you need a level translation circuit that is bi-directional also. I haven't used it but it appears that the ST2378E might fit the bill. I'm sure there are other candidates, too.

There is also a clever two-transistor circuit described here:
http://www.edn.com/archives/1996/110796/23DI_02.htm
Back to top
victorf



Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York

Posted: 26 February 2010, 14:50 PM    Post subject: Reply with quote

What about simply pulling up the I2C lines to 3.3V. Will the ZX be able to handle this or am I just asking for trouble?

Vic
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 26 February 2010, 16:17 PM    Post subject: Reply with quote

victorf wrote:
What about simply pulling up the I2C lines to 3.3V. Will the ZX be able to handle this or am I just asking for trouble?
The minimum voltage level to be recognized as a logic 1 by the ZX input is Vcc * 0.6 = 3.0 volts. Since I2C outputs are "open drain" the logic 1 level is going to be pretty close to 3.3V, giving you at least a 100mV margin. If your lines are kept short, you use strong pullups (say 2.2K), your 3.3V supply is not too far below 3.3 volts and your 5V supply is not too far above 5 volts you'll probably be OK.
Back to top
mikep



Joined: 24 Sep 2005
Posts: 765
Location: Austin, TX

Posted: 26 February 2010, 18:51 PM    Post subject: Reply with quote

Here is the de facto standard white paper on I2C level conversion from Phillips: http://ics.nxp.com/support/documents/interface/pdf/an97055.pdf. The explanation of how the dual MOSFET solution works is in the application note.

I have successfully used this circuit and recommend it.

You can buy prebuilt breakout board from Sparkfun for $1.95. I created my own PCB anbd used a dual MOSFET and 4 resistor array - about 30 cents.
Back to top
twesthoff



Joined: 17 Mar 2006
Posts: 191
Location: Fredericksburg, VA

Posted: 26 February 2010, 20:20 PM    Post subject: Reply with quote

Maxim has a chip that I use and it works well:
MAX3001
http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3672/t/al

Also see:
http://www.maxim-ic.com/app-notes/index.mvp/id/3007
Back to top
sturgessb



Joined: 25 Apr 2008
Posts: 246
Location: Norwich, UK

Posted: 27 February 2010, 14:16 PM    Post subject: Reply with quote

Yes, I can confirm this is a great solution, I use the 3002.

its brillo pads!

Ben
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> General Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group