This is my config line
Code:__config _XT_OSC & _WDT_ON & _MCLRE_ON & _CP_OFF
Rob
This is my config line
Code:__config _XT_OSC & _WDT_ON & _MCLRE_ON & _CP_OFF
Rob
Success!!
Okay, same setup. Same code. This time compiling was done with the melabs compiler (instead of mpasm) and downloaded with a pickit2 (instead of an ICD2). I'm going to investigate this more and post my findings.
Rob
I was setting them in the 16F690.INC file in the PicBasic Pro (PBP) folder. That's the right spot, correct?
Rob
Here's the exact include I was using with mplabs
When I switched to melabs, I modified the top one. I'm guessing that the pickit / icd2 wasn't the problem but maybe a difference in the compiler. What do you think?Code:NOLIST ifdef PM_USED LIST include 'M16F6xx.INC' ; PM header device pic16F690, intrc_osc_noclkout, wdt_on, mclr_on, protect_off XALL NOLIST else LIST LIST p = 16F690, r = dec, w = -302 INCLUDE "P16F690.INC" ; MPASM Header ;* __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF __config _XT_OSC & _WDT_ON & _MCLRE_ON & _CP_OFF NOLIST endif LIST
Rob
I think you always should comment all default config line (both for MPASM and PM, DEVICE and CONFIG lines) and then set your config fuses in your code.
Way more handy, because you don't need to remember each time which fuses you have hidden for a XYZ project using the same PIC.
Have a look at the following, post #1 and #5 are all you need for now.
http://www.picbasic.co.uk/forum/showthread.php?t=543
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Easier, I think to just comment them out and set them in your code every time. If you do not want to type, then make a file with all the setup code you use most often and open it everytime you start a new project, and save as, before your first compile.
EDIT: Mister_e, fast on the draw!
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks