完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
STM8L有2个比较器:COMP1和COMP2。 COMP2非常有用,因为它具有获得任何所需阈值的能力:内部或外部。 COMP1的唯一门限是内部Vref,所以我想知道它可以用于什么?我知道它们两者的窗口比较器能力,但是这里有人可以考虑只应用COMP1吗? COMP1可以做什么,也可以做数字端口,也有施密特触发器选项。 任何想法都将受到高度赞赏, E.L。 以上来自于谷歌翻译 以下为原文 Hello, STM8L has 2 comparators: COMP1and COMP2. COMP2 is very useful as it has an ability to get any desired threshold: either internal or external. The only threshold for COMP1 is internal Vref, so I'm wondering what can be it used for ? I'm aware of window comparator ability with both of them, but can somebody here think about application of only COMP1? What COMP1 can do, can do also a digital port, having also Schmitt trigger option. Any idea will be highly appreciated, E.L. |
|
相关推荐
3个回答
|
|
嗨Patrick,
恕我直言,对于电池监控,最好不要使用内部PVD-I / O引脚。您必须“支付”内部Vref(1.2uA)的电流消耗,如COMP1和PVD本身(0.2uA)的情况。该方法唯一可能的缺点是您必须从中选择一个滞后现有的8个,即如果你有自己的,你就不能。 以上来自于谷歌翻译 以下为原文 Hi Patrick, IMHO, for battery monitoring it is better to use internal PVD- I/O pin is not required. You have to ''pay'' with current consumption of internal Vref(1.2uA), like in case of COMP1, and of PVD itself (0.2uA).The only possible disadvantage of the method that you have to chose a hysteresys only from among existing 8, i.e., if you have your own,you can't. |
|
|
|
你好
您描述的方法监视微型的VDD。在我的系统中,我在电池和微电脑之间有一个调节器,因此COMP1监控电池电压。如果我使用你描述的系统,PVD中断只有在电池电压崩溃且调节器超出规定时才会发生,这在我的系统中没什么用处。当达到每个电池的最小电压时,我需要通知用户更换电池,但系统仍然可以完全运行。 以上来自于谷歌翻译 以下为原文 Hi The method you describe monitors the VDD of the micro. In my system I have a regulator between the battery and the micro so COMP1 monitors the battery voltage. If I use the system you describe the PVD interrupt will occur only when the battery voltage collapses and the regulator comes out of regulation which is not much use in my system. I need to inform the user to change the batteries when the minimum voltage per cell is reached, but with the system still fully operational. |
|
|
|
嗨Patric,
我有类似的情况。我还需要在设备死亡前一个月通知用户电池电量不足。我也有调节器,为必要的元件供电,例如那些消耗过多电流的元件,导致它们之间的电压降。 STM8的Vcc由电池供电。每天一次我用一个小电阻加载电池来模拟我的实际负载(我不能实时进行)然后我测试电池。负载下,带PVD。您可以选择PVD阈值,以便您的稳压器仍具有所需的电压。 以上来自于谷歌翻译 以下为原文 Hi Patric, I have a similar case. I also need to inform a user about low battery a month before the device dies. I also have regulator, powering necessary components, for example, those consuming too much current, causing to voltage drop across them. Vcc of STM8 is powered by battery. Once a day I load the battery with a small resistor to simulate my real load( I can't do it in real time) and then I test battery. under load, with PVD. You can select PVD threshold so that your regulator will still have its required voltage. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2738 浏览 1 评论
3241 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1810 浏览 1 评论
3650 浏览 6 评论
6039 浏览 21 评论
1342浏览 4评论
203浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
356浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
444浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
275浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 01:17 , Processed in 0.978815 second(s), Total 54, Slave 46 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号