完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
12F68 3停止PWM间隔在DME12F68停止PWM间隔后,X PulsPic 12F68 3FoSC 8MHZTO硬币的表达,我想停止PWM模式上的“一角硬币”。即在X数的PWM脉冲(在50%占空比)之后。查看数据表DS41211D页79 -表11-3:示例PWM频率和分辨率(FoSC=8 MHz),我在76.92千赫上使用PWM模式,恰好与列4一样。76.92 kHz,time2预刻度1,PR2值0x19,占空比50%,在某些情况下,在准确的100个脉冲之后,需要关闭。什么是在预定数量的脉冲之后停止PWM模式的一些方法?CCP模块可以预先编程,并有一个停止的时间吗?有没有登记的登记册?如果没有自动停止计数器,那么FWWI就已经有一个中断服务例程来代替其他事情。我用Time0编程,每秒9600点。如果必要的话,我可以改变频率。我可以添加一个软定时器计数器,它会增加,检查,然后禁用ISPWM右PWM之前,我写自己的BAT BAR软停止,我想我会张贴一个消息。停在一角硬币上的原因是软启动,以在由PWM驱动的LLC 1/2桥电源上充电电容器。这是为了改造EnECSE太阳能微逆变器固件。他们制造和销售了300000个故障率很高的微型逆变器。吹制整流二极管是一种常见的故障模式。当你用示波器测量高压直流整流二极管的电流时,你可以看到和测量远远超过二极管规格的大电流。这只发生在滤波电容器低或完全放电时。帽电压越低,斜坡上升越长。在这个PWM驱动的574伏HVDC电源上有6个非常大的电容器。当电容器完全放电时,它对二极管施加了巨大的压力。我想写一些测试代码,在一分钱上停止,这样我就可以查看范围,看看这是否能治愈二极管过流问题。我想用PWM占空比测试β保持在50%。因此,通常使用软启动的占空比变化技巧,因为它驱动1/2桥功率,总是需要至少50%的占空比才能稳定。如有任何建议,将不胜感激。密苏里圣路易斯固件返工项目
以上来自于百度翻译 以下为原文 12F683 Stop PWM Interval on a dime 12F683 Stop PWM Interval after x pulses Pic 12F683 FOSC 8mhz To coin an expression, I want to stop the PWM mode on a "dime". i.e. After x number of PWM pulses (at a 50% duty cycle). Look at data sheet DS41211D-page 79 - TABLE 11-3: EXAMPLE PWM FREQUENCIES AND RESOLUTIONS (FOSC = 8 MHz) I'm using PWM mode at 76.92 kHz exactly like column 4. 76.92 kHz, Timer2 Prescale 1 and PR2 Value 0x19, 50% duty cycle. In some cases after exactly 100 pulses it needs to be turned off. What are some ways to stop the PWM mode after a predetermined number of pulses? Can the CCP module be preprogramed with a time to stop ? Is there a register that can be polled ? If there is no automatic stop counter then FWIW I already have an interrupt service routine in place for other things. I'm using timer0 programmed at 9600 ticks per second. I can change the frequency if necessary. I can add a soft timer counter that gets incremented, checked and then disable the PWM right in the ISR Before I write my own bit bang soft stop I thought I would post a message. The reason for stopping on a dime is a soft start to charge up capacitors on an LLC 1/2 bridge power supply driven by the PWM. This is for reworking the enecsys solar micro inverter firmware. They went out of business after making and selling 300,000 micro inverters with a high failure rate. Blown rectifier diodes is a common mode of failure. When you use an oscilloscope to measure the current across the HVDC rectifier diodes you can see and measure massive over current far beyond the specs of the diodes. This only happens when the filter capacitors are low or fully discharged. The lower the cap voltage then the longer the ramp up. There are 6 very large capacitors across a 574 volt HVDC power supply driven by this PWM. When the capacitors are fully discharged it puts enormous stress on the diodes I want to write some test code that stops on a dime so I can look on a scope and see if this cures the diode overcurrent problem during boot up. I want to beta test with the PWM duty cycle always maintained at 50% . so the duty cycle VARYING trick commonly used for soft start cant be used in the case because its driving a 1/2 bridge LLC power that always needs at least 50% duty for stability. Any suggestions would be appreciated. Dan - Enecsys firmware rework project St Louis Missouri |
|
相关推荐
2个回答
|
|
使用定时器中断服务来驱动PWM的计时器。假设你没有在定时器上使用一个后定标器,你得到一个脉冲每一个中断,所以只需计数中断。不,硬件中没有什么可以为你计数循环。
以上来自于百度翻译 以下为原文 Use the timer interrupt service for the timer driving the PWM. Assuming you are not using a post-scaler on the timer, you are getting one interrupt per pulse, so just count interrupts. No, there is nothing in the hardware to count cycles for you. |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5189 浏览 9 评论
2009 浏览 8 评论
1933 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3181 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2232 浏览 5 评论
746浏览 1评论
632浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
517浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
644浏览 0评论
544浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-30 23:36 , Processed in 1.387005 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号