ImageVerifierCode 换一换
格式:DOCX , 页数:25 ,大小:615.90KB ,
资源ID:2807546      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/2807546.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Chapter 13 PWM.docx)为本站会员(b****5)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

Chapter 13 PWM.docx

1、Chapter 13 PWMChapter 13Pulse-Width Modulator (S12PWM8B8CV1)中心对齐输出模式和4个可用的时钟源该PWM模块有8个独立控制中心和左对齐输出的通道。独立控制周期、占空比、计数器。The PWM definition is based on the HC12 PWM definitions. It contains the basic features from the HC11 with some of the enhancements incorporated on the HC12: center aligned output mod

2、e and four available clock sources.The PWM module has eight channels with independent control of left and center aligned outputs on each channel.Each of the eight channels has a programmable period and duty cycle as well as a dedicated counter. A flexible clock select scheme allows a total of four d

3、ifferent clock sources to be used with the counters. Each of the modulators can create independent continuous waveforms with software-selectable duty rates from 0% to 100%. The PWM outputs can be programmed as left aligned outputs or center aligned outputs.13.1.1 Features周期和占空比双缓冲在有效周期的末尾或通道被禁用,更改才会

4、有效(PWM计数器归零)8个8位或4个16位PWM通道Four clock sources (A, B, SA, and SB) provide for a wide range of frequencies4个时钟源(A,B,SA和SB )提供了广泛的频率紧急关闭The PWM block includes these distinctive features: Eight independent PWM channels with programmable period and duty cycle Dedicated counter for each PWM channel Progra

5、mmable PWM enable/disable for each channel Software selection of PWM duty pulse polarity for each channel Period and duty cycle are double buffered. Change takes effect when the end of the effective period is reached (PWM counter reaches zero) or when the channel is disabled. Programmable center or

6、left aligned outputs on individual channels Eight 8-bit channel or four 16-bit channel PWM resolution Four clock sources (A, B, SA, and SB) provide for a wide range of frequencies Programmable clock select logic Emergency shutdown13.1.2运行模式可编程禁止时钟进入分频器,以进入低功耗的等待模式。Freeze模式中有一个软件可编程选项禁止时钟输入分频器。这对仿真是有

7、益的There is a software programmable option for low power consumption in wait mode that disables the input clock to the prescaler.In freeze mode there is a software programmable option to disable the input clock to the prescaler. This is useful for emulation.13.2外部信号描述13.2 External Signal DescriptionT

8、he PWM module has a total of 8 external pins.该PWM模块共有8外部引脚。13.2.1 PWM7 PWM Channel 7This pin serves as waveform output of PWM channel 7 and PWM通道7作为输入的紧急关断功能13.2.1 PWM7 PWM Channel 7This pin serves as waveform output of PWM channel 7 and as an input for the emergency shutdown feature.13.2.2 PWM6 PWM

9、 Channel 6This pin serves as waveform output of PWM channel 6.13.2.3 PWM5 PWM Channel 5This pin serves as waveform output of PWM channel 5.13.2.4 PWM4 PWM Channel 4This pin serves as waveform output of PWM channel 4.13.2.5 PWM3 PWM Channel 3This pin serves as waveform output of PWM channel 3.13.2.6

10、PWM3 PWM Channel 2This pin serves as waveform output of PWM channel 2.13.2.7 PWM3 PWM Channel 1This pin serves as waveform output of PWM channel 1.13.2.8 PWM3 PWM Channel 0This pin serves as waveform output of PWM channel 0.寄存器中的保留位总是为013.3.2 Register Descriptions13.3.2.1 PWM Enable Register (PWME)E

11、ach PWM channel has an enable bit (PWMEx) to start its waveform output. When any of the PWMEx bits are set (PWMEx = 1), the associated PWM output is enabled immediately. However, the actual PWM waveform is not available on the associated PWM output until its clock source begins its next cycle due to

12、 the synchronization of PWMEx and the clock source.NOTEThe first PWM cycle after enabling the channel can be irregular. An exception to this is when channels are concatenated. Once concatenated mode is enabled (CONxx bits set in PWMCTL register), enabling/disabling the corresponding 16-bit PWM chann

13、el is controlled by the low order PWMEx bit.In this case, the high order bytes PWMEx bits have no effect and their corresponding PWM output lines are disabled. While in run mode, if all eight PWM channels are disabled (PWME70 = 0), the prescaler counter shuts off for power savings.1 = 通道 x 使能. 下一个时钟

14、开始输出PWM 0 = 通道x禁止当在16位模式时,使能控制由1;3;5;7位决定。在16位模式时0,2,4,6位将没有用。在运行过程中,如果8个通道被关掉,那么预分频记数器也将关掉,为了省电。PWME PWME_PWME0 -PWME_PWME7 If CON67=1, then bit has no effect and PWM output line 6 is disabled.If CON45 = 1, then bit has no effect and PWM output bit4 is disabledIf CON23 = 1, then bit has no effect a

15、nd PWM output bit2 is disabled.If CON01 = 1, then bit has no effect and PWM output line0 is disabled.PWME7:Pulse Width Channel 7 Enable0 Pulse width channel 7 is disabled.1 Pulse width channel 7 is enabled. The pulse modulated signal becomes available at PWM output bit 7 when its clock source begins

16、 its next cycle.PWME6:Pulse Width Channel 6 Enable0 Pulse width channel 6 is disabled.1 Pulse width channel 6 is enabled. The pulse modulated signal becomes available at PWM output bit6 when its clock source begins its next cycle. If CON67=1, then bit has no effect and PWM output line 6 is disabled.PWME5:

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1