CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Is this kind of interface possible with i2c?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

Is this kind of interface possible with i2c?
PostPosted: Fri Sep 20, 2013 8:56 am     Reply with quote

hi,

I am trying to interface the mcp23016 in this way.

The mcp23016 supply pin is connected to 5v DC line. The pullups to the I2C pins are connected to 3.3 VDC. A 3.3 v mcu is connected to the i2c bus, the supply pins of the mcu is connected to the 3.3 VDC line.

Will the above system work?

thanks
a
jeremiah



Joined: 20 Jul 2010
Posts: 1337

View user's profile Send private message

PostPosted: Fri Sep 20, 2013 10:02 am     Reply with quote

According to the data sheet for your IO expander, a value of 0.8VDD (0.8*5v = 4v) is required for a logic high, so the pullups won't be able to drive the lines high enough for the mcp23016 to see a high all the time.

Why not run the mcp23016 at 3.3v as well? It allows for a wide voltage range on the data sheet.
Ttelmah



Joined: 11 Mar 2010
Posts: 19446

View user's profile Send private message

PostPosted: Fri Sep 20, 2013 10:59 am     Reply with quote

But of course, if you must use 5v, 'possible', yes, using level translators. Either simple FETs, or for faster performance IC's.

Best Wishes
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

re
PostPosted: Fri Sep 20, 2013 11:11 am     Reply with quote

thanks for the reply. I see the point.

The mcp outputs need to drive 5v, so running the mcp on 3v will not work.

Of course i could use fets as suggested.

thanks
a
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group