Problem in I2C

Discussion in 'Embedded Systems and Microcontrollers' started by scud123, Sep 16, 2015.

  1. scud123

    Thread Starter New Member

    Mar 20, 2014
    4
    0
    Hi guys,
    Using I2c protocol im interfacing eeprom(BR24G256-3) with PIC24F MCU. I'm just write a single character into the eeprom and trying to read the same data from the eeprom. I wrote the code according to the eeprom's read and write sequence. After flashing and compile the program in my MCU, nothing get print. Im using pic uart to print the values. I dont know what am missing in the sequence and logic.

    Below is the code:
    http://pastebin.ca/embed.php/3162723.html

    Thanks...
     
  2. dannyf

    Well-Known Member

    Sep 13, 2015
    1,825
    364
    can you get the mcu to blink an led?
     
    GopherT likes this.
  3. RRITESH KAKKAR

    Senior Member

    Jun 29, 2010
    2,831
    89
    I have code for I2C in BLDC ESC and DS1307 do you want???
     
Loading...