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.

msp430 floating point operations

Other Parts Discussed in Thread: MSP430F2418, MSPMATHLIB

Hello,

I am using msp430f2418 MCU. i want to calculate   cos (26.352) . Value of angle may change but i want three digit after decimal point to calculate cos function. Is it possible with my MCU. i am using CCS 6.1.2 and latest compiler 15.0 and using C programming language.

Note that value of angle mentioned here is in degree.

  • Hi Jingesh!

    For your processor you can use the C standard library math.h that includes

    • double cos( double x )

    But note that the angle is in radian, not degree.

    There is a MSPMATHLIB, but the homepage says it is for MSP430F5xx, MSP430F6xx and FRAM based MSPs, so I don't now if it is somehow usable on your MSP430F2418. Maybe someone else knows better than me. I never used it so far.

    Dennis

**Attention** This is a public forum