|
WS82C55A Datasheet, PDF (3/25 Pages) Wing Shing Computer Components – CMOS Programmable peripheral Interface | |||
|
◁ |
WS82C55A
Functional Description
Data Bus Buffer
This three-state bi-directional 8-bit buffer is used to interface
WS82C55A to the system data bus. Data is transmitted or
received by the buffer upon execution of input or output
instructions by the CPU. Control words and status informa-
tion are also transferred through the data bus buffer.
Read/Write and Control Logic
POWER
SUPPLIES
+5V
GND
BI-DIRECTIONAL
DATA BUS
D7-D0
DATA
BUS
BUFFER
GROUP A
CONTROL
8-BIT
INTERNAL
DATA BUS
GROUP A
PORT A
(8)
GROUP A
PORT C
UPPER
(4)
GROUP B
PORT C
LOWER
(4)
I/O
PA7-
PA0
I/O
PC7-
PC4
I/O
PC3-
PC0
The function of this block is to manage all of the internal and
external transfers of both Data and Control or Status words.
It accepts inputs from the CPU Address and Control busses
and in turn, issues commands to both of the Control Groups.
RD
WR
A1
A0
RESET
READ
WRITE
CONTROL
LOGIC
GROUP B
CONTROL
GROUP B
PORT B
(8)
I/O
PB7-
PB0
(CS) Chip Select. A âlowâ on this input pin enables the
communcation between the WS82C55A and the CPU
(RD) Read. A âlowâ on this input pin enables 82C55A to send
the data or status information to the CPU on the data bus. In
essence, it allows the CPU to âread fromâ the WS82C55A
CS
FIGURE 1. 82C55A BLOCK DIAGRAM. DATA BUS BUFFER,
READ/WRITE, GROUP A & B CONTROL LOGIC
FUNCTIONS
(WR) Write. A âlowâ on this input pin enables the CPU to
write data or control words into the WS82C55A
(A0 and A1) Port Select 0 and Port Select 1. These input
signals, in conjunction with the RD and WR inputs, control
the selection of one of the three ports or the control word
register. They are normally connected to the least signiï¬cant
bits of the address bus (A0 and A1).
WS 82C55A BASIC OPERATION
A1 A0 RD WR CS
INPUT OPERATION
(READ)
0 0 0 1 0 Port A â Data Bus
0 1 0 1 0 Port B â Data Bus
1 0 0 1 0 Port C â Data Bus
1 1 0 1 0 Control Word â Data Bus
OUTPUT OPERATION
(WRITE)
0 0 1 0 0 Data Bus â Port A
0 1 1 0 0 Data Bus â Port B
(RESET) Reset. A âhighâ on this input initializes the control
register to 9Bh and all ports (A, B, C) are set to the input
mode. âBus holdâ devices internal to the 82C55A will hold
the I/O port inputs to a logic â1â state with a maximum hold
current of 400µA.
Group A and Group B Controls
The functional conï¬guration of each port is programmed by
the systems software. In essence, the CPU âoutputsâ a con-
trol word to the WS82C55A . The control word contains
information such as âmodeâ, âbit setâ, âbit resetâ, etc., that ini-
tializes the functional conï¬guration of the WS82C55A
Each of the Control blocks (Group A and Group B) accepts
âcommandsâ from the Read/Write Control logic, receives
âcontrol wordsâ from the internal data bus and issues the
proper commands to its associated ports.
Control Group A - Port A and Port C upper (C7 - C4)
Control Group B - Port B and Port C lower (C3 - C0)
The control word register can be both written and read as
shown in the âBasic Operationâ table. Figure 4 shows the
control word format for both Read and Write operations.
When the control word is read, bit D7 will always be a logic
â1â, as this implies control word mode information.
1 0 1 0 0 Data Bus â Port C
1 1 1 0 0 Data Bus â Control
DISABLE FUNCTION
X X X X 1 Data Bus â Three-State
X X 1 1 0 Data Bus â Three-State
3
|
▷ |