TM 5-6675-323-14
(2) The calculator command register consists of a 4-bit latch and four open-
c o l l e c t o r n a n d g a t e s . T h e latch holds the I/O register code (R4 through R7) deter-
m i n e d by IC1 and IC2 and the direction of the I/O transfer determined by DOUT. In
addition, one bit of the latch is always set when the calculator requests an I/O
operation.
T h i s bit is buffered through one of the nand gates and becomes the
calculator flag line (CFLG). Setting this line true causes the flag line (FLG) to
g o h i g h , i n d i c a t i n g t h a t t h e i n t e r f a c e i s b u s y . T h e other three nand gates are used
t o gate the DOUT, IC1, and IC2 signals onto the processor's data bus when it issues
a r e a d c a l c u l a t o r c o m m a n d r e g i s t e r ( R C C R ) i n s t r u c t i o n . W h e n the processor has
executed the requested I/O operation and is ready for another I/O operation, it
issues a clear calculator command register (CCCR) instruction, which clears the
calculator command register and readies the interface for another I/O operation.
c . Calculator I/O data registers. The calculator output data register consists
of two 4-bit latches and eight open-collector nand gates. This register holds the
data to be transferred from the calculator to the interface. The data contained in
the latches is gated onto the processor data bus when the processor issues a read
calculator output data (RCOD) instruction.
The calculator input data register consists of two 4-bit latches and eight open-
c o l l e c t o r n a n d g a t e s . T h e data on the processor data bus is latched into the two 4-
bit latches when the processor issued the send calculator input data (SCID) command.
The data in this register is transferred to the calculator input/output data lines
when the calculator requests an input operation.
d . C a l c u l a t o r i n t e r r u p t l o g i c . The calculator interrupt logic allows the
interface to request service from the calculator. The calculator interrupt logic is
a network of gates and a one-of-eight decoder. T h i s l o g i c p u l l s t h e a p p r o p r i a t e
interrupt request line (IRL or IRH) low when the processor issues a calculator
interrupt request (CIRQ) instruction and the calculator is not conducting an
I R L is pulled low when the select code switch is set to an
interrupt poll (INT).
a d d r e s s between 0 and 7, and IRH is pulled low when the switch is set between 8 and
15. When the calculator senses a service request, it conducts an interrupt poll to
determine when interface requires service. A poll is conducted when INT is low.
When the most-significant address bit from the select code switch, the calculator
i n t e r r u p t l o g i c p u l l s o n e o f t h e c a l c u l a t o r i n p u t / o u t p u t d a t a l i n e s l o w . The
setting of the select code switch determines which line is pulled low, as shown.
Interrupt Request Bits
L i n e Pulled Low
S e l e c t Code
IOD
0
or
8
IOD1
1
or
9
IOD2
2
or
10
IOD3
3
or
11
IOD4
4
or
12
IOD5
5
or
13
IOD6
6
or
14
IOD7
7
or
15
3-138