MC68336/376 TIME PROCESSOR UNIT MOTOROLA
USER’S MANUAL Rev. 15 Oct 2000 11-6
Arbitration is performed by means of serial assertion of IARB field bit values. The IARB
of TPUMCR is initialized to $0 during reset.
When the TPU wins arbitration, it must respond to the CPU32 interrupt acknowledge
cycle by placing an interrupt vector number on the data bus. The vector number is
used to calculate displacement into the exception vector table. Vectors are formed by
concatenating the 4-bit value of the CIBV field in TICR with the 4-bit number of the
channel requesting interrupt service. Since the CIBV field has a reset value of $0, it
must be assigned a value corresponding to the upper nibble of a block of 16 user-
defined vector numbers before TPU interrupts are enabled. Otherwise, a TPU interrupt
service request could cause the CPU32 to take one of the reserved vectors in the
exception vector table.
For more information about the exception vector table, refer to 4.9 Exception Pro-
cessing. Refer to 5.8 Interrupts for further information about interrupts.
11.4 A Mask Set Time Functions
The following paragraphs describe factory-programmed time functions implemented in
the A mask set TPU microcode ROM. A complete description of the functions is
beyond the scope of this manual. Refer to the
TPU Reference Manual
(TPURM/AD)
for additional information.
11.4.1 Discrete Input/Output (DIO)
When a pin is used as a discrete input, a parameter indicates the current input level
and the previous 15 levels of a pin. Bit 15, the most significant bit of the parameter,
indicates the most recent state. Bit 14 indicates the next most recent state, and so on.
The programmer can choose one of the three following conditions to update the
parameter: 1) when a transition occurs, 2) when the CPU32 makes a request, or 3)
when a rate specified in another parameter is matched. When a pin is used as a dis-
crete output, it is set high or low only upon request by the CPU32.
Refer to TPU programming note
Discrete Input/Output (DIO) TPU Function
(TPUPN18/D) for more information.
11.4.2 Input Capture/Input Transition Counter (ITC)
Any channel of the TPU can capture the value of a specified TCR upon the occurrence
of each transition or specified number of transitions and then generate an interrupt
request to notify the CPU32. A channel can perform input captures continually, or a
channel can detect a single transition or specified number of transitions, then cease
channel activity until reinitialization. After each transition or specified number of tran-
sitions, the channel can generate a link to a sequential block of up to eight channels.
The user specifies a starting channel of the block and the number of channels within
the block. The generation of links depends on the mode of operation. In addition, after
each transition or specified number of transitions, one byte of the parameter RAM (at
an address specified by channel parameter) can be incremented and used as a flag to
notify another channel of a transition.