
CTM
REFERENCE
MOTOROLA
8-7
DOUBLE ACTION SUBMODULE (DASM)
For More Information On This Product,
Go to: www.freescale.com
8
8.3.4
Input capture (IC) mode
IC mode is selected by making MODE[3:0] = 0011.
This mode is identical to the input period measurement mode (IPM) described above, with the
exception that the FLAG bit is also set at the occurrence of the first detected edge of the selected
polarity. In this mode the DASM functions as a standard input capture function in a similar way to
the M68HC11 family timers. In this case the value latched in channel B can be ignored.
Figure 8-4 provides an example of how the DASM can be used for input capture.
8.3.5
Output compare (OCB and OCAB) modes
OC mode is selected by making MODE[3:0] = 010x. The MODE0 bit controls the setting criteria
for the FLAG bit, i.e. when a compare occurs only on channel B or when a compare occurs on
either channel (see Section 8.6.1).
This mode allows the DASM to perform four different output functions:
–
–
–
–
Single-shot output pulse (two edges), with FLAG set on the second edge.
Single-shot output pulse (two edges), with FLAG set on both edges.
Single-shot output transition (one edge).
Output port pin, with output compare function disabled.
In this mode the leading and trailing edges of variable width output pulses are generated by
calculated output compare events occurring on channels A and B, respectively. OC mode may also
Figure 8-4
DASM input capture example
Time base bus
$0500
$1000
$1100
$1250
$1525
$16A0
FLAG bit
DASMA captured value
1
B1 value
2
B2 value
1
$xxxx
$1000
$1250
$16A0
$xxxx
$1000
$1250
$16A0
$xxxx
$xxxx
$1000
$1250
Input signal
Mode selection; EDPOL = 0
FLAG reset
by software
FLAG reset
by software
A
A
A
FLAG reset
by software
1. These values are accessible to the software.
2. These values are internal and are not accessible.
Notes:
F
.
Freescale Semiconductor, Inc.