I'm not familiar with the 18F4515, but this line looks odd to me...
INTIO67 ??Code:@ CONFIG OSC = INTIO67 ;config for internal osc
I'm not familiar with the 18F4515, but this line looks odd to me...
INTIO67 ??Code:@ CONFIG OSC = INTIO67 ;config for internal osc
From P18F4515.inc
;----- CONFIG1H Options --------------------------------------------------
_OSC_LP_1H EQU H'F0' ; LP oscillator
_OSC_XT_1H EQU H'F1' ; XT oscillator
_OSC_HS_1H EQU H'F2' ; HS oscillator
_OSC_RC_1H EQU H'F3' ; External RC oscillator, CLKO function on RA6
_OSC_EC_1H EQU H'F4' ; EC oscillator, CLKO function on RA6
_OSC_ECIO6_1H EQU H'F5' ; EC oscillator, port function on RA6
_OSC_HSPLL_1H EQU H'F6' ; HS oscillator, PLL enabled (Clock Frequency = 4 x FOSC1)
_OSC_RCIO6_1H EQU H'F7' ; External RC oscillator, port function on RA6
_OSC_INTIO67_1H EQU H'F8' ; Internal oscillator block, port function on RA6 and RA7
_OSC_INTIO7_1H EQU H'F9' ; Internal oscillator block, CLKO function on RA6, port function on RA7
Dave
Always wear safety glasses while programming.
So that anyone who may also be having this problem, I am posting the fix (Provided by Mr. Darrel Taylor -- Thanks):
"With older versions of PicBasic Pro, you should not use the CONFIG (no underscores) directive in your code.
You can with PBP3, but it looks like you haven’t upgraded yet.
The 18F4515 uses the older __CONFIG directives.
Look in the P18F4515.inc file in the c:\program files\microchip\mpasm suite folder for the available options.
But I think you want …
ASM
__CONFIG _CONFIG1H, _OSC_INTIO67_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
__CONFIG _CONFIG2L, _PWRT_ON_2L & _BOREN_OFF_2L
__CONFIG _CONFIG2H, _WDT_OFF_2H
__CONFIG _CONFIG3H, _CCP2MX_PORTC_3H & _PBADEN_OFF_3H & _LPT1OSC_OFF_3H & _MCLRE_ON_3H
__CONFIG _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L
ENDASM"
I changed to the old config directives and 1: it compiled correctly and 2: it works! For the record PBP 2.60A is the version I am using.
Bookmarks