(MA) MOTOROLA MC6821 PERIPHERAL INTERFACE ADAPTER (PIA) The MC6821 Peripheral Interface Adapter provides the universal means of interfacing peripheral equipment to the M6800 family of microprocessors. This device is capable of interfacing the MPU to peripherals through two 8-bit bidirectional peripheral data buses and four control lines. No external logic is required for interfacing to most peripheral devices. The functional configuration of the PIA is programmed by the MPU during system initialization. Each of the peripheral data lines can be pro- grammed to act as an input or output, and each of the four con- trol/interrupt lines may be programmed for one of several control the interface. @ 8-Bit Bidirectional Data Bus for Communication with the MPU @ Two Bidirectional 8-Bit Buses for Interface to Peripherals @ Two Programmable Control Registers @ Two Programmable Data Direction Registers @ Four Individually-Controlled Interrupt Input Lines; Two Usable as Peripheral Control Outputs @ Handshake Control Logic for Input and Output Peripheral Operation @ High-impedance Three-State and Direct Transistor Drive Peripheral Lines @ Program Controlled Interrupt and Interrupt Disable Capability @ CMOS Drive Capability on Side A Peripheral Lines @ Two TTL Drive Capability on All A and B Side Buffers @ TTL-Compatible @ Static Operation MOS (N-CHANNEL, SILICON-GATE, DEPLETION LOAD) PERIPHERAL INTERFACE ADAPTER modes. This allows a high degree of flexibility in the overall operation of ..-... L SUFFIX CERAMIC PACKAGE CASE 715 S SUFFIX CERDIP PACKAGE CASE 734 P SUFFIX PLASTIC PACKAGE CASE 711 ORDERING INFORMATION Frequency Package Type (MHz) Temperature Order Number Ceramic 1.0 0C to 70C MC6821L L Suffix 1.0 - 40C to 85C MC6821CL 1.5 0C to 70C MC68A21L 1.5 ~ 40C to 85C MCE6BA2ZTCL 2.0 OC to 70C MC68B21L Cerdip 1.0 0C to 70C MC6821S S Suffix 1.0 ~ 40C to 85C MC6821CS 15 0C to 70C MC68A21S 15 - 40C to 85C MC68A21CS 2.0 OC to 70C MC68B21S Plastic 1.0 OC to 70C MC6821P P Suffix 1.0 ~ 40C to 85C MC6821CP 1.5 0C. to 70C MC68A21P 15 - 40C to 85C MC68A21CP 2.0 0C to 70C MC68B21P PIN ASSIGNMENT Vssqie@ \~ 40f] cai PAOL] 2 39 [}cA2 PAID 38 fiRQA PA2C 4 37 piras PA3}5 36f1RSO PA4Q6 35RS1 PASY] 7 PRESET pag 8 33/1 D0 PA7D9 3201 PBOf}I0 3102 Peign 301D3 P8212 29f]04 PB3f}13 28 [JOS Pe4{}14 27 [106 pesgis 261] D7 PB6 G16 25f1E PB7Q17 24f1CS1 ceif}1s 23[CS2 cp2Q19 22f] cso VecH 20 2pR/wMC6821 MAXIMUM RATINGS Characteristics Symbol Value Unit This device contains circuitry to protect the Supply Voltage Vec -0.3 to +7.0 Vv inputs against damage due to high static Input Voltage Vin ~0.3to +70 V vena ee or electric fields; powewer r is ad- - vised that normal precautions be taken to ore ioe. ces821 Ta ot te a c avoid applications of any voltage higher than MC6821C, MCBBA21C -~40 to +85 meximem rated voages to this high- impedance circuit. For proper operation it is Storage Temperature Range Tstg__ | ~ 58 to + 150 C recommended that Vin and Vout be con- Strained to the range GNDs(Vin_ or THERMAL CHARACTERISTICS Vout) S Vcc. Characteristic Symbo! Value Unit Unused inputs must always be tied to an Thermal Resistance appropriate logic voltage level (e.g., either Ceramic 50 GND or Vcc). Plastic GA 100 C/W Cerdip 6 POWER CONSIDERATIONS The average chip-junction temperature, Ty, in C can be obtained from: Ty=Tat(Ppe6ja) (1) Where: , Tas Ambient Temperature, 65 = Package Thermal Resistance, Junction-to-Ambient, C/W Po=PINT + PPORT PiNT#ICC x Vcc, Watts Chip Internal Power PPORT# Port Power Dissipation, Watts User Determined For most applications PpoRT CB2 b3=0: Write Strobe with CB1 Restore CB2 goes low on first low-to-high E transition following an MPU write into Output Register 8; returned high by the next active CB1 transi- tion as specified by bit 1. CRB-b7 must first be cleared by a read of data. b3=1: Write Strobe with E Restore CB2 goes low on first low-to-high E transition following an MPU write into Output Register B: returned bS b4 b3 high by the next low-to-high E tran- sition following an E pulse which occurred while the part was de- selected. 11 Set/Reset CA2 (CB2) CA2 (CB2) goes low as MPU writes b3=0 into Control Register. CA2 (CB2) goes high as MPU writes b3= 1 into Control Register. CA2 (CB2) Established as Input by b5=0 5 b4 b3 0 L CA2 (CB2) Interrupt Request Enable/Disable b3=0: Disables IROA(B) MPU Interrupt by CA2 (CB2) active transition. * b3=1: Enables IROA(B) MPU Interrupt by CA2 (CB2) active transition. *IRQA(B) will occur on next (MPU generat- ted) positive transition of b3 if CA2 (CB2) active transition occurred while interrupt was disabled. Determines Active CA2 (C82) Transition for Setting Interrupt Fiag IROA(B)2 (Bit b6) b4=0: IRQA(B)2 set by high-to-low transi- tion on CA2 (CB2). b4=1: IRQA(B)2 set by low-to-high transi- tion on CA2 (CB2).