Quote Originally Posted by mackrackit View Post
Welcome.

No experience at all...
Lets start off by finding out what too;s you have to work with.

Programmer?
Pic Basic or Pic Basic Pro?
Do you have MPLAB installed?

We normally like to start folks off with an LED blinking program, but yours also looks like a good one to start with.

One of the first things you need to understand is how to configure the PIC.
This thread will help you there.
http://www.picbasic.co.uk/forum/showthread.php?t=543
And this is useful.
http://www.picbasic.co.uk/forum/showthread.php?t=555

The basic code for you app.
Code:
LOOP:
IF PORTx.x = 1 THEN   'Switch pin
HIGH PORTy.y    'Motor pin
PAUSE 6000
LOW PORTy.y
ELSE
LOW PORTy.y
ENDIF
GOTO LOOP



Thank you dave for the advice and for also providing the code for me that was kind of you.
Ill look into it alittle more to determine how you get there and how label each pin