thanx for clearing that out
i have built a simple circuit to try and read what is on the uv eprom but the only thing i get is 0's, i used sn74ls166n by Motorola which is a parallel in,or serial in , serial out shift register i connected Q0-Q7 to the shift register parallel inputs, pulled clear hi, and the shift/load and clock inhibit and the serial in low, QH is connected to pin 12 of the arduino, pin 13 is connected to the clock, A0-A12 is connected to a dip switch array pulled low with 10k ohm resistor array.
see the code:
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); // open the serial port at 9600 bps:
pinMode(13, OUTPUT); //CLOCK
pinMode(12,INPUT); //QH OUTPUT
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(100); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(100); // wait for a second
int val =digitalRead(12); // read the input pin
Serial.print(val,OCT); // print the input pin
}