Can anyone help at getting OWIn & OWOut to work @ 16MHz?


Results 1 to 10 of 10

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Hi jessey,

    Sorry. P18F452.INC is the "Microchip" include file. Open the 18F452.INC file "in your PBP directory". Make the change to this one. Not the one located in your MPLAB directory.

    PBP has a device specific header file for each PIC it supports. These header files contain default config fuse settings for each device.

    This is the file you edit. Not the Microchip header file.

    Yes. You can make changes to over-ride config fuse settings embedded in the final .hex file with your EPIC software, however, it may not always work like you might expect.

    Example. You compile your code using the default config fuse settings in the "18F452.INC" file in your "PBP" directory. You launch the EPIC software from within MCS, and you make changes to the config fuse settings with your EPIC software.

    Now you click program, and it stil uses the default settings from the .hex file.

    What happened? If you have the "Reread file before programming", and "Update Configuration From File" options selected, it just reloads the .hex file "from disc" into memory, and dumps the default settings in.

    What most folks forget is to click the "Save" button after making changes to the config fuse settings to save them back to the .hex file on disc.

    MPASM does not like it when you have config fuse settings in your code & in the PBP 18F452.INC file. You can only have them in "1" location or it returns this error message.

    If you place the config fuse directive in your code, then you need to comment them all out in the PBP 18F452.INC header file.

    Change your Microchip P18F452.INC file back to its original state.

    Look in your "PBP" directory for 18F452.INC. Make only the change I mentioned previously, and see what you get.
    Last edited by Bruce; - 23rd January 2006 at 23:50.
    Regards,

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

Similar Threads

  1. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  2. STATUS re-curtain W
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th February 2005, 15:21
  3. help
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th February 2005, 20:42
  4. Need once your help one please
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th February 2005, 20:33
  5. can i slowdown owin and owout
    By Eugen in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th January 2005, 22:17

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