EEPROM Reading/Writing without Use of Programmer

digital-logiceepromnon-volatile-memory

I am designing a small password based door lock project which is fully made from logic gates and ICs without the use of any sort of programmable devices(it is a simple university project for the Logic Design Course).

And as assigned to me, I need a non volatile memory for this lock in order to store the password, return its value and rewrite it whenever I want. I first thought of EEPROMs but many told me that an EEPROM should be removed from the circuit in order to be reprogrammed which is not acceptable_the memory of the circuit should stay inside the circuit with respect to my project. In addition I was told that the EEPROM is only reprogrammed through a PROGRAMMER.

Here is my problem:
How I could implement the EEPROM so that I can read/write to it data without removing it? that's to say my own circuit should be able to read and write to the EEPROM without using a PROGRAMMER .
So is this possible? Is there a way for such implementation? Or should I think of another non volatile memory other than the EEPROM to store, read and rewrite the password? If there is another way, please let me now.

Any help is appreciated. I am really a beginner.

Best Answer

What you've been told about EEPROM's is ancient history. Modern EEPROM's are readily programmable in-circuit. You should read some datasheets of "typical" EEPROM IC's in order to understand how to use them; if you have any detailed questions, you can ask them here (in a new question).

The easiest way to find examples of EEPROM IC's is to search the websites of some of the major electronics vendors; the three that spring to my mind are Element14, Digikey and Mouser, but there are others as well.

There are two types, serial and parallel. Serial use 2-4 wires to signal data serially. Parallel use 8-16 wires for data, up to 20-odd wires for address and 3 or so for control.

Within the serial options, there are SPI and I2C. Given that you're using hardwired logic, I'd very much avoid I2C. SPI would be manageable though.

EEPROM datasheets generally give a thorough explanation of the low-level protocol required to read and write them.

My advice off the top of my head is that a something like a 25LC040 SPI EEPROM would be feasible.