How critical is type of oscillator for I2C?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2012
    Location
    Grid EN19MV
    Posts
    159

    Default How critical is type of oscillator for I2C?

    I'm building a clock using Numitron tubes for the display.

    The display hardware works fine - using PBP 3 and a 16F886

    I don't however, seem to be able to read any of the registers of the DS1307-based RTC clock module I'm using. I'm using the bit-bang I2CREAD and I2CWRITE commands, I don't have a scope, but my logic probe shows pulses on both SDA and SCL

    My thought was, "since the master clocks the communications, using the internal oscillator should be fine. It shouldn't matter is its off by a couple percent".

    Was I wrong? Should I be using a crystal?

    I'm just trying to get it running, and this thought occurred to me.

    Thanks for any help
    "I have noticed that even those who assert that everything is predestined and that
    we can change nothing about it still look both ways before they cross the street"


    -Stephen Hawking

  2. #2
    Join Date
    Feb 2010
    Location
    USA, New England
    Posts
    164

    Default Re: How critical is type of oscillator for I2C?

    Hiya,

    Within reason, I2C should be indifferent to the clock speed. What matters is the state of the SDA when the the SCL transitions. As far as I know the only speed related issue is exceeding the maximum frequency for the I2C device, highly unlikely with the PBP functions.

    Best Regards,
    Paul
    The way to avoid mistakes is to gain experience. The way to gain experience is to make mistakes.

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    638

    Default Re: How critical is type of oscillator for I2C?

    Hi,

    No you shouldn't have any problems using the internal oscillator. It is not as precise as a crystal oscillator, but it is pretty accurate.

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

Similar Threads

  1. PIC as I2C Slave
    By Mainul in forum General
    Replies: 4
    Last Post: - 5th January 2013, 13:23
  2. 16F1847 Usart and I2C
    By Seahound1 in forum Serial
    Replies: 6
    Last Post: - 18th December 2012, 20:41
  3. Replies: 3
    Last Post: - 26th November 2012, 11:20
  4. Strange I2C and serial behaviour.......
    By jimbostlawrence in forum General
    Replies: 4
    Last Post: - 30th October 2012, 01:02
  5. Replies: 6
    Last Post: - 10th December 2008, 09:00

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