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
  • Basic math facts:

    60 / 10 = 6

    60 / 2 = 30

    1 / 2 = 0.5

    0.5 * 60 = 30 Multiply by reciprocal, it's computationally cheaper

    30 / 10 = 3

    0.5 * 6 = 3

    Done in floating point

    TenthsOfHours = (int)(((Mins / 60.0) * 10.0) + 0.5); // Rounding up

    In order to maintain precision with integer math we need to move the divide to the final operation
    = (((Mins * 10.0) / 60.0) + 0.5)
    = (((Mins * 1.0) / 6.0) + 0.5)
    = ((Mins / 6.0) + 0.5)
    = ((Mins + 3.0) / 6.0)
    = ((Mins + 3) / 6)

Reply
  • Basic math facts:

    60 / 10 = 6

    60 / 2 = 30

    1 / 2 = 0.5

    0.5 * 60 = 30 Multiply by reciprocal, it's computationally cheaper

    30 / 10 = 3

    0.5 * 6 = 3

    Done in floating point

    TenthsOfHours = (int)(((Mins / 60.0) * 10.0) + 0.5); // Rounding up

    In order to maintain precision with integer math we need to move the divide to the final operation
    = (((Mins * 10.0) / 60.0) + 0.5)
    = (((Mins * 1.0) / 6.0) + 0.5)
    = ((Mins / 6.0) + 0.5)
    = ((Mins + 3.0) / 6.0)
    = ((Mins + 3) / 6)

Children