Part Number: CC2650
Tool/software: TI-RTOS
Hi,
I'm using an ADT7311 to measure temperature. I'm programing the cc2650 with sensorcontroller studio.
Sometimes I measure 0, sometimes 128 ºC and sometimes the right temperature.
Any guess what is the problem?
I wrote the following code:
// Read the sensor1
spiBegin(SPI_POL1_PHA1, AUXIO_SPI_CSN_SS_TEMP1);
spiTx8bit(SPI_POL1_PHA1, 0x50);
spiRx16bit(SPI_POL1_PHA1; output.temp1);
spiEnd(SPI_POL1_PHA1, AUXIO_SPI_CSN_SS_TEMP1);
// Log the output data structure
rtlLogStructs(BV_RTL_LOG_OUTPUT);
// Notify the application
fwGenQuickAlertInterrupt();
// Schedule the next execution five RTC ticks from now
fwScheduleTask(2);