R6522 oe Rockwell Versatile Interface Adapter (VIA) R6522 DESCRIPTION The R6522 Versatile interface Adapter (VIA) is a very flexible 1/O control device. In addition, this device contains a pair of very powertul 16-bil interval timers, a Serial-to-parallel/parallel-to serial shift register and input data latching on the peripheral ports. Expanded handshaking capability allows control of bidiractional data transfers between VIA’s in multiple processor systems. The R6522 includes functions for pragrammed control af up to two peripheral devices (Ports A and 8). These two program con- trolled 8-bit bidirectional peripheral 1/O ports allow direct inter- facing between the microprocessor and selected peripheral units. Each port has input data latching capability. Two program- mable Data Direction Registers (A and B) allow selection of data direction (input or output) on an individual line basis. The R6522 also has two programmable 16-bit Interval Timer/Counters with latches. Timer 1 may be operated in a One- Shot Interrupt Mode with interrupts on each count-to-zero, or in a Free-Run Made with a continuous series of evenly spaced interrupts. Timer 2 functions as both an interval and pulse coun- ter. Serial data transfers are provided by a serial-to- paraliel/parallel-to-serial shift register. Application versatility is further increased by various control registers, including—the interrupt Flag Register, the Interrupt Enable Register, the Auxiliary Control Register and the Peripheral Control Register. ORDERING INFORMATION Part Number: RE522 Temperature Range Blank = O°C to + 70°C E = -40°C to +85°C Package C = Ceramic P « Plastic Frequency No Leiter = 1 MHz A = 2 MHz FEATURES Two 8-bit bidirectional 1/0 ports Two 16-bit programmable timner/counters Serial bidirectional peripheral /O TTL compatible peripheral control lines Expanded “handshake” capability allows positive control of data transfers between processor and peripheral devices. Latched output and input registers on both #O ports 1 and 2 MHz operation Commercial and industrial temperature range versions Single +5 Vdc power requirement Vsst4 1 4057 CAt PAG Co] 2 39 [3 CA2 PA1 Co] 3 38 [> Aso PA2 TI] 4 37 2 As1 PAZ CI 5 36 RS2 pas CI 6 35 FJ RSs PAS CI 7 34 [2 RES .PA6 C1 8 33 Epo PA7 C3 32m PBO CJ 10 31 D2 Pai O11 30 [2 ps PB2 (-j 12 28 I Ds PB3 113 28 2 ps PB4 1 14 271 bs PBS C4145 26 [I p7 PBS C116 255 92 PB? C7] 17 24 {> cs CBt cy} 1s 23 Fa CS3 CB2 (19 2D Rw Voc [J 20 21 E3iRd R6522 Pin Configuration Figure 1. R622 Pin Assignments Document No. 28000D47 Data Sheet Order No. D47 Rev. 9, June 1987