What about PCLATH? ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@cognivis.com, http://www.cognivis.com here is my code similar to the template that is stuck in a loop! ORG 0x00 ; processor reset vector CLRF PCLATH ; ensure page bits are cleared GOTO main ; go to beginning of program main = 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 CALL InitializeAD ; I am trying to simulate using MPLAB. And it's not a OTP. Thanks, Matt ____________________________________________________________________ Get your own FREE, personal Netscape WebMail account today at http://home= =2Enetscape.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