Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 251352

Forum Post: RE: CCS/MSP430FR6989: SPI Communication between MSP430-FR6989 (MSP430-EXP-FR6989) and accelerometer LIS2DH (STEVAL-MKI) -To read WHO_AM_I dummy register value

$
0
0
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

Viewing all articles
Browse latest Browse all 251352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>