Has anyone made their own multitasker for a PIC or SX device?
Germain Morbe email (remove spam text)
i once did that on a 8049 in the late 80s.
I used an empty main loop to wait for the next int. Therefore all threads
did need to finish before the next int happened. Since every task was ended
before a second int, there was no need to store the exit point which is
always the same. Also the routines are always executed from the start. That
means no worry about the next entry point.
Drawback is to always waste some time in the empty mainloop.
On the other hand, if you let your threads execute until the next int
happens then you would waste no time but you will need to store your exit
point for the next entry.
But i think you will have no good chance to do that because the next int
pop you off your actual task without any warning.
http://www.piclist.com hint: The PICList is archived three different
ways. See http://www.piclist.com/#archives for details.
See also: www.piclist.com/techref/ubicom/devices.htm?key=sx
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the