Enhanced Modular Input/Output Subsystem (eMIOS200)
PXN20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor 28-3
— 16-bit internal counter
— Internal prescaler
— Selectable time base
— Can generate its own time base
• Four 16-bit-wide counter buses
— Counter bus A can be driven by unified channel 23
— Counter buses B, C, D, and E are driven by unified channels 0, 8, 16, and 24, respectively
— Counter bus A can be shared among all unified channels. UCs 0 to 7, 8 to 15, 16 to 23, and 24
to 31 can share counter buses B, C, D, and E, respectively
• One global prescaler
• The output signal from the module configuration register’s global time base enable bit
(EMIOS_MCR[GTBE]) is wrapped back into the global timebase enable input so that the timebase
of each channel can be started simultaneously.
• Shared time bases through the counter buses
• Shadow FLAG register
• State of eMIOS200 can be frozen for debug purposes
• Debug mode is supported.
28.1.3 Modes of Operation
There are three main operating modes of eMIOS200: run mode, module disable mode, and debug mode.
These modes are briefly described in this section.
Run mode is the normal operation mode and is described in Section 28.4, Functional Description.
Module disable mode is used for MCU power management. The clock to the non-memory-mapped logic
in the eMIOS200 is stopped while in module disable mode. Module disable mode is entered when
MDIS = 1 in the EMIOS_MCR. Individual disabling of the channels is not supported. The eMIOS200
module can also be halted by setting the SIU_HLT0[HLT6] bit (see Section 8.3.2.24, Halt Acknowledge
Register (SIU_HLTACKn)).
Debug mode is individually programmed for each channel. When entering this mode, the unified channel
registers’ contents are frozen, but remain available for read and write access through the IP interface.
28.1.4 eMIOS200 Channel Configurations
Three different types of eMIOS200 channels are implemented on the PXN20. All channels implement the
General Purpose Input Output mode (GPIO) and the Single Input Capture and Output Compare modes
(SAIC, SAOC) in addition to the modes listed below.
Figure 28-2 shows the eMIOS200 channel implementations for the device. Channels 0, 8, 16, 23, and 24
use channel type A. Channels 1 – 7 and 9 use channel type B. Channels 10 – 15, 17 – 22, and 25 – 31 use
channel type C.