嗨,
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