I connecting external eeprom to atmel 89C52 chip. How do I write c code so that I can write data memory to the chip while using the address lines and the rd wr on the chip.
Use an an address decoder to activate a chip select to the EEPROM and then wire up the ALE, RD, and WR lines as you would for SRAM. Reading is identical to SRAM. You never write to an EEPROM, you program it. Lookup the erase/program algs. for your part and write a driver. - Mark