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
Bookmarks