NewGeek
New Member
I have a bit of code that I have been going over and over again to find a problem. Im sure the logic is correct. Every time it gets to a particular point in the program, it resets.
I am controlling an LCD, and using a switch to toggle through screens. The first screen is a "hello" screen, and I programmed it intentionally so that once you toggle off the first hello screen, you cannot toggle back to it.
After a point in the program, it takes me back to hello, this is how I know the PIC is resetting.
I thought it might be the Watchdog timer, but I put this line at the beginning to disable:
__config _HS_OSC & _WDT_OFF & _PWRTE_ON
This is a PIC16F84a
What are some common things to look for when the pic is resetting itself?
Thanks
I am controlling an LCD, and using a switch to toggle through screens. The first screen is a "hello" screen, and I programmed it intentionally so that once you toggle off the first hello screen, you cannot toggle back to it.
After a point in the program, it takes me back to hello, this is how I know the PIC is resetting.
I thought it might be the Watchdog timer, but I put this line at the beginning to disable:
__config _HS_OSC & _WDT_OFF & _PWRTE_ON
This is a PIC16F84a
What are some common things to look for when the pic is resetting itself?
Thanks