
Configurable Enhanced Modular IO Subsystem (eMIOS200)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
663
22.5.1.1
Channel modes of operation
The mode of operation of
channel n
is determined by the mode select bits MODE[0:6] in the
EMIOS_CCR[n] (see
for details).
When entering an output mode (except for GPIO mode), the output flip-flop is set to disabled state
according to ODIS bit in the EMIOS_CCR[n].
As the internal counter EMIOS_CCNTR[n] continues to run in all modes (except for GPIO mode), it is
possible to use it as a time base if the resource is not used in the current mode.
To provide smooth waveform generation while allowing A and B registers to be asynchronously updated
during UC operation, the double-buffered modes (MCB, OPWFMB and OPWMB) are provided. In these
modes A and B registers are double buffered.
22.5.1.1.1
General purpose input/output mode (GPIO) mode
In GPIO mode, all input capture and output compare functions are disabled, the internal counter
(EMIOS_CCNTR[n]) is cleared and disabled. All control bits remain accessible. In order to prepare the
channel for a new operation mode, writing to registers EMIOS_CADR[n] or EMIOS_CBDR[n] stores the
same value in registers A1/A2 or B1/B2, respectively. Writing to register EMIOS_ALTA[n] stores a value
only in register A2.
The EMIOS_CCR[n]’s MODE[6] bit selects between input (MODE[6] = 0) and output (MODE[6] = 1)
modes.
NOTE
It is required that when changing MODE[0:6], the application software goes
to GPIO mode first in order to reset the channel’s internal functions
properly. Failure to do this could lead to invalid and unexpected output
compare or input capture results or the FLAGs being set incorrectly.
In GPIO input mode (MODE[0:6] = 0000000), FLAG generation is determined according to the
EMIOS_CCR[n]’s EDPOL and EDSEL bits and the input pin status can be determined by reading the
EMIOS_CSR[n]’s UCIN bit.
In GPIO output mode (MODE[0:6] = 0000001), the channel is used as a single output port pin and the
value of the EMIOS_CCR[n]’s EDPOL bit is permanently transferred to the output flip-flop.
When changing the EMIOS_CCR[n]’s MODE bits, the application software must go to GPIO mode first
to reset the channel’s internal functions properly. Failure to do this could lead to invalid and unexpected
output compare or input capture results or the FLAGs being set incorrectly.
22.5.1.1.2
Single action input capture (SAIC) mode
In SAIC mode (MODE[0:6] = 0000010), when a triggering event occurs on the input pin, the value on the
selected time base is captured into register A2. The FLAG bit is set along with the capture event to indicate
that an input capture has occurred. EMIOS_CADR[n] returns the value of register A2. As soon as the
SAIC mode is entered exiting from GPIO mode the channel is ready to capture events. The events are
captured as soon as they occur thus reading register A always returns the value of the latest captured event.
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...