As my code is ready & while verifying the code the Board is working fine for some time & then suddenly it is resetting itself.
As per my code it should switch the tasks according to the input from pins while switching between that it is resetting itself some times & it is working fine for some times.
Can you share your sketch with me?
I will try to do that with debugger.
#define SE1 0
#define SE2 1
#define RE1 8
#define RE2 9
LiquidCrystal lcd(12,11,10, 5, 4, 3, 2);
void loop()
{
lcd.blink();
delay(1000);
lcd.clear();
lcd.setCursor(2,0);
lcd.write("ADITYA INDIA");
lcd.autoscroll();
lcd.setCursor(2,1);
lcd.print("KAEDE");
lcd.print(s1);
lcd.print(s2);
lcd.print(s3);
lcd.print(s4);
lcd.print("GR KAEDE");
digitalWrite(PIN_LED0, HIGH);
digitalWrite(PIN_LED0, LOW);
if(SE1==0 & SE2==0)
digitalWrite(RE1, HIGH);
digitalWrite(RE2, LOW);
lcd.print("ADITYA");
}
else
digitalWrite(RE1, LOW);
digitalWrite(RE2, HIGH);
lcd.print(ADITYA);
THIS CODE IS SOME PART OF THE CODE & SOME TIMES WHILE SWITCHING FROM CONDITION TO CONDITION THE DISPLAY IS SHOWING SOME GARBAGE VALUES TOO OR IT IS RESTTING ITSELF
THE ABOVE STATED PROBLEM IS RESOLVED BY ME.
I FOUND SOME DRY SOLDERS OF PINS WHICH I CONNECTED THE DISPLAY PINS & I RESOLDERED IT SO THAT IT IS WORKING FINE.
FOR RESETTING OF BOARD WHILE SWITCHING BETWEEN TASKS I JUST ADDED SOME MORE DELAY FOR IT & THEN IT IS WORKING FINE NOW.