完善资料让更多小伙伴认识你,还能领取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 |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2718 浏览 1 评论
3235 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1807 浏览 1 评论
3645 浏览 6 评论
6033 浏览 21 评论
1334浏览 4评论
208浏览 3评论
196浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
440浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 13:38 , Processed in 1.171550 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号