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.

Double precision addition in MSP430F5438A with Code Composer studio.

Other Parts Discussed in Thread: MSP430F5438A

Hi,

I am using MSP430F5438A. The double allots 32 bit only at CCS. How to set it as 64 bits. I am reading from a devices, which produces 8 bytes for double. It should be added and write to another device. The struct and uions are given below. I am using CCS 5.1. Looking forward of reply. Thanks.

typedef union regType_t{
    unsigned char cha[8];
    unsigned int i;
    double d;
    float f;
    long l;
    char c;
  }regTy;

EXTERN regTy storeSlaveRegValues[2];
EXTERN regTy calculateSlaveRegValues;

calculateSlaveRegValues.d = storeSlaveRegValues[0].d + storeSlaveRegValues[1].d;

**Attention** This is a public forum