Post Go back to editing

ADXL355 TEMP2 (0x06) stuck at 0x0B after power-up, TEMP1 tracks die temp, accel OK across multiple parts

Category: Software
Product Number: ADXL355
Software Version: N/A (custom STM32 HAL bare-metal driver, no ADI no-OS)

uint16_t ADXL355_ReadTemperatureRaw(void)
{
uint8_t buf[2];

ADXL355_ReadRegisters_Sequential(ADXL355_TEMP2, buf);

uint16_t raw = ((buf[0] & 0x0F) << 8) | buf[1];

printf("TEMP2=0x%02X, TEMP1=0x%02X, RAW=%u\r\n",
buf[0], buf[1], raw);

return raw;
}



TEMP2=0x0B, TEMP1=0x9D, RAW=2973
AX=0.042 AY=0.012 AZ=1.070 Roll=0.67° Pitch=-2.23°

temp raw is 2973 ,but the tem is about 26℃。Why it is not 1852?Where can i get help.

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.