MPC5553/MPC5554 Microcontroller Reference Manual, Rev. 5
17-38
Freescale Semiconductor
Figure 17-26. Quadrature Decode Mode Example with Count and Direction Encoder
Figure 17-27. Quadrature Decode Mode Example with Phase_A and Phase_B Encoder
17.4.4.4.10 Windowed Programmable Time Accumulation Mode (WPTA)
The WPTA mode accumulates the sum of the total high time or low time of an input signal over a
programmable interval (time window).
The prescaler bits UCPRE[0:1] in EMIOS_CCR
n
define the increment rate of the internal counter.
Register A1 holds the start time and register B1 holds the stop time of the programmable time interval.
When a match occurs between register A and the selected timebase, the internal counter is cleared and it
Direction
(from UC
n
)
Count
(from UC[n-1])
EMIOS_CCNTR
n
inc/dec
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
inc/dec
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 MPC5553
Page 5: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 2 Freescale Semiconductor...
Page 21: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 xvi Freescale Semiconductor...
Page 47: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 1 26 Freescale Semiconductor...
Page 163: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 4 20 Freescale Semiconductor...
Page 179: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 5 16 Freescale Semiconductor...
Page 561: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 13 38 Freescale Semiconductor...
Page 615: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 14 54 Freescale Semiconductor...
Page 707: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 17 68 Freescale Semiconductor...
Page 755: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 18 48 Freescale Semiconductor...
Page 873: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 19 118 Freescale Semiconductor...
Page 984: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 Freescale Semiconductor 21 41...
Page 985: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 21 42 Freescale Semiconductor...
Page 1019: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 22 34 Freescale Semiconductor...
Page 1129: ...MPC5553 MPC5554 Microcontroller Reference Manual Rev 5 25 90 Freescale Semiconductor...