完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我正在使用STM8L052r8来测量ADC通道24/25的温度。我正在使用经过验证的ADC例程,但我的预期数量并不正确。
看来我在ADC引脚的输入端有一个电压降/电流流过R1。 任何人都可以告诉我,从ADC输入到接地的微电路中存在什么内部电阻,以及我可能期望在那里流动的那种电流。 我将ADC引脚配置为浮动输入,并禁用施密特触发器。 温度探头连接在THP1和THM1上。 R2是驱动电阻9k09,R2与ADC输入串联1k。 我打赌真的很简单,但我对此很新。 提前致谢, 理查德 以上来自于谷歌翻译 以下为原文 I’m using the STM8L052r8 to measure temperatures on the ADC channels 24/25. I’m using a proven ADC routine but my expected counts aren’t coming in correct. It seems I've got a volt drop/ current flow across R1 on the input to the ADC pin. Could anyone tell me what internal resistance there is in the micro from the ADC input to ground please, and the kind of current I can expect to be flowing there. I have the ADC pins configured as input floating, with the Schmitt trigger disabled. The temperature probe is connected across THP1 and THM1. R2 is the drive resistor 9k09, R2 is a 1k in series with the ADC input. Really simple I bet but I'm pretty new to this. Thanks in advance, Richard |
|
相关推荐
1 条评论
4个回答
|
|
|
更改采样时间是否会影响读数值?
JW 以上来自于谷歌翻译 以下为原文 Does changing the sampling time influence the readout value? JW |
|
|
|
|
|
嗨,
是的它确实改变了读数。我确实让我的SYSCLK以16MHz运行,但现在已经降低到4MHz,读数看起来几乎是完美的。 似乎调整ADC时钟的唯一选择是预先调用SYSCLK,但它只允许您除以1或2。 有没有办法以4MHz运行我的ADC并保持SYSCLK为16MHz? 问候, 理查德 以上来自于谷歌翻译 以下为原文 Hi, Yes it does change the readings. I did have my SYSCLK running at 16MHz but have now reduced that to 4MHz and the readings seem almost perfect. It seems that the only option to adjust the ADC clock is to presale the SYSCLK, but it only allows you to divide by 1 or 2. Is there a way to run my ADC at 4MHz and keep the SYSCLK at 16MHz please? Regards, Richard |
|
|
|
|
|
不,我的意思是ADC_CR2.SMTP1和/或ADC_CR3.SMTP2中设置的采样时间。
JW PS。也可以看看 以上来自于谷歌翻译 以下为原文 No, I meant sampling time as set in ADC_CR2.SMTP1 and/or ADC_CR3.SMTP2. JW PS. See also |
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1474 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1529 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3676 浏览 1 评论
3868 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2483 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
757浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
688浏览 5评论
732浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
986浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
788浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-17 19:16 , Processed in 0.806009 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
980