BRAD,
What PIC? You posted in the PBC section and not PBP - is this correct? If you are using PBC, try
Code:
'Example for 16F628A with PBC (Not PBP)
POKE $86, 0 ' all of PORTB output (optional line but good programming practice)
POKE $06, 0 ' all of PORTB low (optional line but good programming practice)
MAIN:
PAUSE 500 ' no LED on
FOR B0 = 0 to 3
HIGH B0 ' turn ON RB0, then RB1, then RB2, then RB3
PAUSE 500 ' pause half a second
NEXT B0
FOR B0 = 0 to 3
LOW B0 ' turn OFF RB0, then RB1, then RB2, then RB3
PAUSE 500 ' pause half a second
NEXT B0
PAUSE 500 ' no LED on
GOTO MAIN
END
You might also want to check out Melanie's excellent post here
http://tinyurl.com/gpt6b
and search the forum for "rider" (as in knight rider) for more visual ideas.
Any questions?
Bookmarks