MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
669
Preliminary—Subject to Change Without Notice
Figure 22-37. Pulse/Edge Accumulation continuous mode example
Figure 22-38. Pulse/Edge Accumulation single-shot mode example
22.5.1.1.8
Pulse/Edge Counting (PEC) Mode
The PEC mode returns the amount of pulses or edges detected on the input for a desired time window.
MODE[6] bit selects between continuos or single shot operation.
$FFFFFF
$000000
EMIOSCNT[n]
1
Time
A1 Match
write to A1
selected counter bus
$000400
A1 value
3
$001500
$xxxxxx
A2
value
4
$000400
$xxxxxx
B1
value
$000090
$xxxxxx
B2
value
5
$001000
$xxxxxx
$001500
$000090
$000090
$007000
$001500
$007000
$001000
FLAG pin/register
A1 Match
$001500
input signal
2
$001000
A1 events
A1 events
no events
events
$000400
Notes:
4. EMIOSA[n] = A2 (when reading)
5. EMIOSB[n] = B1
3. EMIOSA[n] = A1 (when writing)
2. After input filter
1. Cleared on the first input event after writing to register A1
$007000
MODE
[6]
= 0
$FFFFFF
$000000
EMIOSCNT[n]
1
Time
write to A1
selected counter bus
$000400
A1 value
3
$001500
$xxxxxx
A2
value
4
$000400
$xxxxxx
B1
value
$000090
$xxxxxx
B2
value
5
$xxxxxx
$001500
$000090
$000090
FLAG pin/register
$001500
input signal
2
A1 events
Notes:
4. EMIOSA[n] = A2 (when reading)
5. EMIOSB[n] = B1
3. EMIOSA[n] = A1 (when writing)
2. After input filter
events
events
$000400
1. Cleared on the first input event after writing to register A1
A1 Match
MODE
[6]
= 1