Enhanced Modular Input/Output Subsystem (eMIOS)
MPC5565 Microcontroller Reference Manual, Rev. 1.0
Freescale Semiconductor
16-41
Figure 16-28. Pulse/Edge Counting Single-Shot Mode Example
16.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 16-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)
Содержание MPC5565
Страница 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Страница 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Страница 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Страница 325: ...Error Correction Status Module ECSM MPC5565 Microcontroller Reference Manual Rev 1 0 8 16 Freescale Semiconductor...
Страница 515: ...External Bus Interface EBI MPC5565 Microcontroller Reference Manual Rev 1 0 12 70 Freescale Semiconductor...
Страница 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Страница 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Страница 577: ...Boot Assist Module BAM MPC5565 Microcontroller Reference Manual Rev 1 0 15 18 Freescale Semiconductor...
Страница 895: ...Deserial Serial Peripheral Interface DSPI MPC5565 Microcontroller Reference Manual Rev 1 0 19 72 Freescale Semiconductor...
Страница 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Страница 1145: ...MPC5565 Register Map MPC5565 Microcontroller Reference Manual Rev 1 0 A 60 Freescale Semiconductor...
Страница 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...