MPC555 / MPC556
TPU ROM FUNCTIONS
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
D-32
D.12 Period/Pulse-Width Accumulator (PPWA)
The period/pulse-width accumulator (PPWA) algorithm accumulates a 16-bit or 24-bit
sum of either the period or the pulse width of an input signal over a programmable
number of periods or pulses (from one to 255). After an accumulation period, the algo-
rithm can generate a link to a sequential block of up to eight channels. The user spec-
ifies a starting channel of the block and number of channels within the block.
Generation of links depends on the mode of operation.
Any channel can be used to measure an accumulated number of periods of an input
signal. A maximum of 24 bits can be used for the accumulation parameter. From one
to 255 period measurements can be made and summed with the previous measure-
ment(s) before the TPU interrupts the CPU, allowing instantaneous or average fre-
quency measurement, and the latest complete accumulation (over the programmed
number of periods).
The pulse width (high-time portion) of an input signal can be measured (up to 24 bits)
and added to a previous measurement over a programmable number of periods (one
to 255). This provides an instantaneous or average pulse-width measurement capa-
bility, allowing the latest complete accumulation (over the specified number of periods)
to always be available in a parameter.
By using the output compare function in conjunction with PPWA, an output signal can
be generated that is proportional to a specified input signal. The ratio of the input and
output frequency is programmable. One or more output signals with different frequen-
cies, yet proportional and synchronized to a single input signal, can be generated on
separate channels. See Motorola TPU Progamming Note
Period/Pulse-Width Accu-
mulator TPU Function (PPWA),
(TPUPN11/D)
.
shows the host interface areas and parameter RAM for the PPWA
function.
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..