MC68332
TIME PROCESSOR UNIT
USER’S MANUAL
7-3
7.2.6 Parameter RAM
Parameter RAM occupies 256 bytes at the top of the system address map. Channel
parameters are organized as 128 16-bit words. Although all parameter word locations
in RAM can be accessed by all channels, only 100 are normally used: channels 0 to
13 use six parameter words, while channels 14 and 15 each use eight parameter
words. The parameter RAM address map in
shows how parameter words are organized in memory.
The host CPU specifies function parameters by writing the appropriate RAM address.
The TPU reads the RAM to determine channel operation. The TPU can also store in-
formation to be read by the CPU in RAM. Detailed descriptions of the parameters re-
quired by each time function are beyond the scope of this manual. Refer to the
TPU
Reference Manual (TPURM/AD) for more information.
For pre-programmed functions, one of the parameter words associated with each
channel contains three channel control fields. These fields perform the following func-
tions:
PSC — Forces the output level of the pin.
PAC — For input capture, PAC specifies the edge transition to be detected. For out-
put comparison, PAC specifies the logic level to be output when a match oc-
curs.
TBS — Specifies channel direction (input or output) and assigns a time base to the
input capture and output compare functions of the channel.
7.3 TPU Operation
All TPU functions are related to one of the two 16-bit time bases. Functions are syn-
thesized by combining sequences of match events and capture events. Because the
primitives are implemented in hardware, the TPU can determine precisely when a
match or capture event occurs, and respond rapidly. An event register for each chan-
nel provides for simultaneity of match/capture event occurrences on all channels.
When a match or input capture event requiring service occurs, the affected channel
generates a service request to the scheduler. The scheduler determines the priority of
the request and assigns the channel to the microengine at the first available time. The
microengine performs the function defined by the content of the control store or emu-
lation RAM, using parameters from the parameter RAM.
7.3.1 Event Timing
Match and capture events are handled by independent channel hardware. This pro-
vides an event accuracy of one time-base clock period, regardless of the number of
channels that are active. An event normally causes a channel to request service. How-
ever, before an event can be serviced, any pending previous requests must be ser-
viced. The time needed to respond to and service an event is determined by the
number of channels requesting service, the relative priorities of the channels request-
ing service, and the microcode execution time of the active functions. Worst-case
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
.
..