Hi all,
I've written this simple program for a PIC18F8722, in MPLAB X:
However, when I debug it says it cannot find the P18F8722.inc file. I presume I'm doing something wrong here, but I'm unsure as what it could be. I tried loading a sample microchip program, but funnily enough, MPLAB flagged that section as having improper syntax (I believe this was due to a lack of < >'s either side of the file, as the file name was the same).
Any help would be greatly appreciated.
Sparky
I've written this simple program for a PIC18F8722, in MPLAB X:
Rich (BB code):
LIST P=18F8722
#include <P18F8722.inc>
;--------------
;Configuration
CONFIG OSC = HS
CONFIG MCLRE = ON
CONFIG DEBUG = OFF
CONFIG LVP = OFF
CONFIG WDT = OFF
;---------------
;Main program
ORG 0x0000
GOTO MAIN
MAIN MOVLW 0x00
MOVWF TRISD
LOOP MOVLW 0x55
MOVWF PORTD
NOP
GOTO LOOP
END
Any help would be greatly appreciated.
Sparky