??? 03/28/07 20:09 Read: times |
#136056 - A couple of options Responding to: ???'s previous message |
I ran across a math coprocessor chip that looks interesting (I haven't used it myself), it has a serial interface so it doesn't consume a lot of IO pins. Check it out at http://www.micromegacorp.com/
In all of my coding I've yet to need floating point...I just don't want to put up with the code bloat and speed that it involves. Instead I used integer math. When I needed to do some trig functions for calculating compass headings (similar to what you're doing actually) I found that the cordic algorithm produced results accurate enough for my purposes. If you do a quick google search on cordic you'll get a lot of hits... Dennis |
Topic | Author | Date |
calculate sine, cosine in an 8051 | 01/01/70 00:00 | |
A couple of options | 01/01/70 00:00 | |
let\'s play a game... | 01/01/70 00:00 | |
pin1 is a dead give away | 01/01/70 00:00 | |
its upto you but this is a sincos function | 01/01/70 00:00 | |
Jez ,what is EPS2 constant? | 01/01/70 00:00 | |
SDCC | 01/01/70 00:00 | |
looks impressive | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
Lookup table + interpolation. | 01/01/70 00:00 | |
Lookup table and interpolation![]() | 01/01/70 00:00 | |
Don't overlook the obvious | 01/01/70 00:00 | |
What Compiler? | 01/01/70 00:00 | |
The answer | 01/01/70 00:00 | |
More Coprocessors & Libraries | 01/01/70 00:00 | |
Obligatory | 01/01/70 00:00 | |
You're too late | 01/01/70 00:00 | |
OOps | 01/01/70 00:00 |