
Originally Posted by
MrRoboto
thanks for the reply.
I used endif as one word,it didnt show right here though.
I want the pin to be set to HIGH, 5 volts, how would I tell it that.
What is the book test.BAS??
any suggestions how i could accomplish what I am trying to do?
switch them around a bit. . .
instead of
Code:
PORTB.7=high 'enable pin
PORTB.6=low 'stop this side
say it with feeling, like so . . .
Code:
High PortB.7
Low PortB.6
Still better yet, set the ports to a known state first, set the tris registers to inputs or outputs as desired second, and then in your code control them by making statements like PortB.7 = 1 or PortB.6 = 0
as far as errors go BASIC CODE from book test.bas must be your file name.
Last edited by Archangel; - 6th December 2008 at 08:51.
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