UPI-41A/41AH/42/42AH USER’S MANUAL
231318 – 30
Figure 4-3. Latching Port Data
Timing
The sequence of single-step operation is as follows:
1) The processor is requested to stop by applying a low
level on SS. The SS input should not be brought low
while SYNC is high. (The UPI samples the SS pin in
the middle of the SYNC pulse).
2) The processor responds to the request by stopping
during the instruction fetch portion of the next in-
struction. If a double cycle instruction is in progress
when the single-step command is received, both cy-
cles will be completed before stopping.
3) The processor acknowledges it has entered the
stopped state by raising SYNC high. In this state,
which can be maintained indefinitely, the 10-bit ad-
dress of the next instruction to be fetched is preset
on PORT 1 and the lower 2 bits of PORT 2.
4) SS is then raised high to bring the processor out of
the stopped mode allowing it to fetch the next in-
struction.The exit from stop is indicated by the proc-
essor bringing SYNC low.
5) To stop the processor at the next instruction SS must
be brought low again before the next SYNC pulseÐ
the circuit in Figure 4-1 uses the trailing edge of the
previous pulse. If SS is left high, the processor re-
mains in the ‘‘RUN’’ mode.
Figure 4-1 shows a schematic for implementing single-
step. A single D-type flip-flop with preset and clear is
used to generate SS. In the RUN mode SS is held high
by keeping the flip-flop preset (preset has precedence
over the clear input). To enter single-step, preset is re-
moved allowing SYNC to bring SS low via the clear
input. Note that SYNC must be buffered since the
SN7474 is equivalent to 3 TTL loads.
The processor is now in the stopped state. The next
instruction is initiated by stoppe state. The next instruc-
tion is initiated by clocking ‘‘1’’ the flip-flop. This ‘‘1’’
will not appear on SS unless SYNC is high (I.e., clear
must be removed from the flip-flop). In response to SS
going high, the processor begins an instruction fetch
which brings SYNC low. SS is then reset through the
clear input and the processor again enters the stopped
state.
54