OSC Calibration byte in wrong location?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2006
    Posts
    10

    Default OSC Calibration byte in wrong location?

    PIC12F629 (IK word memory architecture)
    Manual states place calibration byte for oscillator at address 3FFh.
    After compiling the cal byte ends up at 7FFh in the hex file.
    Why? Third line byte value 94h is at addr: 07FFh
    All the addr. references is the file point to the word address so why is the calibration byte different? If I place addr 3FFh in PIC Basic shouldn't it be at 3FFh after compiling and assembling?

    END OF HEX FILE

    :10018000051083120F30A300A03002203028630036
    :02019000C7287E
    :0207FE00943431
    :02400E00D43F9D
    :00000001FF

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


    Did you find this post helpful? Yes | No

    Default

    It is placing this at 03ff.

    :0207FE00943431

    The address in the .hex file is doubled because this format only supports
    8-bits. To find the real address, divide the value by 2.

    07FE / 2 = 03FF.
    Regards,

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

  3. #3
    Join Date
    Sep 2006
    Posts
    10


    Did you find this post helpful? Yes | No

    Default

    Thanks Bruce - that makes perfect sense!

Similar Threads

  1. LCD freeze
    By harryweb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th October 2009, 08:01
  2. Memory use - how much do you use?
    By keymuu in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 10th June 2009, 22:39
  3. byte compression
    By Norbert in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 16th June 2007, 18:04
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. 16F877 RAM Question
    By Art in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 6th August 2005, 11:47

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