EasyManua.ls Logo

NXP Semiconductors MPC5566 - Single-Action Output Compare Mode (SAOC)

NXP Semiconductors MPC5566
1268 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5566 Microcontroller Reference Manual, Rev. 2
17-30 Freescale Semiconductor
Figure 17-16 shows how the unified channel can be used for input capture.
Figure 17-16. Single-action Input Capture Example
17.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_CADRn stores the value in register A2 and
reading to register EMIOS_CADRn returns the value of register A1.
An output compare match can be simulated in software by setting the FORCMA bit in EMIOS_CCRn. In
this case, the FLAG bit is not set.
Table 17-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_CADRn returns the value of A2.

Table of Contents

Related product manuals