MPC563XM Reference Manual, Rev. 1
662
Freescale Semiconductor
Preliminary—Subject to Change Without Notice
Subsequent matches are enabled with no need of further writes to EMIOSA[n] register. The FLAG is set
at the same time a match occurs (see
).
NOTE
The channel internal counter in SAOC mode is free-running. It starts
counting as soon as the SAOC mode is entered.
Figure 22-27. SAOC example with EDPOL value being transferred to the output flip-flop
Figure 22-28. SAOC example toggling the output flip-flop
Figure 22-29. SAOC example with flag behavior
22.5.1.1.4
Input Pulse Width Measurement (IPWM) Mode
The IPWM mode (MODE[0:6]=0000100) allows the measurement of the width of a positive or negative
pulse by capturing the leading edge on register B1 and the trailing edge on register A2. Successive captures
are done on consecutive edges of opposite polarity. The leading edge sensitivity (i.e., pulse polarity) is
selected counter bus
$000500
$001000
$001100
$001000
$001100
$001000
output flip-flop
Update to A1
A1
value
1
$xxxxxx $001000
FLAG pin/register
$001000
$001000
$001000
A1 match
A1 match
A1 match
Notes: 1. EMIOSA[n] = A2
EDSEL = 0
EDPOL = 1
A2 = A1 according to OU[n] bit
selected counter bus
$000500
$001000
$001100
$001000
$001100
$001000
A1
value
1
$xxxxxx $001000
output flip-flop
Update to
A1
FLAG pin/register
A1
match
A1 match
A1
match
$001000
$001000
$001000
Notes: 1. EMIOSA[n] = A2
EDSEL = 1
EDPOL = x
A2 = A1 according to OU[n] bit
selected counter bus
$0
$2
FLAG set event
A2
value
1
$1
output flip-flop
Note: 1. EMIOSA[n] <= A2
$0
$2
$1
$2
$0
$1
$1
FLAG pin/register
FLAG clear
EDSEL = 1
System Clock
A1 match
EDPOL = x