24LC256 and PIC16F877


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Hi Tom,

    assuming the variables used are declared as:

    B0 VAR WORD
    B1 VAR BYTE
    B2 VAR BYTE

    the code is ok.


    If you are using a fast crystal (20MHz), add these two DEFINEs:

    DEFINE I2C_SLOW 1
    DEFINE I2C_SCLOUT 1

    Add pullups (4k7) to the data and clock line and it should work.
    (it might work with a pullup on the data line only)

    rgds
    Last edited by NavMicroSystems; - 1st March 2004 at 17:27.

Similar Threads

  1. PIC16F877 and EEPROM FM24C16A
    By igeorge in forum Schematics
    Replies: 13
    Last Post: - 14th December 2004, 01:21

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