Please see the program listing below. Now the problem is that the program re-executes even tho it is not supposed to. When power is applied, the oscillator starts and the program executes as it is supposed to. At the end, the oscillator stops for about 30 seconds, then starts again. I turned the Watchdog timer off thinking that would prevent it from starting again, but that did not work. If I wait long enuf, the program will re-execute and the process repeats (except the oscillator does not stop) as long as the power is left on. When I remove power and re-apply, the oscillator stops; the chip is dead. If I leave power off over night and try again, it will work again. All three port outputs are connected to LEDs. Eventually I will use port4 to turn the power off which will prevent this problem, but I would like to know why it works this way. Evidently, either the program, assembler, or IC is flaky. Or maybe it is the fact that I am using a breadboard?

@ DEVICE WDT_OFF
LED VAR BYTE

PORTB = %00000000
TRISB = %1101100

PORTB.4 = 1 'enable V reg
pause 3000 'wait 3 seconds
for LED = 1 to 5
PORTB.0 = 1
PAUSE 63 'turn on LEDs for 63 milliseconds
PORTB.0 = 0
pause 63 'turn off LEDs for 63 milliseconds
next LED
PORTB.1 = 1
PAUSE 5000 'turn on sound for 5 seconds
PORTB.1 = 0
PORTB.4 = 0 ' TURN OFF POWER
end