Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: Code Composer and MSP430FR5969 - problem with the calculations

$
0
0
Hi, Can someone explain my whats going on with the Code Composer Studio? Im did this code to show the problem. Calculations are wrong, and I don't know whats going on. This works on MSP430FR5969 launchpad. #include long double a,b,c; int test; int main(void) { WDTCTL = WDTPW | WDTHOLD; a = 32768 / 572; b = a / 2; c = b * 60; test = ((32768/572)/2)*60; while(1); } I guess that CC is configurated wrong, what should I do to see right calculations?

Viewing all articles
Browse latest Browse all 62309

Trending Articles