This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Accessing EEPROM of AT89S8252 using Assembly Language

hi!
i am using AT89S8252 microcontroller in one of my projects, where i have to store Passwords from user in EEPROM. I am using Keil Simulation software. I dont know how to access in-built EEPROM in AT89S8252 in assembly language. when i am using WCON, keil simulator gives error UNDEFINED SYMBOL. so plz help me out with example programs using EEPROM. Thank U.

Parents
  • I've had some example code a long time ago, sorry, I can't find it now.

    If register is not defined, define it yourself!
    Download MCU datasheet from atmel.com, open page with memory map, see the address of WCON and type
    WCON EQU addr

    That's it! it will work, I also had to manually define it in my code.

Reply
  • I've had some example code a long time ago, sorry, I can't find it now.

    If register is not defined, define it yourself!
    Download MCU datasheet from atmel.com, open page with memory map, see the address of WCON and type
    WCON EQU addr

    That's it! it will work, I also had to manually define it in my code.

Children