欢迎来到冰点文库! | 帮助中心 分享价值,成长自我!
冰点文库
全部分类
  • 临时分类>
  • IT计算机>
  • 经管营销>
  • 医药卫生>
  • 自然科学>
  • 农林牧渔>
  • 人文社科>
  • 工程科技>
  • PPT模板>
  • 求职职场>
  • 解决方案>
  • 总结汇报>
  • ImageVerifierCode 换一换
    首页 冰点文库 > 资源分类 > DOCX文档下载
    分享到微信 分享到微博 分享到QQ空间

    外文资料翻译基于C51兼容微处理器单片机的PWM控制器设计.docx

    • 资源ID:15727175       资源大小:139.27KB        全文页数:14页
    • 资源格式: DOCX        下载积分:1金币
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    二维码
    微信扫一扫登录
    下载资源需要1金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    外文资料翻译基于C51兼容微处理器单片机的PWM控制器设计.docx

    1、外文资料翻译基于C51兼容微处理器单片机的PWM控制器设计 毕业设计(论文)外文资料翻译学 院:机械工程学院专 业:机械设计制造及其自动化姓 名: 学 号: 外文出处:Design of PWM Controller in a MCS-51 Compatible MCU(用外文写)附 件:1.外文资料翻译译文;2.外文原文。指导教师评语: 年月日签名: 注:请将该封面与附件装订成册。附件1:外文资料翻译译文基于C51兼容微处理器单片机的PWM控制器设计导 言PWM技术,是一种电压调节方法,通过控制具有固定电压的直流电源的开关频率来调整两端负荷电压。这种技术能用于各种应用包括电机、温度、和压力的

    2、控制,等等。在电机系统中的应用,如图1所示,通过调整电源开关的占空比,来控制电机的速度,如图2所示,平均电压通过改变占空比来控制电机的速度(在图中D=t1/T),这样当电机的电源打开时,它的速度加快,相反,当电源关闭时,速度下降。图1 PWM控制框图 图2 电压的电枢和占空比之间的关系所以,通过定期地调整时间的开通和关断来控制电机的转速:这儿有三种方法可以完成占空比的调整(1)通过脉宽来调整频率;(2)通过同时调整频率和脉宽;(3)通过频率来调整脉宽。一般情况下,有四中方法可以产生PWM信号,正如以下:(1)由独立逻辑元件组成的装置产生,这种是原始的方法,现在已被淘汰;(2)通过软件产生,这种

    3、方法需要CPU持续操作代码来控制I/O口,以致于CPU不能做其他任何事。所以,这种方法也渐渐被淘汰;(3)通过ASIC产生,ASIC减少了CPU的负担,并获得了稳定的工作,一般有几个功能,如电流保护、死区时间调整等等;然而这种方法现在已被广泛用于许多场合;(4)通过单片机的PWM功能模块产生,只有当需要改变占空比的时候CPU失控,这样就不能产生PWM信号,否则通过在单片机里嵌入PWM功能模块,并使这功能初始化,单片机的PWM口也能自动产生PWM信号。这种方法将在文章中讲述。在本文中,我们建议在8051单片机里嵌入一个PWM模块。该PWM模块,通过初始化控制寄存器和寄存器的占空比,可以支持PWM

    4、脉冲信号,用刚才提到的上述三种方法调整占空比和几个操作模式,以增加用户弹性。以下这部分解释PWM模块和基本功能模块的结构。第三部分描述两种操作模式。这部分还讲述了实验和仿真的结果验证了合适的系统操作。通过操作模式,PWM模块产生一个或更多的脉宽模块信号,它们的比率可以自主调整。在单片机上执行PWM模块PWM模块的概述PWM模块如图3所示,从图中,可以很清楚得看到整个模块有两部分组成:PWM信号产生器和带有频道选择逻辑的死区时间产生器。用户可以通过执行一些代码使PWM模块初始化,从而启动其功能。在特殊情况下,支持以下电源和运动控制应用:1.直流电机2.持续电源供应PWM模块也有以下特征:1.两个

    5、PWM输出信号以互补或独立的方式运行2.带有互补模式的硬件死区电动机3.占空比更新设置应立刻或与PWM同步 图3 PWM模块的结构结构的详细组成PWM电动机 二输出PWM电动机的结构如图2.1所示,该结构是基于能产生脉宽调制信号上的16位计数器。该系统由四分频或十二分频的系统时钟信号合成,时钟信号的频率可通过对在特殊寄存器PWMCON中的PWM0电机的T3M或PWM1电机的T4M的值进行设置而调整,如图4所示:对于PWM0电机,当T3M设置为零时,16位计数器时钟将被默认预分为四分频,当T3M设置为1时,始终将被十二分频;PWM同样有这种功能。在PWMCON中的其它位的定义,详见表1图4 PW

    6、MCON的位的位置表1:PWMCON的位的定义通道选择逻辑 通道选择逻辑在互补模式中很有用,如图5所示。从表中可以清楚得看出,信号的CP和CPWM控制PWM1和PWML的来源,这两个控制信号的详细情况将在第三部分讲述,死区时间电机的结构也将在一下部分的连续性互补模式中讲述。图5 通道选择逻辑表运行模式和仿真结果这种设计有两种运行模式:独立模式和互补模式。通过在PWMCON寄存器中设置相应的位CPWM,如图四所示,用户可以选择其中一个运行模式。当CPWM设置为0时,PWM模式将工作在独立模式,COWM设置为1时,将工作在互补模式。在这部分两种模式将分别被详细讲述,从VCS EDA平台的PWM模块

    7、的仿真结果证明这种设计。独立PWM输出模块 独立PWM输出模块对于驱动负荷很有用,如图6所示。当在PWMCON寄存器中相应的CP位设置为0,特殊的PWM输出模块是在独立的输出模式里。在这种情况下,PWM的两种通道输出是相互独立的。在PWM0/PWML口的信号是从PWM0电机产生的。通道选择逻辑完成单独情况,如图6所示。PWM I/O口通过默认意见复位设置为独立模式,但死区时间电机不能在独立模式下工作。仿真结果如图6所示。Tr4和Tr3分别与PWM0和PWM1相连,实际上,从图看,单片机的P15/P4口被用做PWMH/PWML或是一般的I/O口。 图6 独立模式下的PWM波形互补PWM输出模式

    8、互补输出模式可以用于驱动逆变器负载,如图7所示。这种逆变器拓扑学是典型的直流装置。在互补输出模式,PWM的两个输出不能同时用。PWM通道和输出口都是通过通道选择逻辑内部配置的,如图7所示。死区时间是在两端输出的开关装置没有工作的短时期时可以选择插入的。图7 PWM互补输出的典型电路PWM I/O口通过在PWMCON中设置适当的CPWM位选择互补模式,在这种情况下,PSWL是有效果的。当PSEL设置为0时,PWMH和PWML将来自PWM0电机,这时来自PWM1电机的信号是没用的,而当PSEL设置为1时,PWMH和PWML将来自PWM1电机,这时来自PWM0电机的信号是没用的。在互补模式时产生PW

    9、M输出信号的过程中,死区时间将被插入在以下这部分讲述。死区时间控制当PWM I/O口在互补输出模式运行时,死区时间是自动启用生成的,因为电源输出装置不能瞬间开关,在互补对模式下,一个PWM输出的关闭与其它晶体管打开之间要一定的时间,2输出的PWM模块有一个带有8位寄存器的可编程死区时间。 PWM模块的互补输出对已有一个用于产生死区时间插入的8位计数器。死区时间单元有一个上升沿和下降沿探测器,而这个探测器与PWM电机产生的PWM信号连接。当到达PWM边沿时,死区时间被载入计时器,根据是否是上升沿或下降沿,在互补输出端口上的其中一个过度被延迟,直到计数器降为0。PWM输出对的死区时间表,如图8a所

    10、示:图8a 死区时间单元模块图图8b 互补模式的PWM输出波形总 结:本文,我们设计了基于8位兼容8051单片机的PWM模块,这种设计能产生2通道带有两种运行模式的可编程周期PWM信号,即可插入死区时间的独立模式和互补模式。这种在EDA平台的仿真结果已证明了它的和谐性和有用性。附件2:外文原文(复印件)Design of PWM Controller in a MCS-51 Compatible MCU IntroductionPWM technology is a kind of voltage regulation method by controlling the switch freq

    11、uency of DC power with fixed voltage to modify the two-end voltage of load. This technology can be used for a variety of applications including motor control, temperature control and pressure control and so on. In the motor control system shown as Fig. 1, through adjusting the duty cycle of power sw

    12、itch, the speed of motor can be controlled. As shown in Fig. 2, under the control of PWM signal, the average of voltage that controls the speed of motor changes with Duty-cycle ( D = t1/T in this Figure ), thus the motor speed can be increased when motor power turn on, decreased when power turn off.

    13、Fig.1: The Relationship between Voltage of Armature and Fig.2 Architecture of PWM Module Therefore, the motor speed can be controlled with regularly adjusting the time of turn-on and turn-off. There are three methods could achieve the adjustment of duty cycle: (1) Adjust frequency with fixed pulse-w

    14、idth. (2) Adjust both frequency and pulse-width. (3) Adjust pulse-width with fixed frequency. Generally, there are four methods to generate the PWM signals as the following: (1) Generated by the device composed of separate logic components. This method is the original method which now has been disca

    15、rded. (2) Generated by software. This method need CPU to continuously operate instructions to control I/O pins for generating PWM output signals, so that CPU can not do anything other. Therefore, the method also has been discarded gradually. (3) Generated by ASIC. The ASIC makes a decrease of CPU bu

    16、rden and steady work generally has several functions such as over-current protection, dead-time adjustment and so on. Then the method has been widely used in many kinds of occasion now. (4) Generated by PWM function module of MCU. Through embedding PWM function module in MCU and initializing the fun

    17、ction, PWM pins of MCU can also automatically generate PWM out signals without CPU controlling only when need to change duty-cycle. It is the method that will be implemented in this paper.In this paper, we propose a PWM module embedded in a 8051 microcontroller. The PWM module can support PWM pulse

    18、signals by initializing the control register and duty-cycle register with three methods just mentioned above to adjust the duty cycle and several operation modes to add flexibility for user. The following section explains the architecture of the PWM module and the architectures of basic functional b

    19、locks. Section3 describes two operation modes. Experimental and simulation results verifying proper system operation are also shown in that section. Depending on mode of operation, the PWM module creates one or more pulse-width modulated signals, whose duty ratios can be independently adjusted.Imple

    20、mentation of PWM module in MCUOverview of the PWM moduleA block diagram of PWM module is shown in Fig.3. It is clearly from the diagram that the whole module is composed of two sections: PWM signal generator and dead-time generator with channel select logic. The PWM function can be started by the us

    21、er through implementing some instructions for initializing the PWM module. In particular, the following power and motion control applications are supported: DC Motor Uninterruptablel Power Supply (UPS)The PWM module also has the following features: Two PWM signal outputs with complementary or indepe

    22、ndent operation Hardware dead-time generators for complementary mode Duty cycle updates are configurable to be immediated or synchronized to the PWMFig.3 Architecture of PWM ModuleDetails of the architecturePMW generatorThe architecture of the 2-output PWM generator shown in Fig.4 is based on a 16-b

    23、it resolution counter which creates a pulse-width modulated signal. The system is synthesized by a system clock signal whose frequency can be divided by 4 times or 12 times through setting the value of T3M for PWM0 or T4M for PWM1 in the special register PWMCON as shown in Fig.4. To PWM0 generator,

    24、the clock to 16-bit counter will be pre-divided by 4 times by default when T3M is set to zero. And the clock will be divided by 12 times when T3M is set to 1. This is also true for PWM1. The other bits in PWMCON are explained in detail in Table 1. Fig .4 Bit Mapping of PWMCONTable 1: The Bit Definit

    25、ion in PWMCONChannel-select logicThe follow Fig. 5 shows the channel-select logic which is useful in Complementary Mode. From this diagram, it is clear to know that signal CP and CPWM control the source of PWMH and PWML. And the details about the two control signals will be discussed in the section

    26、3, and the architecture of dead-time generator will also be discussed in section 5 for the continuity of Complementary Mode.Fig. 5 Diagram of Channel-select LogicOperation Mode and Simulation ResultsThe design has two operation modes: Independent Mode and Complimentary Mode. By setting the correspon

    27、ding bit CPWM in register PWMCON shown in Fig.6 user can select one of the two operation modes. When CPWM is set to zero, PWM module will work in Independent Mode, whereas, PWM module will work in Complimentary Mode. In the following of this section, the two operation mode will be explained respecti

    28、vely in detail and the simulation results of the PWM module from the Synoposys VCS EDA platform which verify the design will also be shown.Independent PWM Output ModeAn Independent PWM Output mode is useful for driving loads such as the one shown in Figure 6. A particular PWM output is in the Indepe

    29、ndent Output mode when the corresponding CP bit in the PWMCON register is set to zero.In this case, two-channel PWM outputs are independent of each other. The signal on pin PWM0/PWMH is from PWM0 generator, and the signal on pin PWM1/PWML is from PWM0 generator. The separate case is achieved by the

    30、channel-select logic shown in Fig. 6. The PWM I/O pins are set to independent mode by default upon advice reset. The dead-time generator is disabled in the Independent mode. The simulation result is shown in Figure 6 as the following Fig.6 Tr4 and tr3 are run bits to PWM0 and PWM1, respectively. Act

    31、ually, from this diagram, Pin P15/ P14 of MCU is used for PWMH/ PWML or normal I/O ,alternatively.Fig6 the Waveform of PWM Outputs in Independent ModeComplementary PWM Output ModeThe Complementary Output mode is used to drive inverter loads similar to the one shown in Figure 7. This inverter topolog

    32、y is typical for DC applications. In Complementary Output Mode, the pair of PWM outputs cannot be active simultaneously. The PWM channel and output pin pair are internally configured through channel-select logic as shown in Figure7. A dead-time may be optionally inserted during device switching where both outputs are inactive for a short period.Fig 7 : Typical Load for Complementary PWM OutputsThe Comp


    注意事项

    本文(外文资料翻译基于C51兼容微处理器单片机的PWM控制器设计.docx)为本站会员主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 冰点文库 网站版权所有

    经营许可证编号:鄂ICP备19020893号-2


    收起
    展开