Enhanced Modular Input/Output Subsystem (eMIOS200)
23-16
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
24
EDPOL
Edge Polarity Bit. For input modes, the EDPOL bit asserts which edge triggers either the internal counter or
an input capture or a FLAG. When not shown in the mode of operation description, this bit has no effect.
0 Trigger on a falling edge.
1 Trigger on a rising edge.
For QDEC (MODE[6] cleared), the EDPOL bit selects the count direction according to direction signal (UC[n]
input).
0 counts down when UC[n] is asserted
1 counts up when UC[n] is asserted
Note: UC[n-1] EDPOL bit selects which edge clocks the internal counter of UC[n]
0 Trigger on a falling edge
1 Trigger on a rising edge
For QDEC (MODE[6] set), the EDPOL bit selects the count direction according to the phase difference.
0 internal counter decrements if phase_A is ahead phase_B signal
1 internal counter increments if phase_A is ahead phase_B signal
Note: In order to operate properly, EDPOL bit must contain the same value in UC[n] and UC[n-1]
For output modes, the EDPOL bit is used to select the logic level on the output pin.
0 A match on comparator A clears the output flip-flop, while a match on comparator B sets it.
1 A match on comparator A sets the output flip-flop, while a match on comparator B clears it.
25–31
MODE
Mode Selection Bits. The MODE bits select the mode of operation of the unified channel, as shown in
. Refer to
for more information on the different modes.
Note: If a reserved value is written to MODE, the results are unpredictable.
Table 23-9. MODE Bits
MODE
Mode
Description
000_0000
GPIO (input)
General-Purpose Input/Output mode (input)
000_0001
GPIO (output)
General-Purpose Input/Output mode (output)
000_0010
SAIC
Single Action Input Capture
000_0011
SAOC
Single Action Output Compare
000_0100
IPWM
Input Pulse Width Measurement
000_0101
IPM
Input Period Measurement
000_0110
DAOC
Double Action Output compare (with FLAG set on B match)
000_0111
DAOC
Double Action Output compare (with FLAG set on both match)
000_1000
PEA
Pulse/Edge Accumulation (continuous)
000_1001
PEA
Pulse/Edge Accumulation (single-shot)
000_1010
PEC
Pulse/Edge Counting (continuous)
000_1011
PEC
Pulse/Edge Counting (single-shot)
000_1100
QDEC
Quadrature Decode (for count & direction encoders type)
Table 23-8. EMIOS_CCR[n] Field Descriptions (continued)
Field
Description
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...