Hi

I had a similar problem with a 12F683. Read Bruce's reply to my thread "12F683 Startup" posted on March 17. Look and compare both chips, I believe they have similar features. If they do, I would replace your settings with his.

A couple things I see missing are: OPTION_REG.7 = 0 'Enable internal p/u's., ANSEL = 0 'If all digital inputs, CMCONO = 7 'Comparators off. Also your internal pullups don't match your TRIS settings, pullups only on inputs.

Are you properly interfacing the output pin to the load? I believe 20ma. max.

Hope this helps.

Greg