v0.2 updates
This commit is contained in:
parent
bef7264f2e
commit
dedd956461
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -367,7 +367,7 @@
|
|||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "test.net",
|
||||
"specctra_dsn": "",
|
||||
"specctra_dsn": "epromemu.dsn",
|
||||
"step": "",
|
||||
"vrml": ""
|
||||
},
|
||||
|
|
|
@ -940,11 +940,11 @@
|
|||
(uuid ee41cb8e-512d-41d2-81e1-3c50fff32aeb)
|
||||
)
|
||||
|
||||
(no_connect (at 107.95 82.55) (uuid 003c2200-0632-4808-a662-8ddd5d30c768))
|
||||
(no_connect (at 107.95 39.37) (uuid 08a7c925-7fae-4530-b0c9-120e185cb318))
|
||||
(no_connect (at 107.95 54.61) (uuid 0cc45b5b-96b3-4284-9cae-a3a9e324a916))
|
||||
(no_connect (at 163.83 31.75) (uuid 12422a89-3d0c-485c-9386-f77121fd68fd))
|
||||
(no_connect (at 107.95 80.01) (uuid 240e07e1-770b-4b27-894f-29fd601c924d))
|
||||
(no_connect (at 163.83 85.09) (uuid 2529037b-c325-4363-986c-2255714fc0c5))
|
||||
(no_connect (at 83.82 105.41) (uuid 25e5aa8e-2696-44a3-8d3c-c2c53f2923cf))
|
||||
(no_connect (at 163.83 64.77) (uuid 40165eda-4ba6-4565-9bb4-b9df6dbb08da))
|
||||
(no_connect (at 107.95 41.91) (uuid 4a4ec8d9-3d72-4952-83d4-808f65849a2b))
|
||||
|
@ -952,7 +952,6 @@
|
|||
(no_connect (at 107.95 34.29) (uuid 5528bcad-2950-4673-90eb-c37e6952c475))
|
||||
(no_connect (at 58.42 100.33) (uuid 609b9e1b-4e3b-42b7-ac76-a62ec4d0e7c7))
|
||||
(no_connect (at 107.95 87.63) (uuid 6b7c1048-12b6-46b2-b762-fa3ad30472dd))
|
||||
(no_connect (at 83.82 107.95) (uuid 6bf05d19-ba3e-4ba6-8a6f-4e0bc45ea3b2))
|
||||
(no_connect (at 58.42 102.87) (uuid 7afa54c4-2181-41d3-81f7-39efc497ecae))
|
||||
(no_connect (at 107.95 31.75) (uuid 7bbf981c-a063-4e30-8911-e4228e1c0743))
|
||||
(no_connect (at 163.83 34.29) (uuid 7d34f6b1-ab31-49be-b011-c67fe67a8a56))
|
||||
|
@ -961,11 +960,9 @@
|
|||
(no_connect (at 163.83 29.21) (uuid 8e06ba1f-e3ba-4eb9-a10e-887dffd566d6))
|
||||
(no_connect (at 83.82 102.87) (uuid a24ddb4f-c217-42ca-b6cb-d12da84fb2b9))
|
||||
(no_connect (at 83.82 100.33) (uuid a6ccc556-da88-4006-ae1a-cc35733efef3))
|
||||
(no_connect (at 58.42 107.95) (uuid b7867831-ef82-4f33-a926-59e5c1c09b91))
|
||||
(no_connect (at 163.83 87.63) (uuid beb96153-4e10-456b-9e02-e8a500f3755f))
|
||||
(no_connect (at 107.95 44.45) (uuid cbd8faed-e1f8-4406-87c8-58b2c504a5d4))
|
||||
(no_connect (at 58.42 105.41) (uuid e54e5e19-1deb-49a9-8629-617db8e434c0))
|
||||
(no_connect (at 107.95 85.09) (uuid ee27d19c-8dca-4ac8-a760-6dfd54d28071))
|
||||
(no_connect (at 107.95 77.47) (uuid f2c93195-af12-4d3e-acdf-bdd0ff675c24))
|
||||
|
||||
(wire (pts (xy 58.42 113.03) (xy 46.99 113.03))
|
||||
(stroke (width 0) (type default) (color 0 0 0 0))
|
||||
|
@ -1145,13 +1142,6 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "PGM_5V" (shape input) (at 212.09 107.95 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid 0e1ed1c5-7428-4dc7-b76e-49b2d5f8177d)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "A1_3V3" (shape input) (at 186.69 49.53 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid 0f31f11f-c374-4640-b9a4-07bbdba8d354)
|
||||
|
@ -1278,10 +1268,10 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "PGM_3V3" (shape input) (at 163.83 87.63 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(global_label "PGM_3V3" (shape input) (at 107.95 77.47 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid 2d67a417-188f-4014-9282-000265d80009)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 0 0 0)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 271.78 165.1 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
|
@ -1334,11 +1324,11 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "OE_5V" (shape input) (at 58.42 60.96 180) (fields_autoplaced)
|
||||
(global_label "CE_5V" (shape input) (at 58.42 60.96 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid 3a52f112-cb97-43db-aaeb-20afe27664d7)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 50.411 60.8806 0)
|
||||
(effects (font (size 1.27 1.27)) (justify right) hide)
|
||||
)
|
||||
)
|
||||
(global_label "A16_3V3" (shape input) (at 107.95 67.31 180) (fields_autoplaced)
|
||||
|
@ -1369,10 +1359,10 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "CE_3V3" (shape input) (at 163.83 85.09 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(global_label "CE_3V3" (shape input) (at 107.95 82.55 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid 477311b9-8f81-40c8-9c55-fd87e287247a)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 0 0 0)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 271.78 167.64 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
|
@ -1390,6 +1380,13 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "OE_3V3" (shape input) (at 186.69 107.95 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid 57f0421f-3182-45ac-9e15-58a61c1c4ca6)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 177.411 107.8706 0)
|
||||
(effects (font (size 1.27 1.27)) (justify right) hide)
|
||||
)
|
||||
)
|
||||
(global_label "A4_5V" (shape input) (at 212.09 97.79 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid 592f25e6-a01b-47fd-8172-3da01117d00a)
|
||||
|
@ -1411,6 +1408,13 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "PGM_3V3" (shape input) (at 83.82 107.95 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid 5c3e5f78-ef90-4d70-8cdd-4b04cdf56a3f)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at -80.01 20.32 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "A0_3V3" (shape input) (at 186.69 46.99 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid 5fc9acb6-6dbb-4598-825b-4b9e7c4c67c4)
|
||||
|
@ -1663,13 +1667,6 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "PGM_3V3" (shape input) (at 186.69 107.95 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid aa2ea573-3f20-43c1-aa99-1f9c6031a9aa)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "A12_3V3" (shape input) (at 186.69 102.87 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid aca4de92-9c41-4c2b-9afa-540d02dafa1c)
|
||||
|
@ -1677,6 +1674,13 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "PGM_5V" (shape input) (at 58.42 107.95 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid b0c5b296-e613-4e59-9f47-5ee9f52730e9)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 200.66 214.63 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "A11_5V" (shape input) (at 142.24 121.92 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid b5071759-a4d7-4769-be02-251f23cd4454)
|
||||
|
@ -1705,6 +1709,13 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "OE_3V3" (shape input) (at 107.95 85.09 180) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify right))
|
||||
(uuid babfac1c-26b5-435a-a802-d01ba7dc11f8)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 98.671 85.0106 0)
|
||||
(effects (font (size 1.27 1.27)) (justify right) hide)
|
||||
)
|
||||
)
|
||||
(global_label "A8_3V3" (shape input) (at 163.83 39.37 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid bd5408e4-362d-4e43-9d39-78fb99eb52c8)
|
||||
|
@ -1859,6 +1870,13 @@
|
|||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "OE_5V" (shape input) (at 212.09 107.95 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid e99c2bb4-7a57-4e26-8d0c-400dab99a963)
|
||||
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 69.85 -16.51 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
)
|
||||
(global_label "D5_3V3" (shape input) (at 83.82 35.56 0) (fields_autoplaced)
|
||||
(effects (font (size 1.27 1.27)) (justify left))
|
||||
(uuid ec5c2062-3a41-4636-8803-069e60a1641a)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
(via_costs 50)
|
||||
(plane_via_costs 5)
|
||||
(start_ripup_costs 100)
|
||||
(start_pass_no 19955)
|
||||
(start_pass_no 23085)
|
||||
(layer_rule F.Cu
|
||||
(active on)
|
||||
(preferred_direction horizontal)
|
||||
|
@ -68,6 +68,9 @@
|
|||
"kicad_default" "Via[0-1]_800:400_um-kicad_default"
|
||||
)
|
||||
(class default
|
||||
"unconnected-(U1-Pad21)" "unconnected-(U1-Pad25)" "unconnected-(U1-Pad26)" "unconnected-(U1-Pad24)" "unconnected-(U1-Pad27)" "unconnected-(U1-Pad34)" "unconnected-(U1-Pad11)" "unconnected-(U1-Pad8)"
|
||||
"unconnected-(U1-Pad7)" "unconnected-(U1-Pad6)" "unconnected-(U1-Pad5)" "unconnected-(U1-Pad4)" "unconnected-(U1-Pad3)" "unconnected-(U1-Pad2)" "unconnected-(U1-Pad46)" "unconnected-(U1-Pad47)"
|
||||
"unconnected-(U1-Pad48)" "OE_3V3" "unconnected-(U3-Pad12)" "unconnected-(U3-Pad13)" "unconnected-(U3-Pad14)" "unconnected-(U3-Pad6)" "unconnected-(U3-Pad7)" "unconnected-(U3-Pad8)"
|
||||
(clearance_class default)
|
||||
(via_rule default)
|
||||
(rule
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
54
src/main.cpp
54
src/main.cpp
|
@ -1,18 +1,21 @@
|
|||
#include <Arduino.h>
|
||||
|
||||
// forced to a 2mbit eprom
|
||||
//char buffer[256*1024];
|
||||
extern char buffer[69600];
|
||||
int addrPins[] = { 19,18,14,15,40,41,17,16,22,23,20,21,38,39,26,27,24,25 };
|
||||
int dataPins[] = { 10,12,11,13,8,7,36,37 };
|
||||
#define ROM_BUFFER_LEN (256*1024)
|
||||
char buffer[ROM_BUFFER_LEN];
|
||||
|
||||
int cePin = 34;
|
||||
int pgmPin = 33;
|
||||
int32_t inPins[] = { 19,18,14,15,40,41,17,16,22,23,20,21,38,39,26,27,24,25,34,35,30,31,-1 };
|
||||
int32_t outPins[] = { 10,12,11,13,8,7,36,37,-1 };
|
||||
|
||||
int32_t cePin = 30;
|
||||
int32_t pgmPin = 31;
|
||||
|
||||
void readFile()
|
||||
{
|
||||
#define BUFFLEN 1024
|
||||
char buff[BUFFLEN];
|
||||
const int length = 1024;
|
||||
char buff[length];
|
||||
|
||||
memset(buffer, 0, ROM_BUFFER_LEN);
|
||||
|
||||
size_t read = 0;
|
||||
size_t total = 0;
|
||||
|
@ -20,7 +23,8 @@ void readFile()
|
|||
|
||||
do
|
||||
{
|
||||
read = Serial.readBytes(buff, BUFFLEN);
|
||||
memset(buff, 0, length);
|
||||
read = Serial.readBytes(buff, length);
|
||||
total += read;
|
||||
if(read > 0)
|
||||
{
|
||||
|
@ -29,21 +33,21 @@ void readFile()
|
|||
}
|
||||
}
|
||||
while(read != 0);
|
||||
}
|
||||
|
||||
Serial.printf("Total read: %d\r\n", total);
|
||||
void setPinMode(int32_t* pins, int32_t direction)
|
||||
{
|
||||
for(int i = 0; pins[i] != -1; i++)
|
||||
pinMode(pins[i], direction);
|
||||
}
|
||||
|
||||
void setup()
|
||||
{
|
||||
for(int i = 0; i < 18; i++)
|
||||
pinMode(addrPins[i], INPUT);
|
||||
setPinMode(inPins, INPUT);
|
||||
setPinMode(outPins, OUTPUT);
|
||||
GPIO7_DR = 0;
|
||||
|
||||
for(int i = 0; i < 8; i++)
|
||||
pinMode(dataPins[i], OUTPUT);
|
||||
|
||||
//Serial.begin(115200);
|
||||
//while (!Serial.available());
|
||||
//readFile();
|
||||
Serial.begin(115200);
|
||||
}
|
||||
|
||||
void loop()
|
||||
|
@ -52,14 +56,18 @@ void loop()
|
|||
uint32_t io6 = GPIO6_DR;
|
||||
|
||||
uint32_t addr = (((io6 >> 16) & 0xFFFF) | ((io6 & 0x3000) << 4));
|
||||
//Serial.printf("Addr: %08X\r\n", addr);
|
||||
|
||||
// // get byte
|
||||
// get byte
|
||||
char b = buffer[addr];
|
||||
// Serial.printf("%02X\r\n", b);
|
||||
|
||||
// set data pins
|
||||
uint32_t outb = ((b & 0x0F) << 0) | ((b & 0xF0) << 12);
|
||||
//Serial.printf("Data: %08X\r\n", outb);
|
||||
uint32_t outb = 0;
|
||||
uint8_t ce = digitalReadFast(cePin);
|
||||
if(!ce)
|
||||
outb = ((b & 0x0F) << 0) | ((b & 0xF0) << 12);
|
||||
|
||||
GPIO7_DR = outb;
|
||||
|
||||
if(Serial.available())
|
||||
readFile();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue