ST意法半导体
直播中

刘玉华

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

没有从INT1获得任何中断

嗨,
1.在CTRL1中写入64h //打开加速度计// ODR = 200 Hz,高性能
2.在CTRL6中写入04h // FS 2 g使能LOW_NOISE
3.在CTRL7中写入20h //不要对6D使用低通滤波器,启用中断
4.在TAP_THS_X中写入40h //设置6D阈值(6D_THS [1:0] = 10b = 60度)
5.在CTRL4_INT1_PAD_CTRL中写入80h //将6D中断驱动到INT1引脚
中断在SIXD_SRC寄存器中设置但没有从INT1获得任何中断

以上来自于谷歌翻译


以下为原文




Hi,
1. Write 64h in CTRL1 // Turn on the accelerometer // ODR = 200 Hz, High-Performance
2. Write 04h in CTRL6 // FS 2 g LOW_NOISE enabled
3. Write 20h in CTRL7 // Do not use low-pass filter for 6D, enable interrupts
4. Write 40h in TAP_THS_X // Set 6D threshold (6D_THS[1:0] = 10b = 60 degrees)
5. Write 80h in CTRL4_INT1_PAD_CTRL // 6D interrupt driven to INT1 pin
interrupt set in SIXD_SRC register but didn't get any interrupt from INT1

回帖(1)

曾玲娟

2019-3-27 11:46:13
您的配置正常,但中断仅在1 / ODR时间内有效,请参见下图。
如果需要,可以通过将0x10写入CTRL3寄存器来使能锁存中断,然后中断将保持有效,直到您读取中断源寄存器为止。

以上来自于谷歌翻译


以下为原文




You configuration is OK, but the interrupt is active for only 1/ODR time, see following picture.
If you want you can enable latched interrupt by writing 0x10 to CTRL3 register, then the interrupt will stay active until you read the interrupt source register.
举报

更多回帖

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