完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
亲爱的团队。
我需要从LSM303DLHC读取温度数据,以便对加速度计数据进行温度补偿。我使用STM32F3Dicsovery板和“stm32f3_discovery_lsm303dlhc.c”库。我只能在调试模式下读取感兴趣的数据,在控制器的正常模式操作期间我总是取'0'。正确读取所有其他数据。顺便说一句,TEMP_OUT_H_M和TEMP_OUT_L_M寄存器的类型与其他寄存器不同,未在数据表中指定。可能是什么问题? 以上来自于谷歌翻译 以下为原文 Dear Team. I need to read temperature data from LSM303DLHC for temperature compensation of the accelerometer data.I use the STM32F3Dicsovery board and the ''stm32f3_discovery_lsm303dlhc.c'' library. I can read the interested data only in debug mode, during normal mode operation of the controller I always take '0'. All other data is read correctly. By the way,the type of TEMP_OUT_H_M and TEMP_OUT_L_M registers, unlike other, is not specified in the datasheet. In what may be the problem? |
|
相关推荐
2个回答
|
|
|
你好Alex,
为了使用温度传感器的输出,请查看所附数据表第36页的7.2节,在那里您将找到用于使温度数据输出正常工作的寄存器设置。 如果这有助于您解决此主题,请与我们联系。 谢谢, 蒂亚戈雷斯 以上来自于谷歌翻译 以下为原文 Hello Alex, In order to work with the temperature sensor's output, please check section 7.2 in page 36 of the attached datasheet, there you will find the registers setup to have the temperature data output working properly. Please let me know if this helps you on this topic. Thank you, Thiago Reis |
|
|
|
|
|
亲爱的,蒂亚戈雷斯。
我曾经读过数据表。我初始化CRA_REG_M寄存器。问题是当我在调试机制(Keil)工作时,我读了温度测量。在这种情况下,时钟由ST-Link提供。如果我退出调试模式,在复位控制器之后我取'0'。在最后一种情况下,时钟由晶体振荡器提供。我在STM32-F3Discovery板和STM32F103C6中看到了这个问题。使用了stm32f3_discovery_lsm303dlhc.c''库。 以上来自于谷歌翻译 以下为原文 Dear, Thiago Reis. I once read the datasheet. I initialize CRA_REG_M register. The problem is that when I work in a debugging regime (Keil), I read the temperature measurment. In this case, the clock is provided by ST-Link. If I get out of debug mode, after a reset controller I take '0'. In last case, the clock is provided by a crystal oscillator. I see this problem in the STM32-F3Discovery board and the STM32F103C6. The stm32f3_discovery_lsm303dlhc.c'' library is used. |
|
|
|
|
只有小组成员才能发言,加入小组>>
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:51 , Processed in 1.235275 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3336