MC68336/376
TIME PROCESSOR UNIT
MOTOROLA
USER’S MANUAL
Rev. 15 Oct 2000
11-3
11.2.3 Scheduler
When a service request is received, the scheduler determines which TPU channel is
serviced by the microengine. A channel can request service for one of four reasons:
for host service, for a link to another channel, for a match event, or for a capture event.
The host system assigns each active channel one of three priorities: high, middle, or
low. When multiple service requests are received simultaneously, a priority-scheduling
mechanism grants service based on channel number and assigned priority.
11.2.4 Microengine
The microengine is composed of a control store and an execution unit. Control-store
ROM holds the microcode for each factory-masked time function. When assigned to a
channel by the scheduler, the execution unit executes microcode for a function
assigned to that channel by the CPU32. Microcode can also be executed from the
TPURAM module instead of the control store. The TPURAM allows emulation and
development of custom TPU microcode without the generation of a microcode ROM
11.2.5 Host Interface
The host interface registers allow communication between the CPU32 and the TPU,
both before and during execution of a time function. The registers are accessible from
mapping.
11.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
parameter words are organized in memory.
The CPU32 specifies function parameters by writing to the appropriate RAM address.
The TPU reads the RAM to determine channel operation. The TPU can also store
information to be read by the CPU32 in the parameter RAM. Detailed descriptions of
the parameters required by each time function are beyond the scope of this manual.
Refer to the TPU Reference Manual (TPURM/AD) and the Motorola TPU Literature
Package (TPULITPAK/D) for more information.
11.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.