-
Notifications
You must be signed in to change notification settings - Fork 194
Open
Description
Hi,
I've received several EEPROMs from Ebay, but I'm only able to program one of seven AT28C256.
Of course these are weird fakes or old dead ones, but I have tried to software erase those or disable protection. No luck yet. Am I doing it right?
Docs:
CHIP erase - http://ww1.microchip.com/downloads/en/Appnotes/doc0544.pdf
Protection - http://ww1.microchip.com/downloads/en/Appnotes/DOC0543.PDF
unsigned long time;
void setup() {
pinMode(SHIFT_DATA, OUTPUT);
pinMode(SHIFT_CLK, OUTPUT);
pinMode(SHIFT_LATCH, OUTPUT);
digitalWrite(WRITE_EN, HIGH);
pinMode(WRITE_EN, OUTPUT);
Serial.begin(230400);
Serial.print("\nUnlocking EEPROM... ");
time = millis();
writeEEPROM(21845, 0xaa);
writeEEPROM(10922, 0x55);
writeEEPROM(21845, 0x80);
writeEEPROM(21845, 0xaa);
writeEEPROM(10922, 0x55);
writeEEPROM(21845, 0x10);
writeEEPROM(1, 0x55);
writeEEPROM(2, 0xaa);
writeEEPROM(32767, 0x55);
time = millis() - time;
Serial.print("...done in ");
Serial.println(time);
printContents();
writeEEPROM(1, 0x55);
}
It finished in 12 ms as I have reduced WRITE_EN cycle:
digitalWrite(WRITE_EN, LOW);
delayMicroseconds(1);
digitalWrite(WRITE_EN, HIGH);
delay(1);
Any thoughts?
Metadata
Metadata
Assignees
Labels
No labels