On Mon, 4 Aug 1997 08:58:19 +0200 Johnny van Aardt writes: >Hi, > >I am new to PIC's and i need some help. I use a PIC 16c84. All PortB >lines >are used. >My problem is the following : > >I wrote a short program as shown below [program deleted] >Now : my problem is that the program keep starting from a address 0. >This >means it keeps on going thru init. You do not have CLRWDT instructions anywhere except in init. Once the program starts, the WDT will time out and reset the chip. Either place a CLRWDT in you main loop (placing it in the interrupt routine is generally not a good idea) or select WDT:Off on your programmer. A CLRWDT instruction does not permanantly disable the WDT, it only keeps it happy for a while. The only way to disable the WDT is to set the EEPROM fuse for it when you program the chip.