完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我需要检测电路中的通电过程。这意味着,我通过SW1开关接通电路,关断电路并将电源重新接通。[100ms & lt;按时& gt;100ms ]和[30ms & lt;关闭时间>750ms ] & [time≫200毫秒] ---GT标记BITWAY想要设置一个标志位,如果电路HA。我们通过GP2外部中断(Itf)标志位检查电源是否可用。每20Ms(50Hz),我得到一个外部中断(高到低)。当电源关闭时,PIC将提供来自470UF电容器的电流。问题是电源关闭和电源接通时,电源。Rrutt不会正常触发。有时工作,有时不。我猜GP2施密特触发器需要0.8VDD高,它不能从充电器电容器提供电源关闭状态。忘记在GP2和感测IOC上的外部中断在不同的引脚上吗?
以上来自于百度翻译 以下为原文 I need to detect power on procedure in my circuit.It means, I power on the circuit by SW1 switch,I switch off the circuit & I power it on again. [100mS <ON Time> 1000mS] & [30mS <OFF Time >750mS] & [ON Time >200mS]---->Set Flag bit Want to set a flag bit if the circuit has passed the above process.For this I use GP2 external interrupt (INTF) flag bit to check supply power available or not.Every 20mS (50Hz) I get an External Interrupt (High to Low). When power off, the PIC will supply current from 470uF capacitor. The problem is when power off & power on, the interrupt won't trigger properly.Sometimes working, sometimes not. I guess GP2 Schmitt trigger needs 0.8VDD High which cannot supply from charger capacitor while power off state. What about forget External interrupt on GP2 & sense IOC on a different pin? Attached Image(s) |
|
相关推荐
10个回答
|
|
我模拟了电路,10K电阻似乎太高了。!ID= 0B3RelHopHPVPVZJLWTS15UJCWUDQ
以上来自于百度翻译 以下为原文 I simulated the circuit.The 10K resister seems to be too high..!! https://drive.google.com/open?id=0B3RELHoBhPvpZjlwTS15UjcwUDQ |
|
|
|
我认为有一个问题是你需要二极管。第二,它是正弦波而不是方波。第三它是关的,你对此负责吗?我怀疑10K是大的。
以上来自于百度翻译 以下为原文 I think one issue is you need a diode there. Second it is a sine wave not a square wave. Third it is on an off are you accounting for that? I doubt 10K is to big. |
|
|
|
你的意思是把二极管放在哪里?我不能理解第三个……!!!
以上来自于百度翻译 以下为原文 You mean to put a diode to where? I cannot understand the third one...!!! |
|
|
|
您好,您正在显示的示意图,您提供的PIC与6,5V =(7,6 / 0707)V峰值-0,7* 2 dioDeloSS。除非你对PIC有一个死的愿望,否则你应该纠正这个错误。编辑:PIC12F675允许@ 4MHz VDD低至2,0V,没有A/D,但不超过5,5V。并且,您的电阻器连接到AC线路,您正在检测一种过零点。因此,您应该通过在桥和电容器之间使用二极管来隔离大电容器与电源。然后让你感测10KOHM电阻(10K是好的,不要改变)连接在桥和串联二极管之间。在二极管阴极上,你把你的电容器和调节电路给PIC供电(类似于LM7805),但是你仍然会检测到一个半整流的窦波,并在100Hz触发中断。
以上来自于百度翻译 以下为原文 Hello, with the schematics you are showing you are supplying the pic with 6,5V =(7,6/0,707) Vpeak -0,7*2 DiodeLoss. Unless you have a dead wish for the pic you should correct this. EDIT: Pic12F675 allows @4MHz vdd as low as 2,0V without A/D, but not more than 5,5V. And with your resistor connected to the AC line you are detecting a sort of zero crossing. So you should isolate the big capacitor from the supply by using a diode between the bridge and the capacitor. And then have your sensing 10kOhm resistor (10k is good, don't change that) connected between the bridge and the series diode. At the diode cathode you put your capacitor and the regulation circuit to power the PIC (something like a LM7805). But still you will be detecting a semi rectified sinus wave, and having interrupts triggered at 100Hz. |
|
|
|
嗨,你是对的,我把零交叉感电阻从错误的位置拿走了。但是当我在我的示波器上看时,它显示出一个很好的方波。无论如何,我用波尔波和半波累加重新排列了电路。ROROXY脉冲是非常合乎逻辑的。在全波电路中,零交叉脉冲不会下降到0V。所以我猜它不会触发中断……!
以上来自于百度翻译 以下为原文 Hi,You are correct, I have taken the zero cross sense resistor from the wrong position.But when I probe my oscilloscope it showed me a nice square wave. Anyway I rearranged the circuit with both wull wave and half wave recitifications.Attached the circuit simulations.To me in halfwave circuit the zerocross pulse is very logical.In full wave circuit the zerocross pulse won't go down to 0V.So I guess it won't trigger interrupts....!! Attached Image(s) |
|
|
|
我在想的是你画的第一个电路。它不会达到零,因为(我猜是模拟器的实现)你正在尝试使用的ZEnter作为整流。不要这样做,它会短路,如果你超过齐纳电压,你会很容易地加载它通常在1W齐纳可以处理。良好设计的经验法则是齐纳不被用于正向传导。也改变了1SR154,因为它们被停止(不推荐用于新的设计),经典的你可以使用的是1N400。在电路之后,在盖之后处理多余的电压。由于电路是这样,齐纳通过输入的1MOHM电阻调节输入电压。这也不是一个特别好的设计,你将使用哪一个电源,它有1MOHM?顺便说一下,我注意到你的文件被称为TrimeRele2。你的真正意图是什么?也许如果我们知道更多,我们可以帮助更多。编辑:看看应用笔记AN954 http://www. McCyp.com….ASPX?在第二种设计中,我们看到了这样一个巨大的电阻器和一个大电容器的后果,电压上升非常缓慢。这可能在PIC操作中有非常负面的影响。由于电压上升不够陡峭,有时可能无法启动。这也意味着在100ms之后,你还没有准备好测量输入功率的不足。
以上来自于百度翻译 以下为原文 What i was thinking is the first circuit you draw. It is not reaching zero because (I guess the implementation of your simulator) of the zeners you are trying to use as rectified. Don't do this, it would short circuit if you exceed the zener voltage and you would easily load it over the usual 1W a zener can handle. Rule of thumb for good design is that the zener is not made to be used on forward conducting. Also change the 1sr154, since they are being discontinued (not recommended for new designs), a classical you can use is the 1N4007. Handle the excess of voltage later on the circuit, after the cap. With the circuit as it is the zener is regulating the input voltage through the 1MOhm resistor you placed at the input. This is also not a exceptionally good design, what power source you will use that has 1MOhm? By the way, I noticed that your file is called transformerless2. What is your real intention? Maybe if we know more we could help more. Edit: take a look at application note AN954 http://www.microchip.com/....aspx?appnote=en021083 On the second design we see the consequences of having such a huge resistor and a big capacitor, the voltage raises very slowly. This might have a very negative influence in the pic operation. It might sometimes simply not start because the voltage rise was not steep enough. And this would also mean that you are not ready to measure the lack of input power after 100ms. |
|
|
|
谢谢你,电源是230V AC。上面的电路你可以直接从墙上的插头供电。在这两种设计中,它使用电容滴管降压从230V交流到低值。1MEG电阻器是在那里放电滴管电容器。
以上来自于百度翻译 以下为原文 Thank you Ewerning. The power source is 230v Ac.The above circuits you can directly power from a wall plug.In both designs it uses capacitive dropper to stepdown voltage from 230v AC to low value.1Meg resister is there to discharge the dropper capacitor. |
|
|
|
电容式滴管非常依赖于负载,所以您应该显示整个电路从电源输入开始。
以上来自于百度翻译 以下为原文 A capacitive dropper is pretty load dependant, so you should show the entire circuit starting from the mains input. |
|
|
|
嗨,我把全波和半波的原理都附上了。有一个LED和一个电位器,这两个将在我的电源标志位设置后启动,所以不会对接通电源造成伤害。
以上来自于百度翻译 以下为原文 Hi, I attached the whole schematic both fullwave and half wave.There is an LED & a Potentiometer.These two will activate after my power ON prodedure flag bit is set.So it won't harm to power on procedure. Attached Image(s) |
|
|
|
所以,谢谢分享你的设计。我不怀疑任何显示的结果。请注意,AN954中的计算(因此电阻和电容的值)为110伏特的60Hz,并且你工作在230V 50Hz。足够有趣的是,你使用的电容和电阻的值完全相同,所以请重新检查每个组件的功率是否在你所期望的范围内。作为一个“全桥”设计,我想到的是应用笔记的图12。它将使用一个二极管,但只有一个齐纳。请阅读这种电路类型的缺点:“VOUT没有被引用到线或中性,使得双向可控硅控制是不可能的。”如果你不使用光隔离,这是正确的,但是既然你计划使用MOC3023,那么就有可能控制三端双向可控硅开关。也许这种没有光隔离器和零交叉描述的选项可能对你有兴趣:PICEFF4:HTTP://www. McCHIP.COM/WavaPabeSe/AppNo.ASPX?AppNeNo.En011202TB092: HTTP://www. MyCHIP.COM/WavaPabeSe/AppNo.ASPX?AppNeNo.En252534
以上来自于百度翻译 以下为原文 So, thanks for sharing your complete designs. I do not doubt on any of the shown results.Please be aware that the calculations (and therefore the values of resistors and capacitors) in the AN954 are for 110V 60Hz, and you are working with 230V 50Hz. Interesting enough you are using exactly the same values for capacitor and resistors, so please recheck if the power from each component is still within what you might expect.As a "full bridge" design I was thinking of something as in Figure 12 of the Application note. It shall use one more diode, but only one Zener. Please read the disadvanteages of this circuit type: "VOUT is not referenced to just line or neutral making triac control impossible.". This is true if you do not use an opto-isolation, but since you plan to go with a MOC3023, then it is possible to control the triac.Maybe this options without an opto-isolator and with a description of zero crossing might interest you: PICREF-4: http://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en011202 TB092: http://www.microchip.com/wwwAppNotes/AppNotes.aspx?appnote=en025234 |
|
|
|
只有小组成员才能发言,加入小组>>
5184 浏览 9 评论
2005 浏览 8 评论
1932 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3179 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2230 浏览 5 评论
742浏览 1评论
628浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
512浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
640浏览 0评论
538浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-28 22:08 , Processed in 1.306568 second(s), Total 94, Slave 78 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号