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.

Code Composer and MSP430FR5969 - problem with the calculations

Other Parts Discussed in Thread: MSP430FR5969

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 <msp430.h>

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?

**Attention** This is a public forum