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 CCS Technical Support

I2C using 3.3V instead of 5V

 
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

I2C using 3.3V instead of 5V
PostPosted: Thu Jul 04, 2013 12:55 pm     Reply with quote

Hi,

I am working on a project that uses a 18F4620, two MCP23016 I/O port expanders. Communication between the MCP23016 and the PIC is done using I2C.

My question is can I2C work on 3.3V ?

I know the 18F4620 can work on 3.3V and so can the MCP23016.

thanks
a
temtronic



Joined: 01 Jul 2010
Posts: 9225
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jul 04, 2013 1:35 pm     Reply with quote

Yes, I2C will work at 3volts. Most 'modern' chips are that voltage.
However an 'F' version PIC may not run correctly at 3 volts. You'll have to check the datasheet for specs on frequency, etc.
You can use an 'LF' PIC though at 3 volts.
Also, if you plan to mix the voltages, you'll have to use level translator chips in between.

hth
jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19504

View user's profile Send private message

PostPosted: Thu Jul 04, 2013 2:39 pm     Reply with quote

and the pull up resistor values depend on current, so have to rise at lower voltages.
It is in the I2C reference documents, including tables of resistor values versus capacitance and speed for several voltages.
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

PostPosted: Thu Jul 04, 2013 4:05 pm     Reply with quote

Be careful! According to the datasheet the 18F4620 will NOT run at full
speed at 3V. It will only run at full speed with 4.2V or greater.
_________________
Google and Forum Search are some of your best tools!!!!
Markdem



Joined: 24 Jun 2005
Posts: 206

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

PostPosted: Thu Jul 04, 2013 5:12 pm     Reply with quote

Have a look at a PCA9306. Sounds like what you are looking for. With it you can still run the 18F4620 at full speed and keep the MCP23016 at 3.3v.

Or, if you feel like doing it your self look at;
http://www.nxp.com/documents/application_note/AN10441.pdf

Have Fun
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jul 04, 2013 6:14 pm     Reply with quote

If the PIC is running at +5v and the i2c slave chip is running at +3.3v,
you don't need to use level converters if you do it this way:

1. Use any pins from B0 to B5 on PortB for the SDA and SCL signals.
Don't use any other port. Only PortB will work for this method.
(Don't use B6 and B7, because your ICD is connected to those pins).

2. Use a suitable resistor value for the i2c pullups, such as 2.2K.

3. Connect the pullups to +3.3v.

This method will use software i2c to talk to the i2c slave chip.

All of the above items are explained in these two posts by me
and Ttlemah:
http://www.ccsinfo.com/forum/viewtopic.php?t=48899&start=10
http://www.ccsinfo.com/forum/viewtopic.php?t=48899&start=21
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

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

RE
PostPosted: Fri Jul 05, 2013 12:26 am     Reply with quote

Thanks for the replies.

I think 5V supply will be fine.

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