Need help with config


Results 1 to 19 of 19

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Hi Darrenmac,
    Now after you do all this you will get a compile error telling you you are overwriting the configs . . . that's because you are. In your PBP directory you will have many files with the suffix .inc and the filename will be the number of your PIC. Open it and you will see the following code:
    Code:
    __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
    just put a semi colon at the beginning like this:
    Code:
    ;__config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
    save the file and then no more error. This config is the " DEFAULT" config setting in case you forget to put in any config so your program will still work sometimes.<br>
    Now, why go through all of this? Well suppose you DO NOT want to use the internal oscillator? The DEFAULT configs will not work with a crystal or resonator or EXT oscillator, so do it now and get used to setting the fuses early into your adventure into PIC Magic
    Last edited by Archangel; - 21st February 2008 at 12:49.
    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.

Similar Threads

  1. Run-Time Config
    By Darrel Taylor in forum PBP Extensions
    Replies: 1
    Last Post: - 1st February 2012, 17:26
  2. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 02:48
  3. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd November 2008, 00:51
  4. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 18:20
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 04:56

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