Writing internal calibration value


Closed Thread
Results 1 to 7 of 7
  1. #1

    Default Writing internal calibration value

    Hi all,

    In all 12F675 pics the internal oscilator calibration value is written inside the pic and every time we save a new program ( with IC-prog for example ) we have to choose NOT to overwrite it's value.

    I know that this value is different for each pic but when testing new code we have to re-program the same pic over and over again.

    My question:

    Is it possible ( and how ) to include in pbp's code the value so that IC-prog ( or any other ) adds the cal value ?

    .

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I think this may be what you are looking for.

    http://www.picbasic.co.uk/forum/show...SCCAL+register
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thanks mackrackit,

    With the link i found that i need to use the line:

    POKECODE @$3FF, $78 ( where $78 should be replaced with my setting )

    When using this with my pbp i get alot of error lines like :
    [218] Address limit of 3FFh Exceeded

    Did i miss something ?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ruijc View Post
    Thanks mackrackit,

    With the link i found that i need to use the line:

    POKECODE @$3FF, $78 ( where $78 should be replaced with my setting )

    When using this with my pbp i get alot of error lines like :
    [218] Address limit of 3FFh Exceeded

    Did i miss something ?
    That should work.
    What value do you have when you read 3FF?
    Dave
    Always wear safety glasses while programming.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    the pic's original value is 74.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    POKECODE @$3FF, $74 has to be the very last line of code. If you try placing this before
    anything else PBP thinks you're out of code space.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Thanks Bruce,

    I believe you are right !

    It makes perfect sense !

    This line should be the last line ( i did actually placed on top next with the settings ).

    Will try this when i get home.

    Thanks

Similar Threads

  1. Internal vs. external osc for comms
    By mtripoli in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th January 2010, 14:58
  2. 12F683 internal pull up
    By hvacrtech in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th July 2008, 02:35
  3. Writing, Reading from Internal PIC EEPROM
    By NO2K in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 4th October 2007, 00:35
  4. Use internal program memory like DATA memory
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2006, 18:38
  5. PIC12F675, accuracy of baud rate with Internal Oscillator
    By Chris Mayhew in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st August 2005, 22:41

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