Go Down

Topic: help Reading/Writing from/to EPROMs (Read 208 times) previous topic - next topic

1Proxy0

Jun 11, 2018, 05:05 pm Last Edit: Jun 12, 2018, 04:22 pm by 1Proxy0
EDIT: problem solved, i should stop being so damn lazy.

also how do i delete threads, this has served it's purpose

NoraTheDoggo

lastly, am i even allowed to just ask for programs like this? since i don't really have time or knowledge to do it myself.
I'm also not sure if this is the correct part of the forum to ask this... oh well, any help is appreciated.
Technically you are not.
I would help if I could but I am just as new to EEPROM as you, but you might get some helpful advice here.
If you want someone to write a code for you, go to AUG. Arduino User Group. Thay will help, but you will have to pay for it.
My advice learn about it on example sketches.
I like cooking children and Arduinos
Is not the same as: I like cooking, children, and Arduinos
Grammar matters!

ieee488

I'm also not sure if this is the correct part of the forum to ask this... oh well, any help is appreciated.
post your paying gig in https://forum.arduino.cc/index.php?board=26.0



.

ieee488


1Proxy0

then i guess i will have to learn how to write it myself, as paying money for a single program seems silly.

time to do a deep search of StackOverflow.

thanks anyways, have a nice day.

1Proxy0

ok so maybe instead someone could help me debug my code?

for some reason i don't get any output on the Serial Monitor,

Code: [Select]
void setup() {
  DDRA = 0xFF;
  DDRC = 0xFF;
  DDRL = 0x00;
  Serial.begin(19200);
  pinMode(2, INPUT);

}

void loop() {
  FAIL:
  if (digitalRead(2) == LOW){
    goto FAIL;
    }
  for (word i=0;i<0xFFFF;i++){
  PORTA = lowByte(i);
  PORTC = highByte(i);
  delay(10);
  Serial.println(PORTL, HEX);
  delay(140);
  if (i == 0xFFFF){
    i = 0x0000;
    }
  }
exit(0);
}


and honestly, after reading about PORTs it was embarrassingly easy to write.

the pins on the Breadboard are all connected to the right Port (acording to the Mega2560 pinout)

still i get nothing on the Serial monitor, and then there is also the problem of HEX Values not having leading zeros.

Go Up