When in include this line:
@ INCLUDE "P18F67J60.INC"
I get
"Message[310] c:\path...\p18f67j60.inc 3210: Superseding current RAM and RAM map"
What does this mean? (MPASM did report that the assembly was successful, however)
Do not include that line. The compiler has already taken care of all that.
Dave
Always wear safety glasses while programming.
Yeah, that was slowly dawning on me. All I'm trying to do is set the oscillator to EC (external oscillator). So, after looking at the .inc file, it says at the bottom that there's a bunch of settings that are valid, including FOSC=EC. (They all have ; in front
so I include this line in my PBP program...
@ CONFIG FOSC=EC
and I get the following:
Error[176] c:\path...\test.asm 75: CONFIG Directive Error: (multiple definitions found for setting "FOSC")
I have NOT removed any ; from in front of the settings (actually, I tried it both ways), so don't know what's wrong.
This thread will help
http://www.picbasic.co.uk/forum/showthread.php?t=543
In the PBP *.inc file you will need to comment out the config lines to set the configs in code space.
The default setting in the PBP *.inc file is for HS. An external OSC. So you really do not have to do anything.
The file you are looking at with ";" in front of each line is the MPASM inc file. You DO NOT want to change anything here. Just look at it to see the options.
I will bet HS is the setting you want. That is for an external resonator.
EC will give a clock out function.
Dave
Always wear safety glasses while programming.
Oh my gosh, you're right!!
I really AM confused! I see that the settings are actually set in the c:\pbp\18F67J60.INC file. When I want to change settings, should I just edit this c:\pbp\18F67J60.INC file manually, or put @ CONFIG lines in my source file??
Then what is the purpose of the c:\mpasm\mpasm suite\P18f67J60.INC file? Just to show what options are available?
Bookmarks