Enhanced Modular Input/Output Subsystem (eMIOS200)
PXN20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor 28-17
Table 28-11. MODE Bits
MODE[0:6] 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)
000_1101 QDEC Quadrature Decode (for phase_A & phase_B encoders type)
000_1110 – 000_1111
Reserved
001_0000 MC Modulus Counter (Up counter with clear on match start, internal clock)
001_0001 MC Modulus Counter (Up counter with clear on match start, external clock)
001_0010 MC Modulus Counter (Up counter with clear on match end, internal clock)
001_0011 MC Modulus Counter (Up counter with clear on match end, external clock)
001_0100 MCB Modulus Counter (Up/Down counter with flag on A1 match, internal clock)
001_0101 MCB Modulus Counter (Up/Down counter with flag on A1 match, external clock)
001_0110 MCB Modulus Counter (Up/Down counter with flag on A1 match or cycle boundary,
internal clock)
001_0111 MCB Modulus Counter (Up/Down counter with flag on A1 match or cycle boundary,
external clock)
001_1000 OPWFMB Output Pulse Width and Frequency Modulation (flag on B1 match, immediate update)
001_1001 Reserved
001_1010 OPWFMB Output Pulse Width and Frequency Modulation
(flag on A1 or B1 matches, immediate update)
001_1011 Reserved
001_1100 OPWMCB Center Aligned Output Pulse Width Modulation
(flag in trailing edge, trail edge dead-time)
001_1101 OPWMCB Center Aligned Output Pulse Width Modulation
(flag in trailing edge, lead edge dead-time)