That's a start . . . .
now add a byte variable and a word variable, give them names meaningful to you, like LED1 or OUTPUTLED1 or MBOXVAR1, right now they will just be there, not doing anything, and compile to check for errors.
edit: Set your port latch before the Tris register, that way when the tris turns the port to outputs, they will be set at the desired state, next we will work on config statements.
Last edited by Archangel; - 9th October 2008 at 20:24.
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