piclist 2001\01\18\235127a >
Thread: Has anyone made their own multitasker for a PIC or SX device?
www.piclist.com/techref/ubicom/devices.htm?key=sx
flavicon
face BY : Dan Michaels email (remove spam text)



Neil Gandler wrote:
>I was considering making a crude multitasker for the PIC
>and even the SX device. Especially with SX devices with its
>blinding up-to 100MIPS speed, it would benefit from such
>a multitasking scheme.

There is an old Mchp appnote describing a rudimentary
multitasker, AN585.
================


The way I would do it is to create
>a number or threads that execute every interrupt cycle,
>which interval depends on the timer overflow. For example,
>an interrupt can be set to occur ever 20us. And if there are
>32 threads, each thread would excute every 640us.


What you are describing here is the basic idea underlying
the Scenix VPs - virtual peripherals. TImer overflows every
6 usec or so, and a divider on each process counts down the
interrupts to determine when the process should run/etc.

The big problem you encounter with the scenix, IMO, is that
even with its high performance, it still bogs down when the
#processes starts to grow.

- danM

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


<1.5.4.16.20010118213640.31e7e0ee@pop.dnvr.uswest.net>

See also: www.piclist.com/techref/ubicom/devices.htm?key=sx
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Has anyone made their own multitasker for a PIC or SX device?

month overview.

new search...