![NXP Semiconductors MPC5566 Reference Manual Download Page 754](http://html1.mh-extra.com/html/nxp-semiconductors/mpc5566/mpc5566_reference-manual_1721850754.webp)
Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
17-75
17.5
Initialization/Application Information
Upon reset, all eMIOS unified channels default to general purpose inputs (GPIO input mode).
17.5.1
Considerations on Changing a UC Mode
Before changing an operating mode, program the UC to GPIO mode, and update EMIOS_CADR
n
and
EMIOS_CBDR
n
with the values for the next operating mode. The EMIOS_CCR
n
can be written with the
next operating mode. If a UC is changed from one mode to another without performing this procedure, the
first operating cycle of the selected time base is unpredictable.
NOTE
When interrupts are enabled and an interrupt is generated, clear the FLAG
bits before exiting the interrupt service routine.
17.5.2
Generating Correlated Output Signals
Correlated output signals can be generated by all output operating modes. Bits ODIS
n
can be used to
control the update of these output signals.
To guarantee that the internal counters of correlated channels are incremented in the same clock cycle, the
internal prescalers must be set up before enabling the global prescaler. If the internal prescalers are set after
enabling the global prescaler, the internal counters can increment in the same ratio, but at a different clock
cycle.
Drive output disable input signals with the EMIOS_Flag_Out signals of some UCs running in SAIC mode.
When an output disable condition occurs, the software interrupt routine must service the output channels
before servicing the channels running SAIC. This procedure avoid glitches in the output pins.
17.5.3
Time Base Generation
For all channel operation modes that generate a time base (MC, OPWFM, OPWM, MCB, OPWFMB and
OPWMB), the internal counter rate can be modified by configuring the clock prescaler ratio. The clock
prescaler can use several ratios calculated as:
The prescaled clocks in
illustrate the time base generation
mechanism.
shows the time base generation when using the internal clock set and clear on
match start.
Ratio
GPRE
1
+
(
)
UCPRE
1
+
(
)
×
=
Summary of Contents for MPC5566
Page 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Page 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Page 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Page 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Page 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Page 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Page 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...