Menu

osccal for 12f629/75?

Help
2008-09-24
2013-05-30
  • James E Sturdivant

    How do I do an osccal on a 12f629 or 112f675? Is there a particular command for it?

     
    • kent_twt4

      kent_twt4 - 2008-09-24

      Don't think there is a command.  If you had a way to measure the output, you can manually set the register.  You would have to set  the config for  _INTRC_CLCKOUT, then  set register OSCCAL = XXX (252 high, 128 mid, 0 low freq.) in your code.

      If you had a Pickit 2 programmer it can auto generate the OSCCAL.  Rescued a 12f675 once this way.

      Do you have two pics from the same batch?  Reading the good OSCCAL value and transferring to the bad might work in a pinch.

      There is an auto cal routine in the Pickit 1 lesson folder.   One could compile that in MPLAB, set up your input button per asm file, download, and press the button?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.