Dear all
I am the new one of using PIC. Now I want to make the stepper motor control ciruict using PIC 16F84a and transistor to drive the stepper motor...
I want to control the speed and the direction of the motor...Would anyone like to show me or give me the circuit diagram? Thank a lot to all
Interesting architectural decision he has made to run a tight loop continually testing PORTA for bit changes - essentially implementing his own interrupt request detection / handling. I can see this being handy for driving 2 motors through PORTB (8 bits - 4 per motor) with step & dir for each motor being read on PORTA (plus an inhibit?).
However, he is driving only one motor. So why not use RB0 as step pulse and use an interrupt handler?