> Wow as a newbie, your code is very understandable. Do you have a site with > more of that style code. See http://www.embedinc.com/pic. There is a lot more code I intend to add to it eventually. For now, there is an extensive set of macros I use for PIC development. These include bank switching, general registers, a software stack, subroutine linkage, and some other tidbits. ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads