Of course a new guy once again with a goofy question.
I have been trying to use the CONFIG directive with PBP but I can't seem to get it to compile as in all the examples I have seen.
I have tried:
@ CONFIG OSC=ECIO6
config OSC=ECIO6
@__config OSC=ECIO6
@config OSC=ECIO6
And they all come up with errors.
But this works:
@__config_OSC_ECIO6_1H
but I am unable to put an "&" on the end to add additional directives.
Also how do I configure the directive:
WDT = ON
I found this in the MPASM 18F4525.INC file:
; IMPORTANT: For the PIC18 devices, the __CONFIG directive has been
; superseded by the CONFIG directive. The following settings
; are available for this device.
;
; Oscillator Selection:
; OSC = LP LP
; OSC = XT XT
; OSC = HS HS
; OSC = RC RC
; OSC = EC EC-OSC2 as Clock Out
; OSC = ECIO6 EC-OSC2 as RA6
; OSC = HSPLL HS-PLL Enabled
; OSC = RCIO6 RC-OSC2 as RA6
; OSC = INTIO67 INTRC-OSC2 as RA6, OSC1 as RA7
; OSC = INTIO7 INTRC-OSC2 as Clock Out, OSC1 as RA7
;
; Fail Safe Clock Monitor:
; FCMEN = OFF Disabled
; FCMEN = ON Enabled
;
; Internal External Osc. Switch Over:
; IESO = OFF Disabled
; IESO = ON Enabled
;
; Power Up Timer:
; PWRT = ON Enabled
; PWRT = OFF Disabled
;
; Brown Out Reset:
; BOREN = OFF Disabled
; BOREN = ON Enabled
; BOREN = NOSLP Enabled except SLEEP, SBOREN Disabled
; BOREN = SBORDIS Enabled, SBOREN Disabled
;
; Brown Out Voltage:
; BORV = 45 4.5V
; BORV = 42 4.2V
; BORV = 27 2.7V
; BORV = 25 2.5V
;
; Watchdog Timer:
; WDT = OFF Disabled
; WDT = ON Enabled
Any help would be nice for yet another newbie.
Bookmarks