Try adding this to your code. FLAGS=0 and for the 627A add cmcon=7 to disable the comparators on portA. It is just me but I would initialize the Ports before the Tris with PortB = 0 and PortA = 0 and lose this: OPTION_REG = $80. OPTION_REG = $80 sets WPU when portB is set as input, since you are using it as outputs, it is not needed.
Last edited by Archangel; - 10th February 2009 at 05:46.
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