 
     PORTF = (byte)(i & 0xff);
     PORTK = (byte)(i >> 8);
-    
+
+    delay(1);
+
     byte data = PINL;
     printByte(data,"0x");
     Serial.print(" ");

  Serial.print(" ");
  Serial.println();
  Serial.println("done");
  
  while(1) {
  }


#define ROMSIZE 2048

void setup() {
  Serial.begin(115200);

  // we use direct port addressing to set the address bus and read
  // the data bus

  // setting PORTF to output (low byte of address bus)
  DDRF = 0xff;
  // setting PORTK to output (high byte of address bus)
  DDRK = 0xff;

  //set PORTL as input for the data bus
  DDRL = 0x00;

