
Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5566 Microcontroller Reference Manual, Rev. 2
17-42
Freescale Semiconductor
When operating with phase_A and phase_B encoder (MODE[6] set), UC
n
input pin must be connected to
the phase_A signal and UC[n-1] input pin must be connected to the phase_B signal of the quadrature
encoder. EDPOL bit selects the count direction according to the phase difference between phase_A and
phase_B signals.
show two unified channels configured to quadrature decode mode for
count and direction encoder and phase_A and phase_B encoders, respectively.
Figure 17-29. Quadrature Decode Mode Example with Count and Direction Encoder
Figure 17-30. Quadrature Decode Mode Example with Phase_A and Phase_B Encoder
Direction
(from UC
n
)
Count
(from UC[n-1])
EMIOS_CCNTR
n
Increment/decrement
A1 write
(value 1)
A1 match
A1 match
+1
+1
+1
+1
+1
+1
+1
+1
–1
–1
–1
–1
–1
EMIOS_CCNTR
n
Value 1
0x000000
FLAG
set event
Note: Writing EMIOS_CADR
n
writes to A1.
MODE[6] = 0
EDPOL = 1
Time
Phase A
(from UC
n
)
Phase B
(from UC[n-1])
EMIOS_CCNTR
n
Increment/decrement
A1 write
(value 1)
A1 match
A1 match
+1
EMIOS_CCNTR
n
Value 1
0x000000
FLAG
set event
Note: Writing EMIOS_CADR
n
writes to A1.
MODE[6] = 1
Time
-1
-1
-1
-1
-1
-1
+1
+1
+1
+1
+1
+1
+1
-1
+1
+1
+1
+1
+1
+1
+1
+1
-1
-1
-1
-1
-1
-1
-1 +1
+1
+1
+1
+1
+1
+1
Value 2
A1 match
A1 match
A1 match
A1 write
(value 2)
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...