Archive for the ‘AVR’ Category

Tiny Threads - Tiny Multitasking Threads for Microcontrollers

Thursday, December 27th, 2007

For the efficiency and performance conscious C programmers, here is my tiny cooperative multitasking engine.

This was made for PIC16F micros that has a very small available flash for code and ram/memory. But this can be used also for other processors because I tried to make it ANSI compliant. For the PIC16F processor, this uses only 1 byte RAM needed per thread and compiles to a very small overhead context switching.