Trouble using int. osc. On 18f2455
I m having trouble getting started with the 18f2455. I just upgraded to PBP 2.47 so I could work with USB pics . I have no problem programming other pics but I can only get this one to run with an external oscillator and even then it is sporadic and unreliable.
Here is the code I am trying to use to blink an LED :
define OSC 8
OSCCON=%01110010
loop:
High PORTA.1 'Turn on LED
Pause 500 ' Delay for .5 seconds
Low PORTA.1 'Turn off LED
Pause 500 ' Delay for .5 seconds
Goto loop ' Go back to loop and blink LED forever
End
I am using the melbas programmer and setting the oscillator to: INTHS, HS Used By USB
I have read PBP manual, the oscillator configurations section of the data sheet and tried to find something on this forum. I have also tried a bunch of other settings still no luck.
I have a feeling I am overlooking something simple. If anyone has a suggestion I would appreciate it
Thanks
-kyle