malc-c
- 11th July 2006, 21:27
Hi,
Firstly, thanks to Alain and Steve for their help on the "Dr Who" pulse light.. the "client" is really happy !
I was just out in the garden doing a spot of weeding, and watched a plane go over (we live on the flight path of Luton airport) and noticed (as it was an older type of plane) that it had a red beacon under its belly, mid way between the wings. This beacon pulsed in the same way...
Now I have in the past managed to write some code that runs through a loop double flashing three ports on a 12F675 that gives a nice strobe effect for model aircraft when using ultra-bright LEDs.
Now here is the question... how simple would it be to get a PIC like the 12F675 to multi-task and run both loops at the same time, without waiting for either to finish. I've not written any code yet, especially as the original double flash routine was my baptisum (sp) of assembly, and effectivley I ended up just typing what I was told to !!
I don't want you guys to spend hours writing sample code, as Im still working on other projects so it may be a while before I'll get started on this project, but just wanted to understand the complexity, if any, of multi-tasking.
Firstly, thanks to Alain and Steve for their help on the "Dr Who" pulse light.. the "client" is really happy !
I was just out in the garden doing a spot of weeding, and watched a plane go over (we live on the flight path of Luton airport) and noticed (as it was an older type of plane) that it had a red beacon under its belly, mid way between the wings. This beacon pulsed in the same way...
Now I have in the past managed to write some code that runs through a loop double flashing three ports on a 12F675 that gives a nice strobe effect for model aircraft when using ultra-bright LEDs.
Now here is the question... how simple would it be to get a PIC like the 12F675 to multi-task and run both loops at the same time, without waiting for either to finish. I've not written any code yet, especially as the original double flash routine was my baptisum (sp) of assembly, and effectivley I ended up just typing what I was told to !!
I don't want you guys to spend hours writing sample code, as Im still working on other projects so it may be a while before I'll get started on this project, but just wanted to understand the complexity, if any, of multi-tasking.