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


Results 1 to 9 of 9

Threaded View

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


    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

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