Dear TDK support.
Could you help me figure out with reading of measurements for IIM 42352?
At the beginning I want to read data by request without FIFO and afterwords use FIFO.
Setup description:
I have a custom board that contain this sensor with SPI connection. Interrupt pins are not used.
I have succeed with reading and writing of registers.
Debug print out:
PWR_MGMT0:0x13
FSYNC_CONFIG:0x10
SENSOR_CONFIG0:0xbf
temp_raw:-32768
T=-222.34299516908214
ax=-32768, ay=-32768, az=-32768
scale:3
gs:2048.0
(-16.0, -16.0, -16.0)
Thank you in advance, Serhii
Dear TDK support.
I hope you are doing well.
Could you provide a state machine description how to read the sensor ?
Hello,
Can you read the correct WhoAmI value? Also, you can check out our documentation and driver here: https://invensense.tdk.com/products/smartindustrial/iim-42352/
https://invensense.tdk.com/developers/software-downloads/#smartindustrial
Hello Mustafa.
Thank you for your replay.
I can read correct WhoAmI value.
PWR_MGMT0:0x13
FSYNC_CONFIG:0x10
INTF_CONFIG0:0x30
SENSOR_CONFIG0:0xbf
OFFSET_USER4:0x0
OFFSET_USER5:0x0
OFFSET_USER6:0x0
OFFSET_USER7:0x0
OFFSET_USER8:0x0
temp_raw:-32768
T=-222.34299516908214
ax=-32768, ay=-32768, az=-32768
scale:3
gs:2048.0
(-16.0, -16.0, -16.0)
Is possible to organize a debug session somehow ?
I can attach data from a logical analyzer if it is necessary.
I have some progress with the sensor.
It looks like I can read sensor data only once after reset so DRY bit is zero afterwards.
Debug printout:
ID:0x6d
4182 -7260 14220
scale:3
gs:2048.0
(2.0419921875, -3.544921875, 6.943359375)
PWR_MGMT0:0x3
FSYNC_CONFIG:0x0
ACCEL_CONFIG0:0x66
DRIVE_CONFIG:0x5
INT_CONFIG:0x0
FIFO_CONFIG:0x0
INT_CONFIG0:0x0
INT_CONFIG1:0x10
SENSOR_CONFIG0:0xbf
INTF_CONFIG4:0x83
OFFSET_USER4:0x0
OFFSET_USER5:0x0
OFFSET_USER6:0x0
OFFSET_USER7:0x0
OFFSET_USER8:0x0
None
PWR_MGMT0:0x3
FSYNC_CONFIG:0x0
ACCEL_CONFIG0:0x66
DRIVE_CONFIG:0x5
INT_CONFIG:0x0
FIFO_CONFIG:0x0
INT_CONFIG0:0x0
INT_CONFIG1:0x10
SENSOR_CONFIG0:0xbf
INTF_CONFIG4:0x83
OFFSET_USER4:0x0
OFFSET_USER5:0x0
OFFSET_USER6:0x0
OFFSET_USER7:0x0
OFFSET_USER8:0x0
None