I need someone to modify the code to read the ADC of input pin 7, compare the voltage to a table and output forward or reverse or no motion signals to one unipolar stepper motor. I have a circuit schematic if needed.
GP5 output > clockwise half-step
GP4 output > counter-clockwise half-step
GP0 input > 0-5v
If < 1.2v OR = 1.2v then stepper half-steps clockwise
If > 1.2v AND < 2v OR = 2v then motor position doesn't move
If > 2v then stepper half-steps counter-clockwise
I don't know how to do this in Assembly Language or where to place it so make [login to view URL] line up with the above information.