
MOTOROLA
PROGRAMMING REFERENCE
MMC2001
C-26
REFERENCE MANUAL
Figure C-25 PWM Period Registers
PERIOD — Pulse Period
This value causes the counter to be reset. There is one special case. When PERIOD
= 0, the output is never set high (0% duty cycle). In this case, the comparator is
loaded and the counter is reset on every PCLK. In addition, if enabled, an interrupt
request is generated on every PCLK.
C.6.3 PWM Width Register
The PWM width register (PWMWR) defines the pulse width in PCLKs. When the
counter matches the value in this register, the output is reset for the duration of the
period. Note that if the value in this register is not less than the period register, the
output will never be reset, resulting in a 100% duty cycle.
Figure C-26 PWM Width Registers
WIDTH — Pulse Width
When the counter reaches the value in this register, the output is reset.
PWMPR0 — PWM0 Period Register
10005002
PWMPR1 — PWM1 Period Register
1000500A
PWMPR2 — PWM2 Period Register
10005012
PWMPR3 — PWM3 Period Register
1000501A
PWMPR4 — PWM4 Period Register
10005022
PWMPR5 — PWM5 Period Register
1000502A
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
PERIOD
W
RESET:
0
0
0
0
0
0
0
0
0
0
PWMWR0 — PWM0 Width Register
10005004
PWMWR1 — PWM1 Width Register
1000500C
PWMWR2 — PWM2 Width Register
10005014
PWMWR3 — PWM3 Width Register
1000501C
PWMWR4 — PWM4 Width Register
10005024
PWMWR5 — PWM5 Width Register
1000502C
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
0
0
WIDTH
W
RESET:
0
0
0
0
0
0
0
0
0
0
Freescale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..