> >However, I'm not at all sure how I go about multiplying > >8bit values by floating point values in the first place. > >Once I've worked out how to do this however, I assume I'm > >going to be left with a value that's also a floating point, > >so I need to know how to appropriately round the value > >to an 8bit integer value. > > >I guess what I need is an 8bit*16bit(?) floating point=8bit routine. > > At a guess I would say you need to get stuck into this bit of > code using C > to make the math handling easier. Then use assembler to > program after that > if your not too happy with C. > > My recommendation would be to get Hitech C Lite for the > 16F84/16F627 and try > doing this as a C module. I don't know if it will do linkable > modules, but > you may get that enthused you do the whole thing in C :) Thanks for the tip - I wasnt aware there was a 'free' version of a PIC C compiler at all, might well be handy in the future. I've only ever had experience with Visual Basic before(!) - Oh how I long for the CInt() function right now ;) Anyway, I hope I've found something which will do the trick, the PICList code generator: http://www.piclist.com/techref/piclist/codegen/constdivmul.htm Seems to have generated some code I hope I can just plug-in-and-play with. Fingers crossed. Chris. The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu