cancel
Showing results for 
Search instead for 
Did you mean: 

IIS3DHHC

CMull.81
Associate

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

1 REPLY 1
Eleon BORLINI
ST Employee

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