Re: porta.0 and porta.2 only goes high with HIGH command with PIC18F45K80
Make sure to disable comparators & ECCP module. Using HIGH /LOW commands disables all analog (generally) for you. PICs default to Analog inputs and you have to be sure to turn it all off to get digital to work. And it makes sense too, analog inputs are incapable of causing any "unintended" actions downstream, like shorting something out or causing a machine to suddenly start running on power up. It is for THAT reason you should set your port states prior to assigning TRIS to outputs.
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