- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
A program I just finished makes extensive use of cos() sin() functions, which makes the whole algorithm way too slow on a PSoC 5LP at 67MHz...
I was wondering, could UDB be programmed to calculate this functions somehow via hardware... (I'm in the process of trying Taylor/Cheby polynomials, but a hardware solution would definitevitely do it!! )
THANKS!
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CORDIC algorithim one approach -
http://en.wikipedia.org/wiki/CORDIC
The there is alwas UDB asm and editor to construct your own
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Another approach is use of a lookup table, size and element size
of course controlling accuracy.
If you google "embedded sine algorithms" you will get a number
of hits on papers, solutions.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Dana,
I'm aware of the different approaches to calculate a sin, cos more efficiently.... I'm just not sure which one could be programmed into UDBs since I haven't looked into them on detail.... I'll look onto de cordic alg.
thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is UDB based CORDIC -
http://portal.cypress.com/?app=forum&id=2492&rID=73361
http://www.cypress.com/?app=forum&id=2492&rID=74650
Regards, Dana.