Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
16-65
illustrates the generation of 100% and 0% duty cycle signals. It is assumed that EDPOL = 0
and the prescaler ratio is 1. Initially A1 = 0x000008 and B1 = 0x000008. In this case, a B1 match has
precedence over an A1 match, thus the output flip-flop is set to the complement of EDPOL. This cycle
corresponds to a 100% duty cycle signal. The same output signal can be generated for any A1 value greater
than or equal to B1.
Figure 16-48. eMIOS OPWFMB Mode Example — 100% to 0% Duty Cycle
A 0% duty cycle signal is generated if A1 = 0 as shown in
cycle 9. In this case the
B1 = 0x000008 match from cycle 8 occurs at the same time as the A1 = 0x000000 match from cycle 9.
Refer to
for a description of A1 and B1 match generation for a case where A1 match has
precedence over B1 match and the output signal transitions to EDPOL.
16.4.4.4.17
Center-Aligned Output Pulse-Width Modulation Buffered Mode (OPWMCB)
The following table lists the center-aligned output pulse-width modulation buffered mode settings:
This mode generates a center-aligned PWM with dead time insertion on the leading or trailing edge. A1
and B1 registers are double buffered to allow smooth output signal generation when changing A2 or B2
values asynchronously.
The selected counter bus for a channel configured to OPWMCB mode must be another channel running
in MCB up/down counter mode (refer to
Section 16.4.4.4.15, “Modulus Counter Buffered Mode (MCB)
”).
Register A1 contains the ideal duty cycle for the PWM signal and is compared with the selected time base.
Register B1 contains the dead time value and is compared against the internal counter. For a leading edge
Table 16-30. OPWMCB Operating Modes
MODE[0:6]
Unified Channel OPWMCB Operating Mode
0b1011100
Center-aligned output pulse-width modulation, buffered. FLAG set on trailing edge,
trailing edge dead-time.
0b1011101
Center-aligned output pulse-width modulation, buffered. FLAG set on trailing edge,
leading edge dead-time.
0b1011110
Center-aligned output pulse-width modulation, buffered. FLAG set on both edges,
trailing edge dead-time.
0b1011111
Center-aligned output pulse-width modulation, buffered. FLAG set on both edges,
leading edge dead-time.
0x000008
0x000007
0x000006
0x000005
0x000004
0x000003
0x000002
0x000001 0x000000
0%
100%
EMIOS_CCNTR
n
EDPOL = 0
A1 value
B1 value
Output flip-flop
0x000008
Prescaler = 1
Cycle 1
Cycle 2
Cycle 3
Cycle 4
Cycle 5
Cycle 6
Cycle 7
Cycle 8
Cycle 9
0x000007
0x000006
0x000005
0x000004
0x000003
0x000002
0x000001
0x000000
A2 value
Time
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...