![Freescale Semiconductor MPC5553 Скачать руководство пользователя страница 704](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5553/mpc5553_reference-manual_2330655704.webp)
MPC5553/MPC5554 Microcontroller Reference Manual, Rev. 5
Freescale Semiconductor
17-65
17.5
Initialization / Application Information
Upon reset all of the unified channels of the eMIOS default to general purpose inputs (GPIO input mode).
17.5.1
Considerations on Changing a UC Mode
Before changing an operating mode, the UC must be programmed to GPIO mode, and EMIOS_CADR
n
and EMIOS_CBDR
n
must be updated with the correct values for the next operating mode. Then the
EMIOS_CCR
n
can be written with the new 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, the FLAG bits
should be cleared 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.
In order 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 may increment in the same ratio, but at a
different clock cycle.
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 clock prescaler can use several ratios calculated as:
The prescaled clocks in
illustrate this ratio. For example, if
the ratio is 1, the prescaled clock is high and continuously enables the internal counter (EMIOS_CCNTR
n
)
(
); if the ratio is 3, then it pulses every 3 clock cycles (
) and the internal counter
increments every 3 clock cycles; if the ratio is 9, it pulses every 9 clock cycles, etc. This high pulse enables
the EMIOS_CCNTR
n
to increment as long as no other conditions disable this counter. The match signal
is generated by pulsing every time the internal counter matches the programmed match value. Note that
for the same programmed match value, the period is shorter when using a prescaler ratio greater than one.
Ratio
GPRE
1
+
UCPRE
1
+
=
Содержание MPC5553
Страница 5: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 2 Freescale Semiconductor...
Страница 21: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 xvi Freescale Semiconductor...
Страница 47: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 1 26 Freescale Semiconductor...
Страница 163: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 4 20 Freescale Semiconductor...
Страница 179: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 5 16 Freescale Semiconductor...
Страница 561: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 13 38 Freescale Semiconductor...
Страница 615: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 14 54 Freescale Semiconductor...
Страница 707: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 17 68 Freescale Semiconductor...
Страница 755: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 18 48 Freescale Semiconductor...
Страница 873: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 19 118 Freescale Semiconductor...
Страница 984: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 Freescale Semiconductor 21 41...
Страница 985: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 21 42 Freescale Semiconductor...
Страница 1019: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 22 34 Freescale Semiconductor...
Страница 1129: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 25 90 Freescale Semiconductor...
Страница 1207: ...Revision History 4 Freescale Semiconductor...