Question about plug-and-play EEPROM
DiablodeMorte
Posts: 238
Hello everybody,
I have a fairly simple question to ask you all: Is it ok for me to unplug/plug an eeprom into the basic stamp while it is running. Ie, I want to be able to have the Basic Stamp running(And power flowing) and I want to be able to disconnect Eeprom1, and reconnect eeprom2. I then want the basic stamp to read from eeprom2. Is that possible w/o unplugging power, unconnecting eeprom1, connecting eeprom2, and reconnecting power?
I have a fairly simple question to ask you all: Is it ok for me to unplug/plug an eeprom into the basic stamp while it is running. Ie, I want to be able to have the Basic Stamp running(And power flowing) and I want to be able to disconnect Eeprom1, and reconnect eeprom2. I then want the basic stamp to read from eeprom2. Is that possible w/o unplugging power, unconnecting eeprom1, connecting eeprom2, and reconnecting power?
Comments
The BS2 is probably robust enough to do that -- IF you set the data and clock pin you'll use to access the eeprom as INPUT.
The question comes -- how will you pull out the eeprom? If you manage to short ground and Vdd together with the removal tool, this isn't going to work. Most 'hot plug' approaches connect the ground first, then Vdd, then any signal pins. But if any signal pins are set to high-impedance (with the INPUT keyword), it shouldn't be a problem if Vdd or Ground connects first. As long as you don't short the two together with some tool, of course.
If you must use an IC socket, use a zero-insertion force socket to minimize damage to the pins and have some kind of switch to remove power from the EEPROM socket for removal and insertion. This includes either disconnecting the SDA and SCL lines from the Stamp or somehow instructing the Stamp to ground them (the Stamp could also control the power to the socket).
Note, the way the eeprom is going to be inserted will be with lots of force but I'm planning on connecting the Eeprom to sometype of PCB w/ tab thingy.