I²C Page Write

Get ready to drink from the fire hose…

An I²C page write is used to write a stream of 64 bytes to the device (some devices might have different page sizes).

i2c-page-write.png

EEPROM Page Write Procedure

  1. Check for bus idle
  2. Send start condition, wait for it to complete
  3. Write control byte (with device address)
  4. Check for bus idle
  5. Write high byte of memory address
  6. Check for bus idle
  7. Write low byte of memory address
  8. Check for bus idle
  9. Write byte of data
  10. Check for bus idle - go to 9 until 64 bytes written
  11. Send stop condition, wait for it to complete
  12. Wait for write cycle to complete (ACK from EEPROM)