完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
大家好,有人能帮我一个比较器的汇编语言代码示例/工作项目吗?我想用PIC做一个简单的昼夜开关,而不是运算放大器LM358谢谢Yyyurn。
以上来自于百度翻译 以下为原文 Hi all, could someone please help me with an assembly language code exampe / working project of a comparator. I want to make a simple day / night switch using a pic rather than an op-amp LM358 Thank you Yurn. |
|
相关推荐
2个回答
|
|
|
你要连接到比较器吗?为什么你不使用ADC而不是比较器呢?这将允许您通过程序控制开关阈值。
以上来自于百度翻译 以下为原文 What are you going to connect to the comparator? Why wouldn't you use the ADC rather than the comparator? That would let you control the switch threshold via your program. |
|
|
|
|
|
比较器管脚的输入是什么样的?电压水平和截止值是多少?你如何实现白天/夜晚的切换?它是LDR电路吗?在汇编中设置比较器并不太困难,只要配置CIN +和CIN - PIN作为模拟输入,并且适当的位必须在CMCon(19H)寄存器中编程。在CMCON寄存器中选择输出极性和比较器操作模式。
以上来自于百度翻译 以下为原文 What do the inputs to the comparator pins look like? What are the voltage levels and what is the cutoff? How are you implementing the day/night switch? Is it an LDR circuit? Setting up the comparator in assembly is not too hard- Just configure the CIN+ and CIN- pins as analog inputs, and the appropriate bits must be programmed in the CMCON (19h) register. Select the output polarity and the comparator mode of operation in the CMCON register. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
485 浏览 0 评论
5806 浏览 9 评论
2346 浏览 8 评论
2234 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3540 浏览 3 评论
1145浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1114浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
883浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
489浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-9 10:04 , Processed in 0.757900 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1256