Hello CumQuaT,
Welcome to the forum.

Originally Posted by
CumQuaT
Anyone have some advice?
You could start by telling us what kind of problem you are having . . . DOA . . . ?
A couple of things, DEFINE OSC 4 near the top of your code.
If you are not using analog on PortA add cmcon = 7 to disable the comparators there so it doesn't trip you later.
Set up your Ports as high or low before setting your TRIS registers, and do not skip setting those.
Code:
'a config statement should go here unless default config is just right
DEFINE OSC 4
cmcon = 7
PortA = 0
PortB = 0 set all output latches low
TrisA = %00000000 'set PortA as all outputs
TrisB = %11100000 '5,6,7 as inputs all others as outputs
Main:
' . . . . your code goes here
goto Main
end
EDIT: Serial data, True idles high, and wants a pull up resistor on the data line to 5v +
Inverted idles LOW and wants a resistor pulling to logic LOW or ground.
Last edited by Archangel; - 1st September 2009 at 05:22.
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