Enhanced Modular Input/Output Subsystem (eMIOS200)
23-32
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
In order to have coherent data in continuous operation mode, the following steps should be performed,
assuming the FLAG bit is initially cleared:
1. Wait for FLAG assertion.
2. Read the EMIOS_CADR[
n
] register.
3. Read the EMIOS_CBDR[
n
] register.
4. Clear the FLAG bit.
5. Return to step #1.
Accumulation cycles may be lost if the read is not performed in a timely manner. Whenever the Overrun
bit is asserted it means that one or more cycles have been lost.
Triggering of the counter clock (input event) is done by a rising or falling edge or both edges on the input
pin. The polarity of the triggering edge is selected by the EDSEL and EDPOL bits in EMIOS_CCR[
n
]
register.
For continuous mode operation (MODE[6] cleared, MODE[0:6] = 000_1000), the counter is cleared on
the next input event after a FLAG generation and continues to operate as previously described.
For single-shot operation (MODE[6] set, MODE[0:6] = 000_1001), the counter is not cleared or
incremented after a FLAG generation until a new writing operation to register A (EMIOS_CADR) is
performed.
show how the unified channel can be used for continuous and single-shot
pulse/edge accumulation mode.
Figure 23-25. PEA Continuous Mode Example
0xFFFFFF
0x000000
EMIOS_CCNTR[n]
1
Time
A1 Match
Write to A1
Selected Counter Bus
0x000400
A1 Value
3
0x001500
0xxxxxxx
A2 Value
4
0x000400
0xxxxxxx
B1 Value
0x000090
0xxxxxxx
B2 Value
5
0x001000
0xxxxxxx
0x001500
0x000090
0x000090
0x007000
0x001500
0x007000
0x001000
FLAG Pin/Register
A1 Match
0x001500
Input Signal
2
0x001000
A1 Events
A1 Events
No Events
Events
0x000400
Notes:
4. EMIOS_CADR[n] = A2 (when reading)
5. EMIOS_CBDR[n] = B1
3. EMIOS_CADR[n] = A1 (when writing)
2. After input filter
1. Cleared on the first input event after writing to register A1
0x007000
MODE[6] = 0
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...