Or, include in your source code: org 0x3FF retlw 0x80 To provide a dummy value to send to the OSCCAL. Bob Ammerman RAm Systems ----- Original Message ----- From: "John Hansen" To: Sent: Friday, January 09, 2004 12:27 PM Subject: Re: [PIC]: Calibration of 12F675 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: >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 > >It4s possible to get through that? > >Regards >EkeN > > >-- >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. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.