Hi,
I am developing a driver for ICM-42670(SPI) for nrf5 sdk, I have followed the TDK Invensense documentation for using WOM feature, I've successfully enabled the accelerometer low-power mode and set the threshold. However, an issue has arise where setting the WOM_EN bit requires first configuring the WOM_CONFIG bits (bit 1 and 2) before bit 0, but bit 0 isn’t setting as expected when following this sequence. Interestingly, setting bit 0 alone in WOM_CONFIG works correctly. Despite adhering to the documentation, this issue persists.
Could you please let me know how i will resolve the issue. As setting the WOM_MODE is also needed for our application.
Any helps or hints are highly appreciated.
Thank you.
- Log in to post comments
phpbb Topic ID
47592
Hello,
Sorry that you are having issues with setting up WOM feature. You said, " bit 0 isn’t setting as expected when following this sequence", does this mean you can't set this bit at all?
When I only set the bit 0, it does set correctly. But when I try to set bit 0 after setting bit 1, it still shows 0x02 when reading the wom_config register, although it is writing 0x03.
Moreover, some other registers are also giving the same behavior, setting some bits clears other bits. eg: writing 0x0E to ACCEL_CONFIG0 showing 0x0C upon read.