We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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. :)
Is there any time to comply with this?
Not sure what you mean? The transmit interrupt is working on a pointer from the serial EEPROM driver that changes depending on what count it is on and what mode (read or write).
The driver is sending the command and address which is not it the data string you are passing. The transmit interrupt routine could be made simpler if you want to include the command and address in your data. It depends on what is more important to you, abstraction of your data from the driver or not.