Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Anybody have timings for cos() and sqrt() on LPCx etc.?

2005-01-26 by tonalbuilder2002

I'm starting design work on a robotics controller that requires
lots of floating point cos(), sin(), and sqrt().

I use 16 bit Freescale MC9S12 processors in the current version of 
the design.  With the fastest possible clock and the Codewarrior 
compiler it handles floating point multiplies in a decent 8 
microseconds, but slips to ~400 microseconds for cos(), and ~250 
microseconds for  sqrt().  This puts me at the minimum timing specs 
for the design.

Would appreciate hearing any numbers you might have for cos(), sqrt), 
etc. on the smaller ARMs, and the compiler, processor, and clock 
speed that produced them.

Thanks!

Bill Tondreau
http://www.kupercontrols.com

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.