![Freescale Semiconductor ColdFire MCF5211 Скачать руководство пользователя страница 426](http://html1.mh-extra.com/html/freescale-semiconductor/coldfire-mcf5211/coldfire-mcf5211_reference-manual_2330619426.webp)
Pulse-Width Modulation (PWM) Module
MCF5213 ColdFire® Integrated Microcontroller Reference Manual, Rev. 3
24-10
Freescale Semiconductor
24.2.10 PWM Channel Period Registers (PWMPER
n
)
The PWM period registers determine the period of the associated PWM channel. Refer to
for more information.
Calculating the output period depends on the output mode (center-aligned has twice the period as
left-aligned mode) as well as PWMPER
n
. See the below equation:
Eqn. 24-3
For boundary case programming values (e.g. PWMPER
n
= 0x00), please refer to
.”
24.2.11 PWM Channel Duty Registers (PWMDTY
n
)
The PWM duty registers determine the duty cycle of the associated PWM channel. To calculate the output
duty cycle (high time as a percentage of period) for a particular channel:
Eqn. 24-4
Table 24-10. PWMCNT
n
Field Descriptions
Field
Description
7–0
COUNT
Current value of the PWM up counter. Resets to zero when written.
IPSBAR
Offset:
0x1B_0014 (PWMPER0)
0x1B_0015 (PWMPER1)
0x1B_0016 (PWMPER2)
0x1B_0017 (PWMPER3)
0x1B_0018 (PWMPER4)
0x1B_0019 (PWMPER5)
0x1B_001A (PWMPER6)
0x1B_001B (PWMPER7)
Access: User Read/Write
7
6
5
4
3
2
1
0
R
PERIOD
W
Reset:
1
1
1
1
1
1
1
1
Figure 24-11. PWM Period Registers (PWMPER
n
)
Table 24-11. PWMPER
n
Field Descriptions
Field
Description
7–0
PERIOD
Period counter for the output PWM signal.
If PERIOD equals 0x00, the PWM
n
output is always high (PPOL
n
=1) or always low (PPOL
n
=0). See
Section 24.3.2.8, “PWM Boundary Cases”
for other special cases.
PWM
n
period
Channel clock period
PWMCAE CAE
n
[
]
1
+
(
)
PWMPER
n
×
×
=
Duty Cycle
1
PWMPOL PPOL
n
[
]
PWMDTY
n
PWMPER
n
------------------------------
–
–
⎝
⎠
⎛
⎞
100%
×
=
Содержание ColdFire MCF5211
Страница 48: ...Overview MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 1 14 Freescale Semiconductor...
Страница 158: ...Reset Controller Module MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 9 10 Freescale Semiconductor...
Страница 218: ...Edge Port Module EPORT MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 13 8 Freescale Semiconductor...
Страница 234: ...DMA Controller Module MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 14 16 Freescale Semiconductor...
Страница 378: ...I2 C Interface MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 22 16 Freescale Semiconductor...
Страница 468: ...FlexCAN MCF5213 ColdFire Integrated Microcontroller Reference Manual Rev 3 25 30 Freescale Semiconductor...