Hi all,
I'm doing this project for school to control a few servo motors and I am fairly new to PIC programming.
I just have one question I hope someone can help me with:
Is it possible to run a program on your PIC but let it execute a different part after 20 seconds and then stop everything?
Edit: I am using a 16F84 PIC
So its functionality would look like this (of course it looks nothing like the actual code):
timer 20 seconds
if not at 0 goto mainprogram
if at zero goto subprogram
mainprogram
control the servos
goto mainprogram
subprogram
put the servos in a locked position
end
Kind regards,
Floris
I'm doing this project for school to control a few servo motors and I am fairly new to PIC programming.
I just have one question I hope someone can help me with:
Is it possible to run a program on your PIC but let it execute a different part after 20 seconds and then stop everything?
Edit: I am using a 16F84 PIC
So its functionality would look like this (of course it looks nothing like the actual code):
timer 20 seconds
if not at 0 goto mainprogram
if at zero goto subprogram
mainprogram
control the servos
goto mainprogram
subprogram
put the servos in a locked position
end
Kind regards,
Floris
Last edited: