|
|
|
|
|
|
In many ways the EEPROM (electrically erasable read only memory) is more like a RAM to program than an EPROM. In keeping with my decision to talk of the 2764, I shall direct all my comments about the EEPROM to the 8K x 8 bit variant, namely the 28C64 device. All that is necessary to do to relate to other size variants is to re-allocate my pin definitions. To READ from the EEPROM all you do is treat it like a RAM. Set up the correct address on the address bus, keep /WR on pin 27 high, take both /OE on pin 22 and /CE on pin 22 LOW. The byte from the memory will now appear on the Data Bus. To PROGRAM the EEPROM all you have to do is the following: a) Set up the address b) Set up the data needed on the data bus c) Enable the chip with /CE on pin 20 taken LOW d) Take the OUTPUT enable HIGH e) Take the WRITE line on pin 27 LOW for the prescribed time. f) Select the next address and set up the next byte of data to be written... and that�s it! NOTE!! The write cycle of EEPROMS varies considerably, therefore I recommend that the complete WRITE CYCLE including time LOW plus the time high until the next pulse goes low, should be no shorter than 6mS. Some devices can take a much quicker cycle than this, but if you want to make sure your unit is �universal� then 6mS is probably the best value to choose.
One last point about programming EEPROMS in an �automated� programmer is to remember that the devices will only take about 100,000 programming cycles before they fail... Sounds a lot? But remember that if anything goes wrong with the programmer when your device is in-circuit then your expensive EEPROM may well be history. To avoid this, the site EEPROM programmer uses several hardware �interlocks� to try and stop the device being �accidentally� programmed over and over again if things go wrong! So why ever use EPROMS instead of EEPROMS if the later are so good? Well, I guess the answer is down to cost in the end. At the moment of writing, EEPROMS are a lot more expensive than EPROMs, and there always seem to be EPROMS available in old equipment for pennies! Happy Programming! |