摘要 |
A method of generating sine/cosine function and an apparatus using the same in digital signal processor are disclosed. The method for generating sine/cosine function values corresponding to a first digital phase values, comprising the steps of: a) receiving a second digital phase values, obtained by performing 2 pi modulo operation for the first digital phase values, having the first bit group representing a quadrant and the second bit group representing a phase value, at each first clock; b) forming a look-up table having as much storage locations as determined by the second bit group, for converting phase values of any one quadrant to one of sine and cosine function values; c) generating a first address signal from the second bit group and a second address signal by inverting the second bit group; d) generating sine and cosine function values for the same phase value corresponding to both the first and second address signals by accessing the look-up table, at each second clock being faster than the first clock; and e) generating sine and cosine function values for the first digital phase values by multiplexing the sine and cosine function values obtained in the step d) according to the first bit group. Therefore, the capacity of memory needed for the look-up table can be decreased without an excessive increase in hardware.
|