12f629 config settings


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    As the PIC is being manufactured, a laser is used to trim the RC components to establish the nominal frequency of the internal oscillator. The final step is to test it and write a calibration offset value to the highest location in memory. The Define OSCCAL instruction fetches that factory calibration value and plugs it into the OSCCAL register.

    AS long as you do not erase the value, this can be done each time the chip starts up. The melLabs programmers can be set so the calibration value does not get erased. If it does get erased, you can set OSCCAL by measuring the frequency and inputting the necessary offset. To do this you need to configure for the internal oscillator with clock out.

    You should perform the calibration whenever using time critical functions like RS232.

  2. #2


    Did you find this post helpful? Yes | No

    Default Spot On!!

    Thanks again Dave that explains it perfectly :-)

    Are there fast methods to determine the oscal as well as the current fuse setting of the pic by command line or otherwise ?

    Dennis

  3. #3
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    No. The configuration word is only accessible during programming. See section 9.1 of the datasheet.

    Why would you need to see the OSCCAL value? Just make sure you have set the programmer so it does not erase the last word and use the Define to load it into the OSCCAL register. It would behoove you to actually read and digest the manual and datasheet before asking so many meaningless questions.

Similar Threads

  1. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 02:48
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd November 2008, 00:51
  3. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 18:20
  4. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 16:26
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 04:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts