Getting started with Chuck Hellebuyck fuses


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2008
    Posts
    8

    Default Getting started with Chuck Hellebuyck fuses

    I need to know what fuses should be enabled and disabled for my first project flashing one led. PIC16F876
    WDT
    BODEN
    CPD
    DEBUG
    CODE PROTECT
    PWRTE
    LVP
    WRT
    OSILLATOR
    I would be grateful for any help Thanks

  2. #2
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Quester,

    I started learning with Chuck's book. I don't really remember setting any fuses in my first few projects as the programmer's software has some basic defaults that take care of your basic needs. If you use for example the internal clock instead of a 4mhz crystal then yes you would need to make a change but just go for it and see what happens. You really can't hurt anything and it really helps you learn how to troubleshoot your projects.

    HTH,

    BobK

  3. #3
    Join Date
    Feb 2008
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Help setting fuses. My first project.

    The programmer that I have needs to be set up for the fuses I mentioned for example osillater. I am using 4mhz. I understand WDT needs to be disabled and PWRTE need to be enabled also code protect needs to be disabled but the rest I dont know.
    This is the list.
    WDT
    BODEN
    CPD
    DEBUG
    CODE PROTECT
    PWRTE
    LVP
    WRT
    OSILLATOR

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Many good things. . . .

    Hi quester,
    The first Catagory you see on the home page is Frequently Asked Questions where you will find this and many other very important threads.
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Please visit those threads, You will find them very helpful, and Welcome to this forum.
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Jun 2004
    Location
    Michigan
    Posts
    8


    Did you find this post helpful? Yes | No

    Smile Chuck's Response.

    PICBASIC and PICBASIC PRO put those configuration fuses in a separate file. It will be the name of the chip with a .inc suffix (i.e. 16F876A.inc). You will find it in the PBP or PBC directory. When the compiler is run it will load in these fuses and embed those settings in the .hex file.
    When you program the chip the programming software should load that information in automatically and then program the chip with those fuse settings.

    Now you can override those settings by changing the setup in the programmer software as many people do. You could also just modify that .inc file to how you want it setup.

    Open up the .inc file for the chip you are using to see how it is setup. Most likely you will have:
    xt_osc - external oscillator under 8 Mhz
    wdt_on - Watchdog timer on
    lvp_off - Low voltage programming turned off
    protect_ off - Code protection off

    There will be two sets of these in the .inc file. One is for the melabs PM assembler and the other is for the Microchip MPASM assembler. Don't worry about it for now. If you change the file just change both to match what you want. Then you don't have to change it again.

    Some like to use the programming software to change the fuses but that means you have to do it every time. Also if you send the .hex file to someone they have to know the fuse settings you want unless you embed that in the .hex file correctly by changing the .inc file. This is the method I recommend and I've covered this a few times in my Nuts & Volts column on "Getting Started with PICs".

    Thanks for reading my book.
    Chuck Hellebuyck
    Electronic Products
    http://www.elproducts.com
    [email protected]

Similar Threads

  1. old chestnut, 18f2550, fuses, osc's leds...
    By f_lez in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 31st October 2009, 17:18
  2. 18F4620 Fuses configuration
    By Pimentel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th October 2008, 13:23
  3. Getting started with Chuck Hellebuyck
    By quester in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th March 2008, 20:10
  4. 18F Config fuses
    By Angus Anderson in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 18th December 2007, 15:59
  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