You are here

Writing a single byte or an array in EEPROM | Cypress Semiconductor

Support & Community

Writing a single byte or an array in EEPROM

Last Updated: December 28, 2011

Can we write EEPROM one byte once?


EEPROM architecture doesn’t allow partial writes. It only supports writing into an entire row (16 bytes). Hence in order to modify only one byte or an array, follow the steps given below-

  • Find the address of the concerned byte (starting address in case of an array).

  • Calculate the row in which the byte or array is located.

  •  Read back the entire row (Read back can be done in same way as reading SRAM).

  •  Modify only the required locations.

  •  Program the entire row with only the concerned locations modified (using EEPROM API’s).


Note: in case of an array of size more than 16 bytes or if the array spans over two rows, the steps mentioned above should be repeated for the remaining rows also.

Knowledge Base Tags: 

Provide feedback on this article

Browse KB By Product

Browse KB by Type