PDA

View Full Version : Moved from PM to MPASM and have fuse definition problems



Tomexx
- 26th November 2008, 19:15
Before when working in PM I preset my fuses like this:


@ DEVICE PIC16F628A, HS_OSC, WDT_OFF, LVP_OFF, PWRT_OFF, PROTECT_OFF, BOD_OFF


Now in MPASM I'm getting "Overwriting previous address contents (2007)" error when doing this:


@ __CONFIG _HS_OSC


Any ideas?

Thanks,
Tom

mvs_sarma
- 26th November 2008, 19:50
Before when working in PM I preset my fuses like this:


@ DEVICE PIC16F628A, HS_OSC, WDT_OFF, LVP_OFF, PWRT_OFF, PROTECT_OFF, BOD_OFF


Now in MPASM I'm getting "Overwriting previous address contents (2007)" error when doing this:


@ __CONFIG _HS_OSC


Any ideas?

Thanks,
Tom


list= p16F628A
#include <p16F628A>
__CONFIG 03F2A ;this would set to what you wanted


in MPLAB click configure , select device and set it for 16F628A
close and reopen the configure-- now seek "configuration bits" remove the tick on top of that page, now you can independently set every item of the list and there after, copy the configuration word. use it the way i typed incode above. this makes life easy before you get grip on mpasm.

Tomexx
- 26th November 2008, 19:58
I'm not using MPLAB just MPASM under MicroCode studio.

Bruce
- 26th November 2008, 21:10
See this thread for your answer & then some..;o}
http://www.picbasic.co.uk/forum/showthread.php?t=543

Tomexx
- 26th November 2008, 22:27
Thanks Bruce!