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

Does my embedded system have Floating Point Unit?

How do I find out if my embedded system has Floating Point Unit(FPU)? I'm using Keil tools.
Our target board uses NXP LPC2468 series Microcontroller ? Does this microcontroller have FPU? Looking in the microcontroller manual I couldn't find any information on FPU.

Parents
  • Given: 5351 minutes
    My embedded application needs to: 5351/60 = 89.18333..
    Then, I would send 891 or 892 to PC application. They would divide by 10 and display
    891 or 892 hours.

    Not to appear retarded, but wouldn't (5351 + 3) / 6 do this

    Or more generally y = (x + 3) / 6

    To answer your other questions, yes Keil has software floating point libraries, ARM has had routines since inception. GNU/GCC also has math libraries (libm.a)

    Generally fixed point is implemented by a user who understands the range of the number space they plan on supporting, and they chose a representation which is appropriate. If you understand math, the methods to eliminate the use of floating point should be fairly apparent.

    Not sure shifting helps here, you're attempting to represent numbers in decimal, not binary, as you transmit them. Fixed point would shift the number and provided additional precision. You'd pull out the integer portion first, and then multiply by 10 to extract the fractional digits. Frankly scaling makes more sense here than shifting.

Reply
  • Given: 5351 minutes
    My embedded application needs to: 5351/60 = 89.18333..
    Then, I would send 891 or 892 to PC application. They would divide by 10 and display
    891 or 892 hours.

    Not to appear retarded, but wouldn't (5351 + 3) / 6 do this

    Or more generally y = (x + 3) / 6

    To answer your other questions, yes Keil has software floating point libraries, ARM has had routines since inception. GNU/GCC also has math libraries (libm.a)

    Generally fixed point is implemented by a user who understands the range of the number space they plan on supporting, and they chose a representation which is appropriate. If you understand math, the methods to eliminate the use of floating point should be fairly apparent.

    Not sure shifting helps here, you're attempting to represent numbers in decimal, not binary, as you transmit them. Fixed point would shift the number and provided additional precision. You'd pull out the integer portion first, and then multiply by 10 to extract the fractional digits. Frankly scaling makes more sense here than shifting.

Children