
Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
17-37
Figure 17-24. Double-action Output Compare with FLAG Set on Both Matches
17.4.4.4.7
Pulse/Edge Accumulation Mode (PEA)
The following table lists the pulse/edge accumulation mode settings:
The PEA mode returns the time taken to detect a desired number of input events. MODE[6] bit selects
between continuous or single shot operation.
After writing to register A1, the internal counter is cleared on the first input event, ready to start counting
input events and the selected timebase is latched into register B2. On the match between the internal
counter and register A1, a counter bus capture is triggered to register A2 and B2. The data previously held
in register B2 is transferred to register B1 and the FLAG bit is set to indicate that an event has occurred.
The desired time interval can be determined by subtracting register B1 from A2. Registers
EMIOS_CADR
n
and EMIOS_CBDR
n
return the values in register A2 and B1, respectively.
To guarantee coherent access, reading EMIOS_CADR
n
disables transfers between B2 and B1. These
transfers are disabled until the next read of the EMIOS_CBDR
n
register. Reading the EMIOS_CBDR
n
register re-enables transfers from B2 to B1, to take effect at the next transfer event, as described above.
1
Table 17-20. PEA Operating Mode
MODE[0:6]
Unified Channel PEA
Operating
Mode
0b0001000
Pulse/edge accumulation (continuous)
0b0001001
Pulse/edge accumulation (single shot)
1. If B1 was not updated due to B2 to B1 transfer being disabled after reading register EMIOS_CADR
n
, further
EMIOS_CADR
n
and EMIOS_CBDR
n
reads do not return coherent data until a new bus capture is triggered to registers
A2 and B2. The capture event is indicated when the channel FLAG asserts. If enabled, the FLAG also generates an inter-
rupt.
Selected
counter bus
FLAG
set event
A1 match
0xxxxxxx 0x001000
0x001000
0x001000
Notes:
1
Writing EMIOS_CADR
n
writes to A1.
2
Writing EMIOS_CBDR
n
writes to B1.
MODE[6] = 1
B1 match
B1 match
0xxxxxxx 0x001100
0x001100
0x001100
A1 match
Update to
A1 and B1
Output
flip-flop
A1 value
1
B1 value
2
A2 value transferred to A1 according to OU
n
bit.
B2 value transferred to B1 according to OU
n
bit.
0x000500
0x001000
0x001100
0x001000
0x001100
Содержание MPC5566
Страница 12: ...MPC5566 Microcontroller Reference Manual Devices Supported MPC5566 MPC5566 RM Rev 2 0 23 Apr 2008...
Страница 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Страница 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Страница 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Страница 331: ...System Integration Unit SIU MPC5566 Microcontroller Reference Manual Rev 2 6 128 Freescale Semiconductor...
Страница 343: ...Crossbar Switch XBAR MPC5566 Microcontroller Reference Manual Rev 2 7 12 Freescale Semiconductor...
Страница 361: ...Error Correction Status Module ECSM MPC5566 Microcontroller Reference Manual Rev 2 8 18 Freescale Semiconductor...
Страница 455: ...Interrupt Controller INTC MPC5566 Microcontroller Reference Manual Rev 2 10 42 Freescale Semiconductor...
Страница 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Страница 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Страница 679: ...Boot Assist Module BAM MPC5566 Microcontroller Reference Manual Rev 2 16 20 Freescale Semiconductor...
Страница 997: ...Deserial Serial Peripheral Interface DSPI MPC5566 Microcontroller Reference Manual Rev 2 20 72 Freescale Semiconductor...
Страница 1037: ...Enhanced Serial Communication Interface eSCI MPC5566 Microcontroller Reference Manual Rev 2 21 40 Freescale Semiconductor...
Страница 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Страница 1081: ...Voltage Regulator Controller VRC and POR Module MPC5566 Microcontroller Reference Manual Rev 2 23 8 Freescale Semiconductor...
Страница 1093: ...IEEE 1149 1 Test Access Port Controller JTAGC MPC5566 Microcontroller Reference Manual Rev 2 24 12 Freescale Semiconductor...
Страница 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...
Страница 1267: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 10...
Страница 1268: ...MPC5566 Reference Manual Revision History MPC5566 Microcontroller Reference Manual Rev 2 Freescale Semiconductor C 11...