Long shot but maybe the 'Factory Calibration' value is missing. This should be a RETLW command in the last word of the device. Long thread some time back explaind how it gets trashed on a UV-erase and how to recalibrate the PIC if it was erased. Oliver. ----- Original Message ----- From: Matt Willman To: Sent: Wednesday, September 20, 2000 6:42 PM Subject: [PIC]: 12c672 using internal oscillator? > > I want to use the internal oscillator for the 12c672 and using the template > code that I found on Micrchip's website my code runs in a continuous loop! > What do I need to do to correct this problem? > > This is the template code: > > ; these first 4 instructions are not required if the internal oscillator is > not used > MAIN CODE > start > call 0x7FF ; retrieve factory calibration value > bsf STATUS,RP0 ; set file register bank to 1 > movwf OSCCAL ; update register with factory cal > value > bcf STATUS,RP0 ; set file register bank to 0 > > > ; remaining code goes here > > > The "call 0x7FF" sends my code in a loop. Am I suppoed to supply something > else to the code or what? > or do I even need this line of code? > > Please help. > > Thanks, > Matt > > > > > ____________________________________________________________________ > Get your own FREE, personal Netscape WebMail account today at http://home.netscape.com/webmail > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics