English
Language : 

PXD10RM Datasheet, PDF (272/1332 Pages) Freescale Semiconductor, Inc – PXD10 Microcontroller
9.6 Initialization/Application Information
On resetting the eMIOS200 the Unified Channels enter GPIO input mode.
9.6.1 Considerations
Before changing an operating mode, the UC must be programmed to GPIO mode and EMIOSA[n] and
EMIOSB[n] registers must be updated with the correct values for the next operating mode. Then the
EMIOSC[n] register can be written with the new operating mode. If a UC is changed from one mode to
another without performing this procedure, the first operation cycle of the selected time base can be
random, i.e., matches can occur in random time if the contents of EMIOSA[n] or EMIOSB[n] were not
updated with the correct value before the time base matches the previous contents of EMIOSA[n] or
EMIOSB[n].
When interrupts are enabled, the software must clear the FLAG bits before exiting the interrupt service
routine.
9.6.2 Application Information
Correlated output signals can be generated by all output operation modes. Bits OU[n] of EMIOSOUDIS
register 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.
It is recommended to drive Output Disable Input signals with the emios_flag_out signals of some UCs
running in SAIC mode. When an output disable condition happens, the software interrupt routine must
service the output channels before servicing the channels running SAIC. This procedure avoid glitches in
the output pins.
9.6.2.1 Time Base Generation
For the OPWFM with internal clock source operation mode, the internal counter rate can be modified by
configuring the clock prescaler ratio. Figure 9-42 shows an example of a time base with prescaler ratio
equal to one.
NOTE
MCB and OPWFMB modes have a different behavior.
9-46
PXD10 Microcontroller Reference Manual, Rev. 1
Preliminary—Subject to Change Without Notice
Freescale Semiconductor