mirror of
https://github.com/TomNisbet/TommyPROM.git
synced 2024-12-22 09:29:38 +00:00
Remove unused methods; update PCB photo
This commit is contained in:
parent
b618f46ca3
commit
a9a9ac3a28
@ -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.
|
// Erase all sectors containing the specified address range.
|
||||||
bool PromDeviceSST39SF::erase(uint32_t start, uint32_t end)
|
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(0x55, 0x2aaa);
|
||||||
setByte(0xa0, 0x5555);
|
setByte(0xa0, 0x5555);
|
||||||
|
|
||||||
|
|
||||||
setAddress(address);
|
setAddress(address);
|
||||||
setDataBusMode(OUTPUT);
|
setDataBusMode(OUTPUT);
|
||||||
writeDataBus(value);
|
writeDataBus(value);
|
||||||
|
|
||||||
//enableChip();
|
|
||||||
delayMicroseconds(1);
|
delayMicroseconds(1);
|
||||||
enableWrite();
|
enableWrite();
|
||||||
delayMicroseconds(1);
|
delayMicroseconds(1);
|
||||||
@ -236,7 +197,6 @@ void PromDeviceSST39SF::eraseSector(uint32_t addr)
|
|||||||
{
|
{
|
||||||
disableOutput();
|
disableOutput();
|
||||||
disableWrite();
|
disableWrite();
|
||||||
|
|
||||||
setDataBusMode(OUTPUT);
|
setDataBusMode(OUTPUT);
|
||||||
enableChip();
|
enableChip();
|
||||||
setByte(0xaa, 0x5555);
|
setByte(0xaa, 0x5555);
|
||||||
@ -245,7 +205,7 @@ void PromDeviceSST39SF::eraseSector(uint32_t addr)
|
|||||||
setByte(0xaa, 0x5555);
|
setByte(0xaa, 0x5555);
|
||||||
setByte(0x55, 0x2aaa);
|
setByte(0x55, 0x2aaa);
|
||||||
setByte(0x30, addr & 0xfffff000);
|
setByte(0x30, addr & 0xfffff000);
|
||||||
delay(25);
|
delay(28);
|
||||||
disableChip();
|
disableChip();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,8 +21,6 @@ class PromDeviceSST39SF : public PromDevice
|
|||||||
PromDeviceSST39SF(uint32_t size, word unsigned maxWriteTime, bool polling);
|
PromDeviceSST39SF(uint32_t size, word unsigned maxWriteTime, bool polling);
|
||||||
void begin();
|
void begin();
|
||||||
const char * getName() { return "SST39SF series NOR Flash"; }
|
const char * getName() { return "SST39SF series NOR Flash"; }
|
||||||
void disableSoftwareWriteProtect();
|
|
||||||
void enableSoftwareWriteProtect();
|
|
||||||
bool erase(uint32_t start, uint32_t end);
|
bool erase(uint32_t start, uint32_t end);
|
||||||
|
|
||||||
|
|
||||||
|
BIN
docs/images/TommyPROM-pcb-with-microcode-500.jpeg
Normal file
BIN
docs/images/TommyPROM-pcb-with-microcode-500.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 113 KiB |
BIN
docs/images/TommyPROM-pcb-with-microcode.jpg
Normal file
BIN
docs/images/TommyPROM-pcb-with-microcode.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.5 MiB |
@ -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
|
[KiCad design files](https://github.com/TomNisbet/TommyPROM/tree/master/schematics) are in
|
||||||
the project repo.
|
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
|
## Compiling
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user