Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
16-75
16.5
Initialization/Application Information
Upon reset, all eMIOS unified channels default to general purpose inputs (GPIO input mode).
16.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.
16.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.
16.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
+
(
)
×
=
Содержание MPC5565
Страница 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Страница 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Страница 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Страница 325: ...Error Correction Status Module ECSM MPC5565 Microcontroller Reference Manual Rev 1 0 8 16 Freescale Semiconductor...
Страница 515: ...External Bus Interface EBI MPC5565 Microcontroller Reference Manual Rev 1 0 12 70 Freescale Semiconductor...
Страница 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Страница 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Страница 577: ...Boot Assist Module BAM MPC5565 Microcontroller Reference Manual Rev 1 0 15 18 Freescale Semiconductor...
Страница 895: ...Deserial Serial Peripheral Interface DSPI MPC5565 Microcontroller Reference Manual Rev 1 0 19 72 Freescale Semiconductor...
Страница 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Страница 1145: ...MPC5565 Register Map MPC5565 Microcontroller Reference Manual Rev 1 0 A 60 Freescale Semiconductor...
Страница 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...