Joined: 09 Aug 2004 Posts: 768 Location: Silicon Valley
How to slow down I2C below 50kHz?
Posted: Sun May 29, 2005 12:46 pm
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
Posted: Sun May 29, 2005 1:00 pm
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!
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