This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Look up Table for XC164CS

hello everyone,

I just want to know if someone has any idea about look up table technique for sine or cosine function using keil simulator. I need to implement it in to my progam. I just want some basic idea. or if someone has good material then let me know.

I am using fixed point dsp Xc164Cs

thank you
Vivek

Parents
  • What do you mean by "Need accuracy about 2 decimal after the point"?

    Do you have an angle in degrees and the angle having two decimals, i.e. 0.00 to 359.99 degrees?

    Or is your requirements that the answer from the sin lookup must be -1.00 to 1.00 with a maximum error of +/- 0.005?

    I not only have an idea, I also suggested a specific solution. If you want maximum speed, i.e. single lookup without interpolation, you need a denser LUT than I suggested.

    If you use linear interpolation, you can decrease the density of the LUT and for example store a lookup value for every 5 degrees.

Reply
  • What do you mean by "Need accuracy about 2 decimal after the point"?

    Do you have an angle in degrees and the angle having two decimals, i.e. 0.00 to 359.99 degrees?

    Or is your requirements that the answer from the sin lookup must be -1.00 to 1.00 with a maximum error of +/- 0.005?

    I not only have an idea, I also suggested a specific solution. If you want maximum speed, i.e. single lookup without interpolation, you need a denser LUT than I suggested.

    If you use linear interpolation, you can decrease the density of the LUT and for example store a lookup value for every 5 degrees.

Children