Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
16-30
Freescale Semiconductor
shows how the unified channel can be used for input capture.
Figure 16-16. Single-action Input Capture Example
16.4.4.4.3
Single-action Output Compare Mode (SAOC)
The following table lists the single action output compare mode setting:
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
. In
this case, the FLAG bit is not set.
Table 16-16. SAOC Operating Mode
MODE[0:6]
Unified Channel SAOC
Operating
Mode
0b0000011
Single-action output compare mode
Selected
counter bus
FLAG
set event
Edge detect
Edge detect
Edge detect
Captured A2
value
2
0xxxxxxx
0x001000
0x001250
0x0016A0
Notes:
1
2
Input signal
1
0x000500
0x001000
0x001100
0x001250
0x001525
0x0016A0
After input filter.
Reading EMIOS_CADR
n
returns the value of A2.
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...