
Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5566 Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
17-41
Figure 17-28. Pulse/Edge Counting Single-Shot Mode Example
17.4.4.4.9
Quadrature Decode Mode (QDEC)
The following table lists the quadrature decode mode settings:
Quadrature decode mode uses UC
n
operating in QDEC mode and the programmable input filter (PIF)
from UC[n-1]. UC[n-1] can be configured, at the same time, to an operation mode that does not use I/O
pins, such as MC mode (modulus counter). The connection among the UCs is circular; that is, when UC0
is running in QDEC mode, the programmable input filter from UC23 is being used.
This mode generates a FLAG every time the internal counter matches A1 register. The internal counter is
automatically selected and is not cleared when entering this mode.
MODE[6] bit selects which type of encoder is used: count and direction encoder or phase_A and phase_B
encoders.
When operating with count and direction encoder (MODE[6] cleared), UC
n
input pin must be connected
to the direction signal and UC[n-1] input pin must be connected to the count signal of the quadrature
encoder. UC
n
EDPOL bit selects count direction according to direction signal and UC[n-1] EDPOL bit
selects if the internal counter is clocked by the rising or falling edge of the count signal.
Table 17-22. QDEC Operating Mode
MODE[0:6]
Unified Channel QDEC
Operating Mode
0b0001100
Quadrature decode (for count and direction encoders type)
0b0001101
Quadrature decode (for phase_A and phase_B encoders type)
Selected
counter bus
0x000090 0x000090
B1 value
2
0x000090
0x000303
0x000303
0x000303
Amount of
EMIOS_CCNTR
n
FLAG
set event
MODE[6] = 1
A1 match
B1 match
B1 match
A1 value
1
Notes:
1
Reading EMIOS_CADR
n
returns the value of A1.
2
Reading EMIOS_CBDR
n
returns the value of B1.
Time
0x000000
events
detected
A1 match
A1 and B1
Write
0x000090
0x000303
0x000090
0x000303
A2 value
3
A2 EMIOS_CCNTR
n
A2 EMIOS_CCNTR
n
3
Reading EMIOS_ALTA
n
returns the value of A2. (EMIOS_ALTA only used in PEC and WPTA modes)
Summary of Contents for MPC5566
Page 81: ...Introduction MPC5566 Microcontroller Reference Manual Rev 2 1 24 Freescale Semiconductor...
Page 135: ...Signal Description MPC5566 Microcontroller Reference Manual Rev 2 2 54 Freescale Semiconductor...
Page 189: ...Reset MPC5566 Microcontroller Reference Manual Rev 2 4 20 Freescale Semiconductor...
Page 603: ...Flash Memory MPC5566 Microcontroller Reference Manual Rev 2 13 38 Freescale Semiconductor...
Page 609: ...SRAM MPC5566 Microcontroller Reference Manual Rev 2 14 6 Freescale Semiconductor...
Page 1073: ...MPC5566 Microcontroller Reference Manual Rev 2 22 36 Freescale Semiconductor...
Page 1185: ...Nexus MPC5566 Microcontroller Reference Manual Rev 2 25 92 Freescale Semiconductor...