This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Floating point division

Other Parts Discussed in Thread: TMS320F28335

How to do floating point division (or rather finding out inverse of a variable) in TMS320F28335? Can someone please give me the assembly language code for this? The instruction EINVF32 seems not so accurate..

 

Thank you.

  • The EINVF32 operation generates an estimate of 1/X in 32-bit floating-point format accurate to approximately 8 bits. This value can be used in a Newton-Raphson algorithm to get a more accurate answer. That is:

    Ye = Estimate(1/X);
    Ye = Ye*(2.0 - Ye*X)
    Ye = Ye*(2.0 - Ye*X)

    Please take a look at the following resources for assembly code examples to  implement this.

    Regards

    Lori