If you have not changed the 16F628A.inc then I bet it is trying to use the XT OSC.
Look at the link I sent before and the data sheet for the correct setting when using the internal OSC.
It will be something like INTOSC instead of XT.
If you have not changed the 16F628A.inc then I bet it is trying to use the XT OSC.
Look at the link I sent before and the data sheet for the correct setting when using the internal OSC.
It will be something like INTOSC instead of XT.
Dave
Always wear safety glasses while programming.
Hi Dave,
How does the compiler pick up the *.inc file and where is it originally placed. In assembler there is an “Include” command but in PBP there are not as far as I have seen.
I will have a look at the PIC datasheet and the link you supplied, thanks!
The *.inc is in you PBP directory.
When you compile with Pic Basic it will automatically look there. Or you can do it in your code.
The link tells how.
Look at the ASM file made after you compile and you will see the includes.
Dave
Always wear safety glasses while programming.
Bookmarks