Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

floating point - Math - and Trigonometry with msp430g2553

$
0
0

Hi Everyone,

 

I have been looking for about an hour online and haven't been able to find the answers to these questions.

- Can I use floating point with the msp4302553 ? the watch expression on CCS don't seems to like floating point for sure.

- Can I use math.h to do trigonometry calculus on the msp430g2553 ?

 

Let me tell you guys what I am trying to do so that it is more clear:

I am scanning a signal with an ADC. I would like to do an atan() on the signal and output the signal with an DAC.

Right now I can scan the signal and send it to the DAC. This works well. But I can't get the trigonometric conversion to work.

 

Is it possible to do it? And if yes could I get a little help from you guys ?

 

Thanks in advance for your help.

 

Thomas

 

PS: I saw about these Qmath functions that came out recently but couldn't get it to work either

http://www.ti.com/tool/MSP430-iqmathLIB?DCMP=ep-mcu-msp-iqmath-en&HQS=ep-mcu-msp-iqmath-pr-sw2-en


Viewing all articles
Browse latest Browse all 2077

Trending Articles