Writing a single byte or an array in EEPROM
Anonymous
Not applicable
Jul 02, 2010
06:30 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Jul 02, 2010
06:30 AM
Question: Can we write EEPROM one byte once?
Answer:
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.
Labels
Rate this article:
Contributors
-
This widget could not be displayed.Anonymous