Thanks for the reply, I have so far made a few basic programs such as using an input to change the output port. I have experience in both Ada and Java, so both top down design and OOP, but none in assembly. What I am trying to do is make the motor turn on for 5 seconds after an input (A) has a high input pulse. In pseudo code I want this to happen B := Master reset If B = 1 then begin loop Loop until A := high begin Motor On; end loopA; delay 5 seconds end loopb; The idea of the program is based on using feedback created using a Hall Effect device (A) as a pick up to a magnet attached to a disc on the motor; this makes the motor act like a stepper. The main problem I have at present is in programming a delay. Thanks for your help, Mark -- View this message in context: http://www.nabble.com/New-Pic-Programmer-t1773000.html#a4827800 Sent from the MicroControllers - PIC forum at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist