HI,
MY old ISA 486 COmpaq shortcircuited in the psu and it killed my EPROM-burner (Sunshine 4C) as well.
So I plan to build a new EPROM-reader using a 2650 MEGA and do the strapping depending on the EPROM-type (2716 - 27512) on a breadboard. (port A data , port B and C = addresses , port D = control).
I want to control the 2560 by sending external Commands to it.
EG:
A 0000 --> Set READ address
C 0,1 --> Set /OE and /RE = 0 and 1 or C 0,0
R --> READ DATA
Reading the Command line from the EXTERNAL PC is not a proplem :
char inChar;
String inString = "";
(* part of LOOP *)
while (Serial.available() > 0)
{
inChar = Serial.read();
if (inChar != '\n')
{
inString += inString;
}
else
{..... }
inString = "";
}
From here I am stuck:
I want to check if inString[0] is a valid command (= A,C,R) and afterwards I want to check if
instring[1] is a valid delimiter [" " or ","] / (space or comma ) and then check if the next input(s) are valid hex-digits and in the C command the /OE and /RD are separated by a valid delimiter .
Tried to copy several of the examples given in these pages, but the results a not good (for me anyway!)
So how Do I do that ?
Kristian aka Snestrup2016