fusses info in PB3


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    219

    Default fusses info in PB3

    After upgrading to PB3 I've been opening some of my old 2.60 programs to see if they will run on PB3. My first try failed.

    @ DEVICE INTRC_OSC,MCLR_OFF,BOD_OFF,WDT_OFF,LVP_OFF

    Compiling for 16F886 I get this message "illegal opcode (INTRC_OSC)
    This worked in 2.60.
    I can't seem to find the listing of codes for PB3. Directions please!

  2. #2
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: fusses info in PB3

    OK, so I found part of the problem.
    I should have changed the old fusses to
    @ __CONFIG _CONFIG1,_INTRC_OSC_NOCLKOUT & _MCLRE_ON & _LVP_OFF & _WDT_OFF
    to use PB3 & MPASM. Now i'm getting "Overwriting address contents (2007)"
    not sure about this yet.

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


    Did you find this post helpful? Yes | No

    Default Re: fusses info in PB3

    When I bought PBP3.1 I spent a few bucks extra and got the paper version of the Manual. I read through many times, underlined things, wrote in the margins, and highlighted excerpts in different colors. I had to laminate the front & rear covers as they no longer stayed on the binding. I suggest spending some time with the PBP3 Reference Manual. You have your first question now, but will have more later. You may be surprised how much "stuff" you can do with PBP3.1.

  4. #4
    Join Date
    Jan 2009
    Location
    Alabama,USA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: fusses info in PB3

    Thanks Mike, I'll go through the manual looking for overwrite comments.
    wayne

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795


    Did you find this post helpful? Yes | No

    Default Re: fusses info in PB3

    Use #config and #endconfig like this for example:

    #CONFIG
    __CONFIG _CP_OFF & _DEBUG_OFF & _CP_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_ON & _WDT_OFF & _XT_OSC
    #ENDCONFIG

    Ioannis

  6. #6
    Join Date
    Jul 2022
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: fusses info in PB3

    in those mentioned pages they refer to the fuses of the pics, also take into account the .inc file of each pic of the pbp and use the DEFINE OSC instruction to define the oscillator to use in the pic and by default the pbp assigns crystal 4 mhz .

    read page 100 section 4.9 and read page 22 section 2.1.
    I send you a link to the pbp manual.

    https://pbp3.com/downloads/PBP_Reference_Manual.pdf
    Last edited by josepic; - 3rd August 2022 at 02:04.

  7. #7
    Join Date
    Jul 2022
    Posts
    26


    Did you find this post helpful? Yes | No

    Default Re: fusses info in PB3

    Quote Originally Posted by MOUNTAIN747 View Post
    After upgrading to PB3 I've been opening some of my old 2.60 programs to see if they will run on PB3. My first try failed.

    @ DEVICE INTRC_OSC,MCLR_OFF,BOD_OFF,WDT_OFF,LVP_OFF

    Compiling for 16F886 I get this message "illegal opcode (INTRC_OSC)
    This worked in 2.60.
    I can't seem to find the listing of codes for PB3. Directions please!
    in those mentioned pages they refer to the fuses of the pics, also take into account the .inc file of each pic of the pbp and use the DEFINE OSC instruction to define the oscillator to use in the pic and by default the pbp assigns crystal 4 mhz .

    read page 100 section 4.9 and read page 22 section 2.1.
    I send you a link to the pbp manual.

    https://pbp3.com/downloads/PBP_Reference_Manual.pdf



Similar Threads

  1. pb3 with pic 12f529T39A
    By geniuswork in forum PBP3
    Replies: 0
    Last Post: - 10th May 2018, 16:48
  2. PB3 gold vs silver
    By ozarkshermit in forum PBP3
    Replies: 3
    Last Post: - 14th December 2017, 21:44
  3. Questions on PB3 and Timers
    By PickyBiker in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th February 2013, 18:05
  4. whats in Variable name ??? PB3.04
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th June 2012, 09:32
  5. PB3, which error is it ?
    By Marcick in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 1st May 2012, 17:12

Members who have read this thread : 2

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