Dammit! Gotta get my eyes checked!
Ok, you have a pull up or pull down on PortA.0?
Does the switch seek power or ground when activated ?
Seems like stupid questions, but the problem is nearly always a simple overlooked detail, and hair is too precious to waste on not asking the question.
Ok Ok, I see the val Var is tracking the port status of PortA.0 I would try setting the port status prior to the tris register and triple check for analog stuff still in operation. Does it work if you use High and Low instead of 1 / 0 ? If so that is an indicator of analog stuff still active.
Last edited by Archangel; - 11th October 2009 at 05:43.
Reason: missed seeing what he had
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