Quote Originally Posted by richard View Post
if you going to run it a 4mhz

then
CONFIG FOSC = INTIO67 instead of CONFIG FOSC = HSMP


and
OSCCON =$50

and
MainLoop:

HIGH LED1
PAUSE 500
LOW LED1
PAUSE 500 as dave said

Goto Mainloop

Thank for reply Richard ,

You are right , i used the default configuration and the led blink now , but as you can see this is a simple example. I want to use an external Xtal osc at 20 Mhz and from this point tried read the datasheet again for get the device working with external Xtal and frequency that i need .

Thanks a lot ,

Regards

Alex