Hi
I have written some code for a PIC16F874A to write a test message to an LCD module. After the message is written, I have the command "goto $".
When I simulate the program in MPLAB, naturally, the "goto $" puts the program in an infinate loop.
However, when I put the program on to the pic, it just keeps resetting once it has written the message, which means it clears the screen, reinitialises the LCD and then writes the message, and then starts all over again and again. I have tried making other similar loops and adding a delay in the loop, but no matter what, I cant get the thing to enter an infinate loop. I have tried this with a PIC16F874 and it does the same, and i just cant figure out why.
does anyone have any ideas of how to get the thing to stop. Oh and the watch dog timer is switched off.
Any help please!!
- Mike
I have written some code for a PIC16F874A to write a test message to an LCD module. After the message is written, I have the command "goto $".
When I simulate the program in MPLAB, naturally, the "goto $" puts the program in an infinate loop.
However, when I put the program on to the pic, it just keeps resetting once it has written the message, which means it clears the screen, reinitialises the LCD and then writes the message, and then starts all over again and again. I have tried making other similar loops and adding a delay in the loop, but no matter what, I cant get the thing to enter an infinate loop. I have tried this with a PIC16F874 and it does the same, and i just cant figure out why.
does anyone have any ideas of how to get the thing to stop. Oh and the watch dog timer is switched off.
Any help please!!
- Mike