Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
16-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 16-29. Quadrature Decode Mode Example with Count and Direction Encoder
Figure 16-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 MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...