Enhanced Modular Input/Output Subsystem (eMIOS200)
Freescale Semiconductor
23-31
PXR40 Microcontroller Reference Manual, Rev. 1
Figure 23-24. DAOC with Transfer Disabling Example
23.4.1.1.7
Pulse/Edge Accumulation (PEA) Mode
The PEA mode returns the time taken to detect a desired number of input events. The 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.
As part of the coherency mechanism, reading EMIOS_CADR[
n
] disables transfers from B2 to 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 previously
described.
1
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 will not return coherent data until a new bus capture is triggered to registers A2
and B2. This capture event is indicated by the channel FLAG being asserted. If enabled, the FLAG also generates an interrupt.
Selected Counter Bus
0x000000
0x000002
FLAG Set Event
A1 Value
2
0xxxxxxx
Output Flip-Flop
2. EMIOS_CADR[n] = A1 (when reading)
0x000000
0x000002
0x000001 0x000002 0x000000 0x000001
0x000001
FLAG Pin/Register
FLAG Clear
EDSEL = 1
System Clock
Enabled A1 Match
EDPOL = x
B2 Value
5
0x000002
B1 Value
4
0xxxxxxx
A2 Value
3
0x000001
OU
1
Enabled B1 Match
0x000001
0xxxxxxx
0xxxxxxx
0x000002
0x000001
Write to A2
0x000002
0x000002
0x000001
0x000002
0x000001
0x000001
0x000002
Write to B2
Write to A2
Write to B2
Write to A2
Write toB2
MODE[6] = 1
3. EMIOS_CADR[n] = A2 (when writing)
4. EMIOS_CBDR[n] = B1 (when reading)
5. EMIOS_CBDR[n] = B2 (when writing)
Note: 1. OU[n] bit of EMIOS_OUDR register
Summary of Contents for PXR4030
Page 1: ...PXR40 Microcontroller Reference Manual Devices Supported PXR4030 PXR4040 PXR40RM Rev 1 06 2011...
Page 30: ...PXR40 Microcontroller Reference Manual Rev 1 Freescale Semiconductor xxx...
Page 40: ...PXR40 Microcontroller Reference Manual Rev 1 xl Freescale Semiconductor...
Page 66: ...Memory Map PXR40 Microcontroller Reference Manual Rev 1 2 4 Freescale Semiconductor...
Page 120: ...Signal Descriptions 3 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 860: ...FlexCAN Module 24 50 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...
Page 1167: ...Decimation Filter Freescale Semiconductor 28 53 PXR40 Microcontroller Reference Manual Rev 1...
Page 1168: ...Decimation Filter 28 54 Freescale Semiconductor PXR40 Microcontroller Reference Manual Rev 1...