
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
+
(
)
×
=
Содержание MPC5566
Страница 12: ...MPC5566 Microcontroller Reference Manual Devices Supported MPC5566 MPC5566 RM Rev 2 0 23 Apr 2008...
Страница 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Страница 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Страница 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Страница 331: ...System Integration Unit SIU MPC5566 Microcontroller Reference Manual Rev 2 6 128 Freescale Semiconductor...
Страница 343: ...Crossbar Switch XBAR MPC5566 Microcontroller Reference Manual Rev 2 7 12 Freescale Semiconductor...
Страница 361: ...Error Correction Status Module ECSM MPC5566 Microcontroller Reference Manual Rev 2 8 18 Freescale Semiconductor...
Страница 455: ...Interrupt Controller INTC MPC5566 Microcontroller Reference Manual Rev 2 10 42 Freescale Semiconductor...
Страница 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Страница 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Страница 679: ...Boot Assist Module BAM MPC5566 Microcontroller Reference Manual Rev 2 16 20 Freescale Semiconductor...
Страница 997: ...Deserial Serial Peripheral Interface DSPI MPC5566 Microcontroller Reference Manual Rev 2 20 72 Freescale Semiconductor...
Страница 1037: ...Enhanced Serial Communication Interface eSCI MPC5566 Microcontroller Reference Manual Rev 2 21 40 Freescale Semiconductor...
Страница 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Страница 1081: ...Voltage Regulator Controller VRC and POR Module MPC5566 Microcontroller Reference Manual Rev 2 23 8 Freescale Semiconductor...
Страница 1093: ...IEEE 1149 1 Test Access Port Controller JTAGC MPC5566 Microcontroller Reference Manual Rev 2 24 12 Freescale Semiconductor...
Страница 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...
Страница 1267: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 10...
Страница 1268: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 11...