PERIPHERAL INTERFACE ADAPTER (PIA) The MC6821 Peripheral Interface Adapter provides the universal N caanhiMOS N-GATE means of interfacing peripheral equipment to the M6800 family of : DEPLETION LOAD) ' microprocessors. This device is capable of interfacing the MPU to peripherals through two 8-bit bidirectional peripheral data buses and PERIPHERAL INTERFACE four control lines. No external logic is required for interfacing to most ADAPTER 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 modes. This allows a high degree of flexibility in the overall operation of the interface. ® 8-Bit Bidirectional Data Bus for Communication with the L SUFFIX CERAMIC PACKAGE MPU CASE 715 @ Two Bidirectional 8-Bit Buses for Interface to Peripherals @ Two Programmable Contro! Registers @ Two Programmable Data Direction Registers S SUFFIX @ Four Individually-Controlled Interrupt Input Lines; Two CERDIP PACKAGE Usable as Peripheral Control Outputs CASE 734 @® Handshake Control Logic for Input and Output Peripheral Operation @ High-impedance Three-State and Direct Transistor Drive P SUFFIX Peripheral Lines PLASTIC PACKAGE @® 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 PIN ASSIGNMENT @ Static Operation Vssfl @ Ys 40 a CA1 PAOD 2 39 ]CA2 PA1Q3 38 J IROA PA2Q4 370 IROB PA3Q5 36 T]RSO ORDERING INFORMATION Paatie s5 URS Frequency PAS) 7 34] RESET Package Type (MHz) Temperature Order Number PAG 8 331] DO Ceramic 1.0 O°C to 70°C MC6821L L Suffix 1.0 ~ 40°C to 85°C | MC8821CL PATHS 32101 1.5 O°C to 70°C MC68A21L PBOL 10 31 ] D2 2.0 O°C to 70°C MC68B21L Cerdip 1.0 0°C to 70°C | MCé6821S PB2 4412 29 f}D4 S Suffix 1.0 — 40°C to 85°C MC6821CS PB3Qi3 28 ]DS 1.5 O°C to 70°C MC68A21S P 15 ~40°C to 85°C | MC68A2I1CS PB4f14 2711 D6 2.0 0°C to 70°C MC68B21S PB5[]15 26 [J D7 Plastic 1.0 0°C to 70°C MC6821P PB6Q16 2501E P Suffix 1.0 — 40°C to 85°C MC6821CP , 15 0°C to 70°C =|. MC68A21P PB7 O17 24f1CS1 1.5 —40°C to 86°C =| MC68A21CP cB1Q18 231] CS2 2.0 0°C to 70°C MC68B21P cB219 22f7 CSO VecY20 21f1R/Ww ©MOTOROLA INC., 1985 DS9435R5 MAXIMUM RATINGS Characteristics Symbol Value Unit Supply Voltage Vcc |-0.3 to +7.0 V Input Voltage Vin —0.3 to +7.0 V Operating Temperature Range Tr, to TH MC6821, MC68A21, MC68B21 TA QO to 70 °C MC6821C, MC68A21C -40 to +85 Storage Temperature Range T stg — 55 to + 150 °C THERMAL CHARACTERISTICS Characteristic Symbol Value Unit Thermal Resistance Ceramic 50 ° Plastic GUA 100 CiW Cerdip 60 POWER CONSIDERATIONS The average chip-junction temperature, Ty, in °C can be obtained from: Ty=Tat+(Ppe6ja) Where: Ta=Ambient Temperature, °C maximum Strained to Vout) = VCC. Unused inputs must always be tied to an appropriate logic voltage level (e.g., either Vss or Vcc). the This device contains circuitry to protect the inputs against damage due to high static voltages or electric fields; however, it is ad- vised that normal precautions be taken to avoid applications of any voltage higher than rated voltages to Impedance circuit. For proper operation it is recommended that Vin and Voyt be con- range VsssS(Vjpn_ or this high- 6 j;A= Package Thermal Resistance, Junction-to-Ambient, °C/W PD =PINT+ PPORT PINT=!CC Xx Vcc, Watts — Chip Internal Power PPORT=Port Power Dissipation, Watts — User Determined For most applications PPoRT < @ ~~» : aa 7 \ — ©> © vy R/W, Address (Non-Muxed) ra x) @ > >~+() cS / (18) <0)» < Read Data q MPU Read Data Non-Muxed Non-Muxed Write Data MPU Write Data Non-Muxed q Non-Muxed - — 21 > Notes: 1. Voltage levels shown are V; <0.4 V, VH2=2.4 V, unless otherwise specified. 2. Measurement points shown are 0.8 V and 2.0 V, unless otherwise specified. 3 (AA) MOTOROLA Semiconductor Products Inc. PERIPHERAL TIMING CHARACTERISTICS (Vcec=5.0 V +5%, Vss=0 V, TA=TL to TH unless otherwise specified) Characteristic Symbol MceeZ Mceen2 MCesB21 Unit Reference Min | Max | Min | Max | Min | Max Fig. No. Data Setup Time tpps 200 | — 135; — 100 | — ns 6 Data Hold Time tPDH 0 _ 0 — 0 — ns 6 Delay Time, Enable Negative Transition to CA2 Negative Transition tCA2 _ 1.0 — {0.670} — |0.500 | us | 3,7,8 Delay Time, Enable Negative Transition to CA2 Positive Transition TRS1 — 1.0 — |0.670| — |0.500 | us 3,7 Rise and Fall Times for CA1 and CA2 Input Signals tr, tf — 1.0 ~ 1.0 — 1.0 | ws 8 Delay Time from CA1 Active Transition to CA2 Positive Transition tRS2 — 2.0 — | 1.35] —- 1.0 | us 3,8 Delay Time, Enable Negative Transition to Data Valid tppw — 1.0 — |0.670) —- 0.5 | us | 3,9, 10 anes ree Negative Transition to CMOS Data Valid tevos | — 20 _ |aa5] — 10 | us | 4,9 Delay Time, Enable Positive Transition to CB2 Negative Transition tCB2 — 1.0 — |0.670; — 0.5 | ws | 3,11, 12 Delay Time, Data Valid to CB2 Negative Transition toc 20 - 20 —_ 20 _ ns 3, 10 Delay Time, Enable Positive Transition to CB2 Positive Transition tRS1 - 1.0 — |0.670} — 0.5 | us 3, 11 Control! Output Pulse Width, CA2/CB2 PWectT | 500 | — 3/5} — 250 _ ns 3, 11 Rise and Fall Time for CB1 and CB2 Input Signals tr, tf — 1.0 — 1.0 — 1.0 m 12 Delay Time, CB1 Active Transition to CB2 Positive Transition tRS?2 _ 2.0 — 1135] - 1.0 | ps 3, 12 Interrupt Release Time, IROA and [ROB tIR —~ |1.60} — | 1.10} — | 0.85 | ws} 5, 14 Interrupt Response Time tRS3 — 1.0 _ 1.0 _ 1.0 | ps 5, 13 Interrupt Input Pulse Time PW 500 — 500 — 500 — ns 13 RESET Low Time* tRL 10} -— |066} -—- | 05] — | us 15 *The RESET line must be high a minimum of 1.0 ws before addressing the PIA. FIGURE 3 — TTL EQUIVALENT FIGURE 2 — BUS TIMING TEST LOADS TEST LOAD (DO-D7) 5.0 V (PAO—PA7, PBO—PB7, CA2, CB2) Ry, =2.4 kQ 5.0 V Test Point MMD6150 R_ = 1.25 kQ or EQUIV. —— I MMD6150 C R Test reins © or Equiv. 130 pF 11.7 kQ MMD7000 | or Equiv. C R MMD7000 = = or Equiv. C=30 pF, R=12k FIGURE 4 — CMOS EQUIVALENT FIGURE 5 — NMOS EQUIVALENT TEST LOAD TEST LOAD (IRQ Only) (PAO-PA7, CA2) 5.0V Test Point 0-4 1.5 kQ 7p 30 pF Test Point = 100 pF | Semiconductor Products Inc. 4 (AA) MOTOROLA FIGURE 6 — PERIPHERAL DATA SETUP AND HOLD TIMES (Read Mode) PAO-PA7 4 PBO-PB7 —— tpps —e— TP DH Enable / FIGURE 8 — CA2 DELAY TIME (Read Mode; CRA-5= 1, CRA-3= CRA-4= 0) Enable — SL fi SL irl CA1 SL Jd CA2 FIGURE 10 — PERIPHERAL DATA AND CB2 DELAY TIMES (Write Mode; CRB-5= CRB-3= 1, CRB-4=0) Enable / TPDW PBO-PB7 TOC cB2* \ *copo goes low asa result of the positive transition of Enable. FIGURE 12 — CB2 DELAY TIME (Write Mode; CRB-5= 1, CRB-3= CRB-4= 0) Enable / \ Le J S Le SF pae-ty Tf CB1 SL _~ df /, 47 * Assumes part was deselected during any previous E pulse. FIGURE 7 — CA2 DELAY TIME (Read Mode; CRA-5= CRA3= 1, CRA-4= 0) Enable tCA2 — _| tRs1° a PWet CA2 “Assumes part was deselected during the previous E pulse. FIGURE 9 — PERIPHERAL CMOS DATA DELAY TIMES (Write Mode; CRA-5= CRA-3= 1, CRA-4= 0) Enable \ Sf \. 'CMOS-= i tpPowe fcc ct cece Vec -30% Vcc PAOQ-PA7, CA2 FIGURE 11 — CB2 DELAY TIME (Write Mode; CRB-5= CRB-3= 1, CRB-4= 0) Enable =| ~~ 'cB2 _ tRSs1° | PWer+ CB2 "Assumes part was deselected during the previous E pulse. FIGURE 13 — INTERRUPT PULSE WIDTH AND IRQ RESPONSE r PW ~ CA1, 2 i 7 cB1, 2 _ [ROA/B. \aa tRS3* - * Assumes interrupt Enable Bits are set. Note: Timing measurements are referenced to and from a low voltage of 0.8 volts and a high voltage of 2.0 volts, unless otherwise noted. (AA) MOTOROLA Semiconductor Products Inc. FIGURE 14 — IRQ RELEASE TIME | Enable / } _ 1R ——> iIRQA 3&8 Do D1 D2 D3 D4 D5 D6 D7 33 32 31 30 29 28 27 26 Vec z= Pin 20 Vss Pin 1 22 24 23 36 35 21 cso CS 1 CS2 RSO RS1 R/W Enable RESET 25 34 lan Note: Timing measurements are referenced to and from a low voltage of 0.8 volts and a high voltage of 2.0 volts, unless otherwise noted. FIGURE 15 — RESET LOW TIME RESET \ ——— TRL j— “The RESET line must be a Viy for a minimum of 1.0 ws before addressing the PIA. FIGURE 16 — EXPANDED BLOCK DIAGRAM Interrupt Status mai—— 40 CA —_——P~ —_—P- <—— a> Data Bus Buffers <_> (OBB) —_—P- —_———_ > Pr Bus Input Register (BIR) -— ————_ or Chip | Select and a R/W a Control —— ——_p Y Control A | = 39 CA2 Contro! Register A (CRA) NJ Data Direction Y Register A I | | (DDRA) Output Bus \7 og 2 PAO Output e—w 3 PAT Register A » ; (ORA) ae 4 PA? Peripneral Mi§—w 5 PAS interface 6 PAG “ —9—_» 7 PAS o 5 C ———w 9 PAT ———pm- 10 PBO Output —j—p- 17 PB1 > Register B > 12 PB2 (ORB) te te Pe Peripheral it 13 PB3 Interface B —H—pw 14 PB4 wg—w 15 PBS —§——pw 16 PBG6E 17 PB7 | | > Data Direction Control | Register B — Register B (DDRB) (CRB) ~ — 6 Interrupt Status Control B —a—— 18 CB w——— 19 CB2 (AA) MOTOROLA Semiconductor Products Inc. PIA INTERFACE SIGNALS FOR MPU The PIA interfaces to the M6800 bus with an 8-bit bidirec- tional data bus, three chip select lines, two register select lines, two interrupt request lines, a read/write line, an enable line and a reset line. To ensure proper operation with the MCcé6s00, MCé6802, or MC6808 microprocessors, VMA should be used as an active part of the address decoding. Bidirectional Data (D0-D7) — The bidirectional data lines (DO-D7) allow the transfer of data between the MPU and the P|A. The data bus output drivers are three-state devices that remain in the high-impedance (off) state except when the MPU performs a PIA read operation. The read/write line is in the read (high) state when the PIA is selected for a read operation. Enable (E) — The enable pulse, E, is the only timing signal that is supplied to the PIA. Timing of all other signals is referenced to the leading and trailing edges of the E pulse. Read/Write (R/W) — This signal is generated by the MPU to control the direction of data transfers on the data bus. A low state on the PIA read/write line enables the input buffers and data is transferred from the MPU to the PIA on the E signal if the device has been selected. A high on the read/write line sets up the PIA for a transfer of data to the bus. The PIA output buffers are enabled when the proper ad- dress and the enable pulse E are present. RESET — The active low RESET line is used to reset all register bits in the PIA to a logical zero (low). This line can be used aS a power-on reset and as a master reset during system operation. Chip Selects (CSO, CS1, and CS2) — These three input Signals are used to select the PIA. CSO and CS1 must be high and CS2 must be low for selection of the device. Data transfers are then performed under the control of the enable and read/write signals. The chip select lines must be stable for the duration of the E pulse. The device is deselected when any of the chip selects are in the inactive state. Register Selects (RSO and RS1) — The two register select lines are used to select the various registers inside the PIA. These two lines are used in conjunction with internal Control Registers to select a particular register that is to be written or read. The register and chip select lines should be stable for the duration of the E pulse while in the read or write cycle. Interrupt Request (IRQA and IROB) — The active low In- terrupt Request lines (IRQA and IRQB) act to interrupt the MPU either directly or through interrupt priority circuitry. These lines are ‘‘open drain” (no load device on the chip). This permits all interrupt request lines to be tied together in a wire-OR configuration. Each Interrupt Request line has two internal interrupt flag bits that can cause the Interrupt Request line to go low. Each flag bit is associated with a particular peripheral interrupt line. Also, four interrupt enable bits are’ provided in the PIA which may be used to inhibit a particular interrupt from a peripheral device. Servicing an interrupt by the MPU may be accomplished by a software routine that, on a prioritized basis, sequentially reads and tests the two control registers in each PIA for in- terrupt flag bits that are set. The interrupt flags are cleared (zeroed) as a result of an MPU Read Peripheral Data Operation of the corresponding data register. After being cleared, the interrupt flag bit can- not be enabled to be set until the PIA is deselected during an E pulse. The E pulse is used to condition the interrupt control lines (CA1, CA2, CB1, CB2). When these lines are used as interrupt inputs, at least one E pulse must occur from the in- active edge to the active edge of the interrupt input signal to condition the edge sense network. If the interrupt flag has been enabled and the edge sense circuit has been properly conditioned, the interrupt flag will be set on the next active transition of the interrupt input pin. PIA PERIPHERAL INTERFACE LINES The PIA provides two 8-bit bidirectional data buses and four interrupt/control lines for interfacing to peripheral devices. Section A Peripheral Data (PAOQ-PA7) — Each of the peripheral data lines can be programmed to act as an input or Output. This is accomplished by setting a “1” in the cor- responding Data Direction Register bit for those lines which are to be outputs. A “0” in a bit of the Data Direction Register causes the corresponding peripheral data line to act as an input. During an MPU Read Peripheral Data Operation, the data on peripheral lines programmed to act as inputs ap- pears directly on the corresponding MPU Data Bus lines. In the input mode, the internal pullup resistor on these lines represents a maximum of 1.5 standard TTL loads. The data in Output Register A will appear on the data lines that are programmed to be outputs. A logical ‘’1’’ written in- to the register will cause a “’high”’ on the corresponding data (AA) MOTOROLA Semiconductor Products Inc. 7 line while a ‘’0” results in a “‘low.”” Data in Output Register A may be read by an MPU “’Read Peripheral Data A’’ operation when the corresponding lines are programmed as outputs. This data will be read properly if the voltage on the peripheral data lines is greater than 2.0 volts for a logic “1” output and less than 0.8 voit for a logic ‘’0’ output. Loading the output lines such that the voltage on these lines does not reach full voltage causes the data transferred into the MPU on a Read operation to differ from that contained in the respective bit of Output Register A. Section B Peripheral Data (PBO-PB7) — The peripheral data lines in the B Section of the PIA can be programmed to act as either inputs or outputs in a similar manner to PAO- PA7. They have three-state capabiity, allowing them to enter a high-impedance state when the peripheral data line is used as an input. In addition, data on the peripheral data lines PBO-PB7 will be read properly from those lines programmed as outputs even if the voltages are below 2.0 volts for a “high” or above 0.8 V for a “‘low’’. As outputs, these lines are compatible with standard TTL and may also be used as a source of at least 1 milliampere at 1.5 volts to directly drive the base of a transistor switch. Interrupt Input (CA1 and CB1) — Peripheral input lines CA1 and CB1 are input only lines that set the interrupt flags of the control registers. The active transition for these signals is also programmed by the two control registers. Peripheral Control (CA2) — The peripheral control line CA2 can be programmed to act as an interrupt input or as a peripheral control output. As an output, this line is compati- ble with standard TTL; as an input the internal pullup resistor on this line represents 1.5 standard TTL loads. The function of this signal line is programmed with Control Register A. Peripheral Control (CB2) — Peripheral Control line CB2 may also be programmed to act as an interrupt input or peripheral control output. As an input, this line has high in- put impedance and is compatible with standard TTL. As an output it is compatible with standard TTL and may also be used as a source of up to 1 milliampere at 1.5 volts to directly drive the base of a transistor switch. This line is programmed by Control Register B. INTERNAL CONTROLS INITIALIZATION A RESET has the effect of zeroing all PIA registers. This will set PAQ-PA7, PBO-PB7, CA2 and CB2 as inputs, and all interrupts disabled. The PIA must be configured during the restart program which follows the reset. There are six locations within the PIA accessible to the MPU data bus: two Peripheral Registers, two Data Direction Registers, and two Control Registers. Selection of these locations is controlled by the RSO and RS1 inputs together with bit 2 in the Control Register, as shown in Table 1. Details of possible configurations of the Data Direction and Control Register are as follows: TABLE 1 — INTERNAL ADDRESSING Control Register Bit RS1}RSO | CRA-2 | CRB-2 Location Selected 0 6) 1 x Peripheral Register A 0 8) 6) x Data Direction Register A 8) 1 x x Contro! Register A 1 ¢) Xx 1 Peripheral Register B 1 0 Xx 8) Data Direction Register B 1 1 x Xx Contro! Register B X = Don’t Care PORT A-B HARDWARE CHARACTERISTICS As shown in Figure 17, the MC6821 has a pair of I/O ports whose characteristics differ greatly. The A side is designed to drive CMOS logic to normal 30% to 70% levels, and incor- porates an internal pullup device that remains connected even in the input mode. Because of this, the A side requires more drive current in the input mode than Port B. In con- trast, the B side uses a normal three-state NMOS buffer which cannot pullup to CMOS levels without external resistors. The B side can drive extra loads such as Darl- ingtons without problem. When the PIA comes out of reset, the A port represents inputs with pullup resistors, whereas the B side (input mode also) will float high or low, depending upon the load connected to it. (AA) MOTOROLA Semiconductor Products Inc. 8 Notice the differences between a Port A and Port B read operation when in the output mode. When reading Port A, the actual pin is read, whereas the B side read comes from an output latch, ahead of the actual pin. CONTROL REGISTERS (CRA and CRB) The two Control Registers (CRA and CRB) allow the MPU to control the operation of the four peripheral control lines CA1, CA2, CB1, and CB2. In addition they allow the MPU to enable the interrupt lines and monitor the status of the inter- rupt flags. Bits O through 5 of the two registers may be writ- ten or read by the MPU when the proper chip select and register select signals are applied. Bits 6 and 7 of the two registers are read only and are modified by external interrupts occurring on control lines CA1, CA2, CB1, or CB2. The for- mat of the control words is shown in Figure 18. DATA DIRECTION ACCESS CONTROL BIT (CRA-2 and CRB-2) Bit 2, in each Control Register (CRA and CRB), deter- mines selection of either a Peripheral Output Register or the corresponding Data Direction E Register when the proper register select signals are applied to RSO and RS1. A “1” in bit 2 allows access of the Peripheral Interface Register, while a ’’0’ causes the Data Direction Register to be addressed. Interrupt Flags (CRA-6, CRA-7, CRB-6, and CRB-7) — The four interrupt flag bits are set by active transitions of signals on the four Interrupt and Peripheral Control lines when those lines are programmed to be inputs. These bits cannot be set directly from the MPU Data Bus and are reset indirectly by a Read Peripheral Data Operation on the ap- propriate section. Control of CA2 and CB2 Peripheral Control Lines (CRA-3, CRA-4, CRA-5, CRB-3, CRB-4, and CRB-5) — Bits 3, 4, and 5 of the two control registers are used to control the CA2 and CB2 Peripheral Control lines. These bits determine if the con- trol lines will be an interrupt input or an output control signal. If bit CRA-5 (CRB-5) is low, CA2 (CB2) is an interrupt input line similar to CA1 (CB1). When CRA-5 (CRB-5) is high, CA2 (CB2) becomes an output signal that may be used to control peripheral data transfers. When in the output mode, CA2 and CB2 have slightly different loading characteristics. Control of CA1 and CB1 Interrupt Input Lines (CRA-O, enable the MPU interrupt signals [ROA and {ROB, respec- CRB-0, CRA-1, and CRB-1) — The two lowest-order bits of tively. Bits CRA-1 and CRB-1 determine the active transition the control registers are used to contro! the interrupt input of the interrupt input signals CA1 and CB. lines CA1 and CB1. Bits CRA-O and CRB-O are used to FIGURE 17 — PORT A AND PORT B EQUIVALENT CIRCUITS Port A Port B VCC Vcc a Port Pi DATA — onan Data Direction « . Direction | a {| (1-~Output Pin) Data Direction (O—input Pin) — (O— Input Pin) ™ (1——Output Pin) = Read of B Data When - , | in Output Mode Read A Data Read of B To External in Input or . Data when Bus Output Mode in Input Mode ( - Internal PIA Bus of ORDERING INFORMATION Package Motorola Integrated Circuit M6800 Family MC68A21CP | y | Blanks = 1.0 MHz A=1.5 MHz B=2.0 MHz Device Designation In M6800 Family Temperature Range Blank =O°-—- + 70°C C= —40°— +85°C P= Plastic S = Cerdip (| = Ceramic BETTER PROGRAM Better program processing is available on all types listed. Add suffix letters to part number. Level 1 add ‘’S” Level 1 ''S’°=10 Temp Cycles — (- 25 to 150°C); Hi Temp testing at TA max. Level 2 ‘’D''= 168 Hour Burn-in at 125°C Level 3 ‘’DS’' = Combination of Level 1 and 2. Level 2 add ‘’D"’ Level 3 add “DS” (AA) MOTOROLA Semiconductor Products Inc. ) Interrupt Flag IROA(B)1 — (bit 7) (CB1). Determine Active CA1 (CB1) Transition for Setting b1=0: IRQA(B)1 set by high-to-low transition on CA1 (CB1) b1=1: IRQA(B)1 set by low-to-high transition on CA1 L IRQA(B) 1 Interrupt Flag (bit 7) Goes high on active transition of CA1 (CB1); Automa- tically cleared by MPU Read of Output Register A(B). May also be cleared by hardware Reset. FIGURE 18 — CONTROL WORD FORMAT CAt1 (CB1) Interrupt Request Enable/ Disable bO=0: Disables IROQA(B) MPU Interrupt by CAT (CB1) active transition. Enable IROA(B) MPU Interrupt by CA1 (CB1) active transition. 1. IRQA(B) will occur on next (MPU generated) positive transition of bO if CA1 (CB1) active transition oc- curred while interrupt was disabled. bO= 1: —__L mi b7 b6 b5 b4 | b3 b2 b1 | b0 Control Register | |RQA(B)1 | IROA(B)2 CA2 (CB2) DDR CA1 (CB1) Flag Flag Control Access Control IRQA(B)2 Interrupt Flag (bit 6) When CA2 (CB2) is an input, IRQA(B) goes high on ac- tive transition CA2 (CB2); Automatically cleared by MPU Read of Output Register A(B). May also be cleared by hardware Reset. CA2 (CB2) Established as Output (b5=1): IRQA(B) 2=0, not affected by CA2 (CB2) transitions. Determines Whether Data Direction Register Or Output Register is Addressed b2=0: Data Direction Register selected. b2=1: Output Register selected. b5 b4 b3 1 0 bd5 b4 b3 CA2 (CB2) Established as Output by b5= 1 “-—> CA2 (Note that operation of CA2 and CB2 output functions are not identical) b3=0: Read Strobe with CA1 Restore CA2 goes low on first high-to-low E transition following an MPU read of Output Register A; returned high by next active CA1 transition, as specified by bit 1. Read Strobe with E Restore CA2 goes low on first high-to-low E transition following an MPU read of Output Register A; returned high by next high-to-low E transition dur- ing a deselect. b3= 1: CB2 b3 Hl OQ Write Strobe with CB1 Restore CB2 goes low on first low-to-high E transition following an MPU write into Output Register B; 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. Write Strobe with E Restore CB2 goes low on first low-to-high E transition following an MPU write into Output Register B; returned high by the next low-to-high E tran- sition following an E pulse which occurred while the part was de- selected. 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 Contro! Register. b3= 1: 10 J CA2 (CB2) Established as Input by b5=0 ol -) b4 b3 L, CA2 (CB2) Interrupt Request Enable/ Disable b3=0: Disables IROA(B) MPU Interrupt by CA2 (CB2) active transition.* Enables IRQA(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 (CB2) Transition for Setting Interrupt Flag IROA(B)2 — (Bit b6) b3= 1: 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). (AA) MOTOROLA Semiconductor Products Inc. PACKAGE DIMENSIONS L SUFFIX oe CERAMIC PACKAGE : CASE 715-04 °c A — F MILLIMETERS} INCHES en a Dim] MIN | MAX | MIN | MAX ee ee De ee ee ee ee ee oe ee Se oe ws | A_{ 50.29 |. 51.31 | 1.980 | 2.020 | | | | | | 1 | B [14.94 | 15.34 | 0.588 | 0.604. NOTES: | | | | | MET Ld dd] C .05 | 4.06 | 0.120 | 0.160 1. LEADS, TRUE POSITIONED WITHIN 0.25 mm H HL SEATING PLANE a D | 0.38 [ 0.53 0018 0.021 (0.010) DIA (AT SEATING PLANE), AT MAX D G F 10.76 | 1.40 | 0.030 | 0.055 MAT‘L CONDITION. 5 2.54 BSC 0.100 BSC 2. DIMENSION “L” TO CENTER OF LEADS H | 0.76 | 1.78 | 0.030 | 0.070 WHEN FORMED PARALLEL. J | 0.20 {| 0.33 | 0.008 | 0.013 K | 2.54 14.19 10.100 | 0.165 L_ | 14.99 | 15.49 | 0.590 | 0.610 Mi 100 - 100 N | 1.02 | 1.52 | 0.040 | 0.060 AO OA AAA AA AA OA A AO —_ P SUFFIX D B PLASTIC PACKAGE CASE 711-03 O 20 VWUOUOVUV VU UU VU OV CU OCU UCU UOUCULhW®m Cc MILLIMETERS; INCHES DiM| MIN | MAX | MIN | MAX A_| 51.69 | 52.45 | 2.035 | 2.065 NOTES: , - 3 113.72 | 14.22 | 0.540 | 0.560 1, POSITIONAL TOLERANCE OF LEADS (0D), r 394 | 6.08 | 0.1551 0.200 SHALL BE WITHIN 0.25 mm (0.010) AT SéaTING D | 0.361 0.56] 0.014) 0.022 | MAXIMUM MATERIAL CONDITION, IN PLANE E 02; 1.52 | 0.040 | 0.060 RELATION TO SEATING PLANE AND G 2.54 BSC 100 BSC EACH OTHER. H 165 2.16 | 0.065 | 0.085 2. DIMENSION L TO CENTER OF LEADS J: 0.20 | 0.38 { 0.008 | 0.015 WHEN FORMED PARALLEL. K_| 2.92] 343 | O15] 0135 | 3. DIMENSION B DOES NOT INCLUDE L 15.24 BSC 0.600 BSC MOLD FLASH. M | oo [ 159 | 9° | 150 N | 0.51 | 1.02 | 0.020 | 0.040 AAA nAANnR AA AA AA ARAMA AMAA r® 5 S SUFFIX CERDIP PACKAGE 5 B CASE 734-03 [ 4 20 Te ee eee ee ee ee ey ee eee A 4 rC 7 NOTES: MILLIMETERS! INCHES _| 1. DIMENSION-A-IS DATUM. (N DIM) MIN | MAX | MIN | MAX 2. POSITIONAL TOLERANCE yy , A {51.31 (53.24 | 2.020 | 2.096 FOR LEADS: NS — : B | 12,70 | 15.49 ; U ! tL [et | 586 [+ [row HTS TAS) ro P D | 0.38 | 0.56 To F Lp \ | 1.27_1_1.65 3. IS SEATING PLANE. G 2.54 BSC 0.100 BSC 4. DIMENSION L TO CENTER 0.20 T 0.30 {0.008 7 0.012 1 OF LEADS WHEN FORMED C | 3.18 | 4.06 | 0.125 | 0.160 PARALLEL. L_| 15.24 BSC 0.800 BSC __ 5. DIMENSION A AND B Tm {5° 7 150 [50 7 159 | INCLUDES MENISCUS. N {70.51 | 1.27 | 0.020 | 0.050 11 (AA) MOTOROLA Semiconductor Products Inc. Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. “Typical” parameters can and do vary in different applications. Ail operating parameters, including “Typicals” must be validated for each customer application by customer’s technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and @) are registered trademarks of Motorola, Inc. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer. Literature Distribution Centers: USA: Motorola Literature Distribution; P.O. Box 20912; Phoenix, Arizona 85036. EUROPE: Motorola Ltd.; European Literature Centre; 88 Tanners Drive, Blakelands, Milton Keynes, MK14 5BP, England. JAPAN: Nippon Motorola Ltd.; 4-32-1, Nishi-Gotanda, Shinagawa-ku, Tokyo 141, Japan. ASIA PACIFIC: Motorola Semiconductors H.K. Ltd.; Silicon Harbour Center, No. 2 Dai King Street, Tai Po Industrial Estate, Tai Po, N.T., Hong Kong. pe (M\) MOTOROLA MC6821/D N USA (1994) MPS/POD MCU YGACAA — | Dn nn nr