cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSO

KevinHSU
Associate

I want to read Temperature data in register [20h,21h] , but the data I read are 0x00 , should I setting which register ?  

3 REPLIES 3
Pierre_Paris
ST Employee

Hello @KevinHSU,

Thank you for your question.

  • What is the value of ODR_T_BATCH_[1:0] in FIFO_CTRL4 (0Ah) ? If it's 00, the temperature is not batched in FIFO (default). You need to select a data rate (eg : 11 for 52 Hz).
  • Also, can you check the TDA bit in the STATUS_REG (1Eh) ? It indicates if new data are available or not.

Best Regards,

Pierre

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hellow Pierre

The FIFO_CTRL4 (0Ah) value is 0x30 , so ODR_T_BATCH_[1:0] is "11" , and I check the 1Eh still 0x00 .

Do you have another suggestion

thanks

Pierre_Paris
ST Employee

Hello @KevinHSU,

  • What is the value of TAG_SENSOR_[4:0] in FIFO_DATA_OUT_TAG (78h) ?
  • And are you using the interrupt on INT2 pin, what is the value of INT2_CTRL (0Eh) register ?
  • Have you always respected the AMR ?

Best Regards,

Pierre

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.