嗨,大家好
我正在使用STMEVAL-MKI109V2进行LSM9DS0,使用4线SPI
通信?如果在EVAL板上电后保持CS_G = 0且CS_XM = 1,但在CS_G = 1和CS_XM后CS_G = 0,则读取陀螺仪的WAI reg是正常的= 1,读取WAI reg,MCU无法得到任何响应(SDO = 0xFF总是),有人可以解释一下为什么?如果有人能发布LSM9DS0 SPI通信代码,我将不胜感激。
谢谢。
#lsm9ds0-4-wire-spi#psm9ds0-purchase
以上来自于谷歌翻译
以下为原文
hi,guys
I'm working on LSM9DS0 with STMEVAL-MKI109V2,using 4-wire SPI communica
tion?read gyro's WAI reg is ok if keep CS_G=0 and CS_XM = 1 after EVAL board power on, but if CS_G=0 after CS_G=1 and CS_XM = 1,read WAI reg, MCU can't get any response(SDO=0xFF always),can anyone explain me why? I would be grateful if anyone could post LSM9DS0 SPI communication code.
thanks.
#lsm9ds0-4-wire-spi #psm9ds0-purchase