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

PIC18F4685 I2C question.

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



Joined: 07 Feb 2008
Posts: 17
Location: Canada

View user's profile Send private message

PIC18F4685 I2C question.
PostPosted: Thu Feb 07, 2008 11:37 am     Reply with quote

Can a PIC18F4685 with a supply voltage of 5V communicate with an I2C device which has a supply voltage of 3.3V?

Thanx Wink
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Feb 07, 2008 11:53 am     Reply with quote

You can do it without using level translators if you use software i2c
on any of the Port B pins, and use pull-up resistors connected to +3.3v.
This works with a 3.3v i2c chip because the i/o pins on Port B have
TTL input levels. You can use 3.3K resistors for the pull-ups. That's
a 1 ma pull-up, and it's equivalent to using 4.7K in a 5v circuit.
RageOfFury



Joined: 07 Feb 2008
Posts: 17
Location: Canada

View user's profile Send private message

PostPosted: Thu Feb 07, 2008 1:21 pm     Reply with quote

Thanx for the reply. After discussing it with one of my teachers, he recommended I use a PCA9306, which is a I2C level translator.
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