Quote Originally Posted by PICante View Post
Hi Ioannis,
Well the program is an example provided with the software compiled for 628A (I believe):
loop:
High 0 ' Turn on LED connected to PORTB.0
Pause 500 ' Delay for .5 seconds
Low 0 ' Turn off LED connected to PORTB.0
Pause 500 ' Delay for .5 seconds
Goto loop ' Go back to loop and blink LED forever
End
And the schematic is simple and the circuit works fine with “readymade” code so I guess its ok.
Thanks.
So that's the code that works. Can't help you with that...'cause...well...it works...

Post the code that doesn't work... Make sure it's compiling for the correct PIC, make double sure you're not compiling for, say, the 16F628, when you're actually programming a 16F628A, or something like that.