> > It is *possible* to do preemptive multitasking. I just can't see > > any reason to actually use it. > > I can see plenty of reasons, but often they will not outweight the added > CPU and memory use. My first system was a 6502 homebrew board in a wooden case. It eventually had 18k RAM. Some PICs have a greater capacity. Theoretically I could write a multitasking system similar to the one I wrote of the 6502. However, I just don't think it would be worthwhile. I seem to remember that somebody has already written a multitasking kernel for the PIC but I've never had any occasion to look closely at it. I use my PICs for fairly small things where I can handle pretty much everything I need to in assembly. -- D. Jay Newman ! Author of: jay@sprucegrove.com ! _Linux Robotics: Building Smarter Robots_ http://enerd.ws/robots/ ! (Now I can get back to building robots.) -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist