0
\$\begingroup\$

If I have an EEPROM 1K X 16, can I erase bit by bit or just word by word (2 bytes/16 bits) in my matrix of registers ? In digital systems - TOCCI, the EEPROM is modeled by a matrix of registers, each with a flip-flop set. So the question is EEEPROM can clear just the registers, i.e a set o FFs or the memory word, or can clear bit by bit (each FF).

** note that my question don't depend on datasheet but only from the principle of building an EEPROM as a set of registers as TOCCI reference. So it's just possible to clear register-by-register (word-by-word) instead of flip-flop-by-flip-flop (bit-by-bit)

\$\endgroup\$
7
  • 1
    \$\begingroup\$ What does the datasheet say? \$\endgroup\$ Commented Oct 8, 2021 at 17:35
  • \$\begingroup\$ Please edit your question and greatly improve it. Show your own work and own findings so far in considerable detail. [Edited by a moderator.] \$\endgroup\$
    – TonyM
    Commented Oct 8, 2021 at 17:37
  • \$\begingroup\$ This question can't be answered without knowing which EEPROM is being used. \$\endgroup\$
    – Justme
    Commented Oct 8, 2021 at 18:57
  • 2
    \$\begingroup\$ EEPROM is typically word erase, in your case 16 bits, but the logic could offer a bit erase... which is actually a read-modify-write, what is your question? \$\endgroup\$
    – Jeroen3
    Commented Oct 8, 2021 at 19:20
  • 1
    \$\begingroup\$ Note that "erase by bit" isn't even meaningful. The entire difference between an erase and a write is that erase affects a fixed block with a fixed pattern. When the block shrinks to a single bit, the distinction ceases to matter, and the device would be called NVRAM not PROM. \$\endgroup\$
    – Ben Voigt
    Commented Oct 8, 2021 at 23:16

1 Answer 1

1
\$\begingroup\$

EEEPROM can clear just the registers, i.e a set o FFs or the memory word, or can clear bit by bit (each FF).

Word by word only. To clear a bit, you must read the entire EEPROM word into RAM, erase the entire EEPROM word, change that bit in the copy in RAM, write the edited word from RAM back into the EEPROM.

\$\endgroup\$
1
  • 2
    \$\begingroup\$ If you happen to be only changing bits from 1 to 0, you can skip the erase step. \$\endgroup\$
    – Hearth
    Commented Oct 9, 2021 at 5:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.