Hi Anate, I recommend taking a look at the SPI section of Solutions to Common eUSCI and USCI Serial Communication Issues on MSP430 MCUs . Also, I noticed you are calling multiple functions from within your SPI ISR. It's never recommended to call a function from within an ISR. Instead, you should set a flag in the ISR, then react on it in your main loop. Finally, can you probe your SPI bus with a logic analyzer or scope and verufy that the correct data is being sent to the LIS2DH? Best regards, Caleb Overbay
↧