> 2. Recalculate this number to the number of 26uS units in > your pulse, using Olin's floating point code for example, > if needed. Since timer 1 is guaranteed to be only 16 bits, I would use fixed point multiply with 32 bit result. Sorry but I don't give away the good stuff, which includes the fixed point and floating point math routines. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, 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