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

How to slow down I2C below 50kHz?

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



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

How to slow down I2C below 50kHz?
PostPosted: Sun May 29, 2005 12:46 pm     Reply with quote

Colleagues,

Is it possible to slow down a frequency of the I2C on the PIC without writing my own bit-banging code? I have to deal with a tough case of an isolation barrier, where the difference between the grounds on different sides will be reaching 10kV. I2C bus has to cross this barrier. Unfortunately optocouplers which can handle 5kV have a propagation delay on the order of 5us, which is probably too much even for the 100kHz I2C.

Thanks,
Nick
rwyoung



Joined: 12 Nov 2003
Posts: 563
Location: Lawrence, KS USA

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

PostPosted: Sun May 29, 2005 1:00 pm     Reply with quote

The latest version of the compiler have an additional parameter for the #use i2c line where you can set the speed. Look at the readme.txt for the compiler.

I haven't tried it but it might get you started.
_________________
Rob Young
The Screw-Up Fairy may just visit you but he has crashed on my couch for the last month!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun May 29, 2005 1:07 pm     Reply with quote

What is your PIC and your crystal frequency ?
See this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=3616&highlight=i2c+baud+rate
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