Can't find include "P16f628A.inc"

Thread Starter

AlbertHall

Joined Jun 4, 2014
12,346
I'm using MPLABX V5.5 and XC8 V2.32
It is quite a while now since I did Pic assembler and I have a program from www which I am trying to assemble
The line tring to include "P16f628A.inc"
generates an error:
can't open include file "P16f628A.inc": No such file or directory

The same happens whether I use <> instead of the quotes and whether I add # before the include and whether I select XC8 or pic-as as the assembler

Can anyone tell me what I am doing wrong
 

Thread Starter

AlbertHall

Joined Jun 4, 2014
12,346
I am now a new noob!
Next problem, all three of the config lines below generate a syntax error (using one at a time).
The code for the start of the program:
Code:
        processor       16F628A
    #include    <xc.inc>
    __CONFIG    h'3F66' ; PUTimer on, WDT on, HS clock, BOD on
    #pragma config FOSC = HS
    __CONFIG FOSC = HS
 

Thread Starter

AlbertHall

Joined Jun 4, 2014
12,346
I am now a new noob!
Next problem, all three of the config lines below generate a syntax error (using one at a time).
The code for the start of the program:
Code:
        processor       16F628A
    #include    <xc.inc>
    __CONFIG    h'3F66' ; PUTimer on, WDT on, HS clock, BOD on
    #pragma config FOSC = HS
    __CONFIG FOSC = HS
Sorted! CONFIG without the two underscores works.
 
Top