完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
大家好,
我正在使用a.m.陀螺仪研究倾角传感器。我在数字值中遇到随机峰值 - @ still device。 尖峰通常高于信号+255或低于平均信号-255。 它基本上发生在所有3轴上。特别是当平均信号大约为0时! 在我看来 - 芯片中存在一个问题,例如在读取特定16位值的低字节时不锁定Hi字节以保持Hi和Lo字节一致。所以我最终会读取“旧”值的Lo Byte和“new”值的Hi Byte。 这可能看起来像: 旧值:0xFFFF(-1) 新值:0x0002(+2) 组合错误读数:00FF(+255) - 如上所述,差异大约为255 数据表无济于事,因为它没有说明锁定机制或读取Hi和lo字节的特殊顺序 - 或者对状态位的依赖性。 我尝试了很多不同的设置 - 比如单字节和多字节读取 - Hi字节优先,Lo字节优先.... 官方ST驱动程序首先是Lo字节,读取多个字节时的增量模式读取Lo字节,然后是Hi字节。 对于100hex边界附近的所有值,可以预期上述行为,但当然在无旋转条件下最明显。 我在网上搜索了类似的问题,并发现了一些具有完全相同的行为。 我将尝试直接访问ST产品专家,并在有新闻后更新此帖子。 任何想法或经验? 问候WOLF 以上来自于谷歌翻译 以下为原文 Hi all, i'm currently working on an inclination sensor using a.m. gyroscope. I encounter random spikes in the digital values - @ still device. The spikes generally are either +255 above signal or -255 below average signal. It basically happens on all 3 axis. Especially when the average signal is around 0! In my opinion - there is a problem in the chip like NOT LOCKING the Hi byte when reading the Lo Byte of a particular 16 bit value to keep Hi and Lo Byte consistent. So i'm ending up reading the Lo Byte of the ''old'' value and the Hi Byte of the ''new'' value. This might look like: old value: 0xFFFF (-1) new value: 0x0002 (+2) combined wrong Reading: 00FF (+255) - making a difference of about 255 as stated above The data sheet won't help, as it doesn't say anything about a locking mechanism or a special order in reading Hi and lo Bytes - or a dependency on status bits. I tried many different setups - like single and multi byte reading - Hi byte first, Lo byte first.... The official ST drivers are Lo byte first, and the increment mode when reading multiple bytes reads Lo byte and then Hi byte too. Above behaviour is to be expected for all values neighbouring a 100hex border, but of course is most noticable in the no rotation condition. I searched the web for similar problems and found a few with exactly the same behaviour. I'll try to get a direct access to an ST product specialist and will update this post once there is news. Any ideas or experiences? Greetings WOLF |
|
相关推荐
3个回答
|
|
|
我对A3G4250D陀螺仪也有同样的问题。
数据表太糟糕了。我正在研究另一个在网络上有更多文档的人。 以上来自于谷歌翻译 以下为原文 I have the same problem with A3G4250D gyroscope. The datasheet is terrible. I'm studying another one with much more doc on the web. |
|
|
|
|
|
嗨,我有同样的问题关于接收一个恒定的255值,,,,,,如果你有一个解决方案,请帮帮我
以上来自于谷歌翻译 以下为原文 hi i got the same problem about receaving a constant 255 value ,,,,,,if u got a solution please help me |
|
|
|
|
|
在CTRL_REG4中设置“BDU”位(块数据更新)应该可以阻止这种情况发生。
以上来自于谷歌翻译 以下为原文 Setting the ''BDU'' bit (Block Data Update) in CTRL_REG4 should stop this occuring. |
|
|
|
|
只有小组成员才能发言,加入小组>>
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 05:50 , Processed in 0.504437 second(s), Total 48, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3530