
Originally Posted by
mister_e
FYI, there's a new DEFINE for that
That should save someone some brain damage. Where did you learn that? Das Book ?
Joe S., the 0.01 uF capacitor definitely solved my switch bounce problem. The code now works perfectly and always counts exactly 15 pulses when it activates the external pulse to the valve solenoid.
Credit to where credit is due . . . BRUCE . . . always on target.
After the WRITE, do you still have to re-enable the interrupt? I guess if you have to do all this, I don't see how it is any more efficient than using Joe's 4 statements.
Maybe not more efficient, but way easier.
Last edited by Archangel; - 8th May 2009 at 20:17.
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