English
Language : 

MC9S12T64 Datasheet, PDF (362/608 Pages) Motorola, Inc – Specification
Freescale Semiconductor, Inc.
Pulse Width Modulator (PWM8B8C)
E=100ns
DUTY CYCLE = 75%
PERIOD = 400ns
Figure 63 PWM Left Aligned Output Example Waveform
Center Aligned
Outputs
For Center Aligned Output Mode selection, set the CAEx bit (CAEx=1)
in the PWMCAE register and the corresponding PWM output will be
center aligned.
The 8-bit counter operates as an up/down counter in this mode and is
set to up whenever the counter is equal to $00. The counter compares
to two registers, a duty register and a period register as shown in the
block diagram in Figure 61. When the PWM counter matches the duty
register the output flip-flop changes state causing the PWM waveform to
also change state. A match between the PWM counter and the period
register changes the counter direction from an up-count to a
down-count. When the PWM counter decrements and matches the duty
register again, the output flip-flop changes state causing the PWM
output to also change state. When the PWM counter decrements and
reaches zero, the counter direction changes from a down-count back to
an up-count and a load from the double buffer period and duty registers
to the associated registers is performed as described in PWM Period
and Duty. The counter counts from 0 up to the value in the period register
and then back down to 0. Thus the effective period is PWMPERx*2.
NOTE:
Changing the PWM output mode from Left Aligned Output to Center
Aligned Output (or vice versa) while channels are operating can cause
irregularities in the PWM output. It is recommended to program the
output mode before enabling the PWM channel.
MC9S12T64Revision 1.1.1
362
Pulse Width Modulator (PWM8B8C)
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA