Professional Documents
Culture Documents
In all modes, data may be transferred to and from these I/O lines with
the BASIC "OUT" and "INP" commands. Machine language
programmers may use 8088 port commands.
The Model 20-24 Parallel Interface may be used to interface almost any
peripheral equipment to the IBM personal computer through software
control, without the need for additional external logic circuitry.
4-1
Operational Description
The modes for Port A and Port B can be separately defined, while Port
C is divided into two portions. All of the output registers, including the
status flip-flops, will be reset whenever the mode is changed. Modes may
be combined so that their functional definition can be tailored to almost
any I/O structure. For instance, Group B can be programmed in Mode O
to monitor simple switch closings or display computational results,
Group A could be programmed in Mode 1 to monitor a keyboard or
tape reader on an interrupt-driven basis.
4.3
Single Bit Set/Reset Feature
Any of the eight bits of Port C can be set or reset using a single
OUTPUT instruction. When Port C is being used as status/control for
Port A or B these bits can be set or reset by using the Bit Set/Reset
operation just as if they were data output ports.
4-4
Interrupt Control Functions
Operating Modes
Mode 0 provides simple input and output operations for each of the
three ports. Data is simply written to or read from a specified port.
MODE 0 Basic Functional Definitions:
· Two 8 bit ports and two 4 bit ports
· Any port can be input or output
· Inputs are not latched
· 16 different I/O configurations are possible
4-5
+5
BYPASS ICs WITH 0.1 uF CAPACITORS
FROM +5 VDC TO GROUND. B29 26
D0 34 4
A09 D0 PA0 1
D1 33 3
A08 D1 PA1 2
D2 32 2
A07 D2 PA2 3
D3 31 1
A06 D3 PA3 4
D4 30 40
A05 D4 PA4 5
D5 29 39
A04 D5 PA5 6
D6 28 38
A03 D6 PA6 7
D7 27 37
A02 D7 PA7 8
8255A PB0 18 9
PPI PB1 19 10
B14 IOR 5 20
RD PB2 11
B13 IOW 36 21
WR PB3 12
A31 A0 9 22
A0 PB4 13
A30 A1 8 23
A1 PB5 14
B02 RESET DRV 35 24
RESET PB6 15
B01 PB7 25 16
+5 14
PC0 17
B29 PC1 15 18
16
PC2 16 19
A10 4 7 17
A21 G2A Y7 PC3 20
A9 6 9 13
A22 G1 Y6 PC4 21
A8 5 10 12
A23 G2B Y5 PC5 22
A7 3 11 11
A24 C Y4 PC6 23
A6 2 12 10
A25 B Y3 PC7 24
A5 1 13
A26 A Y2 25
14 U1
Y1 CS B01
15
U2 Y0 7 6
LS138
B31 8 25 PIN D SOCKET
+5
B29 16
4 G2A 7
Y7
A11 AEN 5 G2B 9
Y6
B29 +5 6 G1 10
Y5
A27 A4 3 C 11
Y4
A28 A3 2 B 12
A29 A2 1 A
Y3
Y2
13 24 LINE PARALLEL INTERFACE
14
Y1
15
U3 Y0
LS138
IBM CARD EDGE CONNECTOR
B31