When you are running this in the simulator, simply comment out the line:
call 0x3FF
and it should work fine. All this does is load the oscillator calibration value into the W register and return. Because the location doesn't have a return instruction when run in the simulator, it won't return, so your program hangs. You don't need an oscillator calibration with the simulator in any case, so you can just comment it out.
John Hansen
At 04:00 PM 1/9/2004 +0100, you wrote:
{Quote hidden}>Hello!
>
>When I tryed to run my PIC12F675 in
>MPLAB-SIM (5.70) the code stops to
>run in the programmed instruction for
>the internal oscillator.
>
>Accordingly after
>
>org 0x00
>bsf STATUS, RP0
>call 0x3FF
>movwf OSCCAL
>bsf STATUS, RP0
>
>It´s possible to get through that?
>
>Regards
>ÅkeN
>
>
>--
>
http://www.piclist.com hint: The PICList is archived three different
>ways. See
http://www.piclist.com/#archives for details.
--
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.