12C fails on first attempt, then works fine...


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    70


    Did you find this post helpful? Yes | No

    Default Re: 12C fails on first attempt, then works fine...

    Quote Originally Posted by Dave View Post
    birg0030, Do you have the requisite resistor pull-ups on the SCL and SDA lines?
    I have 22K pull-ups in place. I know that value is a bit high, but slowing down the transmission rate does not help.

  2. #2
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: 12C fails on first attempt, then works fine...

    I'm no expert, and don't understand the formula outlined in the datasheet http://www.ti.com/lit/an/slva689/slva689.pdf but it seems to suggest that lower value resistors are required. The example given for fast transmission at 3.3v is typically 1K, or around 5K (4.7K are traditionally the norm) for 5v operation

  3. #3
    Join Date
    Nov 2006
    Posts
    70


    Did you find this post helpful? Yes | No

    Default Re: 12C fails on first attempt, then works fine...

    I don't think it is the resistors. I've used 100k before and it's been OK. I also tried different values in parallel with the 22k resistors to bring the pullup values down. Issue remains.

    I've done some more tweaking and I don't seem to have the same problem with two other I2C devices on the same bus. So the issue might be something particular to the RTC.

Similar Threads

  1. Replies: 8
    Last Post: - 6th February 2014, 18:36
  2. Replies: 1
    Last Post: - 23rd May 2009, 09:22
  3. 7805 works fine, LM2940CT5 not!
    By DanPBP in forum Off Topic
    Replies: 4
    Last Post: - 29th August 2007, 22:01
  4. ERROR Compling 16F819...l but the 16F818 works fine
    By 4Lewis in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st April 2006, 06:47
  5. 12c or SPI which is faster?
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th July 2004, 01:46

Members who have read this thread : 0

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