Solar000
Member level 2
Hello, i am using microC to program pic16f877a to operate motors and solenoids.
I have some functions making motors move at different space times,for ex. motor1 moves for100ms,stops,moves again for 100ms etc. for 4 loops, motor2 for200ms and so, but i want these functions to start the same time.
Is it possible to do this with micro c for this pic and if not is it possible with another pic or language?
Perhaps i can do it manually like move 2 motors for 100ms, stop, move only 1 motor for another 100ms,stop, but it will take too much code without using loops.
Thank you.
I have some functions making motors move at different space times,for ex. motor1 moves for100ms,stops,moves again for 100ms etc. for 4 loops, motor2 for200ms and so, but i want these functions to start the same time.
Is it possible to do this with micro c for this pic and if not is it possible with another pic or language?
Perhaps i can do it manually like move 2 motors for 100ms, stop, move only 1 motor for another 100ms,stop, but it will take too much code without using loops.
Thank you.