Programming to external EEPROM

Hello. I need some help.
I'm trying to write, read and erase an external EEPROM (25AA040 MICROCHIP) via SPI from XC164CS board, for example, one byte at 0x00 adress of the eeprom, but i don't know how to do it.
Into the datasheet, I can see some instructions but i don't know what to do with them:
img28.imagevenue.com/img.php
Could anyone help me?
Thank you very much. :)

Parents
  • I never worked with SPI but rather with I2C, so I don't know for sure. I think that your datasheet might tell you what you need to place on the data bus and what you need to place on the address bus in order to communicate with your device. A simple assignment into a memory mapped region will get the job done.

Reply
  • I never worked with SPI but rather with I2C, so I don't know for sure. I think that your datasheet might tell you what you need to place on the data bus and what you need to place on the address bus in order to communicate with your device. A simple assignment into a memory mapped region will get the job done.

Children
More questions in this forum