interfacing 8051 with serial eprom

Discussion in 'Embedded Systems and Microcontrollers' started by kris, Dec 4, 2006.

  1. kris

    Thread Starter New Member

    Dec 4, 2006
    2
    0
    help!! urgent.... can anybody help me out with th assembly language code for interfacing 89c51 with serial eeprom( 24c04)... pls help me out.. mine is not working.. it is urgen..
    thanx...
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Hi,

    Like ways to skin cats, there are many ways to work with external devices using microprocessors. What kind of code have you written so far? What is the problem you are having with using the serial eprom?
     
  3. sci-3d

    Well-Known Member

    Aug 22, 2006
    51
    0
    ๊Unfortunately, I have only C Code interfacing 24lc512 EEPROM and the 80c51.
     
  4. Papabravo

    Expert

    Feb 24, 2006
    9,898
    1,722
    This is a nearly trivial task. You break down the waveforms required by the datasheet of the 24C04. Then you pick a couple of port pins on the 89C51 and you make those port pins behave like the pictures in the datasheet. With respect to the timing diagrams you can always go slower but not faster.

    For the 80C51 architecture you want to concentrate on the instuctions which set and clear individual bits, and the no operation instruction to space things out a bit.

    Code ( (Unknown Language)):
    1.  
    2. setb -- set a bit to a 1.  This is a read-modify-write instruction
    3. clr  -- clear a bit to 0.  This is a read-modify-write instruction
    4. nop  -- no operation
    5.  
    The feeling of accomplishment you'll get from doing this on your own is well worth the effort.
     
  5. kris

    Thread Starter New Member

    Dec 4, 2006
    2
    0
    thank u all...
     
  6. moxi_sos

    New Member

    Dec 5, 2006
    1
    0
    hey i ve the c code for the serial eeprom using i2c technlogoy. it uses the normal port pins as a i2c wires. its workin all fine!!!
     
  7. ravikumar

    New Member

    Sep 17, 2007
    1
    0
    hey i ve the c code for the serial eeprom using i2c technlogoy. it uses the normal port pins as a i2c wires. its workin all fine!!!
    hello sir,
    can u send the c/asm code for the serial eeprom using i2c technlogoy as it is required for my project, as it is one of the part of the project.
    mailid: ravikumar@easunreyrolle.net

    waiting for the reply,
    Ravikumar
     
  8. saahilgoyal

    New Member

    Sep 4, 2007
    1
    0
    plz provide me the same... universal_fren@yahoo.com

    I am building a prepaid energy system that uses two systems of Prepayement...

    1. Is Smart Card ( EEPROM model )
    2. Communication to Server where a Prepaid Card no. is Transmitted and Server sends the balance to meter .
    Is it possuible ?
     
Loading...