Highspeed-I2C ?


Closed Thread
Results 1 to 2 of 2

Thread: Highspeed-I2C ?

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289

    Default Highspeed-I2C ?

    I'm using an 24FC512 as an external memory with an PIC18F252 @ 8MHz.
    This device is able to work at a speed of max. 1MHz.

    Is it possible to use an I2C-speed of 400kHz or 1MHz with I2CWRITE/I2CREAD ?

    Melanie, what's possible ? ;-)

  2. #2
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    Sorry I'm not Melanie but...

    The speed of the I2C interface is determined by the master device, that being the PIC side. The memory is *capable* of I2C-speeds of 400kHz or 1MHz does not mean it MUST be run at those speeds, slower is OK. I2C is defined to go down to way slow (almost DC) speeds.

    The Pic Basic manual states the I2C bus will run at or below 100KHz speeds up to your 8MHz clock, and at or below 400kHz up to a 20MHz clock.

    Should you mean "how to run a PIC I2C at 400kHz or 1MHz," thats more involved. Pic Basic leaves the hardware elements alone as much as possible, meaning it used straight pin bit banging methods to do I2C. You would need to use the hardware I2C to get the 1MHz limit. There's some code posted or linked here to do just that, and while written in Pic Basic it is not just a simple command, it is several largish routines.

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