I am now resetting using "asm volatile (" jmp 0"); and it works but I would like to leave the variables as is. I want to leave the LCD backlight off. I can supply the code if necessary.
Thanks, Bill
I am now resetting using "asm volatile (" jmp 0"); and it works but I would like to leave the variables as is. I want to leave the LCD backlight off. I can supply the code if necessary.
Thanks, Bill
essentially it would be as if you hit the reset button. Remember the Arduino code is at a very high level, abstracting much of the hardware and even code from the developer, the typical developer using "Wiring" to code the arduino is not even close to the machine. The watchDog Timer will trigger a reset by entering into a defined address and executing the code found there, this is all explained in the linked article I provided. It is not quite the same as powering off then on, but it is as close to hitting the reset button as you can get.
essentially it would be as if you hit the reset button. Remember the Arduino code is at a very high level, abstracting much of the hardware and even code from the developer, the typical developer using "Wiring" to code the arduino is not even close to the machine. The watchDog Timer will trigger a reset by entering into a defined address and executing the code found there, this is all explained in the linked article I provided. It is not quite the same as powering off then on, but it is as close to hitting the reset button as you can get.
It seems that watchdog timer, Interrupt, reset button, and asm volatile (" jmp 0") , will do the same thing except that watchdog timer and Interrupt sends code execution to a specified place. Also the interrupt requires a physical connection. Maybe I should add a MC switch on the reset pin? The case is already built but that is also a possibility. Please also see my response to shabaz.
Bill