Part Number: MSP430F5529
Tool/software: Code Composer Studio
HI,
I am working with UART of MSP430F5529, and am able to transmit one character on terminal. Now i am reading temperature data from the sensor and the value is stored in tempCelcius as show in the code below. the value i get is 31.25 and i wish to display this on terminal using UART so how should i proceed with the code to display the temperature data.
void ADXL362_ReadTemperature(void)
{
P3OUT &= ~BIT2;
SPI_RW(0x0B);
SPI_RW(0x14);
tempdata[0]=SPI_RW(0x00); ///temp data
tempdata[1] = SPI_RW(0x00);///temp data
tempdata[1]= tempdata[1]<<8;
adddata = tempdata[1]+tempdata[0];
tempCelsius = adddata * 0.065;
}
Please help me with this
Thank You,
Pratiksha bhuta