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 I2C connection possible? [Solved]

 
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 I2C connection possible? [Solved]
PostPosted: Mon Sep 30, 2013 1:39 pm     Reply with quote

Hi,

I am trying to use a 18F2620 for i2c connection, I intend to run the 18F2620 on 5 VDC but the i2c pins would be pulled up to 3.3V.

My question is will the 18F2620 drive the SCL and SDA pins to 5 VDC ?? or will the voltage level remain at 3.3V ??

thanks
a
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Sep 30, 2013 1:49 pm     Reply with quote

Quote:
I intend to run the 18F2620 on 5 VDC but the i2c pins would be pulled up to 3.3V.

That PIC has the SMBus option for the hardware i2c pins. Enable it.
Add SMBUS to the #use i2c() statement. Then it will work with 3.3v pull-ups.

Quote:
My question is will the 18F2620 drive the SCL and SDA pins to 5 VDC

I2c doesn't drive high levels. That's what the pull-ups are for.
It only pulls down (drives low).
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

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

re
PostPosted: Tue Oct 01, 2013 1:00 pm     Reply with quote

thanks for the help, its working now

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