2025-06-30 2:10 PM - edited 2025-06-30 2:39 PM
I'm currently working with the LSM6DSV16X IMU and would like to connect an external sensor—specifically the SHT40 (a humidity and temperature sensor from Sensirion)—via the Sensor Hub feature.
My hardware setup uses SPI for communication between the microcontroller (master) and the LSM6DSV16X. The SHT40 is connected to the LSM6DSV16X via the I²C interface (Sensor Hub port). Already got the other two sensors(LIS2 and LPS22) working.
Here’s what I’m trying to accomplish:
Trigger a measurement on the SHT40 through the Sensor Hub (Slave 0 write)
Read the result using Slave3 (external sensor read)
Eventually collect the data via FIFO or directly through Sensor Hub registers
Questions:
Is it possible to interface the SHT40 as an external sensor through the LSM6DSV16X Sensor Hub while using SPI as the main interface to the host?
The SHT40 does not use register addressing (i.e., it does not support a subaddress). Does the LSM6DSV16X Sensor Hub support communication with devices like this?
Are there any examples or register configurations you can share for setting this up, particularly without relying on subaddressing?
Any help, register-level details, or configuration sequences would be greatly appreciated.