Enhanced Modular I/O Subsystem (eMIOS200)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
26-18
Freescale Semiconductor
Preliminary
shows the unified channel control block diagram.
Figure 26-12. Unified Channel Control Block Diagram
26.5.1.1
Unified Channel Modes of Operation
The mode of operation of the unified channel is determined by the mode select bits MODE in the
EMIOS_CCR[n] register (see
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] register.
As the internal counter EMIOS_CCNTR[n] continues to run in all modes (except for GPIO mode), it is
possible to use this as a time base if the resource is not used in the current mode.
26.5.1.1.1
General-Purpose Input/Output (GPIO) Mode
In GPIO mode, all input capture and output compare functions of the unified channel are disabled, the
internal counter (EMIOS_CCNTR[n] register) is cleared and disabled. All control bits remain accessible.
In order to prepare the unified channel for a new operation mode, writing to registers EMIOS_CADR[n]
or EMIOS_CBDR[n] stores the same value in registers A1/A2 or B1/B2, respectively.
The MODE[6] bit selects between input (MODE[6] = 0) and output (MODE[6] = 1) modes.
When changing MODE, the application software must go to GPIO mode first to reset the unified channel’s
internal functions properly. Failure to do this could lead to invalid and unexpected output compare or input
capture results or the FLAGs being set incorrectly.
MODEn_en
Mode 0
Logic
Mode 1
Logic
Mode n
Logic
•
•
•
• • •
•
•
•
MODE1_en
MODE0_en
EMIOS_CCR/Mode
Shared
Logic
Channel
Datapath
Channel Controller
••
Control
Signals
Control Signals
Control Signals