You can usese PIC - it was written specifically for your intended purpose. Shameless plug: http://www.onlamp.com/pub/a/onlamp/2007/06/21/in-praise-of-pic.html More references in the cited article. Best, Ph.