Very cool! how do you get the data into / out of the UDB, and how do you select sine / cosine calculation?
Since it is the same algorithm sine and cosine are calculated at the same time and retrieved together. Have a look at the (excellent) documentation.
The initial angle to calculate from is given with the Start() API.
I like that component!
Will there be a chance to implement this for PSoC5(LP) ?
Thanks guys. :)
Yes, the API and usage information are in the accompanying datasheet. You simply need to call the Start(uint16 angle) API to start the calculation.
I originally intended for this component to be supported for both PSoC3 and PSoC5LP, but I've only had the chance to verify it on PSoC3. I Hope to get this done when I can get my hands on a PSoC5LP and have the time to develop it.
many thanks for that component too! Love to see, someone did this.
Will there also be the inverse version phi = f(sin(phi), cos(phi)) for getting phase angle out of sine and cosine? I did this for myself but with less to none efford in space utilization and a lot more DP in use than you .
I'll be making the inverse version and adding it as a part of this component in the next version.