![Freescale Semiconductor MCF52230 ColdFire Скачать руководство пользователя страница 522](http://html1.mh-extra.com/html/freescale-semiconductor/mcf52230-coldfire/mcf52230-coldfire_reference-manual_2330648522.webp)
Pulse-Width Modulation (PWM) Module
Freescale Semiconductor
29-4
MCF52235 ColdFire® Integrated Microcontroller Reference Manual, Rev. 6
29.2.2
PWM Polarity Register (PWMPOL)
The starting polarity of each PWM channel waveform is determined by the associated PWMPOL[PPOL
n
]
bit. If the polarity is changed while a PWM signal is being generated, a truncated or stretched pulse can
occur during the transition.
29.2.3
PWM Clock Select Register (PWMCLK)
Each PWM channel has the capability of selecting one of two clocks. For channels0, 1, 4, and 5, the clock
choices are clock A or SA. For channels2, 3, 6, and 7, the choices are clock B or SB. The clock selection
is done with the below PWMCLK[PCLK
n
] control bits. If a clock select is changed while a PWM signal
is being generated, a truncated or stretched pulse can occur during the transition.
1
PWME1
PWM Channel 1 Output Enable. If enabled, the PWM signal becomes available at PWMOUT1 when its
corresponding clock source begins its next cycle.
0 PWM output disabled
1 PWM output enabled
0
PWME0
PWM Channel 0 Output Enable. If enabled, the PWM signal becomes available at PWMOUT0 when its
corresponding clock source begins its next cycle. If PWMCTL[CON01] is set, then this bit has no effect and
PWMOUT0 is disabled.
0 PWM output disabled
1 PWM output enabled, if PWMCTL[CON01]=0
IPSBAR
Offset:
0x1B_0001 (PWMPOL)
Access:
SupervisorRead/Write
7
6
5
4
3
2
1
0
R
PPOL7
PPOL6
PPOL5
PPOL4
PPOL3
PPOL2
PPOL1
PPOL0
W
Reset:
0
0
0
0
0
0
0
0
Figure 29-3. PWM Polarity Register (PWMPOL)
Table 29-3. PWMPOL Field Descriptions
Field
Description
7–0
PPOLn
PWM Channel n Polarity. The even-numbered channels’ polarity has no effect when the corresponding
PWMCTL[CONn(n+1)] bit is set. For example, if PWMCTL[CON01] equals 1, PWMPOL[PPOL0] has no affect.
0 PWM channel n output is low at the beginning of the period, then goes high when the duty count is reached
1 PWM channel n output is high at the beginning of the period, then goes low when the duty count is reached
Table 29-2. PWME Field Descriptions (continued)
Field
Description
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:MCF52234CVM60,
MCF52235CVM60