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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix BACalculating the Reciprocal of a Q15 NumberThe most optimal method for calculating the inverse of a fractional number(Y=1/X) is to normalize the number first. This limits the range of the numberas follows:0.5 Xnorm 1–1 Xnorm –0.5 (1)The resulting equation becomesY 1(Xnorm *2 n )orY 2nXnormwhere n = 1, 2, 3, …, 14, 15Letting Ye 2 n :Ye 2 n (3)Substituting (3) into equation (2):Y Ye *1(4)XnormLetting Ym 1Xnorm :Ym 1(5)XnormSubstituting (5) into equation (4):Y Ye * Ym (6)For the given range of Xnorm, the range of Ym is:1 Ym 2–2 Ym –1 (7)To calculate the value of Ym, various options are possible:a) Taylor Series Expansionb) 2nd,3rd,4th,.. Order Polynomial (Line Of Best Fit)c) Successive Approximation(2)B-1

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

Saved successfully!

Ooh no, something went wrong!