i need a pulse counter software in picbasic so i could implement a clock/direction stepper motor driver using pic16f84.i want my pic board to be like allegro's 5804 stepper motor driver. 5 inputs: direction,clock or step(pulse for this input.every high to low transition the stepper motor would increment step),mode (2 pin input) 00 for 2 phase,01 for full,10 for half and 11 for step inhibit,output enable.
i dont know how to go about the counting and incrementing part.should interrupt be used?
help pls.
-vortech