Quote Originally Posted by coyotegd View Post
I have this assembler code at the start of my program:

@ DEVICE HS_OSC, WDT_OFF, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_OFF

I'm quite certain the "WDT_OFF" turns the Timer off.
Yeah that's right, it does turn the tmier off.


The "HS_OSC" is my change because I have a 20Mhz xtal, and yes, I have "OSC 20" in my "PIC Basic" code.
It still sounds to me like the PIC is resetting or some other code elsewhere in your program is causing the output to go low on the pin you are using. Just for arguments sake, create a new program with just this code and try it out.


The other line items are "Boiler Plate" I've found looking around the Forum.
I've never heard the term "boiler plate" before so I'm not quite sure what you mean?

Cheers

Rob