ST意法半导体
直播中

张大妍

7年用户 192经验值
私信 关注
[问答]

为什么在LIS3Dx的INTx_SRC寄存器中只有一个THS寄存器

在INT1_SRC寄存器中,有XH / YH / ZH以及XL / YL / ZL位,表示发生了(XYZ)H / L事件。但是只有INT1_THS寄存器而不是INT1_THS_HIGH / INT1_THS_LOW。如何为每个轴配置两个阈值?

以上来自于谷歌翻译


以下为原文




In the INT1_SRC register, there is XH/YH/ZH as well as XL/YL/ZL bits to indicate the (XYZ)H/L event has occurred. But there is only INT1_THS register instead of INT1_THS_HIGH/INT1_THS_LOW. How can I configure two threshold for each axis?

回帖(4)

曾玲娟

2018-11-21 10:49:53
阈值对于X,Y,Z轴是常见的,并且它是绝对值。什么标志有加速度并不重要。

以上来自于谷歌翻译


以下为原文




The threshold is common for X, Y, Z axis and it is absolute value. It doesn't matter what sign has the acceleration.
举报

张大妍

2018-11-21 11:08:16
是的,我理解XYZ的阈值很常见。可能我对那些寄存器位有一些误解。在数据表中,它表​​示当Z高/低事件发生时,ZH / L变为1。 Z高/低事件代表什么?他们与...的关系是什么?
INT1_THS
 注册或任何其他相关的注册?

以上来自于谷歌翻译


以下为原文




Yes, I understand the threshold is common for XYZ. Probably I have some misunderstanding of those register bits. In the datasheet, it says ZH/L goes 1 when Z high/low event has occurred. What does Z high/low event stand for. What's their relationship with the
INT1_THS
  register  or any other relevant register?
举报

曾玲娟

2018-11-21 11:16:41
我希望我的照片能说清楚。

以上来自于谷歌翻译


以下为原文




I hope my picture will make it clear.
举报

张大妍

2018-11-21 11:22:36
感谢您的回复和精彩的图片。因此,当加速度在图片中的XYZ高区域时,高事件为1,低事件为零。反之亦然。高低事件不可能同时发生。
因此,寄存器设计问题是它使用两个独立的寄存器来指示高/低事件而不是一个。正确?

以上来自于谷歌翻译


以下为原文




Thanks for the reply and nice picture. So when the acceleration is in XYZ high area in the picture, the high event is 1, and low event is zero. And vise versa. High and low event can't happen at same time.
So it is register design matter that it uses two separate register to indicate high/low event instead of one. Correct?
举报

更多回帖

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