Pbp3 - pic18f87k22 / pic18f67k22 setting config typo error ???


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: Pbp3 - pic18f87k22 / pic18f67k22 setting config typo error ???

    google translate
    hello, I would like to program the fuses of the PIC18F2550 correctly for a good operation of the program of this multi battery charger. I do not know how to proceed in picbasic to write the command lines. Quartz of 4 mhz pwrt off mclr off cdp off wrt off I can supply the full program of this charger in picbasic ..
    you don't say what version of pbp you are using
    for pbp3 to get an OSC of 48mHz from a 4mHz xtal you would use

    Code:
    #CONFIG
      CONFIG  PLLDIV = 1
      CONFIG  CPUDIV = OSC1_PLL2
      CONFIG  USBDIV = 2
      CONFIG  FOSC = HSPLL_HS
      CONFIG  FCMEN = OFF
      CONFIG  IESO = OFF
      CONFIG  PWRT = OFF
      CONFIG  BOR = ON
      CONFIG  BORV = 3
      CONFIG  VREGEN = ON
      CONFIG  WDT = ON
      CONFIG  WDTPS = 512
      CONFIG  CCP2MX = ON
      CONFIG  PBADEN = OFF
      CONFIG  LPT1OSC = OFF
      CONFIG  MCLRE = OFF
      CONFIG  STVREN = ON
      CONFIG  LVP = OFF
      CONFIG  XINST = OFF
      CONFIG  DEBUG = OFF
      CONFIG  CP0 = OFF
      CONFIG  CP1 = OFF
      CONFIG  CP2 = OFF
      CONFIG  CP3 = OFF
      CONFIG  CPB = OFF
      CONFIG  CPD = OFF
      CONFIG  WRT0 = OFF
      CONFIG  WRT1 = OFF
      CONFIG  WRT2 = OFF
      CONFIG  WRT3 = OFF
      CONFIG  WRTC = OFF
      CONFIG  WRTB = OFF
      CONFIG  WRTD = OFF
      CONFIG  EBTR0 = OFF
      CONFIG  EBTR1 = OFF
      CONFIG  EBTR2 = OFF
      CONFIG  EBTR3 = OFF
      CONFIG  EBTRB = OFF
    #ENDCONFIG
    Last edited by richard; - 16th September 2017 at 12:22.
    Warning I'm not a teacher

  2. #2
    Join Date
    Sep 2017
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: Pbp3 - pic18f87k22 / pic18f67k22 setting config typo error ???

    bonjour,
    j'utilise la version PBP 4.0.0.0 et MPLAB 8.92.
    le quartz est un 4mhz.
    je voudrais savoir si je peux et comment programmer les bits fusibles dans pbp et savoir comment cela s’écrit.
    je peux vous envoyez, si vous voulez le programme de mon montage, si cela vous permet de mieux comprendre.
    pascal

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: Pbp3 - pic18f87k22 / pic18f67k22 setting config typo error ???

    Hello,
    I use the version PBP 4.0.0.0 and MPLAB 8.92.
    the quartz is a 4mhz.

    I can send you, if you want the program of my editing, if this allows you to better understand.
    pascal

    version 4.0.0.0 is the microcode studio version
    pbp version is v3.x.x.x or 2.xx

    I would like to know if I can and how to program the fuse bits in pbp and know how this is written.
    my previous reply is one way that will do it for pbp 3.xxx

    its done differently for pbp 2.xxx . I have not used that old version for several years and can offer no help for it
    meconfig suggests this

    Code:
    ASM
      __config  _CONFIG1L, _PLLDIV_1_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
      __config  _CONFIG1H, _FOSC_HSPLL_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
      __config  _CONFIG2L, _PWRT_OFF_2L & _BOR_ON_2L & _BORV_3_2L & _VREGEN_ON_2L
      __config  _CONFIG2H, _WDT_ON_2H & _WDTPS_512_2H
      __config  _CONFIG3H, _CCP2MX_ON_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_OFF_3H
      __config  _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L
      __config  _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
      __config  _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
      __config  _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
      __config  _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
      __config  _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L
      __config  _CONFIG7H, _EBTRB_OFF_7H
    ENDASM
    Warning I'm not a teacher

Similar Threads

  1. 18F2620 pbp3 example config please
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 17th December 2014, 02:49
  2. Config fuse i n PBP3.0 - PIC16F828A
    By IapIllc in forum FAQ - Frequently Asked Questions
    Replies: 4
    Last Post: - 4th March 2013, 07:21
  3. 16f88 setting config
    By be80be in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 13th December 2012, 16:39
  4. PBP3 with PIC18F87K22 and variables
    By MisterT in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd March 2012, 12:09
  5. Trouble setting config. bits
    By jswayze in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th March 2004, 23:22

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