Professional Documents
Culture Documents
R6520
Peripheral Interface Adapter (PIA)
Rockwell SEP 24 1993:1
DESCRIPTION FEATURES
The R6520 Peripheral Interface Adapter (P iA ) is designed to • Two 8-bit directional I/O ports with individual data direction
solve a broad range of peripheral control problems in the control
im plem entation of microcomputer system s. T h is device allows • Autom atic "H an d sh ake ’* control of data tran sfers
a very effective trade-off between software and hardware by • Two interrupts (one for each port) with program control
providing significant capability and flexibility in a low cost chip.
• Com m ercial and industrial tem perature range versio n s
W hen coupled with the power and speed of the R6500, R6500/*
or R6SC 00 fam ily of m icroprocessors, the R6520 allow s • 40-pin p lastic and ceram ic versions
im plem entation of very com plex system s at a minimum overall • 5 volt ± 5 % supply requirem ents
cost. i • Com patible with the R 6500, R6500/* and R 65C 00 fam ily of
m icroprocessors
Control of peripheral d evices is handled prim arily through two
• 1 and 2 M Hz versio n s
8-brt bidirectional ports. Each of these lines can be programmed
to act a s either an input or an output. In addition, four peripheral
control/interrupt input lin es are provided. These lin es can be
used to interrupt the processor or to "handshake" data between
the p rocessor and a peripheral device.
-
w
vs s C 1 40 □ CA1
PAo c 2 39 □ ca 2
PA1 c 3 38 □ IRQA
PA2 C 4 37 □ IRQB
PA3 C 5 36 = JR S 0
PA4 c 6 35 □ r s 1
ORDERING INFORMATION
PAS C 34 □ RES
PAg c B 33 =>D0
c 9 32 =»®1
Part Num ber PB0 C 10 31 =>°2
R6520 ____
PB, c 11 30 =>°3
I-Temperature Range (T L to T H):
PB2 c 12 29
Blank = 0°C to + 7 CfC
E = —40°C to + 8 5'C P83 c 13 28 3D5
PB4 C 14 27
— Package:
PBS c 15 26 DD?
C = 40-Pin Ceram ic DIF
P = 40-Pin Plastic DIP PB6 C 16 25 Z3t2
pb7 C 17 24 □ cs,
----Frequency Range: CB, c -8 23 =>“ 2
No letter = 1 MHz
A = 2 MHz
C82 c 19 22 □ cs0
vc c t- 20 21 □ R/W
FUNCTIONAL DESCRIPTION
The R6520 PIA is organized into two independent sections Peripheral Interface buses. Data Bus Buffers (D B B ) interface
referred to as the A Side and the B Side Each section consists data from the two sections to the data bus, while the Data Input
of a Control Register (C R A . C R B ). Data Direction Registe' Register (D IR) interfaces data from the D B3 to the PIA re g iste ^ ^
(DORA, D D RB). Output Register (O RA. O BR), Interrupt Status Chip Select and R W control circuitry interface to the p ro cess® ^
Control (ISC A . IS C B ), and the buffers necessary to dhve the bus control lines. Figure 2 is a block diagram of the R6520 PIA .
OUTPUT b u s ;
PERIPHERAL
OUTPUT PERIPHERAL
REGISTER A INTERFACE
(ORA) BUFFER A
(PIBA)
DATA INPUT
REGISTER
(DIR) PERIPHERAL
OUTPUT PERIPHERAL
INTERFACE
REGISTER B
BUFPER B
(ORB)
(PIBB)
CSO
CS1
CS2 ■ »
RSO ----------►
RS1
CHIP
SELEC T
& R/W IINPUT BUS!
IE
DATA DIRECTION
R/W
CONTROL
CONTROL
JL REGISTER B
•2 --------- ► REGISTER B (DDRB)
(CRB)
RES
* CB1
INTERRUPT STATUS
CONTROL B (ISCB)
IRQB CB2
2
R6520 Heripnerai interlace Aaapier yriMj
The buffers w hich drive the Peripheral A I/O lines contain "p as
In order to write data into DDRA, O RA , D D RB, or O RB registers,
sive" pull-up devices. T h e se pull-up devices are resistive in
bit 2 in the proper Control Register must first be set. The desired
nature and therefore allow the output voltage to go to V C C for
register m ay then be accessed with the address determined by
a logic 1. The sw itches can sink 1.6 mA, m aking thesse buffers
the ad dress interconnect technique used
capable of driving one standard T T L load.
In the input mode, the pull-up d evices are still connected to the
DATA DIRECTION R EG IS T ER S (DDRA, DDRB) I/O pin and still supply current to th is pin. For this reason, these
The Data Direction R egisters (D D RA . DDRB) allow trie pro lin es also represent one standard T T L load in the input mode.
cessor to program each line in the S-b*t Peripheral I/O port to
be either an input or an output. Each bit in DDRA controls the The Peripheral B I/O port duplicates many of the functons of
corresponding line in the Peripheral A port and each bit in DDRB the Peripheral A port. The process of programming these lines
controls the corresponding line in the Penpheral B port. Writing to act as an input or an output is sim ilar to the Peripheral A port,
a O ' in a bit position in the Data Direction Register cau ses the as is the effect of reading or writing this port. However, there
corresponding Peripheral I/O line to act as an input; a “ 1" are several characteristics of the buffers drivtng these lines
causes it to act as an output w hich affect their use in peripheral interfacing.
3
R6520 Peripheral Interface Adapter (PIA)
The Peripheral B 1/0 port buffers are push-pull d evices i.e .. the CHIP S E L E C T (CSO, CS1, CS2)
pull-up d evices are sw itched O F F in the 0 state and ON for a
Th e PIA is selected when CSO and CS1 are high and C S 2 is
logic 1. Sin ce these pull-ups are active d evices, the logic 1
low. These three chip select lin es are norm ally connected to the
voltage w ill not go higher than + 2 .4V .
processor address lin es either directly or through extern
decoder circu its. W hen the PIA is selected , data w ill be tra n s ^ ^
Another difference between the PA 0-P A 7 lines and the PBO ferred between the data lines and PIA registers, and/or peripheral
through PB 7 lines is that they have three-state capability which interface lin es as determ ined by the R/W , RSO . and RS1 lin es
allow s them to enter a high im pedance state when programmed and the contents of Control R e g iste rs A and B .
to be used a s input lin es. In addition, data on these lines w ill
be read properly, when programmed as output lin es, even if the
data sig n als fa ll below 2 .0 volts for a "h ig h " state or are above R E S E T SIGNAL (R ES)
0 .8 volts for a "lo w " state. W hen programmed as output, each
The R eset (R E S ) input in itialize s the R6520 P IA . A low signal
line can drive at least one T T L load and may also be used a s
on the R E S input cau se s all internal reg isters to be cleared .
a source of up to 1 m illiam pere at 1.5 volts to directly drive the
base of a transistor sw itch, such a s a Darlington p air.
CLO CK SIGNAL (02)
DATA BUS B U FFER (DBB) Th e Phase 2 Clock Sig n al (02) is the system clock that triggers
all data transfers between the C P U and the P IA . 02 is gener
The Data Bu s Buffer is an 8-bit bidirectional buffer used for data
ated by the C P U and is therefore the synchronizing signal
exchange, on the D 0-D 7 Data B u s. between the m icroproces
between the C P U and the P IA .
sor and the P IA . T h is buffer is tri-stateable and is capable of
driving a two T T L load (when operating in an output mode) and
represents a one T T L load to the m icroprocessor (when READ/W RITE SIGNAL (R/W)
operating in an input mode).
Read/W rite (R/W ) controls the direction of data transfers
between the PIA and the data lin es associated with the C PU
INTERFACE SIGNALS and the peripheral d e vice s. A high on the R/W line perm its the
peripheral device to tran sfer data to the C PU from the PIA . A
The PIA interfaces to the R6500. R6500/* or the R65C00 micro
low on the R/W line allow s data to be transferred from the C PU
processor fam ily with a reset lin e, a 0 clock line, a read/write
to the peripheral d evices from the P IA .
lin e, two interrupt,request lin es, two register select lin es, three
chip select lin es, and an 8-bit bidirectional data bus.
R EG IS T ER S E L E C T (RSO, RS1)
The PIA interfaces to the peripheral device with four interrupt/ The two R egister Se le ct lin es (R SO , R S 1 ), in conjunction with
control lin es and two 8-bit bidirectional data ports. the Control R eg isters (C R A , C R B ) Data Direction R egister
a cce ss bits (bit 2), se le ct the vario us R 6520 registers to be
Figure 1 (on the front page) shows the pin assignm ents for these accessed by the C P U . RSO and RS1 are norm ally connected
interface sig n als and Figure 3 show s the interface relationship to the m icroprocessor (C PU ) ad dress output lin es. Through con
of these sig n als to the C P U and the peripheral d evices. trol of these lin es, the C P U can w rite directly into the Control
\ PA0-PA7
PERIPHERAL
DEVICE
A
R6500.
R6500-
OR
R65C00
MICROPROCESSOR
FAMILY
PERIPHERAL
OEVICE
B
PB0-PB7
4
nod^ u r c i ip i i c i o i i m c n a w c M u o p i e i ^ r iM )
R egisters (C R A , C R B ), the Data Direction Registers (D D RA, transition on C B 2 . and IR Q B from this flag is controlled by C R B
D D R B ). and the Peripheral Output R eg isters (O RA , O R B ). In bit 3
addition, the processor may directly read the contents of the Also, both bit 6 and bit 7 of C R B are reset by a R ead Peripheral
Control R egisters and the Data Direction R egisters. Table 2 B Output Register' operation A sum mary of IR Q B control is
show s the internal register address decoding. shown in Tab le 3.
•
B it 1 IRQA1 PO Sm VE TRANSITION
1 Set IRQA1 Flag (brt 7) on a positive (low-to-high) transition o* CA1
0 Set IRQA1 Flag (bit 7) on a negative (high-to-tow) transition of C A I.
6
f CI • i ak b I ■u v b n u u ^ i^ i yt l /“»)
•2
RSO. R S I,
CSO. CS1. CS2
PA 0-P A 7
PB0-PB7
D 0 -D 7
D A T A OUT
CA2
(PULSE OUT)
CA1
CA2
(HAND SHAKE)
8
R6520 Peripheral Interface Adapter (PIA)
•tCYC*
r-
'‘ l
RSO, RSV,
CSO. CS1, CS2
R/W
DO-07
DATA IN
PAO-PA7
PB0-PB7
CB2
(PULSE OUT)
C81
C82
(HAND SHAKE)
9
R6520 Peripheral Interface Adapter (PIA)
BUS TIMING CHARACTERISTICS
..
1 MHz 2 MHz r ............... |
Param eter Sym bol Min. Max. Min. Max. Unit
READ TIMING
180 — 90 — ns
Address Set-Up Time ' acs
Address Hold Time 0 — 0 — ns
tCAB
Peripheral Data Set-Up Time 300 — 150 — ns
' pcr
Data Bus Delay Time — 395 — 190 ns
•aw
Data Bus Hold Time L ir 10 — 10 ns
W RITE TIMING
Address Set-Up Time 180 — 90 — ns
<ACV¥
Address Hold Tim e •caw 0 — 0 — ns
R/W Set-Up Tim e lwcw 130 — 65 — ns
R/W Hold Time kxw 50 — 25 — ns
Data Bus Set-Up Time *DCW 300 — 150 — ns
Data Bus Hold Time *HW 10 -- 10 ns
10
nooiu reripnerai interface Aaapter (HIA)
ABSOLUTE MAXIMUM RATINGS*
Parameter Symbol Value Unit •N O T E: S tre sse s above those listed may cause perm anent
Supply Voltage - 0.3 to + 7.0 Vdc damage to the device. T h is is a stre ss rating only and functiona!
v cc
operation of the device at these or any other conditions above
| Input Voltage v « - 0.3 to + Vcc vac
those indicated in the other sectio ns of this docum ent is not
Operating Temperature Range T* \ th °c im plied. Exp o sure to absolute maxim um rating conditions for
Commercial 0 to +70 extended periods may affect device reliability
Industrial - 4C to +85
Storage Temperature t stg -5 5 to +150 °c
OPERATING CONDITIONS
Parameter Symbol Value
Supply Voltage Vcc 5V ±5%
Temperature Range Ta
Commercial 0°C to 70°C
Industrial - 40°C to ♦ 85aC
DC CHARACTERISTICS
(V cc “ 5.0V ± 5 % . V ss = 0. T A « T l to T H, unless otherw ise noted)
11
R6520 Peripheral Interface Adapter (PIA)
PACKAGE DIMENSIONS
Information furnished by Rockwell Intemationai Corporation is beteved to be accurate and retiabie. However, no responstbUrty ts assum ed by Rockwell
International for its use. nor any ntm gem ent of pateras or other ngnts of ford parties which may result from t s use. No license ts granted by vrrpHcatxxi or
othennse under any patent ngnis of RockweB International other than lor a rcu ty embodied in Rockwell produds Rockwell International reserves the right to
change crcu try at any tsme without notice. Ttus document suD/ect to change wshout notice