Open-collector VS bipolar lines on I2C devices


Closed Thread
Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,163


    Did you find this post helpful? Yes | No

    Default

    Okaaaay...

    So that begs the question, how do we calculate the resistor size?

    The manual says 4.7K resistors, but I suspect that is an 'average'.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    Demon, What you need to do is use an oscilloscope and look at the SDA line as well as the SCK line. However the SDA line is of more importance due to the fact that any device on the bus can drive it. Usually there is only 1 master and it generates the clock for the slaves. With the maxumum devices on the bus and the longest bus lines, opertaing at your maximum speed, make sure that the SCL and SDA lines are not distorting the waveform. If the waveform is rounded then decrease the resistance in 100 ohm increments until the waveform edges look pretty square. Be carefull not to go below about 1K ohm as that would be 5 ma. of current draw. Some devices out there can't pull down much mode than that.

    Dave Purola,
    N8NTA
    Last edited by Demon; - 4th October 2016 at 18:05.

Similar Threads

  1. I2C Master/Slave 16F88/16F767 working code
    By DanPBP in forum Code Examples
    Replies: 2
    Last Post: - 23rd October 2012, 22:31
  2. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  3. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  4. I2C slave
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th March 2008, 03:46
  5. Please help with i2cslave i2c slave
    By cycle_girl in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st December 2005, 13:55

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts