I2C-With the 24LC16B


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    ron6699's Avatar
    ron6699 Guest


    Did you find this post helpful? Yes | No

    Unhappy 24lc16b

    Hi again!

    Sorry,i have tested my connections and they must be correct.
    Because i have found a hexfile(loader.hex).
    And when i burn it in my Pic,My Pic read 's and write's the 24LC16B perfect.

    Here are my original Connections:
    http://www.xg-midifiles.de/24LC16B.jpg
    (I have made an Error,sorry for that)

    So it MUST be a Software Error!

    My Problem is,i have only this hexfile(that work's perfect).
    But i want to write my own Program with PBP.
    I have try many Sample Codes not only your's.
    And i have read many Tutorials also the Datasheed's(but if you think,
    then i will read them again)

    My Question is:

    Wy work's this hexfile perfect and all sample Code written with PBP
    does not?

    By'e
    RON

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Are you 100% sure you're setting your config fuse for RC_OSC before programming your PIC?

    The RC values shown in your schematic should give you roughly 4MHz, but don't count on super accurate timing with any external RC osc circuit.

    You could also try substituting a 10K pot for the fixed 5K resistor you have now. You can tweak the potentiometer to fine tune your RC osicllator circuit until you get it close enough to 4MHz for the I2CWrite & I2CRead timing to work.

    Of course, you could always drop in a 4MHz crystal or resonator, and be done with it.

    The pull-up resistors, as mentioned previously, would also be a nice twist if you're getting tired of fighting this thing. Your manual shows you the super simple pull-up resistor circuit. It really does make a difference.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

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. PIC16F877 I2C programme
    By cooqo in forum mel PIC BASIC
    Replies: 3
    Last Post: - 21st April 2008, 10:02
  4. I2C Master Slave issues.
    By cpayne in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th March 2008, 19:33
  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 : 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