Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleEEPROM Page Size = 64 => ((AddrHigh + AddrLow)%64) < size

From EEPROM 24LC128 Microchip Manual:

"Page write operations are limited to writing bytes within a single physical page, regardless of the number of bytes actually being written. Physical page boundaries start at addresses

that are integer multiples of the page buffer size (or ‘page size’) and end at addresses that are integer multiples of [page size - 1]. If a Page Write command attempts to write across a

physical page boundary, the result is that the data wraps around to the beginning of the current page (over-writing data previously stored there), instead of being written to the next page,

as might be expected. It is, therefore, necessary for the application software to prevent page write operations that would attempt to cross a page boundary."From EEPROM 24LC128 Microchip Manual.

This section imply that this the following condtion should be true for to realize a correct write operation: ((AddrHigh + AddrLow)%64) < size.

The ((AddrHigh + AddrLow)%64) is the remainder of ((AddrHigh + AddrLow)/64) operation.

...