In MicroCodeStudio, make sure you have selected MPASM as assembler.
Now, those
Code:
INTRC_OSC_NOCLKOUT
WDT_ON
PWRTE_ON
MCLRE_ON
BODEN_OFF
don't do anything else than creating Labels.. to bad. So i guess you got the Overwriting previous... MPASM message right?
have a look at the following...
http://www.picbasic.co.uk/forum/show...75&postcount=5
this will cure the problem
NOW, if your PIC programmer have erased the OSCCAL value one day or another, your example will NEVER work.. or with some trouble. remove the following
Bah.. anyways, you're lucky, the way you wrote it is bad.. hence it do nothing. DEFINE OSCCAL_1K 1
Using your code with my config fuse line, it's working as it suppose to.
Last thing, make sure you have a pull-down resistor on GPIO.1.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks