Hacker News new | ask | show | jobs
by peteey 3199 days ago
EEPROM allows you to write individual bytes. Flash requires you to write many bytes (~256) at once.

Some flash chips compensate by including a small amount of RAM to handle read-modify-write operations.

1 comments

Flash doesn't always require writing many bytes at once, only erasing many bytes at once. Erasing means setting all the bits in a block to 1 (0xff). It's often possible to write individual bytes, although there's no way to switch a bit from 0 to 1 without erasing the whole block.
Technically correct... the best kind of correct? :)
It's actually a really useful characteristic to keep in mind. If you're writing logs, for example, writing the same block multiple times gives you:

* faster writes

* lower peak power consumption

* lower flash wear

* less chance of data corruption should power fail mid-write