Modular Input/Output Subsystem (MIOS14)
MPC561/MPC563 Reference Manual, Rev. 1.2
17-48
Freescale Semiconductor
•
PWM period and pulse width values provided by software:
— Double-buffered for glitch-free period and pulse width changes
— Minimum output period/pulse-width increment: 50 ns (assuming f
SYS
= 40 MHz)
— Maximum 50% duty-cycle output frequency: 10 MHz (assuming f
SYS
= 40 MHz)
— Up to 16 bits of resolution for the output pulse width
— Wide range of periods
– 16 bits of resolution: period range from 3.27 ms (with 50-ns steps) to 6.71 s (with 102.4
µ
s
steps)
– Eight bits of resolution: period range from 12.8
µ
s (with 50-ns steps) to 26.2 ms (with
102.4-
µ
s steps)
— Wide range of frequencies
– Maximum output frequency at f
SYS
= 40 MHz with 16 bits of resolution and divide-by-2
prescaler selection: 305 Hz (3.27 ms.)
– Minimum output frequency at f
SYS
= 40 MHz with 16 bits of resolution and divide-by-4096
prescaler selection: 0.15 Hz (6.7 s.)
– Maximum output frequency at f
SYS
= 40 MHz with 8 bits of resolution and divide-by-2
prescaler selection: 78125 Hz (12.8
µ
s.)
– Minimum output frequency at f
SYS
= 40 MHz with 8 bits of resolution and divide-by-4096
prescaler selection: 38.15 Hz (26.2 ms.)
•
Programmable duty cycle from 0% to 100%
•
Possible interrupt generation at start of every period
•
Software selectable output pulse polarity
•
Software readable output signal status
•
Possible use of signal as I/O port when PWM function is not needed
17.10.3 MPWMSM Description
The purpose of the MPWMSM is to create a variable pulse width output signal at a wide range of
frequencies, independently of other MIOS14 output signals. The MPWMSM includes its own counter, and
thus does not use the MIOS14 counter bus set. However the MPWMSM uses the prescaled clock bus that
originates in the MIOS14 counter prescaler submodule (MCPSM). The MPWMSM pulse width can vary
from 0% to 100%, with up to 16 bits of resolution. The finest output resolution is the MIOS14 CLOCK
period multiplied by two (for a MIOS14 CLOCK with f
SYS
= 40 MHz, the finest output pulse width
resolution is 50 ns). With the full 16 bits of resolution and the MCPSM set to divide by two, the period of
the output signal can range from 3.276 ms to 6.71 s (assuming f
SYS
= 40 MHz).
By reducing the amount of bits of resolution, the output signal period can be reduced. For example, the
period can be as fast as 204.8
µ
s (4882 Hz) with 12 bits of resolution, as fast as 12.8
µ
s (78.125 KHz) with
eight bits of resolution, and as fast as 3.2
µ
s (312.5 KHz) with six bits of resolution (still assuming a f
SYS
= 40 MHz and the MCPSM set to divide by two).
The MPWMSM is composed of:
Summary of Contents for MPC561
Page 84: ...MPC561 MPC563 Reference Manual Rev 1 2 lxxxiv Freescale Semiconductor...
Page 144: ...Signal Descriptions MPC561 MPC563 Reference Manual Rev 1 2 2 46 Freescale Semiconductor...
Page 206: ...Central Processing Unit MPC561 MPC563 Reference Manual Rev 1 2 3 62 Freescale Semiconductor...
Page 302: ...Reset MPC561 MPC563 Reference Manual Rev 1 2 7 14 Freescale Semiconductor...
Page 854: ...Time Processor Unit 3 MPC561 MPC563 Reference Manual Rev 1 2 19 24 Freescale Semiconductor...
Page 968: ...Development Support MPC561 MPC563 Reference Manual Rev 1 2 23 54 Freescale Semiconductor...
Page 1144: ...Internal Memory Map MPC561 MPC563 Reference Manual Rev 1 2 B 34 Freescale Semiconductor...
Page 1212: ...TPU3 ROM Functions MPC561 MPC563 Reference Manual Rev 1 2 D 60 Freescale Semiconductor...
Page 1216: ...Memory Access Timing MPC561 MPC563 Reference Manual Rev 1 2 E 4 Freescale Semiconductor...