-
16F88 MPASM Fuses
I have read through all the info on the forum about setting fuses when using the MPASM assembler.
I'm still getting an error when I uncomment them. I have gone into the 16F88.inc file and followed the note about setting fuses, which is:
; To use the Configuration Bits, place the following lines in your source code
; in the following format, and change the configuration value to the desired
; setting (such as CP_OFF to CP_ALL). These are currently commented out here
; and each __CONFIG line should have the preceding semicolon removed when
; pasted into your source code.
;Program Configuration Register 1
; __CONFIG _CONFIG1, _CP_OFF & _CCP1_RB0 & _DEBUG_OFF & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_OFF & _PWRTE_OFF & _WDT_OFF & _HS_OSC
;Program Configuration Register 2
; __CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF
This is what I have in my program:
;Program Configuration Register 1
@ __CONFIG _CONFIG1, _CP_OFF & _CCP1_RB0 & _DEBUG_OFF & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_OFF & _PWRTE_OFF & _WDT_OFF & _HS_OSC
;Program Configuration Register 2
@ __CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF
Still no joy, I get two error when the above is uncommented. BTW I have tried adjusting the spacing but nothing changed. Thoughts?
-
What do the Error's say?
<br>
-
Not real sure how to check. I get the popup and then it disappears.
This is my first go round with MPASM.
-
Open the .LST file with the same name as your program with NotePad, and search for ERROR.
-
The only two things that seem remotely relavent is:
Error[118] : Overwriting previous address contents (2007)
Error[118] : Overwriting previous address contents (2007)
-
You just need to comment out the existing __CONFIG line in the 16f88.inc file in the PBP folder.
Those default settings always get in the way.
DT
-
OK I cheated, I just changed the .inc file and called it done.
It's still frustrating that I have to do that.
-
Sure, that'll work fine for now. But when you have another project that also uses a 16F88 with different config settings. If you modify the .inc file for the new settings. The Older program won't work anymore, you won't receive any errors indicating a problem, and it's up to you to remember that the settings were changed (6 months later).
It's really best to comment them out, and set up the CONFIG registers in each program's code. Less indigestion later.
<br>
-
I'm with you on that. I will keep digging.
Its really your fault after all, had your Instant Interrupts not worked so well I wouldn't have to deal with this. ;)
-
http://www.websmileys.com/sm/evil/teu42.gif BwaaHaaHaa!
Melanie's Whip is nothing compared to the pain my programs can inflict. (at first)
-
Commenting out that line did the trick. Still odd but it works for now.
BTW your Instant Interrupts really did save my project. I'm using RX_INT and Timer1_INT without any issues. Kind of nice to be able to grab serial data in the background.
-
Fantastic! (I've been watching too much Dr. Who?)
Always nice to hear things are Working!
Better to see a sample. http://www.websmileys.com/sm/fingers/fing02.gif