完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我试图了解具有数据就绪中断的H3LIS331DL传感器的配置。 根据我以前的帖子,我了解配置控制寄存器1后应该给出开启时间。 以下是我用于获取数据就绪中断的序列。 步骤1:为Accel Sensor供电 第2步:将Ctrl_Reg1设置为00111111b(0x3F) 步骤3:当我将ODR配置为1000Hz时,根据数据表提供(1/1000 + 1ms)2 ms的睡眠。 步骤4:使用00000010b(0x02)配置Ctr_Reg3。 步骤5:启用H3LIS中断1和中断2引脚并注册回调API。 第6步:等待数据就绪中断。 在这里,我面临的问题是我看不到数据就绪中断,即数据就绪中断回调功能未触发。 有人遇到过这个问题吗? 谢谢, 湿婆。 #h3lis331#h3lis331dl-configuration#h3lis331dl-data-ready-interrupt 以上来自于谷歌翻译 以下为原文 Hi All, I am trying to understand configuration of H3LIS331DL sensor with Data Ready Interrupt. As per my previous posts, I understood Turn On-Time should be given after Configuring the Control Register 1. Here is the sequence I am using to get Data Ready Interrupt. Step1: Give power to Accel Sensor Step2: Setting Ctrl_Reg1 with 00111111b(0x3F) Step3: As I am configuring ODR as 1000Hz providing sleep of (1/1000+1ms) 2 ms as per data sheet. Step4: Configuring Ctr_Reg3 with 00000010b (0x02). Step 5: Enabling H3LIS Interrupt 1 and Interrupt 2 pins and Registering call back API. Step 6: Waiting for data ready interrupt. Here I am facing problem is I could not see the Data Ready Interrupt, i.e., Data Ready Interrupt call back function is not triggering. Anybody faced this problem ? Thanks, Siva. #h3lis331 #h3lis331dl-configuration #h3lis331dl-data-ready-interrupt |
|
相关推荐
3个回答
|
|
您的传感器配置是正确的,我认为问题出在MCU配置中。
如果您有示波器或逻辑分析仪,则可以检查INT1引脚上的DRDY信号是否可用。 以上来自于谷歌翻译 以下为原文 Your sensor configuration is correct, I suppose the problem is in the MCU configuration. If you have a scope or logic analyzer you can check that the DRDY signal is available on the INT1 pin. |
|
|
|
感谢您输入Miroslav。
这里有一个问题来自上述步骤,其中步骤可以配置Accel传感器的INT1_H3LIS和INT2_H3LIS引脚以启用MCU中断。 以上来自于谷歌翻译 以下为原文 Thanks for your input Miroslav. Here one question will be from above steps in which step suggestible to configure INT1_H3LIS and INT2_H3LIS pins of Accel sensor to enable interrupt from MCU. |
|
|
|
您可以随时配置它,但没有问题。
我个人会在设置ODR之前配置中断(在步骤2之前)。 以上来自于谷歌翻译 以下为原文 You can configure it anytime you want, there is not issue with that. Personally I would configure the interrupts before I set the ODR (before step 2). |
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
927 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
983 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3146 浏览 1 评论
3411 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2003 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
160浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
177浏览 5评论
199浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
242浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
184浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-7-12 23:46 , Processed in 0.623920 second(s), Total 48, Slave 43 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191