At 09:59 AM 11/20/2003 -0800, you wrote: >I need to do sin() and cos() functions in a PIC chip, but much faster >than the 3 ms time required by the CCS C compiler. Any advice on how >this is done with less precision and much more speed? I need >three-byte integers. Hi, Bryan:- How about a LUT with linear interpolation? Sin and Cos can be done with a single quadrant of storage (say, sin(x) from 0 to pi/2), by manipulating the angle beforehand. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.