Hello again!
I hope everybody had a good time during the holidays and also that you are having a good start on this New Year! :-)
Today I have fiddled with some code and I run into a problem. I get an “Error [118] Overwriting previous address content (2007)” when compiling. If I omit the first line “@ __CONFIG _INTOSC_OSC_NOCLKOUT” there are no errors!
I use MCS+ ,PBP and MPASM, the target is a 16F628A. According to the list of fuses in the *.INC file the alternatives are:
_RC_OSC_CLKOUT
_RC_OSC_NOCLKOUT
_ER_OSC_CLKOUT
_ER_OSC_NOCLKOUT
_INTOSC_OSC_CLKOUT
_INTOSC_OSC_NOCLKOUT
_INTRC_OSC_CLKOUT
_INTRC_OSC_NOCLKOUT
What I like to do is have the 16F628A run @ 4 MHz internally and be able to compile it without errors.
How do I make sure the clock setting in my code overrides the setting in the *.INC file?
Here is the code:
“
@ __CONFIG _INTOSC_OSC_NOCLKOUT
Cnt VAR BYTE 'Declare Cnt as a byte
TRISB = 0 ' Set PORTB pins as outputs
AGAIN:
FOR Cnt = 1 TO 3
PORTB.0 = 1 ' Turn ON LED
PAUSE 250 ' Wait 250ms
PORTB.0 = 0 ' Turn OFF LED
PAUSE 250 ' Wait 250ms
NEXT Cnt
PAUSE 2000 ' Wait 2 seconds
GOTO AGAIN ' Repeat
END ' End of program
“
Thanks for being here!
All the Best!
Bookmarks