config


+ Reply to Thread
Results 1 to 13 of 13

Thread: config

  1. #1
    Join Date
    Mar 2008
    Posts
    57

    Default config

    Can anyone tell me why this does not work?

    I started with "@ DEVICE MCLRE_OFF, INTRC_OSC, WDT_OFF, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_OFF" in PBP2.50 and need to know the proper syntax for PBP3?

    #config
    __config _MCLR_OFF & _INTRC_OSC & _PROTECT_ON & _WDT_OFF & _BOD_OFF & _PWRT_OFF
    #endconfig

    Thanks

    Roger

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,253

    Default Re: config

    Post all your code and model of PIC.

    What errors do you get? How does it "not work"?

    Robert

  3. #3
    Join Date
    Mar 2008
    Posts
    57

    Default Re: config

    Quote Originally Posted by Demon View Post
    Post all your code and model of PIC.

    What errors do you get? How does it "not work"?

    Robert
    I am using a 16f628a. I was unable to compile because of undefined symbol "INTRC_OSC"

    this seems to work
    #config
    __config _INTOSC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_OFF & _LVP_OFF & _CP_ON
    #endconfig



    I was having problems with the "INTOSC_OSC_NOCLKOUT" in PBP2.5 this was "INTRC_OSC". I would like to see a list of all of these changes if anyone know where to find them?

    Thank you very much for your reply Robert!

    Roger

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,253

    Default Re: config

    Have you read this?

    http://www.picbasic.co.uk/forum/showthread.php?t=543

    Did you change to MPASM instead of PM?

    Robert

  5. #5
    Join Date
    Mar 2008
    Posts
    57

    Default Re: config

    I just received my new PBP3 and this documents seems to say that the PM assembler is no longer supported?

    http://pbp3.com/downloads/Migrating%...0to%20PBP3.pdf

    Please take a look and tell me I am wrong. I have used PBP for many years and change is not my favorite thing

    Thanks for all of your help!

    Roger

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,253

    Default Re: config

    PM is now "extinct".

    You have to download MPLAB X (I think), and then point to MPASM.

    You don't have to use MPLAB, you only need the new assembler.

    Robert


    Edit:
    http://www.picbasic.co.uk/forum/showthread.php?t=18520
    Last edited by Demon; - 1st June 2014 at 03:51.

  7. #7
    Join Date
    Mar 2008
    Posts
    57

    Default Re: config

    Now I am really confused! I will sleep maybe it will all make sense in the moring

    Thank You

    Roger

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,253

    Default Re: config

    Yeah, I can see why. I think that thread is when you want to use MPLAB.

    Here's what I do for PBP 2.6:

    - install MPLAB.
    - install PBP.
    - install Microcode Studio.
    - in MCS, point to PBP and MPASM.

    Unless v3 has a major change in the way things work, the same should work.

    Hopefully someone with v3 can chime in.

    Robert

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

    Default Re: config

    Make a separate directory for pbp3 from earlier versions so you can use both.
    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.

  10. #10
    Join Date
    Mar 2008
    Posts
    57

    Default Re: config

    Thank You to everyone!

    Roger

  11. #11
    Join Date
    Jan 2009
    Posts
    24

    Default Re: config

    If you go into the "DEVICE_REFERENCE" folder of your PBP3 install directory you will find a bunch of files *.INFO. Find the file that relates to your PIC and open it to find a complete list of all the config options with descriptions and an example of how to use the settings in PBP3, e.g for PIC16F1509
    ; Available __CONFIG labels for PIC16F1509:
    ;
    ;CONFIG1 Options
    ;
    ; Oscillator Selection Bits
    ; _FOSC_ECH ;ECH, External Clock, High Power Mode (4-20 MHz): device clock supplied to CLKIN pins
    ; _FOSC_ECM ;ECM, External Clock, Medium Power Mode (0.5-4 MHz): device clock supplied to CLKIN pins
    ; _FOSC_ECL ;ECL, External Clock, Low Power Mode (0-0.5 MHz): device clock supplied to CLKIN pins
    ; _FOSC_INTOSC ;INTOSC oscillator: I/O function on CLKIN pin
    ; _FOSC_EXTRC ;EXTRC oscillator: External RC circuit connected to CLKIN pin
    ; _FOSC_HS ;HS Oscillator, High-speed crystal/resonator connected between OSC1 and OSC2 pins
    ; _FOSC_XT ;XT Oscillator, Crystal/resonator connected between OSC1 and OSC2 pins
    ; _FOSC_LP ;LP Oscillator, Low-power crystal connected between OSC1 and OSC2 pins
    are the config options for the oscillator. When you install PBP3 it has the option of installing the correct assembler if not already installed.

  12. #12
    Join Date
    Mar 2008
    Posts
    57

    Default Re: config

    That is exactly the file I was trying to find!

    Thank You!

    Roger

  13. #13
    Join Date
    Jan 2009
    Posts
    24

    Default Re: config

    Your most welcome!

Similar Threads

  1. PIC12F675 - config
    By Vezito in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 8th June 2011, 20:29
  2. Config 18F25K22
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 26th April 2011, 19:08
  3. config help please?
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 17th June 2008, 23:49
  4. Need help with config
    By Darrenmac in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 25th February 2008, 06:57
  5. Config 16F873A
    By mpardinho in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 23rd October 2007, 12:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts