WDT timer "resets" PIC to code beginning. Put clear right after you declare your variables so they exist as a ram location, and they should clear, better you should simply zero them in code specifically as opposed to using the shotgun approach (clear).
Bookmarks