I have a problem when using this oscillator code:
<b>
poke $19,%00000111
poke $85,%00000100
high 0
asm bsf RP0
call 03ffh
movwf OSCCAL
bcf RP0
endasm
</b>
I need pin 0 to be high right off the start. If I use the ASM code anywhere other than the very front of the program the program will not run. I sort of suspected the ASM code had to be in the front, but moved it around to experiment a bit.
So, how can I make pin 0 high at the beginning and still calibrate the internal oscillator?
I'm stumped. I've spent most of the afternoon trying to come up with the solution.
Thanks.
Bart
Bookmarks