
CTM
REFERENCE
MOTOROLA
9-13
PULSE WIDTH MODULATION SUBMODULE
For More Information On This Product,
Go to: www.freescale.com
9
disabled, a period value written to PWMA1 is loaded into PWMA2 on the next tic (of the MCU
system clock). PWMA2 is a temporary register that is used for smoothly updating the PWM period
value; it cannot be read or written directly by software.
Software may write a new period value into PWMA1 at any time and this new value will take effect
at the start of the next PWM period (or when the LOAD bit in the PWMSIC register is written to a
‘1’). The PWMSM hardware does not modify the contents of PWMA1 at any time.
9.4.3
PWMB — PWM pulse width register
The PWMB register contains the pulse width value for the next cycle of the PWM output waveform.
In normal usage, with the PWMSM enabled, the software writes a pulse width value into PWMB1
and this value is then loaded into the PWMB2 register at the end of the current period. If the
PWMSM is disabled, a pulse width value written to PWMB1 is loaded into PWMB2 on the next tic
(of the MCU system clock). PWMB2 is a temporary register that is used for smoothly updating the
PWM pulse width value; it cannot be read or written directly by software.
(1) Offset fromthe base address of the PWMSMsubmodule.
Table 9-5
PWMSM clock rate selection
PWMSMCLK bits
CLK2
CLK1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
CPSMbit
DIV23
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
PWMSMclock
Clock source
CLK0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
f
f
f
SYS
/ 2
/ 4
/ 8
/ 16
/ 32
/ 64
/ 128
/ 512
PCLK1
Prescaler (/2)
Prescaler (/4)
Prescaler (/8)
Prescaler (/16)
Prescaler (/32)
Prescaler (/64)
Prescaler (/256)
PCLK1
Prescaler (/2)
Prescaler (/4)
Prescaler (/8)
Prescaler (/16)
Prescaler (/32)
Prescaler (/64)
Prescaler (/256)
SYS
SYS
f
f
f
SYS
SYS
SYS
f
f
SYS
SYS
f
SYS
/ 3
f
SYS
/ 6
f
SYS
/ 12
f
SYS
/ 24
f
SYS
/ 48
f
SYS
/ 96
f
SYS
/ 192
f
SYS
/ 768
Bit:
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PWMA
$02
(1)
MSB
LSB
Reset:
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
u
F
.
Freescale Semiconductor, Inc.