Enhanced Modular Input/Output Subsystem (eMIOS200)
23-38
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
— When MODE[6] is set, the external clock is selected. In this case, the internal counter clears
when the match signal is asserted and the input event occurs. The channel FLAG bit is set at
the same time the counter is cleared. See
.
— When MODE[6] is cleared, the internal clock source is selected. In this case, the internal
counter clears when the match signal is asserted and the prescaler tick occurs. The channel
FLAG bit is set at the same time the counter is cleared. See
NOTE
If the internal clock source is selected and the prescaler of the internal
counter is set to 1, the MC mode behaves the same way even in Clear on
Match Start or Clear on Match End sub-modes.
When in up/down count mode (MODE = 001_01bb), a match between the internal counter and register A1
sets the FLAG and changes the counter direction from increment to decrement. A match between register
B1 and the internal counter changes the counter direction from decrement to increment and sets the FLAG
only if MODE[5] bit is set.
Only values other than 0x00_0000 must be written into register A (EMIOS_CADR). Loading 0x00_0000
leads to unpredictable results.
Updates on register A (EMIOS_CADR) or the counter in MC mode may cause a loss of match in the
current cycle if the transfer occurs near the match. In this case, the counter may roll over and resume
operation in the next cycle.
and
show how the unified channel can be used as a modulus counter in up mode
and up/down mode, respectively.
Figure 23-32. MC Up Mode Example
0xFFFFFF
0x000303
0x000000
EMIOS_CCNTR[n]
Time
A1 value
1
0x000303
0x000303
0x000200
0x000200
0xxxxxxx
FLAG pin/register
Notes: 1. EMIOS_CADR[n] = A1
0x000303
0x000200
A2 = A1 according to OU[n] bit
MODE[4] = 0
Write
to A2
A1 Match
Write
to A2
A1 Match
A1
A1 Match
Match
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...