meProg configuration vs setting fuses in code


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    Brussels, Belgium
    Posts
    104

    Default meProg configuration vs setting fuses in code

    So I write in Microcode studio, compile and then use a melabs programmer to program my PIC.
    Which takes precedence ?

    a) Fuse settings I set in my code or
    b) the configuration options in "meProg - configuration" ?

    If I uncheck the Options/More Options/Program/Configuration in melabs Programmer does that stop the "meProg - configuration" from doing anything ?

    Thanks, Andrew

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by AndrewC View Post
    Which takes precedence ?
    I don't use the melabs programmer, but I think the order is:
    Highest - Programmer options that are ticked (unless the hex file has the config bits in them, then it'll use those unless you start checking/unchecking before writing the hex file)
    Next - whatever is in the PBP .inc file for the PIC that you're using.

    See this thread to get a handle on it all:
    http://www.picbasic.co.uk/forum/show...ig+fuse+preset

  3. #3
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by AndrewC View Post
    So I write in Microcode studio, compile and then use a melabs programmer to program my PIC.
    Which takes precedence ?

    a) Fuse settings I set in my code or
    b) the configuration options in "meProg - configuration" ?

    If I uncheck the Options/More Options/Program/Configuration in melabs Programmer does that stop the "meProg - configuration" from doing anything ?

    Thanks, Andrew
    The MeProg has a menu selection for this. Under Options, the first one (in my version) is Update Configuration From File. If you check this, then the file takes precedence; if not, then the programmer configs do. What I often do for testing purposes is set the fuses in the code, and turn this on before you open the file to program--that makes the programmer accept those PBP config settings. Then, turn off the menu item, make adjustments if necessary, then program.

    I always put it back on before closing the program...that way I don't forget it next time and wonder why my 18F configs are set to default again (typically that's what happens when you switch from different PIC types) or all out of whack (what happens when you have two projects with different configs).
    Last edited by tenaja; - 10th June 2008 at 14:03.

Similar Threads

  1. decoding quadrature encoders
    By ice in forum mel PIC BASIC Pro
    Replies: 93
    Last Post: - 28th February 2017, 09:02
  2. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  3. Problem runing my code
    By Mus.me in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 1st December 2009, 20:36
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. configuration fuses
    By mischl in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th April 2005, 10:50

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