configuration bits


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    2

    Default configuration bits

    hello,
    I'm sorry if I've missed the answer, but can someone tell me how to include the configuration bits in a PicBasic file?
    I need to set the internal oscillator on a 16f88 to 4Mhz and also enable MCLR, the only instructions I can find are for PicBasicPro, and they don't seem to work in PicBasic.
    Thanks.

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


    Did you find this post helpful? Yes | No

    Default

    Hi Izone 1173,
    I do not have PBC and have no idea if this will work, but what do you have to lose by trying it?
    For MPASM assembler.
    Code:
    asm
     __config _CONFIG1, _INTRC_IO & _WDT_ON & _LVP_OFF & _CP_OFF & _MCLR_ON
    endasm
    In PBP, in the PBP root directory, each chip has a file called by chip number and the suffix .inc. There we have to comment out the default configs or change them to what we want them to be. Look and see if such a file exists in your PBC root directory, if so open it and look and or change as you need to.
    The PBC manual only talks about setting the fuses in the programmer.
    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.

  3. #3
    Join Date
    Jun 2009
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    Thanks very much,

    PBC has an INC directory with every chip in it, I'll try commenting out the configuration line there.

Similar Threads

  1. Bits, Bytes Words and Arrays
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 24
    Last Post: - 14th June 2016, 07:55
  2. Configuration bits in a HEX file gone missing?
    By grzes.r in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd February 2010, 01:10
  3. Configuration bits setting problem
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th August 2009, 17:25
  4. Configuration bits
    By Armando Herjim in forum General
    Replies: 0
    Last Post: - 5th December 2006, 16:51
  5. error on compiling
    By parker in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th June 2005, 14:31

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