Skip to main content
Visitor II
April 25, 2019
Question

IIS3DHHC

  • April 25, 2019
  • 1 reply
  • 719 views

Dear Community,

I am excited to get started with the IIS3DHHC sensor in combination with an Arduino Teensy. I have been working before with the Analog Devices ADXL355, I've successfully wrote a program for this, but I have difficulties knowing if I'm going into the right direction with the IIS3DHHC.

  • I am not sure if I am using the right SPI Mode.
  • Am I writing and reading the register correctly?

Would anyone be able to give me a bit of guidance on my code and say if I'm going into the right direction?

https://pastebin.com/GezFHawf

Many thanks,

Chris

    This topic has been closed for replies.

    1 reply

    ST Employee
    April 30, 2019

    hi Chris

    • I am not sure if I am using the right SPI Mode.
      • SPI 4 wire, max 10MHz (suggested 1MHz), CPOL 0, CPHA 0
    • Am I writing and reading the register correctly?
      • the reported registers correspond to the datasheet one, so they are ok

    Btw, could you share me the oscilloscope or logic analyzer pattern? Did you receive the ack from the slave? At which Vdd/VddIO are you working?

    Regards