21.07.2015 Views

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

"TMS320C55x DSP Library DSPLIB Programmer's Reference"

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Calculating the Reciprocal of a Q15 NumberIf after each calculation we equate Ym(old) to Ym(new):Ym(old) Ym(new) YmThen equation (c8) evaluates to:Ym 2*Ym Ym 2 * Xnorm(c9)If we start with an initial estimate of Ym, then equation (c9) converges to a solutionvery rapidly (typically 3 iterations for 16-bit resolution).The initial estimate can be obtained from a look-up table, from choosing a midpoint,or simply from linear interpolation. The method chosen for this problemis linear interpolation and accomplished by taking the complement of the leastsignificant bits of the Xnorm value.Calculating the Reciprocal of a Q15 NumberB-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!