TrisD = %00001000 ' all port d as outputs except bit 3 input
TrisC = %01010000 ' all port c outputs except bits 6 and 4 inputs
TrisA = %00000000 ' all port a as outputs
TrisB = %11110000 ' lower 4 bits outputs upper inputs
TrisE = %00000000 ' all 8 bits as outputs
edit: Sougata undoubtly knows what he is talking about and posted while I was writing.
Last edited by Archangel; - 17th March 2008 at 16:28.
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