Download - Electro Systems Associates

Transcript
11.6 CONNECTOR DETAILS
In all 11 lines are used as detailed below
PIN NO ON J4
SIGNAL
DIRECTION
FROM ESA
86/88-2
DESCRIPTION
PIN NO ON
CENTRONICS
CONNECTOR
5 (PCO)
STROBE
O/P
STORBE* pulse to
the printer
1
13(PB0)
14(PB1)
11(PB2)
12(PB3)
9(PB4)
10(PB5)
7(PB6)
8(PB7)
Data 0
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7
O/P
O/P
O/P
O/P
O/P
O/P
O/P
O/P
These signals
represent 8 bits
of parallel data
High = 1
Low = 0
2
3
4
5
6
7
8
9
16(PA7)
BUSY
I/P
A high indicates
that Printer cannot
receive data. The signal
becomes high in
following cases
a) During data entry
b) During Printing
operation
c) In OFF-LINE states
d) During printer
error status
11
26
GND
Signal ground
19
11.7 DIRECT OUTPUT TO PRINTER
As already described, when the printer interface is enabled, any character sent to the console is sent to
the printer also. This facility is available in the serial mode of operation only. However, user can
access a routine "Print String", to send a string directly to the printer. This routine can be called from
the user's program when the system is operating in either of the two modes - keyboard or serial. Further,
this routine prints the string independent of the setting of SW7. Thus this routine can be used to print
the desired information even when the system is running in the keyboard mode. However, to use this
routine, user program must first initialize the 8255 at U27 to mode 0 with port A as input and Ports B
and C as outputs (mode control byte is 90H.) The details of the routine "Print String" are given below:
11 - 3
ESA 86/88-2 User’s Manual