完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好。我想在L3GD20可用时处理每组读数。 DRDY信号似乎是最合适的方式。我已经与STMicro工程师确认我的寄存器设置是正确的(只需在正常模式下使用DRDY信号),但我看不到DRDY信号从高电平转换为低电平。它始终保持高位。我正在使用HP混合信号'示波器,我正在观看所有其他信号(SPI /芯片选择等),没有任何问题。当我打开FIFO并配置DRDY信号以指示FIFO何时填充超出水印(我设置为1)时,我可以让DRDY转换为低电平,但DRDY应该在没有FIFO的情况下工作。
有人看到过这种行为吗? 以上来自于谷歌翻译 以下为原文 Hello. I want to process each set of readings from the L3GD20 as they become available. The DRDY signal seems the most appropriate way to do this. I've verified with an STMicro engineer that my register settings are correct (simply use the DRDY signal in its normal mode), but I can't see the DRDY signal transitioning from high to low. It stays high all the time. I'm using an HP mixed signal 'scope and I'm watching all the other signals (SPI/chip selects, etc) with no problem. I can get DRDY to transition to low when I turn the FIFO on and configure the DRDY signal to indicate when the FIFO fills beyond the watermark (which I set to 1), but DRDY is supposed to work without the FIFO. Has anybody seen this behavior? |
|
相关推荐
2个回答
|
|
|
我弄清楚发生了什么事。我的初始化例程将寄存器设置为应该设置,然后调用my _GetReadings例程来执行轴值的初始读取。但是,在调用该例程之前,我没有正确设置寄存器编号,所以它实际上并没有读取轴寄存器。然后芯片将DRDY拉高并简单地将其留在那里,因为我没有“读取”来自内存的值。
一旦我纠正了这个问题,芯片开始按预期转换DRDY,我现在正在按要求收集读数。此配置不使用FIFO,只在配置寄存器中启用DRDY / INT2信号。 以上来自于谷歌翻译 以下为原文 I figured out what was going on. My initialization routine set the registers up as they should be set, then called my _GetReadings routine to perform that initial read of the axis values. However, I wasn't setting the register number correctly prior to calling that routine, so it really wasn't reading the axis registers. The chip would then bring DRDY high and simply leave it there, since I wasn't ''reading'' the values from memory. Once I corrected this problem, the chip started transitioning DRDY as expected, and I'm now gathering readings as required. This configuration does NOT use the FIFO and the DRDY/INT2 signal is simply enabled in the configuration registers. |
|
|
|
|
|
理查德你好,
感谢您发布问题并提供问题的解决方案。 如果有任何我可以做的事情来支持你,请告诉我。 谢谢, 蒂亚戈 以上来自于谷歌翻译 以下为原文 Hello Richard, Thank you for posting your question and also providing a solution to the issue. Please do let me know if there is anything that I can do to support you. Thank you, Thiago |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 02:13 , Processed in 4.390205 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2008