Can you post the whole code and exactly what is it doing or not doing?
Dave
Always wear safety glasses while programming.
Why not use Toggle ?Code:iF PORTB.1=0 then HIGH PORTB.5 WHILE PORTB.0=0 : Wend : pause 50 ENDIF
Do not know what you are doing with PORTB.0 or why it is always low in eachCode:IF PORTB.1=0 then toggle PORTB.5 WHILE PORTB.0=0 : Wend : pause 50 ENDIF
if then loop . . . or is that a copy paste error, and is low only in the first loop ?
maybe should be PortB.1 in this loop ? Select case could tidy this up even more . . .
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.
If you are simulating it as seen in your schematic, then the simulator might be giving false simulation because you do not have resistors on the leds.
I say this is 98% possibility of the error you are getting.
------------------
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Hi,
I do not remember the 16F84 had an internal oscillator ...
none aboard the ( censored ) simulation ...
But I'm just getting 53 ...
Alain
PS: Ahhhhh ... Da Vinci Code !!!!
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks