Pic 16f88 Paralell operations
Hi,
I'm studying Mechatronics and they gave us a rather complicated microcontroller task in our first semester. We have to program it in Assembly!
I'm having some problems with my program, I know how to do each part seperately, but I do not know how to combine them and make them run simultaneously.
What I am trying to do is to have a stepper motor run, it's speed can be chaged with a pot, and a photointerrupter counting the amount of turns/second and then displaying the output in binary up to 10.
I'm still busy with getting the steper motor to run, I'm having some trouble with noise, but I have no idea how to do the counting, then the math and displaying it while the motor is still running. As far as I understand it, microcontrollers run linear and cannot do parralell operations. How would I solve this problem?
Thanks in advance!
Hi,
I'm studying Mechatronics and they gave us a rather complicated microcontroller task in our first semester. We have to program it in Assembly!
I'm having some problems with my program, I know how to do each part seperately, but I do not know how to combine them and make them run simultaneously.
What I am trying to do is to have a stepper motor run, it's speed can be chaged with a pot, and a photointerrupter counting the amount of turns/second and then displaying the output in binary up to 10.
I'm still busy with getting the steper motor to run, I'm having some trouble with noise, but I have no idea how to do the counting, then the math and displaying it while the motor is still running. As far as I understand it, microcontrollers run linear and cannot do parralell operations. How would I solve this problem?
Thanks in advance!
Last edited: