MOTOROLA
PULSE WIDTH MODULATOR
MMC2001
15-4
REFERENCE MANUAL
15.2.1 PWM Control Register
The PWM control register (PWMCR) controls the overall operation of the PWM chan-
nel. The status of the channel pin is also accessible.
Figure 15-4 PWM Control Registers
DOZE — Doze Mode
When the CPU executes a doze instruction and the system is placed in doze mode,
the DOZE bit affects operation of the PWM channel. If this bit is set, the PWM chan-
nel is disabled in doze mode. PWM channel operation is suspended at the end of the
current period. If IRQ_EN is set, an interrupt request is still generated following the
period compare that causes suspension. This interrupt can selectively cause the
CPU to exit doze mode.
0 =
PWM channel is unaffected in doze mode
1 =
PWM channel is disabled in doze mode
At reset, this bit is cleared to zero.
PWM IRQ — PWM Interrupt Request
This bit indicates that an interrupt was posted by a period compare. This bit can be
set by the user to post a PWM interrupt immediately for debugging purposes. This bit
is cleared automatically after it is read while set. If IRQ EN is cleared, this bit will not
be set.
0 =
No interrupt posted
1 =
PWM period rolled over
IRQ EN — Interrupt Request Enable
This bit controls PWM interrupt generation. While this bit is low, the interrupt is dis-
abled.
0 =
PWM interrupt disabled
1 =
PWM interrupt enabled
LOAD — Load PWMPR and PWMWR
Setting this bit forces a new period. The period and width registers are loaded into the
comparator latches and the counter is reset. This bit is cleared automatically after the
load has been performed. The actual load occurs some time after the CPU writes this
PWMCR0 — PWM0 Control Register
10005000
PWMCR1 — PWM1 Control Register
10005008
PWMCR2 — PWM2 Control Register
10005010
PWMCR3 — PWM3 Control Register
10005018
PWMCR4 — PWM4 Control Register
10005020
PWMCR5 — PWM5 Control Register
10005028
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
DOZE
PWM
IRQ
IRQ
EN
LOAD
DATA
DIR
POL
MODE
COUNT
EN
CLKSEL
W
RESET:
0
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.
..