How to Reset Osccal Value


Results 1 to 9 of 9

Threaded View

  1. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Pic2008 View Post
    Your syntax is wrong. Type the following in the code:

    OSCCAL = $30

    Hi,

    You sure ???


    From a µChip Datasheet ...

    2.2.2.7 OSCCAL Register
    The Oscillator Calibration register (OSCCAL) is used to
    calibrate the internal 4 MHz oscillator. It contains 6 bits
    to adjust the frequency up or down to achieve 4 MHz.
    The OSCCAL register bits are shown in Register 2-7.
    REGISTER 2-7: OSCCAL — OSCILLATOR CALIBRATION REGISTER (ADDRESS: 90h)

    Legend:
    R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
    - n = Value at POR ’1’ = Bit is set ’0’ = Bit is cleared x = Bit is unknown
    R/W-1 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 U-0 U-0
    CAL5 CAL4 CAL3 CAL2 CAL1 CAL0 — —
    bit 7 bit 0
    bit 7-2 CAL5:CAL0: 6-bit Signed Oscillator Calibration bits
    111111 = Maximum frequency
    100000 = Center frequency
    000000 = Minimum frequency
    bit 1-0 Unimplemented: Read as '0'
    Legend:
    R = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’
    - n = Value at POR ’1’ = Bit is set ’0’ = Bit is cleared x = Bit is unknown
    Alain
    Last edited by Acetronics2; - 31st August 2008 at 14:57.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. IC12F508 with Internal Oscillator and Software Reset
    By karan123 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd October 2009, 16:13
  2. pic reset sometimes
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 23rd January 2008, 17:27
  3. Software Driven Reset Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th April 2005, 00:53
  4. reset and interrupt vectors
    By dtoohey in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 28th February 2005, 22:02
  5. Replies: 5
    Last Post: - 1st December 2004, 12:49

Members who have read this thread : 1

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