Stepper motor controlled by small Pic 12Fxxx ?
Hello,
I would like to order a stepper motor with a small DIL8 Pic (12F 683-675-629) followed by an L293D Dual H Bridge.
The sequences to be output are (in decimal): 9,5,6,10.
This Nibble must appear on ports GP0-GP1-GP2 and... GP4.
Not on GP3, which is only an input and reads the voltage from a potentiometer!
What "simple command" can I use to output my nibble on the 4 output ports mentioned above (GP0-1-2-4) without interfering with the GP3 input port?
With a Pic that had 4 contiguous outputs (which is not the case here), we would simply have written something like PORT A = 5 ...
Thanks for your help.
Re: Stepper motor controlled by small Pic 12Fxxx ?
Same here. If pin is input, writing to GPIO does nothing for that pin.
So just make binary combination that is disired, and write to GPIO.
Re: Stepper motor controlled by small Pic 12Fxxx ?
Salut à toi, infâme Zorglub ...
tu devrais trouver ton bonheur ici : http://jpparisy.free.fr/schemas_bateaux/tutorial1.html
Alain
Re: Stepper motor controlled by small Pic 12Fxxx ?
Thanks for your quick reply Pedga089.
OK, thanks, I note that writing to the GPIO register will not affect the GP3 input.
So the command in Basic is as easy as I was declining in my request. Great ;))
Have a nice day
Re: Stepper motor controlled by small Pic 12Fxxx ?
Salut à toi machiavélique AceTronics ;)
Je vois que tu connais tes Classiques :))
Je vais aller revoir ton lien très intéressant.
Les codes sont cependant en C me semble t-il...
Bonne journée à toi.