PDA

View Full Version : pic 16f877



bobduca
- 17th November 2009, 22:56
Hi, I'm just starting to try programming my pic and am looking for source code for running motors. Any help would be appreciated.
Bob D

FromTheCockpit
- 17th November 2009, 23:08
runmotor:
high portb.1
pause 3000
low portb.1
end

This will run your motor for 3 seconds to portb.1 and end.
You have to be a lot more specific if you want any more help ;)