Partial Writes to an EEPROM

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

The EEPROM component in PSoC Creator allows only to write one row (16 bytes) at a time to the EEPROM.  There is no provision to write less than 16 bytes to specific EEPROM locations.  For partial writes, we can read the complete EEPROM row into a RAM array, modify the desired locations and write the array back to the RAM.

   

Attached is an example project that shows how to perform a partial write to the EEPROM.

0 Likes
3 Replies
Anonymous
Not applicable

Here is an update to the project. I have created a function EEPROM_PartialWrite. Call this function to write partial data to any EEPROM address. The only limitation is that the function will not be able to write across row boundaries. ie, the address of the EEPROM to be written and the byte count should be within a 16 byte row and should not span two rows.

0 Likes
Anonymous
Not applicable

For some reason, attachments are not working.  Email me at psochacker@cypress.com if you need the project file.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Trying again to attach the project file.

   

-Ganesh