directive in pbp to select pic


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default Re: directive in pbp to select pic

    And still there is no way to direct the use of specific PIC in the #config block.

    Use the MCS IDE that came with your purchase of PBP. Is the easiest solution.

    Ioannis

    Name:  Capture.PNG
Views: 837
Size:  47.3 KB

  2. #2
    Join Date
    Jul 2022
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: directive in pbp to select pic

    In the pbp manual page 100 section 4.9 it says the following.

    'Config for 16F877A
    #CONFIG
    __config _XT_OSC & _WDT_ON & _LVP_OFF & _CP_OFF
    #ENDCONFIG

    If the pic to use and the fuses are not specified, the pbp defaults to 4 mhz.
    Attached Images Attached Images  

  3. #3
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: directive in pbp to select pic

    You have "include fp2032.bas" which doesn't look right. It should be "include pic16f886.bas" (or whatever your PIC is).

  4. #4
    Join Date
    Jul 2022
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: directive in pbp to select pic

    Quote Originally Posted by mpgmike View Post
    You have "include fp2032.bas" which doesn't look right. It should be "include pic16f886.bas" (or whatever your PIC is).
    fp2032.bas library is included for floating point.
    I also took into account the .inc file of each pic of the pbp to configure the fuses of the selected pic.
    I had to read the pbp manual page 100 section 4.9 to configure the fuses of the selected pic, read the pbp manual and you will see

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default Re: directive in pbp to select pic

    Quote Originally Posted by josepic View Post
    If the pic to use and the fuses are not specified, the pbp defaults to 4 mhz.

    That is correct. Not a problem but the default state of the compiler.

    Ioannis

Similar Threads

  1. Error 238 Preprocessor Directive Expected ???
    By MOUNTAIN747 in forum General
    Replies: 1
    Last Post: - 29th December 2011, 19:07
  2. Help converting __CONFIG directive to CONFIG
    By lilimike in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 7th December 2011, 19:05
  3. Org directive.?
    By Ruben Pena in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 2nd June 2009, 22:19
  4. 12F675 MCLR directive MPASM
    By OLDSCHOOL in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th May 2008, 01:29
  5. CONFIG directive warning help
    By josegamez in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th August 2006, 20:02

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