MPC5553/MPC5554 Microcontroller Reference Manual, Rev. 5
Freescale Semiconductor
17-27
Note that for input modes, any input events that may occur while the channel is frozen are ignored.
When exiting debug mode or freeze enable bit is cleared (FRZ in the EMIOS_MCR or FREN in the
EMIOS_CCR
n
) the channel actions resume.
17.4.4.4
Modes of Operation of the Unified Channels
The mode of operation of a unified channel is determined by the mode select bits MODE[0:6] in the
EMIOS_CCR
n
for details.
When entering an output mode (except for GPIO mode), the output flip-flop is set to the complement of
the EDPOL bit in the EMIOS_CCR
n
.
Because the internal counter EMIOS_CCNTR
n
continues to run in all modes (except for GPIO mode), it
is possible to use this counter as the UC time base unless it (the internal counter) is a required resource in
the operation of the selected mode.
To provide smooth waveform generation while allowing A and B registers to be asynchronously updated
during UC operation, the double-buffered modes MCB, OPWFMB, OPWMB, and OPWMCB are
provided (beginning at
Section 17.4.4.4.15, “Modulus Counter, Buffered Mode (MCB) (MPC5553
”). In these modes the A and B registers are double buffered. Descriptions of the double-buffered
modes are presented separately, because there are several basic differences from the single-buffered MC,
OPWFM, OPWM, and OPWMC modes.
Section 17.4.4.4.2, “Single Action Input Capture Mode (SAIC)
Pulse Width Modulation, Buffered Mode (OPWMB) (MPC5553 Only)
” below explain in detail the unified
channels’ modes of operation.
17.4.4.4.1
General Purpose Input/Output Mode (GPIO)
In GPIO mode, all input capture and output compare functions of the UC are disabled, the internal counter
(EMIOS_CCNTRn register) is cleared and disabled. All control bits remain accessible. In order to prepare
the UC for a new operating mode, writing to registers EMIOS_CADR
n
or EMIOS_CBDR
n
stores the
same value in registers A1/A2 or B1/B2, respectively.
MODE[6] bit selects between input (MODE[6] = 0) and output (MODE[6] = 1) modes.
It is required that when changing MODE[0:6], the application software goes to GPIO mode first in order
to reset the UC’s internal functions properly. Failure to do this can lead to invalid and unexpected output
compares and input capture results, or can cause the FLAGs to be set incorrectly.
In GPIO input mode, the FLAG generation is determined according to EDPOL and EDSEL bits and the
input pin status can be determined by reading the UCIN bit.
In GPIO output mode, the unified channel is used as a single output port pin and the value of the EDPOL
bit is permanently transferred to the output flip-flop.
Table 17-14. Mode of Operation: GPIO Mode
MODE[0:6]
Unified Channel Mode of Operation
0b0000000
General purpose input/output mode (input)
0b0000001
General purpose input/output mode (output)
Summary of Contents for MPC5553
Page 5: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 2 Freescale Semiconductor...
Page 21: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 xvi Freescale Semiconductor...
Page 47: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 1 26 Freescale Semiconductor...
Page 163: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 4 20 Freescale Semiconductor...
Page 179: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 5 16 Freescale Semiconductor...
Page 561: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 13 38 Freescale Semiconductor...
Page 615: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 14 54 Freescale Semiconductor...
Page 707: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 17 68 Freescale Semiconductor...
Page 755: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 18 48 Freescale Semiconductor...
Page 873: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 19 118 Freescale Semiconductor...
Page 984: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 Freescale Semiconductor 21 41...
Page 985: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 21 42 Freescale Semiconductor...
Page 1019: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 22 34 Freescale Semiconductor...
Page 1129: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 25 90 Freescale Semiconductor...