ST意法半导体
直播中

张倩

8年用户 198经验值
私信 关注
[问答]

LIS3DH不输出任何X数据

嗨,


由于某种原因,X通道无法正常工作。

以下是每个配置寄存器的配置:

send [0] = 0b01100000; //启动配置
发送[1] = 0x57; // reg 1
发送[2] = 0x00; // reg 2
发送[3] = 0x00; // reg 3
发送[4] = 0x88; // reg 4
send [5] = 0x00; // reg 5
发送[6] = 0x00; // reg 6

显然,只需简单地获取数据,所有导入实际上都在寄存器1中,但我的X输出始终是-32624(这是有符号值)

如果有人知道会出现什么问题,那就太好了。

谢谢,
阮经天

以上来自于谷歌翻译


以下为原文




Hi,


For some reason, the X channel is not working.

Here are my configurations for each config register:

send[0] = 0b01100000;//start config
send[1] = 0x57;//reg 1
send[2] = 0x00;//reg 2
send[3] = 0x00;//reg 3
send[4] = 0x88;//reg 4
send[5] = 0x00;//reg 5
send[6] = 0x00;//reg 6

Clearly everything import is really in register 1 for just simple getting data out, but my X output is always -32624 (that's the signed value)

If anyone knows what could be going wrong, that would be great.

Thanks,
Ethan

回帖(1)

孙海燕

2018-11-26 10:38:52
嗨,
 
 你能读出WHO_AM_I注册吗?您是否根据数据表阅读了正确的值?
 
 RGDS
 V.

以上来自于谷歌翻译


以下为原文





Hi,

can you read out the WHO_AM_I register ? Do you read correct value according the datasheet?

Rgds
V.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分