Strange. I have seen toggle do strange things before but cant remember what the problem was.
Out of interest, does it work if you use the following instead of toggle:
IF Heart_Beat_LED=0 THEN
Heart_Beat_LED=1
ELSE
Heart_Beat_LED=0
ENDIF
PAUSE 1000
Strange. I have seen toggle do strange things before but cant remember what the problem was.
Out of interest, does it work if you use the following instead of toggle:
IF Heart_Beat_LED=0 THEN
Heart_Beat_LED=1
ELSE
Heart_Beat_LED=0
ENDIF
PAUSE 1000
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
cmcon0 = 7 'Comparators off. CxIN pins are configured as<b> digital I/O</b>
cmcon0 = 0'Comparators off. CxIN pins are configured as analog
Last edited by Archangel; - 25th September 2009 at 19:03.
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.
Me too.
Nada, doesn't work. Pin stays high, don't see any change with a scope. It always sees Heart_Beat_LED = 0.IF Heart_Beat_LED=0 THEN
Heart_Beat_LED=1
ELSE
Heart_Beat_LED=0
ENDIF
PAUSE 1000
Interestingly enough, which I left off the earlier post, if I write:
The value remains zero in each SEROUT.Code:serout Terminal_TX,6,["1-Heart_Beat_LED = ",#Heart_Beat_LED,13,10] serout Terminal_TX,6,["2-Heart_Beat_LED = ",#Heart_Beat_LED,13,10]
Bookmarks