Wing Shing WS82C55AQ, WS82C55AP, WS82C55AC, WS82C55A-5Q, WS82C55A-5P Datasheet

...
Features
T
CMOS Programmable peripheral Interface
80C86
DIP-40
Pinouts
SPEED
QFP-44
44 QFP
44 PLCC
0 C to 70 C
0 C to 70 C
o
o
o
o
PLCC-44
WS82C55A-5P
WS82C55A-5Q
WS82C55A-5C
WS82C55A-5P
WS82C55A-5Q
WS82C55A-5C
0 C to 70 C
o
o
PKG.
TEMPERATURE
RANGE
SPEED
8MHz
8MHz
8MHz
5MHz
5MHz
5MHz
PART NUMBERS
PART NUMBERS
40DIP
Ordering Information
and 8MHz 80C88
The WS82C55A is a high performance CMOS version of
WS82C55A
WS82C55A
WS82C55AP
WS82C55AC
WS82C55AQ
WS82C55AP
WS82C55AQ
WS82C55AC
• Pin Compatible with NMOS 8255A
• 24 Programmable I/O Pins
• Fully TTL Compatible
•HighSpeed,No“WaitState”Operationwith5MHz
• Direct Bit Set/Reset Capability
• Enhanced Control Word Read Capability
• 2.5mA Drive Capability on All I/O Ports
• Low Standby Power (ICCSB) . . . . . . . . . . . . . . . . .10µA
Description
the industry standard 8255A and is manufactured using a self-aligned silicon gate CMOS process (Scaled SAJI IV). It is a general purpose programmableI/Odevice which maybe used with many different microprocessors. There are 24 I/O pins which may be individually programmed in 2 groups of 12 and used in 3 major modes of operation. The high performance and industry standard configuration of the
makeitcompatiblewiththe80C86,and
other microprocessors. Static CMOS circuit design insures lowoperatingpower. TTL
compatibility over the full military temperature range and bus hold circuitry eliminate the need for pull-up resistors. The advancedSAJIprocessresultsinperformanceequal to or greater than existing functionally equivalent products at a fraction of the power.
PA3 PA2 PA1 PA0
RD CS
GND
A1
A0 PC7 PC6 PC5 PC4 PC0 PC1 PC2 PC3 PB0 PB1 PB2
0PA1PA2PA3
RD
1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16 17 18 19 20
40
PA4
39
PA5
38
PA6
37
PA7
36
WR
35
RESE
34
D0
33
D1
32
D2
31
D3
30
D4
29
D5
28
D6
27
D7
26
V
CC
25
PB7
24
PB6
23
PB5
22
PB4
21
PB3
CS
1
GND
2
A
3
1
A
4
0
PC
5
7
PC
6
6
PC
7
5
PC
8
4
PC
9
0
PC
10
1
PC
11
2
CAUTION: These devices are sensitive to electrostatic discharge; follow proper IC Handling Procedures.
PA
4443424140
1415161718
12
13
3PB0PB1PB2
NC
PC
VCCPA
39
38
CC
V
PB
4
5PA6PA7
PA
37
192021
3
4PB5PB6
PB
363534
WR
22
NC
33 32 31 30 29 28 27 26 25 24 23
RESET D
0
D
1
D
2.
D
3
D
4
D
5
D
6
D
7
V
CC
PB
7
CS
GND
A1 A0
PC7
NC PC6 PC5 PC4 PC0 PC1
RD
PA0
7 8 9 10 11 12 13 14 15 16 17
PC2
PC3
PA1
PB0
PA2
PB1
PA3
PB2
NC
PA4
44 43 42 41 40
123456
NC
PB3
PA5
262524232221201918
PB4
PA6
PB5
PA7
PB6
2827
WR
PB7
39
RESET
38
D0 D1
37
D2
36
D3
35
NC
34
D4
33
D5
32
D6
31
D7
30
V
29
CC
Wing Shing Computer Components Co., (H.K.)Ltd. Tel:(852)2341 9276 Fax:(852)2797 8153 Homepage: http://www.wingshing.com E-mail: wsccltd@hkstar.com
1
Pin Description
( For DIP-40)
WS82C55A
PIN
SYMBOL
V
CC
GND 7 GROUND
D0-D7 27-34 I/O DATA BUS: The Data Bus lines are bidirectional three-state pins connected to the
RESET 35 I RESET: A high on this input clears the control register and all ports (A, B, C) are set
CS 6 I CHIP SELECT: Chip select is an active low input used to enable the 82C55A onto the
RD 5 I READ: Read is an active low input control signal used by the CPU to read status
WR 36 I WRITE: Write is an active low input control signal used by the CPU to load control
A0-A1 8, 9 I ADDRESS: These input signals, in conjunction with the RD and WR inputs, control
PA0-PA7 1-4, 37-40 I/O PORT A: 8-bit input and output port. Both bus hold high and bus hold low circuitry are
PB0-PB7 18-25 I/O PORT B: 8-bit input and output port. Bus hold high circuitry is present on this port. PC0-PC7 10-17 I/O PORT C: 8-bit input and output port. Bus hold circuitry is present on this port.
NUMBER TYPE DESCRIPTION
26 VCC: The +5V power supply pin. A 0.1µF capacitor between pins 26 and 7 is
recommended for decoupling.
system data bus.
to the input mode with the “Bus Hold” circuitry turned on.
Data Bus for CPU communications.
information or data via the data bus.
words and data into the 82C55A.
the selection of one of the three ports or the control word register. A0 and A1 are normally connected to the least significant bits of the Address Bus A0, A1.
present on this port.
Functional Diagram
POWER
SUPPLIES
BI-DIRECTIONAL
DATA BUS
D7-D0
RD
WR
A1 A0
RESET
+5V GND
DATA BUS
BUFFER
READ
WRITE
CONTROL
LOGIC
GROUP A
CONTROL
GROUP B
CONTROL
8-BIT
INTERNAL
DATA BUS
GROUP A
PORT A
(8)
GROUP A
PORT C
UPPER
(4)
GROUP B
PORT C LOWER
(4)
GROUP B
PORT B
(8)
I/O
PA7-PA0
I/O
PC7-PC4
I/O
PC3-PC0
I/O
PB7-PB0
CS
2
Functional Description
and the CPU
82C55A to send
WS82C55A
WS82C55A
WS82C55A
WS82C55A
WS82C55A
trol word to the WS82C55A
WS82C55A
WS
Data Bus Buffer
This three-state bi-directional 8-bit buffer is used to interface
tothesystemdatabus.Dataistransmittedor 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
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.
(CS) Chip Select. A “low” on this input pin enables the communcation between the
(RD)Read.A“low”onthisinputpinenables the data or status information to the CPU on the data bus. In essence, it allows the CPU to “read from” the
(WR) Write. A “low” on this input pin enables the CPU to write data or control words into the
(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 significant bits of the address bus (A0 and A1).
82C55A BASIC OPERATION
INPUT OPERATION
A1 A0 RD WR CS
00010Port A Data Bus
01010Port B Data Bus
10010Port C Data Bus
11010Control Word Data Bus
00100Data Bus Port A
01100Data Bus Port B
(READ)
OUTPUT OPERATION
(WRITE)
I/O
PA7-
POWER
SUPPLIES
BI-DIRECTIONAL
DATA BUS
D7-D0
RD
WR
A1 A0
RESET
CS
FIGURE 1. 82C55A BLOCK DIAGRAM.DATABUSBUFFER,
+5V GND
DAT A
BUS
BUFFER
READ
WRITE
CONTROL
LOGIC
READ/WRITE, GROUP A & B CONTROL LOGIC FUNCTIONS
GROUP A
CONTROL
8-BIT
INTERNAL
DATA BUS
GROUP B
CONTROL
GROUP A
PORT A
(8)
GROUP A
PORT C
UPPER
(4)
GROUP B
PORT C
LOWER
(4)
GROUP B
PORT B
(8)
PA0
I/O
PC7-
PC4
I/O
PC3-
PC0
I/O
PB7-
PB0
(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 configuration of each port is programmed by the systems software. In essence, the CPU “outputs” a con-
.Thecontrolwordcontains information such as “mode”, “bit set”, “bit reset”, etc., that ini­tializes the functional configuration of the
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.
10100Data Bus Port C
11100Data Bus Control
XXXX1Data Bus Three-State
X X 1 1 0 Data Bus Three-State
DISABLE FUNCTION
3
Ports A, B, and C
WS82C55A
The WS82C55A
WS82C55A
WS82C55A
containsthree8-bitports(A,B,andC).Allcan be configured to a wide variety of functional characteristics by the system software but each has its own special features or “personality” to further enhance the power and flexibility of the
Port A One 8-bit data output latch/buffer and one 8-bit data input latch. Both “pull-up” and “pull-down” bus-hold devices are present on Port A. See Figure 2A.
Port B One 8-bit data input/output latch/buffer and one 8-bit data input buffer. See Figure 2B.
register will contain 9Bh. During the execution of the system program, any of the other modes may be selected using a single output instruction. This allows a single 82C55A to service a variety of peripheral devices with a simple software maintenance routine. Any port programmed as an output port is initialized to all zeros when the control word is written.
ADDRESS BUS
CONTROL BUS
DATA BUS
Port C One 8-bit data output latch/buffer and one 8-bit data
input buffer (no latch for input). This port can be divided into two 4-bit ports under the mode control. Each 4-bit port con­tains a 4-bit latch and it can be used for the control signal output and status signal inputs in conjunction with ports A and B. See Figure 2B.
MASTER
RESET
OR MODE
CHANGE
INTERNAL
DATA IN
INTERNAL
DATA OUT
(LATCHED)
FIGURE 2A. PORT A BUS-HOLD CONFIGURATION
RESET
OR MODE
CHANGE
INTERNAL
DATA IN
INTERNAL
DATA OUT
(LATCHED)
FIGURE 2B. PORT B AND C BUS-HOLD CONFIGURATION
FIGURE 2. BUS-HOLD CONFIGURATION
INPUT MODE
OUTPUT MODE
OUTPUT MODE
V
CC
P
EXTERNAL PORT A PIN
EXTERNAL PORT B, C PIN
Operational Description
Mode Selection
There are three basic modes of operation than can be selected by the system software:
Mode 0 - Basic Input/Output Mode 1 - Strobed Input/Output Mode 2 - Bi-directional Bus
When the reset input goes “high”, all ports will be set to the input mode with all 24 port lines held at a logic “one” level by internal bus hold devices. After the reset is removed, the
canremainintheinputmodewithnoadditionalini­tialization required. This eliminates the need to pullup or pull­down resistors in all-CMOS designs. The control word
D7-D0 A0-A1
82C55A
C
4 I/O
PC3-PC0
OR I/O
PC7-PC4
C
CONTROL
OR I/O
C
CONTROL
4 I/O
CS
A
8 I/O
PA7-PA0
A
8 I/O
PA7-PA0
A
BI­DIRECTIONAL
PA7-PA0
MODE 0
MODE 1
MODE 2
RD, WR
B
8 I/O
PB7-PB0
B
8 I/O
PB7-PB0 CONTROL
B
8 I/O
PB7-PB0
FIGURE 3. BASIC MODE DEFINITIONS AND BUS INTERFACE
CONTROL WORD
D7 D6 D5 D4 D3 D2 D1 D0
GROUP B
PORT C (LOWER) 1 = INPUT 0 = OUTPUT
PORT B 1 = INPUT 0 = OUTPUT
MODE SELECTION 0 = MODE 0 1 = MODE 1
GROUP A
PORT C (UPPER) 1 = INPUT 0 = OUTPUT
PORT A 1 = INPUT 0 = OUTPUT
MODE SELECTION 00 = MODE 0 01 = MODE 1 1X = MODE 2
MODE SET FLAG 1 = ACTIVE
FIGURE 4. MODE DEFINITION FORMAT
4
The modes for Port A and Port B can be separately defined,
WS82C55A
When WS82C55A
while Port C is divided into two portions as required by the Port A and Port B definitions. 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 0 to monitor simple switch closings or display compu­tational results, Group A could be programmed in Mode 1 to monitor a keyboard or tape reader on an interrupt-driven basis.
This function allows the programmer to enable or disable a CPU interrupt by a specific I/O device without affecting any other device in the interrupt structure.
INTE Flip-Flop Definition
(BIT-SET)-INTE is SET - Interrupt Enable (BIT-RESET)-INTE is Reset - Interrupt Disable
NOTE: All Mask flip-flops are automatically reset during mode se­lection and device Reset.
The mode definitions and possible mode combinations may seem confusing at first, but after a cursory review of the complete device operation a simple, logical I/O approach will surface. The design of the 82C55A has taken into account things such as efficient PC board layout, control signal defi­nition vs. PC layout and complete functional flexibility to sup­port almost any peripheral device with no external logic. Such design represents the maximum use of the available pins.
Single Bit Set/Reset Feature (Figure 5)
Any of the eight bits of Port C can be Set or Reset using a single Output instruction. This feature reduces software requirements in control-based applications.
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 output ports.
CONTROL WORD
D7 D6 D5 D4 D3 D2 D1 D0
XXX
DON’T
CARE
FIGURE 5. BIT SET/RESET FORMAT
BIT SET/RESET 1 = SET 0 = RESET
BIT SELECT
0
1234567 01010101 00110011 00001111
BIT SET/RESET FLAG 0 = ACTIVE
B0 B1 B2
Interrupt Control Functions
isprogrammedtooperateinmode1or mode 2, control signals are provided that can be used as interrupt request inputs to the CPU. The interrupt request signals, generated from port C, can be inhibited or enabled by setting or resetting the associated INTE flip-flop, using the bit set/reset function of port C.
Operating Modes
Mode 0 (Basic Input/Output). This functional configuration
provides simple input and output operations for each of the three ports. No handshaking is required, data is simply writ­ten to or read from a specific port.
Mode 0 Basic Functional Definitions:
• Two 8-bit ports and two 4-bit ports
• Any Port can be input or output
• Outputs are latched
• Input are not latched
• 16 different Input/Output configurations possible
MODE 0 PORT DEFINITION
A B GROUP A
PORTC
D4 D3 D1 D0 PORTA
0 0 0 0 Output Output 0 Output Output 0 0 0 1 Output Output 1 Output Input 0 0 1 0 Output Output 2 Input Output 0 0 1 1 Output Output 3 Input Input 0 1 0 0 Output Input 4 Output Output 0 1 0 1 Output Input 5 Output Input 0 1 1 0 Output Input 6 Input Output 0 1 1 1 Output Input 7 Input Input 1 0 0 0 Input Output 8 Output Output 1 0 0 1 Input Output 9 Output Input 1 0 1 0 Input Output 10 Input Output 1 0 1 1 Input Output 11 Input Input 1 1 0 0 Input Input 12 Output Output 1 1 0 1 Input Input 13 Output Input 1 1 1 0 Input Input 14 Input Output 1 1 1 1 Input Input 15 Input Input
(Upper) PORT B
#
GROUP B
PORTC
(Lower)
5
Mode 0 (Basic Input)
WS82C55A
RD
tRR
INPUT
CS, A1, A0
D7-D0
Mode 0 (Basic Output)
WR
D7-D0
CS, A1, A0
OUTPUT
Mode 0 Configurations
tAW
tAR
tIR
tHR
tRA
tRD tDF
tWW
tDW
tWD
tWA
tWB
CONTROL WORD #0 CONTROL WORD #2
82C55A
C
D0
1D70D60D50D40D30D21D10
8
4
4
8
PA7 - PA0
PC7 - PC4
D7 - D0
PC3 - PC0
PB7 - PB0
A
B
D7
0D60D50D40D30D20D10
1
D7 - D0
CONTROL WORD #1 CONTROL WORD #3
D0
1D70D60D50D40D30D20D11
82C55A
D7 - D0
8
4
4
8
PA7 - PA0
PC7 - PC4
PC3 - PC0
PB7 - PB0
A
C
B
1D70D60D50D40D30D21D11
D7 - D0
82C55A
C
82C55A
C
D0
D0
8
4
4
8
8
4
4
8
PA7 - PA0
PC7 - PC4
PC3 - PC0
PB7 - PB0
PA7 - PA0
PC7 - PC4
PC3 - PC0
PB7 - PB0
A
B
A
B
6
Mode 0 Configurations (Continued)
WS82C55A
CONTROL WORD #4 CONTROL WORD #8
D0
1D70D60D50D41D30D20D10
82C55A
D7 - D0
8
4
4
PA7 - PA0
PC7 - PC4
PC3 - PC0
A
C
1D70D60D51D40D30D20D10
D7 - D0
82C55A
C
D0
8
4
4
PA7 - PA0
PC7 - PC4
PC3 - PC0
A
8
B
PB7 - PB0
CONTROL WORD #5 CONTROL WORD #9
D0
1D70D60D50D41D30D20D11
82C55A
D7 - D0
8
4
4
8
PA7 - PA0
PC7 - PC4
PC3 - PC0
PB7 - PB0
A
C
B
1D70D60D51D40D30D20D11
D7 - D0
CONTROL WORD #6 CONTROL WORD #10
D0
1D70D60D50D41D30D21D10
82C55A
D7 - D0
8
4
4
PA7 - PA0
PC7 - PC4
PC3 - PC0
A
C
1D70D60D51D40D30D21D10
D7 - D0
82C55A
C
82C55A
C
D0
D0
8
8
4
4
8
8
4
4
PB7 - PB0
PA7 - PA0
PC7 - PC4
PC3 - PC0
PB7 - PB0
PA7 - PA0
PC7 - PC4
PC3 - PC0
B
A
B
A
8
B
PB7 - PB0
CONTROL WORD #7 CONTROL WORD #11
D0
1D70D60D50D41D30D21D11
82C55A
D7 - D0
8
4
4
8
PA7 - PA0
PC7 - PC4
PC3 - PC0
PB7 - PB0
A
C
B
1D70D60D51D40D30D21D11
D7 - D0
7
82C55A
C
D0
8
8
4
4
8
PB7 - PB0
PA7 - PA0
PC7 - PC4
PC3 - PC0
PB7 - PB0
B
A
B
Mode 0 Configurations (Continued)
WS82C55A
CONTROL WORD #12 CONTROL WORD #14
D0
1D70D60D51D41D30D20D10
82C55A
D7 - D0
8
4
4
PA7 - PA0
PC7 - PC4
PC3 - PC0
A
C
1D70D60D51D41D30D21D10
D7 - D0
82C55A
C
D0
8
4
4
PA7 - PA0
PC7 - PC4
PC3 - PC0
A
8
B
PB7 - PB0
CONTROL WORD #13 CONTROL WORD #15
D0
1D70D60D51D41D30D20D11
82C55A
D7 - D0
8
4
4
8
PA7 - PA0
PC7 - PC4
PC3 - PC0
PB7 - PB0
A
C
B
1D70D60D51D41D30D21D11
D7 - D0
Operating Modes
Mode 1 - (Strobed Input/Output). This functional configura-
tion provides a means for transferring I/O data to or from a specified port in conjunction with strobes or “hand shaking” signals. In mode 1, port A and port B use the lines on port C to generate or accept these “hand shaking” signals.
Mode 1 Basic Function Definitions:
• Two Groups (Group A and Group B)
• Each group contains one 8-bit port and one 4-bit
control/data port
• The 8-bit data port can be either input or output. Both
inputs and outputs are latched.
• The 4-bit port is used for control and status of the 8-bit
port.
Input Control Signal Definition
(Figures 6 and 7)
CONTROL WORD
1D70D61D51D41/0
CONTROL WORD
D6 D5 D4 D3 D2 D1 D0
D7
1
D3
82C55A
D2 D1 D0
PC6, PC7 1 = INPUT
0 = OUTPUT
RD
11
B
D0
A
C
B
8
PB7 - PB0
8
PA7 - PA0
4
PC7 - PC4
4
PC3 - PC0
8
PB7 - PB0
MODE 1 (PORT A)
PA7-PA0
INTE
A
MODE 1 (PORT B)
INTE
B
PC4
PC3
PC6, PC7
PB7-PB0
PC2
2
8
STBA
IBFAPC5
INTRA
I/O
8
STBB IBFBPC1
STB (Strobe Input)
A “low” on this input loads data into the input latch.
IBF (Input Buffer Full F/F)
A “high” on this output indicates that the data has been loaded into the input latch: in essence, and acknowledg­ment. IBF is set by rising edge of the
STB input being low and is reset by the
RD input.
PC0
RD
INTRB
FIGURE 6. MODE 1 INPUT
8
Loading...
+ 17 hidden pages