欢迎访问ic37.com |
会员登录 免费注册
发布采购

MC9S12P64CFT 参数 Datasheet PDF下载

MC9S12P64CFT图片预览
型号: MC9S12P64CFT
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器 [Microcontrollers]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 566 页 / 7414 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC9S12P64CFT的Datasheet PDF文件第353页浏览型号MC9S12P64CFT的Datasheet PDF文件第354页浏览型号MC9S12P64CFT的Datasheet PDF文件第355页浏览型号MC9S12P64CFT的Datasheet PDF文件第356页浏览型号MC9S12P64CFT的Datasheet PDF文件第358页浏览型号MC9S12P64CFT的Datasheet PDF文件第359页浏览型号MC9S12P64CFT的Datasheet PDF文件第360页浏览型号MC9S12P64CFT的Datasheet PDF文件第361页  
Pulse-Width Modulator (PWM8B6CV1) Block Description  
between the PWM counter and the period register behaves differently depending on what output mode is  
selected as shown in Figure 10-35 and described in Section 10.4.2.5, “Left Aligned Outputs,and  
Section 10.4.2.6, “Center Aligned Outputs.”  
Each channel counter can be read at anytime without affecting the count or the operation of the PWM  
channel.  
Any value written to the counter causes the counter to reset to 0x0000, the counter direction to be set to  
up, the immediate load of both duty and period registers with values from the buffers, and the output to  
change according to the polarity bit. When the channel is disabled (PWMEx = 0), the counter stops. When  
a channel becomes enabled (PWMEx = 1), the associated PWM counter continues from the count in the  
PWMCNTx register. This allows the waveform to resume when the channel is re-enabled. When the  
channel is disabled, writing 0 to the period register will cause the counter to reset on the next selected  
clock.  
NOTE  
If the user wants to start a new “clean” PWM waveform without any  
“history” from the old waveform, the user must write to channel counter  
(PWMCNTx) prior to enabling the PWM channel (PWMEx = 1).  
Generally, writes to the counter are done prior to enabling a channel to start from a known state. However,  
writing a counter can also be done while the PWM channel is enabled (counting). The effect is similar to  
writing the counter when the channel is disabled except that the new period is started immediately with  
the output set according to the polarity bit.  
NOTE  
Writing to the counter while the channel is enabled can cause an irregular  
PWM cycle to occur.  
The counter is cleared at the end of the effective period (see Section 10.4.2.5, “Left Aligned Outputs,and  
Section 10.4.2.6, “Center Aligned Outputs,for more details).  
Table 10-11. PWM Timer Counter Conditions  
Counter Clears (0x0000)  
Counter Counts  
Counter Stops  
When PWMCNTx register  
written to any value  
When PWM channel is  
enabled (PWMEx = 1). Counts  
from last value in PWMCNTx.  
When PWM channel is  
disabled (PWMEx = 0)  
Effective period ends  
10.4.2.5 Left Aligned Outputs  
The PWM timer provides the choice of two types of outputs, left aligned or center aligned outputs. They  
are selected with the CAEx bits in the PWMCAE register. If the CAEx bit is cleared (CAEx = 0), the  
corresponding PWM output will be left aligned.  
In left aligned output mode, the 8-bit counter is configured as an up counter only. It compares to two  
registers, a duty register and a period register as shown in the block diagram in Figure 10-35. When the  
S12P-Family Reference Manual, Rev. 1.13  
Freescale Semiconductor  
357  
 复制成功!