Remove unused methods; update PCB photo

This commit is contained in:
Tom Nisbet 2022-11-24 22:27:58 -05:00
parent b618f46ca3
commit a9a9ac3a28
5 changed files with 2 additions and 44 deletions

View File

@ -45,43 +45,6 @@ void PromDeviceSST39SF::begin()
}
// Write the special six-byte code to turn off Software Data Protection.
void PromDeviceSST39SF::disableSoftwareWriteProtect()
{
disableOutput();
disableWrite();
enableChip();
setDataBusMode(OUTPUT);
setByte(0xaa, 0x5555);
setByte(0x55, 0x2aaa);
setByte(0x80, 0x5555);
setByte(0xaa, 0x5555);
setByte(0x55, 0x2aaa);
setByte(0x20, 0x5555);
setDataBusMode(INPUT);
disableChip();
}
// Write the special three-byte code to turn on Software Data Protection.
void PromDeviceSST39SF::enableSoftwareWriteProtect()
{
disableOutput();
disableWrite();
enableChip();
setDataBusMode(OUTPUT);
setByte(0xaa, 0x5555);
setByte(0x55, 0x2aaa);
setByte(0xa0, 0x5555);
setDataBusMode(INPUT);
disableChip();
}
// Erase all sectors containing the specified address range.
bool PromDeviceSST39SF::erase(uint32_t start, uint32_t end)
{
@ -149,12 +112,10 @@ bool PromDeviceSST39SF::burnByte(byte value, uint32_t address)
setByte(0x55, 0x2aaa);
setByte(0xa0, 0x5555);
setAddress(address);
setDataBusMode(OUTPUT);
writeDataBus(value);
//enableChip();
delayMicroseconds(1);
enableWrite();
delayMicroseconds(1);
@ -236,7 +197,6 @@ void PromDeviceSST39SF::eraseSector(uint32_t addr)
{
disableOutput();
disableWrite();
setDataBusMode(OUTPUT);
enableChip();
setByte(0xaa, 0x5555);
@ -245,7 +205,7 @@ void PromDeviceSST39SF::eraseSector(uint32_t addr)
setByte(0xaa, 0x5555);
setByte(0x55, 0x2aaa);
setByte(0x30, addr & 0xfffff000);
delay(25);
delay(28);
disableChip();
}

View File

@ -21,8 +21,6 @@ class PromDeviceSST39SF : public PromDevice
PromDeviceSST39SF(uint32_t size, word unsigned maxWriteTime, bool polling);
void begin();
const char * getName() { return "SST39SF series NOR Flash"; }
void disableSoftwareWriteProtect();
void enableSoftwareWriteProtect();
bool erase(uint32_t start, uint32_t end);

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -59,7 +59,7 @@ the chips for a SAP-1 TTL breadboard computer. The
[KiCad design files](https://github.com/TomNisbet/TommyPROM/tree/master/schematics) are in
the project repo.
[![TommyPROM PCB](images/TommyPROM-pcb-with-ui-500.jpg)](images/TommyPROM-pcb.jpg)
[![TommyPROM PCB](images/TommyPROM-pcb-with-microcode-500.jpg)](images/TommyPROM-pcb.jpg)
## Compiling