Re: Problem getting button to turn on LED using 12F675

Originally Posted by
Jeff
Thanks guys, you were both right; rookie mistake on my part. It works now - onward and upward. Now the button turns on LED2 and off LED1. SWEET!
Welcome back Jeff,
3 years almost. I think what trips up people is this statement,
CMCON = $?? 'MAKE PINS DIGITAL
Which seems to reappear on a regular basis, perhaps copy paste, it should more factually report,
CMCON = $?? 'Disable input Comparators
The ANSEL is the 'MAKE PINS DIGITAL part of the equation, as you found out, My post here is for the future newbies who read this post.
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