Enhanced Modular I/O Subsystem (eMIOS200)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
Freescale Semiconductor
26-19
Preliminary
In GPIO input mode, the FLAG generation is determined according to EDPOL and EDSEL bits and the
input pin status can be determined by reading the UCIN bit.
In GPIO output mode, the unified channel is used as a single output port pin and the value of the EDPOL
bit is permanently transferred to the output flip-flop.
26.5.1.1.2
Single Action Input Capture (SAIC) Mode
In SAIC mode, when a triggering event occurs on the input pin, the value on the selected time base is
captured into register A2. At the same time, the FLAG bit is set to indicate that an input capture has
occurred. Register EMIOS_CADR[n] returns the value of register A2
The input capture is triggered by a rising, falling or either edges in the input pin, as configured by EDPOL
and EDSEL bits in EMIOS_CCR[n] register.
shows how the unified channel can be used for input capture.
Figure 26-13. Single Action Input Capture Example
26.5.1.1.3
Single Action Output Compare (SAOC) Mode
In SAOC mode, a match value is loaded in register A2 and then transferred to register A1 to be compared
with the selected time base. When a match occurs, the EDSEL bit selects if the output flip-flop is toggled
or if the value in EDPOL is transferred to it. At the same time, the FLAG bit is set to indicate that the output
compare match has occurred. Writing to register EMIOS_CADR[n] stores the value in register A2 and
reading to register EMIOS_CADR[n] returns the value of register A1.
An output compare match can be simulated in software by setting the FORCMA bit in EMIOS_CCR[n]
register. In this case, the FLAG bit is not set.
show how the unified channel can be used to perform a single output
compare with EDPOL value being transferred to the output flip-flop and toggling the output flip-flop at
each match, respectively.
Selected
Counter Bus
FLAG
Set Event
Edge Detect
Edge Detect
Edge Detect
A2 (Captured)
Value
2
0xxxxxxx
0x001000
0x001250
0x0016A0
Notes:
1
2
Input Signal
1
0x000500
0x001000
0x001100
0x001250
0x001525
0x0016A0
After input filter
EMIOS_CADR[n]
≤
A2