完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,有经验的朋友。我做了如下实验:在引脚RB1 OPA2OUT连接到C1IN -(运算放大器输出到比较器CMP1输入)。它工作- OPA2OUT产生一个波和CMP1响应,虽然MPLABYX下的代码配置器发出警告,PIN不能同时是一个输出和输入。(但是MPLAbxx是已知的)。但是尝试用OPA1OUT和C1IN对PIN RA1进行同样的操作是不起作用的。OPA1OUT产生期望的波,CMP1不起反应。(BTW,它以相同的方式工作,而不是OOFUT,我使用PIN作为数字输出和比较器输入,虽然在数据表中写道:”一般来说,当端口引脚上启用外围设备时,该引脚不能用作一般PUPO。在这两种情况下,比较器的输入+内部连接到DAC。为什么会这样?有没有什么我错过的规则,或者像这样的案例应该在做一个项目时总是检查?Regards.Kristoff。
以上来自于百度翻译 以下为原文 Hello more experienced friends. I made an experiment as follow: On pin RB1 OPA2OUT is connected to C1IN3- ( op amp output to comparator CMP1 input ). It works - OPA2OUT produces a wave and CMP1 responds, though Code Configurator under MPLAB_X sends warning that the pin cannot be an output and input at the same time. ( But MPLAB_X is known for this ). But trying to do the same with OPA1OUT and C1IN1- on pin RA1 it doesn't work. OPA1OUT produces desired wave and CMP1 doesn't react. ( BTW, it works the same way when instead of OPAOUT I use the pins as digital outputs and comparator inputs, although in the datasheet is written " In general, when a peripheral is enabled on a port pin, that pin cannot be used as a general purpose output." ) In both cases +input of the comparator is internally connected to DAC. Why it is that? Is there any rule I missed or cases like this should be always checked while making a project? Regards. Kristoff. |
|
相关推荐
2个回答
|
|
让我看看我是否理解这一点。在ROB2和RB3上,OPA2输入到OPA2,RB1上的运算放大器的输出。你想把这个输出从RB1并输入到比较器CMP1上C1in 3?C1In-在RB1上。你会遇到一个问题,把一个PIN的输出,并返回到同一个PIN。你确定你有OPAUT2连接到C1in 3?这是相同的PIN。OPA1输出和C1in 1将有同样的问题。它们在同一个别针上。我无法想象这会起作用。
以上来自于百度翻译 以下为原文 Let me see if I understand this. You have opamp input to OPA2 on RB2 and RB3 and the output of the OPAMP on RB1. You are wanting to take this output from RB1 and input it to comparator CMP1 on C1IN3-? C1IN3- is on RB1. You will have problems taking the output of a pin and sending back into the same pin. Are you sure you have OPAOUT2 connected to C1IN3-? That's the same pin. You will have the same problem with OPA1 output and C1IN1-. They are on the same pin. I can't imagine this ever working. |
|
|
|
是的,我肯定。OPA2OUT到C1N3 -工作,以及任何opax输出连接到同一个引脚上的ADC输入。
以上来自于百度翻译 以下为原文 Yes, I am sure. OPA2OUT to C1IN3- works, as well as any OPAxOUT connected to ADC input on the same pin. |
|
|
|
只有小组成员才能发言,加入小组>>
5155 浏览 9 评论
1995 浏览 8 评论
1924 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3168 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2221 浏览 5 评论
721浏览 1评论
605浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
491浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
619浏览 0评论
517浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-18 02:51 , Processed in 1.164885 second(s), Total 80, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号