Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: I2C pullup resistors with the audio board and other devices.

  1. #1

    I2C pullup resistors with the audio board and other devices.

    Hi everyone, sorry as usual for my cluelessness.

    I am adding the Audio board to a design which currently uses I2C with 4.7k pull up resistors on each channel. I noticed the Audio board also has pull ups of 2.2k on these channels.

    Using science(?!), I see that the combined resistors in parallel give me

    1/R = 1/R1 + 1/R2

    1/R = 1/2200 + 1/4700

    and R at around 1499.

    Will this be enough, or should I change my existing resistors to match the total 4.7k? Then maths fails me, because I can only see how a negative value would work.

    Thanks as always for your help

  2. #2
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,600
    4.7k is a usual value for 5V systems. The Teensy is a 3.3V system which should normally be happy with 2k2. Thus, you could even remove the 4k7 from the other circuit. There is no general rule about the pull-up resistor value in I2C systems, only rules of thumb since the signal quality depends not only on these resistor values but also of the parasitic inductance and capacitance of the wiring and the connected ICs. Under normal conditions (short wiring and/or boards stacked) and I2C speed at 400kHz, you should be fine with either 2k2 alone or 2k2 in parallel with 4k7.

    The classic way of engineering would be to build everything together and to check the SDA and SCL lines with an oscilloscope. When you see that the pulses are malformed, you'd deduce from the kind of malformation if you need to increase or to decrease the resistor values and try again.

  3. #3
    Thanks for the complete information. Very helpful.

    The audio board is pluggable as an extra in my design so I should be able to operate without it. I'll try them in parallel and see how it works.

  4. #4
    Here is some nice Application Report called SLVA689 from TI about calculating pullup resistors for I2C: http://www.ti.com/lit/an/slva689/slva689.pdf

  5. #5
    Senior Member+ Theremingenieur's Avatar
    Join Date
    Feb 2014
    Location
    Colmar, France
    Posts
    2,600
    Quote Originally Posted by sourceforge807 View Post
    Here is some nice Application Report called SLVA689 from TI about calculating pullup resistors for I2C: http://www.ti.com/lit/an/slva689/slva689.pdf
    Thank you for that finding! Bookmarked.

  6. #6
    No Problem TI have a lot more such dokuments with very different content. Only searching is a little bit difficult.
    Here is some stuff about audio:
    http://www.ti.com/analog/docs/audiot...ocCategoryId=1

    BTT
    For unterstanding I2C:
    http://www.ti.com/lit/an/slva704/slva704.pdf
    Last edited by sourceforge807; 01-27-2018 at 06:31 PM.

Posting Permissions

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