Searching \ for '[PIC]: Calibration of 12F675' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'Calibration of 12F675'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: Calibration of 12F675'
2004\01\09@121742 by =?iso-8859-1?Q?=C5ke_Neehr?=

picon face
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.

2004\01\09@123156 by John Hansen

picon face
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}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

2004\01\09@133434 by Bob Ammerman

picon face
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 removed}

2004\01\09@190628 by Hopkins

flavicon
face
This code works ok in MPLAB 6.4 - may be time to down load this version of
MPLAB
:-)
*************************************************

Roy Hopkins

spam_OUTrdhopkinsTakeThisOuTspamihug.co.nz

*************************************************

{Original Message removed}

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...