NEC Electronics NEe 1 9 8 4 DATA BOOK NEe 1983/1984 MICROCOMPUTER CATALOG . The information in this document is subject to change without notice. NEe Electronics Inc. makes no warranty of any kind with regard to this material, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. NEe Electronics Inc. assumes no responsibilities for any errors that may appear in this document. NEe Electronics Inc. makes no commitment to update . nor to keep current the information contained in this document. No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics Inc. © 1983 by NEC Electronics Inc. Printed in the United States of America NEe CONTENTS GENERAL INFORMATION SINGLE CHIP 4·BIT MICROCOMPUTERS SINGLE CHIP a·BIT MICROCOMPUTERS MICROPROCESSORS PERIPHERALS PACKAGE OUTLINES QUALITY & RELIABILITY OF NEC MICROPROCESSORS REPRESENTATIVES & DISTRIBUTORS NEe FUNCTIONAL INDEX SINGLE CHIP PERIPHERALS 4-BIT MICROCOMPUTERS Selection Guide ...... 2-3 Selection Guide................ 2-1 Alternate Source Guide .... . 2-4 II Alternate Source Guide . . . . . . . . . 2-4 ROM-Based Products Ordering ROM-Based Products Ordering Procedure . . .. .. . ... .... 2-6 Procedure ... .... . ... 2-6 fJ.PD765A17265 ............... 6-1 fJ.COM-4 ...... .............. 3-1 fJ.PD7201A ... .. .. ... ...... 6-15 fJ.PD557L .................... 3-13 fJ.PD7210 6-31 fJ.PD5521553 ........ ... .... 3-15 fJ.PD7220 ............... .... 6-47 fJ.PD5501554.................. 3-17 fJ.PD7225 ... .... . ...... 6-71 fJ.PD550U554L .. ............ 3-19 fJ.PD7227 .......... .. ...... 6-79 fJ.PD556B Evaluation Chip. . . . . 3-21 fJ.PD7228 ......... ..... ..... 6-87 fJ.PD7500 Series Introduction .. 3-25 fJ.PD7261 .. .. .. .. .... ...... 6-93 fJ.PD7501 .................... 3-35 fJ.PD7720 .. , ........ ... 6-115 fJ.PD7502I7503 .............. 3-41 fJ.PD77P20 ..... ... .... 6-123 fJ.PD7506 ...... . ........... 3-47 fJ.PD7751 ... .. .......... 6-131 fJ.PD750717508 ............... 3-53 fJ.PD7752 . ......... ..... 6-133 fJ.PD7507S .............. .... 3-61 fJ.PD7761m621/Mc-4760 ...... 6-135 fJ.PD7508A .. . . . . . .. .. . 3-67 fJ.PD815518156 ....... . ..... 6-137 fJ.PD7508H ................... 3-75 fJ.PD8155H/fJ.PD8156H .... .. 6-145 fJ.PD7514 .................... 3-81 fJ.PB8212 .... ... . . . . . 6-153 fJ.PD7519175CG19E . ... ..... 3-89 fJ.PB821618226 .. .. 6-159 fJ.PD7520 .................... 3-97 fJ.PD8237A-5 ................ 6-163 fJ.PD7527175281753717538 ..... 3-103 fJ.PD8243 ..... .. . .. .. ... 6-175 fJ.PD7500 Evaluation Chip .... 3-105 fJ.PD82C43 .......... . .. . 6-181 MC-430P .................... 3-113 fJ.PD8251A18251AF .......... 6-187 fJ.PD8253-2/fJ.PD8253-5 ....... 6-205 SINGLE CHIP fJ.PD8255A-21fJ.PD8255A-5. .. 6-213 8-BIT MICROCOMPUTERS fJ.PD8257-21fJ.PD8257-5 .. .. 6-221 Selection Guide ..... . " .... . 2-2 fJ.PD8259A1fJ.PD8259A-2 .. . ... 6-231 Alternate Source Guide ....... . 2-4 fJ.PD8279-21fJ.PD8279-5 ....... 6-249 ROM-Based Products Ordering fJ.PB828218283 .......... 6-259 Procedure ................ .. 2-6 fJ.PB8284A ......... 6-263 fJ.PD78OO ................. . 4-1 fJ.PB828618287 . . 6-269 fJ.PD780117802 .............. . 4-11 fJ.PB8288 ...... 6-275 fJ.PD78C06/78C05 ..... . .... . 4-35 fJ.PB8289 .. ............ .... 6-283 fJ.PD780917807178P09 ..... . . 4-45 fJ.PD83551fJ.PD8355-21 fJ.PD781017811 ............ .. 4-51 fJ.PD8755A .............. .. 6-293 fJ.PD8021 ................. . 4-65 fJ.PD8041A18741A. . . . ..... . 4-71 PACKAGE OUTLINES .... ...... 7-1 fJ.PD8048H18035HL ......... . 4-83 fJ.PD8748 ................. . 4-91 QUALITY a fJ.PD80C4818OC35 .. .. .. ... .. 4-103 RELIABILITY OF NEC MICROPROCESSORS 8-1 fJ.PD8049H18749H18039HL .... . 4-119 fJ.PD80C49/80C39 ........ . 4-127 REPRESENTATIVES a DISTRIBUTORS .............. 9-1 MICROPROCESSORS Selection Guide .......... .. 2-2 Alternate Source Guide ...... . 2-4 fJ.PD780 ................... . 5-1 fJ.PD8085AHlfJ.PD8085A-2 .. . 5-15 fJ.PD8086 ................ .. 5-27 fJ.PD8088 ................. . 5-39 1-1 1-2 NEe NUMERICAL INDEX PRODUCT PAGE PRODUCT PAGE J.LCOM-4 ......................... . 3-1 J.LP07810 4-51 MC-430P ..................... . 3-113 J.LP07811 4-51 II MC-4760 .. .. . .. .. .. .. . ... ............ 6-135 J.LPD8021 ......... .. 4-65 J.LPD550 ............................. . 3-17 J.LPD8035HL ........ . 4-83 J.LPD550L .................. . 3-19 J.LPD80C35 ............ . 4-103 J.LPD552 ........................... . 3-15 J.LPD8039HL ........... . 4-119 J.LPD553 .......................... .. 3-15 J.LPD80C39 ........ . 4-127 J.LPD554 ............................. . 3-17 J.LPD8041A .. 4-71 J.LPD554L ........................... . 3-19 J.LPD8048H .. . 4-83 J.LPD556B .................... . 3-21 J.LPD80C48 .. . 4-103 J.LPD557L .......................... . 3-13 J.LPD8049H .. . 4-119 J.LPD765A ........................ . .. 6-1 J.LP080C49 ........................... . 4-127 J.LPD780 ............................. . 5-1 J.LPD8085AH ..... . 5-15 J.LPD7201A ........... . 6-15 J.LPD8085A-2 .. . 5-15 J.LP07210 6-31 J.LPD8086 5-27 J.LPD7220 6-47 J.LPD8088 ... 5-39 J.LPD7225 6-71 J.LPD8155 .. 6-137 J.LPD7227 6-79 J.LPD8155H ... 6-145 J.LPD7228 6-87 J.LPD8156 ... .. ............. . 6-137 J.LP07261 6-93 J.LPD8156H ............ .. 6-145 J.LPD7265 6-1 6-153 J.LPD7500 Evaluation Chip 3-105 !,PB8216 .......... . 6-159 J.LPD7500 Series Introduction .......... . 3-25 J.LPB8226 .......... . 6-159 J.LPD7501 ................... . 3-35 J.LPD8237A-5 ........ . 6-163 J.LPD7502 3-41 J.LPD8243 ....... . 6-175 J.LPD7503 3-41 J.LPD82C43 ...... . 6-181 J.LPD7506 3-47 J.LPD8251A .................... . 6-187 J.LPD7507 ............ . 3-53 J.LPD8251AF .. 6-187 J.LPD7507S ............. . 3-61 J.LPD8253-2 ..................... . 6-205 J.LPD7508 ............... . 3-53 J.LPD8253-5 ......... . 6-205 J.LPD7508A ............. . 3-67 J.LPD8255A-2 ... 6-213 J.LPD7508H .......... .. 3-75 J.LPD8255A-5 .. 6-213 J.LPD7514 3-81 J.LPD8257-2. 6-221 J.LPD7519 3-89 J.LPD8257-5. 6-221 J.LPD7520 3-97 J.LPD8259A .... . 6-231 J.LPD7527 3-103 J.LPD8259A-2 ........... ...... .. 6-231 J.LPD7528 3-103 J.LP08279-2 ...... . 6-249 J.LP07537 3-103 J.LPD8279-5 ........ .. 6-249 J.LPD7538 3-103 J.LPD8282 ....... .. 6-259 J.LP07720 6-1~5 J.LPD8283 ........ . 6-259 J.LPD77P20 ...................... .. 6-123 J.LPD8284A ...... . 6-263 J.LPD7751 6-131 J.LPD8286 ............... . 6-269 J.LPD7752 6-133 J.LPD8287 6-269 J.LPD7761 6-135 J.LPD8288 6-275 J.LPD7762 6-135 J.L!'D8289 6-283 J.LPD7800 4-1 J.LI>D8355 .... .. .. .. 6-293 J.LPD7801 4-11 J.LPD8355-2 ......... .. 6-293 J.LPD7802 .. 4-11 J.LPD8355A ... 6-293 J.LPD78C05 .............. . 4-35 J.LPD8741A 4-71 J.LPD78C06 .............. . 4-35 J.LPD8748 .... 4-91 J.LPD7807 .............. .. 4-45 J.LPD8749H . 4-119 J.LPD7809 .................. . 4-45 J.LPD8755A 6-293 J.LPD78P09 .................. .. 4-45 1-3 I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I NEe GENERAL INFORMATION fJ NEe MICROCOMPUTER SELECTION GUIDE SINGLE CHIP4-BIT MICROCOMPUTERS SUPPLY DEVICE FAMILY ROM RAM 1/0 PROCESS OUTPUT FEATURES VOLTAGE PINS j.LP0553 j.LCOM-43H 2000 x 8 96 x 4 35 PMOS 0.0. A -10 42 j.LP0557L j.LCOM-43SL 2000 x 8 96 x 4 21 PMOS 0.0. A -8 28 j.LP0552 j.LCOM-44H 1000 x 8 64 x 4 35 PMOS 0.0. A -10 42 j.LP0550 j.LCOM-45 640 x 8 32 x 4 21 PMOS 0.0. A -10 28 j.LP0550L j.LCOM-45L 640 x 8 32 x 4 21 PMOS 0.0. A -8 28 j.LP0554 j.LCOM-45 1000 x 8 32 x 4 21 PMOS 0.0. A -10 28 j.LP0554L j.LCOM-45L 1000 x 8 32 x 4 21 PMOS 0.0. A -8 28 j.LP0556B j.LCOM-43 External 96 x 4 35 PMOS 0.0. B -10 64 MC-430P j.LCOM-43 2000 x 8 96 x 4 35 PMOS 0.0. G -10 42 UVEPROM j.LP07500 j.LP07500 Series External 256 x 4 46 CMOS 0.0. C +2.7 to 5.5 64 j.LP07501 j.LP07500 Series 1024 x 8 96 x 4 24 CMOS 0.0. 0 +2.7 to 5.5 64 j.LP07502 j.LP07500 Series 2048 x 8 128 x 4 23 CMOS 0.0. 0 +2.7 to 5.5 64 j.LP07503 j.LP07500 Series 4096 x 8 224 x 4 23 CMOS 0.0. 0 +2.7 to 5.5 64 j.LP07506 j.LP07500 Series 1024 x 8 64 x 4 22 CMOS 0.0. +2.7 to 5.5 28 j.LP07507 j.LP07500 Series 2048 x 8 128 x 4 32 CMOS 0.0. +2.7 to 5.5 40/52 j.LP07507S j.LP07500 Series 2048 x 8 128 x 4 20 CMOS 0.0. +2.7 to 5.5 28 j.LP07508 j.LP07500 Series 4096 x 8 224 x 4 32 CMOS 0.0. +2.7 to 5.5 40/52 j.LP07508H j.LP07500 Series 4096 x 8 224 x 4 32 CMOS 0.0. +2.7 to 5.5 40/52 j.LP07508A j.LP07500 Series 4096 x 8 208 x 4 32 CMOS 0.0. A +2.7 to 5.5 40 j.LP07519 j.LP07500 Series 4096 x 8 256 x 4 28 CMOS 0.0. F +2.7 to 5.5 64 j.LP07520 j.LP07500 Series 768 x 8 48 x 4 24 PMOS 0.0. E -6to-10 28 j.LP07514 j.LP07500 Series 4096 x 8 256 x 4 31 CMOS 0.0. 0 +2.7 to 5.5 80 j.LP07528/38 j.LP07500 Series 4096 x 8 160 x 4 35 CMOS 0.0. A +2.7 to 5.5 42 j.LP07527/37 j.LP07500 Series 2048 x 8 160 x 4 35 CMOS 0.0. A +2.7 to 5.5 42 Notes. A = - 35V VF Display Drive B = ",COM-4 EvaluatIOn Chip C = ",PD750X Evaluation Chip o = LCD Controller/Driver E = LED Display Controller/Driver F = VF Display Controller/Driver G = Pin-Compatible with ",PD546 0.0. = Open Drain 2-1 NEe MICROCOMPUTER·SELECTION GUIDE. SINGLE CHIP 8-BIT MICROCOMPUTERS SUPPLY DEVICE SPECIAL FEATURES ROM RAM 1/0 PROCESS OUTPUT CYCLE VOLTAGE PINS .,.P08021 Zero-Cross Detector 1024 x 8 64 x 8 21 NMOS BO 3.6 MHz +5 28 .,.PD8035HL .,.P08048 w/External Memory External 64 x 8 27 HMOS TS,BD 6MHz +5 40 .,.PD8039HL .,.PD8049 w/External Memory External 128 x 8 27 HMOS TS,BD 11 MHz +5 40 .,.P08041 Peripheral Interface w/Slave Bus 1024 x 8 64 x 8 18 NMOS TS, BD 6MHz +5 40 .,.P08041A Enhanced .,.P08041 1024 x 8 64 x 8 18 . NMOS TS,BO 6MHz +5 40 .,.P08048H Expansion Bus 1024 x 8 64 x 8 27 HMOS TS,BO 6MHz +5 40 .,.P08049H High Speed .,.P08048 2048 x 8 128 x 8 27 HMOS TS,BO 11 MHz +5 40 .,.P08741A UV-EPROM .,.P08041A ' 1024 x 8 64 x 8 18 NMOS TS,BO 6MHz +5 40 .,.P08748 UV-EPROM .,.P08048 1024 x 8 64 x 8 27 NMOS TS, BO 6MHz +5 40 .,.P08749H UV-EPROM .,.PD8049 2048 x 8 128 x 8 27 HMOS TS,BO 11 MHz +5 40 .,.P080C35 CMOS 8035 External 64 x 8 27 CMOS TS, BO 6MHz '+2.7 to 5.5 40 .,.P080C48 CMOS 8048 1024 x 8 64 x 8 27 CMOS TS,BD 6MHz +2.7 to 5.5 40 .,.P080C39 CMOS 8039 External 128 x 8 27 CMOS TS, BO 8MHz +2.7to 5.5 40 .,.PD80C39H CMOS8039H External 128'x 8 27 CMOS TS,BO 12MHz +2.7 to 5,5 40 .,.P080C49 CMOS 8049 2048 x 8 128 x 8 27 CMOS TS, BD 8MHz +2.7to 5.5 40 .,.PD80C49H CMOS8049H 2048 x 8 128 x 8 27 CMOS TS, BO 12,MHz +2.7 to 5.5 40 .,.PD7800 Development Chip External 128 x 8 48 NMOS 'TS, BD 4MHz +5 64 .,.P07801 8080 Expansion Bus 4096 x 8 128 x 8 48 NMOS TS,BD 4MHz +5 64 64K Memory Address Space .,.PD7802 Expanded .,.P07801 6144 x 8 64 x 8 48 NMOS TS,BD 4MHz +5 64 .,.P078C05 CMOS Microprocessor External 128 x 8 48 CMOS TS, BD 4MHz +5 64 .,.PD78C06 CMOS Microcomputer 4096 x 8 128 x 8 48 HCMOS TS,BO 4MHz +5 64 .,.P07807 7809 w/Ext. Memory External 256 x 8 40 HMOS TS, BD 12MHz +5 64 .,.PD7809 8/16 Bit Microcomputer 8192 x 8 256 x 8 40 HMOS TS,BD 12MHz '"+5 64 .,.P07810 Romless .,.P07811 External 256 x 8 44 NMOS TS,BD 12MHz +5 64 .,.P07811 8 Channel A/0/8-16 Bit Micro 4096 x 8 128 x 8 44 NMOS TS,BO 12MHz +5 64 MICROPROCESSORS SUPPLY DEVICE PRODUCT SIZE PROCESS OUTPUT CYCLE VOLTAGES PINS .,.P0780 Microprocessor 8-bit NMOS 3-State 2,5 MHz +5 40 .,.P0780-1 Microprocessor 8-bit NMOS 3-State 4.0 MHz +5 40 .,.P0780-2 Microprocessor 8-bit NMOS 3-State 6,0 MHz +5 40 .,.P08085A Microprocessor 8-bit NMOS 3-State 3.0 MHz +5 40 .,.P08085A-2 Microprocessor S-bit NMOS 3-State 5.0 MHz +5 40 .,.P08085AH Microprocessor 8-bit NMOS 3-State 3.0 MHz +5 40 .,.P08086 Microprocessor 16-bit NMOS 3-State 5.0 MHz +5 40 .,.P08086-2 Microprocessor 16-bit NMOS 3-State 8.0 MHz +5 40 .,.P08088· Microprocessor 8-bit NMOS 3-State 5.0 MHz +5 40 2-2 NEe MICROCOMPUTER SELECTION GUIDE SYSTEM SUPPORT SUPPLY DEVICE PRODUCT SIZE PROCESS OUTPUT CYCLE VOLTAGES PINS !,PD765A Double Sided/Double Density 8-blt NMOS 3-State 8 MHz +5 40 II Floppy Disk Controlier !,PD7201A Mult,·Protocol Senal Controller 8-bit NMOS 3-State 4 MHz +5 40 !,PD7210 IEEE Controlier (Talker, Listener, 8-b,t NMOS 3-State 8 MHz +5 40 Controlier) !,PD7220 Color Graphic Display Controller 8-blt NMOS 3-State 5 MHz +5 40 !,PD7225 Alpha Numeric LCD Controller/Driver 8-b,t CMOS - - 2,7105,5 52 !,PD7227 Dot Matrix LCD Controlier/Drlver 8-blt CMOS - - 2,7 to 5,5 64 !,PD7228 Oot Matrix LCD Controller/Driver 8-blt CMOS - - 2,7 to 5,5 80 !,PD7720 Signal Processor 16-blt NMOS 3-State 8 MHz +5 28 !,P077P20 EPROM Version of !,P07720 16-blt NMOS 3-State 8 MHz +5 28 !,PD8155H 256 x 8 RAM with I/O Ports 8-bit HMOS 3-State - +5 40 and Timer !'PD8155-2 256 x 8 RAM with I/O Ports 8-bit NMOS 3-State - +5 40 and Timer !,PD8156H 256 x 8 RAM with I/O Ports 8-bit HMOS 3-State - +5 40 and Timer !,PD8156-2 256 x 8 RAM with I/O Ports and Timer 8-b,t NMOS 3-State - +5 40 !,PB8212 I/O Port 8-blt Bipolar 3-State - +5 24 !,PB8216 Bus Driver Non-Inverting 4-bit Bipolar 3-State - +5 16 !,PB8226 Bus Driver Inverting 4-bit Bipolar 3-State - +5 16 !,PD8243 I/O Expander 4x4blts NMOS 3-State - +5 24 !,PD82C43 I/O Expander 4x4blts CMOS 3-State - +5 24 !,PD8251 A/ AF Programmable Communications 8-bit NMOS 3-State A-9,6K baud +5 28 Interface (Async/Sync) S-64Kbaud !'PD8253-2/-5 Programmable Timer . 8-b,t NMOS 3-State 4.0 MHz +5 24 !'PD8255A-2/-5 Peripheral Interface 8-blt NMOS 3-State - +5 40 !'PD8257-2/-5 Programmable DMA Controller 8-blt NMOS 3-State 4MHz +5 40 IlPD8259-2/-5 Programmable Keyboard/Display 8-b,t NMOS 3-State - +5 40 Interface !'PB8282/8283 8-Bit Latches Bipolar 3-State 5 MHz +5 20 IlPB8284A Clock Driver Bipolar 3-State 5 MHz +5 18 IlPB8286/8287 8-81t Bus Transceivers Bipolar 3-State 5 MHz +5 20 IlPB8288 Bus Controller Bipolar 3-State 5 MHz +5 20 IlPB8289 Bus Arbiter Bipolar 3-State 5 MHz +5 20 IlPD8355/-2/A 2048 x 8 ROM with I/O Ports 8-blt NMOS 3-State - +5 40 IlPD8755A 2048 x 8 EPROM with I/O Ports 8-bit NMOS 3-State - +5 40 IlPD8759A/A-2 Programmable Interrupt Controller 8-bit HMOS 3-State 518 MHz +5 28 SPEECH PRODUCTS !,PD7751 ADPCM Speech Synthesizer 8-blt NMOS 3-State 6 MHz +5 40 !,PD7752 Formant Speech Synthesizer 8-bit CMOS 3-State 36 MHz +5 28 !,PD7761 } K 3 Chip-SR Speech Recognilion 16-blt NMOS 3-State 8 MHz +5 28 !,PD7762 Chip Set 8-blt NMOS 3-State 4 MHz +5 64 !,MC-4760 - Hybrid 3-State 2 MHz +5, ±12 24 2-3 NEe MICROCOMPUTER ALTERNATE SOURCE GUIDE I MANUFACTURER PART NUMBER DESCRIPTION NEC REPLACEMENT I AMD AM8085A Microprocessor (3.0 MHz) fLPD8085A AM8155 Programmable Peripheral Interface fLPD8155 with 256 x 8 RAM AM8156 Programmable Peripheral Interface fLPD8156 with 256 x 8 RAM AM8212 110 Port (8-Bit) fLPB8212 AM8214 Priority Interrupt Controller fLPB8214 AM8216 Bus Driver, Inverting fLPB8216 AM8226 Bus Driver, Non-Inverting fLPB8226 AM8251 Programmable Communications fLPD8251 Interface AM8255 Programmable Peripheral Interface fLPD8255 AM8257 Programmable DMA Controller fLPD8257 AM8355 Programmable Peripheral Interface fLPD8355 with 2048 x 8 ROM AM8048 Single Chip Microcomputer fLPD8048 AMI 7500 Family 4-Bit CMOS Microcomputer fLPD750X 78C06n8C05 8-Bit CMOS Microcomputer fLPD78C06n8C05 7810n811 16-Bit High-Performance fLPD7810n811 Microcomputer 7807/7809 16-Bit High-Performance fLPD7807/7809 Microcomputer 7720 Signal Processor fLPD7720 INTEL 8021 Microcomputer with ROM fLPD8021 8035HL Microprocessor fLPD8035HL 8039HL Microprocessor fLPD8039HL 8041A Programmable Peripheral Controller fLPD8041A with ROM 8048H Microcomputer with ROM fLPD8048H 8049H Microcomputer with ROM fLPD8049H 8085A Microprocessor (3.0 MHz) fLPD8085A 8085A-2 Microprocessor (5.0 MHz) fLPD8085A-2 8086 Microprocessor (16-Bit) fLPD8086 8155/8155-2 Programmable Peripheral Interface fLPD8155/8155-2 with 256 x 8 RAM 8156/8156-2 Programmable Peripheral Interface fLPD8156/8156-2 with 256 x 8 RAM 8212 110 Port (8-Bit) fLPB8212 8214 Priority Interrupt Controller fLPB8214 8216 Bus Driver, Non-Inverting fLPB8216 8226 Bus Driver, Inverting fLPB8226 8243 110 Expander fLPD8243 2-4 NEe MICROCOMPUTER ALTERNATE SOURCE GUIDE I MANUFACTURER PART NUMBER DESCRIPTION NEC REPLACEMENT J INTEL (CONT.) 8251A Programmable Communications "PD8251A Interface (AsynciSync) 8253-5 Programmable Timer "PD8253-5 8255A-5 Programmable Peripheral Interface "PD8255A-5 8257-5 Programmable DMA Controller "PD8257-5 8259A Programmable Interrupt Controller "PD8259A 8272 Double Sided/Double Density "PD765 Floppy Disk Controller 8279-5 Programmable Keyboard/Display "PD8279-5 Interface 828218283 8-Bit Latches "PB8282/8283 8284 Clock Driver "PB8284 8286/8287 8-Blt Transceivers "PB8286/8287 8288 Bus Controller "PB8288 8355 Programmable Peripheral Interface "PD8355 with 2048 x 8 ROM 8741A Programmable Peripheral Controller "PD8741A with EPROM 8748 Microcomputer with EPROM "PD8748 8749H Microcomputer with EPROM "PD8749H 8755A Programmable Peripheral Interface "PD8755A with 2K x 8 EPROM 8274 Multiprotocol Serial Controller "PD7201 NATIONAL I NS8048 Microcomputer with ROM "PD8048 I NS8049 Microcomputer with ROM "PD8049 8212 I/O Port (8-Blt) "PB8212 8214 Priority Interrupt Controller "PB8214 8216 Bus Driver, Non-Inverting "PB8216 8226 Bus Driver, Inverting "PB8226 INS8251 Programmable Communications "PD8251A Interface INS8253 Programmable Timer "PD8253-5 INS8255 Programmable Peripheral Interface i>-PD8255A-5 INS8257 Programmable DMA Controller "PD8257-5 INS8259 Programmable Interrupt Controller "PD8259A T.I. SN74S412 I/O Port (8-Bit) "PB8212 2-5 NEe ROM·BASED PRODUCTS ORDERING PROCEDURE The following NEC products fall under the guidelines set by the ROM-based Products Ordering Procedure: .."PD7801 .."PD80C48 .."PD554L .."PD7508A .."PD2308A .."PD7802 .."PD8049H .."PD557L .."PD7508H .."PD2316E .."PD78C06 .."PD80C49 .."PD7501 .."PD7514 .."PD2332 .."PD7807 .."PD8355 .."PD7502 .."PD7519 .."PD2364 .."PD7808 .."PD550 .."PD7503 .."PD7520 .."PD2380 .."PD7811 .."PD550L .."PD7506 .."PD7527 .."PD23128 .."PD8021 .."PD552 .."PD7507 .."PD7528 .."PD23256 .."PD8041AH .."PD553 .."PD7507S .."PD7537 .."PD231 000 .."PD8048H .."PD554 .."PD7508 .."PD7538 .."PD23C128 .."PD7720 .."PD73128G .."PD23C256 .."PD731 000 NEC Electronics Inc. is able to accept mask patterns in a variety of formats to facilitate the trahsferral of ROM mask informa- tion. These are intended to suit various customer needs and minimize turnaround time. Always enclose a listing of the code and a complete "ROM Code Submission" form. The following is a list of acceptable media for code transfertal. • PROM/EPROM equivalents to ROM devices • Sample ROMs or ROM-based microcomputers • ISIS-II compatible 8" floppy disks • CP/M (® Digital Research Corp.) compatible 8" single-density floppy disk Thoroughly tested verification procedures protect against unnecessary delays or costly mistakes. NEC Electronics Inc. will return the ROM code patterhs to the customer in the most convenient format. Unprogrammed EPROMs, if sent with the ROM code, can be programmed and returned for verification. Earth satellites and the world-wide GE Mark III timesharing systems provide reliable and Instant communication of ROM patterns to the factory. The following is an example of a ROM code transferral procedure. The .."PD8048H is used here; however, the process is the same for all other ROM-based products. 1. The customer contacts his local NEC Electronics Inc. Sales Representative, concerning a ROM pattern for the .."PD8048H that he would like to send. 2. Since an EPROM version of that part is available. the .."PD8748 is proposed as a code transferral medium. Alternatively. a .."PD2716 or a floppy disk may be used. 3. Two programmed .."PD8748s are sent to NEC Electronics Inc., along with a listing and the "ROM Code Submission" form. A floppy disk may also be sent as back-up. 4. NEC Electronics Inc. compares the media provided and enters the code into GE-TSS. The GE-TSS file is accessed at the NEC factory and a copy of the code is returned to NEC Electronics Inc. for verification. One of the .."PD8748s is erased and reprogrammed with the customers code as the NEC factory has it. The .."PD8748s, a listing, and a "ROM Code Verification" form are returned to the customer for final verification. 5. Once the customer has notified NEC Electronics Inc. in writing that the code is verified, and has provided both the mask charge payment and a hard-copy purchase order, work begins immediately on production of his .."PD8048Hs. Please contact your local Sales Representative for assistance with all ROM-based product orders. 2-6 NEe ROM Code Submission To' NEC Electronics Inc. Date' ___________________ 252 Humboldt Court Sunnyvale, CA 94086 Attn ROM-Based Product Administrator We are ready to place our purchase order for our ----C:cu-',,-om-.-'-=P-.,C",N:7u-m--:b-.,----' your ------:cN"'EC"""Pa-"C":NC"u-m7"b.-'-----' and are submllting Two copies of the ROM Code on the following medium/media (Please check all applicable boxes)' D fJPD2716 D fJPD8741A D CP/M® compatible 8" single-denSity floppy disk D fJPD2732 D ~PD8748 D Intel ISIS-II compatible 8" Single-density floppy disk D fJPD2764 D ~PD8749H D Intel ISIS-II compatible 8" double-density floppy disk D fJPD27128 D jJPD8755A Please manufacture this device with the speCial marking. , and with the I/O Port Loading Op- tions (available only on the ),JPD7519, jJPD7527, ),JPD7528, jJPD7537, ),JPD7538, /JPD8b21, IJPD80C48, and /JPD80C49, and not available on all other NEC ROM-Based Products) selected on the back of this page The mask charge payment and the ROM code listing are also enclosed Please return the processed ROM code to the follOWing individual for our verification Name Company DIVISion Shlppmg Address (not a P a Box please) Glty State Telephone Number Send this form along with the ROM code, a listing, and the mask charge payment, In a package clearly marked with "ROM CODE ENCLOSED" to the attention of the ROM-Based Product Administrator at the address above CP I M IS a registered trademark Of Digital Research Corp 2-7 Device Port 110 Port Loading Option ~PD7519 SO 0 open drain 0 pull-down resistor to V LOAD S1 0 open drain 0 pul'-doWh resistor to V LOAD S2 0 open drain 0 pull-down resistor to V LOA D S3 0 open drain 0 pull-down resistor to V LOA D S4 0 open drain 0 pull-down resistor to V LOAD S5 0 open drain 0 pull-down resistor to V LOAD S6 0 open drain 0 pull-down resistor to V LOAD S7 0 open drain 0 pull-down resistor to V LOAD T8/S8 0 open drain 0 pull-down resistor to V LOAD T9/S9 0 open drain 0 pull-down resistor to V LOAD l10/S10 0 open drain 0 pull-down resistor to V LOAD T11/S11 0 open drain 0 pull-down resistor to V LOAD T12/S12 0 open drain 0 pull-down resistor to V LOAD T13/S13 0 open drain 0 pull-down resistor to V LOAD T14/S14 0 open drain 0 pull-down resistor to V LOAD T15/S15 0 open drain 0 pull-down resistor to V LOAD TO 0 open drain 0 pull-down resistor to V LOAD T1 0 open drain 0 pull-down resistor to V LOAD T2 0 open drain 0 pull-down resistor to V LOAD T3 0 open drain 0 pull-down resistor to V LOAD T4 0 open drain 0 pull-down resistor to V LOAD T5 0 open drain 0 pull-down resistor to V LOAD T6 0 open drain 0 pull-down resistor to V LOAD T7 0 open drain 0 pull-down resistor to V LOAD ~ .. POolINTo 0 dlfect connection 0 zero-crossing detector (no zero-crossing detector) P23 -P2, o open drain 0 pull-down resistor to V LOAD P3 3-P30 o open drain 0 pull-down resistor to V LOA D P4 3-P40 o open drain 0 pull-down resistor to V LOAD P5 3-P50 [J open drain 0 pull-down resistor to V LOAD P80 o open drain 0 pull-down resistor to V LOAD P8, o open drain 0 pull-down resistor to V LOAD P82 o open drain 0 pull-down resistor to V LOAD P8 3 o open drain 0 pull-down resistor to V LOAD IlPD7527 P90 o open drain 0 pull-down resistor to V LOAD IlPD7528 P9, o open drain 0 pull-down resistor to V LOAD IlPD7537 P92 o open drain 0 pull-down resistor to V LOAD IlPD7538 P9 3 o open drain 0 pull-down resistor to V LOAD P100 o open drain 0 pull-down resistor to V LOAD P10, o open drain 0 pull-down resistor to V LOAD P102 o open drain 0 pull-down resistor to V LOAD P10 3 o open drain 0 pull-down resistor to V LOAD P11 0 o open drain 0 pull-down resistor to V LOAD P11, o open drain 0 pull-down resistor to V LOAD P11 2 o open drain 0 pull-down resistor to V LOAD P11 3 o open drain 0 pull-down resistor to V LOAD IlPD8021 T1 0 zero-crossing detector 0 TTL-compatible POO-P07 0 open drain 0 TTL-compatible IlPD80C48 P10-P17 o CMOS (-5IJA) 0 TTL-compatible (-50IJA) IlPD8OC49 P20-P23 o CMOS (-5J,JA) 0 TTL-compatible ( - 50J,JA) P24-P27 o CMOS (-5~A) 0 TTL-compatible (- 50J,JA) 2-8 NEe SINGLE CHIP 4·BIT MICROCOMPUTERS II NEe ,..COM-4 4-81T SINGLE CHIP MICROCOMPUTER FAMILY DEseR IPTION The tlCOM4 4-bit Microcomputer Family is a broad product line of 14 individual devices designed to fulfill a wide variety of design criteria. The product line shares a compatible architecture and instruction set. The architecture includes all functional blocks necessary for a single chip controller, including an ALU, Accumulator, Byte· wide ROM, RAM, and Stack. The instruction set maximizes the efficient utilization of the fixed ROM space, and includes a variety of Single Bit Manipulation, Table Look-Up, BCD arithemetic, and Skip instructions. The tlCOM·4 Microcomputer Family includes seven different products capable of directly driving 35V Vacuum Fluorescent Displays. Four products are manufactured with a CMOS process technology. tlCOM-4 Microcomputers are ideal for low-cost general purpose controller applications such as industrial controls, instruments, appliance controls, intelligent VF display drivers, and games. F EATU R ES • Choice of ROM size: 2000 x B, 1000 x 8, or 640 x 8 • Choice of RAM size: 96 x 4, 64 x 4, or 32 x 4 - Six 4-Bit Working Registers Available - One 4-Bit Flag Register Available • Powerfu I Instruction Set II - Choice of 80 or 58 Instructions - Table Look·Up Capability with CZP and JPA Instructions - Single Bit Manipulation of RAM or I/O Ports - BCD Arithmetic Capability • Choice of 3-Level, 2-Level, or 1-Level Subroutine Stack • Extensive I/O Capability - Choice of 35 or 21 I/O Lines 42/52,PIn Packages 28-Pin Package - 4-Bit Input Ports 2 1 - 4·Bit I/O Ports 2 2 - 4·Bit Output Ports 4 2 - 3-B it Output Ports - 1-B it Output Port • Programmable 6-Bit Timer Available • Choice of Hardware or Testable Interrupt • Built-In Clock Signal Generation Circuitry • Built-In Reset Circuitry • Single Power Supply • Low Power Consumption • PMOS or CMOS Technologies • Choice of 42'pin DIP, 2B'pin DIP, or 52'pin Flat Plastic Package 3-1 "COM-4 Internal Registers FUNCTIONAL The ALU, the Accumulator, and the Carry Flag together comprise the central portion DESCRIPTION of the IlCOM-4 Microcomputer Family architecture. The ALU performs the arithmetic and logical operations and checks for various results. The Accumulator stores the results generated by the ALU and acts as the major interface point between the RAM, the I/O ports, and the Data Pointer registers. The Carry F/F can be addressed directly, and can also be set during an addition. The IlPD546, IlPD553, IlPD557 L, and IlPD650 also have a Carry Save F IF for storage the value of the Carry F IF. Data Pointer Registers The DPH register and 4-bit DPL register reside outside the RAM. They function as the Data Pointer, addressing the rows and columns of the RAM, respectively. They are individually accessible and the L register can be automatically incremented or decremented. RAM All IlCOM-4 microcomputers have a static RAM organized into a multiple-row by 16-column configuration, as follows: MICROCOMPUTER RAM ORGANIZATION DPH DPL Il PD546,Il PD553, 96 x 4 6 rows x 16 columns 3 4 IlPD557L, and !,PD650 Il PD547,Il PD547L 64 x 4 4 rows x 16 columns 2 4 IIlPD552, and jtPD651 ! [Il PD550.jtPD550L, 32 x 4 2 rows x 16 columns 1 4 IlPD554, jtPD554L, I and IlPD652 ~~ The IlPD546, IlPD553, IlPD557L, and IlPD650 also have a 4-bit Flag register and six 4·iJit working registers resident in the last row of the RAM. Their extended instruction set provides 10 additional instructions With which you can access or manipulate these seven registers. ROM The ROM is the mask-programmable portion of the IlCOM-4 Microcomputer which stores the application program. It is organized as follows: MICROCOMPUTER IlPD546,IlPD553, I ROM 2000 x 8 FIELDS 8 ORGANIZATION PAGES 16 ! IlPD557L, and jtPD650 I---- ., IlPD547,IlPD547L, 1000 x 8 8 8 _~PD552,IlPD651 I i -- - Il PD554.Il PD554L, 1000 x 8 8 8 and IlPD652 I I IlPD550 and jtPD550L ~---- L 640 x 8 8 8 3-2 ,..COM-4 FUNCTIONAL Program Counter and Stack Register DESCRIPTION The Program Counter contains the address of a particular instruction being executed. (CONT.) It is incremented during normal operation, but can be modified by various JUMP and CALL Instructions. The Stack Register IS a LIFO push-down stack register used to save the value of the Program Counter when a subroutine is called. It IS organized as follows: STACK ALLOWABLE MICROCOMPUTER ORGANIZATION SUBROUTINE CALLS I'PD546,I'PD553, 3 words x 11 bits 3 Levels I'PD557 L, and I'PD650 ...-.. --~ ..- - I'PD651 2 words x 10 bits 2 Levels I'PD547,I'PD547L, 1 word x 10 bits 1 Level and I'PD552 I'PD550,I'PD550L, 1 word x 10 bits 1 Level I'PD554,I'PD554L, and I'PD652 Interrupts AIIIlCOM-4 microcomputers are equipped with a software-testable Interrupt which skips an instruction If the Interrupt FIF has been set. The TIT Instruction resets the Interrupt F IF. In addition, the IlPD546, IlPD553, IlPD557L, and IlPD650 have a level-triggered hard- ware interrupt, which causes an automatic stack level shift and interrupt service routine call when an interrupt occurs. Interval Timer The IlPD546, IlPD553, IlPD557 L, and IlPD650 are equipped with a programmable 6-bit interval timer which consists of a 6-blt polynomial counter and a 6-bit binary down counter. The STM Instruction sets the initial value of the binary down counter and starts the timing. The polynomial counter decrements the binary down counter when 63 Instruction cycles have been completed. When the binary down counter reaches zero, the timer F IF is set. The TTM instruction tests the timer F IF, and skips the next Instruction if it is set. Clock and Reset Circuitry The Clock Circuitry for any IlCOM-4 microcomputer can be implemented by connect- ing either an Intermediate Frequency Transformer (1FT) and a capacitor, or a Ceramic Resonator and two capacitors, to the CLO and CL 1 Inputs. The Power-On-Reset Circuitry for any IlCOM-4 microcomputer can be implemented by connecting a Resistor, a Capacitor, and a Diode to the RESET input. 3-3 ",COM-4 I/O Capability FUNCTIONAL DESCRIPTION The pCOM·4 microcomputer family devices have either 35 or 21 I/O lines, depending (CaNT.) upon the individual device, for communication with and control of external Circuitry. They are organized as follows: /JPD546, /JPD547, /JPD547L, /JPD552, /JPD550, /JPD550L, /JPD553, /JPD650. /JPD554, /JPD554L. PORT SYMBOL FUNCTION and /JPD651 /JPD557L, and /JPD652 Port A Port 8 PAO·3 PBO·3 4-81t Input 4-Blt Input • • · Port C PCO·3 4-81t Input/Output IVF Dnve PosSiblel · • Port D PDO·3 ·4·Blt Input/Output IVF Dnve POSSIble) ·• · Port E Port F PEO·3 PFO.3 4·Blt Output (VF Dnve Possible) 4·Blt Output • ·• - - IVF Dnve PosSIble I PGO·3 4· Bit Output IVF Dnve POSSIble) • · Port G PGO·l l·Blt Output IVF Dnve POSSIble) Port H PHO·3 4·Blt Output IVF Dnve POSSIble) • Port I PIO·2 3·Blt Output (VF Drive Possible) · Development Tools The NEC Development System (NOS) is available for developing software service code, editing, and assembling source code into object code. In addition, the ASM·43 Cross Assembler is available for systems which support either the Intel ISIS·II Operating System or the CP/M (® Digital Research Corp.) Operating System. The EVAKIT-43P Evaluation Board is available for production device emulation and prototype system debugging. The SE·43P Emulation Board is available for demon· strating the final system design. The pPD556B ROM·less Evaluation Chip is available for small pilot production. 3-4 IlPD546, IlPD553, ,..COM-4 IlPD557L,IlPD650 BLOCK DIAGRAM INSTRUCTION BUS B BIT PIO·2 RAM PHO·3 DECODER CONTROL AND PGO·3 PFO·3 flAM 96 x 4 PEO·3 PDO·3 PCO·3 PBO·3 I/O INTERFACE 4 BIT B BIT STACK 0 STACK 1 STACK 2 11 CLO PAO·3 RES Netf' Siock dIagram above apphes to /-lPD546, p.PD553, and ,u.PD650 4-blt microcomputers The ,uPD557L block diagram IS similar to the above, except that PBO-3, PGl_3. PHO-3, and PtO-2 have been eliminated to accommodate the ,uPD557L's 28-pln package IlPD547, IlPD547 L, IlPD552, IlPD651 BLOCK DIAGRAM INSTRUCTION BUS 8 BIT RAM IJECODER CONTROL AND DECODE ROM 1000x 8 RAM 64x 4 8 BIT 8 BIT 4 BIT 10 INT STACK 1 INTERFACE 8 BIT F/F ipPD651 ON L YI IN r RES 3-5 IlCOM-4 tLPD550, tL PD 550L, tLPD554, tL PD 554L, tLPD652 BLOCK DIAGRAM INSTRUCTION BUS 8 BIT RAM OECODER ROM CONTROL AND !-lPD550 I 640 x 8 PGo DECODE "PD550L ( PFo 3 RAM 32 X 4 8 BIT PEO·3 PDO·3 PCn 3 4 BIT INT I/O FiF INTERFACE ' 8 BIT PA O_3 CLo CL, IN r 1 RES The tLPD546, fJPD553, fJPD557 L, and tLPD650 execute all 80 instructions of the INSTRUCTION SET extended tLCOM-4 instruction set. The 22 additional instructions are indicated by shading. The tLPD547, tLPD547 L, tLPD550, fJPD550L, tLPD552, fJPD554, tLPD554L, fJPD651 , and tLPD652 execute a 58 instruction subset of the fJCOM-4 instruction set. 3-6 ",COM-4 I NSTRUCTION SET The following abbreviations are used in the description of the pCOM-4 instruction set: SYMBOL DEFINITIONS SYMBOL EXPLANATION AND USE ACC Accumulator ACC n Bit UnU of Accumulator address Immediate address C Carry F/F C' Carry Save F/F data Immediate data Dn Bit un" of immediate data or immediate address DP Data Pointer DPH Upper Bits of Data Pointer DPL Lower 4 Bits of Data Pointer FLAG F LAG Register INTE F/F Interrupt Enable F/F INT F/F Interrupt F/F P( ) Parallel Input/Output Port addressed by the value within the brackets Pn Bit un" of Program Counter PA Input Port A PC Input/Output Port C PD Input/Output Port D PE Output Port E R R Register S S Register SKIP Number of Bytes in next instruction when skip condition occurs STACK Stack Register TC 6-Bit Binary Down Timer Counter TIMER F/F Timer F/F W W Register X X Register y Y Register Z Z Register ( ) The contents of RAM addressed by the value within the brackets [ 1 The contents of ROM addressed by the value within the brackets .. +- Load, Store, or Transfer Exchange - Complement ¥ LOGICAL EXCLUSIVE OR Applies to pPD546, pPD553, pPD556B, pPD557L, and pPD650 only 3-7 IlCOM-4 INSTRUCTION SET X ACC~ lOP) Exchange A wIth the RAM con- 0 0 tents addreuad by OP XI Ace- (OPI Exchange Ace with RAM con- 1+5 oPL -OH OPL -OPL + 1 tents addressed by OP, Increment Skip ,f -OH XC Ace" (OPI Exchange Ace with the RAM 1+5 oPL - FH OPL -DPL-1 contents addreued by OP. Skip If - FH decrement SkiP If • FH XMdata ACC~loP) Exchange Ace with the RAM 01 DO DPH - DPH ¥ 01-0 contents addressed by OP. Per- form I LOGICAL EXCLUSIVE· OR Between DPH and 2 bits of immediate data, store the results XMI data ACC~ lOP) Exchange Ace WIth the RAM 0 01 Do 1+5 DPL ~ OH DPH +- OPH ¥ 01'() contents addressed by OP. Per- OPL-OPt + 1 form a LOGICAL EXCLUSIVE- SkiP ,f OPL "" OH OR Between DPH and 2 bits of Immediate data, store the results In DPH Increment OPL. Skip If -OH XMOdata ACC~ lOP) Exchange Ace With the RAM 0 01 Do 1+5 OPL - FH DPH +- DPH ¥ D1'() contents addressed by Op. Per- OPL +- OPL-1 form e LOGICAL EXCLUSIVE· SkiP if DPL - FH OR Between DPH and 2 bits of Immechate date, store the results In DPH decrement DPL, SkiP If - FH 3-8 INSTRUCTION SET "COM-4 (CaNT.) MNEMONIC FUNCTION DESCRIPTION AD Ace .... Ace + lOP) Add the RAM contents addressed 1 +S Overflow Skip If overflow by DP to Ace; skiP if overflow IS generated ADC Ace +- Ace + lOP) + C If overflow occurs, C~I ADS Ace+-Ace+ lOP) + C Add the RAM contents addressed 1 +S Overflow if overflow occurs, by OP and the carry F IF to Ace. e +- 1 and skIp if overflow occurs, set Carry F/F and OAA ACc- ACC+ 6 DAS ACC- ACC+ 1O Add 10 to Ace to Adjust Oe<:imel for BCD Subtraction EXL ACC ~ ACC'" (DPI Perform a LOGICAL EXCLUSIVE-OR between the INC DEC IND OED 3-9 IlCOM-4 INSTRUCTION SET (CONT.) SKIP MNEMONIC FUNCTION CONOITION RMBdlta (OPlblt+- O 5MBdata (OPlblt-' data PEbit -0 SEa data PEblt-' APB data PIDPLlblt +- 0 SPB data P(OPLlblt +- 1 JMP address P10.o-01 JCP address JPA PS·2- ACC P1.o - 00 CALaddreSi Stack-P+2 Store a return address IP + 2) In 1 DlO Os DB PlO.o - D10.o the stack,call the subroutine pro- D7 De Ds D4 D3 D2 D1 DO gram at the location specified by 11 bits of Immediate data CZP address Stack-P+ 1 Store a return address IP + 11m D3 D2 D1 DO Pl0-S- 00000 the stack, call the subroutine pro- PS-2 +- 03-0 gram at one of sixteen locations In Pl-O- 00 Page 0 of Field 0, specified by 4 3-10 ",COM-4 INSTRUCTION SET (CaNT.) FUNCTION DESCRIPTION TIT II oeD NOP Perform no operatIon, con· sume one machine cycle 3 -11 ",COM-4 Package Outlines For information. see Package Qutline Section 7. Plastic, ... COM-4C Plastic Minifl!!t, ...COM-4G IlCOM4DS-2-82-CAT 3-12 NEe f'PD557L 4-BIT SINGLE CHIP MICROCOMPUTER WITH VACUUM FLUORESCENT DISPLAY DRIVE CAPABILITY DESCRIPTION Thel1PD557L IS a 4-blt single chip microcomputer which has the same architecture as the I1 PD553, but IS pin-compatible with the I1PD550L and the I1PD554L. The I1PD557 L contains a 2000 x 8-blt ROM and a 96 x 4-bit RAM, which Includes SIX working regis- ters and the FLAG register. It has a lever-triggered hardware Interrupt Input INT, a three-level stack and a 6-blt programmable timer. The I1PD557L provides 21 I/O lines, organized into the 4-bit Input port A, the 4-blt I/O ports C and D, and the 4-blt output ports E and F, and the 1-blt output port G. The 17 I/O ports and output ports are capable of being pulled to -35V In order to drive Vacuum Fluorescent Displays directly. The I1 PD557L tYPically executes all 80 instructions of the extended I1COM-4 family instruction set with a 2511s Instruction cycle time. It is manufactured with a modified PMOS process, allowing use of a single -8V power supply and IS available In a 28-pln dual-I n-Ilne plastic package. PIN CONFIGURATION The I1PD550L and the I1PD554L are upward-compatible with the I1 PD557L. Cll PCo PCl 2 3 Clo VGG PAO-PA3 PCO-PC3 PIN NAMES Input Port A Input/Output Port C II RESET PC2 4 iNT POO-PD3 Input/Output Port 0 PC3 5 PA3 PEO-PE3 Output Port E POo PA2 PFO-PF3 Output Port F 6 PGO Output Port G POl I1PD PAl 557L INT Interrupt Input P02 8 PAO 'cLQ=Cll External Clock Signals P03 9 PGo RESET Reset PEa PF3 VGG Power Supply Negative PEl PF2 VSS Power Supply PosItive PE2 PFl TEST Factory Test Pm PE3 PFo (Connect to VSS) VSS TEST ABSOLUTE MAXIMUM Operating Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -10°C to +70°C RATINGS* Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -40°C to +125°C SupplyVoltage,VGG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -15to+0.3V Input Voltages (Port A, INT, RESET) . . . . . . . . . . . . . . . . . . . . . . -15 to +0.3V (Ports C, D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -40 to +0.3V Output Voltages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -40 to +0.3V Output Current (Ports C, D, each bit) . . . . . . . . . . . . . . . . . . . . . . . . . .. - 4 mA (Ports E, F, G, each bit) . . . . .. . . . . . . . . . . . . . . . . . -25 mA (Total, all ports) . . . . . . . . . . . . . . . . . . . . . . . . . . .. -100 mA *COMMENT Stress above those listed under "Absolute Maximum Ratings" may cause permanent damage to the devIce. ThIs IS a stress rating only and functional operatIOn of the devIce at these or any other condItions above those indicated In the operational sections of thIs specificatIOn IS not implied. Exposure to absolute maximum ratmg conditions for extended penods may affect device reliability. Rev/1 3-13 ,""PD557L Ta =-lo'C,o +70'C. VGG =--B.OV ± 10% DC CHARACTERISTICS LIMITS TEST PARAMETER SYMBOL. MIN TYP MAX UNIT CONDITIONS· Input Voltage High VIH 0 -2.5 V Port. A. C. D. INT. RESET. VILl -6.5 VGG V Ports A, INT, RESET Input Voltage Low VIL2 -6.5 -35 V PortsC,D Clock Voltage HIgh Vq,H 0 -0.6 V CLO Input, External Clock Clock Voltage Low ".~L -5.0 VGG V CLo Input, External Clock Port. A. C. D. INT. RESET Input Leakage Current High ILiH +10 ~A VI =-lV Ports A. C. D. INT. RESET ILiLl -10 ~A V =-9V Input Leakage Current Low ILIL2 -30 ~A Ports C, D, VI '" -35V Clock Input Leakage Current High IL.,H +200 ~A eLO Inpu,. V.,H = OV Clock Input Leakage Current Low ILq,L -200 ~A CLO Inpu,. V.,L =-9V Ports C through G, VOHl -1.0 V IOH ""-2 mA Output Voltage High VOH2 -4.0 V Ports E. F. G, IOH =-20 mA Ports C through G, ILOLl -10 ~A Va =-9V Output Leakage Current Low Ports C through G t ILOL2 -30 ~A Va =-35V Supply Current IGG -20 -36 rnA Ta= 2SoC CAPACITANCE LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Input Capacitance CI 15 pF Output Capacitance Co 15 pF t= 1 MHz Input/Output Capacitance Cia 15 pF Ta = -10'C '0 +70'C. VGG =-8.0V ± 10% AC CHARACTERISTICS LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Oscillator Frequency t 100 180 kHz Rise and Fall Times tr,tf 0 0.3 IJS Clock Pulse Width High 'q,WH 2.0 8.0 IJS External Clock Clock Pulse Width Low '4>WL 2.0 8.0 IJS t-----l/f---~-~ CLOCK WAVEFORM Package Outlines For information, see Package Outline Section 7. Plastic, fl.PD557LC 3-14 557LDS-REV 1-2-82-CAT Plastic Shrinkdip, ,..,PD557LCT NEe "PD552 "PD553 4·BIT SINGLE CHIP MICROCOMPUTERS WITH VACUUM FLUORESCENT DISPLAY DRIVE CAPABILITY DESCRIPTION The IlPD552 and the IlPD553 are pin-compatible 4-bit single chip microcomputers which have similar architectures_ The IlPD552 contains a 1000 x 8-bit ROM and a 64 x 4-bit RAM_ It has a testable interrupt input INT, a single-level stack, and executes all 58 instructions of the IlCOM-4 family instruction set. The IlPD552 is upward compatible with the IlPD553. The IlPD553 contains a 2000')( 8-bit ROM, and a 96 x 4-bit RAM which includes six working registers and the Flag register. It has a level-triggered hardware interrupt, a three-level stack, and a programmable 6-bit Timer. The IlPD553 executes all 80 instructions of the extended IlCOM-4 family instruction set. Both the IlPD552 and the IlPD553 provide 35 I/O lines organized into the 4-bit input Ports A and B, the 4-bit I/O Ports C and D, the 4-bit output Ports E, F, G, and H, and the 3-bit output Port I. The 27 I/O ports and output ports are capable of being pulled to ~35V in order to drive Vacuum Fluorescent Displays directly. Both devices typically II execute their instructions With a 10 IlS instruction cycle time. The IlPD552 and the IlPD553 are manufactured with a standard PMOS process, allowing use of a Single ~10V power supply, and are available in a 42-pin dual-In-line plastic package. PIN CONFIGURATION PIN NAMES CL, CLo PCo 2 PAO-PA3 Input Port A VGG PC, 3 PB3 PBO-PB3 I nput Port B PC2 4 PB2 PCO,PC3 I nput/Output Port C PC3 5 PB, iNT 6 POO-P03 I nput/Output Port 0 PBO RESET PA3 PEO-PE3 Output Port E PDQ 8 PA2 PFO·PF3 Output Port F PO, PAl P02 Il PD PAO PGO-PG3 Output Port G P03 552/ PI2 PHO-PH3 Output Port H PEO 553 PI, PIO-PI2 Output Port I PEl PIO INT I nterrupt Input PE2 PH3 PE3 PH2 CLO·CL, External Clock Signals PFO PH, RESET Reset PF, PHO VGG Power Supply Negative PF2 PG3 PF3 PG2 VSS Power Supply Positive TEST PG, TEST Factory Test Pm VSS PGO (Connect to VSS) ABSOLUTE MAXIMUM Operating Temperature ... _ . . . . . . . . . . . . . . . . . . . . . . . . . . . -10°C to +70°C RATINGS* Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -40°C to +125°C SupplyVoltage,VGG... . . . . . . . . . . . . . . . . . . . -15 to +0.3V Input Voltages (Port A, B, INT, RESET) . . . . . . . . . . . . . . . . . . . . . .-15 to +0.3V (Ports C, D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .-40 to +0.3V Output Voltages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .-40 to +0.3V Output Current (Ports C through I, each bit) . . . . . . . . . . . . . . . . . . . . . . -12 mA (Total, all ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -60 mA *COMMENT Stress above those listed under "Absolute MaXimum Ratings" may cause permanent damage to the deVice. ThiS IS a stress rating only and functional operatIon of the deVice at these or any other conditIOns above those mdicated In the operational sections of thiS specIfIcation is not implIed. Exposure to absolute maximum rating conditions for extended periods may affect device reliability . 3-15 ",PD552/553 DC CHARACTERISTICS LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Ports A through 0, INT, Input Voltage High VIH 0 -35 V RESET VIL1 -75 VGG V Ports A, B, INT, RESET Input Voltage Low VIL2 -75 -35 V Ports C, 0 Clock Voltage High Vq>H 0 -08 V CLO Input. External Clock Clock Voltage Low Vq>L -60 VGG V CLO Input, External Clock Ports A through 0, INT, Input Leakage Current High ILiH +10 pA RESET, VI =-lV Ports A through 0, fiiJ'f, IUL1 -10 pA Input Leakage Current Low RESET, VI = -11V ILlL2 -30 pA PortS C, 0, V I '" -35V Clock Input Leakage Current High ILrpH +200 pA CLO Input, V.pH - OV Clock Input Leakage Current Low IL¢L -200 pA CLO Input,VIj>L=-11V Output Voltage High VOH I -20 A, . V Ports C through L IOH = -8 mA Ports C through I, 'LOL, -10 pA VO""-11V Output Leakage Current Low Ports C through I, ILOL2 -30 pA Va'" -35V Supply Current IGG -30 -50 mA CAPACITANCE LIMITS TeST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Input Capacitance CI 15 pF Output Capacitance Co 15 pF f'" 1 MHz Input/Output Capacitance CIO 15 pF AC CHARACTERISTICS LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS OSCillator Frequency f 150 440 KH, RIse and Fall Times tr,tf 0 03 p' Clock Pulse Width High 05 5.6 EXTERNAL CLOCK Clock Pulse Width Low tq,WH t~WL 0.5 56 "' "' 1------l/f-----_~ CLOCK WAVEFORM Package Outlines For information, see Package Outline Section 7. Plastic, fLP0552C/553C 3-16 552/553DS-2-82-CAT NEe ,.,PD550 ,.,PD554 4-BIT SINGLE CHIP MICROCOMPUTERS WITH VACUUM FLUORESCENT DISPLAY DRIVE CAPABILITY DESCRIPTION The IlPD550 and the IlPD554 are pin.compatible 4·bit single chip microcomputers which have the same architecture. TlJe only difference between them is that the IlPD550 contains a 640 x 8·bit ROM, whereas the IlPD554 contains a 1000 x 8·bit ROM. Both devices have a 32 x 4·bit RAM, a testable interrupt input INT, and a single·level stack. The IlPD550 and the IlPD554 provide 21 I/O lines organized into' the 4·bit input port A, the 4·bit I/O ports C and D, the 4·blt output ports E and F, and the l·bit output port G. The 17 I/O ports and output ports are capable of being pulled to -35V in order to drive Vacuum Fluorescent Displays directly. The IlPD550 and the IlPD554 typically execute all 58 instructions of the lleOMA family instruc· tion set with a 10 Ils instruction cycle time. Both devices are manufactured with a standard PMOS process, allowing use of a single -10V power supply, and are available in a 28 pin dual·in·line plastic package. PIN CONFIGURATION Cl, PCo PC1 Clo VGG RESET PAO·PA3 PCO,PC3 POO·P03 PIN NAMES Input Port A Input/Output Port C Input/Output Port 0 II PEO·PE3 Output Port E PC2 iNT PFO·PF3 Output Port F PC3 PA3 PGIL Output Port G POO PA2 ClO·Cl, External Clock Signals PO, PAl INT Interrupt Input P02 PAO RESET Reset P03 PGO VGG Power Suppl y Negative PEO PF3 VSS Power Supply Poslti ve PEl PF2 TEST Factory Test PI n (Connect to VSS) PE2 PF, PE3 PFo Vss TEST ABSOLUTE MAXIMUM Operating Temperature . . . . . . . . . . . . . . . , . . . . . . . . . . . . . . . . -10°C to +70°C RATINGS* Storage Temperature ..... 000000000000000000000000.0 o-40°Cto +125°C Supply Voltage, VGG .. 0 0 0 0 • 0 0 •••• 0 -15 to +0.3V •••••••••••••••••••• Input Voltages (Port A, INT, RESET) . . . . . . . . . . . . . . . . . . . . . . . .-15 to +0.3V (Ports C, D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .-40 to +0.3V Output Voltages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .-40 to +O.3V Output Current (Ports C, 0, each bit) .. do . 0 •••••••• 0 •-4 mA 0 0 0 •••••••• (Ports E, F, G, each bit) . 0 •• 0 -15 mA ••••••••••••••• 0 0 ••• (Total, all ports) . 0 • 0 ••••• 0 ••••••••-60 mA 0 •••••••• 0 0 *COMMENT. Stress above those I,~sted under "Absolute Ma~lmum Ratmgs" may cause permanent damage to the deVice. This IS a stress rating only and functional operation of the deVice at these or any other conditions above those indicated In the operational sections of th IS specification IS not Implied. Exposure to absolute maximum rating conditions for extended periods may affect deVice reliability. 3-17 IlPD550/554 DC CHARACTERISTICS LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Input Voltalll High VIH 0 -2.0 V Pons A, C, D, !lIlT; RESET VIL, -4.3 VGG V Pons A, INT, RESET Input Voltage low VIL~ -4.3 -35 V Po"sC,D Clock Voltllfll High VI/lH 0 -0.8 V eLO Input, Ext.r~1 Clock Clock Voltllfll Low V,.L -8.0 VGG V CLQ Input, Extarnsl Clock Ports A, C, D, iiii'\", RESET Input L.eakage Current High ILIH +10 ~A VI--IV Pons A, C, D, iNT, RESET ILILI -10 "A Input Leakage Current Low Vt--11V ILIL2 -30 ~A Ports C, D, VI = -35V Clock Input Leakage Current High Ild>H +200 IlA CLQ Input, V,.H .OV CJock Input leakage Current Low Ild>L -200 "A CLQ Input, V,.L --IIV VOH, -1.0 V Pons C, D, IOH • -2 mA Output Voltage HIgh VOH2 -2.5 V Pons E, F, G, IOH =-IOmA Pons C through G, ILOL, -10 "A Vo --l1V Output Leakage Current low Port. C through G. ILOL2 -30 ~A Vo --35V SupplV Current IGG -20 -40 mA Ta· 25"C LIMITS CAPACITANCE TEST PARAMETER SYMBOL MIN TVP MAX UNIT CONDITIONS Input Capacitance CI 15 pF Output C.pacitance Co 15 pF f-I MHz Input/Output Capacitance CIO 15 pF AC CHARACTERISTICS LIMITS TEST PARAMETER SYMBOL MIN TVP MAX UNIT CONDITIONS Oscillator Froquencv f 150 440 KHz RI_ Ind FIll Tim.. tr'f 0 0.3 ~. Clock Puill Width High 0.5 5.6 ~. Extamal Clock "WH Clock Pul.. Width Low "WL 0.5 6.6 ,.. !4-----1/f-------.j CLOCK WAVEFORM Vss V."L vGG Package Outlines For Informatlon,._ Package Outline Section 7. PlastiC, ",PD550C/554C Plastic Shrinkdip, ",PD550CT Plastic Shrinkdip, ",PD554CT 550/654DS-I-82-CA T 3-18 NEe IlPD550L IlPD554L 4-BIT SINGLE CHIP MICROCOMPUTERS WITH VACUUM FLUORESCENT DISPLAY DRIVE CAPABILITY OESCR IPTION The !lPD550L and the !lPD554L are pin-compatlble 4·bit single chip microcomputers which have the same architecture. The only difference between them IS that the !lPD550L contains a 640 x 8·bit ROM, whereas the !lPD554L contains a 1000 x 8·bit ROM. Both devices have a 32 x 4-bit RAM, a testable interrupt Input INT, and a single. level stack. The !lPD550L and the !lPD554L provide 21 I/O lines organized into the 4·blt input port A, the 4-bit I/O ports C and D, the 4·bit output ports E and F, and the l·bit output port G. The 17 I/O ports and output ports are capable of being pulled to -35V in order to drive Vacuum Fluorescent Displays directly. The !lPD550L and the !lPD554L typically execute all 58 instructions of the !lCOMA family instruction set with a 25!ls Instruction cycle time. Both devices are manufactured with a modified PMOS process, allowing use of a single -8V power supply, and are available in a 28,pln PIN CONFIGURATION dual·m·line plastic package. The !lPD550L and the !lPD554L are upward compatible with the !lPD557L. CLl CLo PAQ· PA3 PIN NAMES Input Port A II PCo 2 VGG PCO,PC3 Input/Output Port C PCl 3 POO·P03 Input/Output Port 0 RESET PEO·PE3 Output Port E PC2 4 iiiiT PFO·PF3 Output Port F PC3 5 PA3 PGo Output Port G POo 6 PA2 CLO·CLl External Clock Signals POl 7 !lPD PAl INT Interrupt Input P02 8 550L/ PAO RESET Reset 554L P03 9 PGO VGG Power Suppl y Negative PEO PF3 VSS Power Supply POSltl ve PEl PF2 TEST Factory Test PI n PF, (Connect to VSS) PE2 PE3 PFo VSS TEST ABSOLUTE MAXIMUM Operating Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -10oC to +70°C RATINGS* Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -40°C to +125°C Supply Voltage, VGG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .-15 to +0.3V Input Voltages (Port A, INT, RESET) . . . . . . . . . . . . . . . . . . . . . . . .-15 to +0.3V (Ports C, D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .-40 to +O.3V Output Voltages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .-40 to +O.3V Output Current (Ports C, D, each bit) . . . . . . . . . . . . . . . . . . . . . . . . . . . . -4 mA (Ports E, F, G, each bit) . . . . . . . . . . . . . . . . . . . . . . . . . -15 mA (Total, all ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -60 mA Ta= 25°C 'COMMENT: Stress above those lISted under "Absolute MaXimum Ratings" may cause permanent damage to the deVice. ThiS is a stress rating only and functional operation of the device at these or any other conditions above those Indicated In the operational sections of this specification is not Implied. Exposure to absolute maximum rating conditions for extended pariods may affect device reliability. 3-19 ",PD550L/554L T a'" 10°C to +70"C, VGG '" --8 OV t 10% LIMITS DC CHARACTERISTICS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Input Voltage High VIH 0 -1 6 V Ports A, C, 0, INT, RESET VILl -45 VGG V Ports A, INT, RESET Input Voltage Low VIL2 A5 -35 V Ports C, 0 Clock Voltage High V¢H 0 -06 V CLO Input, External Clock Clock Voltage Low V"L -50 VGG V CLO I nput, External Clock Ports A, C, 0, INT, RESET Input Leakage Current High ILiH +10 "A VI'" ---tV Ports A, C, 0, tNT, RESET I LlL, -10 "A V, = -9V I nput Leakage Current Low III L2 -30 "A Ports C, 0, VI'" --35V Clock I nput Leakage Current High IL¢H +200 "A CLO Input, V¢H - OV Clock Input Leakage Current Low IL¢L -200 "A CLO Input, V¢L '" -9V VOH, -1 0 V Ports C, 0, IOH "" ··2 mA Output Voltage High VOH2 -25 V Ports E, F, G. IOH '" -10 mA Ports C through G, 'LOLl -10 "A Vo = -9V Output Leakage Current Low Ports C through G, ILOL2 -30 "A Vo = -35V Supply Current IGG ~ 12 -24 mA Ta~25°C LIMITS CAPACITANCE TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Input Capacitance C, 15 pF Output CapacitanCe 15 pF f = 1 MHz Co Input/Output Capacitance C,O 15 pF T a ~ -10°C to +70°C, VGG ~ -8.0V ± 10% LIMITS AC CHARACTERISTICS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Oscillator Frequency f 100 180 KH, Rise and Fall Times tptf 0 0.3 80 "' External Clock Clock Pulse Width High t¢WH 2~O "' Clock Pulse Width Low t~WL 8.0 2.0 "' 1------1/f-------.1 CLOCK WAVEFORM Package Outlines For information, see Package Outline Section 7. PlastiC, [J.PD550LC/554LC 550 L/554 LDS-2-82-CA T 3-20 NEe ",PD556B ",COM-4 4-BIT SINGLE CHIP ROM-LESS EVALUATION CHIP DE~CRI PTION The I1PD556B is the ROM-less eva!uatlon chip for the I1COMA 4-bit single chip micro- computer family. The I1PD556B IS used In conjunction with an external 2048 x 8-blt program memory, such as the I1PD2716 UV EPROM, to emulate each of the 14 differ- ent I1COMA single chip microcomputers. The I1PD556B contains a 96 x 4-bit RAM, which Includes six working registers and the Flag register. It has a level-triggered hardware interrupt, a three-level stack, and a pro- grammable 6-bit timer. The I1PD556B executes all 80 instructions of the extended I1COMA family Instruction set. IJ The I1PD556B provides 35 I/O lines organized into the 4-bit input Ports A and B, the 4-bit I/O Ports C and D, the 4-bit output Ports E, F, G, and H, and the 3-bit output Port I. It tYPically executes ItS instructions with a 1Oils instruction cycle time. The I1PD556B IS manufactured with a standard PMOS process, allOWing use of a single -1 OV power supply, and IS available In a 64-pin quad-in-Ilne ceramic package. PIN CONFIGURATION PIN NAMES PAO-PA3 Input Port A PBO-PB3 Input Port B PCO-PC3 I nput/Output Port C PDO-PD3 Input/Output Port D PEO-PE3 Output Port E PFO-PF3 Output Port F PGO-PG3 Output Port G PHO-PH3 Output Port H P10-P12 Output Port I INT Interrupt Input 10-7 Instruction Input PCO-10 Program Counter Output ACC/PC Accumulator/Program Counter Select BREAK Break Input STEP Single Step Input CLO-CL1 External Clock Source RESET Reset VGG Power Supply Negative VSS Power Supply Positive TEST Factory Test Pm (Connect to VSS) 3-21 IlP,D556B BLOCK DIAGR~~ Ace/PC I PA3_0 RAM RAM P·SELECTOR BA EAK AND STEP I ---SR EAK CONTROl_ STEP 96,4 DECODER PB3_0 UPI DOWN PC3_0 COUNT- PD3.0 salT CONTROL AND PH3_0 d-----:-- INT '-----_ _ _ _ _11'"11_ _ _----'+,,'" CL1 CLa Operating Temperature .... . . . . . . . . . . . . . . . . . . . . . . . -10°C to +70°C ABSOLUTE MAXIMUM Storage Temperature. -40°C to +125°C RATlNGS* SupplyVoltage,VGG ..... ................. -15Vto+O.3V All Input Voltages. . . . . . . . . . . . . . . . . . . . ......... -15V to +O.3V All Output Voltages. . . . . . . . . . .. ...... -15V to +O.3V Output Current (total, all ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -4 mA Ta = 25°C 'COMMENT: Stress above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. Th,s is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device raliability. 3-22 IlPD556B DC CHARACTERISTICS Ta '" -looC to +70 0 C, VGG::: -10V ± 10%, VSS ::: OV LIMITS TEST PARAMETER SVMBOL MIN TV. MAX UNIT CONOITIONS Input Hlqh VIH -2,0 V Ports A to 0, '7-0 Voltage BREAK, STEP, fiiJT, RESET, and Ace/PC ~------ Input Low VIL -4,3 VGG V Ports A to 0,17_0 Voltaqe BREAK, STEP, iNi'. RESET, and Ace/PC Clock Hlqh V,.,H -O,S V CLO Input, External Clock Voltage Clock Low V"IL -60 VGG V CLO Input, Extprnal Clock Voltage >10 "A Ports A and B, '7-0 Input Leakaqe 1NT. RESET. BREAK, STEP, Current Hlql1 ILiH ACC/PC, VI --IV 110 "A Ports C and 0, VI" -1V -10 "A Ports A and B, 17.0 Input Leaka(Je INf, RESET, BREAK. STEP, IUL ACC/PC, VI • -IIV Current Low -10 "A Ports C and D. VI IIV Clock Input rL~'IH t2QO "A CLO Input, External Clock, II Leakage High V¢H =" OV Clock Input I L':ll -200 "A CLO Input, External Clock, Leakage Low VL - -IIV VOH1 -10 V Ports C to I, P,O-D Output Hlqh IOH ""-1.0 rnA Voltage VOH2 -2.3 V Ports C to I, PlO.0 IOH IE -3.3 rnA Output Leakage ILOL -30 "A Ports C to I, P 10.0 Current Low VO=-IIV Supply Current IGG -30 -50 mA AC CHARACTERISTICS Ta" -1cfc to +7rf'C, VGG "" -10V ± 10% LIMITS TEST PARAMETER SVMBOL MIN TV. MAX UNIT CONDITIONS Frequency f() 150 440 KH, Clock Rise and Fall Times tr,tf 0 03 Clock Pulse Width High t¢WH 05 56 "' Clock Pulse Width Low t¢WL 05 56 "' Input Setup Time 'IS 5 "' Input Hold Time tlH 0 "' "' BREAK to STEP Interval STEP to RUN Interval STEP Pulse Width tBS tSB tws 200 200 30 ., "' f = 400 KHz, "1" Written f - 400 KHz, "'" Wrttten f - 400 KHz. "1" Written BREAK to Ace Interval tBA 200 "' ACC/PC Pulse Width 30 "' f - 400 KHz, "'" Wrttten f - 400 KHz, "1" Wrttten STEP to Ace Interval twA "' .'"' 200 f 400 KHz, "1" Wrttten PC to STEP Ovarlap tSAl tSA2 5 "' f '" 400 KHz, "1" Wrttten .'.' PC to RUN Interval tAS 0 f 400 KHz, "1" Written tDAPl 15 f - 400 KHz, "1" Written ACCfPC ~ PlO-0 Delay tDAP2 15 f "" 400 KHz, "1" Written CAPACITANCE Ta=25°C LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Input Capacitance CI 15 pf Output Capacitance Co 15 pf f= 1 MHz Input/Output Capacitance CIO 15 pf 3-23 ,..PD5568 CLOCK WAVEFORM ____x= (PC) TIMING WAVEFORMS 17-0 __'_f="] BREAK STEP _ _ _ -+__________J ACC/PC P10-0 (PCln Package Outlines For information, see Package Outline Section 7. Ceramic Quil, fl-PD556B 3-24 556BDS-1-82-CAT NEe !-,PD7500 SERIES CMOS 4·BIT SINGLE CHIP MICROCOMPUTER FAMILY Description D Powerful Instruction Set The IJPD7500 Series CMOS 4-Bit Single Chip - From 58 to 110 instructions, including: Microcomputer Family is a broad product line of 16 - Direct/indirect addressing indi~idu~1 devices designed to fulfill a wide variety of - Table Look-up applications. The advanced 4th generation architecture - RAM Stack Push/Pop includes all of the functional blocks necessary for a - Single byte subroutine calls single chip controller, including an ALU, Accumulator, - RAM and 110 port single bit manipulation Program Memory (ROM), Data Memory (RAM), four - Accumulator and 110 port Logical operations General Purpose Registers, Stack Pointer, Program - 10 IJS Instruction Cycle Time, typically Status Word (PSW), 8-Bit Timer/Event Counter, D Extensive General Purpose 110 Capability Interrupt Controller, Display Controller/Driver, and 8-Bit - One 4-Bit Input Port Serial Interface. The instruction set maximizes the ~fficient utilization of fixed Program Memory space, and Includes a variety of addressing, Table-Look-up, - Two 4-Bit latched tri-state Output Ports - Five 4-Bit inputllatched tri-state Output Ports - Easily expandable with IJPD82C43 CMOS 110 3 Logical, Single Bit Manipulation, vectored jump, and Expander Condition Skip Instructions. - 8-Bit Parallel 110 capability The IJ PD7500 Series includes four different devices, D Hardware Logic Blocks - Reduce Software the ~PD7501, ~PD7502, ~PD7503, and IJPD7514, capa- Requirements ble of directly driving Liquid Crystal Displays with up to - Operation completely transparent to instruction 16 7-segment digits. The IJPD7508A, IJPD7528, execution IJPD7517, ~PD7538, IJPD7537, and IJPD7519 can direct- - 8-Bit Timer/Event Counter ly drive up to 35V Vacuum Fluorescent Displays with up - Binary-up counter generates INTT at to 8 7-segment digits, and the IJPD7519 can directly coincidence drive up to 35V Vacuum Fluorescent Displays with up to - Accurate Crystal Clock or External Event 16 7-segment digits. operation possible - Vectored, Prioritized Interrupt Controller All 16 devices are manufactured with a Silicon gate CMOS process, consuming only 900IJA max at 5V, and - Three external interrupts (INTO, INT1, INT2) only 400IJA max at 3V. The HALT and STOP power- - Two internal interrupts (INTT, INTS) down instructions can significantly reduce power - Display ControlierlDriver consumption even further. - Complete Direct Drive and Control of Multi- plexed LCD or Vacuum Fluorescent Display The flexibility and the wide variety of IJPD7500 Series Display Data automatically multiplexed from devices available make the IJPD7500 series ideally RAM to dedicated segment/backplane/digit suited for a wide range of battery-powered, solar- driver lines powered, and portable products, such as telecommu- - 8-Bit Serial Interface nication devices, hand-held instruments and meters, 3-line 110 configuration generates INTS upon automotive products, industrial controls, energy transmission of eighth bit management systems, medical instruments, portable - Ideal for distributed intelligence systems or terminals, portable measuring devices, appliances, and communication with peripheral devices consumer products. - Complete operation possible in HALT and STOP power-down modes Features D Built-in System Clock Generator D Built-in Schmidt-Trigger RESET Circuitry D Advanced 4th Generation Architecture D Single Power Supply, Variable from 2.7V to 5.5V D Choice of 8-Bit Program Memory (ROM) size: D Low Power Consumption Silicon Gate CMOS - 1K, 2K, 4K internal, or 8K external bytes Technology D Choice of 4-Bit Data Memory (RAM) size: - 900 IJA max at 5V, 400 IJA max at 3V - 64,96, 128,208,224, or 256 internal nibbles - HALT, STOP Power-down instructions reduce D RAM Stack power consumption to 20 IJA max at 5V, D Four General Purpose Registers: 0, E, H, and L 1DIJA at 3V (Stop mode) - Can address Data Memory and 110 ports D Extended - 40°C to + 85°C Temperature Range - Can be stored to or retrieved from Stack Available D Choice of 28-pin, 40-pin, 42-pin dual-in-linepack- ages, or 52-pin, 64-pin, or 80-pin flat plastic packages. Rev/1 3-25 1: Feature. Internal ROM (a-blt words) 7500 7501 7502 7503 7514 7506 7507 75075 7508 750BA 7519 7527 7528 7537 7538 1K 2K 4K 4K 1K 2K 2K 4K 4K 4K 2K 4K 2K 4K "--aen ~ Expandable to 8K 0 0 RAM 256x4 96x4 128x4 224x4 256x4 64x4 128x4 128x4 224x4 208x4 256x4 160x4160x4160x4160x4 U) m - 110 Unes 32 24 23 23 67 22 32 20 32 32 28 35 35 35 35 8-BIt TlmerlEvent :II Counter • • • • • • • • • • • • • • • m U) 8-BH Serial Interface • • • • • • • • • • • • • • Registers Outside RAM 4x4 2x4 4x4 4x4 2x4 4x4 4x4 4x4 4x4 4x4 2x4 2x4 2x4 2x4 Instructions 110 63 92 92 92 58 92 91 92 92 92 66 66 67 67. Min Cycle Time (/ls) 6.67 6.67 6.67 6.67 5 6.67 6.67 6.67 6.67 6.67 6.67 4 4 4 4 Interrupts 5 4 4 4 4 2 4 4 4 4 4 3 3 3 3 Stack Levels RAM RAM RAM RAM RAM RAM RAM RAM RAM RAM RAM RAM RAM RAM RAM Display VFD VFD VFD VFD VFD Controllerl LCD LCD LCD LCD drive VFD DRIVE DRIVE DRIVE DRIVE Driver only ONLY ONLY ONLY ONLY c.> 14-bit I Analog 1/0 I\) D/A en Current Consumption (max) Normal Operation ... 900 IlA at 5V ± 10%; 4001lA at 3V ± 10% Stop Mode .... 20 IlA at 5V ± 10%; 101lA at 3V ± 10% Operating -10"C -40°C Temperature Range to .. to +70"C +85°C Package. 2a-pln DIP • • 40-pln DIP • • • 52-!!ln Flat • • • 64-l!ln Flat • • • 64-pln QUIL • • 42-pln DIP • • • • 80-pln Flat • IAPD7500 SERIES Instruction Set Instruction Set Symbol Definitions The ",P07500 Series Instruction Set consists of 110 The following abbreviations are used in the description powerful instructions designed to take full advantage of of the I-IP07500 Series Instruction sets: the advanced ",P07500 architecture in your application. Symbol It is divided into two subsets, according to the A Accumulator complexity of the device. An Bit "n" of Accumulator Instruction Set "A" is available for the higher- addr Address performance ",P07500 Series devices having either a bit Operand specifying one bit of a nibble Bn Bit "n" of two-bit operand 2K x 8-bit or a 4K x 8-bit Program Memory. It can be Bl Bel Bit Specified used with the ",P07500, ",P07502, ",P07503, ",P07507, -0 -0 BiiO(i:SB) ",P07507S, ",P07508, ",P07508A, ",P07519, ",P07514, o 1 Bit 1 1 0 Bit 2 ",P07527, ",P07528, ",P07537, and ",P07538 products. 1 1 Bit 3 (MSB) Bank Bank Flag of PSW (,uPD7500 only) Instruction Set "B" is available for the lower-cost borrow Resulting value Is less than OH ",P07500 Series devices having a 1K x 8-bit Program C Carry Flag Memory. Its instructions are a compatible subset of data Immediate data operand Instruction Set "A," and can be used with the D 0 Register ",P07500, ",P07501, and I-IP07506 products. On Bit "n" of Immediate data operand DE DE Register Pair DL E H ~H=L DL Register Pair E Register H Register ______~H=L~R=e~gl=st~e~rp~a~lr~~_______________________________ 3 IER Interrupt Enable Register IERblt: 0 1 2 3 Interrupt: INTT INTO/S INT1 INT2 IME Interrupt Master Enable F/F INTn Interrupt "n" IRFn Interrupt Request Flag "n" L Register overflow Resulting value Is greater than FH P( ) Parallel Input/Output Pan addressed by the value within the parentheses PC Program Counter PCn Bit "n" of Program Counter PSW Program Status Word PSWblt: 0 1 2 3 Flag: Carry Bank SKO SK 1 rp Register Pair, specified by the 3-blt immediate data operand 02-0, as follows: 02 01 DO rp Additional Action o --0 --0 DL none (Instruction set "A" only) o 0 1 DE none (instruction set "A" only) 1 0 0 HL - decrement L; Skip If L = FH 1 0 1 HL + Increment L; skip if L = OH 11 OHL none S Skip Cycles: 0 when Skip condition does not occur 1 when skip condition does occur SIO Serial 110 Shift Register SIOCR Serial 110 Count Register SP Stack Pointer String String Effect; In a string of similar instructions, only the first encountered Is executed; the remainder of the Instructions In the string are executed as NOP Instructions taddr Operand specifymg ROM Table Data Tn Bit "n" of ROM Table Data TCR Timer Counter Register TMR Timer Modulo Register ( ) The contents of the RAM location addressed by the value within the parentheses --- The contents of the ROM location addressed by the value within the brackets Load. Store, or Transfer fight operand into left operand Exchange the left and fight operands NOT Logical NOT (One's comptement) AND LOGICAL AND .OR LOGICAL OR XOR LOGICAL Exclusive OR Instruction pertains to ~P07500 only 3-27 ~PD7500 SERIES Instruction Set "A" For the flPD7500, flPD7502, flPD7503, flPD7507, flPD7507S, flPD750B, flPD750BA, and flPD7519 devices only Instruction Code Mnemonic Function De.crlptlon Byte. Cycl•• Skip Condition D7 De DS D4 D3 D2 D1 Do HEX Lo.d LADR addr A-(D7-0) Load Accumulator 0 0 1 1 1 0 0 0 38 from directly 07 06 05 D4 D3 D2 01 DO OO-FF addressed RAM LAI data A-03 _0 Load Accumulator 03 02 0, DO 10-1F String with Immediate data LAMrp A-(rp) Load Accumulator 02 Dl DO 40,41 l+S See explanation rp = OL, DE, HL-, HL+, HL from Memory, 50-52 of "rp" in symbol If rp = HL -, skip if borrow possible $klP definitions If rp = HL + , skip if overflow LAMT ROM addr = PC10-6, Load Accumulator 1 5E ("PD7500, "PD7502 0, C, Aa_o and Memory from only) A-[ROM addr)7_4 Table (HL)-[ROM addr)3_0 LAMTL ROM addr = PC11-8, Load Accumulator 3F ~PD7S00. /APD7503, A3_0, (HL)3_0 and Memory from 34 jJPD7507, ",PD7S07S, A-[ROM addr)7_4 Table Long /JPD7S0B, ,uPD7508A, (HL)-[ROM addr)3_0 ,wPD7519, only) LoEI data 0-07_4 Load DE register 0 1 0 1 1 1 4F pair with Immedl~ 07 D6 05 D. 03 02 Dl DO OO~FF E-0 3_0 ate data Lol data D-0 3_0 Load 0 register 1 1 1 0 3E with immediate 03 02 Dl DO 20~2F data LEI data E-D3_0 Load E register 1 1 1 0 3E with immediate 03 02 0, DO OO-OF data LHI data H-03_0 Load H register 1 1 1 0 3E with Immediate 03 02 Dl DO 30~3F data LHLI data H-07~4 Load HL register 0 1 0 0 1 1 1 0 4E String L-D3~O pair with Immedl- D7 D6 05 04 03 02 Dl DO OO-FF ate data LHLT taddr ROM addr = OCOH + D3~O Load HL register D3 D2 Dl DO CO-CF String H-[ROM addr)7_4 pair from ROM L -[ROM addr)3_0 Table LLI data L-03-D Load L register 1 1 1 0 3E with immediate 03 02 Dl DO 10-1F data Store ST (HL)-A Store A to Memory 1 0 57 Tran.f.r TAD O-A Transfer A to 0 3E AA TAE E-A Transfer A to E 3E 8A TAH H-A Transfer A to H 3E BA TAL L-A Transfer A to L 3E 9A TDA A-D Transfer 0 to A 3E AB TEA A-E Transfer E to A 3E 8B THA A-H Transfer H to A 3E BB TLA A-L Transfer L to A 3E 9B Exchang. XAO A-D Exchange A with 0 1 0 4A XAoR addr A-(07_0) Exchange A with 0 1 1 1 0 1 39 directly addressed 07 06 05 04 D3 02 0, DO OO-FF RAM XAE A-E Exchange A with E 4B XAH A-H Exchange A with H 7A XAL A-L E::xchange A with L 7B XAM rp A-(rp) Exchange A with 02 01 DO 44,45 1+5 See explanation rp = DL, DE, HL-, HL+,HL Memory, Possible 54-56 or "rp" in symbol = if rp HL -, skip If borrow Skip definitions if rp = HL +, skip if overflow XHDR addr H-(D7-0) Exchange H with 0 0 1 1 1 0 1 0 3A directly addressed D7 06 D5 D4 D3 D2 01 DO OO-FF RAM XLDR addr L-(07_0) Exchange L with 0 1 1 1 0 1 1 3B directly addressed 07 D6 D5 04 03 D2 Dl DO OO-FF RAM 3-28 ",PD7500 SERIES Instruction Set "A" (Cont.) For the ~PD7500, ~PD7502, ~PD7503, ~PD7507, ~PD7507S, ~PD7508, ~PD7508A, and ~PD7519 devices only In.tructlon Code Mnemonic Function Byt.. Cycl•• Skip Condition D7 De Ds D4 D3 DZ D1 DO HEX ANL A-A AND (HL) AND Accumulator 3F and Memory B2 EXL A-A XOR (HL) Exclusive-Or 7E Accumulator and Memory ORL A-A OR (HL) OR Accumulator 3F and Memory B6 CMA A-NOT A Complement 0 , , Accumulator 7F Accumulator AMBblt (HLlblt-O Reset Memory bit 0 , , Bit Manipulation 0 B, BO 68-68 bIt= B,.O (0·3) 5MBbit (HLlblt-t Set Memory bit B, BO 6C·6F bit= B,.O (0·3) 3-29 ~PD7500 SERIES Instruction Set "A" (Cont.) For the ,..PD7500, ,..PD7502, ,..PD7503, ,..pD7507, ,..PD7507S, ,..PD7508, f'PD7508A, and ,..PD7519 devices only Inatructlon Code Mnemonic Function o.acrlptlon Brt•• ere.•• Sklp- Condition D7 De DS D4 D3 D2 D, Do HEX CALL addr (SP-')-PC7-4 Call subroutine 0 B,.nch 0 , , 0 0'0 Dg Os 30-37 (SP - 2)-PC3_0 07 06 Os 04 03 02 0, DO OO-FF (SP-3)-PSW (SP -4)-PC11_'S SP-SP-4 BANK-O PC11-0 PC'O.o-O,O-O CALT addr (SP -')-PC7-4 Call subroutine Os 04 03 02 0, DO DIl-FF (SP - ')-PC3-0 through ROM Table (SP-3)-PSW (single byte) (SP - 4)-PC11_& ROM addr = OCOH + Os-a BANK-O PC11_'O-OO PC9_7-[ROM addr!7_S PC6_S-00 JAM data PC4_0-[ROM addr!4_0 PC11_S-D3_0 , , , , 3F PC7~4-A 03 02 0, DO 'O-'F PC3_0-(HL) JCP addr PCS-O-Ds-O Os 04 03 02 0, DO SO-BF SP-SP + 4 RTPSW PC11_S-(SP) Return from 43 PSW-(SP+') Subroutine and PC3-0-(SP + 2) restore PSW PC7_4-(SP +3) SP-SP+4 RTS PC11_S-(SP) Return from SB , +S Unconditional BANK-(SP+') Subroutme; then PC3_0-(SP + 2) skip next PC7-4-(SP +3) Instruction SP-(SP+4) Skip unconditionally POPDE E-(SP) Pop DE register St.ck 0 , 3E D-(SP+') pair off Stack 0 0 SF SP-SP+2 POPHL L-(SP) Pop HL register 3E H-(SP+') pair off Stack 9F SP-SP+2 PSHDE (SP-')-D Push DE register 3E (SP-2)-E pair on Stack SE SP-SP-2 PSHHL (SP-')-H Push HL register 3E (SP-2)-L pair on Stack 9E SP-SP-2 TAMSP SP7-4-A Transfer Accumu- 3F SP3_,-(HL)3_' lator and Memory 3' SPO-O to Stack Pomter TSPAM A-SP7_4 Transfer Stack 3F (HL)3_,-SP3_' Pointer to 3S (HL)O-O Accumulator and Memory SKABT bit Skip if Ablt = 1 Skip if Accumulator , , , Condition•• Skip 0 B, BO 74·71 ,+S Abit = 1 = SKAEI data bI1 B,_O(O-S) Skip If A = 03-0 bit true Skip if Accumulator , , , , 3F 2+S A = 03-0 equals Immediate 03 02 0, DO 60-6F data SKAEM Skip if A =(HL) Skip if Accumulator SF ,+S A = (HL) equals Memory , =, SKC SKDEI data SklptfC = 1 Skip If D = 03-0 SkIp If Carry Skip If 0 equals , , , 0 SA 3E 1+S 2+S C o = 03_0 SKEEl data Skip if E = 03-0 Immediate data Skip If E equals , , , 03 02 0, Do 0 60-6F 3E 2+S E = 03-0 SKHEI data Skip 'f H = 03-0 Immediate data Skip .f H equals , , , 03 02 0, DO 0 40-4F 3E 2+S H = 03-0 Immediate data 03 02 0, DO 70-7F 3-30 ",PD7500 SERIES Instruction Set "A" (Cont.) For the I'PD7500, I'PD7502, I'PD7503, I'PD7507, I'PD7507S, I'PD7508, I'PD7508A, and ,.pD7519 devices only In..NOtIon Code Mnemonic Function Deoorlptlon D7 Ds Ds D4 e o n _ S ..... ICont., D! ... Dt Do "U 1Iyt. . CpIH SIdp Condftlon SKLEI data SldpHLmD:J.O 0 0 1 1 1 1 1 0 3E 2+S L = D3.o 0 1 0 1 D3 D2 Dl DO 50.5F SKMBF bit 0 0 0 Bl Bo 1Q.83 I+S IHL)blt • 0 TAMMDD TMR7-4-A Tranlfer 3F TMfI3.o-IHL) Accumulator and 3F Memory to Timer Modulo Raglator TCNTAM A-TCR7-4 Transfer Timer 3F (HL)-TCR3-0 Count Reglat., 10 3B Accumulator and Memory TIMER TCR7·0-il Start Timer 3F IRF~ 32 Int........ Control DI data IME F/F-il II data = 0 Disable Interrupt. 0 0 1 1 1 1 1 1 3F IER3-0-IER3.0 AND NOT Interrupt Maater 1 0 0 0 D3 D2 Dl DO 8O·8F D3.0 II data < > 0 Enable FIF or apeclfled EI data IME F/F-1 If da'a • 0 Enable Interrupt, 1 1 1 1 3F IER:J.O-IER3.0 OR D:J.O Interrupt Mastar D3 D2 Dl DO 80-8F Ildate<>O Enable F/F or specified SKI data Sldp IllRFn AND D3-0 < > 0 Sldp II Interrupt 1 1 1 1 3F 2+S IRFn =- 1 IRFn+-IRFn AND NOT 03-0 Request Fleg I. D3 D2 Dl DO 40.4F true .....lln......c. SIO SIOCR-O Start $orlalllO 0 0 1 3F IRFO/S-O Operation 0 0 1 33 TAMSIO SI07-4-A Transfer Accumu- 3F SI03.o-(HL) lator and Memory 3E 1051 Shift Register TSIOAM A-SI07-4 Transfer 51 Shift 3F (HL)-SI03·0 Reglater to Accumu- 3A lator and Memory ........11/0 ANPdata P(P3-0)-P(P3-0) ANO 03-0 AND output port 0 1 0 0 1 1 0 0 4C latch with 03 02 01 00 P3 P2 PI Po Oo.FF Immediate data IP port A-P(P:J.O) Input from port. 1 1 1 1 3F Immediate add..... P3 pz PI Po co.cF IPI (axcept A-P(I) Input from Pon 1 0 0 71 .P075078) IP54 A-P(5) Input Byte trom 3F (HL)-P(4) Porta 5 and 4 38 IPL A-P(l) Input from Port 0 70 specifled by L OPport P(P3-0)-A Output to port. 1 1 1 1 3F Immediate addreu P3 P2 PI Po ED-EF OP3 P(3)-A Output to Port 3 0 0 73 OP54 P(5)-A Output Byte to 3F P(4)-(Hl) Porta 5 and 4 3C OPl P(l)-A Output \0 port 72 apoclflod by l ORP data P(P3.o)-(P:J.O) OR 03.0 OR output port 0 1 0 0 1 1 0 1 4D latch with D3 02 Dl Do P3 P2 PI Po Oo.FF :~~:=P--------------------------------~::~t~:~~;=~=O=I:~~~O-d~.--~--~---7--~--~--~--~--~--~:=~~--~~----~-------------- 37 3-31 ",PD7500 SERIES Instruction Set "B" For the IlPD7500, IlPD7501, and IlPD7506 devices only Instruction Code Mnemonic Function D ••crlptlon art.. eVel•• Skip Condition D7 De D5 D4 D3 D2 D, DO HEX LADR addr A-(D6-0) Load Accumulator Load 0 , , , 0 0 0 38 from directly D6 D5 04 03 D2 D, DO Oo-SF addressed RAM LAI data A-D3-0 Load Accumulator 03 02 0, DO 'O-'F Strmg with immediate data LAMrp A-(rp) Load Accumulator 0, DO 50·52 1 +S See explanation rp = HL-, HL+, Hl from Memory, of "rp" In symbol If rp = HL -, skip If borrow possible skip definitions If rp = Hl + , skip If overflow LAMT ROM addr = PC10-6, 5E 0, C, A3-0 LHLI data Load HL register 04 03 02 0, DO CO-OF String pair with immedi- ate data 5T (HL)-A Store A to Memory Stor. , " , S7 STU data (HL)-D3-0 Store Immediate 03 02 0, DO 40-4F l-L + 1 data and Increment L XADR addr A-(D6-Q) Exchange A with Exch.nge 0 , , , 0 0 , 39 directly addressed 06 DS 04 03 02 0, DO DO-SF RAM XAH XAL A-H A-L Exchange A with H Exchange A with L , 7A 78 XAMrp A-(rp) Exchange A with 0, DO 54-56 1+5 See explanation rp = HL-,HL+,HL Memory, Possible or "rp" in symbol If rp= HL -, skip If borrow Skip deflnttions = XHDR addr If rp HL +, skip If overflow H-(06-0) Exchange H with 0 , , , 0 , 0 3A directly addressed 06 D5 04 D3 D2 0, DO 00-5F XLDR addr L-(D6_0) RAM Exchange L with 0 , , , 0 , , 38 directly addressed 06 D5 04 D3 02 0, DO 0O-5F RAM AC5C A, C-A±(HL)+C Add with carry; , , Altlthmetlc 7C 1+5 Carry = 1 skip if carry skip If carry AISC data A-A + D3-o Add immechate; 03 02 0, DO OO-OF '+5 Overflow skip If overflow skip it overflow A5C A-A + (HL) Add memory; skip 7C 1+5 Carry = 1 skip If overflow if overflow Loglca. ANL A-A AND (HL) AND Accumulator 0 3F and Memory 0 82 EXL A-A XOR (HL) Exclusive-Or 7E Accumulator and Memory ORL A-A OR (HL) OR Accumulator 3F and Memory 86 CMA A-NOT A Complement 0 , , Accumulator 7F Accumulator RAR C-AO Rotate 3F AO-A, Accumulator fight 83 A1-A2 through Carry A2-A3 A3-C(old) , , , RC C-O Reset Carry , Program Statu. Word 0 78 5C C-' Set Carry 79 3-32 JAPD7500 SERIES Instruction Set "B" (Cont.) For the ~PD7500, ~PD7501, and ~PD7506 devices only Instruction Code Mnemonic Function D ••crlptlon Byte. C,cl •• Skip Condition D. D8 DS D4D3 D2 D, Do HEX DDRS addr (06.0)-(06.0) - , 0 , , , , Increment and Decr•••nt Decrement directly 0 0 0 3C 2.S (06.0) = FH skip II (06.0) =FH addressed RAM; 0 06 05 04 03 02 0, Do OO·SF skip If borrow OLS L-L - , Decrement L; skip 56 '.S L = FH IDRS addr skip If L = FH (06.0)-(06.0) • , I'borrow Increment directly 0 , , , , 0 , 3D 2.S (06.0) =OH skip II (06.0) OH= addressed; skip If 06 05 04 03 02 0, DO OO·SF overflow ILS L--L + 1 skip If L = OH Increment L; skip If 59 '.S L =OH overflow RMBblt (HL)blt-O Reset Memory bit 0 , , Bit Manipulation 0 B, BO 68·6B bit = B,.O (0·3) 5MBblt (HL)b~-' Set Memory bit B, BO 6C·6F bit = B,.O (0·3) CALL addr (SP-,)-PC7.4 Call subroutine 0 Branch 0 , , 0 0'0 D9 D6 30w37 (SP - 2)-PC3.0 07 06 05 04 03 02 0, DO OCJ.FF II (SP-3)-PSW (SP-4)-PC'O·8 SP-SP-4 BANK-O PC'O.O-O'CJ.O CAL addr (SP -')-PC7.4 Call.hort to 04 03 D2 D, DO 'ECJ.FF (SP - 2)-PC3.0 CAL address (SP-3)-PSW subrountlne (SP-4)-PC,O.a BANK-O PC,O.O- JAM data 001D40300002D,DO PC, 0.8-02.0 Vectored Jump on , , , 3F PC7·4-A Accumulator and 02 D, DO '0·17 PC3·0-(HL) Memory JCP addr PC5·0-05·0 05 04 03 02 0, DO 80·BF RT PC'O·6-(SP) Return from 53 BANK-(SP.') Subroutine PC3.0-(SP.2) PC7·4-(SP.3) SP-SP.4 RTS PC'O.a-(SP) Return from 5B ,.S Unconditional BANK-(SP.') Subroutine; then PC3.o-(SP.2) skip next PC7.4-(SP.3) Instruction SP-SP • 4 Skip unconditionally TAMSP SP7·4-A SKABT b~ Skip II Ablt = , Skip If Accumulator B, BO 74-77 ,.S Ab~ =, SKAEI data bit = B'.0(0·3) Skip II A = 03.0 bit true Skip If Accumulator , , , , 3F 2.S A = 03-0 equals Immediate 03 02 0, DO GO·6F data SKAEM Skip II A = (HL) Skip If Accumulator SF ,.S A =(HL) equals Memory =, SKC SKLEI data SklpllC=' = Skip II L 03.0 Skip If Carry Skip If L equals , , , 0 SA 3E '.S 2.S C L = D3-0 Immediate data 03 02 0, DO SO·SF SKMBF bit Skip If Memory B, BO 60·63 '.S (HL)blt =0 bit false 3-33 J-lPD7500 SERIES Instruction Set "a" (Cont.) For the ~PD7500, ~PD7501, and ~PD7506 devices only Instruction Code Mnemonic Function Description By' •• Cycl.s Skip Condition D7 D6 DS D4 D. D2 D, DO HEX Tlmer/Event ~ount.r TAMMOD TMR7_4-A Transfer 0 0 1 3F TMR3_0-(HL) Accumulator and 3F Memory to Timer Modulo Register TCNTAM A-TCR7_4 Transfer Timer 3F (except J.jPD7506) (HL)-TCR3_0 Count Register to 3B Accumulator and Memory TIMER TeR7_0-a Clear Timer 3F IRFT+-O Counter Register 32 Interrupts SKI data Skip .f 1RFn AND 03-0 < > 0 Skip If Interrupt 0 1 1 1 1 3F 2+S 1RFn = 1 IRFn-IRFn AND NOT 03-0 Request Flag is true 0 02 01 DO 40-41 Serial Interface SID SIDCR-O Start Senal 110 0 0 1 3F (except J,lPD7S06) IRFOtS-O Operation 0 0 1 33 TAMSID SI07_4-A Transfer Accumu- 3F (except IlPD7506) SI03_0-(HL) lator and Memory 3E to SIO Shift Register TSIOAM A-SID7_4 Transfer 510 Shift 3F (except /.lP07506) HL-SI03_0 Register to 3A Accumulator and Memory Par.llell/O IP port A-P(P3_0) Input from port, 0 1 1 1 1 1_ 3F Immediate address 1 0 P3 P2 PI Po CO-CF IPI A-(I) Input from Port 1 0 71 IP54 A-P(5) Input Byte from 3F (HL)-P(4) Ports 5 and 4 38 IPL A-P(L) Input from Port 70 specified by L OPport P(P3-0)-A Output to port, 1 1 1 1 3F Immediate address P3 P2 PI Po EO-EF OP3 P(3)-A Output to Port 3 0 73 (except JAPD7506) OP54 STOP Enter STOP Mode 3F 37 Development Tools I-IPD7501, I-IPD7502, or I-IPD7503 for demonstrating your For software development, editing, debugging, and final system design_ The SE-7508 System Emulation assembly into object code, the NOS Development Board will emulate complete functionality of the System, designed and manufactured by NEC I-IPD7506,I-IPD7507,I-IPD7507S,I-IPD7508,orI-lPD7508A Electronics U_S.A., Inc_, is available_ Additionally, for for demonstrating your final system design_ All of these systems supporting either the ISIS-II (®Intel Corp_), boards take advantage of the capabilities of the CP/M (® Digital Research Corp_) operating systems, or I-IPD7500 Rom-less evaluation chip to perform their Fortran IV ANSI 1966 V3_9, the ASM75 Cross- tasks_ Assembler is available_ Complete operation details on any I-IPD7500 Series Once software development is complete, the code can CMOS 4-Bit Microcomputer can be found in the be completely evaluated and debugged with hardware I-IPD7500 Series CMOS 4-Bit Microcomputer Technical by the Evakit-7500 Evaluation Board_ Available options Manual. include the Evakit-7500-LCD LCD driver board (for the I-IPD7501, I-IPD7502, and I-IPD7503), Evakit-7500-VFD Vacuum Fluorescent Display driver board (for the I-IPD7508A and I-IPD7519), and the Evakit-7500-RTT Real Time Tracer. The SE-7502 System Emulation Board will emulate complete functionality of the 7500DS-REV1-7-83-TRIUM-CA T 3-34 NEe IJPD7501 CMOS 4·BIT SINGLE CHIP MICROCOMPUTER WITH LCD CONTROLLER/DRIVER Description Pin Identification The ",PD7501 is a CMOS 4-bit single chip microcom- Pin Function puter which has the ",PD750x architecture. No. S,mbol The ",PD7501 contains a 1024 x 8-bit ROM, and a 96 x NC No connection. 4-bit RAM. 2-4,64 P33·P30 4-blt latched trl-state output Port 3 (active high). 5 P03/S1 4-blt Input Port Olser!al 1/0 Interface (active high). The ",PD7501 contains two 4-bit general purpose P02/S0 This port can be configured either 8S a parallel Input port, registers located outside RAM. The subroutine stack is POl/SCi< or 8S the 8-blt s8rl81 1/0 Interface, under control of the implemented in RAM for greater nesting depth and flex- s.rlal mode select register. The Serial Input SI (active 55 POo'lNTl ibility, providing such operations as the pushing and ~)(a:I~:II~:~P~~e:~~~~~~~~~:~jz~;: ~::a~~=~~f~:~Ck EJ comprise the a·bit serial If 0 Interface. Line POO Is always popping of register values. The ",PD7501 typically exe- shared with edernal Interrupt INT l' cutes 63 instructions of the ",PD7500 series "8" 8-11 PIIa·P60 4-blt Input/latched trl-state output Port 6 (active high). instruction set with a 10",s instruction cycle time. Individual lines can be configured either a8 inputs or as ' outputs under control of the Port 6 mode select register. The ",PD7501 has two external and two internal edge- 12·15 P53·P50 4-bit input/latched tri-state output Port 5 (active high). Can triggered testable interrupts. It also contains an 8-bit also perform 8-bit parallel 110 in conjunction with Port 4. 16·19 P43·P40 4-blt inputllatched tri-state output Port 4 (active high). Can timer/event counter and an 8-bit serial interface to help also perform 8-bit parallel 110 In conjunction with Port 5. reduce software requirements. The on-board LCD con- 20.21 X2. Xl Crystal clock/external event input Port X (active high). A crystal oscillator circuit Is connected to input Xl and out- troller/driver supervises all of the timing required by the put X2 for crystal clock operation. Alternatively. external 24 Port S segment drivers and the 4 Port COM back- event pulses are connected to Input X1 while output X2 Is left open for external event counting. plane drivers, for either a 12-digit 7-segment quadri- 22 Ground. VSS plexed LCD, or an 8-digit 7-segment triplexed LCD. 23-25 VlCD3' VlCD2' LCD bias voltage supply inputs to LCD voltage controller. Apply appropriate voltages from a voltage ladder con- The ",PD7501 provides 24 110 lines organized into the VlCDl nected across VOD' 4-bit input/serial interface Port 0, the 4-bit input Port 1, 26.58 VDD Power supply positive. Apply single voltage ranging from the 4-bit output Port 3, and the 4-bit I/O Ports 4, 5, and 2.7V to 5.5V for proper operation. 27-30 COM3-COMO lCO backplane driver outputs. 6. It is manufactured with a low power consumption 31·54 LCD segment driver outputs. 523.5 0 CMOS process, allowing the use of a single power sup- 56 RESET RESET Input (active high). RIC circuit or pulse Initializes ply between 2.7V and 5.5V. Current consumption is "PD7501 after power-uj:t. 57.59 Cl 1• Cl2 System clock Input (active high). Connect 82kQ resistor less than 900",A maximum, and can be lowered much across Cl l and CL2. and connect 33pF capacitor from further in the HALT and STOP power-down modes. The Cll to VSS' Alternatively, an external clock source may be connected to Cll. whereas Cl2 Is left open. ",PD7501 is available in a space-saving 64-pin flat 60·63 4-blt Input Port 1 (active high). Line Pl0 18 also shared P1 3•P1 0 plastic package. (PIOIINTOJ with external interrupt INTO. The ",PD7501 is upward compatible with the ",PD7502 and the ",PD7503. Pin Configuration Absolute Maximum Ratings· Ta = 25·C Operating Temperature -10·Cto +70·C Storage Temperature -65·Cto + l50·C s, s" Power Supply Voltage, VOO -O.3Vto +7.0V s, Sn So COMO All Input and Output Voltages -O.3VtoVoO +O.3V COMl COM2 Output-Current (Total. All Output Ports) IOH'" -20mA cc, Voo cc, o ",PD7501 0 COM3 Voo 'Comment: Stress above those listed under "Absolute IOL = 30mA '" Maximum Ratings" may cause permanent damage to '" the device. This is a stress rating only and functional '" P101 1NTO " operation of the device at these or any other conditions '" " above those indicated in the operational sections of this specification is not implied. Exposure to absolute max- imum rating conditions for extended periods may affect device reliability. Rev/1 3-35 ",PD7501 Block Diagram P01/SCK P03/S1 P02/S0 PO()JINTI INTO/PIO IJL-....,..---' PIO/INTO H(') L(') Program Memory Stack Polnto, (7) 1024 X 8-BIt ROM (.;07501) P40·P43 Instruction Decoder Data Memory 98 x 4.illt RAM (p!'07501) P50·P53 P60·P63 System Clock Standby Control Generator CLI CL2 RESET Voo VSS VLCOI' So-S23 COMO·COM3 VLC02' VLC03 3-36 DC Characteristics ",PD7501 T. = - 10·C to + 70·C, VDD = 2.7Vto 5.5V P.r.meter I,mllol VIH! ..In 0.7VOD &.Imlt. 1)p VDO .... Unit T."'_...... Alllniliuts Other thin eL1' X1 Input VOIlogo High VIH2 VOD-0.5 V CL1,X1 VDO VIHOR 0.9VDO DR V°DoR+ 0 . 2 RESET I DatIl Retention Mode VILI 0 03VOD Allinputa Other than Cl1. X1 Input Voltage Low V VILa 0.5 CL1' XI ILIHI All Inpula Other than Cl1' X1 VI = VOO Input Leakage Current High ,.A ILlH2 10 el1' X1 ILiLl -3 All Inputa Other thlln Cl1. X1 VI = OV Input Leakage Current Low ,.A ILI~2 -10 CL1,X1 VOD - 1.0 VDD = 5V ± 10'lll,IOH = -1.0 mA Output Vottage High VOH V VDD - 0.5 VDD = Z.7V 10 5.6V, IOH = -100,.A 0.4 VDO • 5V ± 10'111, IOL = 1.8 mA Output Yoltage Low VOL V 0.5 VOO. 2.7V to S.SV. IOL • 400 jAA Output Leakage Current High ILOH ,.A Vo c YOO Output Le.kage Current Low ILO L -3 ,.A VO. OV VDD = 5V ± 10'M1 RCOM COMO to COM3' 2.7V" VLCD" VOD VDD = 2.7V to S.SY Output Impedance kg ZO VOO = 5V ± 10'111 RS ZO So 10 SZ3' 2.7V" VLCD" VOO VOD = 2.7V 10 5.5 Supply Voltaga VOO OR Z.O V Dati Retention Mode 300 90 VDO = 5V :t 10% 1001 Normal Operation 150 400 VDO = 3V ± 10'111 Supply Current ZO VOO = BY :t 10% 100Z .A Stop Mode, XI • OV 0.5 10 VOD ;;: 3V :t 10% IODOR 0.4 10 Data Ret.ntlan Mode V0DoR = Z.OV AC Characteristics T. = -10·Cto +70·C, VDD =2.7Vto 5.5V P.r.....t.r .,......0. "In lZ0 &.Imlt_ 200 .... 210 Unit T_t Conditions R=IZkIl±Z'III Voo • 5V t 10% CL1,CL2 C=33pF±5% ICC 80 100 130 RIC Clock R =- 160 kQ ± 2% VOO .. 3V ± 10% Sytttem Clock Oscillation Frequency 60 180 KHz C=33pF±S'III Voo = 2.7V to 5.SV 10 zoo 300 VOO = 5V ± 10'111 IC 10 135 Voo &' 2.7V to 5.5V System Clock AI.. and Fall Tim•• O.Z .- CL1' External Clock . teR,ICF 1.5 50 Voo =- SV :I: 1'* System Clock Pulse Width ICH,ICL CL1. Extemal Clock 3.5 50 VOO : I 2.7V to 5.5V 'XX 26 3Z 50 Counter Clock Oscillation Frequency 0 300 KHz VOD = 5V ± 10'111 .. 'X X1. Extemal Pul.. Input 13. VOO = 2.7V to 5.5V Counter Clock Rile and Fan Times IXR,IXF Q.Z X1' External Pulse Input Counter Clock Pulee Width tXH'txL 1.5 3.5 .s X1. Extemal Pulse Input VOO = 5V ± 10% VOO = 2.7V to 5.5V 4.0 Voo = 5V t 10% f i l s an Input lreK Cycle Time IKCY 7.0 8.7 .1 SCi( II an output VOO = Z.7V 10 5.5V Voo := 5V t 10% 14.0 VOO = Z.7V 10 5.5V .. 1.1 Voo :::I 5V :t 10% §CR' 18 an Input 3.3 VOO • 2.7v to 5.5V 1ei(PulooWldlh IKH,IKL 3.0 VOO = 5V ± 10% JeT{ Is an output Q.5 VOO = 2.7V to 5.5V SI Setup Time to fit ISIK 300 ns SI Hold Time attar SCRt IKSI 450 ns 850 VOO = 5V ± 10'M1 SO Oelay Time after iCK~ IKSO n. INTO Pul .. Width IIOH,IIOL 10 1200 ... VOO = 2.7V 10 •. 6V INTI Pu", Wldlh RESET Pulse Width RESET Setup Time 111H,111L IRSH,IRSL ISRS 2/,+ 10 .. no RESET Hold Time IHRS no 3-37 J.tPD7501 Capacitance T. = 25°C, VDD = OV &./mit. P .....eter SYMbol Min Typ Max Unit Input Capacitance C, 15 pF f = 1 MHz O~put Capacitance Co 15 pF Unmeasured pins Input/Output Cap.cHance CI/O 15 pF returned to VSS Timing Waveforms Clocks CL' __________ ' 'il 'CL ll1C "'r'CH :\ -- V,H -- VIL .~~ l11C ~ 'XL x1-------------------- 'XRFIXH -- V,H --V,L Serlallnterface 'KCY 'KL J~'KH~ _VIH "\ --VIL t--'SIK- j--'KSI- Valid -- V,H SI Input Data --VIL SO-----------------------------=='---------------V-.,-id-O-U-'p-u-'-o-m-.------------~Xc---------------- i--'KSO V,H --X --VIL Extern~~:~,-t-e-"-U-p-t-s-------------~ _________'_'O_L__- -_-_-_-_-_-_ --- V / I XI X2 I fD~Rl ~ ·0- U> 20 ,,/ R = 160kQ U> / c1 rr Xtal [J C2 R1 = 330kQ II Cl = 20pF 10 C2 = 30pF Xtel = 32.768KHz 't-[ L Supply Voltage VOO (V) Supply Vonag. VOO (V) Supply Current Supply Current vs vs System Clock Oscillation Frequency System Clock Oscillation Frequency (Note (j)) (Note (j)) I cr;:r~1 Voo = 5.0V 250 250 Voo = 3.0V c = 39pF 200 I c = 27pF 1c f} ~ a· u • 150 100 ~~------4------4------~-----4-l · 0- U> 100 C = 100 pF C = 56pF CV 39pF 50~-+------+------r-----f------~ 50 l/:::~~~iF ./ 1-;::::::: 100 200 300 400 500 100 200 300 400 500 Oscillation Frequency f+ (KHz) Oscillation Frequency', (KHz) Not••: Z>Q. Q.zz ~ gu =.r ..r u u P21'PTOUT output strobe pulse (active lOw). Line P21 Is also shared with PTOUT' the tlmer-out F/F signal (active high). 8-11 47~50 P60~P63 4·blt input/latched tristate output Port 6 (active high). Individual lines can be configured either as Inputs or as outputs under control of the Port NC NC 6 mode select register. P03/X, NC 12,13 3,5 CL1, Cl2 System clock Input (active high). Connect l20kQ resistor across Cl1 and CL2' Alternatively, an P2O'PSTB P40 external clock source may be connected to Cll. P21'PTOUT P0o/INTO whereas Cl2 Is 'eft open. P2 2 P53 14 7, 33 Voo Power supply positive. Apply single voltage P23 P52 ranging from 2.7V to 5.5V for proper operation. NC NC 15 RESET RESET Input (active high). RIC circuit or pulse P60 initializes JAPD7507 or ~P07508 after power·up. NC P61 16·19 9-11,16 P10·P13 4·blt Inp~t/tri.tate output Port 1 (active high). P51 Data output to Port 1 Is strobed In synchronlza· P62 P50 tlon with a P201PSTB pulse. P63 P13 20·23 • 16-18,21 4·blt Input/latched tristate output Port 5 (active NC NC high). Can also perform a·blt parallel 110 In con- NC NC junction with Port 4. 24,3 23,41 2·bit Input Port 0 (active high). Line PDO is always shared with external Interrupt INTO (active high). Line P03 Is always shared with crystal clock/external event Input Xl (active high). 28 31 VSS Ground. 1,2,4,6 NC No connection. 12-15, 19. 20, 25·28,32, 35, 37-40, 46, Rev/2~__~5~1,~5=2_______________________________________ 3-47 IAPD7506 Block Dla,ran, P20-P23 P20IPSfi. P211PTOUT H(4) L(4) Program Memory Stack POinter (6) 1024 x 8-aH AOM ' ....D7608} P40-P43 Instruction Decoder Data Memory 84 x 4-BH RAM ' ....D7508} PSO-P53 P6o-P63' System Clock Standby Generator Control RESET t VDD t Vss Absolute Maximum Ratln,.· Capacitance T. = .·C, VDD = ,OV OperatIng TempBrature Storage Temperatura Po_r Supply Voltap, VDD All Input and Output Voltagea Output-Currant (Total, All Output pons) -10·Cto +70·C -65·Cto +150·C -O.3Vto +7.0V -O.3VtoVDD +O.3V IOH = -20mA Par.....~ Input CopK...... Output~""" Sym.... CI Co - ... ""'/to Two 15 15 Unit pF -- T_ f = 1MHz. " Unmauured pin. returned to Vss ' IOL = 32mA Input/Output 15 CopK...... CUO ·Comment: Stress above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute max· imum rating conditions for extended periods may affect device reliability. 3-48 /JPD7506 DC Characteristics T. = -10'C to + 70'C, VDD =2.7V to S.SV Umltl P.r...."., a""bol IIIIn Typ III•• Unit Test Condltlona VIH 0.7 VOD VOO All Inputa Other than ell. Xl Input Voltage High VIH2 VOO-D.S V VDD el1' Xl VIHDA 0.9 VDD DA VDD DA +0.2 RESET. oata Retention Mode VIL 0 0.3 VDD All Inputl Other thin ell' Xl Input Voltage Low V VIL2 0.5 CL I , XI ILiH All Inputa Other than el1• Xl VI = VOD Input Leakage Cur,ent High _A ILlH2 10 CLI' XI ILiL -3 All Inputs Other than ell' X 1 VI = OV Input Leakage Current Low _A ILlL2 -10' CLI' XI VDD - 1.0 VDD = 5V ± 10%,IOH. -1.OmA Dutput VoHogo High VOH V VDD - 0.5 VOO = 2.7Vto 5.5Y, IOH : I -10D,.tA 0.4 VOO = 5V ± 10~. IOl = 1.8mA Output Voltage Low VOL V 0.5 VOO = 2.7V 10 5.5V, IOl = 400",A Output Leakage Current High ILOH .A Vo = VOD Output Leakege Current Low ILO L -3 .A Vo = OV D Supply Voltage VDD DA 2.0 V Data Retention Mod. 200 600 VDD = 5V ± 10%, IDDI Normal Operation 100 300 Voo = 3V ± 10% Supply Current 10 VDD = 5V ± 10% IO~ .A Stop Mode, Xl = OV 0.3 VOD = 3V ± 10% 0.3 Data A••entlon Mode YODOR = 2.0V AC Characteristics T. = -10'Cto +70'C,VDD =2.7VtoS.SV LImit. P.ramet., Symbol IIIIn III•• Unit Teet Condnlon8 120 200 260 A = 82 kll ± 2% VDD = 5V ± 10% Icc 60 100 130 CLI , CL2 A = 160 kQ ± 2% VDD = 3V ± 10% System Clock Oscillation Frequency 60 180 kHz YOO = 2.1V to 5.SY 10 200 300 VDD = 5V ± 10% Ie CL1. External Clock 10 135 VOD = 2.7V 10 5.5V Syetem Clock RI.. and Fall Times 0.2 CL1. External Clock System Clock Pulse Width 'cA,tcF 1.5 50 "" YOO = 5V ± 10% tcH,lCL CL1. External Clock I.x 25 3.5 32 50 50 "" XI, X2 Crystal Oscillator Voo "" 2.7V to 5.SV Counter Clock Oscillation Frequency 300 kHz VDO = 5V ± 10% I. X1' External Pulse Input 135 VDO = 2.7V to 5.5V Counter Clock RI.. and Fall Times IXA,tXF 0.2 ,.. X1' External Pulse Input 1.5 VOO = 5V ± 10% COunter Clock PulM Width tXH,tXL X1, External Pulse Input 3.5 "" VDO = 5V ± 10% VDD = 2.7V to 5.5V Port I Output Sotup TIme to PSTBt IpST ns VOD = 2.7V 10 5.5V 300 350 500 VOD = 5V ± 10% Port 1 Output Hold Time after PSTBt ISTP ns 300 1500 VOO = 2.7V 10 5.5V VOD III 5V ± 10% PSTB Pul.. Width tSWL ns VDO = 2.7V 10 5.5V INTO PulM Width 10 RESET PuIM Width IIOH' IIOL 10 "" 'RSH,tASL "" 3-49 ",PD7506 nmlng Waveforms Clocks ~i 1lfc CL1 _ _ _ _ _ _ __ lCL ICRFICH \ _V'H - VIL xl _ _ _ _ _ _ _ __ ~~ IXL ".I~FIXH ~ - -V'L V'H Output Strobe y. IpST j--ISTP- PSTB VIH \ -VIL ISTL Extern~~::,_te_r_ru_p_t _______ ~~ _ _ _ _II_OL__ -_-_ -_-_ -_-_ -_ -v== ==t'-__________=: : IIOH ResetRESET _ _ _ _ _ _ _ _ _ ~:~~~~~~~~-I-R-SL--_-_-_-_-_-~y---- ---\1;.__________=~:: IRSH Data Retention Mode r---Oala Relenl,on Mode---!J-_ _ _ _ _ __ VOO------,' ~-IS-R-SI ~. ________________ = ~~OOR RESET------' if fL- ~ = ~:rOR 3-50 I-lPD7506 Operating Characteristics Typical, Ta = 25°C Supply Current Supply Current v. v. Supply Voltage (Note CD) Supply Voltage (Note ®) ,------------ -- 200 ~ 20 1/ / R V 1c 100 / V 1c 10 / V 9 I 0 50 ;- V l?: / g C ~ V / I Xl X2 I . 0 ~ i JD~Rl 0. R = 240kQ g. /' '" '" / Xtal 20 ClIO t2 11 R1 = 330kQ 10 C2 == C1 20pF 30pF ~ 1. Xtal = 32.768KHz Supply Voltage VOO (V) Supply Voltage VOO (V) System Clock Oscillation Frequency v. v. System Clock Oscillation Frequency Resistance Supply Voltage 500 IC[{t l 250 'CL~J' ""'- 1< 200 ::I: ~ ~ - R = 82kQ .f 0- J: \~O=5V .g ~ 0- J:c 150 100 c VOO=3V ~ 2 ; 0 :;; A = 160kQ ~ 50 ~ 100 - 50 t... 50 100 200 500 Supply Voltage VOO (V) Resistance R (K ohms) Notes: (1). Only RIC system clock is operating and consuming power. All other internal logic blocks are not active. @ Only crystal oscillator clock is operating and consuming power. All other internal logic blocks are not active. Package Outlines For information, see Package Outline Section 7. Plastic, ,...PD7506C Plastic Miniflat, ,...PD7506G Plastic Shrlnkdip, ,...PD7506CT 3-51 7506DS·REV2·7·83-TRIUM·CAT Notes 3-52 NEe ",PD7507 ",PD750a CMOS 4·BIT SINGLE CHIP MICROCOMPUTERS Description The j.lPD7507 and the j.lPD7508 are pin-compatible CMOS 4-bit single chip microcomputers which have the same j.lPD750x architecture. The j.lPD7507 contains a 2048 x 8-bit ROM, and a 128 x 4-bit RAM. The j.lPD7508 contains a 4096 x 8-bit ROM, NC P4, and a 224 x 4-bit RAM. P'O P40 P" P53 Both the j.lPD7507 and the j.lPD7508 contain four 4-bit P'2 P52 general purpose registers located outside RAM. The sub- P'3 P5, routine stack is implemented in RAM for greater nesting NC ,..PD7507G P50 depth and flexibility, providing such operations as the P3Q ,..PD7508G PS3 pushing and popping of register values. The j.lPD7507 P3, II P62 and the j.lPD5708 typically execute 92 instructions of the P32 P6, j.lPD7500 series "A" instruction set with a 10j.ls instruc- P33 P60 tion cycle time. P70 P03/S' The j.lPD7507 and the j.lPD7508 have two external and P7, P02/S0 two internal edge-triggered hardware vectored interrupts. P72 NC They also contain an 8-bit timer/event counter and an 8-bit serial interface to help reduce software requirements. Both the j.lPD7507 and the j.lPD7508 provide 32 I/O lines organized into the 4-bit input/serial interface Port 0, the 4-bit input Port 2, the 4-bit output Port 3, and the 4-bit I/O Ports 1, 4, 5, 6, and 7. They are manufactured with a low Pin Identification power consumption CMOS process, allowing the use of a . .PIn sa·Pln single power supply between 2.7V and 5.5V. Current con- DIP FI8t !lon..... 'unctlon sumption is less than 900j.tA maximum, and can be '.40 32,34 X2,X' Cryatal cl.ck/....mal .vant Input Port X (.ctlvo high). A crystal oacillator circuit .s connected to lowered much further in the HALT and STOP power-down Input X, and output X2 for crystal clock opera- modes. The j.lPD7507 and the j.lPD7508 are available in tton. Alternatively. external event pulses are con- nected to Input X, while output X2 Is '-ft open either a 4O-pin dual-in-line plastic package or in a space- for external event counting. saving 52-pin flat plastic package. 2-5 38-39 P2g-P23 4-blt _hod tri...... output Port 2 (activo high). P2g1PSTB Uno P2g 10 .... sh.r.d with PSTB. tho Port, The j.lPD7507 is downward compatible with the j.lPD7506 and the j.lPD7507S. P2,/PrOUT =.,": output otrobe pul.. (activo Iow}. lin. P2, 10 aIoo ~:~)~OUT' the tlm.....ut FIF signal Pin Configuration 6·9 4144 P'g-P'3 4-blt Inputltrf._. output Port, (active high). Data output to Port 1 18 strobed In synchroniza- tion with a P20fPSTB pul... '11-13 46-49 P3g-Pla 4-bH latChed tr._. output POrt 3 (activo hllh): X2 x, P20IPSTB Vss '4-'7 511-52,2 P7g-P73 4--btt input/latched trl·stat, output Port 7 (active high). P2,/PTOUT P43 '8 RESET RESET Input (actIv. high). RIC circuit or pul.. P22 P42 InHlall... ,...07507 or ,...07508 alter power-up. P23 P4, 5,9 Sy8IOm clock Input (activo high). ConMd 82k!2 '9,2' a."CLz P'o P4g _ r acrooe Cl, and CLz, .nd connoct 33pF capacitor trom Cl, to Yss. Alternatively, on P', P53 external clock aource may be connected to CLt. P'2 P52 who.... CLz Is loll opon. P'3 P5, 20 7,33 YDD Power supply posltlv•. Apply slnglo voH_ P30 ,..pD7507C P50 ranging trom 2.7V to 5.5V lor proper operation. P3, "PD7508C PS3 22 '0 INT, Extomallnt.rrupt INT, (active high). This 10 • ~alng .dg......ggered Int.rrupt. P32 PS2 23-28 II, '2 PDglINTO 4-b~ Input Port o/S.rlal WO Interlac. (actlv. high). P33 ps, '5,'8 PO,/SCI< Thle port can be configured elthar as • 4-blt P70 pSo parallel Input port, or as tho 8-blt ..~all/O Int... POzISO face, under control of the ....... mode select P7, P03fSI PD:IJSI reginr. Tho _Input 51 (actiVO high), So!!!!.... P72 P02/S0 Output SO (activo low), and tho So~al Clock SCK po,lIl:R" (activo low) uoed lor synchronizing data transtor P73 comprise tho 8-blt aeriol WO Int_. Un. POg RESET ::C=:t::h~~ :::I=~I::.!8 POQ/INTO Cl, INT, Intorrupt. VDD Cl2 Rev/1 3-53 ",PD75071750a Absolute Maximum Ratings * Pin Identification (Cont.), T. = 2S·C 40-..... DIP 27-30 - H-Pln .7·20 . .mba! P60-P83 6 mod. aaloct raglsta,. '.ctlon 4-bit Input/la1chod tri·118t. output Pori 6 (active high). Individual lin.. can be contlgured .Ithor .. Inputs or sa outputs under control of the Port Operating Temperature Storage Temperature Power Supply Vohage. VOb All Input and Output Voltages Output-Current (Total, All Output Ports) -10·Cto +1O·C -65·Cto + 1SO·C -O.3Vto +7.0V -O.3VtoVoO +O.3V IOH = -20mA 3.-34 2.·24 P5o-P53 4-blt Inputlll1c:hod t , _ output Port 5 ( _ high). Can 0180 portorm B-bM porallel VO In oon- = IOL 30mA Junction wlth Port 4. ·Comment: Stress above those listed under "Absolute 3~ 25.26. P40·P43 4-bM Input/lotchad _ . output Pori 4 (active 28.30 high). Can oleo portorm B-bM poraIlel VO In c0n- Maximum Ratings" may cause permanent damage to junction wMh Pori 5. the device. This is a stress rating only and functional 39 3' V!!l! Ground. operation of the device at these or any other conditions •• 4.8.8. NC No connection . above those indicated in the operational sections of this 13,14,27,29, 35.40.45 specification is not implied. Exposure to absolute max- imum rating conditions for extended periods may affect device reliability. DC Characteristics T. = -10·C to + 70·C, VDD = 2.7V to S.SV P_- Input Voltage High .........1 VIH VIH2 0.7VDD VDD-0.5 ..In ~. TrP VDD .... Unit T _ _• Allinpula Othe' than Cl •• X. VDD V CL•• X. VDO DR +0.2 RESET. 0I1a _Ion _ VIHDR Vil 0.3 VDD All Inputs biher thin CL1. X1 Input VoMaga Low V Vll 2 o 0.5 Cl •• X. IllH All Input. Other than Ct.1' X1 VI = VDO Input Laabga Curtanl High ,.A IUH2 '0 CL•• X. ILiL -3 All Inputs Other than CL•• X. VI == oV Input Lukllge Cwrent Low ,.A Ill~ -.0 CL"X, VDO - ••0 VDD • 5V ± '0'"'. 'oH • - •• 0 mA Output VoIt_ High VOH V VDO - 0.5 VDD. 2.7Vto6.5Y,IOH. -1001lA 0.4 VDD = 5V 10 'O%.IOL = '.8 mA Output Voltage Low VOL V 0.5 VDD- 2.7VIOS.5V,IOL = 400,.. Output Leakag. Current High ILOH ,.A VOUT = VDD Output L08Icog. Current Low ILO L -3 ,.A VOUT = OV Supply VoMaga VDDoR 2.0 V 0I1a Retention Mod. 300 900 VDD = 5V 10 '0'"' IDO. Normal Operation .50 400 VDD = 3V 10 '0%' SUpply Current 0.5 20 '0 Stop M_. X• • OV Vpp. SV t 10_ VDD = 3V 10 .0,", 0.4 0I1a RI1anlion _ VDDDR = 2.0V '0 AC Characteristics T. = -10·Cto +70·C,VDD = 2.7VtoS.SV P_- ........' 120 200 .... 280 Unit T_ _ _ R= 82(kQ ± 2% C_33pF 10 5,", VDO = IV t'O% CL•• Cl2 Syotom Clock Oocllll1lon Frequency 'cc 80 80 '00 '30 180 KHz R= '80k2102,", C .. 33 pF t -5'"' VOD = 3V 10 10% VDD • 2.7V 10 5.IV .0 200 300 VDD. IV 10 '0% 8yI1om CIoclc RI.. and Fall Tim.. 'C tcA.tCF '0 '35 0.2 . CL1' Extamal Clock CL•• Extomol Clock VDD • 2.7V to S.5V System Clock Pul.. Width '<:H·teL '.5 3.5 50 50 .. CL1' Extern. Clock VDD = IV t '0,", VDD • 2.7V 10 5.BV 'xx 25 32 50 X•• X2 CryI10I OocUII1Or Count.r Clock OScIIllII:lon Frequency 300 KHz VDD = 5V t .0,", '. . XI. Extarnol Pul. . Input '35 VDO = 2.7V to I.IV Count., Clock RIeo and Foil TImoo txR,tXF 0.2 X•• External Pulao Input Count.r Clock PuI.. Width txH.tXL '.5 3.5 ,.. X•• Extern", Pul.. Input YDD. BY :t 10% VDD a 2.7V to 5.5V 3-54 j.LPD750717508 AC Characteristics (Cont.) P .......... • ,mltol .,'" 4.0 LlmH. Typ .. ., UnH T ••• CondItIon • VOO = 5V ± 10% ScKla an Input SCK Cycl. Tim. IKCY 7.0 6.7 .0 VOO = 2.7V to S.5V VOO = 5V ± 10% SCK I. an output 14.0 YOO = 2.7V to S.5V I.B VOO = 5V ± 10% SCK Pul.. Width tKH,tKL 3.3 3.0 .. SCi( 'S an Input SCK. Is an output VOO = 2.7v to 5.5V VOO = 5V ± 10% 6.5 VOO = 2.7V to S.SV 51 Setup Time to !1m"t ISIK 300 n. 51 Hold Time after ~t IKSI 450 n. B50 VOO = 5V ± 10% SO Delay Time aftar SC'K, IKSO n. 1200 YOO = 2.7V to 5.5V 1/(2IfBOO) VOO = 5V ± 10% Port 1 Output Setup Time to PSTBt IpST n. 1/(211"2000) VOO = 2.7V to 5.SV 300 350 500 VOO = SV ± 10% Port 1 Output Hold Time att.r Pfij't ISTP n. 300 1500 YOO = 2.7V to 5.5V 1I(2It-BOO) VOO= SV ± 10% PSTB Pul. . Width ISWL ns 11(21.-2000) VOO = 2.7V to 5.5V .0 tNT0 Put.. Width INT 1 Pulse Width RESET Pul.. Width IIOH'IIOL II,WH,II, WL IRSH'IRSL 10 2/1\ 10 .... RESET Setup Time 'SRS RESET Hold Time IHRS no Capacitance T. = 25·C, VDD = OV Parameter Input Capacitance .ymbol C, "'n Umlta Typ .. ., 15 Unit pF f T••t Condition. = 1 MHz Output Capacitance Co 15 pF Unmeasured pins Input/Output Capacitance CI/O 15 returned to VSS 3-55 ,.,PD7$0717508 Block Diagram X2 INTI P10-P13 P2Q-P23 ( P2otPSTII.) P2111'TOUT D(4) E(4) H(4) L(4) Program Memory Stack Pomter 2048 • II-BIt ROM _ 1.... D7507) • 8-BIt ROM ....D7&08) P40-P43 Instruction Decoder Data Memory 128 • 4-BIt RAM (,.pD7507) 224 • 4-8/1 RAM (,.pD7508) P5o-P53 CL System Standby Clock Generator Control P7o-P73 CLI CL2 RESET VDD Vss 3-56 ",PD7507/7508 Timing W.veforms Clocks eLI ~1I 1cL-ry--'".4 Ille ~ -V!H ________ - VIL ~~ lIIe xI Serial Interlace 'xL "v="q ~ _______________ -V+H -V~ IKL IKH IeR _VIH ~ _ _ _ _ _ _ _ _....:- VIL talK 81 IKSOj Valid Input Data r------------------------~- VIH -VIL II 80 Valid Output Data X -VIH VIL Output Strobe ~ ~ VIH r--4 Plo-"I3 - VIL i IpsT PSTB -VIH -VIL ISTL External Interrupts INTO ~ qOL F-QoH==t -VIH VIL ~ qlL INTI F"IH==\ -VIH VIL RESET-~i---i<______·I~------:J/~-'IIStI-\ Reset -VIH ........._ _ _ _ _ _ _ _...: VIL Data VDD Retention __ Mode _ _ _ _ _ _J!----Data Retent,on MOda----l RESET_----:lM ~r--itt!lS--- ~ - VIH -vlIDoR ~------------------------- :~ 3-57 ~PD7507/7508 Operating Characteristics (Typical, Ta 25°C) = Supply CUrrent Supply Current v. v. Supply Voltage (Note ®) Supply Voltage (Note CD) ,------ ~I= / 20 200 R C / V 33pF / / 10 / 1 100 1 V ~V 0 0 S? / S? E ..~ 50 .. E ~ V I X, I / V U }4Rl X2 u . 0. 0- U> /' R = 180kQ ~ U> / Xlal 20 C11 (] t2 R1 = 330kQ C1 = 20pF C2 = 30pF 10 = 32.768KHz Y 3 4 l. Xtal Supply Voltage VDD (V) Supply Voltage VOO (V) Supply CUrrent Supply Current vs vs System Clock Oscillation Frequency System Clock Oscillation Frequency (Not. G)) Not. G)) 250 Voo = 5.0V 250 Icr;r~1 VOO = 3.0V c = 39pF 200 r c = 27pF 1 0 S? E ~ 150 u 100 I--"-Ic----j----+----+----+-I . -a 0- U> 100 C = 100 pF C = 39 F ~ ~_ ~~ C=56pF __ C=2r 50 1---"11-----"1----+----+----+-1 50 / !~ 100 200 300 400 500 100 200 300 400 500 Oscillation Frequency f~ (KHz) Oscillation Frequency f+ (KHz) Not. .: (j) Only RIC system clock is operating and consuming power. All other internal logic blocks are not active. <2l Only crystal oscillator clock is operating and consuming power. All other internal logic blocks are not active. 3-58 fJPD750717508 Operating Characteristics (Cont.) (Typical, Ta 25°C) = v. System Clock Oscillation Frequency Resistance .. System Clock Oscillation Frequency Supply Voltage 500 ICgJ'1 250 'CL1'c ' 1= 33pF C=33PF r - I~ ¥~ 200 N' x R = 82kQ , ~ 02 200 ~ i ~ "- 'DO '" Voo = 5V ~ r ~ "- 'SO c Voo =~ c : 0 0 A = 160kQ ~ 3V ! SO ~ 'DO 4 SO 100 200 ReSistance R (K ohms) 500 SO Supply Voltage VOO (V) II Package Outlines For information, see Package Outline Section 7. Plastic, fLPD7507C/OBC Plastic Miniflat, fLPD7507G/OBG Plastic Shrinkdip, fLPD7507CU fLPD750BCU 7507/750BDS-REV1-7-B3-TRIUM-CA T 3-59 NOTES 3-60 NEe CMOS 4·BIT SINGLE CHIP ~PD7507S MICROCOMPUTER Description Pin Identification The ",PD7507S is a CMOS 4-bit single chip microcom- Pin puter which has the same ",PD750x architecture. Function No. Symbol The ",PD7507S contains a 2048 x 8-bit ROM, and a 128 1.25-27 P40·P43 4--blt Input/latched trl·state output Port 4 (active high). Can also x 4-bit RAM. perform a..bit parallel I/O In conjunction with Port 5. The ",PD7507S contains two 4-bit general purpose U X2' Xl Crystal clock/external event Input Port X (active high). A crystal oscillator circuit Is connected to input X1 and output X2 registers located outside RAM. The subroutine stack is tor crystal clock operation. Alternatively, external event pulses are connected to Input X1 while output X2 Is left open for implemented in RAM for greater nesting depth and flex- external event counting. ibility, providing such operations as the pushing and 4·7 P20·P23 4--bit latched tri-state output Port 2 (active high). Line P21 is popping of register values. The ",PD7507S typically exe- P21/PTOUT shared with PTOUT' the tlmer~ut F/F signal (active high). cutes 91 instructions of the ",PD7500 series" A" instruc- 8-11 P30·P33 4-blt latched trl-state output Port 3 (active high). tion set with a 10",s instruction cycle time. 12 RESET RESET Input (active high). RIC circuit or pulse Initializes II ",PD1501 or ",PD150B after power-up. The ",PD7507S has two external and two internal edge- 13.15 CL1. CL2 System clock Input (active high). Connect 82kQ resistor triggered hardware vectored interrupts. It also contains across Cl1 and Cl2. and connect 33pF capacitor from Cl1 to an 8-bit timer/event counter and an 8-bit serial interface VSS' Alternatively. an external clock source may be connected to Cl whereas CL2 is left open. to help reduce software requirements. 14 " VOO Power supply positive. Apply Single voltage rangmg from 2.7V The ",PD7507S provides 20 I/O lines organized into the to 5.5V for proper operation. 4-bit input/serial interface Port 0, the 4-bit output Port 2, 16 INT, External Interrupt tNT 1 (active high). This Is a rising edge- triggered interrupt. the 4-bit output Port 3, and the 4-bit I/O Ports 4 and 5. 17-20 POOIINTO 4-bit input Port Olserlal 1/0 interface (active high). This port It is manufactured with a low power consumption can be configured either as a 4·bit parallel Input port, or as the P01/SCK CMOS process, allowing the use of a single power sup- P02/S0 B-blt serial I/O Interface, under control of the serial mode select register. The Serial Input SI (active high), Serial Output ply between 2.7V and 5.5V. Current consumption is P03/S1 SO (active low), and the Serial Clock sa< (active low) used for less than 900",A maximum, and can be lowered much synchronizing data transfer comprise the B-bit serial 110 Inter- face. Line POD is always shared with external interrupt INTO further in the HALT and STOP power-down modes. The (active high) which Is a rising edge·triggered Interrupt. ",PD7507S is available in a 28-pin dual-in-line plastic 21·24 P50·P53 4-blt Inputltatched tri-state output Port 5 (active high). Can also perform B-btt parallel 110 In conjunction with Port 4. package. 28 VSS Ground. The ",PD7507S is upward compatible with the ",PD7507, and downward compatible with the ",PD7506. Absolute Maximum Ratings· Pin Configuration Ta = 25°C Operating Temperature -10·C to + 70·C Storage Temperature -65·Cto +150·C P43 Vss Power Supply Voltage, vOO -O.3Vto +7.0V Xl P42 All Input and Output Voltages -O.3VtoVOO +O.3V X2 P41 Output-Current (Total, All Output Ports) IOH = -17mA P20 P40 IOL = -34mA P21fPTOUT P53 'Comment: Stress above those listed under "Absolute P22 P52 Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional P23 P51 operation of the device at these or any other conditions P30 P50 above those indicated in the operational sections of this P31 P03/S1 specification is not implied. Exposure to absolute max- imum rating conditions for extended periods may affect P32 P021S0 device reliability. P33 P01/SCK RESET POOflNTO CLl INTI Voo CL2 Rev/1 3-61 ",PD7507S Block Diagram P0 1'SS;K P03/Sf P02/S0 P201P23 (P21/PTOUT) P30·P33 H(4) l(4) Program Memory Stack Pointer (8) 2048 x 8-BfT ROM ("P07507S) P40-P43 Instruction Decoder Data Memory 128 x 4-BfT ("P07507S) P50·P53 System Standby Clock Control Generator Cll Cl2 RESET VOO Vss 3-62 IJPD7507S DC Characteristics T. = -10·C to + 70·C, VDD = 2.7V to S.SV LImit. P.ramet.r Symbol Min T¥p Max Unit V'H 0.7 Voo VOO All Inputs Other than CL1. Xl Input Voltage High VOO_0.5 V'H2 VOO V'HOR 0.9 VOO OR VODOR + 0.2 RESET, Data Retention Mode VIL 0 0.3 VOO All Inputs Other than CL1. X1 Input Voltage Low v V'l2 0.5 Input Leakage Current High 'l'H _,A,,"-:-'n,p..ut_S_Dt_hO_'_'h_"_n_C_l_l,_X--,l_ _ _ VI = VOO VUH 2 10 Cll' Xl 'Lll -3 _ _A='_"_np~u_••_Dt_h_O'_'_h"_n_C_l--,l_,X_l~_ _ VI=OV Input Le.kage Currant Low Vl'l2 -10 Cll' Xl Output Voltage High VOO - 1.0 Voo = 5V ± 10%,IOH = -1.0 mA VOH V VOO - 0.5 VOO = 2.7V.o 5.5V, 'O~'"'-:=:7-::-10:-0-,-,.A _ _ _ _ _ __ 0.4 YOO = SV ± 10%. IOL ,. 1.8 mA Output Voltage Low VOL V 0.5 Voo= 2.7Y to 5.5V, IOL ,. 400 ",A Output Leakage Current High 'lOH IJ Output Leakage Current Low 'lOl -3 Vo = OV Supply Voltage VOO OR 2.0 v Data Retention Mode 300 900 Yoo = SV :t 10% 'DOl Normal Operation 70 300 VOO = 3V ± 10% Supply Current 20 Yoo ,. 5V ± 10% Stop Mode, Xl = OV 0.3 10 VOO = 3V ± 10% 0.4 10 Data Retantlon Mode YODOR = 2.0V AC Characteristics T. = -10·Cto +70·C,VDD = 2.7VtoS.SV Parameter Symbol Min Mu Unit Te.t Condition_ 150 200 240 R=82kQ±2% Cll , C~ C = 33 pF ± 5% VOO = 5V ± 10% Icc 75 100 120 RIC Clock R = 160 kQ ± 2% VOO = 3V ± 10% Syatem Clock Oscillation Frequency 135 KHz C=33pF±5% VOO III 2.7V to 5.5V 75 10 200 300 VOO = 5V ± 10% 'e 10 135 CL1' External Clock VOO = 2.7V '0 5.5V System Clock Rlae and Fan Time. 'cR' 'CF 0.2 ... CL1' External Clock System Clock Pul.. Width 'CH,'Cl 1.1 3.5 50 50 ... CL1' External Clock VOO = 5V ± 10% VOO ill 2. TV to 5.SV 'x. 20 32 50 Counter Clock Oecillation Frequency 300 KHz Voo == 5V ± 10% 'x 135 X1' External Pulse Input YOO = 2.7V to 5.5V Counter Clock At .. and Fall Time. txR' txF 0.' ... X1' Externa' Pul.. Input Counter Clock Pulse Width txH,txL 1.5 3.5 ... X1' External Pul.. Input VOO :: SV ± 10% VOO = 2.7V to 5.5V 4.0 Voo = 5V t 10% 'SCi( ,. an Input SCK Cycle Time 'KCY 7.0 6.7 ... VOO = 2.7V to 5.5V Veo = SV t 10% ~I.anoutput 14.0 VOO == 2.7V to 5.5V 1.3 Voo =- SY t 10% ml••nlnput SCi< Pu'" Width 'KH"Kl 3.3 2.2 ,.. VOO = 2.7V to 5.5V VOO = SY t 10% SCK I. an output 6.5 VOO = 2.7V to 5.SV 51 Setup Time to SCKt 'S'K 300 no SI Hold Time after SCKt 'KS' 4SO no 8SO Yoo = SV t 10% SO Oelay Time after SCK' 'KSO no 1200 Voo = 2.7V to S.SV 'NT0 Pu'" W'dth INT 1 Pul.e Width "OH"'Ol "lH'llll 10 .'... RESET Pu'u W'dth IRSH,'RSl 10 ,.. RESET Setup Time 'SRS no RESET Hold Time 'HRS ns 3-63 1lPD7507S Capacitance T. = 2SoC. VDD = OV p_amet., Input Cepachance Output COpacltance Input/Output Capacitance ......... C! Co ClIO - - ~. "'" ....15 15 15 pF pF PF ContIIuon. f=1MHz T_ Unmeasured pins returned to Vss Timing Waveforms Clocks CL--------1c-'~:~~~~=_tc_L___:_C_r=_1 '" 4'-________ =:: XI--------IX-,~---- ---"'7 tXL :-'F ~ 4'--_________ =~:: t Serlallnte"ace tKCY tKL lr-!KH~ _VIH "\ _VIL I---tSIK_ r- tKSI - Valid -VIH 51 Input Data ,< -VIL 50---------------~~------V-.I-ld-0-~-~-t-D-m-a-----~)(~--------__ :: I--IKso Extern~::,-terru--p-t;..s-..;...----~'______tlO_L_-_-_-_~~-_-_-..... -F =t,,__________=::~ tlOH INTI---------~~____t_II_L_-_-~_-~_-_-:yl-======--tl-IH_==\'-__________=: : ResetREsET _ _ _ _ _....,.._ _ ---.~::~~~~-------"'-S-L----~---- tASH - - - \...__________=~:: Data Retention Mode L--- 1- Oat. Retention Moda--t I VDD------~--:--tsAs--I Rl--tH-AS--"-~~~~~~~~~~~_-_-_-____________<= ~~DA RESET------'jf--~ _ = ~:~DA 3-64 /JPD7507S Operating Characteristics (Typical, Ta 25°C) = Supply Current Supply Current vs vs Supply Voltage (Note CD) Supply Voltage (Note ®) ,--~~ ~ 20 / 200 R C ,/ / 1= 33pF / /' ~ 10 / ~ 100 / ~V Q B 9 c / I 50 /' ~ i3 / I X, I <..> ~ a. / V R = 160kQ ~ a. / X2 cil cil foqRl t2 II 20 C11 [] Rl == C, 330kQ 20pF 10 C2 = 30pF 't.r 3 4 L lito, ~ 32.788 KHz Supply Voltage VOO (V) Supply Voltage VOO (V) Supply CUrrent Supply Current vs vs System Clock Oscillation Frequency System Clock Oscillation Frequency (Nole Q)) (Not. Q)) 'T;J~' C[;t1~1 Voo = 5.0V 250 250 I Voo = 3.0V 1 200 I-"'--'=---';~TM=-- C = 39pF 200 I ~ ~Q B 9 J 150 /--i-:r---...",r-"""7'''''-7'l''''-----t-----t-l E j 150 J 100 /-..::;./----/------1~----t-----t-l . ~ a. II) 100 C=100pF C=39F ~ ~ 50 1--+-----1------+------1------+-1 50 _~~ C=56pF C= 27 r /. ~ I'~ 100 200 300 400 500 100 200 300 400 500 Oscillation Frequency f+ (KHz) Oscillation Frequency f. (KHz) Not. ., (J) Only RIC system clock is operating and consuming power. All other internal logic blocks are not active. ~ Only crystal oscillator Clock is operating and consuming power. All other internal logic blocks are not active. 3-65 J.lPD7507S Operating Characteristics (Cont.) (Typical, Ta = 25°C) System Clock Oscillation Frequency v. v. System Clock OSCillation Frequency ResIstance Supply Voltage 500 IC~'1 250 IctJ~1 ~ I~ C=33PF r ." ~ 200 1= 33pF R = 82kQ , '";. 200 ~ g fw "'" ~5V ~ 150 0- "- 100 J:c ~ c ~ 2 Voo = 3V R = 160kQ ~ ~ 0 50 ~ 100 - 50 L, 50 100 200 500 Supply Voltage Voo (V) Resistance R (K ohms) Package Outlines For information, see Package Outline Section 7. Plastic, ",PD7507SC Plastic Shrinkdip, ",PD7507SCT 3-66 7507DS-REV1-7-83-CAT NEe J.(PD7508A CMOS 4·BIT SINGLE CHIP MICROCOMPUTER WITH VACUUM FLUORESCENT DISPLAY DRIVE CAPABILITY De.crlptlon Pin Name. The j.lPD7508A is a CMOS 4-bit single chip microcom- puter which has the j.lPD750x architecture. It is identical to the j.lPD7508, except for a slightly smaller RAM, and 400Pin DIP .,....... ....ctlon 1.40 X2. XI Cryatal clock external event Input Port X (active high). A crystal 16 lines of vacuum fluorescent display drive capability. O8Clllltor circuit Is connected to Input Xi and output X2 tor crystal clock operation, AltemaUvely. externalev.nt pulnl are The j.lPD7508A contains a 4096 x 8-bit ROM, and a 208 connected to Input X. while output X2 I. lett open lor external X 4-bit RAM. event counting. The j.lPD7508A contains four 4-bit general purpose 2·5 P2g-P23 4-bIt latched trlatate output Port 2 (active high). Line P20 Is .teo shared with PSTa. the Port 1 output strobe pUlee (active registers located outside RAM. The subroutine st/lck is P20PSTB lOW). Line P21 Is also ahared with PTOUT' the tlmar out F/F implemented in RAM for greater nesting depth and flex- P21/PTOUT .'gnal (aCllve high). ibility, providing such operations as the pushing and 6·9 PIg-PI 3 4-b1t Inputltrlltate output Port 1 (active h'slh). Data output to Port 1 18 strobed In .ynchronlzatlon with. P2o'PSTi pul... popping of register values. The j.lPD7508A typically ex- 11).13 II P30·P33 4·blllatched Irl..... OUlput POll 3lactlYl. high). ecutes 92 instructions of the j.lPD7500 series "A" in- 14-17 P7g-P73 4·blt Input/latched trlatate output Port 7 (active high). struction set with a 10j.ls instruction cycle time. 18 RESET RESET Input (active high). RIC circuit or pulse Initializes The j.lPD7508A has two external and two internal edge- ",,07507 or ",,07508 "".r pcwer·up. 19,21 ClI. Cl2 System clock Input (active high). Connect 82kO raalator across triggered hardware vectored interrupts. It also contains CL1 and CL2. and connect 33 pF capacitor from CL1 to VSS' an 8-bit timer/event counter and an 8-bit serial interface Alternatively. an external clock source may be connected to to help reduce software requirements. CL1. whe,..a CL2 Is left open. :w Voo Power aupply positive. Apply lingle voltage ranging from 2.7V The j.lPD7508A provides 32 I/O lines organized into the to &.SV for proper operation. 4-bit input/serial interface Port 0, the 4-bit output Port 2, 22 INTI Externallntenupt INT 1 (active high). This Is a "alng edge- the 4-bit output Port 3, and the 4-bit I/O Ports 1, 4, 5, 6, Irlggered Interrupt. and 7. Ports 3, 4,5, and 6 are capable of being pulled 23·28 POollNTO 4-blt Input Port O/88rlaII/O Interface (active high). This port can be conllgured either al a 4-bIt parallel Input port. or a. the a-bit to - 35V in order to drive vacuum fluorescent displays POIISCK ..rial IJO Interface, under control 01 the serla' mode select P021SO directly. It is manufactured with a low power consump- register. The Serl.llnput 81 (acttve high). S.rI.1 Output SO POWSI (ICtive low). and the Serial Clock ICK (acttve Io~) ueed lor ayn- tion CMOS process, allowing the use of a single power chronlzlng dill transfer comprl.. the 8-blt ..rial I/O Interface. supply between 2.7V and 5.5V. Current consumption is Line POo I. &twa,a shared with e.temllinterrupt INTO (active less than 900joiA maximum, and can be lowered much high) which Is a rialng edg..trIggered Intoriupt. further in the HALT and STOP power-clown modes. The 27·30 P5g-P83 4-blt Inputllatched trls...e output Port 6 (active htgh). Individual Ifn.. can be conflgured either •• Inpub or aa outputs under j.lPD7508A is available in a 40-pin dual-in-line plastic control 01 the Port 8 mode select regl.,.,. package. 31-34 P5g-P53 4-blt Input/latched tristate output Port 5 (active high). Can al80 perform 8-blt par"" I/O conJunction wtth Port 4. 3&·38 P4g.p4a 4-blt lriputllatched trls...e output Port 4 (acttve high). Can alao perform a-bit parallel 110 In conjunctkln with Port 5. Pin Configuration 39 Vgs Ground. X2 X, P20IPSTB Absolute Maximum Ratings- Vss P2I/PTOUT P43 P22 P42 Operating Temperature -10OCto +70OC P23 P41 Storage Temperature -&SoCto +150°C PIO P40 Power Supply Voltage, VOD -O.3Vto +7.0V PII P53 Input Voltages, Porta 4, 5, and 6 (VDD - 4O.0)V to (VDD + O.3)V PI2 P52 PI3 P51 AlIOtherlnputPorts -O.3VtoVDD +O.3V P30 PSO Output Voltages, Porta 3, 4, 5, and 6 (VDD - 40.O)V to (VDD + O.3)V P31 P53 A"OtherOutputPorts -O.3VtoVDD +O.3V P32 P52 Output-CUrrent (Total, A" Output Ports) IOH = -150mA P33 P51 IOL =50mA P70 PSO ·Comment: Stress above those listed under "Absolute P71 P03/SI Maximum Ratings" may cause permanent damage to P72 P02ISO the device. This is a stress rating only and functional P73 POlliCK operation of the device at these or any other conditions RESET POOIINTO INTI above those indicated In the operational sections of this ClI specification is not implied. Exposure to absolute max- VDO Cl2 imum rating conditions for extended periods may affect Rev/2 device reliability. 3-67 ",PD7508A BloCk Diagram P011SCK P031S1 P021SO P10-P13 P20·P23 P20/PSTB. P21/PTOUT P30·P33 H(4) l(4) Stack Pomter Program Memory P40·P43 4086 x 8-Bit ROM (,.Po7508A) Instruction Decoder Data Memory 208 x 4·811 RAM ,"PD7508A) P50·P53 System Clock Standby Generator Control t RESET t VDD t VSS 3-68 JAPD7508A DC Characteristics Ta = -10·C to + 70·C, VDD 2.7Vto 5.5V LImits Parameter Symbol M'n T.p Ma. Unit Test Conditions V.H 0.7 VOO VOO All Inputs Other than Cl1. X, Input Voltage High V.H2 VOO - 0.5 VOO V1HOR O. 9V ODOR VODOR + 0.2 RESET, Data Retention Mode VIL1 0.3VOO AlllnputB Other than Cl,. X,. Ports 4, 5, and 6 Input Voltage Low VIL3 VOO - 35.0 a. 3V OC V Porta 4, 5, and 6 V.L2 0.5 CLIo Xl IUHl All Inputs Other than CLIo X,. Ports 4, 5, and 6 VI = VOO Input Leakage Current High ILlH2 10 jlA Ports 4, 5, and 6, VI = Veo 60 CLIo X, ' LlH 3 IUL, -3 All Inputs Other than Cl" X, VI = OV Input Leakage Current Low IUL2 ·10 • .,.4,_5_._an_d_6_,_ _ _ _ _ _ _ _ _ VI = -30.0V _p,...0_rt..., 'L.L3 ·30 CLIo X, II VOO - 2.0 Voo = 5V ± 10%, IOH = -1.0mA Output Voltage High VOH V VOO - 0.5 VOO = 2.7V to 5.5V, 'OH = -100,", 0.4 VDD = SV ± 10%, IOl = 1.6mA Output Voltage Low VOL V 0.5 VOO =2.7V 10 5.5V, 'OL =400,", Output leakage Current High IlOH, '"' Vo = VOO 'LOH2 30 Ports 3, 4, 5, and 6, Vo = -30V 'LOL2 -3 Vo = OV Output Leakage Current Low 'LOL2 -30 Ports 3, 4, 5, and 6, Vo = -30V Supply VaHage VOO OR 2.0 V Data Retention Mode 300 900 Voo = 5V ± 10% '00, Normal Operation 70 300 VOO = 3V ± 10% 20 Voo = 5V ± 10% Supply Current '002 0.3 Stop Mode, X, = OV 10 VDO = 3V ± 10% 'DOOR 0.4 10 Data Retention Mode, VODOR = 2.0V Capacitance ,!Fa =25·C, VDD =OV Umlts Te.t P.r.meter Symbol M'n T.p Ma. Unit Condition. Input Capacitance C. 20 pF f = 1MHz, Output Capacitance Co 20 pF Unmeasured pins returned to VSS Input/Output CliO 20 Capacitance 3-69 J.LPD7508A AC Characteristics T. = -10·C to + 70·C, vDD = 2.7Vto 5.5V UmIta P.,.me1'" ........., MIn 1)p M •• UnH TNt Conditione R=B2k2±2% 150 200 240 C = 33pF ±5'110 YOO = SV ± 10% Icc 75 100 120 VOO = 3V ± 10% CL,. CL2 R = 160kQ :1:2% System Clock Oscillation Frequency KHz RIC Clock c.33pF:t5% 75 135 VOD = 2.7V 10 5.5V 10 410 CL,. Voo = 5V ± 10% 'C External 10 125 Clock VOO = 2.7V.o 5.5V Sylrtam ClOck Alae and Fan Times tcR·'CF 0.2 ". CL1. Externa' Clock 1.1 50 CL" VDD = IV:t 10% System Clock Pulae Width 'CH.'CL ". External 3.5 50 Clock VDO • 2.7V to 5.5V 'xx 25 32 50 X1. X2 Crystal Oscillator Counter Clock Oscillation Frequency 410 KHz VOO = 5V :t 10% Ix X1' External Pul•• Input 135 VOO = 2.7V to S.5V Counter Clock Ai.. and Fall Times txA,txF 0.2 ". X1. External Puln Input 1.1 YOO = 5V ± 10% Counter Clock Pulee Width 'XH.'XL ". X1' External Pulse Input 3.5 VOO = 2.7V 10 5.5V 3.0 SCKI. VOO = 5V t 10% an 7.0 Input VOO = 2.7V to S.5V Sci( Cyole Time 'KCY ". 5.0 SCKls VOO = SV :t 10% an 14.0 output Voo = 2.7V to 5.5V 1.3 SCKI. YOO z 5V t 10% an 3.3 Input VOO • 2.7V 10 S.5V SCi( Pulse Width tKH.tKL 2.2 ,.. SCKI. YOO == SV:t 10% an 6.5 output VOD = 2.7V.o 5.5V SI Setup Time to SCKt 'SIK .3 ,.. SI Hold Time after SCKt 'KSI .45 ". 650 VOO = 5V ± SO Delay Time after SCK. 'KSO na 1200 VOO = 2.7V to &.5V 1/(210. 800) VOO = 5V ± 10% Port 1 Output Setup Time to PSTSt 'PST n. 1/(210. VOO = 2.7V to 5.5V 2000) 100 VOO = 5V t 10% Port 1 Output Hold Time .ner PSTSt 'STP n. 100 VOO = 2.7V to S.SV 1(210. 800) VOO = 5V ± 10% PSTB Pulse Width 'SL ns 1/(210. VOO 2" 2.7V to 5.5V 2000) INTO Pul.e Width "OH' 'IOL 10 ,.. INT 1 Pul.. Width 'I,H"I,L 2/fc ,.. RESET Pul.. Width 'RSH"RSL 10 ,.. 3-70 ",PD7508A Timing Waveforms ClocksC L , - - - - = . : . - ' c I ~ __ ICL ~'CR lIt O F ICH ~ ==t'------- _. . -V+H XI _________ 'xt ~I__ 'XL _ ' _ I t o 'X'~~ 'XH V,L Y -V+H Serial Interface 'KCY ---------- - V,L 'KL - - - - - l SCK---------_ _VIH 1----------- VIL SI _ _ _ _ _ _ _ _ -+-___---liir---Va-hd--- i ''-__In..:.p_u':...o:,:a.::'a_...J-r ----------------- VIH -VIL SO,-------------'KS-Oj~---------------- ~..._ _ _ _ _ _ _ _V._h_d_OU'__:..:pu::.'.::.oa::::'a=_______'X'________ - VIH VIL II Output Strobe tpST f - - - 'STP-----1 PSTB ~ -VIH -VIL I 'STL F" =t Extemal Interrupts ~ 'IOL INTO OH -VIH VIL ~ 'I,L INTI F'IIH==\ -VIH VIL ~ Reset tRSL RESET. y_'RSH-\ -VIH VIL Data Retention Mode VOO t----Oata Retention MOde~ Ab· ~ _ VIH -VOO VI DR RESET VI~OR 3-71 "/-lPD7508A Operating Characteristics TypIcIII, T. = 25°C Supply Current Supply Current vs vs Supply VOHage (Noto ®) Supply Voltage (No'. (j)) _. ~ 20 / 200 R C V V l= 33pF / V ~ 10 / ~ 100 / ~ 1: § . 50 / V :?:/ ~ 1: ,~ 0 . / L I X, I ,. foqt2 u X2 ,. Co Co ./' R = 160kQ '" / R '" l 20 ClIO R1 = 330kQ Cl = 20pF 10 C2 = 30pF 'tj L X,al = 32.788KHz Supply Voltage Voo (V) Supply Voltage Voo (V) Supply Current Supply Current vs vs System Clock OscUlalton Frequency System Clock Oscillation Frequency (NOIe (j)) (Note (j)) I cr;J~1 I Cr;J~1 VDD = 5.0V 250 250 Voo = 3.0V roo~-.~~~~~c- I 200 I ~ ~ ~ ~ 1: 1: ~ 150 i 150 .. u a,.. I 100 f - - " ' - f - - - - f - - - - i - - - - i - - - - + - l (/) 100 C=100pF C=39pF ~ ~ ~~ C=56pF __ C=2r 50 f - - f - - - - f - - - - i f - - - - i - - - - + - l 50 I~ "'" 100 200 300 400 500 100 200 300 400 500 Oscillation Frequency f+ (KHz) OscIllation Frequency f+ (KHz) Notes: (j) Only RIC system clock is operating and consuming power. All other intemallogic blocks are not active. ® Only crystal oscillator clock is operating and consuming power. All other internal logic blocks are not active. 3-72 ",PD7508A Operating Characteristics (Cont.) Typical, Ta = 25°C System Clock Oscillation Frequency System Clock Oscillation Frequency V8 vs Supply Voltage Resistance 500 IClhl,1 250 'CL~1~' 1= 33pF ~ :;. 200 !~ c=33PF 1 - R = 82kQ ~ " VOO = 5V I "" ~ 150 ! 100 ~ i c I VOO = R = 160kQ ~ 50 100 - t... 50 100 200 ReSistance R (K Ohms) 500 50 Supply Voltage VOO (V) II Package Outlines For information,._ Package Outline Section 7. Plastic, jJ.PD7508AC Plastic Shrinkdip, jJ.PD7508ACU Ceramic Piggyback, jJ.PD75CG08E 3-73 7508AD5-REV2-7-83-TRIUM-CAT NOTES 3-74 NEe JLPD7508H HIGH SPEED CMOS 4-BIT SINGLE CHIP MICROCOMPUTER Description Features The f,tPD7508H is a high-speed CMOS 4-bit single D Advanced 4th Generation Architecture chip microcomputer which is based upon the f,tPD7500 D Program Memory (ROM) size: 4K x 8-bit bytes series architecture. D Data Memory (RAM) size: 224 x 4-bit nibbles The f,tPD7508H contains a 4096 x 8-bit ROM, and a 224 x D RAM Stack 4-bit RAM. It contains four 4-bit general purpose registers D Four General Purpose Registers: 0, E, H, and L located outside RAM. The subroutine stack is implemented - Can address Data Memory and I/O ports in RAM for greater nesting depth and flexibility, providing - Can be stored to or retrieved from Stack such operations as the pushing and popping of register D 92 Powerful Instructions, including values. The f,tPD7508H typically executes 92 instructions - Direct/indirect addressing of the f,tPD7500 series "A" instruction set with 4f,ts instruc- - Table look-up tion cycle time. - RAM stack push/pop - Single byte subroutine calls IJ The f,tPD7508H has two external and two internal edge- - RAM and I/O port single bit manipulation triggered hardware vectored interrupts. It also contains an - Accumulator and I/O port logical operations 8-bit timer/event counter and an 8-bit serial interface to help - 4f,ts instruction cycle time, typically reduce software requirements. D Extensive General Purpose I/O Capability The f,tPD7508H provides 32 I/O lines organized into the 4-bit - One 4-bit input port input/serial interface Port 0, the 4-bit input Port 2, the 4~bit - Two 4-bit latched tri-state output ports output Port 3, and the 4-bit I/O Ports 1, 4, 5, 6, and 7. It IS - Five 4-bit input/latched tri-state output ports manufactured with a low power consumption CMOS pro- - Easily expandable with f,tPD82C43 CMOS cess, allowing the use of a single power supply between I/O expander 2.7V and 5.5V. Current consumption is less than 900f,tA - 8-bit parallel I/O capacity maximum, and can be lowered much further in the HALT D Hardware Logic Blocks - Reduce Software and STOP power-down modes. The f,tPD7508H is available Requirements in a 40-pin dual-in-line plastic package. The f,tPD7508H is - Operation completely transparent to downward compatible with the f,tPD7508 and the f,tPD7507. instruction execution The f,tPD7508H is ideally suited as a controller in the follow- - 8-bit Timer/Event counter ing applications: - Binary-up counter generates INTTat D telephone/telecommunication equipment coincidence D portable instruments - Accurate Crystal Clock or External Event operation D automotive dashboard controls possible D medical instruments - Vectored, Prioritized Interrupt Controller D portable and hand-held computer terminals - Three external interrupts (INTo, INT" INT2 ) D office equipment - Two internal interrupts (lNTT' INTs) - 8-bit Serial Interface Development Tools - 3-line I/O configuration generates INTs upon trans- mission of eighth bit For software development, editing, debugging, and assem- - Ideal for distributed intelligence systems or commu- bly into object code, you can use the NEC Development nication with peripheral devices System (NOS). Additionally, for systems supporting either - Complete operation possible in HALT and STOP the ISIS-II (®Intel Corp.), CP/M (®Digital Research Corp.) power-down modes operating systems, or Fortran IV ANSI 1966 V3.9, the D Built-in System Clock Generator ASM75 Cross-Assembler is available. D Built-in Schmidt-Trigger RESET Circuitry During software development, the code can be completely D Single Power Supply, Variable from 2.7V to 5.5V evaluated and debugged with hardware by the Evaklt-7500 Evaluation Board. The Evakit-7500-RTT Real-Time Tracer o Low Power Consumption Silicon Gate CMOS Technology Board is an optional device used to examine operation of - 900f,tA max at 5V, 400f,tA max at 3V your code in the actual prototype circuit. The SE-750~ - HALT, STOP power-down instructions reduce power System Emulation Board will emulate complete function- consumption to 20f,tA max at 5V, 10f,tA at 3V ality of the f,tPD7508H for demonstrating your final system (Stop Mode) design. All of these boards take advantage of the capabili- D Extended -40°C to +85°C Temperature Range ties of the f,tPD7500 ROM-less evaluation chip to perform Available their tasks. D 40-pin Dual-in-line Plastic Package Complete operation details on the f,tPD7508H CMOS 4-bit Microcomputer can be found in the f,tPD7506, f,tPD7507, and f,tPD7508 CMOS 4-bit Microcomputers Technical Manual. Revl1 3-75 ILPD7508H Pin Configuration Pin Identification Pin Clock OUt EVENT Symbol No. Function P201PSTB VSS Clock Out Crystal Clock OUtput (active high) The Crystal Oscillator frequency IS P21/PTOUT P43 diVided by 12, and then output through a buffer P22 P42 2-5 P20-P23 4-brt latched trI-state output Port 2 (active high). Line P20 IS also shared P23 P41 P2gfP;re with PSTB • the Port 1 output strobe pulse (active low). Line P2, IS also P2,/PT oUT shared wJth PrOUT' thellmer-oul F/F signal (active high). Pl0 P40 609 P1 o·P1 3 4-blt I"put/tn-state output Port 1 (active high). Data output to Port 1 IS Pll P53 strobed In synchronization with a P20/PSTB pulse. P12 P52 l1Jo13 P3,,·P3, 4-brt mput/latched tn-state output Port 3 (active high). P13 P51 14-17 P70·P73 4-brt Input/latched trl-state output Port 7 (active high). P30 P50 18 RESET RESET Input (active high). RiC circuit or pulse InJtlahzes .u,P07507 or P31 P63 .u,PD7508 after power-up. P32 P62 19.21 X"~ Crystal Clock Oscillator Input (active high). Connect a 4.19MHz crystal P33 P61 across X" and Xl!' P70 P60 20 V" Power supply POSitive. Apply aingle voltage ranging from 2.7V to 5.5V for proper operation. P71 P03lSI 22 INT, External interrupt tNT, (active high). This IS a nsmg edge-triggered P72 P02/S0 Interrupt. P73 P0 11!R:R" 23·26 POJ!!:!!s. 4-blt Input Port OISenallfO Interface (active high). ThIS port can be RESET POotlNTO PO,fSCK configured either as a 4-blt parallel Input port, or as the a-bJt serial 110 X, INT1 Po,JSO Interlace, under control of the serial mode select register. The Senal Po,fSI Input SI (active hlgh~ Serial OUtput SO (active low), and the Serial Clock VOO X, SCK (active low) used fOr synchronizing data transfer comprise the 8-brt serlSll/O Interface Lme POo Is always shared with extemallnlerrupt INTo (active high) which ls a riSing ectge-trlggered interrupt. 27-30 P6,,-1'6, 4-blt Input/latched trf-state output Port 6 (active hlgh).lndlVfdual hnes Absolute Maximum Ratings· can be configured either aa inputs or as outputs under control of the T. =2S'C 31-34 P5,,'P5, Port 8 mode select reglater. 4-bit Input/latched trl-state output Port 5 (active high). Can also perform Operating Temperature -10'C to +70'C 8-bJt parallel 110 In conjunction wtth Port 4. Storage Temperature -65'C to +15O'C 35·38 P4,.p4, 4-bJt Input/latched trf-state out;Jut Port 4 (active htgh). can also perform 8-blt parallel I/O In conJunction with Port 5. Power Supply Voltage, Voo -O.3Vto+7.0V 39 Vss Ground. All Input and Output Voltages -O.3V to Voo + O.3V 40 EVENT EVENT counter pulse Input (active high) Output Current (Total, All Output Ports) IoH = -20mA IoL =30mA ·COMMENT: Exposing the device to stresses above those listed in Absolute Maximum Ratings could cause permanent damage. The device is not meant to be oper- ated under conditions outside the limits described in the operational sections of this specification. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. 3-76 jJ-PD7508H Block Diagram P20·P23 Program Memory 4096 x 8-blt ROM (~PD1508H) Instruction Decoder H (4) Stack POinter (8) Data Memory L(4) II 224 x 4-bit RAM (~PD7508H) I, t System Standby Clock Control Generator j Clock Out t X, ~ X, RESET Voo VSS DC Characteristics Limits Parameter Symbol Min Typ Max Unit Test Conditions V,H 0.7 Voo Voo All Inputs Other than X, Input Voltage High V1H2 Voo-O.S Voo V X, V1H3 VOOQR +0.2 RESET, Data Retention Mode V" 0.3 Voo All Inputs Other than X1 Input Voltage Low V VILa 0.5 X, IUH All Inputs Other than Xl VI = Voo Input Leakage Current High .A IIH2 10 X, II.IL -3 All Inputs Other than X, VI = OV Input Leakage Current Low .A 'lL.a -10 X, Veo - 1.0 Veo = 5V ± 10%,loH = -1.0mA Output Voltage High VOH V Voo - 0.5 Voo = 2.7Vto5.5V,loH = -100j.l.A 0.' Veo = 5V ::t 10%, 10L = 1.6 mA Output Voltage Low VOL V 0.5 Veo = 2.7V to S.SV,loL = 400 f.LA Output Leakage Current High ILOH ,.A Vo = Voo Output Leakage Current Low ILO b -3 ,.A Vo = OV Supply Voltage V ODPR 2.0 V Data Retention Mode 300 900 Voo = 5V ± 10% 1001 Normal Operation 150 '00 Voo = 3V ± 10% Supply Current 20 Voo = SV ± 10% 1002 .A Stop Mode, X, = OV 0.5 10 Voo = 3V ± 10% IOO[)R 0.4 10 Data Retention Mode VOODR = 2.0V 3-77 fJ.PD7508H AC Characteristics T. = -10·Cto +70·C,V oo = 2.7Vto 5.5V Limits Parameter Symbol MIn Typ Max Unit Test Conditions '120 TBO TBD R = 120kO ± 2% C=33pF±5% Voo = 5V ± 10% Icc 60 TBO TBO Voo = 3V ± 10% R = 250kll ± 2% KHz C=33pF±S% System Clock Oscillation Frequency 60 TBO Voo - 2.7VtoS.SV 10 TBO TBO Veo = 5V ± 10% Ic Xh External Clock 10 TBO Voo = 2.7Vt05.5V I, 25 32 50 X1• X2 Crystal Oscillator EVENT Frequency 300 KHz Voo = 5V ± 100/0 fEVENT EVENT 135 Voo = 2.7VtoS.SV EVENT Rise and Fall Times icF" tCF 0.2 ~s EVENT EVENT Pulse Mdth tXH' tXL 1.5 3.5 .s EVENT Voo = 5V ± 10% Voo = 2.7VtoS.SV 4.0 Von = SV ± 10% SCK Is an input 7.0 Voo - 2.7V to 5.5V SCK Cycle nme ,"Cy 6.7 .s Voo - 5V ± 10% SCK is an output 14.0 Voo = 2.1V to S.SV 1.8 Voo = SV ± 10% SCK Pulse Width tKH"~L 3.3 3.0 .s SCK is an Input SCK is an output Voo = 2.7VtoS.SV Voo = SV ± 10% 6.5 Voo = 2.7VtoS.SV 51 Setup Time to SCK i lSi. 300 ns SI Hold Time after SCK i t KSI 450 n. 850 Voo = SV ± 10% SO Delay Time after SCK ! t KSO ns 1200 Voo = 2.7V to S.5V 1I(21~"800) Voo = 5V ± 10% Port 1 Output Setull Time to P STB i tpST ns 1/(21","2000) Voo = 2.7VtoS.5V 300 350 500 Voo = 5V ± 10% Port 1 Output Hold Time after PSTS i tSTP ns 300 1500 Voo = 2.7Vto 5.SV 1/(21","800) Voo = SV ± 10% P STS Pulse Width t.SWl ns INto Pulse Width ~OH' tlOL 1/(21~"2000) 10 .s Voo = 2.7V to S.SV INT, Pulse Width RESET Pulse Width tl,WH,t'lWL tASH'tRSL 21'$ 10 .s Capacitance T. = 25·C, voo = OV Limits Test Parameter Symbol Min Typ Ma' Unit Conditions Input Capacitance C, 15 pF f= 1 MHz Output Capacitance Co 15 pF Unmeasured pins Input/Output Capacitance ClIO 15 pF returned to Vss 3-78 f.LPD7508H Timing Waveforms Xl~~~r_tc,~~."It= '"~ Clocks Serial Interlace t Key y ~'----------- - _ _ _ _ _ _ _ _ _ _- ' - V'H V,L - t", _ _ _ _oJ ~--------t:"~1 _VIH 1"-_ _ _ _ _ _ _ _ _ _- - VIL Sl _ _ _ _ _ _ _ -!____Jr-v....--... ~ ln~pu_t~D~at~._~,-,---------------~--VIH __ Valid -VIL SO~-----t-KSO?-------- ~_ _ _ _ _ _ _ _ _V._lid~OU=tP=u~t:Da:ta~_ _ _ _ _~)( -VIH -------' II VIL Output Strobe P1o·PI3'------------1 t psT - - - - ___ J PSTS---------- ... -----, -VIH -VIL .,.,, _ _ _-1_ External Interrupts INTo_~_t'" -----.:.IF '~H ==t '--_________ -VIH VIL INT1--.i 1_----.:; t " - F "H ===-\ ~_________ - VIH VIL RESET_~~:t_RS'_~_IRSH Reset - \ -VIH '--_ _ _ _ _ _ _ _ _. VIL VDD---------~~D Data Retent/on Mode 1- ata Retention MOde----t I RESET----.....:lH ~ hdt -t,,-RS------ _VIH ___________________ -~~DoR VIL DR 3-79 Package Outlines For Information, se. Package Outlin. Section 7. Plastic, ",PD7508HC Plaatic Shrlnkdlp, ",PD7508HCU 3-80 7508HD8-Rev1-7-83-CAT-L NEe f.1PD7514 CMOS 4·BIT SINGLE CHIP MICROCOMPUTER WITH LCD CONTROLLERIDRIVER Description Pin Configuration The fLPD7514 CMOS 4-bit single chip microcomputer ;~~~~~~~~~~~~~~M °1'" !zoo_ has the standard fLPD750X architecture. It contains 4K x o.D.o..D.o..D.o.D.D.D.D.a.D.a.D.a. S-bits of program memory ROM, 256 x 4-bits of data memory RAM, an S-bit timer/event counter, and an S-bit serial interface. P4, Vss P4, P3, The on-chip LCD controller/driver is capable of driving a x, P3, variety of LCD displays configured from biplexed to quad- x, PI, riplexed (2-4 backplane). It can utilize up to 32 segment VLC3 PI, and 4 common drive lines that are output from a 12S-bit VLC2 PI, VLC1 PI, (32 x 4) display data memory. COM 3 P2 olPS'i'B The fLPD7514 also features 4 vectored interrupts (2 internal COM 2 P2,IPTOUT IJ and 2 external) and 2 standby modes. It is available in the COM, P2, SO-pin plastic flat package to conserve space and is man- COMo P7, S" P7, ufactured with a low power consumption CMOS process P7, S" allowing the use of a single 5V power supply. A powerful 92 So. P7, instruction set (subset of fLPD750X Instruction Set A) S" CL, allows greater software flexibility. S" CL, S" RESET The fLPD7514 is capable of forming a system with a INn S" minimum amount of additional circuitry. It is designed to S" S, operate with low power and can be used for a wide variety S" S, of applications because the chip can generate a reference S" S, S" S, clock for timer operations. NC NC S" S, Features o 4-bit single chip microcomputer o 92 instructions (subset of fLPD7500 set A) o Instruction cycle: 5fLS/400kHz at 5V o Program memory (ROM): 4096 x S bits Pin Identification o Data memory (RAM): 256 x 4 bits Pin Function o Vectored interrupts: 2 externals, 2 internals No. Symbol OS-bit timer/event counter VO 110 pins (4 bl1s) of Port 4 (4-blt 110 port). OS-bit serial interface Count Clock Oscillation pins to be connected to crystal. Xl Is for External Clock input. o On-Chip LCD controller/driver LCD bias voltage supply Input pins. -1/2 bias: biplexed, triplexed LCD common signal output pins. -1/3 bias: triplexed, quadriplexed 12-22. - Segment outputs: 32 lines ~:=!~: S,-5" LCD segment signal output pins. - Common outputs: 4 lines 43-46 o Standby modes (stop/halt) 33 Voo Power supply positive. External Interrupt Input pin. o Low-power data retention capability 47 48 INT1 RESET Reset Input pin. o 31110 lines 49, 50 ell' c~ System Clock Oscillation pins to be connected to Re. el, IS tor External Clock mput. Dan-chip RC oscillator for system clock 51-54 P7o-P73 110 ItO pins (4 bits) of Port 7 (4---blt 1/0 port~ o On-chip crystal oscillator for count clock 55 P2, Output pins (3 bits) of Port 2 (3·bit output port). Com~ o CMOS technology 56 57 P21/PTOUT P2,lPSTB monly used as Strobe output (PSTB) for Port 1 output. TOUT output (PTOUT). o Single power supply 58-61 P1 o-P1 3 110 1/0 pins (4 bits) of Port 1 (4·blt 1/0 port), not including o SO-pin plastic flat package 62,63, P3 -pa 0 3 latches. Output pins (4 bits) of Port 3 (4·bit output port~ 65,66 64 V.. Ground. 67 PO,lSI Input pms (4 bits) of Port 0 (4-bit input port). Com- 68 Po,lSO 1/0 monly uSf!!l!!.lnterrupt Request input (INTO). Serial 69 P01/SCK 110 Clock 1/0 (SCK). Serial Data Input (51), Serial Data out· 70 PO,tINTO pul (SO, 71-74 P6o-P6 3 If0 1/0 pins (4 bits) of Port 6 (programmable 4~blt I/O port). 75-78 PS,-P5, 1/0 110 pins (4 bits) of Port 5 (4~bit 110 port). 3-S1 f.1PD7514 Block Diagra lTl SCKlPO, Sl/POa x, x, INT1 INTO/POo SOfPO:z ~~~o PTOUT/P2 1 Program Memory 4096 x 8 Bits Instruction Decocter P70-P7 3 3-82 j.LPD7514 Program Memory Map Program Memory (ROM) Program Memory is a mask-programmable ROM of 4096- T OOOH RESET Start Address word x 8-bit configuration, and is addressed by the program counter. Program Memory stores programs and table data. OtOH INTT Start Addreas The address locations of the program memory are from 020H INTO/S Start Address OOOH to FFFH. RESET, Interrupt, start address, and the O3OH INT1 Start Addres8 table areas of LHLT and CALT instructions have been allo- Subroutine cated specific memory locations. When a program is OCOH Entry Look-up Table 01 generated, the aforementioned memory locations must be I LHLT Instruction OCFH taken into consideration. ODOH Look·up Table 01 CALT Instruction (Can Addre.. Table) OFFH 7FFH11-------11 FFFH TL..-------IT Timer/Event Counter Configuration f-_-- (Co,ncld.nce SIgnal) INTT CP f-+-.-- TOur (10 Seroallntertace) Timer Re.... PlOUT CM, - - - - L . . . / Not. .: R 1----+---- INTS POd'NTO RS F F Q S 1------- SIC" Notea. - u o , "- &5V ~~ ~ C" u >- ~ 100 "-i~ o o 8: ~ ~ ~ 100 0 50 L. 50 100 200 500 100 200 300 400 500 OSCillation Frequency t, (KHz) Resistance R (K ohms) Note: ,<~ A" '" 1'<-: : - 0 ", roM tmPGtII ,,1'02716 0 (EMOMI '" 0 , ~ ~ STEP IIREAK , t= ACC/f'C '00 '" 0 J ~ '-- SF 6 6 1 : ).IPD556 2 : Pull-Up Resistors 3 : ).IPC7905 (3-Terminal 5 Volt Voltage Regulator) 4: ).IPD2716 (EPROM) 5 : ).IPD546C/).IPD547C Compatible Pins (42 Pins) 6 : EPROM Write Pads (24 Pads) Operating Temperature ..... . -10°Cto+70°C ABSOLUTE MAXIMUM Storage Temperature. -25°C to +85°C RATINGS* Supply Voltage, VGG -15 to +O.3V Input Voltages .... . -15to+O.3V Output Voltages . . . . . . . . . . . -15 to +O.3V Output Current (Total, all ports) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -4mA Ta=25°C *COMMENT: Stress above those listed under" Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. 3 -114 MC·430P MC-430P 42-PIN OPERATING SPECI FICATIONS DC CHARACTERISTICS T a'" _1O e to +70"C VGG '" -10V + 10% VSS = av· O LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Ports A through 0, INT, Input Voltage HIgh V,H 0 -20 V RESET Ports A through 0, INT, Input Voltage Low V,l -43 VGG V RESET Clock Voltage HIgh V"H 0 -08 V CLO Input, External Clock Clock Voltage Low V"L -60 VGG V CLO Input, External Clock Ports A through D. INT, Input Leakage Current High IUH +10 "A RESET. V, = -1V Ports A through D, tNT, Input Leakage Current Low 'Lll -10 "A RESET, VI = ~11V Glock Input Leakage Current High ILtPH +200 "A CLO Input, V$H = OV Clock Input Leakage Current Low ILcJlL -200 "A CLolnput,VI,bL=-11V Ports C through I, 11 VOH, -1 0 V IOH = ~1 0 mA Output Voltage High Ports C through I, VOH2 -23 V tOH = -3.3 rnA Ports C through I, Output Leakage Current Low 'lOl -10 "A VO"'-1'V Supply Current IGG -110 -165 rnA AC CHARACTERISTICS T a"" -10G e to +70"e, VGG '" -10V :!: 10% liMITS TEST PARAMETER SYMBOL MIN TVP MAX UNIT CONDITIONS Oscillator Frequency f 150 440 KH, Rise and ~all Times tr,tf 0 0.3 ,JS Clock Pulse Width High Clock Pulse Width Low t~WH t~wl 0.5 0.5 5.6 5.6 .'"' EXTERNAL CLOCK Ta = 2SG C CAPACIT ANCE liMITS TEST PARAMETER SYMBOL MIN TVP MAX UNIT CONDITIONS Input Capacitance CI 15 pF Output Capacitance Co 40 pF f '" 1 MHz Input/Output Capacitance C,O 30 pF CLOCK WAVEFORM 1-----1/f-.:-----1 3-115 MC·430P MC·430P 24·PAD ~PD2716 UV·EPROM PROGRAMMING SPECIFICATIONS PROGRAM, PROGRAM VERIFY AND PROGRAM INHIBIT MODE DC CHARACTERISTICS Ta = 25°C ± SoC, VCC CD = +5V ± 5%, Vpp 0@ = +25V ± 1V LIMITS PARAMETER SYMBOL MIN. TYP MAX. UNIT TEST CONDITIONS Input High Voltage V,H +20 Vee +1 V Input Low Voltage V ,L ..()1 +08 V Input Leakage Current I,L il0 .A V IN ;;; 525V/O.45V Vpp Current IpP1 +5 +30 mA mA CE/PGM = V IL :=: ~e::Zt CE/PGM .. V I H Program Mode IpP2 Vee Current' ICC +100 mA PROGRAM, PROGRAM VERIFY AND PROGRAM INHIBIT MODE AC CHARACTERISTICS Ta = 25°C ± 5°C, VCC CD= +5V ± 5%, Vpp~= +25V ± 1V LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNITS CONDITIONS Address Setup Time tAS 2 I'S OE Setup Time tOES 2 I'S Data Setup Time tDS 2 I'S Address Hold Time tAH 2 I'S OE Hold Time tOEH 2 I'S Data Hold Time tDH 2 I'S Output Enable to Output Float Delay tDF 0 120 ns CE/PGM = VIL Output Enable to Output Delay tOE 120 ns CE/PGM = VIL Program Pulse Width tpw 45 50 55 m$ Program Pulse Rise Time tpRT 5 ns Program Pulse F all Time tpFT 5 ns Test Conditions Input Pulse Levels o BV to 2 2V Output Timing Reference Level O.BV and 2V Input Timing Reference Level .. 1V and 2V Nom CD Vee must be applied Simultaneously or before Vpp and removed after Vpp @ Outing programming, program Inhibit, and program verlfV.,8 maximum of +26V should be applied to the Vpp pin Ovenhoot voltages to be generated by the Vpp power supply should be limited t9 less than +26V CAPACITANCE LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Input Capacitance CIN 60 pF VIN = OV Output Capacitance COUT 45 pF VOUT= OV 3-116 MC·430P PROGRAM MODE TIMING WAVEFORM "0-10 VALID INPUT OQ.) ADDRESS N + m tDF CE/PGM Package Outlines II For information, see Package Outline Section 7. Cerdip, MC-430PD MC-430Pds-12-81-CAT 3-117 NOTES 3-118 NEe SINGLE CHIP a·BIT MICROCOMPUTERS II NEe ",PD7800 HIGH END SINGLE CHIP 8-BIT MICROCOMPUTER ROM-LESS DEVELOPMENT DEVICE DESCR IPTION The NEC /JPD7800 is an advanced 8-bit general purpose single-chip microcomputer fabricated with N-channel Silicon Gate MOS Technology_ Intended as a ROM-less development device for NEC /JPD780 117802 designs, the /JPD7800 can also be used as a powerful microprocessor in volume production enabling program memory flexi- bility. Basic on-chip functional blocks include 128 bytes of RAM data memory, 8-bit ALU, 321/0 lines, Serial I/O port, and 12-bit timer. Fully compatible with the industry standard 8080A bus structure, expanded system operation can be easily implemented using any of 8080A/8085A peripheral and memory products. Total memory address space is 64K bytes. F EATU R ES • NMOS Silicon Gate Technology Requiring Single +5V Supply. • Single-Chip Microcomputer with On-Chip ALU, RAM and I/O - 128 Bytes RAM - 32 I/O lines • Internal 12-Bit Programmable Timer • On-Chip 1 MHz Serial Port • Five-Level Vectored, Prioritized Interrupt Structure II - Serial Port - Timer - 3 External Interrupts • Bus Expansion Capabilities - Fully 8080A Bus Compatible - 64K Byte Memory Address Range • Wait State Capability • Alternate Z80™ Type Register Set • Powerful 140 Instruction Set • 8 Address Modes; Including Auto-Increment/Decrement • Multi-Level Stack-Capabilities • Fast 2/Js Cycle Time • Bus Sharing Capabilities PIN CONFIGURATION A~ DB7 DBS DB5 DB4 DB3 DB2 DB, DBO INT2 INf, ~ M' "PO WI\ 7800 1fD PC7 Pte PCs PC4 Pe3 PC2 PC, ~ SI SO A'ESE'f STe x, VSS (OV) TM: Z80 is a registered trademark of Zilog, Inc. Rev/2 4-1 IlPD7800 PIN DESCRIPTION PIN NO DESIGNATION FUNCTION 1,49-63 ABO-AB15 (Tri-State, Output) 16-bit address bus_ 2 EXT (Output) EXT is used to simulate j.lPD780117802 external memory reference operation_ EXT distin- guishes between internal and external memory references, and goes low when locations 4096 through 65407 are accessed_ 3-10 DBO-DB7 (Tri-State Input/Output, active high) 8-bit true bi-directional data bus used for external data exchanges with I/O and memory_ 11 INTO (Input, active high) Level-sensitive interrupt input_ 12 INT1 (Input, active high) Rising-edge sensitive interrupt input. Interrupts are initiated on low-to-high transi- tions, providing interrupts are enabled. 13 INT2 (Input) INT2 is an edge sensitive interrupt input where the desired activation transition is pro- grammable. By setting the ES bit in the Mask Register to a 1, INT2 is rising edge sensitive. When ES is set to 0, INT2 is falling edge sensitive. 14 WAIT (Input, active low) WAIT, when active, extends read or write timing to interface with slower external memory or I/O. WAIT is sampled at the end of T 2, if active processor enters a wait state TW and remains in that state as long as WAIT is active. 15 M1 (Output, active high) when active, M1 indicates that the current machine cycle is an OP CODE FETCH_ 16 WR (Tri-State Output, active low) WR, when active, indicates that the data bus holds valid data. Used as a strobe ~al for external memory or I/O write operations. WR goes to the high impedance state during HALT, HOLD, or RESET. 17 RD (Tri-State Output, active low) Frn is used as a strobe to ~e data from external devices on the data bus. RD goes to the high impedance state during HALT, HOLD, and RESET_ 18-25 PCO-PC7 (Input/Output) 8-bit I/O configured as a nibble I/O port or as control lines. 26 SCK (Input/Output) SCK provides control clocks for Serial Port Input/Output operations_ Data on the SI line is clocked into the Serial Register on the ris- ing edge_ Contents of the Serial Register is clocked onto SO line on falling edges_ 27 SI (Input) Serial data is input to the processor through the SI line. Data is clocked into the Serial Register MSB to LSB with the rising edge of SCK_ 28 SO (Output) SO is the Serial Output Port. Serial data is output on this HilS on the falling edge of SCK, MSB to lSB. 29 R3E'f (Input, active low) ~initializes the j.lPD7800. 30 STB (Output) Used to simulate /-lPD780117802 Port E operation, indicating that a Port E operation is being performed when active. 31 Xl (Input) Clock Input 33-40 PAO-PM (Output) 8-bit output port with latch capability. 41-48 PBO-PB7 (Tri-State Input/Output) 8-bit programmable I/O port. Each line configurable independently as an input or output. ",PD7800 BLOCK DIAGRAM ~ AB6-15 '6 ill "'" AB()"7 INC/DEC INTO PC SP INT, V A INT DATA CONTROL } MAIN MEMORY D G.R (128 BYTE) INT2 I H V A C ALT D G.R PC4(TO II PA7-O PC]i PCflI AD Wit pe5/IOIM M1 WAIT RESET STa EXT Vee Vss X1 HOLD HLDA 4-3 ,..PD7800 Architecturally consistent with ~PD7801/7802 devices, the ~PD7800 uses a slightly FUNCTIONAL DESCRIPTION different pin-out to accommodate for the address bus and lack of on-chip clock generator. For complete ~PD7800 functional operation, please refer to ~PD7801 product information_ Listed below are functional differences that exist between ~PD7800 and ~PD7801 devices. j.lPD7800/7801 Functional Differences 1. The functionality of ~PD7801 Port E is somewhat different on the j.lPD7800. Because the ~PD7800 contains no program memory, the address bus is made accessible to address external program memory. Thus, lines normally used for Port E operation with the j.lPD7801 are used as the address bus on the IlPD7800. ABO- AB15 is active during memory access 0 through 4095. 2. Consequently Port E instructions (PEX, PEN, and PER) havE! different functionality . PEX Instruction - The contents of Bane! C register are output to the address bus. The value 01 H is output to the data bus. STB becomes active. PEN InstrUction - B and C register contents are output to the address bus. The value 02H is output to the data bus. STB becomes active. PER Instruction - The a~dress bus goes to the high impedance state. The value 04H is output to the data bus. STB becomes active. 3. ON-CHIP CLOCK GENERATOR. The IlPD7800 contains no internal clock gener- ator. An external clock source is input to the Xl input. 4_ PIN 30. This pin functions as the X2 crystal connection on the IlPD7801. On the IlPD7800, pin 30 functions as a strobe output (STB) and becomes active when a Port E instruction is executed. This control signal is useful in simulating ~PD7801 Port E operation - indicating that a port E operation is being performed. 5. PIN 2. Functions as the 4> out clock output used for synchronizing system external memory and I/O devices, on the ~D7801. On the ~PD7800, this pin is used to simulate external memory reference oPeration of the j.lPD7801. EXT is used to distinguish between internal and external memory references and goes low when location 4096 through a5407 are accessed. RECOMMENDED CLOCK DRIVE CIRCUIT I. ~ __""_o+· ,.,07800 10K 31 Xl C.DOMHz 4-4 ",PD7800 ABSOLUTE MAXIMUM Operating Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -10oe to +70o e RATINGS* Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -65°e to +150°C Voltage On Any Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . - O.3V to +7 .OV 'COMMENT: Stress above those lISted under "Absolute Maximum Ratmgs" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those mdicated in the operational sections of this specification is not Implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. DC CHARACTERISTICS Ta = -10°C - +70°C, VCc= +5.0V ± 10% LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNITS CONDITIONS Input Low Voltage VIL 0 0.8 V VIH1 2.0 VCC V Except SCK, X1 Input High Voltage VIH2 3.8 VCC V SCK,X1 OUtput Low Voltage Output High Voltage Low Level Input Leakage Current VOL VOH1 VOH2 ILiL 2.4 2.0 -10 0.45 V V V I'A IOL= 2.0mA IOH=-1OO I'A IOH =-500I'A VIN =OV II High Level Input Leakage Current ILiH 10 I'A VIN = VCC Low Level Output Leakage Current ILOL -10 I'A VOUT=045V High Level Output Leakage Current ILOH 10 I'A VOUT = VCC VCC Power Supply Current ICC 110 200 mA CAPACITANCE Ta=25°C,Vcc=GND=OV LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNITS CONDITIONS Input Capacitance CI 10 pF fc = 1 MHz Output Capacitance Co 20 pF All pms not under test at OV Input/Output Capacitance CIO 20 pF 4-5 ,..PD7800 Ta ~ -10'C to +70'C. VCC ~ +5.0V ± 10% AC CHARACTERISTICS CLOCK TIMING LIMITS TEST PARAMETER SYMBOL MIN MAX UNITS CONDITIONS XOUT Cycle Time tCYX 454 2000 ns tCYX XOUT Low Level Width tXXL 212 ns tXXL XOUT High Level Width tXXH 212 ns tXXH READIWRITE OPERATION LIMITS TEST PARAMETER SYMBOL MIN MAX UNITS CONDITIONS RD L.E. - X OUT L.E. tRX 20 ns Address (PEO.15) - Data tADl 550+500xN ns Input RD T.E. - Address tRA 200(T3); 700(T4) ns RD L.E. - Data Input tRD 350 + 500 x N ns l'ilJT.E. - Data Hold tRDH 0 ns Time RD Low Level Width tRR 850+500xN ns RD L.E. - WAIT L.E. tRWT 450 ns Address (PEO.15)- tAWTl 650 ns WAIT L.E. WAIT Set Up Time tWTS 180 ns (Referenced from XOUT L.E.) WAIT Hold Time tWTH 0 120 ns (Referenced from X OUT L.E.l Ml ... RD L.E. tMR 200 ns tCYX ~ 500 ns RDT.E .... M1 tRM 200 ns IO/1'iif "'1iU L.E. tlR 200 ns "R15 T.E .... 101M tRI 200 ns X OUT L.E .... WR L.E. txw 270 ns Address (PEO.15)'" tAX 300 ns XOUTT.E. Address (PEO.15)'" tAD2 450 ns Data Output Data Output ... WR tDW 600+500xN ns T.E. WR T.E .... Data tWD 150 ns Stabilization Time Address (PEO.15) ... tAW 400 ns WR L.E. W!'! T.E .... Address tWA 200 ns Stabilization Time WR Low Level Width tww 600+500xN ns loffiil... WR L.E. tlW 500 ns WI'! T.E .... IOiM tWI 250 ns 4-6 "PD7800 AC CHARACTERISTICS SERIAL I/O OPERATION (CONT.) PARAMETER SYMBOL MIN MAX UNIT CONDITION SOO ns SCK Input SCK Cycle Time tCYK 900 4000 ns SCK Output 350 ns SCK Input SCK Low Level Width tKKL 400 ns SCK Output 350 ns SCK Inp t SCK HIgh Level Width tKKH 400 ns SCK Output SI Set·Up TIme (referenced from SCK T.E.) tSIS 80 ns SI Hold Time (referenced from SCK T.E.) tSIH 260 ns SCK L.E. ~ SO Delay Time tKO 1S0 ns ~High -+ SCK L.E. tCSK 100 ns SCK T.E. -+ SCS Low tKCS 100 ns SCK T.E. -+ SAK Low tKSA 260 ns PEN, PEX, PER OPERATION PARAMETER SYMBOL MIN MAX UNIT CONDITION X1 L.E. -+ EXT tXE 250 ns Address (ABO.1S) ~ STB L.E. tAST 200 Data (DBO.7) ~ STB L.E. STB Hold Time STB ~ Data HOLD OPERATION tDST tSTST tSTD 200 300 400 tCYX = 500 ns lEI PARAMETER SYMBOL MIN MAX UNIT CONDITION HOLD Set·Up Time (referenced from tHDSl 100 ns X OUT L.E.) tHDS2 lUU ns HOLD Hold Time (referenced from ~OUT tHDH 100 ns L.E.! XOUT L.E. -+ HLDA tXHA 100 ns HLDA High ~ Bus Floating (High Z State) tHABF -150 150 ns H LOA Low ~ Bus Enable tHABE 350 ns Notes: EO/ABO- (Tri·State, Output) 16-bit address bus. 1 PE15/AB15 2 454 2000 ns cj>OUT Low Level Width tcj>cj>L 150 ns cj>OUT High Level Width tcj>cj>H 150 ns cj>OUT Rise/F.II Time tr,tf 40 ns REAO/WRITE OPERATION LIMITS TEST PARAMETER SYMBOL MIN MAX UNITS CONDITIONS 'J!m L.E ..... cj>OUT L.E. tRcj>' 100 ns Address (PEO.1S) .... Data tADl 550+5OOxN ns Input mJT.E ..... Address tRA 2oo(T3); 7oo(T4) ns Rri L,E ..... Data Input lAD 350 + 500 x N ns 1rn"T.E, .... Data Hold tRDH 0 ns Time 1f[) Low Level Width tRR 850+500xN ns FiD"L.E ..... WAlT L.E. tRWT 450 ns Addre$s (PEO.15) .... tAWTl 650 ns WAIT L.E. WAIT Set Up Time tWTS 290 ns IRefereneed from cj>OUT L.E.) I WAIT Hold Time tWTH 0 120 ns (Referenced from cj>OUT L.E.l Ml .... RD"L.E. tMR 200 ns FmT,E ..... Ml ns tCYcj>. = 500 ns tRM 200 101M ... 1'ro L.E. liR 200 ns Fm T.E .... 101M' tRI 200 ns cj>OUT L.E, .... WR L.E. tcj>'lI! 40 125 ns Address (PEO.15) .... tAcj> 100 ns 4>OUTT.E. Address (PEO.15) .... tAD2 450 ns Data Qutput Data Output ....'WFf tow 6!lO + 500 x N ns T.E. WRT.E ..... Data two '160 ns Stabilization Time Address (PEO.15)'" tAW 400 ns 'WAL.E. WR T.E .... Address tWA 200 ns Stabilization Time WR Low Lavel Width tww 6OO+500xN nl IOI1\lf... WR L.E. tlW 500 ns WRT.E .... IO/M tWI 260 ns 4-30 jJ..PD7801/7802 AC CHARACTERISTICS (CONT.) SERIAL I/O OPERATION PARAMETER SYMBOL MIN MAX UNIT CONDITION BOO ns SCK Input SCK Cycle Time tCYK 900 4000 ns SCK Output 350 ns SCK Input SCi< Low Level Width tKKL 400 ns SCK Output 350 ns SCK Input SCi< HIgh Level Width tKKH 400 ns SCK Output SI Set-Up Time (referenced from SCK T.E.) tSIS 80 ns SI Hold Time (referenced from SCK T.E.) tSIH 260 ns "SCi< L.E. -+ SO Delay Time tKO lBO ns ~Hlgh -+ SCK L.E. tCSK 100 ns SCK T.E. -+ SCS Low tKCS 100 ns SCK T.E. -+ SAK Low tKSA 260 ns HOLD OPERATION PARAMETER SYMBOL MIN MAX UNIT CONDITION HOLD Set-Up Time (referenced from SOUT L.E.) HOLD Hold TIme (referenced from SOUT L.E.l /60UT L.E. -+ HLDA tHDSl tHDS2 tHDH tDHA 200 200 110 0 100 ns ns ns ns tCY = 500 ns II HLDA High -+ Bus Floating (High Z State) tHABF -150 150 ns H LOA Low -+ Bus Enable tHABE 350 ns Notes: DEPENDENT AC PARAMETERS AC CHARACTERISTICS (CONT.) PARAMETER EQUATION MINIMAX UNIT tRt/> (1/5) T MIN ns tADl (3/2 + N) T - 200 MAX ns tRA (T3) (1/2) T - 50 MIN ns tRA (T4) (3/2) T- 50 MIN ns tRD (1+N)T-150 MAX ns tRR (2+N)T-150 MIN ns tRWT (3/2) T- 300 MAX ns tAWTl (2) T- 350 MAX ns tMR (1/2) T - 50 MIN ns tRM (1/2) T- 50 MIN ns tlR (1/2) T - 50 MIN ns tRI (1/2) T- 50 MIN ns t,pW (1/4) T MAX ns tAt/> (1/5) T MIN ns tAD2 T 50 MIN ns tDW (3/2+ N) T- 150 MIN ns twD (1/2) T - 100 MIN ns tAW T- 100 MIN ns tWA (1/2) T - 50 MIN ns tww (3/2+ N) T- 150 MIN ns tlW T MIN ns twl (1/2) T MIN ns tHABE (1/2) T- 150 MAX ns Notes: - - - - - - - - ' (CaNT.) tIJtJl'lr~""ith~t~~ ____________ _ or PEX instruction. Port B 8-bit programmable InllIJt/Qutpu!P0rt-"'i!l1latch ___ _ D 16-bit address bus -the PER Instruction sets this Po~_6-bit nibble 1/0 or Contro--,Ip"-o_rt_ _ _ _ _ _ __ mode for use with external I/O or memory expansion Port E.... __ 16-bit A~ress/O__"_tput port (up to 60K bytes, externally). Port A_ Port A is an 8-bit latched output port. Data can be D 16-bit output port - the PEX instruction sets Port E to readily transferred between the accumulator and the output a 16-bit output port. The contents of Band C registers latch buffers. The contents of the output latches can be appear on PE 8 -PE '5 and PE o-PE respectively. " modified using arithmetic and logic Instructions. Data Address bus AB15-ABo (7aCOS) remains latched at Port A unless acted on by another Port A These lines are the 16 bit-to-bit address bus to the main instruction or a RESET IS issued. memory. The 78C05, having no internal ROM, must Port B_ Port B is an 8-bit I/O port. Data is latched at Port B address the area from 0 to 4096 as external ROM. in both the Input or Output mode. Each bit of Port B can be The 78C05 AB lines are unlike the 78C06 PE lines in that independently set to either Input or Output modes. The they have no internal latches. When the Port E output Mode B register programs the individual lines of Port B to instruction PEX is executed In a 78C05, the register pair be either an Input (Mode Bn = 1) or an Output (Mode Bn~o) BC is output to the AB lines for only one clock cycle during Port C_ Port C is a 6-bit I/O port with internal pull-up the third machine cycle. This is provided to allow external resistors. hardware to emulate the Port E operation of the 78C06. 4-37 fJ.PD78C06178COS Functional Description (Cont.J <--- ------- --------- - --------PEX Instructlon---- - - - - - - - - - - - - - - - - - - - - - - - > 1----1----1----1---- 1----1---- 1----I ---- 1---- 1 ----I ----1---- 1 1, 12 13 14 T, T2 T3 14 T, T2 13 M,-I--------------\~--------------------------------------------- AB~~____~1.~t~B~~e~F~et=ch~____~X~ ______~2~n~d~B~~.~F~etc~h~_____JX~__~B~C__~X~______________ Timer Block DIagram I N 5 T R U C T I O N - - < . . - - - - - - - - - - - - - - - - + - - - - - - . -_____________~--------------___, Prescaler 1 (3) System Clock = Oscillation Frequency x 1/4 Timer operation incremented and a coincidence occurs, an interval interrupt A programmable 8-bit timer is provided on-chip for (INTT) is generated. Count operation may be reinitialized measuring time intervals, generating pulses, and general with the STM instruction. The duration of the timeout may time-related control functions. It is capable of measuring be altered by loading new contents into the timer register. time intervals from 811s to 32ms in duration. The timer con- The timer flip-flop is set by the STM instruction and reset sists of a prescaler which decrements an 8-bit counter at a on a countup operation. Its output (To) is available exter- fixed 811s or 12811S rate. Count pulses are loaded into the nally and may be used for general external 8-bit upcounter through the timer register. synchronization. Countup operation is initiated upon execution of the STM Timer interrupt (INTT) may be disabled through instruction when the contents of the upcounter are fully the interrupt. Serial Port Block Diagram 51 50 Octal Counter T.(INT5) S Start $1/0 R T8 4-38 /J-PD78C06178COS Functional Description (Cont.) 15 Serial port operation PC The on-chip serial port provides basic synchronous serial SP communication functions allowing the NEC fLPD78C06/05 to serially interface with external devices. Serial transfers are synchronized with either the internal clock or an external clock input (SCK). The transfer rate is fixed at 0.5 Mbitlsecond if the internal clock is used or is variable between DC and 0.5 Mbit/second when an exter- nal clock is used. The Clock Source Select is determined by the Mode C register. The serial clock (internal or exter- nal SCK) is enabled when the Serial Chip Select signal (SCS) goes low. At this time receive and transmit opera- tions through the Serial Input port (SI)/Serial Output port General purpose registers. The general purpose regis- ters A, B, C, 0, E, H, l, can function as auxiliary registers to (SO) are enabled. Receive and transmit operations are the accu~~lator or in pairs as data pointers (BC, DE, HL). performed MSB first. Auto~~t!C Increment and decrement addressing mode capabilities extend the uses for the DE and HL regis- Interrupt structure ter pairs. The fLPD78C06/05 prOVide a maskable Interrupt Accumulator (A) structure capable of handling vectored prioritized All data transfers between the fLPD78C06/05 and external interrupts. Interrupts can be generated from six different memory or 1/0 are done through the accumulator. sources: two external interrupts, two internal interrupts, Program counter (PC) and nonmaskable software interrupt. When activated each interrupt branches to a designated memory' vch The PC is a 16-bit register containing the address of the II interrupt branches to a designated memory vector location next instruction to be fetched. Under normal program flow, for that interrupt. the PC is automatically Incremented. However, in the case of a branch instruction, the PC contents are from another Interrupt Structure register or an instruction's immediate data. A reset sets the PC to OOOOH' Vectored Memory Stack pointer (SP) INT Type Location Priority Internal, Timer The stack pointer is a 16-bit register used to maintain the INTT Overflow top of the stack area (Iast-In/flrst-out). The contents of the INT. External, level sensitive SP are decremented during a Call or Push instruction or if External, RIsing edge INT, 16 sensitive an interrupt occurs. The SP is incremented during a Return or POP instruction. RESET (Reset) Address Modes An active-low signal on this input for more than 4f.Ls forces the fLPD780C06/05 into a Reset condition. RESET affects Register addressing Working-register the following internal functions: Register indirect addressing Direct addressing o The Interrupt Enable flags are reset, and interrupts addressing Automatic increment Immediate addressing are inhibited. Immediate extended o The Interrupt Request flag is reset. addressing Automatic decrement addressing o The Halt flip-flop is reset, and the Halt state is released. addressing o The contents of the Mode B register are set to FF H , and Port B becomes an input port. Register addressing o All flags are reset to O. r o The internal Count register for timer operation is set to ~ .~ FFH and the timer F/F is reset. o The contents of the prQg!am counter are set to OOOOH' The instruction opcode specifies a register r which contains o Data bus (DBo-DB7)' RD, and WR go to a high imped- the operand. ance state. Register indirect addressing Once the RESET input goes high, the program is started at location OOOOH' Registers The instruction opcode specifies a register pair which con- The fLPD78C06/05 contain seven 8-bit registers and two 16-bit registers. tains the memory address of the operand. Mnemonics with an X suffix are ending this address mode. 4-39 /-LPD78C06IVac05 Address Modes (Cont.) Instruction Set Definitions Automatic increment addressing Operand Description rp Memory r A,B,C,D,E,H,L ~------------~'~~-----~~----~.~ rl B,C,D,E,H,L r2 A,B,C '------1- EI sr PA, PB, PC, MK, MB, TM., TM" S, SM,SC The opcode specifies a register pair which contains the srl PA, PB, PC, MK, S, TM., TM " SC memory address of the operand. The contents of the regis- PA, PB, PC, MK sr2 ter pair are automatically incremented to point to a new rp SP, B, D, H operand. This mode provides automatic sequential step- B,D,H rpl ping when working with a table of operands. rpa B, D, H, D+, H+, D-, H- Automatic decrement addressing wa 8-bit immediate data rp Memory word la-bit immediate data ~r-------------'I~r-----~~------'Io~~ndl byte bit B-bit immediate date 3-bit immediate data '-------1- G if F FO,l, FT, FS CY,Z Working-register addressing Not.s: 1. When special register operands sr, sr1, sr2 are used, PA = Port A, PB = Port B, PC = Port C, MK = Mask register, MB = Mode B register, MC = Mode C Register, TM. = PC Memory Timer register 0, TM, = Timer register 1, S = Senal register. 2. When regi~ter pair ~perands_rp, rp1 are used, SP = Stack PC + 1 I Operand I Pointer, B - BC, D - DE, H - HL. 3. Operands rPa, rPa1, wa are used In Indirect addressing and auto-incrementlauto-decrement addressing modes. B = (BC), D = (DE), H = (HL) D+ = (DE)+, H+ = (HL) + ,D- = (DE)-, H- = (HL)-. 4. When the interrupt operand If is used, 1=0 = INTF'O, F1 = INTF1, FT = INTFT, FS = INTFS. The contents of the register are linked with the byte follow- 5. When the operand F is used, CY = Carry and Z = Zero. ing the opcode to form a memory address which contains 6. The V register IS always FFHex. the operand. The V register is used to indicate the mem- Instruction Set ory page. This address mode is useful as a short-offset address mode when working with operands in a common No. Clock Skip ~ Mnemonic Operand Bytes ere••• Operation Condition CV Z memory page where only one additional byte is required 8-bit Data Transfer for the address. Mnemonics with a W suffix indicate MOV r1,A 6 r1-A this address mode. In the 78C06/0S the V register is MOV A, ,1 6 A_r1 always FFH. MOV .r,A 14 sr_A MOV A, .,, 14 A-ar1 Direct addressing MOV r,word 25 ,-(word) MOV word. , 25 (word)-r PC Opcode MYI ',by1e 11 r-byte PC + 1 Low Address IOperand I STAW lOAW wa wa 14 14 (V,wa}_A A_(V,wa) 1 Byte PC + 2 High Address STAX rps 39 ('pa)-A lOAX ,pa A-(rpa) The two bytes following the opcode specify an address of a 9 18·bit Data Tr.n..... location containing the operand. seCD word 28 (word) +- C, (word + 1) +- B Immediate addressing SDED word 28 (_d) - E, (word + 1) - D SHLD _d 28 (word) - L, (word + 1) - H PC (word) - SPL• PC + 1 SSPD _d 28 (word + 1) - SPH Immediate extended addressing LBCD word 4 28 C-(word~ B-(word + 1) Opcode LDED word 4 28 E-(word~ D-(word + 1) PC LHlO word 28 L_(word~ H -(word + 1) Low Operand PC + l' LSPD word 28 SPL-(word~ High Operand SPH-(word + 1) PC + 2 (SP -1)~rp1H' PUSH rp1 21 (SP - 2)-'p1 L rp1 L _(SP) POP rp1 18 rp1 H-(SP + 1~ sp-sp + 2 LXI rp, word 16 rp-word 4-40 f,1PD78C06/78C05 Instruction Set (Cont., Instruction Set (Cont., No. Clock Skip Fla.s No. Clock Skip Flags Mnemonic Operand Bytes Cycl.. Operation Condition CY Z Mnemonic Operand Bytes Cycl•• Operation Condition CV Z Arithmetic Increment/Decrement ADD A" INR r2 r2-r2+1 Carry ADDX rpa 15 A-A + ('pa) INRW WI 13 (V, wo) _ (V, wa) + 1 Carry ADC A,r 12 A_A+r+CY DCA r2 r2_r2-1 Borrow ADCX rpa 15 A_A + (rpa) + CY DCRW WI 13 (V, wa) - (V, wo) - 1 Borrow SUB A" 12 A-A-r INX rp rp_rp+1 SUBX rpa 15 A_A - (rpa) DCX rp rp_rp -1 SBB A,' 12 A_A-r-CY Miscellaneoua SBBX rpa 15 A_A - ('pa) - CY Doclrnal Adjust DAA ADDNC A" No Carry Accumulator ADDNCX rpa 15 A_A + (rpa) No Carry STC CV_1 SUBNB A,' No Borrow CLC CY-O SUBNBX ,po 15 A -A + (rpa) No Borrow Rotate and Shift Logical RLD 17 Rotate Lell Dlg,t ANA A.r RRD 17 Rotate Right Digit ANAX rpa 11115 A_A \ (rpa) Am + 1_Am,Ag_CY, RAL 12 A_AVr CY-#., ORA A,r Am - 1 -Am,A7 -CV, ORAX rpa 15 A-AV(rpa) RAR CY-A. XRA A,r 12 A_AVr Am + 1-Am,Ao-CY, XRAX rpa 15 A_A¥(rpa) RAL CY-A1 OTA A,r 12 A - r-1 No Borrow Jump OTAX rpa 15 A - (rpa) - 1 No Borrow JMP word 10 PC_word LTA A,r 12 A- r Borrow JB LTAX rpa 15 A - (rpa) Borrow JR word 13 PC-PC + 1 + Jdl_p1 II ONA A,r 12 AAr No Zero JRE word 13 PC-PC + 2 + Jdlsp ONAX rpa 15 AA (rpa) No Zero Can OFFA A,r 12 AAr Zero (SP - 1) _(PC - 3)., OFFAX rpa 15 AA (rpa) Zero CALL word 16 (SP - 2) _(PC - 310., NEA A,r 12 A - r No Zero PC-word NEAX rpa 15 A - (rpa) No Zero (SP -1)_(PC - 2)., (SP - 2)_(PC - 2lL, EQA A,r 12 A- r Zero CALF word 16 pet5 -PCt1 -00001, EQAX rpa 15 A - (rpa) Zero petO-pc;. _fa Immedillte Dabi Transfer (Accumulator) (SP - t)_(PC - 1)., (SP - 2)-(PC -IlL, XRI A, byte 2 7/11 A-A¥byte CALT word 19 PCL - (126 - 2Io~ ADINC A, byte 7/11 A-A+byte No Carry PC. - (129 + 2te) SUINB A, byte 7/11 A_A - byte No Borrow btum ADI A, byte 7/11 A_A+byte PCL -(SP~ pc.-(SP + 1) RET 11 SP_SP - 2 ACI A, byte 7/11 A-A + byte + CY SUI A, byte 7/11 A_A - byte RETS SBI A, byte 7/11 A_A - byte - CY PCL -(SP~PC.-(SP + 1) ANI A, byte REn 15 PSW-(SP+2~ ORI A, byte 7/11 A_AVby1e SP-SP+3,SIRQ-O on A, byte 7/11 A - byte - 1 No Borrow Skip LTI A, byte 7/11 A - byte Borrow SKNC SkiP If No Carry CY = 0 DNI A, byte 7/11 AAbyte No Zero 8KNZ Skip d No Zero Z=o OFfi A, byte 7/11 AAbyte Zero SkiP If No INT X NEI A, byte 7/11 A - byte No Zero 8KNIT otherwise reset INT X '=0 EDI A, byte 7/11 A - byte Zero CPU Centrol Immedlat. Dalai Transfer (Specla. Register) NOP No Operation ANI sr2, byte 3 17 sr2 - sr2 A byte EI Enable Interrupt ORI sr2, byte 3 17 .r2 - sr2 V byte DI Disable Interrupt OFFI or2, byte 14 ..2 A byte Zero Serial Por1 Control DNI sr2, byte 14 .r2 A byte No Zero SIO Start (Trigger) SenaillO Working Ragim. S11I'I Start Timer ANIW WI, byte 16 (y, WI) - (y, WI) A byte Port .: Control ORIW WI, byte 16 (y, WI) - (y, wa) V byte PEX 11 PE'5_a-B,PE7_0-C onw wo, byte 13 (y, WI) - byte - 1 No Borrow PER 11 Port E AB Mode LTIW WI, byte 13 (y, WI) - byte Borrow ONIW wo, byte 13 (V, wa) A byte No Zero OFFIW WI, byte 13 (y, wa) A byte Zero NEIW WI, byte 13 (V, wa) - byte No Zero EQIW W8, byte 13 (y, wa) - byte Zero 4-41 f.LPD78C06/78COS Program Status Word (PSW) Operation DC Characteristics Operation D6 D5 D4 D3 D2 DO Ta = -10°Cto + 70°C; Vee = 5V ± 10% Reg. Memory Immediate Skip Z SK He L1 LO CY Limits ADD ADDX ADI Unit Test Conditions Parameter Symbol Min Tvp Max ADC ADCX ACI SUB SUBX SUI SBB SBex SBI Input low Current "'11L"-,_ _-_B=--_ _ _ _-:::90~_ _'.::.A~.:oV'"'N_=--=O"_V-'(W:.cAc:12T,'_P.::.Co"_-,--"PC. 5 ) IIl2 -40 f.l,.A YIN = OV (X,) ANA ANAX ANI ANIW ORA ORAX ORI ORIW Input High leakage ILIH 3 f.l,.A VIN - Vce XRA XRAX XRI Current (Except REl, X,) ~AD:CD:CNccC:---AC::DDNCX AD:cINccc:---- -3 f.l,.A YIN - OV Except WAIT, SUBNB SUBNBX SUINB Input Low Leakage PCO-PC 5 ,X, GTA GTAX GTI GTIW Current -3 f.l,.A YIN - OV lTA LTAX LTI lTIW (Stop Mode, X,) ------ ONAX ONI ONIW Output High p..A YOUT = Vec OFFAX OFFI OFFIW leakage Current NEA NEAX NEI NEIW Output Low 'lOl -3 f.l,.A VOUT = OY EQA EQAX EQI EQIW Leakage Current INR INRW lecl 3.5 6.0 rnA Operation Mode OCR DCRW DAA Vce Supply Current c"'lc...,C2~_ _ _ __:0C_.8-_-c:1.c_B--m-:A-c:Hac_I'-Mc::oC_dc_.-=-= 'ee3 15 f.l,.A Stop Mode (X, - OV, RLL, RLR X2 = Open) RLD- RRD 5TC Low Power Data Memory Retention CLC~_ _ _ _ _ _~~~_ _ _ _ __ Characteristics for Stop Mode Operation _ _ _ _ _ _ _ _--"M::cV~1A., by'. Ta = -10°C to + 70°C MVI L, byte Limits LXI H, word Parameter Symbol Min Typ Max Unit Test Conditions 5KNC Data Retention 5KNZ Voltage VCCDR 2.0 v SKNIT RETS Data Retention Supply Current IceOR 0.8 '5 p..A i~e~~;e2~fV' (X, = OV, ,--_--c--=A-'-II-'o'-'h=er jns.,-'r,-uc=-:'c:.,o"-ns~_ _ _ _ _ _ _ _~_ _ _,-_-,,,-_ _ 0.2YeeDR V Notes: t Flag affected accordmg to result of operation 1 Flag set a Flag reset 0.8VeeDR YCCDR V • Flag not affected REL Input Delay '0 500 .s Absolute Maximum Ratings* Time REL Input High Time tREL 10 .s Notes: In data retention mode. Input voltages to WAIT and PCO-pe 5 pins (with pull-up resistors) ITa = 25°C) should be maintained same as V CCDR level, other Input voltages should be kept less than V CCDR level ~upplyVoltage, Vce -O.3Vto +7.0V Input Voltage, V, - O.3V to Vec + O.3V Output Voltage, Vo - O.3V to Vee + O.3V "O-=u",tp",u",tccH-'Ci",g'-Ch--=C,-,u",r'-Cre=-:n'-Ct",1""0"'HC'(=D-=ec..vi-=c-=e--="-=0'-Cta:::I)'-_.________ .-_5m_~ Output Low Current, 10L (Device Total) 43.5mA -=O-"p-=e.:cra:c:t::.:in,",g...".:ce=-:m=-:po:.e",r-=a",tu:c:r-=e,-,T.:c0....'p=-T'-_ _ _ _ _ _ _ _-10°C to + 70°C Storage Temperature, TSTG - 40°C to + 125°C DC Characteristics *COMMENT: Exposing the device to stresses above Read/Write Operation those listed in Absolute Maximum Ratings could cause Limits permanent damage. The device is not meant to be Parameter Symbol Min Typ Max Unit Test Conditions operated under conditions outside the limits described RD LE to 4>OUT LE 'R. 300 ns in the operational sections of this specification. Expo- Address (PEo-PE ,5) 1200 to Data Input +1000 sure to absolute maximum rating conditions for xN extended periods may affect device reliability. RD TE to Address 'RA 300 (T,) ns 1300 (T,) 700 DC Characteristics RD LE to Data Input tRD + 1000 ns x N Ta = -10°C to + 70°C; Vee = 5V ± 10% RD TE to Data Hold Limits Time Parameter Symbol Min Typ Max Unit Test Conditions 1700 V1H1 O.7Vcc Vee Except D80-DB7, X1 RD low Time 'RR +1000 x N ns Input High Voltage V1H2 Vee - 2.0 Vee DBo-D87 RD LE to WAIT LE 700 ns VIH3 Vee - 0.5 Vee V X,,'_ _ _ _ _ __ Address (PEo-PE,s) 1200 toWAITLE ns V'Ll 0 0.3Vec V Except OBo-DB 7• X, WAIT Set-u p-=T:-'m-.-:'-o-'-WT-S---6-0-0-------n-s Input Low Voltage Bo...-_D_B"-,_ _ _ _~ "V''''12'--_-'''-_ _ _ _-'O-:.Bc-_-ccV_ccD__ 4>OUT lE VIL.3 0.5 V X, : : ; ~Id Time after tWTH ns Output High Voltage VOH1 2.4.-:c:::-_ _ _ _ _~V-C"lo"'-H-=---1=0:=0'::.A"---- VOH2 Vee - 0.5 V IOH = -50f.l,.A t CY '" = 1000ns 200 ns Output Low Voltage Val 0.45 VIOL = 1.8mA 300 ns I'H' 90 f,iA VIN = Vce{REl) ~OUT LE to WR LE tw 250 ns Input High Current . IIH2 40 f.l,.A YIN = Vee (X,) 4-42 I-LPD78C06/78C05 DC Characteristics (Cont.) Capacitance Read/Write Operation T. = 25"C;Vcc = GND = OV Limit. Limits Parameter Symbol Min Typ Max Unit Test Conditions Parameter Symbol Min Typ Max Unit test Conditions Address (PEo-PE 15) Input Capacitance C, 15 pF = Ie 1MHz lAD, 850 ns to Da1a Oulpul Output Capacitance Co 15 pF Unmeasured pms 1200 1/0 Capacitance 15 pF returned to OV CliO Data Output to WR TE tDW +1000 ns x N WR TE to Da1a Stable Time two 300 ns AC Characteristics Address (PEo-PE'5) 800 ns T. = -10"Cto +70·C;Vcc = +5V ± 10% toWRLE lAW Clock Timing WR TE to Address tWA 300 ns Limits Stable Time 1200 Parameter Symbol Min Typ Max Unit Test CondltiDns WRLowTlme Iww +1000 ns X, Input Cycle Time 227 10000 ns teyx xN X, Input Low Time tXXL 108 ns WR LE to WAIT LE Iwwr 250 ns X, Input High Tllne tXXH 106 ns Note.: CD Applies only to IJ.PD78C05 N IS number of TWAIT !POUT Cycle Time Icv. 908 40000 ns LE IS leading edge, and TE IS trailing edge !POUT Low Time 300 ns t...L !POUT High Time t ..H 300 ns Serial Operation !POUT RlselFall Time tR,IF 150 ns Limits Parameter Symbol Min Typ Max Unit Test Conditions 1800 ns SCKlnput SCK Cycle Time IcvK 1818 80000 ns SCKOutpul 700 ns SCKlnput II SCK Low TIme Io384 "" 'XTAL x Vo!e4 Bit Address Instructions Difference between the ILPD7801, ILPD7811, The following bits may be addressed directly with certain ILPD7807, and ILPD7809 instructions: "PD7BOI _7811 ePD7B07 "PD78" o Any bit in a 16-byte group in RAM Number of Instructions 134 158 185 165 o Any bit in the five 8-bitl/O ports (A, B, C, D, F) 1..,1t Operation Instruction No vel Yes Yes o Any bit in the variable threshold port MultiplylDlvide instruction No Yes Yes Yes o Any bit in the following special registers: Instruction Cycle Number of General-purpose 2""14MHz 16 1""112MHz 18 1""112MHz 18 1"",a/12MHz 18 9-bit interrupt mask register, serial mode register, timer FIog"'l8r. mode register, timer/event counter output register On-chlp ROM CapacHy 4K By\8I 4KByte. No 8K By\8I On-chip RAM CapacHy 128 By\8I 256 By\8I 256 Bytel 256 By\8I An addressed bit may be tested, set, cleared, or Dlrect·AcId_ble External complemented. Memory Capacity &oK By1ea &oK By1ea S4K Byte. 56KBy\8I An addressed bit may be moved to or from the carry flag. Interrupt Internal An addressed bit may be ANDed, ORed, X-ORed with the Source External 3 carry flag. 110 Lines 48 40+4 28' 40 Threahold Variable Port No No 8 Bits 8 BI11 Timer 12 BIts 8 Bttax 2 8Bltax2 8 Bttax2 TImer/Counter COunter No 168H8 16Bit8 16 BI1a Watchdog TImor No No Yes Yes Asynchronoul No Yes Yes Yes Serial Interface SynChronous No Yes Yes Yes 1I0Interfaca vel Yes Yes Yes AID Converter No Yes No No Standby Function No Yea Yes Yes Hold function Yes No Yes Yes Technology NMOS NMOS NMOS NMOS Package 64-Pm Flat S4-P,nQUIP S4-PlnQUIP 64-Pm QUIP .. at 4K~byte Access Package Outlines For Information, s_ Package Outline Section 7, Plastic Quil, .,.PD7807G/09G Plastic Shrlnkdlp, .,.PD7809CW/07CW 780917807178P09DS-7-83-CAT-L 4-49 Notes 4-50 NEe J,LPD781 01 J,LPD7811 HIGH-END SINGLE-CHIP 8-BIT MICROCOMPUTER WITH AID CONVERTER Description Pin Configuration The NEC J.1.PD7810/J.1.PD7811 is a high-performance single-chip microcomputer integrating sophisticated on- PA, PA, Vee chip peripheral functionality normally provided by external PA, Voo DB, PA, components. The device's internal 16-bit ALU and data PA, DB, DB, paths, combined with a powerful instruction set and PA, PA,; DB, DB, addressing, make the J.1.PD7810/7811 appropriate in data PA, DB, PB, processing as well as control applications. The device PB, DB, DB, integrates a 16-bit ALU, 4K-ROM, 256-byte RAM with an PB, PB, PF, PF, 8-channel A/D converter, a multifunction 16-bit timer/event PB, PF, PB, PF, counter, two 8-bit timers, a USART and two zero-cross PB, PF, detect Inputs on a single die, to direct the device into fast, PB, pc, PF, PF, high-end processing applications involving analog signal pc, PF, pc, ALE interface and processing. pc, WR pc, lID The J.1.PD7811 is the mask-ROM high volume production pc, AVec device embedded with custom customer program. The pc, VAREF pc, AN, J.1.PD7810 is a ROM-less version for prototyping and small NMI AN, INT1 AN, volume production. The J.1.PD78PG11 E is a piggy-back II MODE1 AN, EPROM version for design development. RESET MODEO AN, AN, Features X, X, AN, AN, o NMOS silicon gate technology requiring + 5V supply V's AVss o Complete single-chip microcomputer - 16-bit ALU - 4K-ROM Pin Identification PIn - 256-byte RAM No. Symllol Function 0441/0 lines Port A: (Three·S1ate InpuVoutpul) a·btI o Two zero-cross detect inputs 1-8 PA,;-PAr programmable 110 port. Each line Independently o Two 8-bit timers programmable.s an Input or output. Reset places all lines of Port A in input mode o Multifunction 16-bit timer/event counter 9-16 PBo-PB, Port B: (Th_atelnpuVoulpul) B-bll o Expansion capabilities programmable 110 port Each line Independently programmable 88 an input or output. Reset places all - 8085A bus compatible hnas of Port B In input mode. - 60K-byte external memory address range 17 PC, PorI C: (Th....state hnsm" Data (TxO): o 8-channel, 8-bit A/D converter input/output) 8-brt programmable 110 port. 58rlal data output termtnal. - Auto scan ---,-----------,,-------~each line Independently ---=Reoa-,-ve--=Data:-:----- 18 PC, - Channel select programmable 8S an Input or output. (RxO): Serial data Input terminal. o Full duplex USART --,--------,,--------A1ternstlvely. Port C may -:--=-=-:----- 19 PC, be used 88 control linea serial Clock - Synchronous and asynchronous for USART and Ilmer. (SCK): SerIal clock o 153 instruction set Reset puts Port C In Port Input/output termmal. mode and all llnel In When Internal clock IS - 16-bit arithmetic, multiply and divide Input mode. used, the output can o 1J.1.s instruction cycle time (12MHz operation) be elected; when an external clock Is used, o Prioritized interrupt structure the Input can be selected. - 2 external 20 PC, Timer Input (TI)/Interrupt request Input (INT,): - 4 internal Timer clock mput o Standby function terminal; can also be used as fallmg edge, o On-Chip clock generator maskable-Interrupt Input o 64-quil package terminal and AC Input zero-cross detection terminal. Tlmer Outpul (TO): ThIs output IlgnallS a square wave whose frequency IS determined by the timer/counter. 22 PC, Counter Inpul (CI): External pulse Input tennlnal to the tlmerl event counter. 23-24 Pc.. PC, Counter Outputs 0, 1 (CO.-CO,): Program· mabla rectangular wave output tennlnal baaed on timer/event counter. 4-51 /-LPD7810/7811 Pin Identification (Cont.) Pin Pin Function Function No. Symbol No. Sy-mbol 25 NMI Failing-edge, nonmaskable interrupt (NMI) input. 44 RD (Three-state output, active low) Ro IS used as a strobe to Q!!e data from external devices onto the 26 INTl This signal is a nsing-edge, maskable Interrupt Input data bus. RD goes high during Reset. This mput is also used to make the zero-cross detection AC Input. 45 WR (Three-state output, active low) WR, when active, indicates that the data bus holds valid data. Used 27 MODEl Used as input in conjunction with MOOEO to select as a strobe ~al for external memory or I/O write appropriate memory expansion mode. Also outputs operations. WR goes high during Reset. M1 Signal during each opcode fetch. 46 ALE The strobe signal is for latchmg the address signal 28 RESET (Input, active low). RESET Initializes the fJ.-PD7811. to the output from Por-PDo when accessing external 29 MODEO Used as input In conjunction with MODEl to select expanSion memory. appropriate memory expanSion mode. Also used to ouputlO/M. 47-54 PFo-PFr Port F: (Three-state Address Bus: When Input/output) S-blt external expansion 30-31 X2,X 1 This IS a crystal connection term mal for system programmable 110 port. memory is used, (crystal) clock oscillation. When an external clock IS supplied Each hne conftgurable multiplexed address/data Xl is the Input. independently as an bus can be selected. 32 Power supply ground potential. Input or output Vss 33 AVss AID converter power supply ground potential. Sets 55-62 oBo-DB 7 Port 0: S-blt Address Bus: When conversion range lower limit. programmable 110 port. external expansion This byte can be memory IS used, 34-41 ANo-AN r Eight analog Inputs to the AID converter. AN r -AN 4 designated as either multiplexed address/data can also be used as a digital Input port for failing input or output. bus can be selected. edge detection. 63 Voo ThiS IS a backup power terminal for on-chip RAM. 42 VAREF Reference voltage for A/o converter. Sets conversion range upper limit. 64 Vcc + 5V power supply. 43 Power supply voltage for AID converter. Not•• : 1 clock cycle = 1 CL = 3/f AVcc 1 machine cycle = 3 or 4 clock cycles 1 InstructIOn cycle = 1 to 19 machine cycles f System clock frequency (MHz) Block Diagram X1~ X2 OSC PC SP 12 pel/hD EA ,. PC1/RxD PC2/SCK Program Memory NMI (8K-Byte) Data Memory INn (256-BYTE) PC3/TI/INT2 PC4/TO PC5/C1 ",,_-'==-?"1 PCB/COO v-----. ____ pe7/COl AN7-0 VAREF AVCC /WSS ~--,,_ _ _ _-, Insl Decoder 11 Vee Vss 4-52 ,...,PD7810n811 Functional Index Memory map The j..LPD7811 can directly address up to 64K-bytes of memory. Except for the on-chip ROM(O-4095) and RAM(65280-65535), any memory location can be used as ROM or RAM. The following memory map defines the 0-64K-byte memory space for the j..LPD7811. Memory Map Reset/Standby Release Internal ROM IROO 4,096 Bytes x B IROl OFFFH 1000H 10H IR02 External Memory 61.184 Byles x 8 18H IR03 II 20H IRQ4 FEFFH FFOOH Internal RAM 256 BytesxB 28H IROS FFFFH 60HI SoftlNT I 80H 81H LowADRS High ADRS }=O Call Table 82H 83H LowADRS High ADRS }=1 '- BEH Low AORS } BFH f-----,H:-,g7h-: A-=O"'RS::-----; t = 31 COH User's Area OFFFH 4-53 ILPD781 0/7811 Input/Output Memory Expansion Port Configuration 8 Analog Input Lines None PortO I/O Port PortF 110 Port 44 Digital I/O Lines: five 8-bit ports (Port A, Port S, Port C, 256 Bytes PortO Multiplexed Address/Data Bus Port D, Port F) and 4 input lines (AN 4 -AN 7) =-~~_.~~~~_ PortF 1/0 Port 4K Bytes Port 0 Multiplexed Address/Data Bus 1. Analog Input Lines Port Fo-Fa Address Bus ANo-AN7 are configured as analog input lines for on- _!,~~t F4-F7.-:-:yO--:P::-o-:-rt----:~:___=__~~~- chip ND converter. 16K Bytes Port D Multiplexed Address/Data Bus Port Fo-Fs Address Bus 2. Port Operation Port F6 -f7 110 Port - Port A, Port S, Port C, Port F 60K Bytes PortO Multiplexed Address/Data Bus PortF Address Bus Each line of these ports can be individually programmed as an input or as an output. When used as I/O ports, all have latched outputs, high- Timers impedance inputs. The timer/event counter consists of two 8-bit timers. The -Port D timers may be programmed independently or may be cas- Port D can be programmed as a byte input or a caded and used as a 16-bit timer. The timer can be set in byte output. software to increment at intervals of 4 machine cycles -AN 4 -AN 7 (1fJ.s at 12MHz operation) or 128 machine cycles (32fJ.s The high-order analog input lines, AN 4 -AN 7 can be at 12MHz), or to increment on receipt of a pulse at T 1 . used as digital input lines for falling edge detection. 3. Control Lines Timer/Event Counter Under software control, each line of Port C can be The 16-bit multifunctional timer/event counter can be used configured individually to provide control lines for for the following operations: serial interface, timer and timer/counter. Interval timer 4. Memory Expansion External event timer In addition to the single-chip operation mode Frequency measurement fJ.PD7811 has 4 memory expansion modes. Under Pulse width measurement software control, Port D can provide multiplexed Programmable square-wave output low-order address and data bus and Port F can pro- vide high-order address bus. The relation between memory expansion modes and the pin configurations of Port D and Port F is shown in the table that follows. Timer Block Diagram Timer 1 r - - -Timer 0 ,-- - - - - - - --l Timer/Event Counter Senal Interface I I I i INTT, I I ____ J Internal Bus Notes; 1 CL= 3Jf (250n8 12MHz operatIon) f System clock frequency (MHz) 4-54 J.LPD7810n811 Block Diagram for Timer/Event Counter Output Control 4CL~~~~~--, PC,ICI o-~r-~~~~~~+------j To r-~~-CP, CPo CPo INTEO CP, Interrupt Control INTE1 EIN INTEIN II f-~~~~~~~~~~~~~--4~~~~~EIN = Notes: CL 3/t (250n5 12 MHz operation) f System clock frequency (MHz) 8·Bit AID Converter AID Converter Block Diagram 8 Input Channels AVec 4 Conversion Result Registers AVss 2 Powerful Operation Modes VAREF Auto Scan Mode ANO Channel Select Mode AN1 ~ c AN2 Successive Approximation Technique AN3 C; Absolute Accuracy ± 1.5 LSB (± 0.6%) AN4 ~ m AN5 x Conversion Range 0 rv 5V AN6 m Jl Conversion Time 50 lis AN7 Interrupt Generation Analog/Digital Converter The j.LPD781 017811 features an 8-bit, high-speed, high accuracy AID converter. The AID converter comprises a 256-Resistor Ladder and Successive Approximation Regis- ter (SAR). There are four conversion result registers (CR o -CR 3 ). The 8-channel analog input may be operated in either of two modes. In the select mode, the conversion value of one analog input is sequentially stored in CR o-CR 3 . In the scan mode, the upper four channels or the lower four channels may be specified. Then those four channels will be consecutively selected and the conversion results stored sequentially in the four conversion result registers. 4-55 f.LPD781017811 Interrupt Structure Universal Serlal Interface Block Diagram There are 11 interrupt sources. Three are external interrupts and 8 are internal. These 11 interrupt sources are divided into 6 priority levels as shown in the table below. Interrupt Request Interrupt Type of Interrupt IROO NMI (Non-maskable Interrupt) INTTO (Coincidence signal from timer 0) IROI INTTI (Coincidence signal from timer I) INTI (Maskable interrupt) IR02 16 INT2 (Maskable interrupt) INTEO (Coincidence signal from timerl event counter) IR03 24 INTEl (Coincidence signal from timerl event counter) INTEIN (Failing signal of CI and TO counter) IR04 32 INTAD (AID converter interrupt) INTSR (Serial receive interrupt) IROS 40 Internal INST (Serial send interrupt) Zero·crossing Detector The INT1 and INT2 terminals (used common to TI and PC 3 ) can be used to detect the zero-crossing point of slow mov- NMI ing AC Signals. When driven directly, these pins respond as INTTa a normal digital input. INTT1 INT1 To utilize the zero-cross detection mode, an AC signal of iNf2 INTEO approximately 1-3V AC peak-to-peak magnitude and a INTEl maximum frequency of 1kHz is coupled through an external INTEIN INTAD capacitor to these pins. INTSR INTST For the INTI pin, the internal digital state is sensed as a zero until the rising edge crosses the DC average level, ov EA when it becomes a one and INT1 interrupt is generated. SB AN7·AN4 For the INT2 pin, the state is sensed as a one until the fail- ing edge crosses the DC average level, when it becomes a zero and INT2 interrupt is generated. The zero-cross detection capability allows the user to make the 50-60Hz power signal the basis for system timing and to control voltage phase sensitive devices. Zero-crossing Detection Circuit Standby Function The I-LPD781017811 offers a standby function that allows the user to save up to 32 bytes of RAM with back- up power (VDD) if the main power (Ved fails. On powerup the I-LPD7811 checks whether recovery was made from standby mode or from cold start. c Universal Serial Interface The serial interface can operate in any of three modes: synchronous, asynchronous, and 1/0 interface. The 1/0 interface mode transfers data MSB first for ease of communication with certain peripheral devices. Syn- chronous and asynchronous modes transfer data LSB first. Synchronous operation offers two modes of data reception. In the search mode, data is transferred one bit at a time from serial register to receive buffer. This allows a software search for a sync character. In the nonsearch mode, data transfer from serial register to transmit buffer occurs 8 bits at a time. 4-56 I-LPD781017811 Operand FormatlDescription Format Description r V,A,B,C,D,E,H,L r1 EAH,EAL,B,C,D,E,H,L r2 A,B,C sr PA, PB, PC, PD,PF, MKH MKL, ANM, SMH, SML, EOM, ETMM, TMM, MM,MCC, MA, MB, MC MF, TXB, TMO, TM1 sr1 PA, PB, PC, PO, PF, MKH, MKL, ANM, SMH, EOM, TMM, RXB, CRO, CR1, CR2, CR3 sr2 PA, PB, PC, PO, PF, MKH, MKL, ANM, SMH, EOM, TMM sr3 ETMO,ETM1 sr4 ECNT, ECPT rp SP, B, D,H rp1 V,B,D,H,EA rp2 Sp, B, 0, H, EA rp3 B,D,H rpa B, 0, H, 0+, H+, 0-, H- rpa1 B,D,H rpa2 B, 0, H, 0+, H+, 0-, H-, 0+ byte, H+A, H+B, H+EA, H+byte rpa3 0, H, 0+, H+ +, 0+ byte, H+A, H+B, H+EA, H+byte wa 8-bit immediate data word 16-blt immediate data bY.te 8-bit immediate data bit 3-bit immediate data CY,HC,Z Irf FNMI, FTO, FT1, F1, F2, FEO, FE1, FEIN, FAD, FSR, FST, ER, OV, AN4, AN5, AN6, AN7, SB Remarks II 1. sr-sr4(specla' register) 3. rpa-rpa3(rp addressing) PA ECNT - TimerlEvent (DE) + + L ~!~:I)+ -PortA 0++ PB = Port B Counter Upcounter H++ (HL) + + PC = Port C ECPT = Timer/Event 0+ byte (DE + bre) PO = Port 0 Counter capture H+A (HL + A PF = Port F ETMM = Timer/Event H+ = (HL + H+B (HL + B) MA MB = Mode A =ModeB Counter Mode EOM = Timer/Event 0- H- = (DE- = (HL)- H + EA H + byte !HL + EA) HL + byte) MC =ModeC Counter Output Mode MCC = Mode Control C ANM = AID Channel Mode 4. f (nag) MF =ModeF CRO = AID Conversion CY = Carry HC = Half carry Z = Zero MM = Memory Mapping to Result 0-3 TMO = nmer Register 0 CR3 5. Irf (interrupt nag) TM1 = nmer Register 1 TXB = Tx Buffer FNMI INTFNMI FSR = INTFSR TMM = nmer Mode RXB = Rx Buffer FTO INTFTO FST = INTFST ETMO = nmer/Event SMH = Serial Mode High FT1 INTFT1 ER = Error Counter Register 0 SML = Serial Mode Low F1 INTF1 OV = Overflow ETM1 = nmer/Event MKH = Mask High F2 INTF2 AN4 = Analog Input 4-7 Counter Register 1 MKL = Mask Low FEO INTFEO to 2. rp-rp3(register pair) FE1 INTFE1 AN7 FEIN INTFEIN SB = Standby SP = Stack Pointer H = HL FAD INTFAD B = BC V =VA o = DE EA = Extended Accumulator 4-57 J,LPD7810n811 Instruction Groups I·bit Date Transfe, OPeode Skip Mnemonic Op.,.nd 81 82 13 84 State Op.atlon Condition r1.A 00011 T2T,To r1~A A,rl 00001T2T,To A_r1 .r,A 01001101 1 1 0 S,S,s"s,So 10 sr_A MOV A, or1 01001100 11 S,S,SoS,S,So 10 A-sr1 r,(word) 01110000 01101 A,A,An Low Adrs High Adrs 17 r_(word) (word), r 01110000 01111 A,A,An Low Adrs High Adrs 17 (word)~r r,byte 01101 R2R,R o Dots 7 r-byte MYI String skip, other r = A or L or2, byte 01100100 SoO 0 0 0 s"S,So Osta l' sr2 -byte MYIW wo, byte 01110001 DIIseI Data 13 (V, wa) ~ byte MVIX rpal,byte 010010A,Ao Osta 10 (rpal) ~ byte STAW wa 01100011 0IIse1 10 (V,wa)~A LOAW W8 00000001 DIIseI 10 A~(V,wa) STAX rpl2 AsO 11 1 A,A,Ao Data*(j) 7113 (rpa2}_A LDAX rpa2 AsO 1 01 AsA1Ao Data*(D 7/13 A_{rpa2) B_B',C_C',D_9' EX)( 01001000 10101111 E_E',H_H',L_L' EXA 01001000 10101100 V,A-V',A',EA-EA' EXH 01001000 10101110 H,L_H',L' iI-bit Data TNn."r 0+ 00010000 13 (DE) + ~(HL)+,C~C 1 (C + 1) End If borrow BLOCK 0- 00010001 13 (DE) - ~(HL)-, C~C - 1 (C + 1) End If borrow rp3, EA 101101 P,P, rp3 L +- EAL, rp3 H +- EAH EA, rp3 101001P1PO EAL +- rp3 L• EAH +- rp3 H DMOV 01'3, EA 01001000 1101001 U, 1. sr3_EA SBCD EA, or4 (word) I 01110000 110000V1VO 00011110 LowAdr. High Adrs 1. 20 EA_sr4 (word) ~ C, (word + 1) ~ B SDED (word) I 00101110 I 20 (word) +- E, (word + 1) +- 0 SHLD (WOrd) I 00111110 I 20 (wore!) +- L, (WOrd + 1) +- H SSPD (word) l 00001110 l 20 (worcl)-SPL.(word + 1)-SPH STEAX rp03 01001000 1001 C,C.C,C, Dots '® 14120 (rpa3) ~ EAL, (rpa3 + 1) ~ EAH LBCD word 01110000 00011111 20 C_(word~B_(word+ 1) LOED word 00101111 20 E-(worcl), D-(word + 1) LHLD word 00111111 20 L +- (word), H +- (word + 1) LSPD word 00001111 20 SP L _(word), SPH-(word + 1) LOEAX rpa3 01001000 1 OOOC8~C,CO 14120 EAL -(rpa3), EAH _(rpa3 + 1) PUSH (SP -1)-rpl H-(8P - 2)~rplL rpl 101100,0,0, 13 SP~8P - 2 POP rpl 10 rplL ~(SP~rplH~(SP + 1) 10100Q2Q,QO SP_SP+2 rp2_(word) LXI rp2, word o P,P,PoD 100 Low Byte HIgh Byte 10 String skip when rp2 = H 8-blt A,Hhmetlc (Reglate,) C~(PC + 3 + A) TABLE 01001000 10101000 17 B_(PC+3+A+l) A,r 01100000 11000R,A,A, ADD r,A 01000R2R,R o 8 r_r+A A,r 11010R2R,R o 8 A-A+r+CY ADC r,A 01010R2R,R o 8 r_r+A+CY A,r 10100R2R,R o 8 A_A+r No Carry ADDNC r,A 00100R2R,R o 8 r_r+A No Carry A,r 11100A,A,An 8 A_A-r SUB r,A 01100A,A,An 8 r_r-A A,r 11110R2R,R o 8 A-A-r-CY SBB r,A 01110R2R,R o 8 r_r-A-CY A,r 10110R2R,R o 8 A_A-r No Borrow SUBNB r,A 00110R2R,R o 8 r-r-A No Borrow A,r 10001 R:tR,Ro 8 A_AAr ANA r,A 00001 R2R,R o 8 r-rAA A,r 10011A,A,An 8 A-AVr ORA r,A 00011 R2R,R o 8 r_rVA A,r 10010R,A,An 8 A_AVr XRA r,A 00010A,A,An 8 r_rVA A,r 10101 R,A,An 8 A - r-1 No Borrow GTA r,A 00101 R2R,R o 8 r A-I No Borrow 4-58 /-LPD781 0/7811 Instruction Groups (Cont.) a·bit Arithmetic (~glste'l (Cont.) OPCode Skip Mnemonic Operand 81 82 83 84 State Operation Condition A, 01100000 10111 A R R A Borrow LTA ' , 0 ',A 00111 R2 R,R o 8 ,- A Borrow A,' 11101 R2 R,R o 8 A -, No Zero NEA ',A 01101R2R,R o 8 ,- A No Zero A, , 11111 R2 R,R o 8 A-, Zero EQA ',A 01111 R2R,R o 8 ,- A Zero ONA A,' 11001R2R,R o 8 AAR No Zero OFFA A,' 11011 R2R,R o 8 AAR Zero S·bit Arithmetic (Memory) ADDX ,po 01110000 11 A_A + (rpa) ADCX ,po 11010A2A,A o 11 A_A + (rpa) + CY ADDNCX 'pa 10100A2A,A o A~A + ('pa) No Carry SUBX 'pa 11100A2A,A o "11 A_A - (rpa) -~ SBBX ,po 11110A2A,A o 11 A~A - ('pa) - CY -- SUBNBX ,pa , 011 0 A,A,1\o 11 A~A - ('pa) No Borrow ANAX 'pa 10001 A2A,A o 11 A~A - ('pa) -_._. ORAX 'pa 10011 A2A,A o 11 A~AV('pa) XRAX 'pa 10010A2A,A o 11 A~AV('pa) GTAX 'pa 10101 A2A,A o 11 A - (,pa),- , No Borrow LTAX 'pa 10111 A2A,A o 11 A - ('pa) Borrow -~ II Immediate Data NEAX No Zero EQAX rpa 11111 A2A,A o 11 A - (rpa) Zero ONAX rpa 11001A2A,A o 11 A-(rpa} No Zero OFFAX rpa 11011 A2A,A o 11 A+- (rpa) Zero A, byte 01 0001 1 0 _~-=-Da:c:to=-~ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _7,-_ _ccA_~-,-~ + byte ADI ~'~b~~e~____~o~'~'~'-O-'O-O------~O~'~O~O.~O~R~,~R,~R~o--------_D~a_'a____________~'~'_____r~r+b~e sr2, byte 01 1 0 5 3 1000525 1 5 0 20 sr2 ~sr2 + byte A, byte 01010110 -- Data --;. ____'_7_ _ _A_~_A + byte + -'C_Y_ _ _ _ _ _ _ __ ACI r,byte 01110100 01010R2R1Ro Data 11 r+--r + byte + CY _ _ _ _ _c-_-:sr2, byte 0110 5 3 1010525 150 20 sr2_sr2+ byte + CY A, byte 001 001 t 0 ~ Data --;. 7 A ~ A + b.-'-Yt':-e_ _ _ _ _ _-cN_O Carry __ ~ ADINC r,byte 01110100 001 00R2R,Ro ---:Dc-a-'a------~~,-,-· r ........ r + byte _ _ _ _ _ _ _-,-Nc:0-,Cc::o",rr,-Y_ sr2, byte 0110 5 3 0 1 0 a 5 25 15 0 20 sr2 _ sr2 + byte No Carry A, byte 011 001 1 0 «- Data -'> 7_ _ _ _~~_~~~._." SUI r,byte 01110100 Data 11 r_r - byte sr2, byte 0110 20 sr2 ...... sr2 - byte A,byte 01110110 ~Data-'> _ _ ._~ _ _ _ A -::--~-: byte ~ CY SBI r, byte 0111010 a 01110 R2R1RO Data 11 r ...... r ~~. __~:_____._.. __._____ _ sr2, byte 01 1 0 5 311 1 0525 15 0 20 sr2 ~ sr2 - byte - CY A, byte 00 11 011 0 Data 7 A ~ A - byte_ _ _ _ _ _-;:N_OBorrow SUIN8 --",-cb'-Ytc-.-:-_ _-:c0-c'-c'~'-0_;'-'-0-'-0---0-'occ'_;'.':-0':-RC',":R-'C,RC"o------------:'cc'---'-c-c-r . - byte _ _ _ _ _ ~N_O_B~~ _ _ _ _ _ _ _-"-5''''2",bo-Y"te'-_--'-O_'_'_'_,-,-0--"1_ _ _-=53011 0 52515=,o~___ 20 sr2 ...... sr2 _ byte __ ~_B_o_rr_ow __ A,byte 00000111 Data 7 A~A \ byte ANI r,byte 01110100 00001R2R1Ro Data 1~ _ _ _'_-~~~~_._ sr2, byte 01100100 5 300015 25 15 0 20 sr2 <:-sr~~!!!. __ .. __.__ "_ _ _ _ _ _ , A,byte 00010111 Data A ...... AV byte ORI r, byte 01110100 00011 R2R,Ro Data 11 r ~ rv_b-cyccte-:-:-_ _ __ sr2, byte 0110 1 5 3 0 0 1 1 $25, $0 20. _____ ----.!r2 ~ sr2 V_;b-'Y'-te'------ A, b~e 000' 0110 Data _ _ _-'--_ __'_A'-~_'_A'_V'_b,,~"_e _, _ _ _ ,_~__,_ _ _~ XRI r, byte 0111 0 1 00 0 a 0 1 0 R2R1RO __ ~ ____ Da_ta_~~ 11 r <- r V byte sr2 byte 011 0 1 $30 0 1 052$150 1 20 sr2 ~ sr2 11 byte - - - - - - : - - A, ~te 00100111 Data --~~------"--~_-_-_-_-~~~~~_e ~-,~------:No Borrow GTI ---"',"by"te"-----'-o-'-,-'-,'-,O'-,-'O-'O'----O-O-'-O-'-''-R-'-,R-,ccR-o-----D-a-ta------ 11 r - byte - 1 No Borrow sr5, byte 01101 $3°101525,50 _ _ _ _-'- _____!.4_ _ ." srS-_b'-y'_e_-_'_ _ _ _ _ No Borrow A, byte 00110111 Data 7 A - byte Borrow LTI r, byte 0 1 110 1 00 0 0 1 1 1 R2R1 Ro Data 11 r - byte -----;B~orrow sr5, byte 0110 1 $30111525,50 A,byte 01100111 ~Data_ NEI r, byte 0111010 a 01101 R2R1RO sr5, byte A, byte EQI r, byte sr5, byte 4-59 f.LPD781 0/7811 Instruction Groups (Cont.) Immediate Data (Cont.) OPCode Skip Mnemonic Operand 81 82 83 84 State Operation Condition 01000111 ~Data----- No Zero -------~~----- ONI _ r, byte_____?~~~ __0_1__~~~~. _ _ _ _Dl!!~ _ _ _ _ _ _ ~1_ _ _r_~_~x~_ No Zero sr5,byte 0110 1 $31001$2$1$0 ._ _ _ _ _ . ___. _ _ '_. 14 _sr~~y~~ ___ No Zero __ ~~~~ __ .,_~~~_~~ 1 <---_O'~ta-._ __ "'__ ____________ ~ A \ byte Zero OFFI Data _ _-'""'---_ _~r-,"\ byte Zero 8r5, byte 01 1 0 ~ ._ _ .~_~ ____ ~~_~.y~~ _ _ _ _ _ _ _ _Z_e_ro_ _ Working Register ADDW wa 01110100 11000000 Offset 14 -'-A=Dc::Cc:W------~w=a------------- --'-'------11 01 - - -.. -'- - - - - - - 14 ~.<-A +"(~~~~_£~ ____ ~'"_~ A-DD-N-CW-----;,~---- -----1010--t--------- - 14 A <---A + (V,wa) No Carry SUBW wa 1110 "--- 14 ~ A ::j\l,wa)_ SBBW wa ---+------;,-;-;- ---------- ---- .-- "-A~~(lI.."'al~~ _. ___ .________ _ SUsN~---_;~--'----'--- ----·-·101-1-~~'--'----·'·--- --------14 A<---A-(V,wa) No Borrow ANAW wa 1 0001 000 1-'"4--.--'-A~_--'-A'-__ \-C(:v, W~)., _ _ _ _ _ _ _ _ _ _ _ _ O_A_A"!.-_ _ _ _.___________ ...:-::-=-___':--_~O 1 .1.____ 14 A ..- A V (V, w_a)~_ _ __ XRAW wa 01110100 10010000 Offset 14 A<-A¥(V,wa) ---------_._-,,-'""------- GTAW wa .. _____ .~~_1_~"~~.. _ _ _ _ _ ~~___ .~'"_" __A - (V, wa) -:-: _~ ______ '" ___ ~_!':!:_row_ lTAW wa _______ ~,_~ _ _ _ _ _ _ ~,___ __ _ _ _ _~1~ ____ "~~"~~)_ Borrow NEAW 1110 14 A - (V, wa) No Zero Ec:Qcc/l:.ccW,--------w-a-------+--- 1111 _________ ". _ _ _ "~_4_ "" ~-:: JY~ ______ """"__ . _Z_er_o____ ONIW wa, byte 0100 - - - ...- - - - - ' " " - - OFFIW wa, byte 0101 13 (V, wa) \ byte 16·bit Arithmetic EADD EA,r2 01110000 010000R 1Ro 11 EA<---EA + r2 DADO EA, rp3 0100 110001 P1 PO 11 EA<---EA+rp3 DADC EA,rp3 11 0 1 11 EA.(C.-.-EA + rp3 + CV DADDNC EA, rp3__ 1010 11 EA_EA + rp3 No Carry ESUB EA,r2 0000 011000R1Ro 11 EA<---EA-r2 DSUB EA rp3 01110100 111001 P1PO 11 EA<---EA - rp3 DSBB DSUBNB DAN EA, rp3 EA,rp3 EA, rp3 1111 1011 I 100011 P1PO 11 11 11 EA_EA - rp3 - CY EA<---EA - rp3 EA<---EA - rp3 No Borrow DOR EA,rp3 1001 1 11 EA_EAVrp3 DXA EA, rp3 100101P1PO 11 EA<---EAJlrp3 DGT EA,rp3 101011 P1PO 11 EA-rp3-1 No Borrow DlT EA,rp3 1011 11 EA - rp3 Borrow ONE EA,rp3 1110 11 EA - rp3 No Zero DEQ EA, rp3 1111 11 EA - rp3 Zero DON EA,rp3 1100 11 EAA rp3 No Zero DOFF EA,rp3 11 0 1 11 EAA rp3 Zero Multiply/Divide MUl r2 01001000 001011 R1Ro 32 EA--A x r2 DIV r2 0011 j 59 EA<--- EA - r2, ~2 <---S~ _ _ _ _ _ Increment/Decrement INR r2 010000R t Ro r2 - r2 + 1 Carry INAW wa 00100000 -Offset- 16 (V, wa) ~ (V, wa) + 1 Carry rp 00 P1POOO 1 0 rp <---rp + 1 INX EA 10101000 EA<---EA+1 DCA r2 010100R 1Ro 4 r2+-r2-1 Borrow DCAW 00110000 <---Offset_ 16 (V, wa) _ (V, wa) - 1 Borrow rp 00 P1POO 0 11 rp_rp - 1 DCX EA 10101001 EA~EA -1 4-60 J.LPD7810/7811 Instruction Groups (Cont.) Others OPCode Skip Mnemonic Operand 81 82 83 84 State Operation Condition DAA 0-:1-:1-=0..:0-=0-=0,:-1_ _ _-:-:_-:-:c-:-:c:-:-________________ ~ __~~~ AdJu~.!!ccumula_l_or_ _ _ _ __ STC 01001000 00101011 8 CY-l CLC j 00101010 CY- 0 -~---------------- -- --- ----- --- CMC 01001000 10101010 CY_CY NEGA 00111010 A-A+l - - ' - - - - - - - - - - - - - - - ' - - - - - - - ' - - - - - ' - - - - - - - - ------------------ Rotate and Shift RLD RRO --------=1 100-;----- ___ 01001000 00111000 n __ _ 17 Rotate Left. Digit RLL r2 01 001 000 001101 R1 RO r2m-t1 --r2m• r2o---CY, RLR r2 ___-+_____ JiO_R_,_R__ O ______ - -__ - _ _- ___ - -~_-_-_-_-_-_-- ~~~ ~:r2m. r2~ ~Cy~-~__-_-_- ___ ___- _-_-_ Sll r2 001001R,Ro r2m+,-r2 m,r2o <-Q, ----------------t-----!-=OOR-,-Ro----------~-----8-- -~:~~~r2:, ~~.=O,------------ SlR r2 ~ _EY-_~~'L__ SLLC r2 000001R,Ro 8 r2 m+ 1 --r2 m,r2o-0, Carry ---------------4-----+--------------------------~~------------ SLRC r2 ! 00 R,R o r2m_ 1 <- r2m. r27 _0, CV- r20 Carry ORLL EA ORLR EA DSLL EA 00100001 10100100 ~~~-----=~------i._-----tt~~~------------~---C=7Y---EA-'~5~~_~_ _ _ _ _ __ OSLR JMP JB EA word 01010100 i 0000 _LowAdrs--> Jump High Adrs 10 EA,,+1- EAn,EAO-O, EA"_,-EA,,.EA15-0. PC -(word) II JR word 11-Jdlsp1- 10 PC-PC + 1 + Jdlsp1 JRE word 0100111 -Jdlsp- 10 PC-PC + 2 + Idlsp JEA 01001000 00101000 Call (SP - 1) -(PC + 3) •• CALL word 01000000 _LowAdrs_ High Adrs 16 (SP - 2)-(PC + 3k PC_(word~SP_SP - 2 (SP - l)_(PC + 2)•• CALB 01001000 00101001 17 (SP - 2)-(PC + 2k PC.-B.SP-SP - 2 (SP - l)~(PC + 2) •• CALF word 01111_ (SP - 2) -(PC + 2k fa- 13 PC15-11-00001, PC 1o-o-fa,SP-SP - 2 (SP - l)~(PC + 1)•• CALT (SP - 2) -(PC + 1), word 1aD-ta-- 16 PC, - (128 + 21a~ PC. - (129 + 21a~SP-SP - 2 (SP - 1) _PSW. (SP - 2)_ SOFTI 01110010 16 (PC + l)•• (SP - 3)~(PC + 1),. PC ~0060H.SP ~SP - 3 Return PC ~ (SP). PC. - (SP + 1) RET 10111000 10 SP_SP + 2 PC, -(SP~ PCH -(SP + 1) RETS + 1001 10 SP_SP + 2,PC-PC + n Uncondi- PC, -(SP~ PC. -(SP + 1) RETI 01100010 13 tional PSW-(SP + 2~SP~SP + 3 Skip Skip BIT (V. wa) blt,WB -Offset- 10 Bit Test bit = 1 4-61 ,..,PD7810/7811 Instruction Groups (Cont.) CPU Control OPCode Skip Mnemonic Operand 81 82 83 84 State Operation Condition ~~K_ _~_ .___~ ____ "__~ __.__O=-',-,0,-,0,-,1+0c:0c:0,---_ _-=O-=0-=0-=0-,1'-F2: ((Rr)) 0 - 3)), Exchange Indirect 4·brt contents of .r. ~ 0 - 1 Accumulator and data memory FLAGS CPL C (e) <- NOT (e) Complement Content of carry bit CLR C (C)-O Clear content of carry bit to 0 INPUT/OUTPUT ANLD Pp, A (Ppl <- (Ppl AND (AQ-3) Logical and contents of Accumulator WItt p '" 4 - 7 designated port (4 - 7). IN A, Pp 1M <- (P p ), p '" 1 - 2 Input data from designated port (1 - 2) Into Accumulator MOVD A, Pp {A 0 -3J.- (Pp),p = 4-7 Move contents of designated port (4 - 7) (A 4 - 7) +-0 Into Accumulator MOVD Pp , A iPp) +- A 0 - 3, p = 4 - 7 Move contents of Accumulator to deSIg- nated port (4 - 7) ORLDPp,A (Ppl +- (PpJ OR (A 0 - 3) Logical or contents of Accumulator p=4-7 With designated port (4 - 7) OUTL Pp, A (Ppl +- (A), p = 1 - 2 Output contents of Accumulator to designated port (1 - 2) REGISTERS INC Rr (Rr) +- (Rr) + 1, r 0-7 Increment by 1 contents of deSignated register INC@Ar ((Rr)) -((Rr)) + 1, Increment Indirect by 1 the contents of r = 0-1 data memory location SUBROUTINE '. CALL addr i(SPj} <- (PCI, (PSW 4 - 7) Call desIgnated Subroutine '10 '9 '8 (SP) .... (SPI + 1 (PC 8 - 10) <- addr 8 -10 '7 '6 '5 '3 '2 " '0 (PCO-7J-addrD-7 (PC 11) <- DBF RET (SPj +- (SP) - 1 Return from Subroutine Without restor- (PC) -- ((SP)) Ing Program Status Word TIMER/COUNTER MOVA, T (AI~(TI Move contents of TImer/Counter into 0 Accumulator MOVT,A ITI ~ (AI Move contents of Accumulator into TImer/Counter STOP TCNT Stop Count for Event Counter STRT CNT Start Count for Event Counter STRT T Start Count for Timer MISCELLANEOUS NOP No Operation performed 0 I Notes CD InstructIOn Code Oeslgnatlons rand p form the binary representatIon of the RegIsters and Ports involved @ The dot under the appropriate flag bIt indIcates that Its content IS subject to change by the instructIOn It appears in ® References to tne address and data are speCified in bytes 2 and/or 1 of the Instruction @ Numerlcal,Subscnpts appeanng In the FUNCTION column reference the specific bits affected. Symbol DefinitIons SYMBOL DESCRIP'tION SYMBOL DESCRIPTION A The' Accumulator T TImer addr Program Memory Address (12 bIts) T, Testable Flag 1 C Carry Flag X external RAM ClK Clock Signal PrefiX for Immediate Data CNT Event Counter @ PrefiX for Indirect Address D Nibble DeSIgnator (4 bits) $ Program Counter's Current Value d,ra Number or ExpreSSion (8 bits) Ixl Contents of External RA'M Location P ''In.Page'' Operation DeSignator ((xli Contents of Memory Location Addressed Pp Port DeSignator (p 1,2 or4 -7) by the Contents of External RAM Location R, Register De'tgnator (r 0,1 or 0 - 7) ~ Replaced By 4-68 iNSTRUCTION SET IlPD8021 INSTRUCTION CODE FLAG MNEMONIC FUNCTION DESCRIPTION D7 D. D. DO D3 D:! Dl DO CYCLES BYTES C ACCUMULATOR ADD A, "data (AI +- (AI + data Add ImmedIate the speCified Data to the 0 0 0 0 0 1 1 Accumulator d7 d6 dS dO d3 d2 dl dO Add A, Rr (A)-fA) +(Ar) Add contents of designated register to for r =0-7 the Accumulator ADDA,@Ar (AI -(AI + HRr!) Add indirect the contents the data for r· 0-1 memory location to the Accumulator AD DC A, .. data (AI +- (A) + Ie) + data Add Immediate with carry the specified 0 0 0 1 0 0 1 data to the Accumulator d7 d6 d. d, d3 d2 dl dO ADDC A,Ar {AI +- (AI + Ie) + (Ad Add With carry the contents of the for r =0-7 designated register to the Accumulator ADDCA,@Ar (AI +- (AI + Ie) + ((Rr)) Add indirect With carry the contents of for r'" 0-1 dats memory location to the Accumulator ANL A, '" data (AI -lAI AND data Logical and specified Immechate Data 0 1 0 0 0 1 1 With Accumulator d7 d6 d. d, d3 d2 dl dO ANL A,Ar lA) - (A) AND lAd Logical and contents of designated 0 1 for r = 0-7 register With Accumulator ANl A,@Ar (A)-lA) AND liAr)) logical and Indirect the contents of data for r = 0 - 1 memory With Accumulator CPLA (A)-NOT (A) Complement the contents of the Accumulator ClRA (A)-O CLEAA the contents of the Accumulator DAA DECIMAL ADJUST the contents of the Accumulator DECA IAI-IAI-l DECAEMENT by 1 the Accumulator's contents INCA (A)-IA) +1 Increment by 1 the Accumulator's contents OAL A," data lA) - lAI OA data logical OA specified Immediate data 1 0 1 1 With Accumulator d7 d6 d. d, d3 d2 dl dO II ORlA, Ar (A) .... (AI OA IRr) logical OA contents of designated 0 0 for r =0-7 register With Accumulator ORlA@Rr (A)-IA) OR ((Ar)} logical OR Indirect the contents of data for r:0-1 memory location With Accumulator ALA (AN +lI-(AN) Rotate Accumulator left by l·blt With· IAol-IA71 out carry for N""0-6 RlCA (AN + 11- (AN), N = 0-6 Rotate Accumulator left by l-blt through '''oI-ICI carry (CI- IA7' AAA (AN)- (AN + 1),N"0-6 Rotate Accumulator nght by l-blt IA71-IAOI Without carry AACA IANI-(AN+l),N"'0-6 Rotate Accumulator nght by l·blt IA71-ICI through carry. ICI-IAOI SWAP A (A4.7) ~ lAO - 3) Swap the 24·blt nibbles In the Accumulator XRlA,· data (A) .... (A) XOR data logical XOR specified Immediate data 1 0 0 With Accumulator d7 d6 dS d, d3 d2 dl dO XRlA, Rr (A) - (A) XOA (Ad Logical XOA contents of deSignated 1 1 1 for r = 0-7 register With Accumulator XRLA,@Rr (A) .... (A) XOR ((Rd) loglcel XOA Indirect the contents of data 1 for r· 0-1 memory location With Accumulator BRANCH '. .'. DJNZ Ar, addr (Ar) -lAd -l,r - 0-7 Decrement the specified register and 1 If(Ari+O test contents '7 as '3 '2 'I 8() (PC 0-7) -addr JCaddr (PC 0 - 7)- addr If C = 1 Jump to specified address If carry flag 1 as . (PC) - (PC) + 2 If C - 0 IS set '7 's '3 '2 'I 8() JMP addr (PC 8 - 101- addr 8 - 10 Direct Jump to specIfied address Within 810 '9 'S 0 0 1 0 0 (PCO -7) .... addrO-7 the 2K address block 87 as 8• 83 '2 'I '0 (PC11l-DBF JMPP@A IPCO-71-((AII Jump indIrect to specIfIed addl'ftS With 0 .. address page JNCaddr (PC 0- 7) .... addr If C - 0 Jump to specifIed address If carry flag IS 1 JNT1 addr JNZaddr (PC)+-(PC)+2,fC=1 (PCO-7)-addrlfT1 =0 (PC) .... (PC) +2 IfTl = 1 (PC 0-7) -addr If A- 0 (PC) - (PC)+ 21f A"O low Jump to specifIed address If Test 1 IS low Jump to specifIed address If Accumulator IS non·zero '7 0 '7 1 as 1 '6 as 8• ' ' 0 .. .. 0 0 1 83 0 '3 0 82 1 '2 1 'I 1 81 1 ao ao 0 ao .. '7 '3 '2 'I JTF addr IPCO-7)-addrlfTF-l Jump to speCifIed address If Timer Flag 0 0 1 0 1 1 (PC) - (PC) + 21f TF = 0 IS set to 1 87 as 8• ao . ... .... '3 '2 'I JT1l1ddr (PCO-7)-addrlfT1 "'1 Jump to sp8Clfted add,... If Test 1 I'. 1 0 1 0 1 0 1 1 0 (PCI +-(PCI + 21fT1 ~O 87 as 8• '2 'I ao JZaddr (PCO-71-addrlfA-=O Jump to specified address If Accumulator 1 0 0 1 1 0 (PC) +- (PC) + 21fA-0 ~o. '7 '6 ' 82 'I ao 4-69 IlPD8021 Package Outlines For information, see Package Outline Section 7. Plaslic, fLPD8021C Cerdip, fLPD8021D 4-70 8021 DS-REV2-1-82-CAT NEe "PD8041A "PD8741A UNIVERSAL PROGRAMMABLE PERIPHERAL INTERFACE - 8-BIT MICROCOMPUTER DESCRIPTION The ).LPDS041A/S741A is a programmable peripheral interface intended for use in a wide range of microprocessor systems. Functioning as a totally self·sufficient controller, the ).LPDS041A/S741A contains an S·bit CPU, 1 K x S program memory, 64 x S data memory, I/O lines, counter/timer, and clock generator in a 40·pin DIP. The bus structure, data registers, and status register enable easy interface to S04S, SOSOA or SOS5A based systems. The ).LPDS041 A's program memory is fac- tory mask programmed, while the ).LPDS741 A's program memory is UV EPROM to enable user flexibility. FEATURES • Fully Compatible with S04S, SOSOA, SOS5A and SOS6 Bus Structure • S-Bit CPU with 1 K x a ROM, 64 x a RAM, S-Bit Timer/Counter, 1B I/O Lines • a-Bit Status and Two Data Registers for Asynchronous Siave-to-Master Interface • Interchangeable EPROM and ROM Versions • Interrupt, DMA or Polled Operation • Expandable I/O • 4O-Pin Plastic or Cerdip DIP Package • Single +5V Supply II PIN CONFIGURATION TO Vee x, T, X2 P27/i5A'Ci< RESET P26/0RQ 55 P25/'i'BF CS P24/0BF EA P17 RO P'6 AO ).LPD P15 WR P14 SYNC a041A/ P13 DO 8741A P12 0, Pll 02 P,O 03 VOO 04 PAOG 05 P23 06 P22 07 P21 VSS P20 Rev/3 4-71 ",PD8041 A/8741 A PIN PIN IDENTIFICATION NO SYMBOL FUNCTION 1,39 TO Tl Testable input pins using conditional transfer instructions JTO, JNTO, JT1, JNT1. T 1 can be made the countllr/timer input using the STRT CNT instruction. The PROM pro· gramming and verification on the IlPD8741 A uses TO. 2 Xl One side of the crystal input for external oscillator or frequency source. 3 X2 The other side of the crystal input. 4 RESET" Active·low input for processor initialization. RESri is also used for PROM programming, verification, and power down. 5 SS Single Step input (active·low). SS together with SYNC out· put allows the IlPD8741 A to "single·step" through each instruction in program memory. 6 CS Chip Select input (active·low). CS IS u'sed to select the appropriate IlPD8041A/8741 A on a common data bus. 7 EA External Access input (active·hlgh). A logic "1" at this input commands the IlPD8041 A/8741 A to perform all program memory fetches from external memory. 8 RD Read strobe input (active·low). RD will pulse low when the master processor reads data and status words from the DATA BUS BUFFER or Status Register. 9 AO Address input which the master processor uses to indicate if a byte transfer is a command or data. 10 WR Write strobe Input (active·low). WR will pulse low when the master processor writes data or status words to the DATA BUS BUFFER or Status Register. 11 SYNC The SYNC output pulses once for each IlPD8041 A/8741 A Instruction cycle. It can function as a strobe for external circuitry. SYNC can also be used together with SS to "single·step" through each instruction in program memory. 12·19 00.07 BUS The 8·bit, bi·directional, tri·state DATA BUS BUFFER lines by which the IlP08041A/8741A interfaces to the 8·bit master system data bus. 20 VSS Processor's ground potential. 21·24, P20· P27 PORT 2 is the second of two 8·bit, quasi·bi·directional I/O 35·38 ports. P20,P23 contain the four most significant bits of the program counter during external memory fetches. P20,P23 also serve as a 4·bit I/O bus for the IlPD8243, INPUT/ OUTPUT EXPANDER. P24-P27 can be used as port lines or can provide Interrupt Request (IBF and OBF) and DMA handshake lines (DRQ and DACK). 25 PROG Program Pulse. PROG is used in programming the IlPD8741 A. It is also used as an output strobe for the J.[PD8243. 26 VDD VDD is the programming supply voltage for programming the IlPD8741A. It is +5V for normal operation of the IlPD8041A/8741A. VDD is also the Low Power Standby input for the ROM version. 27·34 PlO,P17 PORT 1 is the first of two 8-bit quasi-bi-directional I/O ports. 40 VCC Primary power supply. VCC must be +5V for programming and operation of the IlPD8741 A and for the operation of the IlPD8041A. 4-72 ,..PD8041 Al8741 A FUNCTIONAL The /JPDS041 A/S741 A is a programmable peripheral controller intended for use DESCRIPTION in master/slave configurations with S04S, SOSOA, SOS5A, SOS6 - as well as most other S-bit and 16-bit microprocessors_ The' /JPDS041A/S741A functions as a totally self-sufficient controller with its own program and data memory to effectively unburden the master CPU from I/O handling and peripheral control functions. The /JPDS041A/S741 A is an intelligent peripheral device which connects directly to the master processor bus to perform control tasks wh ich off load main system processing and more efficiently distribute processing functions. /JPD8041 A/8741 A The IlPDS041A/S741 A features several functional enhancements to the earlier FUNCTIONAL /JPDS041 part. These enhancements enable easier master/slave interface and increased ENHANCEMENTS functionality . 1. Two Data Bus Buffers. Separate Input and Output data bus buffers have been provided to enable smoother data flow to and from master processors. INPUT DATA BUS BUFFER (8) II OUTPUT DATA BUS BUFFER (8) 2. S-Bit Status Register. Four user-definable status bits, ST 4-ST7, have been added to the status register. ST 4-ST7 bits are defined with the MOV STS, A instruction which moves accumulator bits 4-7 to bits 4-7 of the status register. ST O-ST 3 bits are not affected. STs FO IBF OBF DS D3 D1 DO MOV STS, A Instruction OP Code 90H 3. RD and WR inputs are edge-sensitive. Status bits IBF, OBF, F1 and FO are affected on the trailing edge at RD or WR. RDOrWR~"- ...____________________~~ p_ Flags affected 4-73 ",PD8041 AJ8741 A 4. P24 and P25 can be used as either port lines or Buffer Status Flag pins. This ~PD8041A/8741A feature allows the user to make OBF and IBF status available externally to FUNCTIONAL interrupt the master processor. Upon execution of the EN Flags instruction, ENHANCEMENTS (CaNT.) P24 becomes the OBF pin. When a "1" is written to P24, the OBF pin is enabled and the status of OBF is output. A "0" written to P24 disables the OBF pin and the pin remains low. This pin indicates valid data is available from the ~PD8041 A/B741 A. EN Flags instruction execution also enables P25 indio cate that the ~PD8041 Al8741 A is ready to accept data. A "1" written to P25 enables the IBF pin and the status of IBF is available on P25. A "0" written to P25 disables the IBF pin. If OBF is not true, the data at the databus is invalid. EN Flags Instruction Op code - F5H. 5. P26 and P27 can be used as either port lines or· DMA handshake lines to allow DMA interface. The EN DMA instruction enables P26 and P27 to be used as ORO (DMA Request) and i5AcK (DMA acknowledge) respectively. When a "1" is written to P26, ORO is activated and a DMA request is issued. Deacti- vation of ORO is accomplished by the execution of the EN DMA instruction, 6ACK anded with RD, or i5ACK anded with WR. When EN DMA has been executed, P27 (om) functions as a chip select input for the Data Bus Buffer registers during DMA transfers. EN DMA Instruction Op Code - E5H. BLOCK DIAGRAM CRVST 4l, LC, OR CLOCr: MASTEA SYSTEM INTERF ACE ~ It, X, IiOl'r I'ROG II IYfifC EA lIDIa' j-.:.:ST:;;"':;;.K_ _ =T -t ..... IIIIEQISTlIlllItANKO ... . DAT......MOAY VOO_I'ROGRAMPOWE.. ...,..V I'OWIlfil { vee _ +IY ......V V. _GIIOUND 4-74 ",PD8041 A/8741 A ABSOLUTE MAXIMUM Operating Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . oOe to +700e RATINGS· Storage Temperature (Ceramic Package) . . . . . . . . . . . . . . . .. -65°C to +150o e Storage Temperature (Plastic Package). . . . . . . . . . . . . . . . . .. -65°C to+150°C Voltage on Any Pin . . . . . . . . . . . . . . . . . . . . . . . . . . . .. -0.5 to +7 Volts <'r"RT- 'A' =r J< .~ "" ~--~'AA--I j.--t=_'A._ _ _ _.....~ U ~'~' READ CONTROL f--- tAO~ A0--1 --------~---< AOOC A "data IAI· IA) + (Cf· dala Add Immed,ale 11'1.11'1 carry the spee,hed 1 0, d, d, d, data 10 Ihe Accumulato, d6 d, , d, dO .. (AI (AI' lei' IRt! Add WIth carr v the conlenu 01 Ihe for r = O· 7 des'gnaled rell'S!!." to the Accumu'ato. AOlleA@R, , (A). lei- IIRd) Add Indlf'e! w,th cafrV Ihe contel'lts ot for rO'O - 1 data memory 10Cal'On 10 Ihe Accumulator ANL A -d"a ,A, 111,1 AND data log,eal anu spec, toed Immed,ate Data , ..... '1" Accumulalor d, d, d, d, dO ANl A R' Accumvlator ANlA @Ar dO d, 0 , d4 d, d, dO fa, • ' 0 - ? reg,Utf ...... th Accumulato. XRl A (jl Ar IAI· IAI XOA HRrll Log,ul XOR Ind"ecl t"e content. of data , 10f' • 0 - I memory local'ol'l ...... Ih AccumulatOt BRANCH , OJNl A, add. (Rd +- (Rd-f, r If (Rr) *0 (pea - 7) +-addr o ~ 7 Decrement the lPl'C.j,ed .tgISle. and ., '6., " .,, " '0 J8biildd, (PC 0 - 7) +- addr If Bb '" 1 (PClof- (PC) + 2 ,f Bb = 0 Jump TO spec.hed addteu ,I ACCumul.lO< b.T " HT .,b, b, ., '0 ., .,, ., , , '6 '0 JC..od. (PC 0 - 7) <-- addr If C = 1 (PC) <-- (PC) + 2 If C " 0 (PC 0 • 7) <-- addr If FO = 1 Jumo to speclf.ed «kIteU ,f c."y II~ '6., .,, ., .,, ., '0 JFO add>' (PC) -- (PC) + 21t FO = 0 Jump to !IP«,f,ed .dd,", .f F'~ FO ,. 0 ., ., " ., 0 .... . .. , , " '6 '0 JFI met. IPCO- 71·-otddr IfFl-1 (PCI- fPCI. 2.fFl "0 ., Jump to q»ec.f,ed add.en .1 F •• g F I IS '7 , ., ., " , " '0 -.. JMP-'d. (PC 8 - 10) <- addr 8 - 10 O"Kt Jump to $I)«,foed . t t U wlth,n 10 0 th, 2K add.ess block (PC 0 -7) -addrO_7 (PC n) --OBF " '6 " " " " 'I '0 -- MIlIF addr (PC 0 _ 7) +- ((An IPCO-7}-Md'IIC .. O IPCI-IPCI.2"C~ 1 IPC 0 - 71 - add< " ISF = Jump ,ndorectlO $JIec,I.,d add"s$ w.th w.th Idd"n page Jump to lP«.f,ed addrHl If car,y fl .. " ,- Jump to IPI'Clhtd add,", ,f Input buffet" " .., . " 1 .. ."0 . .. 0 0 " 'I 1 .. . " .. (Pel-IPCI. 2,t 18F ~ 1 lull II.. "low 'I JOO' fPCO-71-addrl'OBF- t Jump to tPeClf.-d addr_ ,I output " 0 " 0 "0 '2 1 0 fPCI - IPCI + 2 ,t oaF" 0 buffet"tullfl. . . sel " " " 'I 4-78 ",PD8041 Al8741 A INSTRUCTION SET (CONT.) MNEMONIC FUNCTION .., De INSTRUCTION COOE OS D. D3 D. D, Do CVCLES IYTES C At FLAGS FO .. ., , 0.' BT..7 JNTOaddr (pea 7) ..... addr.f TO=O Jump to specified address If Test o II low ., .., 0 0 0 .. .,." , ", (PC) .... (P~l + 2IfTO= 1 'S '3 '2 '0 JNT1 addr (PCO-7) ..... addr.f T1 = 0 Jump 10 specifIed address ,I Tell 1 15 lOW 0 0 0 0 , " " .. (PC) +- (PCI + 2 If T 1 on 1 '3 '2 " 'S '0 JNZ addr (PC 0- 7) -addr If A" 0 Jump 10 specified addrell.' accumulator 0 0 0 ., 1 0 " .. (PCI- (PC) +2,tA= 0 'S '3 '2 '0 JTF addr (PC 0-7)-addr IfTF = 1 Jump to SPeCified 'ddress ,f Timer F'ag 0 0 1 0 1 1 0 (PCI- (PC I + 2 If TF '" 0 '1 let to' .. .." 'S '3 '2 'I '0 JTOaddr IPCO-71 +-addr.' TO= 1 Jump 10 ~Klh.d address ,f Test 0 I' at. 0 0 1 1 0 1 1 0 ., ... .." (PCI +- (PC I + 211TO= 0 '0 JT. addr (PCQ-7) -addr If T1 = 1 Jump 10 specified addr.., ,f Tesl I I, a 1 " 1 'S 0 1 '3 0 '2 1 'I 1 0 '1 '0 JZaddr (PCI- (PC) +211Tl "'0 (PC 0 - 7j ..... addr If A" 0 Jump 10 specified address ,f Accumulator " 1 'S 0 0 '3 0 '2 (PC) .... (PC) +21fA = 0 .. 0 'S '3 '2 'I '0 CON1AOL EN I Enable the External Interrupt ,nput 0151 o,.able the Elliernal Interrupt ,npyt SEL RBO IB51 ... 0 Selecl Bank 0 !toealiON 0 - 710' Data Memory SEL RB1 (BS) +-1 SeIIlOt Bank 0 (IQClltlons 24 - 311 of Data Memory ENDMA Enabla DMA Handlhake EN FLAGS Enabla In_rrupt to MIIIttr DIIVIcIi MO" A, ... dlu MO"A,Rr 111.1· dill IAI- IArl,r: 0 , Move Immed'ite thlspeC,fled dlta ,nlO Ihe Accumulato. MOlle the contenU 0' I.... dll'gnated DATA MOVES ., . 0 1 ·S ., 0 0 ·3 0 ·2 ., , 1 do reg'Iter, ,nlO the Accumulatol MO"A,ilFlr tAI-IiArll r· 0 1 MOlle IndlreCtlhe COnllnlS of dltl II mlmolY 10CI"on ,nlo thl Accumulator MOVA,PSW tAl- IPSWI Movi Contlnll 0' the Program Slatus MOV Rr, _dill MO"Rr A IAr!" d11la,r = 0 IArl-IAI,r -0 , , Word ,nto Ihl AccumulatOf' MOIII Immed'ite IhllPICthed dall mto the dfttgnlled leg,stlr MOlle Accumuletor Contents mto thl ., •• ·S ., 0 1 ·3 ., ., ·0 des'gnaled rlg'ster ., . -. -, MO"flAr,A IIR,II-IAI,r "0 1 Move Ind,rect Accumuiltor Contents ,nto dIItl mlmory 10001lon MOV. Ar, _ dlta IIArll· dlla r = 0 1 Mow. ImmedIate Ihl IPIICI'"ld dall Into delamemory 1 0 1 1 ·3 ., ., 0 -0 MOV PSW, A IPSWI' IAI Move contlnts of Accumulator Into Ihe 0 0 program III"'S word MOVPA,IlA IPCO 71-IAI Mo.... dati ,n Itle CU"lnt PIlI ,nlO Ih. IAI .... UPCII Accumulltor MOVP3A .11. IPCO 71-111.1 Move Program dltl In p. 3 ,nto the fPC 8 - 101- 01' Accumulator 111.1" IlPeI! XCHA, Fir IAI;! IRrI,,-0-1 Exchlnll Ihl Accumulator Ind deslgna,11Id 'eg,'."s contents XCHA,.Ar 111.1 ;:IIR,II, ,"0- , Elich..... Indltet tontent. of Accumu '"0r end locatlOft In dill memory XCHoA,.A, III. 0- 31 ~ IIR,II 0- 31). E.c..... lndltlCt4 b,t tontents 0' ,-0-1 Accumulator and eM. memory CPlC ICI-NOTICI ComplIment Content of c.rry bit •• CPl FO IFOI - NOT IFOI Complemenl Content of Flit FO CPl F1 IF1I- NOT IFlI Complement Contenl 0' F.., f 1 elA C lei ~ ( CI_ content 01 anv tMt 10 0 CLRFO IFOI-O CI_contentO' flllOlOo. CLRF1 (Fl1+-0 C... coment of Fill 1 10 0 MOV $1'8. A ST4-8T7+-A4-A7 MOVI high order 4 bits of Accum- ulator Into ..........., bib 4·7 4-79 .flPD8041 A/8741 A INSTRUCTION SET (CONT.) INSTRUCTION CODE FLAGS MNEMONIC FUNCTION DESCRIPTION D7 De DI D4 D3 D2 D1 00 CYCLES BYTES C AC FO F1 18F oaF ST4-7 TPUT ANLPP. -dl" IPJiI· IPPI AND data , logical and Immediate specified data , 0 , 0 p P p :-1 2 with designated port nor21 d7d&dSd4 d3 d2 d, d O ANLOPP, A IPPI -- IPPI ANO IA 0 o IN A, Pp p •• 7 (AI· (PPI,p: 1 2 " LogIC" and contln" of Accumut.tor wtth "tgNtld POrt 14 - 71. Input data from deSignated POrt 11 or 2) .n10 Accumulator IN A, DBa (AI-(OSBI Input strobed CBB data Into Accumulator and elear ISF MOVOA,Pp IAO-JI .... IPPI p=4-7 Move conlents of designated port (4 - 71 MOVDPp. A 'A. 7)-0 IPPI- A 0 3 p ~ 4 7 Into Accumulator Move contents of Accumulator to designated port (4 - 7) DRlDPP. A IPPI .... IPPI OR IA 0 31 Logical or cont~ls of Accumuilitor with ., p"4 7 designated port (4 - 71 OAlPP. =dlta (PPI -- IPPI OR data logical or Immediate specified data with , ,0 0 p p p. , 2 cf4 'designated port (1 or 2) d7 d& dS dO 0UTD8B.'" t088IIAI Output conteftU of Accumulator onto o 0 DBBlndtetOBF. DUn Pp, A IPPI- IAI, p' ,2 Output contents of AccumulafOr to designated pori (lor 2) REGISTERS DEC R, IRrl IRrl- IFhl I r ~0 7 Oecrem..,1 by 1 contents of designated INCRr IRrI·-IRrt+1 r .. O 7 Increment by 1 content$ of designated ret'ster INC.R, IIRrll- URrll + I Increment Indirect by 1 the contents of r '" 0 , data Mltmory location SUBROUTINE CALL at, IISPII- IPCI, (PSW" 71 call deslgl'ated Subroutine a,o a9 a8 ISPI· (SPI + 1 a7I1f5 aS84 a3 a2 · , a o IPCS 101· ;IlIdrB '0 (PCO-71-MtdrO 7 CPC 111- DBF RET (SPI - ISPI 1 Return from Subroutine Wtthoi.ot CPCI· IISPI! reuorlng Program Status Word RETA ISPI· (SPI 1 Return hom Subroutine restor.ng IPCI'- IISPH Progra,,, Status Word (PSW" 71 - ilSPII TIMER/COUNTER EN TCNTI Enable Intefnal Interrupt Flag for 0 Timer/Counter output DIS TCNTI Double Inter",1 Interrupt Flag for o ·0 Timer/Counter output MOVA, T CAl· ITI Move contents of Timer/Counter !fIto Accumulator MQVT.A ITI- IAI Move contents of Accumulator mto Timer/Counter STOP TCNT Stop Count for Event Counter STAT CNT S,." Count for Event Counter STRTT Stan Count for Timer MISCELLANEOUS NOP I I No Operalion performed I 0 o I ' I 1 I I Notes ut Low Voltage (RO, WR, PSEN, ALE) V OL1 0.45 v IOl = 2.0mA RD to Data In t R01 800 ns 215 tey - 200 Output LOW' Vottage (PROG) VOL2 0.45 VIOL = 2.0 rnA PSENto Data in t R02 550 ns 3/tOtey -200 Output Low Voltage (All Addr Setup to WR tAW 680 ns 113 tey -150 Dlhe, Outputs) V Ol3 0.45 v IOL = 20mA _Ad_d_'-SM_U~p_1_0_0ma_(~R=0~)=--I... AD~'------1-570---n-s-1-1/_15_Ic~v'---_2~ _ _ __ OutpUI High Voltage (BUS) 2.4 V IOH = -400 IJ..A AddrSetuptoData(PSEN) 'A02 1090 ns 8115tCY -250 Oulp.!!!.l!!9h Voltage (RO, Addr Float to RD, WD tAF C1 290 ns 2115 tey -40 2.4 V IOH = -400 f.lA WR, PSEN, ALE) Addr Float to PSEN 'AFC2 40 1!3Dtey -40 Oulput High Voltage (AU 2.4 V 'OH= -40IJ..A ALE to Control (RD, WR) 420 ns 1/5 tey -75 Dlhe' Outputs) tLAFCl Input Leakage Current ALE to Control (PSEN) tlAFC2 170 ns 1/10 tey -75 (T"INn 120 ns 1/15 tey - 40 -500 iJ.A Vee ~ VIN "" Vss + O.45V Control to ALE (PsEN) teA2 620 ns 4115 tey - 40 output Leakage Current II (BUS, T 0- High Impedance 1m. ±10 f.lA VCC?:;C2'-;\-tCC2 -+--r:.C"'A2...J'-'-___ PSEN 2mA lmA Read from External Data Memory r-:---:---!cv---!'! OV 2V \ 4V ALE Port P1 and P2 Output High Voltage vs. Source Current Floating -- Vee =: 4 5V Write to External Memory Typ I~\ ALE WR - - - - - - - - - 1 -- 1\ Bus Floating Floating OV 2V 4V Port 2 Timing ALE BUS Output Low Voltage vs. Sink Current 11 li'P Vee J 5V 20mA / PFIDG----------------i lOmA / / OV tV 2V 4-86 J.LPD8048H/8035HL Instruction Set (for Symbol Definitions, see page 8.) Instruction Code FI... Mnemonic Function Description D, D. D. D. D. Do D, Do Cycl•• ayt•• e AC FO Accumulator ADDA,#data (A) - (A) + data Add Immediate the specified Data to the 0 Accumulator. d, d, d, d. d, d, d, do ADD A, Rr (A) - (A) + (Rr) Add contents of designated register to the 1 1 1 forr=O-7 Accumulator. ADDA,@Rr (A) -(A) + ((Rr)) Add Indirect the contents of the data mem- forr=O-1 ory location to the Accumulator. ADDC A, # data (A) - (A) + (C) + d.ta Add Immecbate wHh carry the specified data to the Accumulator. d, d, d, d, d, d, d, do AOOCA,Rr (A) - (A) + (C) + (Rr) Add with carry the contents of the desig- 1 1 1 lorr=0-7 nated register to the Accumulator. --- ---,--- ADDCA,@Rr (A) _ (A) + (C) + ((Rr)) Add Indirect with carry the contents of data forr = 0-1 memory location to the Accumulator. ANLA,#data (A) -(A) AND data logical AND specified Immediate Data with Accumulator. d, d, d, d, d, d, d, do ANLA,Rr (A) -(A) AND (Rr) Logical AND contents of designated register 0 1 1 1orr=0-7 with Accumulator. ANLA,@Rr (A) - (A) AND ((Rr)) logical AND Indlfect the contents of data 1orr=0-1 memory with Accumulator CPLA (A)_Nar(A) Complement the contents of the Accumulator. CLRA (A)-O CLEAR the contents of the Accumulator. DAA DECIMAL ADJUST the contents of the Accumulator. DEC A (A)_(A)_l DECREMENT by 1 the accumulator's contents. INCA ORLA, # data ORLA,Rr ORLA,@Rr (A)-(A)+ 1 (A) _ (A) OR data (A) ~(A) OR (Rr) forr = 0-7 (A) - (A) OR ((Rr)) forr=0-1 Increment by 1 the accumulator's contents. Logical OR specified immediate data with Accumulator. logical OR contents of designated register with Accumulator. Logical OR Indirect the contents of data memory location with Accumulator. d, d, 1 d, d, d, d, d, do II RLA (AN + l)_(AN) Rotate Accumulator left by 1 bit without (Ao)-(A,) carry. forN = 0-6 RLCA (AN + 1) _(AN);N = 0-6 Rotate Accumulator left by 1 bit through (Ao)-(C) carry. (C)-(A,) RRA (AN)_(AN + 1);N=0-6 Rotate Accumulator nght by 1 bit without (A,)-(Ao) carry. RRCA (AN)_(AN + l);N =0-6 Rotate Accumulator right by 1 bit through (A,)~(C) carry. (C)-(Ao! SWAP A (A.o-,) - (Ao.o) Swap the two 4-bd: nibbles in the Accumulator. XRLA, # data (A) - (A) XOR data logical XOR specified immediate data with 1 1 Accumulator. d, d, d, d, d, d, d, do XRLA, Rr (A) - (A) XOR (Rr) Logical XOR contents of designated register 1 1 1 forr=0-7 with Accumulator. XRLA,@Rr (A) ~ (A) XOR ((Rr)) Logical XOR Indirect the contents of data forr=0-1 memory location with Accumulator. ., .. ., ., ., ., ., ·0 Branch DJNZ Rr, addr (Rr) _(Rr)_1;r = 0-7 Decrement the specified register and test 1 R(R~ = 0 contents. ., ., ., ., ., " ·0 (PC 0-7) -addr JBbaddr (PCO-7)_addrHBb -1 Jump to specified address if Accumulator b, b, bo a., ., ., ., ., " .. ., ·0 (PC) _(PC) + '!fBb = 0 bit Is set. JC addr (PCO-7)_.ddrHC = 1 Jump to specified address if carry flag Is 1 set. ., ., ., ., ., ., " ·0 (PC) -(PC) + .HC = 0 JFOaddr (PCO-7)-addrifFO "" 1 Jump to specified address If Flag FO Is set. = ., ., ., ., ., " '0 (PC) -(PC) + .HFO 0 JFl addr (PCO-7)-addritF1 = 1 Jump to specified address If Flag F1 IS set. 0 = a., ., ., "., ., ., ., ., ·0 (PC)-(PC) + .HFl 0 JMPaddr (PC8-10) _addr8_10 Direct Jump to specified address wtthin 810 ·0 (PCO-7) -addrO-7 the 2K address btock. (PCll)-DBF JMPP@A (PCO-7)-((A)) Jump Indirect to specified address with address page. =0 JNC addr (PC 0-7) _addrHC =1 Jump to specified address If carry flag is ., ., ., ., ., ., " ·0 ., (PC)-(PC) + .HC low. JNladdr (PCO-7)-addrHI =0 (PC) _(PC) +. RI = 1 Jump to specified address If interrupt is low. 1 .. ., " .. ., ., 0 0 '0 4-87 J.tPD8048HI8035HL - -- Instruction Set (Cont.) JN11IIIdd. (PCO-7)-IIdd.H1'O = 0 -...tptIan JumplO _ _ _ H1HtO 10 low. _1_1 D, 0 De 0 --D. .. . .. , . .. D: 0 D. 0 D. ., D. , Do 0 Cvo'" .,... c FIIIgs II; FO " .. ., ., ., .. ., .. (PC)-(PC) + ZH1'O = 1 a., o, JNT1_ (pcO-7)-IIdd.HT1 = 0 Jump 10 _ _ 1Idd_HlMIl 10 low. 0 1 1 0 (PC)<-(PCI + 2HT1 = 1 a., JNZ_ (pcO-7)-_HA = 0 (PC) -(PC) + 2HA = 0 JumplOapacIfItd_ H_mu_ lo_ .. ·s ., ., .. . .. 1 a., 0 1 1 1 0 JTF_ (pC 0-7) <-_ITF = 1 JumplO-"'"Io IlIIomal-.up! Flag lor 11mo'/ Cou_output DlSlCN11 DloabIelnlomallnlorrupi Flag lor 11mer/ Cou_ output _ _ arTlna/Cou_,nIO MOVA, T (A) -(T) Accum_ _ _ 01 Accum_intoTlna/ MOVT,A (T)-(A) Coun18< SIOPTCNT Stop COunt lor E_ Cou_. STRTCNT SWt Count lor _ COunter. STRTT SWt Count lor Tlna. MI _ _ MOP No ~n parIormad. Noles: VIN;;' VSS + 0 45V (PlO.p17, P20,P27, EA, SSI Output Leakage Current 10L ±10 ~A Vee;;;' VIN;;;' VSS+045V (BUS. TO - High Impedance State) Power Down Supply Current 100 7 15 mA Ta - 2SoC Total Supply Current 100 + ICC 60 135 mA Ta 25·C Ta '" 2SoC ± SoC, Vee"" +5V ± 10%. Voo '" +25V ± lV DC CHARACTERISTICS LIMITS PROGRAMMING THE PARAMETER SYMBOL MIN TYP MAX UNIT TEST CONDITIONS IlPD8748 VOO Program Voltage High-Level VOOH 24.0 260 V VOO Voltage !-ow-Level VOOL 4.75 5.25 V PROG Voltage High-Level VPH 215 24.5 V PROG Voltage Low-Level VPl 02 V EA Program or Verify Voltage High-Level VEAH 21.5 245 V EA Voltage Low-Level VEAL 5.25 V VOO ~Igh Voltage Supply Current 100 30.0 mA PROG High Voltage Supply Current IpROG 16.0 mA EA t'ilgh Voltage Supply Current lEA 10 mA 4-94 IlPD8748 READ, WRITE AND INSTRUCTION FETCH - EXTERNAL DATA AND PROGRAM MEMORY AC CHARACTERISTICS Ta = ooe to +70"e, Vee - VDD ~ +5V ± 10%, Vss = OV LIMITS TEST Q) PARAMETER SYMBOL MIN TVP MAX UNIT CONDITIONS ALE Pulse Width tLL 400 ns Address Setup before ALE tAL 120 ns Address Hold from ALE tLA 80 ns Control Pulse Width (PSEN, RD, WRl tcc 700 ns Data Setup before WR tDW 500 ns Data Hold after WR tWD 120 ns CL - 20pF Cycle Time tCY 25 150 ~s 6 MHz XTAL Data Hold tDR 0 200 ns PSEN, RD to Data In tRD 500 ns Addrec;s Setup before WR tAW 230 ns Address Setup before Data In tAD 950 ns Address Float to RD, PSEN tAFC 0 ns Control Pulse to ALE tCA 10 ns Notes CD For Control Outputs CL == 80 pF For Bus Outputs CL = 150 pF tcv = 2 5 ~s PORT 2 TIMING Ta ~ O'C to t70'C; VCC ~ +5V ± 10% Port Controi Setup oefore Failing Edge of PROG PARAMETER Port Con..!.!..Q.lliold after Failing Edge of PROG SYMBOL tcp tpc MIN 110 100 LIMITS TVP MAX UNIT ns ns TEST CONDITIONS II PROG to Time P21nput must be Valid tpR 810 ns Output Data Setup Time top 250 ns Output Data Hold Time tPD 65 'ns I nput Data Hold Time tpF 0 150 ns PROG Pulse W,dth tpp 1200 ns Port 2 1/0 Data Setup tpL 350 ns Port 2 1/0 Data Hold tLP 150 ns PROGRAMMING SPECIFICATIONS -IlPD8748 Ta ~ 25'C+ - 5QC'VCC~+5V+ 10%'VDD~+25V± IV - LIMITS TEST PARAMETER SVMBOL UNIT MIN TVP MAX CONDITIONS Address Setup Time before RESET t tAW 4tcV Address Hold Time after RESET t twA 4tcV Data In Setup Time before PROG t tow 4tcV Data In Hold Time after PROG • two ,4tcV RESET Hold Time to VERIFV tpH 4tcV VDD tVDDW 4tCV VDD Hold Time after PROG • tvDDH 0 Program Pulse Width 'tpw 50 60 ms Test 0 Setup Time before Program Mode 'TW 4tcv Test 0 Hold Time after Program Mode twT 4tcV Test 0 to Data Out Delay tDO 4tcV RESET Pulse Width to Latch Address tww 4tcV VDD and PROG Rise and Fall Times tr,tf 0,5 2,0 JJS Processor Operation Cycle Time tcv 6.0 ps RESET Setup Time before EA t tRE 4tcV 4-95 ",PD8748 TIMING WAVEFORMS t---~tLL~-tCY-----f·1 ALE ~ \ - 1_ _ _ _ _ ----'Ii-----,L BUS INSTRUCTION FETCH FROM EXTERNAL MEMORY ALE L FLOATING FLOATING BUS READ FROM EXTERNAL DATA MEMORY ALE L BUS FLOATING FLOATING WRITE TO EXTERNAL MEMORY 4-96 ,..PD8748 TIMING WAVEFORMS (CaNT.) PORT 2 TIMING - - - t____ PROGRAM _ _ __ '0 06 0 06 7 J.-- ---~ ~ II =--,,, -.~-'::" - - - -;;-- -,,'-____LJ LI__ -'r---------,'~_____ PROGRAMIVERIFV TIMING II'PD8748 ONL VI ~ _____-JI \'--_ _~I ==>- --<'-_':::'~~~,::,!:;;:~::,o_-,,~ --<~_..;':::~::~:!::"=-_~ --- - ----~)(~--------------~)(~--------------- VERIFV MODE TIMING (I'PD8048/8748 ONLVI Notes: (j) Condition.!:. CS TTL Logic "1"; Ao TTL Logic "0" must be met. (Use 10K resistor to VCC for CS, and 10K resistor to VSS for Ao) @ tcv s,..s can be achieved using a 3 MHz frequency source (LC. XTAL or external) at the XTAL 1 and XTAL 2 inputs, 4-97 "PD8748 INSTRUCTION SET INSTRUCTION CODE FLAGS MNEMONIC FUNCTION DESCRIPTION 07 06 Os 0_ 03 02 0, DO CYCLES BYTeS C AC FO Fl ACCUMULATOR ADD A, # data (A) <-. (AI + data Add Immediate the specified Data to the 0 0 Accumulator d7 d6 dS d. d3 d2 d, dO ADDA,Ar (A) <- (A) + (Rr) Add contents of designated register to 0 0 forr'" 0- 7 the Accumulator AOOA,@Rr (A)·- (A) + {(Rrll Add Indirect the contents the data for r '" 0 -- 1 memory location to the Accumulator ADOC A, s: data (A) <- (A) + Ie) + data Add Immedl,1te With carry the specified , data to the Accumulator d7 d6 dS d. d3 d2 d, dO ADDCA, Rr (AI- (A) + (e} + IRr) Add With carry the contents Of the 0 for r '" 0 - 7 deSignated register to the Accumulator ADOC A,@Rr (A) <- (A) + (e) + liAr!) Add Indirect With carry the contents of for r = 0-- 1 data memory location to the Accumulator ANL A. ~ data (AI ~ (AI AND data Logical and specified Immediate Data , With Accumulator d7 d6 d5 d. d3 d2 d, dO ANL A. Ar (A) ~ fA) AND (Rd Logical and contents of deSignated 1 for r" 0-7 register With Accumulator ANLA,@Rr (A) <- (AI AND ((Ad) Logical and Indirect the contents of data for r = a 1 memory wllh Accumulator CPL A fA) <- NOT (AI Complement the contents of the Accumulator CLR A (AI ---0 CLEAR the contents of the Accumulator DAA DECIMAL ADJUST the contents of the Accumulator DEC A (AI· (AI 1 DECREMENT by 1 the accumulator's contents INCA (A)-, IA)'" 1 Increment by 1 the accumulator's ORL A, =data (AI -- (A) OR data Logical OR specified Immediate data , , With AccumUlator d7 d6 dS d. d3 d2 d, dO ORL A. Rr (AI ~- (AI OR (Rd Logical OR contents of deSignated 0 0 0 for r = a -- 7 register With Accumulator DRLA,@Rr (A) ~ (AI OR nRII) Logical OR Indirect the contents of data for (= 0-1 memory location With Accumulator RLA (AN'" 1) - (ANI Rotate Accumulator left by 1 bit ..... Ithol,l! lAO) <- (A71 carry for N = 0- 6 ALC A IAN ... 1) 0 - IAN}, N = a - 6 Rotate Accumulator left by 1·blt through (A O) ...... IC) carry IC) --fA7) ARA (AN) ... (AN + 1 J; N " 0- 6 Rotate Accumulator ngh! by '-bit (A71 <- (AO) Without carry ARCA (AN) ... IAN + 1), N '" 0-6 Rotate Accumulator right by l'blt (A7) - (C) through carry (C) • (Ao' SWAP A (A4-71;:: IAO- 31 Swap the 2 4·blt nibbles 111 the Accumulator XRL A. 1: data (A)"" (A) XOR data Logical XOA speCIfied Immediate data d, XAL A. Ar (A) .- (A) XOA (Ar) With Accumulator Logical XOR contents of designated , d7 .d6 1 d5 0 d. 1 d3 d2 dO lorr=0-7 regiSter With Accumulator XRLA.@Rr IAI <- (A) XOR {(Rd) logical XOA Indirect the contents of data 1 for rea - 1 memory location With Accumulator BRANCH '. DJNZ Rr, addr (Ar) ..... (Rr) - 1. r = 0 - 7 Decrement the specdled register and test conten« If (Ar)" 0 '7 '6 's '3 '2 '1 '0 (PC 0- 71-acldr '. JBb addr (PC 0- 7) -addr If Bb '" 1 Jump to speCIfied address If b2 bl bO {PC} +-- (PC) ... 2 .f Db '" a Accumulator bit IS set '7 '6 's '3 , '2 '1 '0 , ,- JC addr {PCO-71-addrlIC=1 Jump to speCified address.1 carry flag 1 1 0 0 (PCI <- (PCI + 2 If C = 0 '7 '6 's '3 '2 'I '0 JFOaddr ,PCO- 7) ..... addr IfFO = 1 (PCI -)(PC) + 2 If FO = 0 .., Jump to specified addreu.f Flag FO IS 0 's ,- 0 '3 1 '2 1 , 'I 0 '0 .., '7 '6 JFl addr {PCO-7) ..... adcirlfFl = 1 Jump to speclfted address If Flag Fl IS 0 1 1 0 1 0 {PCl - (PCI + 2 ,_ Fl '" 0 '. 's '7 '3 '2 '0 '- '6 'I JMP addr {PCa - 101 - addr 8- 10 Direct Jump to spec.fled address With," '10 'S 0 0 1 0 (PC 0- 7j .... addr 0- 7 the 2K address blOCk '6 's '3 '2 '0 '- '7 'I fPC 11)-- OBF JMPP@A IP,C 0- 7) ..... (fA)} Jump indirect to speCIfied address ...... th 2· With address page JNC addr (PCO- 71 ..... addr If C '" 0 Jump to specified address .1 carry flag IS (PC) ~ (PC) + 2 ., C '" 1 low '7 ~6 's '2 '0 ',- '3 'I JNI addr fPCO- 7) -addr 1'1'" 0 Jump to speCified address .f Interrupt 0 0 1 0 fPC).-- (~l + 2 .f I '" 1 IS low '7 '6 's '3 '2 'I '0 4-98 INSTRUCTION SET (CaNT.) "PD8748 INSTRUCTION CODe FLAGS MNEMONIC FUNCTION DESCRIPTION 07 06 D. o. 03 02 0, DO CYCLES BYTES C AS; FO F, BRANCH (CONT I ',. JNTO addr (PC 0-7)-addr .fTO-O Jump to specified address .f Test 0 IS low 0 (PCI- {PCI + 211TO= 1 '7 , '6 's '3 , " '2 '0 JNTt addr (PCO- 7)_addr.f T1" 0 fPCI- (PC) + 2.fT1" 1 Jump to specifIed address I' Test 1 IS tow ., 0 '6 's '4 0 '3 , " '2 0 '0 JNZ addr (PCO-71-addr.f A = a Jump to specified address,' accumulator 0 0 0 0 (PCI- (PCI + 2.fA =0 "0 '6 'S '4 '3 , " '2 '0 , ., JTF addr (PC 0-71-addr If TF"1 Jump to speCified address ,I Timer Flag 0 0 0 0 (PCI- (PCI + 2 ,f TF = 0 IS set to 1 '7 '6 , , 's '4 '3 '2 '0 JTO addr JTl addr (PC 0-71-addr If TO = 1 (pel- (PCI + 2.,TO" 0 (PCQ-7)-addr If T1 = 1 "(PC) ..... (PC) +2IfTt .. a Jump to specified address 11 T~t 0 IS a Jump to specifIed address ., Test 1 IS a 1 "0 '7 , '6 , 0 's 's 's '. " 0 '3 0 '3 '2 , '2 " ", 0 '0 0 '0 '. J2 addr (PC 0-71-addr If A" 0 Jump 10 speclfted address If Accumulator 0 0 ,,0 (PC) +- (PCI +21f A" 0 " CONTROL 'S " '3 '2 " '0 EN' Enable the ExternallnterruPl Input 0 DIS I Disable the External Interrupt Input ENTO CLK Enable the Clock Output pin TO SEL MBO (OBF) - 0 Select Bank 0 (locations 0 2047) of Program Memory SEL MBl (DBF)-1 Select Bank 1 (locations 2048 4095) of Program Memory SEL ABO 1851-0 Select Bank 0 Uocatlons 0 - 7) of Data Memory SEL AB1 (BS) -1 Select Bank 1 !locatIons 24 31) 01 Data Memory DATA MOVES , II MOVA, data (A)-data Move Immediate the specilled data tr'lto 0 MOVA, AI the AcCumulator ",, de dS , , d. dJ d2 d, dO (A)-(Arl,r=O-7 Move the,contents of the deslqnated reglstels Into the Accumulator MOV A, (i~ Ar (AI-({Rrll,r=O-1 Move Indirect the contents of data memory location tnto the Accumulatol MOVA, PSW (Al-(PSWI Move contents of the Program Status MOVAr, data (Rr) -data, r =0- 7 Word Into the Al,.cumulator Move Immediate lhp speCIfied data 11'110 , , the deSIgnated leglster d, d6 dS d4 d3 d2 d, dO MOV AI, A (Arl - (Al.r" 0-7 Move AccumUlator Contents mto the 0 designated register MOV@Rr,A URrll-(AI,r=O-1 Move Indirect Accumulatol Contents mto data memory locallon MOV@Ar, dala ((Rr)) ..... data.r = 0-1 Move Immed.ate the specIfied data mto 0 , 0 0 data memory d, d6 dS d4 d3 d2 d, dO MOV PSW, A (PSW)-(AI Move contents of Accumulator mto the 0 program stalus word MOVP A,@A (PC a - 71 <- IAI Move cklta m the current paqe Into the IAI-IIPCII Accumulator MOVP3 A,@A (PCO-7)-(AI Move Plogram data In Paqe 3 mto the (PCB-101-011 Accumulator IAI-IIPCIi MOVX A,@R (A)+-{(RrJl,r=0-1 Move IndIrect the contents of external data memory Into the Accumulator MOVX@R,A ((Rr))- (AI. r = 0 - 1 Move Indirect thp contents of the Accumulator IOta external data memory XCH A, Rr (AI ~ (ArI,r" 0-7 Exchang" It,. Accumulator and deslqnated regIster's contents XCH A,@Rr (AI~((Rdl,r=O-1 Exchange Indirect contents of Accumu- lator and location," data memory XCHDA,@Ar (AO- 3) ~ ((Rr}l 0- 31l, Exchange Indirect 4 bit contents ot 0 r= 0-1 Accumulator and data memory CPL C ICI NOT tCI Complement Content of carry bit CPL FO (FOI ' NOT (FOI Cqrnplement Content of Flag FO 0 CPL Fl (FlI NOTIF11 Complpment Content at Flag F 1 0 CLR C ICI 0 Clear content of carry bit to 0 CLA FO (FO)' 0 Clear content of Flag 0 to 0 CLA Fl (FlI 0 Clear content of Flag 1 to 0 4-99 ;,.PD8748 INSTRUCTION SET (CaNT.) INSTRUCTION CODE FLAGS MNEMONIC FUNCTION DESCRIPTION 07 06 05 DO 03 02 0' DO CYCLES 8VTES C AC FO F' INPuT/OUTPUT .o.NL BUS, . data (BUS) <- (BUS) AND data Logical and Immediate specIfied data , 0 0 with contents of BUS d2 d, dO ANL pP. :: data (Ppl <- (Ppl AND data Logical and Immediate specIfied data d7 d6 0 d5 0 dO , d3 0 p' p ANLD Pp, A p=1-2 with designatpd port 11 or 21 , d, d6 0 d5 0 , dO d3 d2 ", dO IPp) +- (Pp) AND (A 0 - 31 logical and contents of Accumulator with p=4-7 deSignated port (4 - 7) IN A. Pp (A) ..... (Ppl. p = 1 - 2 Input data from designated port (1 - 2) mto Accumulator INS A, BUS (AI- (BUS) I nput strobed BUS data mto Accumulator 0 MOVD A Pp (A 0- 3) <- IPpJ,p = 4-7 Move contents of deSignated port (4 - 7) IA4-7J-O Into Accumulator MOVO Pp, A (Ppl-A 0 = 3,p" 4 - 7 Move contents of Accumulator to deSignated port (4 - 7) OAL BUS, data (BUS) ..... (BUS) OA data LogIcal or ImmedIate speCIfIed data with 0 contents of BUS d7 d6 d5 dO d3 d2 dO <" OAlO Pp, A (Pp) ..... (Pp) OR fA 0 - 3) LogIcal or contents of Accumulator wIth p=4-7 deSIgnated port (4 - 7) OA L Pp: - data (Pp) ..... (Ppl OA data logical or Immediate speCified data wIth p p OUTl BUS, A p = 1- 2 (BUS) ..... (A) deSIgnated port (1 - 21 Output contents of Accumulator onto d, d6 d5 dO d3 d2 0 "1 dO 0 0 0 0 0 BUS OUTL Pp, A (Pp) ..... (A).p=1-2 Output contents of Accumulator to deSignated port (1 - 2) REGISTERS DEC Ar jAr! (Ar) ..... (Rr! + 1, r = 0 - 7 Decrement by 1 cont~nts 01 deSignated rpglster INC ~r (Rr);-- (Ar) + 1. r =- 0 - 7 Increment by 1 contents 01 deSignated liAr)) <- ((Rd) + 1, InClement Indirect by 1 the contents 01 r=0-1 data memory location SUBROUTINE CALL addr liSP)) - (PCI, (PSW 4- 71 Call deSignated Subroutine alO a9 BR (SP) <- (SP) + 1 a7 a6 as a4 a3 a2 a1 aO IPC 8 - 10) <- addr 8 - 10 (PCO-7) ..... addr 0-7 (PC 111- OBF RET ISPI - ISPI • , Return from Subroutine Without (PC) ..... IISP)) restonng Pr09ram Status Word AETR ISP) ..... fSP) = 1 Return from Subroutine restOring (PC) ..... IISP)) Program Status Word IPSW 4 71 +-- ((SPII TIMER/COUNTER EN TCNTI Enable Internal lI1!errUPt Flag for Timer/Counter output DIS TCNTI Disable Internal II1terrupt Flag for Timer/Counter output MOVA, T fAI IT! Move contents of Timer/Counter II1to Accumulator MOV T, A IT! fAI Move contents 01 AccumulatOr lOla Timer/Counter STOP TCNT Stop Count for Event Counter STAT CNT Start Count lor Event Counter STRT T Start Count for Timer MISCELLANEOUS NO' No Operation performed o 0 Notes G) Instruction Code DeSignations rand p form the bmary representation of The Registers and Ports Involved ® The dot under the apprOpriate flag bit ,ndiCateS that 115 content IS subject to change by the mstructlon It appears m @ References to the address and data are speclhed 10 bytes 2 and/or 1 of the IOs!ructlon @) Numerical Subscripts appearing 10 the FUNCTION column reference the SpecifiC bits affected Symbol Definitions· SYMBOL DESCRIPTION SYMBOL DESCRIPTION A The AccumulatOr Pp Port DeSignator (p == 1, 2 or 4 - 7) AC The AUXIliary carry Flag PSW Program Status Word addr Program Memory Address (12 bits) Rr Register DeSIgnator (r - 0, 1 or 0 71 Bb Bit DeSignator (b = 0 - 7) SP Stack Potnter BS The Bank Switch T TImer BUS The BUS Port TF Timer Flag C carry Flag TO. T1 Testable Flags 0, 1 ClK Clock Signal X External RAM CNT Event Counter - PrefiX for Immediate Data 0 Nibble DeslQnator (4 bits) @ PrefiX for Indirect Address data Number or ExpreSSion (8 bits) $ Program Counter's Current Value DBF Memory Bank Flip· Flop Ix) Contents of External RAM Location FO. F1 Flag.0.1 Ilx)) Contents of Memory LocatIon Addressed I Interru t by the Contents of External RAM Location, P "In-Page" Operation Designator - Replaced By 4-100 ",PD8748 Package Outlines For information, see Package Outline Section 7. Cerdip, !,PD8748D, has quartz window II 4-101 8748DS-REV2-7-83-CAT Notes 4-102 NEe f-LPD80C481 f-LPD80C35 CMOS 8·BIT SINGLE·CHIP MICROCOMPUTER Description Pin Identification The NEC fLPD80C48 is a true stand-alone 8-bit micro- Pin computer fabricated using CMOS technology. All of the No. Symbol Name Function functional blocks necessary for an integrated microcom- TO Test 0 Testable Input uSing conditional Jump instructions JTO and JNTO. Also enables clock output via the puter are incorporated, including a 1K-byte ROM, a 64-byte ENTO elK instruction. RAM, 27 I/O lines, an 8-bit timer/event counter, and a clock - . --XT-"-l1-- -Crystal 1 One of two mp-u-Cts-t'"""o-,.-xC""t.-,n-.c-,c-rystal oscillator or generator. This Integrated capability permits use in stand- LC CirCUit to generate Internal clock signals May also be used as an mput for external clock signals alone applications. For designs requiring extra capability, _~~~~!~~~~P~!'_b~~~!!:'l ______ _ the I-lPD80C48 can be expanded using peripherals and XTAl2 One of two Inputs for external crystal oscillator or Crystal 2 LC Circuit to generate Internal clock signals. (Non- memory compatible with industry-standard 8080A/8085A __________ 2!~ompatlbleV_'H_)_ _ _ _ _ _ _ processors. A version of the I-lPD80C48 without ROM is - -"RESET- Reset Active-low Input hne that Initializes the proces- offered by the I-lPD80C35. sor Also used to release both the Halt and Stop modes !-y--,~----1 Vee 80C48 30V -=.. +5V r+ 5V BatteryI 0 0 ,1--_ _ _ _ _ _ _--1 RESET >-........- - - - - . . . q C l E A R t---~-----------+ ,,® ,,® f CD /\0 v 1 ®1 l ...L"'V'" J I 0 T It>o---< CLEAR <- CD Q 0 Not••: CD 0 flip-flops must be CMOS (74C74 or equivalent) ® DeSI nated ates must be CMOS 74CQ4 or equivalent Lv 4-104 I-lPD80C48/8OC35 Stop Mode Timing Oscillation stabilization time is represented by t2 (see Stop -Tr Oscillator Oscillator Mode Timing diagram). When Voo goes HIGH, oscillator operation is reactivated, but it takes time before oscillation can be stabilized. In particular, such high Q resonators as "'::: =t4_s crystals require longer periods to stabilize. Because there is a delay between restarting of the oscillator and oscillator stabilization, t2 should be long enough to ensure that the 5 Machine Cycles Oscillation Stabilization Time oscillator has been fully stabilized. Mon To facilitate Stop mode control, an external capacitor can Stop Mode Circuit: Since Voo controls the restarting be connected to the RESET pin (see Stop Mode Control of the oscillator, it is important that VDO be protected from Circuit), affecting only t2, allowing control of the oscillator noise interference. The time required to reset the CPU is stabilization time. When Voo is asserted in Stop mode, represented by t1 (see Stop Mode Timing diagram), which the capacitor begins charging, pulling up RESET. When is a minimum of 5 machine cycles. The reset operation will RESET reaches a threshold level equivalent to a logic 1, not be completed in less than 5 machine cycles. In Stop Stop mode is released. The time it takes RESET to reach mode, it is important to note that if Voo goes LOW before 5 the threshold level of logic 1 determines the oscillator stabi- machine cycles have el~e...QJ.Jhe CPU will be deactivated lization time, which is a function of the capacitance and and the output of ALE, RD, WR, PSEN, and PROG will not pull-up resistance values. have been stabilized. Stop Mode Control Circuit + Q) II Note: G) Polanzed electrolytic capacItor Port Operation Port· Loading Options A port-loading option is offered at the time of ordering the 10H (min) Vee = vpp = 5V ± 10%; V OH = 2.4V (min) mask. Individual source current requirements for Port 1 Option and the upper and lower halves of Port 2 may be factory Selected P1o- Pn P ZO - P 23 P 24-PZ7 Unit set at either - 5fJ-A or - 50fJ-A (see Port-Loading Options A -5 -5 -5 ~A table). The - 50fJ-A option is required for interfacing with B -50 -5 -5 ~A C -5 -50 -5 .A TTUNMOS devices. The - 5fJ-A option is recom- 0 -SO -50 -5 .A mended for interfacing to other CMOS devices. The E -5 -5 -50 .A CMOS option results in lower power consumption and F -SO -5 -50 .A greater noise immunity. G -5 -50 -50 ~A Port lines P10 to P17 and P24 to P27 include a protective H -50 -50 -SO .A circuit "E" to prevent a signal conflict at the port. The circuit Notes: (j) The selection of IOH = - 5f.LA Will result In a port source current of I'LP ~ - 40p.A max prevents a logic 1 from being written to a line that is being when used as mput port @ The selection of IOH = - 50 .... A Will result In a port source current of IILP = - 500jJ.A pulled down externally (see Port Protection Circuit HE" dia- max when used as mput port gram). When a logic 0 is detected at the port line and a logiC 1 is written from the bus, the NOR gate sends a logic 1 to the D input of the flip-flop. The output is inverted, forcing the NAND gate to send a high-level output. This turns off tran- sistor A, preventing the output of a logic 1 from the port. 4-105 J.LPD80C48/8OC35 Oscillator Operation may be connected to the oscillator, or, a ceramic or crystal The oscillator maintains an internal frequency for clock external resonator may be connected. generation and controls all system timing cycles. The As the crystal frequency is lowered, there is an equivalent oscillation is initiated by either a self-generating external reduction in series resistance (R). As the temperature of the. resonator or external clock input. The oscillator acts as a crystal is lowered, R is increased. Due to this relationship, it high-gain amplifier which produces square-wave pulses becomes difficult to stabilize oscillation when there is low at the frequency determined by the resonator or clock power supply Voltage. When Vee is less than 2.7V and the source to which it is connected. oscillator frequency is 3MHz or less, Ta (ambient tempera- To obtain the oscillation frequency, an external LC network ture) should not be less than -10°C. Port Protection Circuit "E" ORL.ANL Pull-up ReSistance QI--------; IN Crystal Frequency Reference Circuit LC Frequency Reference Circuit rl ~ ~ ~omln C2 IC,-C,I ~20pF For example, C1 = 3OpF, and C2 = 10pF Values of C, and C2 do not Include stray capacitance Instruction Set Symbol Definitions Symbol Description A Accumulator External Clock Frequency Reference Circuit AC Auxiliary Carry Flag addr Program or data memory address (aO-a7) or (ao-a,o) b Accumulator bit (b - 0-7) BS Bank Switch BUS Bus C Carry Flag II ClK Clock > __ __-"l2 XTAL1 ~ CNT Counter data 8-bit binary data (d o-d7) DBF Memory Bank Flip-Flop FO, F1 Flag 0, Flag 1 INT Interrupt pin n Indicates the hex number of the specified register Open XTAL2 or port PC Program Counter Note: A minimum voltage of Vee-liS required for XTAL1 to go HIGH Pp Port 1, Port 2, or Port 4-7 (p - 1, 2, or 4-7) PSW Program Status Word R, Register Ro-R7 (, = 0-7) SP Stack Pointer T Timer TF Timer Flag TO, T1 Test 0, Test 1 pin # Immediate data indication @ Indirect address indication x Indicates the hex number corresponding to the accumulator bit or page number specified in the operand (x) Contents of RAM «x» Contents of memory addressed by (x) Transfer direction, result /\ logical product (logical AND) V Logical sum (logical OR) V Exclusive OR Complement 4-107 fJ,PD80C48/80C35 Instruction Set Instruction Code He. Function Description Cod. D, D. D. D. D, D. D, D. Cycles Bytes ., Acc;umulator ADD A, # (A) - (A) + dala Adds immec:hate data d o-d7 to the accumulator. 03 data Sets or clears both carry flags.® d, d, d. d, d, d, d. ADD A, Rr (A) - (A) + (R,) Adds the contents of register Rr to the 6n@ 0 1 1 0 1 ,= 0-7 accumulator. Sets or clears both carry flags ® ADD A, @Rr (A) - (A) + «R,)) Adds the contents of the internal data memory 6n@) r = 0-1 location specified by bits 0-5 of register R, to the accumulator. Sets or clears both carry flags.® "---------- ADDCA,# (A) - (A) + data + (C) Adds, with carry, Immediate data d o-d7 to the 13 data accumulator. Sets or clears both carry flags.® d, d, dJ~~4 d, d, d, do ADDCA, R, (A) - (A) + (R,) + (C) Adds, with carry, the contents of register R, to the 7n® 0 1 1 1 r = 0-7 accumulator. Sets or clears both carry flags.® ADDCA, (A) - (A) + «R,)) + (C) Adds, with carry, the contents of the Internal data 7n® @R, r = 0-1 memory location speCified by bits 0- 5 of register Rp to the accumulator. Sets or clears both carry flags.® ANLA,# (A) - (AlI\data Takes the logical product (logical AND) of 53 data Immediate data d o-d7 and the contents of the accumulator, and stores the result in the accumulator. ANLA, Rr (A). (A)NR,) Takes the logical product (logical AND) of the 5n® r = 0-7 contents of register Rr and the accumulator, and stores the result In the accumulator ANLA,@Rr (A) - (A)I\«R,)) Takes the logical product (logical AND) of the 5n® r = 0-1 contents of the Internal data memory location specified by bits 0-5 of register Rp and the accumulator, and stores the result In the _ _ _ _~~-----accumula-'-o'--_ __ CPLA (A)-(A) Takes the complement of the contents of the 37 accumulator. CLRA (A)·-O =-:--:--_----'---'----'---_ Clears the . _ _ _--:-'----' contents of the _ accumulator c.-,,--,-=---::.:,--,. _ _ _ _ _ _ 27 _ _ _0_ _ 0 __ 0 __ 1 _____0 _ _ _ _ _ _1_ _ ~ ~_~ 1__ DA A Converts the contents of the accumulator to BCD. 57 0 1 1 Sets or clears the carry flags. When the lower 4 bits (Ao-J) are greater than 9, or If the AUXiliary Carry Flag has been set, adds 6 to A0-3 ' When the upper 4 bits (47) are greater than 9 or If the Carry Flag (C) has been set, adds 6 to A4-7 If an overflow occurs at t~IS pO'"t, C IS set,@ _~. _ _. _ ._. _ _ ___ .__ _ Dec A (A)-(A) - 1 Decrements the contents of the accumulator by 1: 07 INCA (A)-(A) + 1 Increments the contents of the accumulator by 1. 17 ORLA,# (A) - (A)Vdala Takes the logical sum (logical OR) of Immediate 43 data data d o-d7 and the contents of the accumulator, c-_ _ _ _ _ _ _ _ _ _ _---.:a"'n"'d stores the result'" the accumulator ______ ~ .. _. _ _._________._ _ _ _ _ _ _ _ _ .~"_ ORLA, R, (A) - (A)V(R,) Takes the logical sum (lo~lcal OR) of register Rr 4n® 1 1 ,= 0-7 and the contents of the accumulator, and stores the result In the accumulator ORLA,@R, (A) - (A)'0(R,») Takes the logical sum (logical OR) of the contents 4n® ,= 0-1 of the Internal data memory location specified by bits 0-5 In register Rr • and the contents of the accumulator, and stores the result In the accumulator. RLA (Ab + 1) - (Ab) Rotates the contents Of the accumulator one bit to E7 (Ao)-(A,) the left. The MSB IS rotated Into the LSB. b = 0-6 RLCA (Ab + 1)-(Ab) Rotates the contents of the accumulator one bit to F7 (Ao)·-(C) the left through carry. (C)-(A,) b = 0-6 RRA (Ab) - (Ab + 1) Rotates the contents of the accumulator one bit to 77 (A,)-(Ao) the right. The LSB IS rotated Into the MSB b = 0-6 RRCA (Ab) - (Ab + 1) Rotates the contents of the accumulator one bit to 67 (A,)-(C) the right through carry (C). (Ao) b =0-6 SWAP A (A4-,)~(A0-3) exchanges the contents of the lower 4 bits of the 47 accumulator With the upper 4 bits of the accumulator. XRLA, # data (A) - (A!Vdala Takes the exclUSive OR of Immediate data d o-d7 03 and the contents of the accumulator, and stores =:-:--::-_----c:-:---c:-::-:=_ _ _-:'c:-he:-re_s-::"_It_in_'-c-he_a_ccumulato_',_ _ _--c-_ _--::- XRLA, R, (A) - (AlV(R,) Takes the exclUSive OR of the contents of register Dn® r = 0-7 Rr and the accumulator, and stores ~he result In the accumulator. XRLA,@R, (A) - (AM(R,)) Takes the exclUSive OR of the contents Of the Dn® r = 0-1 location In data memory specified by bits 0-5 In register R" and the accumulator, and stores the result In the accumulator. Branch DJNZ Rp (R,)-(R,) -1 Decrements the contents of register A, by 1, and If En addr If (R,) oj. 0, then the result is not equal to 0, Jumps to the address (PCo-7) <. addr mdlcated by aO-a7' ,= 0-7 JBb addr (PCo-7) addr If b 0-- 1 = Jumps to the address specified by aO-a7lf the bit x2® _ _ _ _ (PC) = (PC) + 2,fb 0 = ----''-='_''-='--'-=-=----=----.:':::n.::.'h:.:.e::.ac:.:c",":::m.::::ul~~or speCified by bo-b 2 lS set. 4-108 j.LPD80C48/8OC35 Instruction Set (Cont.) Instruction Code Hex Mnemonic Function Description Code Branch (Cont.) JCaddr (pc..-,) ~ add, It C = 1 Jumps to the address specified by 80-87 It the F6 (PC)~ (PC) + 21tC = 0 Carry Flag Is set. JFO addr (PCo-r) ..... addr If FO 1 = Jumps to the address specified by .0-87 if FO B6 (PC)~(PC) + 21tFO = 0 Is set. JF1 addr (PCo-r) .... addr If F1 - 1 Jumps to the address specified by 80-87 11 F1 76 (PC)~(PC) + 21tF1 = 0 Is set. JMPaddr (PCB-10) +--- addr8-10 Jumps directly to the address specified by .0-8'0 x4® (pc..-,) ~ add,O-' and the OBF. (PCll)~ OBF JMPP@A (PCO-,)~«A)) Replaces the lower 8 bits of the Program Counter B3 with the contents of program memory specified by the contents of the accumulator, producing a Jump to the specified address within the current page. JNC addr (PC0- 7) <- addr if C = 0 Jumps to the address specified by 80-871' the E6 (PC)~(PC) + 21tC = 1 Carry Flag is not set JNI addr (PCo-7) <- addr If I = a Jumps to the 8ddress specified by 80-87 If the 86 1 1 0 (PC)~(PC) + 2111 = 1 Interrupt Flag Is not set. JNTOaddr (PCo-7) <- addr if TO - 0 Jumps to the address specified by 80 -87 If Test 0 _ _ _ _-'(1'9 ~ (PC) + 21tTO = 1 IS LOW. 83 a2 al ao JNT1 addr (PCo-7) <- addrlfT1 = a Jumps to the address specified by 80-87 11 Test 1 46 o (PC) ~ (PC) + 2 ItT! =1 Is LOW. 83 a2 al ao JNZ addr (PCO-') ~ add' It A " 0 Jumps to the address specified by ao-87If the 96 o (PC)~(PC) + 21tA = 0 contents of the accumulator are not equal to O. 87 a6 as a=-4_ _ _-:a;'____ac:'2_ _a~1_ _:a~o_---::-_-::_ JTFaddr (PCo-7) ..... addr If TF - 1 Jumps to the address specified by 80-87 If the 16 (PC)~(PC) + 21tTF = 0 Timer Flag IS set. The Timer Flag IS cleared 8fter 83 82 a1 ao the Instruction is executed. JTOaddr (PCo-7) ..... addr If TO =1 Jumps to the address specified by 80-a7 if Test 0 36 II ~___:~-~(P~C~)-~~(P-C~)~+~2~;=fT~O-=~O-;.~H-'-G-H~-~___:~--~~--~~~___:~--_:a,'----a~,~ .5 __~a4'____ _-:a~3_ _:a2~___:a,'----a70~-~-___:~ JT1 addr (PCo-7) ..... addr If T1 - 1 Jumps to the address specified by aO-a7 " Test 1 56 1 0 (PC) .... (PC) + 2 If T1 =a is HIGH. a7 a6 a5 a4 a3 82 81 ao JZ (PCo-7) .... addr if A - 0 Jumps to the address specified by ao-87If the C6 0 (PC) <- (PC) + 21f A = 1 contents of the accumulator are equalto O. a7 a6 as a4 a3 a2 a1 ao Control ENI Enables external mterrupts. When external 05 Interrupts are enabled, a low-level Input to the INT pin causes the processor to vector to the mterrupt service routine. OISI Disables external interrupts. When external 15 Interrupts are disabled, low-level mputs to the tNT pin have no effect on program execution. ENTOCLK Enables clock output to pm TO. 75 SEL MBO Clears the Memory Bank Flip-Flop, selecting E5 Program Memory Bank 0 [program memory addresses o-2047(10~' Clears PC1l after the next JMP or CALL Instruction. SELMBI (OBF) ~ 1 Sets the Memory Bank Flip-Flop, selecting F5 Program Memory Bank 1 {program memory ~~~:~S;:t~:;~~:t\~~: Sets pe l1 after the next SELRBO Selects Data Memory Bank 0 by clearing bit 4 C5 (Bank SWitch) of the PSW. SpeCifies data memory ~~:~:aOn~78.0) as registers 0-7 of Data SELRB1 Selects Data Memory Bank 1 by setting bit 4 D5 (Bank SWitch) of the PSW. SpeCifies data memory 24-31(10) as registers 0-7 of Data Memory Bank 1. HALT Initiates Halt mode. 01 Data Moves MDV A.# (A) ~ data Moves immediate data d o-d7 into the 23 data accumulator. MOV A,Rr (A)~(R,) Moves the contents of register Rr Into the Fn@ 1 1 1 r = 0-7 accumulator. MDV A. @ R, (A) ~ «R,)) Moves the contents of internal data memory Fn@ r = 0-1 specified by bits 0-5 in register Rr • into the accumulator. MDV A. PSW (A) ~ (PSW) Moves the contents of the Program Status Word C7 mto the accumulator. MOVRr,# (Rr) <-data Moves immediate data do-d7 into register Rr . Bn@ data r =0-7 (R,)~(A) Moves the contents of the accumulator Into An@ 1 0 1 0 r = 0-7 register Rr MDV @ R,. A «R,)) ~ (A) Moves the contents of the accumulator Into the An@ r = 0-1 data memory location speCified by bits 0-5 in register Rr . MDV @ R" # «R,)) ~ data Moves Immediate data d o-d7 lnto the data Bn® data r = 0-1 memory location specified by bits 0-5 10 register Rr . MDV PSW. A (PSW) ~ (A) Moves the contents of the accumulator mto the 07 Program Status Word. 4-109 J.LPD80C48/8OC35 instruction Set (Cont.) _u_ - MOYPA,@A (PCo-,) - (A) (A)-«Pe)) Description Data Move. (Cont.) Movea the content. of the program memory location specified by PC8-11 concatenated willi the contents of the accumulator, Into the Hex Code A3 D, D. D. Instruction Code D. D. D. D, D. Cycl•• Bytes accumulator. MOVP3A, (PCo-,) - (A) Moves the contenta of the program memory E3 @A (PCo-l1) - 001 location specified by 0011 (PC8-11' page 3 of (A)-«Pe)) Program Memory Bank 0) and the contents of the accumulator, Into the accumulator. MOVXA,@R (A)-«II,)) Moves the contents of the external data memory 8n@ r = 0-1 location specified by register Rr • Into the accumulator. MOVX@R,A «II,))-(A) Moves the contents of the accumulator Into the 9ft@ r = 0-1 external data memory location specffled by register Rr . XCH A, R, (A)_(R,) Exchanges the contents of the accumulator and 2n@ r = 0-7 register Rr • XCHA,@R, (A)-«R,)) Exchanges the contents of the accumulator and 2n@> r = 0-1 the contents of the data memory location specified by bttl 0-5 In register Rr . XCHOA,@ (Ao..)-«R'Q-3)) Exchanges the contents of the lower 4 bits of the 3n@> II, r = 0-1 accumulator with the contents of the lower 4 bits of the intema' data memory location specified by bits 0-51n register Rr• FI_gs CPLC (C)-(C) Takes the complement of the Carry bit. A7 CPLFO (FO)-(FO) Takes the complement of Flag O. 95 CPLFI (Fl)-(F1) Takes the complement of Flag 1. B5 CLRC (C)-O Clears the Carry bit. 97 CLRFO (FO)-O Clears Flag O. 85 CLRFI (Fl)-O Clears Flag 1. AS Input/Output ANLBUS,# (BUS) - (BUS)/ldata Takes the logical AND of the contents of the bus 98 data and Immediate data do-d7 , and sends the resutt to d, d, d, d, d, d, d, do the bus. ANLP.. # (P,) - (P"l;\data Takes the logical AND of the contents of 9n@ p p data p = 1-2 designated port Pp and Immediate data d o-d7, d, d, d, d, d, d, d, do and sends the result to port P~ for output. ANLO P.. A (P,) - (P,);\(A0-3) Takes the logical AND of the contents of 9n@ p = 4-7 designated port Pp and the lower 4 bits of the accumulator, and sends the result to port Pp for output. INA,Pp (A)-(P"l Loads the accumulator with the contents of On@ ~ = 1-2 designated port Pe: INS A, BUS (A)-(BUS) Loads the contents of the bus Into the 08 accumulator on the rising edge of RD. MOVO A, P, (Ao..)- (P"l Moves the contents 01 designated port Pp to the On@ (4,)-0 lower 4 btts of the accumulator, and clears the P' = 4-7 upper 4 bits. MOVDPpo A (P"l- (Ao-,) Moves the lower 4 bits of the accumulator to 3n@ p = 4-7 designated port Pp- The upper 4 bits of the accumulator are not changed. ORLBUS,# (BUS) - (BUS)\foata Takes the logical OR of the contents of the bus 88 0 data and Immediate data do-d7 , and sends the result to d, d, d, d, d, d, d, do the bus. ORLOp.. A (P,) - (P"lY(-ConttolXOUIputo.uox::: If'!' Expander _ _ _ ~,~_ Port~ outPut~""-I ..,. f.-'" PROG I 4-113 ~D80C48/8OC35 Block Diagram A Oscillator Frequency Bus Buffer and Latch Port 1 Multiplexer Test 0 RegIster 0 Test 1 Register 1 Register 2 cc ~ FlagO -+25Vto + 55V RegIster 3 Flag 1 Power Register 4 Supply Vss Timer Flag -Ground Carry Register 5 Voo Standby Power Control Register 6 Register 7 Ace Bit Test a-Level Stack (Vanable Word Length) Optional Second Register Bank Data Store Control and Tlmmg XTAL XTAL Resident Data Memory - RAM 1 2 (64x8) Low Power liD Standby Control Expander OSCillator! Strobe Crystal Notel j.LPD80C35 does not Include ROM Absolute Maximum Ratings* = T. 25"C Operating Temperature, Topt -40"C to +8S0 C Storage Temperature (Cerdip Package), T••g - 65°C to + 150°C Storage Temperature (Plastic Package), T"9 - 65°C to + 125°C Voltage on Any Pin, VIIO Vss - 0.3V to Vee + 0.3V Supply Voltage, Vee Vss -0.3to +10V Power Dissipation, Po 0.3Sw 'COMMENT: Exposing the device to stresses above those listed in Absolute Maximum Ratings could cause perma- nent damage. The device is not meant to be operated under conditions outside the limits described in the opera- tional sections of this specification. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. 4-114 ~/80C35 Operating Characteristic Curves Output High CUmtllt va. Output High Voltage output High CUmtllt v•. Output High Voltage Vee = 45V Vee = 4 SV ;c ..; -400 1\ -15 J ~ a \ ,\yp \ ~ :z: \ i J-l0 -zoo ~ ~ \ - I u .c !!' :z: \ ~ \. I\YP \ io ~ ~ -5 ~~ M~ Output High Voltage. YOH (V) output High Current v•. Supply Voltage YOH1 = 24V II -150 -15 Output High Voltage, YOH1 (V) II ;C Output High CUmtllt va. Supply Voltage .: J 'S I VOH2=VCC-O 5V ~ ~ u -100-10 1 -04 rj J I 6 -so -5 I .. u .c :f S ~ -02 I / / I / V " -I: 1/ II Supply Voltage. Vee (V) Supply VOltage. Vee (V) Output Low CUmtllt va. Supply Voltage Output Low CUmtllt va. Output Low Voltage VOL = 045V Vee = 4 5V t-- 1/ / V ,, // V / V' ,, 05 10 Output Low Voltage. VOL (V) L I I Supply Voltage. Vee (V) 4-115 f.lPD8OC48/80C35 Operating Characteristic Curves (Cont.) Supply Current vs. Oscillation Frequency Port Control Hold After PROG, tpc Max ([.lPD80C48), and Address to Output Delay, taee Min ([.lPD82C43), vs. Supply Voltage Vee == 3V Icc Max/ / ;; g 05 . . h:ryp \ ~ ~Mon J,tPD82C43: -~ ) i 02 § .PD80C48 ~ ~ I"--- tpe Max u >- 1i 01 g. (/l 005 i'- 003 01 02 0.5 Oscillation Frequency, f(MHz), (1 =15/t CY ) Supply Voltage, Vee (V) Cycle Time vs. Supply Voltage Current Consumption as a Function of Temperature - Normal Operating Mode 200 f = 6MHz Vcc=55V 100 10 r- 50 I--Z -- . Operation Guarantee Area '".2' 20 t >= ~ 10 ~ u '"'" ""'- -- -- ICCl "- I- I Halt Mode -40 25 85 Temperature, Ta reI Supply Voltage, Vee (V) Current Consumption as a Function of Operating Frequency- Supply Current vs. Oscillation FrequencyCD Normal Operating Mode Vcc~~ Vee == 5 5V ... V V 10 ,, // '/ V 8 Max ...... ./ ,, , ,, , // V V ,, ,, ...... f.(p ,, , ICCl Max,.......... , 5 r----. , , , / /' V/ V ,, , / /' V 2 ,, ,, ........ ..-- /' / , , , ,, ,, 02 0.5 , , , " Oscillator Frequency (MHz) 1 , , , " 00 5 Note: CD External oscillation IS assumed for frequency less than 1MH7 01 02 05 Internal oscillation requires more power OscIllation Frequency, f(MHz), (1 == 1SltCY) 4-116 Il-PD80C48/80C35 Operating Characteristic Curves (Cont.) Current Consumption as a Function of Temperature - Stop Mode Vee - 5 5V v- 20 / ;( -'- Jl / 10 ,,- / /Typ / /'" V -40 25 85 Temperature, T. (0C) Package Outlines III For information, see Package Outline Section 7. Plastic, fLPD8048HC/35HLC Ceramic, fLPD8048HD/35HLD Plastic Shrinkdip, fLPD80C48C Plastic Miniflat, flPD80C48G/C35G 80C48/80C35DS·REV1·10·83·L-8K 4-117 Notes 4-118 NEe fJ-PD8049H/fJ-PD8749H/fJ-PD8039HL HIGH PERFORMANCE SINGLE CHIP 8·BIT MICROCOMPUTERS Description Pin Identification The NEG fLPD8049H, fLPD8749H and fLPD8039HL are sin- Pin Function gle chip 8-bit microcomputers. The processors differ only in No. Symbol their internal program memory options: the fLPD8049 has To Testable input using conditional transfer functions JTO and JNTO. 2K x 8 bytes of mask ROM, the fLPD8749 has 2K x 8 of The internal State Clock (elK) is available to To usmg the ENTO eLK instruction. To can also be used during programming as a UV erasable EPROM and the fLPD8039HL has external testable flag. program memory. XTALI One side of the crystal, LC, or external frequency source. (Non-TTL compatible V1H .) XTAL2 The other side of the crystal or LC frequency source. For external Features sources, XTAL 2 must be driven with the logical complement of the o High performance 11 MHz operation XTAL 1 ,"put. o Fully compatible with industry standard 8049/8749/8039 RESET Active low input from processor Inltl8lizatlon. RESET IS also used for PROM programming verification and power-down (non-TTL o Pin compatible with the fLPD8048/8748/8035 compatible VIH~ o HMOS silicon gate technology requiring a single + 5V SS Single Step inPut (active--Iow~ SS together with ALE allows the processor to "single-step" through each instruction In program ±10% supply memory. o 1.36 fLs cycle time. All instructions 1 or 2 bytes INT Interrupt Input (actlve-Iow~ INT mil start an interrupt if an enable o Programmable interval timerlevent counter Interrupt Instruction has been executed. A reset will disable the interrupt. iff can be tested by issulllg a conditional Jump o 2K x 8 bytes of ROM, 128 x 8 bytes of RAM instruction. o External and internal interrupts EA External Access input (actlve-hlgh~ A logiC "1" at this input com~ o 96 instructions: 70 percent single byte mands the processor to perform all program memory fetches from external memory. o 27 110 lines RD READ strobe outputs (actlve-IO!!l:. RD will pulse low when the pro- o Internal clock generator cessor performs a BUS READ. RD will also enable data onto the o Expandable with 8080Al8085A peripherals processor 8US from a peripheral device and function as a READ STROBE for external DATA MEMORY. o Available in both ceramic and plastiC 40-pin packages PSEN Program Store Enable output (actlve-Iow~ PSEN becomes active only during an external memory fetch. 10 WR WRITE strobe output (active-low.1:..!{R Will pulse low when the pro- cessor performs a BUS WRITE. WR can also function as a WRITE STROBE for external DATA MEMORY. 11 ALE Address latch Enable output (actlve-hlgh~ Occurring once each Pin Configuration cycle, the failing edge of ALE latches the address for external memory or peripherals. ALE can also be used as a clock output. 12-19 0,-1>, BUS 8-blt, bidirectional port. SY!!£.hron2l!! reads and writes can be per- formed on this port uSing RD and WR strobes. The contents of the TO Do-D7 BUS can be latched In a static mode. Vee XTAL 1 XTAL2 Tl P27 ~~~~~c:~t=~!::~~a:C:;~:~~~:n~~II~~~~:~- ing addressed IIlstruction. Also, for an externa~M d.!!!.store R"Effi P26 instruction the Dcr07 BUS, controlled by ALE, RD and WR, con- sg P2S tams address and data Information. !NT P24 20 Processor's GROUND potential. P17 V" EA Ali PIS 21-24, P2IrP27: Port 2 IS the second of two 8-brt quasi-bidirectional ports. For 35-38 PORT 2 external data memory fetches, the four most Significant bits of PSEN PIS the program counter are contained m P2tJP 23. Bits P20""P23 are ViR P14 also used as a 4-blt 110 bus for the fLPD8243, INPUT/OUTPUT ALE P13 EXPANDER. DBO P12 25 PROG PROG IS used as an output strobe for /J-P08243s dUring I/O expan- OBI Pll sion. When the fLPD8049H IS used In a stand-alone mode the Pl0 PROG pan can be alklwed to float. DB2 DB3 VDD 26 Voo Voo IS used to proVide +SVto the 128 x 8-bIt RAM section DUring DB4 PROG normal operation Vee must also be + 5V to provide power to the other functions in the device. DUring stand-by operation Veo must DBS P23 remain at + 5V While Vee IS at ground potential. DBS P22 27-34 P1crP17: Port 1 IS one of two 8-bit quasi-bidirectional ports DB7 P21 PORT 1 Vss P20 39 T1 Testable Input uSing conditional transfer functIOns JT1 and JNT1. T1 can be made the counter/timer Input using the STRT CNT instrUction. 40 Vee Pnmary Power supply. Vcc IS + 5V dunng normal operation 4-119 /-LPDS049H/S749H/S039HL Functional Description The fLPD8049H contains the following functions usually found The NEC fLPD8049H, fLPD8749H and the fLPD8039HL are in external peripheral devices: 2048 x 8 bits of mask ROM high performance, single component, 8-bit parallel microcom- program memory; 128 x 8 bits of RAM data memory; 271/0 puters using H-channel silicon gate MOS technology. The lines; an 8-bit interval timerlevent counter; and oscillator and fLPD8049H family functions efficiently in control as well as clock circuitry. arithmetic applications. The powerful instruction set eases bit The fLPD8749H differs from the fLPD8049H in its 2048 x 8-bit handling applications and provides facilities for binary and UVerasable EPROM program memory instead of the mask BCD arithmetic. Standard logic functions implementation is ROM memory. It is useful in preproduction or prototype facilitated by the large variety of branch and table look-up applications where the software design has not yet been final- instructions. ized or in system designs whose quantities do not require a The instruction set is comprised of 1 and 2 byte instructions, mask ROM. most of which are single-byte. The instruction set requires The fLPD8039HL is intended for applications using external only 1 or 2 cycles per instruction with over 50 percent of the program memory only. It contains all the features of the instructions single-cycle. fLPD8049H except for the internal ROM. The external pro- The fLPD8049H family of microprocessors will function as gram memory can be implemented using standard stand-alone microcomputers. Their functions can easily be 8080N8085A memory products. expanded using standard 8080N8085A peripherals and memories. Block Diagram _Supply I Expansion to Additional External Memory and 110 Bus Bulle, ~r-----r--------r----~~r---. .------. .--~L-----~~--~------------~~~ and ~----~ ~;~ Multiplexer Reglata'O Reglat.r1 Reglsler 2 Reglata,3 Reglala,4 RegISIer 5 RegiS.' 6 Reglata,7 8-LavoI Slack (Variable Word Length) Opllonal Second Register Bank Data Store COntrol and nmlng _ DaIa Memory- RAM XTALXTAL (128x8) 1 2 Oscillator/ Crystal Note: ,....PD8039H does not Include ROM. 4-120 j.LPDS049H/S749H/S039HL Absolute Maximum Ratings* AC Characteristics T. = 2S'C T. = O'Cto +70'C, vee = voo = SV ± 10%, Vss = OV Limits f lleyl and Test Operating Temperature O'Cto +70'C Parameter Symbol Min Tvp Max Unit Conditions Storage Temperature (Ceramic Package) - 65'C to + 150'C ALE Pulse Width tLl.. 150 7/30 tcy -170 Addr Setup to ALE tAL 70 ns 2I15tCY -110 Storage Temperature (Plastic Package) -65'Cto +150'C Addr Hold from ALE tLA 50 ns 1I15tCY -40 Voltage on Any Pin -O.5Vto +7VIJJ Control Pulse Width (RD, WR) tCC1 480 ns 112 tCY -200 Control Pulse Width (PSEN) 350 ns 215 tCY -200 Power Dissipation 1.5W Data Setup before WR tow 390 ns 13130tCY -200 Note: CD With respect to ground. Data Hold after WR two 40 1/15tcy -SO ® Data Hold (RD, PSEN) 110 ns 1110 tCY -30 RDto Data In 350 ns 2I5tCY -200 'COMMENT: Exposing the device to stresses above those PSEN to Data In 210 ns 3Il0tCY -200 listed in Absolute Maximum Ratings could cause permanent Addr Setup to WR 300 ns l/3tCY -150 damage. The device is not meant to be operated under Add, Setup to Data (RD) 750 ns 11I151cv - 250 conditions outside the limits described in the operational Add, Setup to Data (PSEN) 480 ns 8J15tcY -250 sections of this specification. Exposure to absolute max- Addr Float to RD, WR 140 ns 2115 tCY -40 imum rating conditions for extended periods may affect Addr Float to PSEN 10 ns 1/30 tCY -40 device reliability. ALE to Control (RD, WR) 200 ns 11StCY -75 ALE to Control (PSEN) 50 ns 1110tCY -75 Control to ALE (RD, WR, PROG) tCA1 50 ns 1115 tCY -40 Control to ALE (PSEN) tCA:! 320 ns 4115 tCY -40 Port Control Setup to PROG tcp 100 ns 1110 tCY -40 DC Characteristics Port COntrol Hold to PROG tpc 160 ns 4115 tCY - 200 T. = O'Cto +70'C;Vcc = Voo = +SV ± 10%;Vss = OV Parameter Input Low Voltage (All Except XTAL 1, XTAL 2) ::u~~~ ~:~~, XTAL 2, RESET) V 1H Symbol Min -0.5 2.0 Limits Typ Max Unit 0.8 Vee V V Test Conditions PROG to P21nput Valid Input Data Hold from PROG output Data Setup Output Data Hold PROG Pulse Wtdth Port 2 1/0 Setup to ALE tPR tpF top tpo tpp tpL 400 90 700 180 550 140 ns os ns ns ns ns 17130tCY -120 1110 tCY 215 tCY -150 1110lev -50 7/10tCY -250 4115 lev - 200 II Port 2 1/0 Hold to ALE t LP 40 ns 1/10tCY -100 Input High Voltage 3.8 (RESET, XTAL " XTAL 2) Output Low Voltage (BUS, RD, WR, PSEN, ALE) Vee 0.45 V VIOL = 2.0 mA Port Output from ALE Cycle Time VD Rep Rate t pv lev IOPRR 1.36 270 510 .s ns ns 3110lev -100 11 MHz 3/15 icy output Low Voltage (All Other Outputs Except PRDG) VOLl 0.45 VIOL = 2.0 mA Notes: CD Control Outputs CL = 60pF BUS Outputs CL = 150pF Output Low Voltage (PROG) 0.45 VIOL = 2.0 rnA ® BUS High Impedance Load 20pF @ Calculated values will be equal to or better than published 8049 values. Output High Voltage (BUS) 2.4 V IOH = -400IlA Output High Vottage (RD, 2.4 V IOH = -400!-lA WR, PSEN, ALE) Output High Voltage (All AC Characteristics for Programming 2.4 V IOH = - 4OiJA, T. = 2S'C ± s'C;vee = +sv ± S%;Voo = +21V ± o.sv Other Outputs) Input Leakage Current Limits fT" EA, INT) Parameter Symbol Min Tvp Max Unit Test Conditions Input Leakage Current Address Setup Time to Pl1l-17, P20-27, EA, SS In.1 4lev RESET I Address Hold 11me After 4tCY RESET I Power Down Supply Current 100 10 rnA Ta = 250C Data In Setup Time to PROG i low 4tCY 100 + Data In Hold Time After Total Supply Current 80 110 two 4lev Icc PRDG I RESET Hold Time to Verify IpH 4tCY t voDW 1.0 ms Voo Hold Time After PROG J tVDOH 1.0 DC Characteristics for Programming T. = 25'C ± s'C;vcc = +SV ± S'\b;Voo = +21V ± o.sv Program Pulse Width 50 60 ms Test 0 Setup Time for Limits Program Mode 4tCY Parameter Symbol Min 1'yp Max Unit Test Conditions Test 0 Hold Time After Program Mode 4tCY Voo Program Voltage High Level VOOH 20.5 21.5 V Test 0 to Data Out Oe6ay too 4tCY Veo Voltage Low Level 4.75 5.25 V RESET Pulse Width to Latch PROG Program Voltage High Level 17.5 18.5 V Address tww 4tCY PRDG Voltage Low Level 4.0 V ~::,Od PROG Rise and Fall tr tt 0.5 100 "" EA Program or Verity Voltage 17.5 18.5 V CPU Operation Cycle Time tCY 4.0 High Level 15 "" Voo High Voltage Supply Current 100 20.0 mA RESET Setup Time before EA i tRE 4lev PROG High Voltage Supply Current IpROG 1.0 mA Notes: Gl Control Outputs CL = 60pF EA High Voltage Supply Current lEA 1.0 mA BUS Outputs CL = l50pF ® BUS High Impedance Load 20pF @ Calculated values will be equal to or better than published 8049 values. 4-121 fJ.PD8049H/8749H/8039HL Timing Waveforms Instruction Fetch from External MemOIy BUS Output Low Vonage vs. Sink Current I+\-----Icv - - - - - I \-"-L-I ,.", ALE PSEN ___-+---=-J....:'A~F"'C2,I-'cc'-I-rlc"'A2"_-I'_'____ 3mA vee - 2rnA Read from External Data Memory .-------Icv---+i lmA \ ALE ___~I--_'u~F~~-~~Ic~-1:~....:Ic~A'~____ RD L-S Bus Address -=FI""oat""'l-ng",r~ ~ 'AF~ ~ Data Floating --l 'D_ Floating 4V t AD - ---I,"DF Write to External Memory Port P1 & P2 Output High Voltage vs. Source Current ALE ' 0 ", WR ------=='---1 Floatmg Vee = 100..- Port 2 Timing l'jp EXP.:::~ Port Output PCH iJc» PootCllnl\ool 0IIIpIII0!III0 50..- I~ \ EXpa:~ """""'PC"'H"'r-... -'r"--v-.......:;,:,..,... Input _ PRDG~ _ _ --:;If...ti---l av "N 1\ 4V v.... Waveforms for Programming the jJPD8149H YEAIFY::r- PROGRAM- - BUS Output High Vonage vs. Source Current ~=---+----:r- l'jp voc J +2IIV Voo +5V / / Iwo +18V _I-I'---'~ PROGiiV--~L_,.,,..-------. ___ Program/Verify Timing (ROM/EPROM) lCJmA P~,~ ____________Jx~ ______________ V av tV VOL "N 4-122 j.LPDS049H/S749H/S039HL Symbol Definitions Logic Symbol Symbol Description A The Accumulator 1>1::- The Auxiliary Carry Flag Program Memory Address (12 bits) Port 1 addr Bb Bft Designator (b = 0 - 7) Port 2 BS The Bank Switch BUS The BUS Port Reset Read C Carry Flag Smgle "PO a049H Write Step CLK Clock Signal 8749Hi External CNT Event Counter a039HL Program Store 0 Nibble Designator (4 bits) Enable data Number of expression (8 bits) OBF Memory Bank Flip-Flop Address Latch Enable Fo, F1 Flags 0, 1 Interrupt I Interrupt P "In-Page" Operation Designator Bus Port Expander Strobe Pp Port Designator (p = 1, 2 or 4 - 7) PSW Program Status Word Rr Register Designator (r = 0, 1 or 0 - 7) SP Stack Pointer T Timer TF Timer Flag TI» T1 Testable Flags 0, 1 X External RAM PrefiX for Immediate Data @ Prefix for Indirect Address Program COunter's Current value (x) Contents of External RAM Location ((x)) Contents of Memory Location Addressed by the Contents of External RAM location Replaced By 4-123 /J-PDS049H/S749H/S039HL Instruction Set InslNelion Code Flags Mnemonic Function Description D, D. Do D. D3 D, D, D. Cycles Bytes C AS; FO F1 Accumulator Add Immediate the Speclhed Cata to the 0 ADDA, = data (A) ~ (A) + data Accumulator. d, d, d5 d. d3 d, d, d. (A) _ (A) + (Rr) Add contents of designated register to ADDA,Rr 1orr=0-7 the Accumulator. (A) _(A) + «Rr)) Add Indirect the contents of the data AddA,@Rr 1orr=0-1 memory location to the Accumulator. Add Immediate with carry the specHied 0 ADDC A, = data (A) _ (A) + (C) + data data to the Accumulator. d, d, d5 d, d, d, d, do (A) _ (A) + (C) + (R,) Add with carry the contents of the ADDCA.,Rr forr=O-7 designated register to the Accumulator. ADDCA,@Rr ,(A)-(A) + (C) + «Rr)) Add Indirect with carry the contents of forr=O-1 data memory location to the Accumulator. Logical and specified Immediate Data ANLA, = data (A) _ (A) AND d.ta with Accumulator. d, d, d5 d, d, d, do d" (A)_(A)AND(Rr) logical and contents of designated ANLA,Rr forr=O-7 register wHh Accumulator. (A) _ (A) AND «Rr)) Logical and Indirect the contents of data ANLA,@Rr forr=O-1 memory with Accumulator. Complement the contents of the CPLA (A)-NOT(A) Accumulator. CLRA (A)_O CLEAR the contents of the Accumulator. DECIMAL ADJUST the contents of the DAA Accumulator. (A)_(A)1 DECREMENT by 1 the Accumulator's DEC A contents. Increment by 1 the Accumulator's INCA (A)-(A)+ 1 contents. logical OR specifted Imme(tlate data ORLA, = d.ta (A) _ (A) OR d.ta with Accumulator. d, d, d5 d, d, d, d, do (A) _(A) OR (Rr) logical OR contents of designated ORLA,Rr torr=O-7 register with Accumulator. (A) _(A) OR «Rr)) logical OR Indirect the contents of data ORLA,@Rr forr=O-l memory location with Accumulator. (AN + 1)_(AN) Rotate Accumulator left by l-bit without RLA (Aol-(A,) carry. forN=O-6 (AN + 1)_(AN);N - 0 - 6 RLCA Rotate Accumulator left by l-bh through (Aol-(C) carry. (C)-(A,) RRA (AN)_(AN + 1);N =0 - 6 Rotate Accumulator right by l-bd (A,)-(A,,) without carry (AN)_(AN + 1);N =0 - 6 Rotate Accumulator right by l-bit RRCA (A,)-(C) through carry. (C)-(Aol SWAP A (A4-,)-(A,,-3) swap the 2 4-brt nibbles In the Accumulator. Loglcsl XOR specified Immechate data XRLA, =data (A) _ (A) XOR data with Accumulator. d, d, d, d, d, d, d, do (A) _ (A) XOR (Rr) logical XOR contents of designated XRL A, Rr 1orr=0-7 register with Accumulator (A) _(A) XOR «Rr)) Logical XOR Indll'ect the contents of data XRLA,@Rr forr=O-l memory location With Accumulator. Branch DJNZ Rr, addr (Rr)-(Rr) 1;' - 0 - 7 H(Rr) ~ 0: (pea - 7) +-addr Decrement the specified register and test contents. ., ·6 ., ., ., ., ·0 ·5 JBb addr (PC 0 -7}-addrifBb 1 = = Jump to specified address if Accumulator ., ., ., ., ., ., ·0 b, b, bo ., ., ., ., ., ., ·0 (PC) -(PC) + 2HBb 0 bit IS set ·5 JC addr (PC 0 - 7) -add"fC = 1 Jump to specified address If carry flag (PC) -(PC) + 2ifC = 0 ., ., ., ., ., ., ., ·0 Isset, ·5 (PCO-7)-addrffFO=1 Jump to specified address If Flag FO IS JFOaddr =0 ., .. ., ., ., ., ., ·0 (PC) -(PC) + UFO se1. JF1 addr (PC 0 - 7) -addrIf F1 = 1 Jump to specified address If Flag F1 IS 1 (PC) _(PC) + 2HF1 = 0 set ."" ., ., ., ., ., ·0 (PCS -10)-addrS - 10 JMPaddr (PC 0 -7)-addrO-7 Direct Jump to specified address within the 2K address block, ·9 as (PCl1)-DBF ·5 Jump indirect to specified address with JMPP@A (PCO -7)-«A)) ., ., ., ., ·0 address page. JNC addr (PC 0 - 7) _addrHC - a (PC)-(PC) + 2HC 1 = Jump to specified address If carry flag Islow, ., ., ·5 JNladdr (PC a - 7)-addrifl- 0 (PC)-(PC) + 21fl 1 = Jump to specifIed address If Interrupt is low. ., ., ·5 ., ., ., ., ·0 4-124 j.1PDS049H/S749H/S039HL Instruction Set (Cont.) InstRiction Code Flags Mnemonic Function Description D, D. D. D. D3 D2 D, D. Cycles Bytes C AC FO F1 Branch (Cont.) JNTQaddr (PCD -7)-addrIfTO - 0 (PC)~(PC) + 2nO 1 = Jump to specified address If Test 0 is low. ., ., ., .- ., ., ., .. JNT1 addr (PCD -7)_addrifT1 = 0 (PC) ~(PC) + 2,fn = Jump to specified address it Test 1 is low. ., ., " .- ., ., ., ·0 . 1 JNZaddr (PCD - 7) _addr if A #= 0 (PC)~(PC) + 2ffA 0 = Jump to specified address if Accumulator Is non-zero. .., , . .- ., ., ., ·0 1 0 JTFaddr (PCD -7)_addrlfTF = 1 (PC) ~(PC) + 2nF 0 = Jump to specified address if Timer Flag Is settol. ., ., ., .- ., ., ., ·0 JTOaddr (PC 0 -7)~.ddrlfTO-1 (PC) ~(PC) + 2 lITO 0 = Jump to specified address if Test 0 IS a 1. ., ., ., .- ., ., ., ·0 JT1 addr (PCO-7)_addrlfT1_1 (PC)~(PC) + 2lfT1 0 = Jump to specified address If Test 1 IS a 1. ., .. ., .- ., ., ·0 1 ., JZ addr (PCD -7}-addrIfA - 0 (PC)~(PC) + 21fA 0 = Jump to specified address If Accumulator ISO. ., ., ., .- ., ., ., ·0 1 Control EN' Enable the External Interrupt mput. D'S I Disable the External Interrupt mput. ENTOCLK Enable the Clock Output pm TO. SELMBO (OBF)~O Select Bank 0 (locations 0 - 2047) of Program Memory. SELMB1 (OBF) ~1 Select Bank 1 (locations 2048 - 4095) of Program Memory SEL RBO (BS)~O Select Bank 0 (locations 0 - 7) of II Data Memory. SEL RB1 (BS)~1 Select Bank 1 (locations 24 - 31) of Data Memory. Data Moves MOV A, - data (A) ~data Move Immediate the specified data mto 0 the Accumulator. d, d, d, d_ d, d, d, do MOV A, Rr (A) ~(Rr);r - 0 - 7 Move the contents of the designated 1 1 registers Into the Accumulator. MOVA,@Rr (A) ~«Rr)); r =0 - 1 Move Indirect the contents of data memory location into the Accumulator. MOVA,PSW (A)~(PSW) Move contents of the Program Status Word mto the Accumulator. MOV Rr, = data (Rr) ~data; r =0 - 7 Move Immediate the specified data IOto 1 r r r the designated register d, d, d, d_ d, d, d, d. MOV Rr, A (Rr)~(A);r - 0- 7 Move Accumulator Contents IOto the 1 designated register. MOV@Rr,A «Rr)) ~(A);r =0 - 1 Move Indirect Accumulator Contents Into data memory location. MOV @ Rr, = data «Rr)) ~d.ta; r =0 - 1 Move Immediate the specified data IOto r data memory. d, d, d, d_ d, d, d, do MOVPSW,A (PSW)~(A) Move contents of Accumulator mto the 1 0 1 1 program status word. MOVPA,@A (PC 0 - 7) ~(A) Move data In the current page mto the (A)~«PC)) Accumulator. MOVP3A,@A (PCO -7)~(A) Move Program data m Page 3 mto the (PCS - 10) ~011 Accumulator. (A)~«PC)) MOVXA,@R (A) ~«Rr)); r =0 - 1 Move Indirect the contents of external data memory mto the Accumulator. MOVX@R,A «Rr))~(A);r - 0-1 Move Indirect the contents of the Accumulator mto external data memory. XCHA,Rr (A) c'(Rr); r - 0-7 Exchange the Accumulator and deSignated register'S contents. XCHA,@Rr (A)c'«Rr));r _ 0-1 Exchange Indirect contents of Accumu- lator and location in data memory. XCHDA,@Rr (A 0 - 3) '" «Rr)(O - 3)); Exchange Indirect 4-bit contents of r=0-1 Accumulator and data memory. Flags CPLC (C) ~NOT(C) Complement content of carry bit. CPL FO (FO) ~ NOT (FO) Complement content of Flag FO CPLF1 (F1)~NOT(F1) Complement content of Flag F1. CLRC (C)~O Clear content of carry bit to O. CLRFO (FO)~O Clear content of Flag 0 to O. CLRF1 (F1)~0 Clear content of Flag 1 to O. 4-125 /J.PD8049H/8749H/8039HL Instruction Set (Cont.J Mn_ ANLBUS.=_ Function (BUS) ~(BUS) AND_ -pHon logical and Immedlate-spec~l8d_ with contents or BUS. ~ Dr 1 d, D. 0 d, D. 0 --- d, D. 1 d, D. 1 d, D. 0 d, D, 0 d, D. 0 do Cycles a,.. c F.... At; FO Fl ANLPp,=_ (PP)~(Pp)AND_ logICal and Immedoata specified data 1 0 0 1 1 0 P P p=I-2 wfIh dlaogna\8d port (1 or 2~ d, d, d, d, d, d, d, d. ANLDPp.A (Pp)~(Pp)AND(AO - 3) logical and contents of Accumulator WJth 1 0 1 p=4-7 designated port (4 - ~ INA. PP (A)~(PP);p = 1 - 2 Input_l1omdeslgnalo---. CLEAR <- CD Q 0 Notee: -----~ Q~-+---+-------------4 Clock ~~:: - 1 - - - - - ' - - - - 4 i O - I I IN Crystal Frequency Reference Circuit LC Frequency Reference Circuit rl _L_ ...L Nomlnalf 45~H 20pF 5.2MHZ 120~H 20pF 3.2MHz C,=Ct;C p• Not... C2 IC, - C,) ~ 20pF For example, C, == 30pF, and C2 "" 10pF Values of C1 and C2 do not mclude stray capacitance Instruction Set Symbol Definitions Symbol Description A Accumulator AC Auxiliary Carry Flag addr Program or data memory address (aO-a7) or (aO-al0) External Clock Frequency Reference Circuit b Accumulator bit (b ~ 0-7) BS Bank Switch BUS.____B~uS~~---------------------- C ClK CNT Carry FI1I9 Clock Counter --~d~a~ta~--~8-~b7.it~b~in~a-r-y~d~m~a~(~d-0--d~7~)------------------_~= II ~ __-=D:-B-;:Fc:-----:M=e'-m-,o:-ry Bank Flip-Flop >~--"""------=j XTALl FO, F1 Flag 0, Flag 1 INT Interrupt pin n Indicates the hex number of the specified register or port __-cP""C=--__ Program Counter Open XTAL2 __--c='P='P'-:-__-cP=-0:..:r-'.t-'.1'-,P,-0",r-'.t.=2, or Port 4-7 (p = 1,2, or 4-7) PSW Program Status Word R, Register Ro-R7 (, = 0-7) Note: A minimum voltage ofVcc -1ls reqUired for XTAL1 togo HIGH SP Stack Pointer T Timer -----cT=F=---- Timer "'Fo-,a-g----- TO, T1 Test 0, Test 1 pin # Immediate data indication @ __--""'n"'d.::ir:.ec.::.t=-:a:::d::.:d::.:.re:.s=.s=-.::in"'d::.ic::.:a::.:t"'i0c:.n=___ x Indicates the hex number corresponding to the accumulator bit or page number specified in the operand (x) Contents of RAM «x» Contents of memory addressed by (x) Transfer direction, result 1\ logical product (logical AND) __.-c"Vc--__--=l:::o'-'g""ic::.:a=:'.:::s.::.um~(:.::lo"'g"'ic:.::a::..'.:::O.:.:R"-)_______________ ._____ -------- ¥ Exclusive OR ~~--- Complement 4-131 j-.LPD80C49/80C39 Instruction Set Hex Instruction Code Mnemonic Function Description Code D, D. D, D. D. D. D, Do Cycles Bytes Accumulator ADO A, # (A).- (A) + data Adds Immediate data d o-d 7 to the accumulator. 03 data Sets or clears both carry flags.@ d, -~~-~~--" d, d, d, do ADDA,R r (A) - (A) + (R,) Adds the contents of register Rr to the 6n@ 0 1 1 r = 0-7 accumulator Sets or clears both carry ~ags.@ .. ADD A, @R, (A) - (A) + ((R,)) Adds the contents of the Internal data memory 6n@ r = 0-1 location specified by bits 0-5 of register Rr to the ~ccumulator. Sets or clears both carry flags.@ AOOCA,# (A) - (A) + data + (C) Adds, wrth carry, Immediate data d o-d 7 to the 13 data accumulator. Sets or clears both carry Ila98.@ d, d, d, d. d, d, d, do ADDCA, Rr (A) e (A) + (R,) + (C) Adds, with carry, the contents of register Rt to the 7n® 0 1 1 1 1 r = 0-7 accumulator. Sets or clears both carry flags.® ADOCA, (A) _ (A) + ((R,)) + (C) Adds, with carry, the contents of the Internal data 7n@ @Rr r;::: 0-1 memory location specified by bits 0-5 of register Rr, to the accumulator. Sets or clears both carry flags.® -~----~- ... ANLA,# (A) - (A)/\data Takes the logical product (logical AND) of 53 data Immediate data d o-d7 and the contents of d, d, d, d, d, d, d, do the accumulator, and stores the result In the accumulator. -~~~-.---~--- ANLA, Rr (A) - (A)/\(R,) Takes the logIcal product (logical AND) of the 5n@ r = 0-7 contents of register Rr and the accumulator, and stores the result In the accumulator. ANLA,@Rr (A) - (A)/\((R,)) Ta! 20 _ ...._ - .Y ~-. t--- - ~ . ,:: 10 i I I I I ~ 0 -_. 1----- '"~ I i I -- Icc I I '" I J I1 -40 , 25 85 Halt Mode TemperaturE>, T.. CC) Supply Voltage, Vee (V) Current Consumption as a Function of Operating Frequency - Supply Current vs. Oscillation Frequency'" Normal Operating Mode --r-- VCC~~ Vee - 5 5V L/ V J/~ ' // 10 8 _.- ./ ,, ~ I f--- , ,, ,, ,, V V Max/" V ,, ./k;p , ,, 'eel Max/ ,, / ~r I V 5i--- ,, 21--- , , ,, > - - , "' .... --"" , / ./ vV' ---i- t--- V V V ,, - , , 0.2 0.5 --- - , , Oscillator Frequency (MHz) 1 , , , 005 Note: CDExternal oscillation IS assumed for frequency less than 1 MHz. Internal oscUlation 01 02 05 requires more power. Oscillation Frequency, f(MHz;. (f := 15 tey) 4-140 fLPD80C49/8OC39 Operating Characteristic Curves (Cont.) Current Consumption as a Function of Temperature - Stop Mode Vee =5.SV 20 f-----+---+-f-------.,f-----f 1u u 10 -40 25 85 Temperature, Ta re) Package Outlines For information, see Package Outline Section 7. Plastic, ILPD80C49C/C39C Plastic Shrinkdip. ILPD80C49HC Plastic Miniflat, ILPD80C49G/C39G II 80C49/80C39DS·Rev/1-7-8-83-CAT-L 4-141 NEe MICROPROCESSORS iii NEe fJ,PD7801 fJ,PD780·1/fJ,PD780·2 HIGH·PERFORMANCE CP/M®·COMPATIBLE NMOS 8·BIT MICROPROCESSOR Description Pin Configuration The fJ-PD7S0 microprocessor utilizes a highly con- sistent architectural organization, a comprehensive instruction set that is a superset of the industry-standard A,. A, SOSOA instruction set, and third-generation technology, to As provide a flexible, high-performance, efficient CPU easily A7 adaptable to a very broad range of industrial and commer- A. cial applications. As All software developed on SOSOA-based systems may 0, A, be run on 7S0-based systems as a subset of the full 7S0 03 A3 instruction set. In addition, the NEC fLPD7S0 is fully Os A, pin-compatible and software-compatible with the ZSO® D. A, microprocessor and is therefore perfectly suited for +5V A. CP/M® designs. The NEC fJ-PD7S0 provides system 0, GND designers with powerful, wide-range logic capability that 07 RFSH requires minimal additional circuitry to complete a micro- D. M. computer system. 0, RESET iNT BUSRQ The output signals of the fJ-PD7S0 are fully decoded and NMI WAIT signal timing is fully compatible with industry-standard HALT BUSAK memory and peripheral devices. Two faster versions of the MREQ WR basic fLPD7S0 (2.5MHz master clock rate) are offered by IDRQ RJj the fJ-PD7S0-1 (4MHz master clock rate) and the fLPD7SO-2 --------------------------FU-nC-ti-on-------~ (6MHz master clock rate). Other than clock rates, all three versions are identical. Pin Identification Features Pin Name No. Symbol D PowerfUl, wide-range logic capability requiring minimal support circuitry 1-5 Ao-A 15 Address Bus These three-state output hnes constitute a 30-40 16-bIt address bus. Lines Ao-As output D Fully ZSO®-compatible the external memory address during refresh operations D Industry-standard SOSOA software compatibility Clock This hne IS used as an Input for external D CP/M®-compatible clock sources. D Comprehensive, powerful instruction set featuring 15S 7-10 0 0-°7 Data Bus These three-state 1/0 Imes constitute an instruction types 12-15 8-bit bidirectional data bus D Vectored, multilevel interrupt structure 11 +5V Power Supply Smgle + 5V power supply. D Highly consistent architectural structure featuring dual 16 INT Interrupt Request This active-low Input hne is used for inter- rupt requests by extemalllO devices. register set Interrupts are serviced upon completion D Foreground/background programming of the current instruction if the Interrupt Enable Flip-Flop (IFF) has been turned on D Automatic refreshing of external dynamic memory by the software. There are three Interrupt D Signal timing compatible with industry-standard mem- response modes: the mode-Q response IS equivalent to an 8080 Interrupt response, ory and peripheral devices mode 1 uses location 0038(H) as a restart address, and mode 2 IS a Simple vectoring D TTL-compatible signals to an interrupt-service routine that can be D Single-phase + 5V clock and + 5VDC power supply located anywhere In memory. D Available in plastic package 17 NMI Nonmaskable This active-low input line is used for non- Interrupt maskable Interrupts. A nonmaskable ®Z80 IS a registered trademark of Zllog, Inc interrupt is always acknowledged at the ®CP/M IS a registered trademark of Digital Research Corporation end of the current Instruction, regardless of whether or not the Interrupt Enable Flip- Flop has been turned on, except when the BUSRQ signal is asserted. Because of the higher priority of the BUSRQ signal, it is acknowledged before the NMi signal. When"'Niii is acknowledged, program execution automatically restarts from location 0066(H)' 18 HALT Halt State This active-low mput line is used with the HALT instruction to Initiate a halt state. When HALT is asserted, program execu- tion stops and does not resume until an Interrupt IS generated. Durmg the halt state, NOPs are executed In order to con- tinue memory refresh operations. 19 MREQ Memory Request ThiS three-state active-low output line IS used to mdicate that the address speCified for the memory read or write operation IS valid. REY/2 5-1 f-LPD7S0nSO·1 nSO·2 Pin Identification (Con~.) Architecture Pin The architecture includes a dual set of six S-bit general- Name Function No. Symbol purpose registers and two S-bit accumulators and flag 20 IORQ I/O Request This three-state active-low output 'me IS registers. A flexible vectored interrupt structure is sup- used to mdlcate that the lower half of the address bus holds a valid address for ported by an S-bit interrupt vector register that provides an I/O read or write operation. ~ the most-significant S bits of a pointer to a table of vector Interrupt acknowledge cycles, lORa and M', are asserted together to indicate addresses, while the requesting device generates the that a vector address can be sent to the least-significant S bits of the pointer. Two 16-bit index data bus. registers enable the manipulation of tabular data as 21 RO Read This three-state active-low output Ime IS used to strobe data from external memory well as facilitating code relocation. or 1/0 devices onto the data bus. R5 IS asserted to indicate that the CPU IS Multilevel interrupts as well as virtually unlimited subroutine requestmg data from external memory or nesting are supported by a 16-bit stack pointer and compli- 110 devices This hne IS three-stated dur- Ing halt or reset condlt,_o_ns_._ _ __ mentary 16-bit program counter, enhancing the speed and 22 WR Wrrte This three-state active-low output hne IS efficiency of a wide variety of data-handling operations. used to strobe data from the data bus to Processing efficiency is additionally supported by a special external memory or 1/0 devices ViR IS asserted to indicate that the data bus memory refresh register that enables automatic refreshing holds valid data. This hne is three-stated durmg halt or reset conditions. of all external dynamic memory with minimal processor This active-low output hne IS used to overhead. Inform the device requestmg bus control that the data bUS, address bus, and all The dual set of general-purpose registers may be used three-state~ontrol sIgnals (RD, WR, as individualS-bit registers or paired as 16-bit registers. 10RO, and MREO) are In a hlgh'lmpedance state and the requesting deVice can now The dual register set (including a dual accumulator and flag assume control. register) not only allows more powerful addressing and data ---------------- 24 WAIT Walt State ThiS active-low Input Ime IS used to indi- transfer operations, but also permits programming in fore- cate that external memory or 110 devices addressed by the CPU are not ready to ground/background mode for vastly improved throughput. transfer data. When WAIT IS asserted, the CPU \s placed In a walt condltron 25 BUSRQ Bus Request ThiS active-low mput sIgnal IS used to place the data bus, address bus, and all three-state bus control sIgnals (WR, RD, 10RO, and MREO) 10 a high-Impedance state to allow a requestIng deVice to assume bus control. The BUSRQ signal has a higher prrorrty than the NMi sIgnal and IS always honored at the end of the current machme cycle G) 26 RESET Reset This actIve-low Input signal IS used to mi- tlallze the CPU. When RESET IS asserted, the Interrupt Enable Flip-Flop IS reset, the program counter and the I and R registers are cleared, and Interrupt response mode o IS enabled. In a reset condition, the address and data buses are three-stated and all output control signals are InactIve, after which program executIon begIns from address 0000 ® 27 Machine Cycle 1 ThiS actIve-low output 'me IS used to indi- cate that the current machine cycle IS the opcode fetch phase of an instruction execution. 28 RFSH Refresh ThiS active-low ol!!E!!!.!ine IS used 10 con- Junction With the MREO signal to Imtlate a refresh read of all external dynamic mem- ory. RFSH and MREQ are both asserted when the least-significant 7 bits of the address on the address bus hold a valid external dynamiC memory address. 29 GNO Ground Ground potential Notes: CD ExceSSive DMA operations resultmg In long periods In which BUSRO IS asserted can Impair the CPU's ablhty to adequately refresh the dynamiC RAMs BUSRO does no~ have an Internal pull-up resistor For Input signals to thiS pin In a wlre- OR'ed configuration, an external pull-up resistor should be used ® The pulse Width of "RESET must be a minimum of 3 clock cycles In length to remlttalize the CPU and stabilize operation 5-2 /-LPD780/780-11780-2 Block Diagram 16 A B Buffer Main General-Purpose Alternative General-Purpose Register Set Register Set ! -~ 16 r-"~~----, Accumulator Flag Accumulator Flag A F A F ---1} I c f--_ _:_ _--t_ _ __ _+ ___:_',__-+-___ c_' General.Purpose Reg,slers ~::eO:~ R Interrupt Vector Index Register IX Inst Decoder 11 1 +5V GND Instruction Set The instruction set of the ~PD780 consists of 158 types of This comprehensive instruction set is made more pow- instructions divided into 16 categories as follows: erful by the array of addressing modes implemented by the architecture, as follows: 8-bit load operations 8-bit arithmetic and logic register exchanges operations memory block searches bit set, reset, and test bit addressing relative addressing 16-bit arithmetic operations operations register-indirect addressing immediate-extended rotate and shift operations liD operations immediate addressing addressing jump operations call operations extended addressing indexed addressing restart operations return operations implied addressing modified page zero miscellaneous operations general-purpose register addressing addres~ing 16-bit load operations accumulator and flag memory block transfers operations 5-3 IJ-PD7801780.11780-2 Instruction Set (Cont.) SYMBOLIC NO. NO.T FLAGS OPCODE MNEMONIC DESCRIPTION OPERATION BYTES STATES C Z P/V S N H 76 543 210 ADC HL, 55 HL-HL+ss+CY Add with carry reg pair ss to HL 1 15 I 1 V 1 0 X 11 101 101® 01 ,,1 010 ADCA,r A-A+r+CY Adc; with carry Reg r to ACe 1 4 I I V 1 0 1 10 001 rrr® ADC A,n A-A+n+CY Add with carry value n to ACe 7 I I V 1 0 1 11 001 110 nn nnn nnn ADC A. (HLI A+--A +(HLl +CV Add with carry Joe (HLl to ACe 7 1 I V I 0 I 10 001 110 ADCA,(lX+dt A +-- A + (IX + dl + CY Add with carry toe (IX + dl to ACe 19 I I V I 0 I 11 011 101 10 001 110 dd ddd ddd ADC A, (ly + d) A +-- A + (ly + d) + CY Add wIth carry toe (ly + d) to ACe 19 I I V I 0 I 11 111 101 10 001 110 dd ddd ddd AOD A, n A+--A+n Add value n to ACe 2 7 1 I V I 0 1 11 000 110 nn nnn nnn ADDA, r A-A+r Add Reg. r to ACe 1 4 I I V I 0 I 10 000 rrr® ADD A. (HLI A+--A+(HU Add location (HLl to ACe 1 7 I I V I 0 I 10 000 110 ADD A, (IX + d) A+--A+(JX+d) Add location (IX + dl to ACe 3 19 I I V I 0 I 11 011 101 10 000 110 dd ddd ddd ADD A (ly +d) A +-- A + (Iv + dl Add locatIon (IV + dl to ACe 3 19 I I V I 0 I 11 111 101 10 000 110 dd ddd ddd ·· ·· ·· ADD HL. S5 HL- HL + ss Add Reg. pair 55 to H L 1 11 I 0 X 00 ssl 001® ADO IX, pp IX <--IX + pp Add Reg. pair pp to I X 2 15 1 0 X 11 011 101© QQ ppl 001 ADO IY, rr ANDr IV <- IV + 'T A-AAr Arjoj R~g. pair rr to IV Logical' ANO' of Reg r 1\ ACe 2 15 4 1 0 · ·· I P I 0 0 X I 11 111 00 ,,1 10 100 101© 001 rrr® ANOn A ... AAn I Logical 'AND' of value n 1\ ACe 7 0 I P I 0 I 11 100 110 I nn nnn nnn AND (HLI A - AA(HLI Logical 'AND' of lac (HL) 1\ ACe 7 0 I P 1 0 I 10 100 110 AND (IX + d) A+-AA(/X+dl Logical 'AND' of lac (IX + d) A ACe 19 0 I P 1 0 I 11 011 101 10 100 110 dd ddd ddd AND (IY + dJ A <-AA(IY + dJ Logical 'AND' of lac !IV + dJ A ACe 19 0 1 P 1 0 1 11 111 101 10 100 110 dd ddd ddd BIT b, (HLl Z ~ (HLI b Test BIT b of location (HU 2 12 · I X X 0 1 11 01 QQl 011® bbb 110 BlTb,IlX+dl Z.- (iX+d) b Test BIT b at location (IX + d) 4 20 · I X X 0 1 11 11 dd 011 001 ddd 101® 011 ddd 01 bbb 110 BIT b, (IV +d) z·- (lY+dl b Test BIT b at location {ly + d} 4 20 · 1 X X 0 1 11 11 dd 111 001 101® 011 ddd ddd 01 bbb 110 BIT b, r Z-rb Test BIT of Reg. r 2 8 · I X X 0 1 11 001 ?~:®® ·· · .. 01 bbb CALL ce, nn If conditIOn cc false contmue, Calt subroutme at location nn 1 f 3 10 0 11 .-100@ else same as CALL nn conditIOn cc IS true nn nnn nnn ·· ·· .. nn nnn nnn CALL nn (SP - 1) <- PC H Unconditional call subroutine at 3 17 11 001 101 (sp·- 21 ~ PCl locatIon nn nn nnn nnn PC +- nn nn nnn nnn CCF Cp, cPn CV+-CY A-, A-n Complement carry flag Compare Reg r With Ace Compare value n With ACe 1 4 4 7 1 I I · ·· 1 I V V I I 0 1 1 X I I 00 111 10 11 111 111 111 rrr® 110 nn nnn nnn cP (HLI A - (HLI Compare loc (HU WIth ACe 7 I I V I 1 I 10 111 110 CP ox +d) A-{lX+dl Compare Joe OX + d) WIth ACe 19 I I V I 1 I 11 011 101 10 111 110 dd ddd ddd 11 111 101 CP (ly + dl Compare loc (ly + d) WIth ACe 19 I 1 V I 1 I 10 111 110 dd ddd ddd CPO A {HL} HL ..... HL-l Be <- Be - 1 Compare location (HLl and ACe, decrement HL and Be 2 16 · l@ ,CD I 1 ! 11 101 10 101 101 001 CPDR A - (HL) HL+ HL-'l aC~BC-l Compa!e locatIon (H LJ and ACe, decrement HL and Be, repeat untlt ac=o 2 21 If Be andA'I(HL) =0 16 If Be '" 0 0 · 1@ lCD, 1 I 11 101 10 111 101 001 until A '" (HLl or Be = 0 orA=(HLl 5-4 f,LPD780n80-1nao-2 Instruction Set (Cont.) SVMBOLIC NO. NO. T FLAGS OPCODE MNEMONIC DESCRIPTION OPERATION BVTES STATES C Z PIV S N H 76 543 210 e?1 A - (HLI HL-HL+ 1 BC4-BC-l Compare location !HU and ACe. Increment HL and decrement Be 2 16 · I~ ICD I 1 I 11 101 101 10 100 001 CPIR A - (HLI HL<-HL+l Be <- Be - 1 Compare location (HU and ACe, Increment HL, decrement Be Repeat untl' Be'" c 2 21 If Be "" 0 and A 4 iHLJ 16 If Be '" 0 · I~ ICD : 1 I 11 101 101 10 110 001 until or A == (HL) A=(HL)orBC=Q e?L OAA A~A Complement ACe (l'scomp) Decimal adjust Ace 1 1 4 4 I 1 · ·, · · · ? I 1 1 1 00 101 00 100 111 111 · ," ·· , DEer r+- r - 1 Decrement Reg r 4 V 1 1 I 00 101@ OEC (HLI DEC!!X+d) (HL) ~ (HLI - 1 (IX + d) +- (IX + dl - 1 Decrement loc (HU Decrement loc (IX + d) 11 23 I V V I I ,1 1 I 00 11 00 110 011 110 101 101 101 , · dd ddd ddd DEC (IV + d) (ty + dl +- (IV + dl - 1 Decrement loc (lYof d) 23 I V I 1 11 111 101 00 110 101 dd ddd ddd DEC IX IX ---IX - 1 Decrement IX 2 10 ·· ·· ·· 11 011 00 101 101 011 DEelY IV -IV-1 Decrement IV 2 10 ·· ·· ·· 11 111 00 101 101 011 DECss 01 55 ""'55- 1 IFF <- 0 Decrement Reg pair 55 Disable Interrupts 1 1 6 4 ·· ·· ·· ·· ·· ·· 00 11 ssl 011® 110 011 DJNZ, e B-B--ldB=O contmue d 8 " PC ~ PC + e a Decrement B and lump relative If B=O 2 8 ·· ·· ·· 00 010 000 -....-e-2~ ·· ·· ·· ·· ·· ·· EI IFF <-- 1 Enable mterrupts 1 4 11 111 011 EX IS?). HL H-(SP+l) Exchange the location {SP} and HL 1 19 11 100 011 L- (S?) EX (S?I. IX IX H .... (SP + 1) IX L - (SP) Exchange the location (SP) and IX 2 23 ·· ·· ·· 11 11 011 101 100 011 EX IS?). IV IY H .... ISP + 1) IV I - IS?) Exchange the location (SP) and IV 2 23 · · ·· ·· 11 11 111 101 100 011 EX AF. AF' EX DE. HL AF .... AF' DE- HL Exchange the contents of AF, AF Exchange the contents of DE and HL 1 1 4 4 ·· ·· ·· ·· ·· ·· 00 001 11 101 000 011 EXX BC- BC· DE - DE· HL ..... HL· Exchange the contents of Be, DE. HL With contents of BC', DE: HL', respectively 1 4 ·· ·· ·· 11 011 001 HALT 1M 0 Processor Halted HALT (walt for Interrupt or resell Set Interrupt mode 0 1 2 4 8 ·· ·· ·· ·· ·· ·· 01 11 01 110 110 101 101 000 110 IMI I . Set mterrupt mode 1 I 2 8 ·· ·· ·· 11 01 101 010 101 110 1M 2 Set Interrupt mode 2 2 8 ·· ·· ·· 11 01 101 011 101 110 IN A, (n) A---- In) Load ACC With Input from deVice n 2 11 ·· ·· ·· 11 nn 011 nnn 011 ~~~ CD IN r. IC) r+-- (C) Load Reg r With mput from deVice Ie) 2 12 · 1 ? I 0 : 11 01 101 " , 000 INC (HLI INC IX (HL) +-- (HL) + 1 IX +--IX+ 1 Increment location {H Ll Increment IX 1 2 11 10 ·· · · · · · I V 1 0 I 00 110 100 11 011 101 00 100 011 INC (IX +d) (IX + dl -- (IX + d) + 1 Increment location (IX + d) 3 23 · I V I 0 I 11 011 101 00 110 100 dd ddd ddd INC IY IV +--IY + 1 Increment IY 2 10 ·· ·· ·· 11 111 101 00 100 011 INC (ly +dl (lY+d)-(lY+d)+l Increment location (ly + d) 3 23 · I V I 0 I 11 111 101 00 110 100 ·· · . ·, · · dd ddd ddd INC r r_r+ 1 Increment Reg r 1 4 I V 0 I 00 l00® INCss ss-ss+ 1 Increment Reg. palT ss 1 6 '" 00 ,,0 011® IND (HLI ~ (C) B_ 8'-1 HL-HL-l Load location (H L) With Input from port IC)' decrement HL and 8 2 16 · ,@ X X 1 X 11 101 10 101 101 010 5-5 f.lPD780/7SO-1178Q-2 Instruction Set (Cont.) SYMBOLIC NO NO T FLAGS OPCODE MNEMONIC DESCRIPTION OPERATION, BYTES STATES C ~ P/VS N H 76 543 210 INOR IHLI ~ ICI Load location (HU with mput from 21 11 101 101 8 -- B-1 port (e), decrement HL and deere 10 111 010 HL·- HL - 1 until B '" 0 ment B. repent until B = 0 INI IHLI ~ ICI Load locdtlon (HL) with mput from 16 :0 X 11 101 101 B .- B-1 port (e). and Increment H Land 10 100 010 HL~HL+l decrement B INIR IHLI ~ ICI Load location (HL) with from 21 X 11 101 101 B -- 8 - 1 port (e)' Increment HL and 10 110 010 HL <- HL + 1 until B -= a ment B, repeat until B = a JP IHLI PC -- HL Unconditional Jump to (HL) 11 101 001 JP (IX) PC'- IX Unconditional Jump to (IX) 11 011 101 11 101 001 JP (IV) PC· IV Unconditional Jump to (IY) 11 111 101 11 101 001 JP cc, nn If cc true PC· nn else continue Jumo to location nn If condition cc 10 11 <---cc-' 01O® IS true JP nn PC· nn Unconditional lump to location nn 10 11 000 011 JR C, e If C - 0 continue If C = 1 PC - PC + e Jump relative to PC + e, II carry - 1 7 If condition 12, If . 00 111 -'--e-2~ 000 JR, PC-PC+e Unconditional Jump relative to PC + e 12 00 011 000 -.--e-2 _ _ JR NC, e If C = 1 continue Jump relative to PC + e If carry = Q 00 110 000 IIC=QPC- PC +e ~e-2-----... JR NZ, e If Z = 1 continue Jump relative to PC + e If non-zero 00 100 000 ~e-2 ______ IZ c 01 JR Z, e II Z '" 0 continue Jump relative to PC + e If zero 00 101 000 IZ 110 ~e-2~ LO A, (BC) A~ IBC) Load ACC With location (BC) 00 001 010 LD A, IDEI A~ IDEI Load ACC With location (DE) 00 all 010 LD A, I A"-I Load ACC With r IFF 11 101 101 01 010 111 LO A, (nn) A <-- (nn) Load ACC With locatiOn nn 13 00 111 010 LO A, R A - R Load ACC With Reg R IFF 11 101 101 01 011 111 LD IBCI. A' IBCI ~ A Load location (BC) With ACe 00 000 010 LD IDE). A jOEI-A Load location tDEI With ACe 00 010 010 LD (HU, n (HL) .- n Load lo('atlon (HL) With value n 10 00 110 110 nnn LD 5S, nn Load Reg pair ss With value nn 20 00 ,,0 001® LD Hl, (nn) H· (nn + 1) Load HL With location (nn) 16 00 101 010 L <- (nn) nnn LD (HU,r IHLI • , Load location (HU With Reg r 01 110 rrr® LD I, A I- A Load J With ACC 11 101 101 01 000 111 LO IX, nn IX +-- nn Load IX With value nn 19 11 011 101 00 100 001 LD IX, (nn) IX H <-(nn+l1 Load IX With rocatlon (nn) 20 11 011 101 IX L ..... (nn) 00 101 010 LO (IX + d), n (IX + d) ..... n Load location (IX + d) With value n 19 11 011 101 00 110 110 dd ddd ddd nnn LO(IX+d).r (IX + d) <- r Load location (IX + d) With Reg r 19 11 011 101® 01 110 dd ddd ddd 5-6 jl9D7801780-1 1780-2 Instruction Set (Cont.) SYMBOLIC NO NO T FLAGS OPCODE MNEMONIC DESCRIPTION BYTES STATES C Z OPERATION P/V S N H 76 543 210 LD IV, nn IV"- nn Load IV with value nn 4 I' ·· ·· ·· 11 111 101 00 100 001 nn nnn nnn nn nnn nnn LO IV. (nn) IV H -- (nn + 11 IV L' (nnl Load IV with location {nnl • 20 ·· ·· ·· 11 111 00 101 nn nnn 101 010 nnn nn nnn ~~~® LD 55, (nn) SSH .... (nn + 1) sSL .- (nn) Load Reg pair dd with location (nn) • 20 ·· ·· ·· 11 01 nn 101 ssl nnn 011 nnn nn nnn nnn LDOY+dl,n (IV + dl· n Load (ly + dJ with value n • 19 ·· ·· ·· 11 111 101 00 110 110 dd ddd ddd nn nnn nnn LD (ly +dl. r (lY + dl· , Load location (ly + dl with Reg r 3 19 ·· ·· ·· 11 01 dd 111 101® 110 ddd ", ddd LD (nnl. A (nn) -- A Load location (nn) with ACe 3 13 ·· ·· ·· 00 110 010 nn nn nnn nnn nnn ~~~® LD (nnl. 5S (nn + 1\' sSH tnnl +- sSL Load location Innl with Reg pair dd • 20 ·· ·· ·· 11 01 nn nn 101 ssO 011 nnn nnn nnn nnn I LD (nnl. HL (nn + 1) - H (nnl- L Load location (nnl with HL 3 16 ·· ·· ·· 00 100 010 nn nn nnn nnn nnn nnn LD {nnl. IX (nn + 1) - (nnl ~ IX L IX H Load location (nn) with IX 4 20 ·· ·· ·· 11 011 101 00 100 010 nn nn nnn nnn nnn nnn LD (nnl. IY (nn + 1) '-IY H (nnl-IY L Load location {nnl with IV • 20 ·· ·· ·· 11 111 101 00 100 010 nn nnn nnn nn nnn nnn LD R, A R-A Load R with ACe 2 ~ ·· ·· ·· 11 01 101 001 101 111 ·· ·· ·· ·· ·· ·· LOr, (HU r...-(HU Load Reg r with location (H Ll 1 7 01 " , 11O® LDr,(lX+dl r --- (IX + d) Load Reg r with location (IX + d) 3 19 11 011 101® 01 ," 110 dd ddd ddd LOr, (IV+dl r - (IV + d) Load Reg r with location (IV + dl 3 19 ·· ·· ·· 11 01 111 '" 110 dd ddd ddd 101® LD r, n LD, r,r r~n r-r' Load Reg r with value n Load Reg r with Reg r 2 1 7 ·· ·· ·· • ·· · · ·· 00 " , 110® nn nnn 01 ," nnn rrr'® LD SP, HL LD SP, IX SP - HL SP-IX Load SP with HL Load SP with IX 1 2 6 10 ·· ·· ·· ·· ·· ·· 11 11 11 111 011 111 001 101 001 LOSP. IV SP-IY Load SP with IV 2 10 ·· ·· ·· 11 11 111 111 101 001 LDD (DEI- (HLI DE-DE-l HL-HL-l BC-Be - 1 Load location (DEI with location (HLl, decrement DE. HL and BC 2 16 ·· · I 0 0 11 101 10 101 101 000 LDDR (DEI - (HLI DE - DE - 1 HL-HL -1 BC ~ BC 1 until Be" 0 Load location (DEI with location (HLI 2 21 ·· · 0 0 0 11 101 10 111 101 000 LDI (DEI- (HLI DE .... OE+1 HL .... HL + 1 BC-BC-l Load location IDEI With location (HLl. Increment DE. HL. decrement BC 2 16 ·· 1(1). 0 0 11 10 101 101 100 000 LDIR (DEI- (HLI DE - DE + 1 HL- HL + 1 Be - BC - 1 until Be = 0 Load location (DEI With location (HLI. Increment DE. HL, decrement Be and repeat unttl BC = 0 2 21 It BC:fO 16IfBC=O·· · 0 0 0 11 101 101 10 110 000 NEG A- O-A Negate ACC (2'5 complement) 2 8 I I V I 1 I 11 101 101 01 000 100 5-7 /-LPD780178C).1 1780-2 Instruction Set (Cont.) SYMBOLIC NO NO T FLAGS OPCOOE MNEMONIC DESCRIPTION OPERATION BYTES STATES C Z PIV S N H 76 543 210 NOP OR, A-- AV, No operation 1 4 ·· ·· ·· 00 000 000 ·· Logical 'OR' of Reg r and ACe 4 0 1 P 1 0 1 10 110 rrr® OR n A<· AV n LogICal 'OR' of value n and ACe P 7 1 1 0 1 11 110 110 nn nnn nnn OR IHLI A- AV IHLI · Logical 'OR' of lac (HU and ACe 7 1 P 1 0 1 10 110 110 OR (IX + dJ A·- (IX + d) Logical 'OR' of loc IIX+diAACC 19 1 P 1 0 1 11 all 101 10 110 110 · dd ddd ddd OR (ly + di A·-AVflY+d) Logical 'OR' of lac IIV +di A ACC 19 1 P 1 a 1 11 111 101 10 110 110 dd ddd ddd OTDR ICi- IHLI B·- B 1 Hl· Hl 1un1118=0 Load output port (e) with content'> of location (HL), decrement HL and 8, repeat until B ~ 0 2 21 If B I 16 If B C a · 1 X X 1 X 11 10 101 111 101 all OTIA ICi· (HL) 8·- B-1 Hl· H L + 1 until B 0 Load output POrt (e) with location fHL), Increment HL. decrement 8, repeat until B -a 2 21 If B #- 0 16 If B C · 1 X X 1 X 11 10 101 110 101 011 ·· ·· ·· -0 OUT (el, I ICi·· , load output port (e) with Req r 2 12 11 101 101@ 01 ," 001 QUT (n), A (n) • A Load output port (n) with Ace 2 11 ·· ·· ·· '1 nn 010 nnn all nnn QUTD ICi - IHLI B· B· 1 Hl HL-l Load output port Ie) with 'aCaIIQr' (HLl, mcremf'flt HL and decrement B 2 16 · .@ x X 1 X 11 10 101 101 101 all OUT! ICi·- IHU B· B 1 Hl HL + 1 L02d output port (C) With lOCution IHU, InClement HL and decrement B 2 16 · @ X X 1 X 11 I 10 101 iOO 101 all POP IX (SP + 1) :~H :- (SP) L LOdd IX With top of st S F 110 , '" Flag set 7 111 111 M Sign Negative S A 111 x '" Flag unknown f .. Flag affected according to result of operation FLAG DESCR IPTION V .. Overflow set C" Carry/Link 5 '" Sign P '" Parity set Z =< Zero N == Add/SUbtract IFF,. Interrupt fllp·flop set P/V '" Panty/Overflow H = Half Carry 5-10 j.LPD7801780·11780.2 Timing Waveforms Input and output cycles Opcode fetch instruction cycle In 110 operations, a single wait state (Tw) is automatically At the beginning of the cycle, the contents of the program included to provide adequate time for an 1/0 port to decode counter are placed on the address bus. After approximately the address from the port address lines and initiate a wait one-half cycle, MREQ is asserted and its falling edge can condition if needed. be used directly by the external memory as a chip enable signal. The data from the external memory can be gated Input Cycle onto the data bus when RD is asserted. The CPU reads the data at the rising edge of T3' During T3 and T 4' exter- nal dynamic memory is refreshed while the instruction is decoded and executed. The assertion of RFSH indicates that the external dynamic memory requires a refresh read. AO-A'-t~'1>-__ ++___+-':"':::':===-f-_+-+-t~r'- Af, Cycle IORQ-f-----r~ I---------M, Cycle---------i T, T2 T, T, liD - f - - - - - r " " Do-0 7 - f - - - - - r - - - - + - - - - - H MREQ -+--t-ll Output Cycle T, T2 Port Address WAIT - ---------- 5 -11 j.LPD7801780-11780-2 Timing Waveforms (Cont.) Memory read or write cycles In read and write operations, the MREQ and RD signals information on the address bus is stable. The WR signal function the same as they do in opcode fetch operations. is used as a write strobe to almost any type of semicon- In a write operation MREQ is asserted and can be used ductor memory, and is asserted when data on the data directly by external memory as a chip enable signal when bus is stable. IOHcl,(ROI~Ir-+_-+--+--f--+---+--+__+--_ Interrupt request/acknowledge cycle The interrupt signal is sampled at the riSing edge of the final address can be placed on the data bus by the interrupting clock pulse at th~ end of an instruction. When an inte~ device. This cycle includes the automatic addition of two is accepted, an M1 cycle is begun. Instead of MREQ, IORQ wait states to facilitate the implementation of a daisy-chain is asserted during this cycle to indicate that an 8-bit vector priority interrupt protocol. LastMCydeoflnstructlon --'-'--'---"1_ M, _ _ _ _ _ _ _ _ _ _ _ __ LastTState I T, T2 Tw Tw Ta ".~~~~..----,~~~v- iNT~-f==~~~~~- ~=~~-_-_-_ -=.:_-===.:.:_ -_____- _-_~~ ========= ==~~_-=~=_= ......A,. X PC XRefreSh Ad ress MREQ--~---~----~---_+-~--+_---_+--~ \..-+- IORQ _ _r_----+-----+_---_+-~-L«-'R~~~ ts""O)~~'" D~7--r_---_+----+_---_+--__+-+_--~~ In~~---+- M, __ -+__ ~t~DL{~M~"t:::r--I--tMR--+---I '\. t OH(M1>H Al----t- ~---+------~----~------~' WAIT ____ 1________ _ RD I I 5-12 f-LltD7801780-1/780-2 Standard Test Conditions Load Circuit for Output The standard test conditions reference all voltages to ground (OV) and follow the convention that positive current +5V flows into the referenced pin. The listing of AC parameters Load Circuit tor Output is based on a load capacitance of 50pF unless explicitly stated otherwise. For every 50pF increase in load capaci- 2.2K tance there is a 10ns delay, up to a maximum increase of 200pF for the data bus and 100pF for the address bus and FROM OUTPUT <>---....---....-----j1C the bus control lines. UNDER lEST The operating temperature range is: O°C to + 70°C; + 4. 75V :s Vee :s + 5.25V. 10K Absolute Maximum Ratings· T. = 25"C Operating Temperature O"Cto +70OC Storage Temperature - 65°C to + 1500C Voltage on any Pin -O.3Vto +1V!JJ Power Dissipation 1.Sw Note: (j) With respect to ground *COMMENT: Exposing the device to stresses above those listed in Absolute Maximum Ratings could cause permanent damage. The device is not meant to be operated under conditions outside the limits described in the operational sections of this specification. Expo- sure to absolute maximum rating conditions for extended periods may affect device reliability. DC Characteristics T. = o"Cto +7O"C;Vcc = +5V :t:5~unless oth_ise specified. -- Clock Input ~ VOltage CI_1npUt High Voltage Input Low VOltage aw-l VII.C VIHC VII. Min -0.3 Vee -0.6 -0.3 I.Imits 1YP - Test_. . . 0.45 Vee +0.3 o.a Unit V V V Input High VOltage V,H 2.0 Vee V Output Low VOltage VOL OA V IOL = 1.8mA Output High VOltage VOH 2A V I"" - - 2SO"A -Supply ~P0780 Icc 150 rnA Ie - 400ns Cunent ~P078I).1 Icc 90 200 rnA Ie= 250ns Input~ Currant lu 10 "A VIN - OloVcc T h _ Output Leakage VOUT - 2.4 Current In Float ILOH 10 "A IOV cc T h _ Output Leakage Current In Float ILOL -10 "A VOUT = G.4V Data Bus Leakage Currant OsV1N Inlnput_ ILD "10 "A sYcc Capacitance T. = H"C ---- CI_capo _ _ lnpUt~nce Output~ SymIooI c~ c", COUT II"m I.Imits 1YP II... 35 10 Unit pF Test CondItions 'e = 1MHz pF Unntusurad pin. pF retumed to ground. 5-13 IJ.PD7801780.11780.2 AC Characteristics T. = O·C to + 70OC; vee = + 5V ± 5%. unless otherwise specified, Umits ~PD780'2 Parameter Symbol Min "ax Min Mu Unit Test Conditions Clock Period 0.4 (j) D.25 (j) 0.165 (j) ~o Clock Pul.. Width, Clock High 180 ® 110 ® 65 ® no Clock Pull. Width, Clock Low 180 2000 110 2000 65 2000 ns Clock Rise and Fall Time IRI 30 30 20 n. Address Output Osley 145 110 90 ns Delay to Float tD(AD) 110 90 80 n. Addro.a Stable P~or 10 i.iiiEci (Memory Cycle) ® ® ® n. Address Stable P~or 10 IORQ, RD or WR (UO Cycle) no Add..... Stable from RD or WR ® ns CL = 50pF Address Stable from RD or WR during Roat ® ns Data Oulpul Daley to(O) 230 150 130 n. Detay to Float dunng WrIte Cycle 90 90 80 no Data Setup Time to Rising Edge of Clock dUring M1 Cycle 'SP(D) 50 35 30 ns Data Setup Time to failing Edge or Clock dUring M2 to Me Cycles 60 50 40 ns CL = 200pF Data Stable p~or 10 WR (Mamory Cycle) ns Data Stable p~or to WR (00 Cycle) ® na Data Stable lrom WR nl BUSRQ Setup nme to RISIng Edge of Clock tscaQ) 80 50 50 no BUSAK Daley 110m RISing Edge of Clock 10 BUSAK Low ICUBA) 120 100 90 na C L = 50pF BUSAK Delay from Failing Edge of Clock to BUSAK High toH(BA) 110 100 90 ns Daley 10 Floe! (MREQ, IORQ, RD and WR) 100 80 70 no M, Stable PrIor 10 IORQ (Inlerrupl Ack.) na Any Hold Time for Setup T1me ns HALT Daley nmo 110m failing Edge of Clock 1o(H!) 300 300 na CL = 50pF INT Setup Time to Rising Edge of Clock 80 80 70 ns IORQ Daley loom Riling Edge of Clock to IORQ Low tOLoMIR) 80 75 65 ns IORQ Delay from failing Edge of Clock to IORQ Low 110 85 70 na iORQ Daley loom Riling Edge of CI_lo IORQ High lottc!>(IR) 100 65 70 ns iORQ Daley loom failIng Edge of Clock to IORQ Hogh 110 85 70 ns CL = 50pF M, Defay from RI.'ng Edge of Clock to M, Low 130 100 80 na M, Dalay loom Rising Edge of Clock 10 M, High 130 100 80 ns MREQ Daley 110m Failing Edge 01 Clock 10 MREQ Low 100 85 70 ns MREQ DaIsy loom Riling Edge of CI_ to MREQ HIgh 100 65 70 no UREQ Delay trom Failing Edge of Clock to MREQ High 100 65 70 ns Pulse Wldlh, MREQ Low ....MRL) no Pul.. Width, MREQ HIgh lwtMRH) ns Pul.. Width, iiiil Low tW(NMI) 80 80 70 ns RESET Setup nme 10 Rising Edge of CI_ ts(RS) 80 80 80 ns RD Daley loom RIsing Edge of Clock 10 RD Low 100 65 70 no RD Detey loom Failing Edge of CI_ to RD Low tm.4:(RO) 130 95 80 no RD Delay from RIsing Edge of Clock to RD H~h 100 85 70 na RD Daley loom failing Edge of CI_ to RD High 110 65 70 ns RFSH Daley loom Rising Edge of Clock to RFSH Low 180 130 110 no CL = 30pF RFSH Daley lrom Riling Edge of CI_ to RFSH High tOH(RF) 150 120 100 no WAIT Setup TIme 10 Failing Edge 01 Clock IS(W!) 70 70 60 na WR Daley 110m RISIng Edge of CI_ to WR Low 80 65 60 no WR Deley 110m Failing Edge of Clock 10 WR Low 90 80 70 ns WR Delay 'rom Felling Edge of Clock to WR High toH;f;(WR} 100 80 70 nl Pulae WIdth to WR Low tW(WRL) nl - •• (j) ® Ie ~ Iw(~H) + Iw(L) + 'R + 'F Though the structure of the 780 IS statlc, 2OO..,s IS a guaranteed maximum ® IACM ~ 1w(H) + Ie - 65 (75)" (50)"" ® IACI ~ Ie - 70 (80)" (55)"" ® leA = tw!L) + 'R -SO (40)" (50)" Package Outlines ® 'R leAF ~ tw!L) + -45 (60)" (40)"" ® iocM ~ Ie - t70 (210)" (140)" For information. see Package Outline Section 7, @ loCI = tw!L) + 'R -t70 (210)" (140)"' ill IeOF ~ Iw(L) + 'R -70 (80)" (55)"" QiI "'R~ 2tc + tw(H) + 'F - 65 (80)' (SO)" Gl> Iw(MRL) = Ie - 30 (40)"(30)'" Plastic, jJ.PD7S0C @ Iw(MRH) ~ 1w!H) + IF - 20 (30)" (20)"" Ceramic, jJ.PD7S0D @ Iw(WR) ~ Ie - 30 (40)' (30)"" These values apply 10 the ~PD780 .. These values apply to the ,...PD780·2 780n80-1nSO-2DS-Rev 2-7-83-CAT-L 5-14 NEe ",PD8085AH ",PD8085A·2 fLPD8085A SINGLE CHIP 8·BIT N·CHANNEL MICROPROCESSOR 'DESC R I PTI ON The pPD8085A IS a single chip 8-blt microprocessor which IS 100 percent software compatible with the Industry standard 8080A. It has the ability of increasing system performance of the Industry standard 8080A by operating at a higher speed Using the pPD8085A In conjunction with its family of ICs allows the designer complete flexibility With minimum chip count. FEATURES • Single Power Supply: +5 Volt, ±10% • Internal Clock Generation and System Control • Internal Serial In/Out Port. • Fully TTL Compatible • Internal4-Level Interrupt Structure • Multiplexed Address/Data Bus for Increased System Performance • Complete Family of Components for Design Flexibility • Software Compatible with I ndustry Standard 8080A • Higher Throughput. pPD8085AH - 3 MHz pPD8085A-2 - 5 MHz • Available in Either Plastic or Ceramic Package PIN CONFIGURATION Xl Vee X2 HOLD RO HlDA SOD elK lOUT) SID RESETIN TRAP READY RST 7 5 loiM RST 6.5 Sl RST 5 5 RD INTR ",PO WR INTA ALE 8085A ADO So ADl A15 AD2 A14 AD3 A13 AD4 A12 AD5 A11 AD6 AlO AD7 Ag VSS AS Rev/S 5-15 ",PD8085A The IlPD8085A contains six 8-bit data registers, an 8-bit accumulator, four testable FUNCTIONAL flag bits, and an 8-bit parallel binary arithmetic unit_ The IlPD8085A also provides DESCRIPTION decimal arithmetic capability and it includes 16-bit arithmetic and immediate operators which greatly simplify memory address calculations, and high speed arithmetic operations_ The IlPD8085A has a stack architecture wherein any portion of the external memory can be used as a last in/first out (li Fa) stack to store/retrieve the 'contents of the accumulator, the flags, or any of the data registers. The IlPD8085A also contains a 16-bit stack pointer to control the addressing of this' external stack. One of the major advantages of the stack is that multiple level inter- rupts can easily be handled since complete system status can be saved when an inter- rupt occurs and then restored after the interrupt is complete. Another major advantage is that almost unlimited subroutine nesting is possible. The IlPD8085A was designed with speed and simplicity of the overall system in mind. The multiplexed address/data bus increases available pins for advanced functions in the processor and peripheral chips while providing increased system speed and less critical timing functions. All signals to and from the IlPD8085A are fully TTL compatible. The internal interrupt structure of the IlPD8085A features 4 levels of prioritized Interrupt with three levels internally maskable_ Communication on both the address lines and the data lines can be interlocked by using the HOLD input. When the Hold Acknowledge (HLDA) signal is issued by the pro- cessor, its operation is suspended and the address, data and control lines are forced to be in the FLOATING state. This permits other devices, such as direct memory access channels (DMA), to be connected to the address and data busses. The JlPD8085A features internal clock generation with status outputs available for advanced read/write timing and memory/IO instruction indications. The clock may be crystal controlled, RC controlled, or driven by an external signal. On chip serial in/out port is available and controlled by the newly added R 1M and SIM instructions. BLOCK DIAGRAM --Vee 5-16 JlPD8085A PIN IDENTIFICATION L PIN NO SYMBOL NAME FUNCTION 1,2 X,. X2 Crystal In Crystal, Re, or external clock Input I 3 AO Reset Out Acknowledge that the processor IS bemg reset to be i used 85 a system reset 4 SOD Senal Out Data 1 bit data out by the SIM Instruction ~. '--...:s"'O=--_ _ _+--=Se='...:'O"-::.In...:o:.:a:::,a,-_+_',,-b::':...'d=a",'a:..:,::.n':.:0c.A:.:C:.:C.",blt 7 by the RIM Instruchon I 6 Trap Trap Interrupt Highest priority nonmaskable restart Interrupt I Input RST 7 5 Restart Priority restart Interrupt tnputs, of which 7 5 IS the RST65 AST 5 5 ,0 INTR INTA ADO - AD7 i 20 VSS Ground Ground Reference I 21·28 AS - A15 High Address Bus I Nonmultlplexed high a-bits of the address bus 29,33 50. 5 1 Status Outputs Outputs which indicate data bus status Halt. Write. Read. Fetch 30 ALE Address latch A signal which mdlcates that the lower 8-blts of Enable Out address are valid on the AD lines 3',32 WA. RD Write/Read Signals out which are used as wflte and read strobes Strobes Out for memory and 110 deVices 34 I 101M ! A signal out whIch Indicates whether AD or WR i strobes are for 1/0 or memory devices 35 Ready Ready Input I An Input which IS used 10 Increase the data and address bus access times Ican be used for slow I memory) 36 Reset In Reset Input An Inp... t which IS used to start the processor actIvity at address O. resetting IE and HlOA flip flops 37 i CLK ~ 38,39 HLDA. HOLD HOld Acknowledge Used to request and Indicate that the processor should OUI and Hold relmqUlsh the bu,s for OMA actlvl'y When hold IS Input Request acknowledged. AD. WR. 101M. Address and Data ! busses are all 3 stated ~~--r~-----+~~~---+~=~~:.:...:c.~=~--------------- L-_4_0____L_~~ I VCC ______L-_5V __S_uP_p_'v________ L_P_o_w_"_S_U_~pp~I~V_I_nc.P_UI____________________~ ABSOLUTE MAXIMUM Operating Temperature. O°C'o +70°C Storage Temperature -65°C to +150°C RATINGS* Voltage on Any Pin -0,5 to +7 Volts Power DISSipation , l,5W Ta = 25°e; Vee = ±5V ± 5%, 8085A·2 'COMMENT: Stress above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. ThiS is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability , DC CHARACTE RISTICS Ta' o'c to +70'C, Vee' +5V ± ,0%, Vss - GND. unl... oth.rwlse speCIfied LIMITS TEST PARAMETER SVMBOL MIN MAX UNIT CONDITIONS Inpul low Voltage VIL VSS· 05 VSS + 08 V Input High VOltage VIH 20 Vee + 0 5 V Output low Voltage VOL 045 V tOl = 2 mA on alt outputs i Output High Voltage VOH 24 V IOH • -4oo,..s CD I Power SUpply Current (VCC) ICCIAVI 170 mA tCY min (808SA-21 MaXimum Umt Test 136 mA tey mm (8085AH) Input leakage I "0 Q) .A 0 .... VIN ~ Vee Output leakage ILO "0 (i) .A o 45V " Vour ... Vec Input Low Levet. Reset VILR -05 +08 V Input HI., llvel. Reset VIHR 24 Vec + 0 5 V HysteresIs. Reset VHY 025 V Xl. X2 Input Voltage High VIHX 4,0 Vee+0 5 V Note I j f"" Xl X2 1·6 MHz> 50% DC Clock In Note CD Input frequency must be tWice the Internal operatmg frequency STATUS OUTPUTS The Status Outputs are valid <:juring ALE time and have the following meaning: S1 SO Halt 0 0 Write 0 1 Read 0 Fetch These pins may be decoded to portray the processor's data bus status. 5-21 ",PD8085A The ,uPD8085A has five interrupt pins available to the user. INTR is operationally the INTERRUPTS same as the 8080 interrupt request, three (3) internally maskable restart interrupts: RESTART 5.5, 6.5 and 7.5, and TRAP, a non·maskable restart. RESTART PRIORITY INTERRUPT ADDRESS Highest TRAP 2416 I RST 7.5 3C16 I RST 6.5 34 16 I RST 5.5 2C16 Lowest INTR INTR, RST 5.5 and RST 6.5 are all level sensing inputs while RST 7.5 is set on a rising edge. TRAP, the highest priority interrupt, is non-maskable and is set on the rising edge or positive level. It must make a low to high transition and remain high to be seen, but it will not be generated again until it makes another low to high transition. Serial input and output is accomplished with two new instructions not included in the SERIAL I/O 8080: RIM and SIM. These instructions serve several purposes: serial I/O, and reading or setting the interrupt mask. The RIM (Read Interrupt Mask) instruction is used for reading the interrupt mask and for reading serial data. After execution of the RIM instruction the ACC content is as follows: I I /5 SID I 6.5 M 6.5 I SERIAL I PENDING I INTERRUPT DATA INTERRUPTS MASKS IN INTERRUPT ENABLE Note: After the TRAP interrupt, the R 1M instruction must be executed to preserve the status of IE. The SIM (Set Interrupt Mask) instruction is used to program the interrupt mask and to output serial data. Presetting the ACC for the SIM instruction has the following meaning: R M 7.5 5.5 I SERIAL RESET I RST OUT RST7.5 MASKS DATA ENABLE (1 = SEn SERIAL MASK OUT SET DATA ENABLE ENABLE (1 = ENABLE) (1 = ENABLE) 5-22 ~PD8085A INSTRUCTION SET The instruction set includes arithmetic and logical operators with direct, register, indirect, and immediate addressing modes. Move, load, and store instruction groups provide the ability to move either 8 or 16 bits of data between memory, the six working registers and the accumulator uSing direct, register, indirect, and immediate addressing modes. The ability to branch to different portions of the program is provided with direct, con- ditional, or computed jumps. Also, the ability to call and return from subroutines is provided both conditionally and unconditionally. The RESTART (or single byte call instruction) is useful for interrupt vector operation. Conditional jumps, calls and returns execute based on the state of the four testable flags (Sign, Zero, Parity and Carry). The state of each flag is determined by the result of the last instruction executed that affected flags. (See Instruction Set Table.) The Sign flag is set (High) if bit 7 of the result is a "1 "; otherwise it is reset (Low). The Zero flag is set if the result is "0"; otherwise it is reset. The Parity flag is set if the modulo 2 sum of the bits of the result is "0" (Even Panty); otherwise (Odd Parity) it is reset. The Carry flag is set if the last instruction resulted in a carry or a borrow out of the most significant bit (bit 7) of the result; otherwise it is reset. In addition to the four testable flags, the I.lPD8085A has another flag (ACY) that is not directly testable. It is used for multiple precision arithmetic operations with the DAA instruction. The Auxiliary Carry flag is set if the last instruction resulted in a carry or a borrow from bit 3 into bit 4; otherwise it is reset_ Double preciSion operators such as stack manipulation and double add instructions extend both the arithmetic and interrupt handling capability of the I.lPD8085A. The ability to increment and decrement memory, the six general registers and the accumu- lator are provided as well as extended increment and decrement instructions to operate on the register pairs and stack pointer. Further capability is provided by the ability to rotate the accumulator left or nght through or around the carry bit. Input and output may be accomplished using memory addresses as I/O ports or the directly addressed I/O provided for in the I.lPD8085A instruction set. Two instructions, RIM and SIM, are used for reading and setting the internal interrupt mask as well as input and output to the serial I/O port. The special instruction group completes the I.lPD8085A instruction set: NOP, HALT stop processor execution; DAA provides decimal arithmetic capability; STC sets the carry flag; CMC complements it; CMA complements the contents of the accumulator; and XCHG exchanges the contents of two 16-bit register pairs directly. DATA AND INSTRUCTION Data in the I.lPD8085A is stored as 8-bit binary integers_ All data/instruction transfers FORMATS to the system data bus are in the following format: 1071061051041D31021D,lool MSB DATA WORD LSB Instructions are one, two, or three bytes long. Multiple byte instructions must be stored in successive locations of program memory. The address of the first byte is used as the address of the instruction. One Byte Instructions TYPICAL INSTRUCTIONS Register to register, memory reference, anthmetlC or logical rotate, return, pUSh, poP. enable, Two Byte Instructions or disable mterrupt instructions I OP COOE Immediate mode or 110 instruc- 10 71 Os 10 51 04 10 3 1°21°, I 00 1071061051041031021D, IDo I OPERAND tions Three Byte Instructions I 071 061 051 D4 103 ID2 I 01 I DO I QP CODE ~~or;':;~s~l:u~~.~I~~ct load and ID71 D61 D51 D41 D31 D21 D, IDO I LOW ADDRESSOR OPERAND' ID71 D61 D51 D41 D31 D21 D, IDO I HIGH ADDRESS OR OPERAND 2 5-23 -----.--- IAPD8085A INSTRUCTION SET TABLE INSTRUCTION cope t INSTRUCTION CODEl Clode MNEMONIC! DESCRIPTION D7 06 Os 04 D3 02 0, DO MNEMONIC! DESCRIPTION D1 06 05 04 OJ 02 0, DO Cvcles J LOAD REGISTER PAIR MOV d , Move 'egl,ter 10 ,,,,,'511" d lo~d ,mmed'~te ."q.Ster MOV M , Move reglsler to memory 1 0 P"" 8e MOV d,M Move memory h) '!!'!Im", 0 1 d d d 1 1 0 LXI 0,016 LOdd ,mmelhdle reg,sl", MVI d,08 Move 'rnmf!d,are 10 reglue. 0 0 d d d 1 , 0 p .. " DE o 0 0 1 MVI M,08 Move ,mmedrale 10 memory 1 0 1 10 LXI H,D16 LOdd ,mrned',l1e '''c'~menl DE o 0 0 0 0 0 0 1 1 0 1 SUI 08 Sublract .mmed'aTe hom A 1 , 0 , DCX H OPLf~meol Hl 0 0 1 0 1 0 1 SBI08 Subt,a" ,mmedMlflromA , DC)!: SP Oe.:remeotSI .. ck P",nler ANI 08 AND ,mmed.ate ..... ,t" A o , REGISTER INDIRECT XRID8 ExctuStIftOR,mmed'dte , 0 1 • 0 SlAX B Slo'e A dI ADOR ,n BC o 0 1 0 ORID8 OR ,mmedlate wnh A , 0 , SlAX 0 SIOte A dl AODR ,n DE 1 0 0 1 0 CPID8 Compare ,mmed,ale ""',Ih A 1 LOdd A dt ADDR ,1'1 BC o 0 0 1 0 I 0 lDAX 0 lo,'ct A dt ADOR 10 DE o 0 1 1 0 ROTATE DIRECT RLC ROTateAlefl MSB to carlyI8·b.11 o 0 0 0 0 1 STA ADOR Store A d"et! 00110010 ARC RO!8te A roght LSB '0 o 0 1 1 1 0 0 cany t8·bl11 o 1 0 0 0 0 "" AAe Rotale AlefTlh.ough lHlD AD DR , 0 Clltry19·b,tl o 0 0 ROlateA flghTlhrough MOVE REGISTER PAtR catry!9·bnl o 0 0 1 XCHG Exchange DE andHL JUMP o , XTHl E.changetolJolstMk JMP AODR Jump uocond'loonal o 0 0 0 1 1 10 and HL 1 0 0 0 1 JNZ AOOR JZ AOOR Jump on not zero Jump on ze.o 1 o 0 0 0 0 I 0 0 1 1 0 0 7110 7/10 HL to Stack Pomle' HL to P'og.amCouote, , 0 0 "66 JNC AODR Jump on no CoilHY 1 0 1 0 0 1 0 7/10 JC AOOR Jump 00 cat!e. ANC Relurn on no carry 1 0 1 0 0 0 6/12 d deSlt08hon reg,ste. JTwoPo$S,blecyclel,mes (7110) mdocale AC Relurnoncarry , 0 0 6112 PSW ~ Proce$l.or SUlluS Wo.d ,nUrucl,oo cycles dependent on cond,l,on RPO Relumon ""rrtyodd , , 0 SP ~ Slack Po,ote. Hags 6112 , 0 , 08 - 8b'IdalaQuanl,ty ... press.on,O' Return on partly l!IIen 6/12 COOSl8nt,8twavsB20f ,nUruc"on 4. HagalieCled Reluroonposl1.ve 1 0 0 0 0 6/12 016 16 bll dala Qu/lnhly, e~p'l!$s,on or Itagr>olallected Returoon m.ous , 0 6112 o -Uag.eset "onUant. always BJB20f InSI,uCI.on AOOR - 16 b" Memo.y addren e~p'l!$s,on 1 Haysel 5-24 ",PD8085A INSTRUCTION CYCLE One to five machine cycles (Ml - M5) are required to execute an instruction. Each TIMES machine cycle involves the transfer of an instruction or data byte Into the processor or a transfer of a data byte out of the processor (the sole exception being the double add instructIOn). The first one, two or three machine cycles obtain the Instruction from the memory or an interrupting I/O controller. The remaining cycles are used to execute the instruction. Each machine cycle requires from three to five clock times (Tl - T5). Machine cycles and clock states used for each type of instruction are shown below. INSTRUCTION MACHINE CYCLES EXECUTED CLOCK STATUS TYPE MIN/MAX MIN/MAX ALU R 1 4 CMC 1 4 CMA 1 4 DAA 1 4 DCR R 1 4 DI 1 4 EI 1 4 INR R 1 4 MOV R, R 1 4 NOP 1 4 ROTATE 1 4 RIM 1 4 SIM 1 4 STC 1 4 XCHG 1 4 HLT 1 5 DCX 1 6 INX 1 6 PCHL 1 6 RETCOND. 1/3 6/12 SPHL 1 6 ALU I 2 7 ALUM 2 7 JNC 2/3 7/10 LDAX 2 7 MVI 2 7 MOV M, R 2 7 MOV R, M 2 7 STAX 2 7 CALL CONDo 2/5 9/18 DAD 3 10 DCR M 3 10 IN 3 10 INR M 3 10 JMP 3 10 LOAD PAIR 3 10 MVIM 3 10 OUT 3 10 pop 3 10 RET 3 10 PUSH 3 12 RST 3 12 LDA 4 13 STA 4 13 LHLD 5 16 SHLD 5 16 XTHL 5 16 CALL 5 18 5-25 ",PD8085A A minimum computer system consisting of a processor, ROM, RAM, and IlPD8085A FAMILY MINIMUM I/O can be built with only 3-40 pin packs_ This system is shown below with SYSTEM CONFIGURATION its address, data, control busses and I/O ports_ VCC I~ INTERRUPTS ~ I ,f rl l t t t 111 PORTA 1I111I PORTC 1111I11I1 PORTB '1111I11111 RST 7 5 RST 6 5 RST 5.5 TRAP RESET IN SID SOD SI so PAo - - - - -- PA7 PCo - - - - - PC 5 PSo --- PB7 -, TIMER a ~ X2 XI .PD8065A PROCESSOR w Ci> ...::> 0 ... 0 00: .... 0 ...... .PDBI56 RAM-IIO 1256 X 81 w I~ .. TIMER ;-- OUT N ADD - - - - --AD7 As--- - --AI5 ;l1~IB~ ".... ::lw :t0 :t.... !" 100:! w .... lol~ow AOo - - - -- AD, U C( a: _a:: "" ADo 11 1 11 ADI t AD2 AD3 DATA AD4 AD5 AD6 AD7 As Ag t Al0 A11 ADR A12 All A14 A15 ALE iiD Wi! 10/fli RDY CLK r- CON RESET HOLD HLDA INTR iNTA - ::J ~:t::la:: U~ a:2 ~I~I~I~ ALE ADO- - - - - AD, FEATURES OF .PDS065A MINIMUM SYSTEM .PD8355 ROM-IIO 2K - BYTE ROM uPD8755A PROM-IIO 2K X 8 256 - BYTE RAM 1 - INTERVAL TIMER PAO - - - - - - - - PA7 P8o-- - - - - - - P87 4 - 8·BIT I/O PORTS 1 - 6·81T IIO-STATUS 4 - INTERRUPT LEVELS II 111I II 1III11111I I I PORTA PORTB Package Outlines For Information, see Package Outline Section 7. Plastic, fl-PD8085ACI AHC CeramiC, fl-PD8085AD Cerdip, fl-PD8085AD AHD 8085ADS-REV4-7-83-CAT 5-26 NEe "PD8086 ",PD8086-2* 16-BIT MICROPROCESSOR DESCRIPTION The /lPD8086 is a l6-blt microprocessor that has both 8-bit and l6-bit attributes. It has a l6-bit wide physical path to memory for high performance. Its architecture allows higher throughput than the 5 MHz /lPD8085A·2. FEATURES • Can Directly Address 1 Megabyte of Memory • Fourteen l6-Bit Registers with Symmetrical Operations • Bit, Byte, Word, and Block Operations • 8-,and l6-Bit Signed and Unsigned Arithmetic Operations in Binary or Decimal • Multiply and Divide Instructions • 24 Operand Addressin!! Modes • Assembly Language Compatible with the /lPD8080/8085 • Complete Family of ,Components for Design Flexibility PIN CONFIGURATION GND Vee AD14 AD15 AD13 A16/S3 AD12 A17/S4 ADll A1B/S5 AD10 A19/S6 AD9 BHE/S7 ADB MN/MX AD7 Ri5 AD6 HOLD (RO!G'i'ii) AD5 HLDA (ROtGT11 AD4 WR (LOCK) AD3 M/iQ (52) AD2 DTtR (Si) ADl i5EiiI (SO) ADO ALE (OSO) NMI iiii'i'A (OSl) INTR TEST eLK READY GND RESET ·Preliminary Rev/l 5-27 ,..PD8086 NO. SYMBOL NAME FUNCTION PIN IDENTIFICATION 2·16,39 AOO·ADI5 Address/Deta Bus MultIPle.ad add .... (Tl) and da.. IT2, T3, TW, T4) bu•. S-blt peripheral. tied to the lower 8 bits, use AO to condJtion chip select functions. These lines are tri~state during interrupt 8cknow~ge and hotel states. 17 NMI Non-Maskable This IS an edge triggered Input causing a type 2 Interrupt.)l Interrupt look-up table Is used by the processor for vectoring Information. 18 INTR I nterrupt Request A level triggered Input sampled on the last clock cycle of each Instruction. Vectoring Is via an interrupt look-up table. I NTR can mask In software by resetting the interrupt enable bit. 19 CLK Clock The cl()Ck input is 81/3 duty cycle input basic timing for the processor and bus controller. 21 RESH R.... This active high signal must be high for 4 clock cycles. When it raturnslow, the processor restarts executIOn. 22 READY Ready An acknowledgement from memory or 1/0 that data will be transferred. Synchronization II done by the ",PD8284 clock generator. 23 TEST Test This input is examined by the "WAIT" instruction. and if low. execution continues. Otherwise the processor waits In an "Idle" state. Synchronized by the processor on the ieadi"g adge of CLK. 24 INTA Interrupt This Is a read strobe for reading vectoring information. Acknowledge During T2. T3. and TW of each interrupt acknowledge eycle it is low. 25 ALE AddresS Latch Enable This Is used In conjunction with the ",PD8282/8283 latches to latch the addreu. during T 1 of any bus cycle. 26 DEN 00", E""ble This is tha output enable for the "P08282/8287 transceivers. It is active low during each memory and I/O 8CC8ssand INTAcycles. 27 DTtFi O,ta Transmit/Receive Uted to control the direction of data flow through the ' .. " ....Iv.... 28 M/IO MemQry/IO Status This is used to separate memory access tram I/O access. 29 WR Write Depending on the state of the Mfj"O'"lIrr. the processor is either writing to I/O or memory. 30 HLDA Hold Acknowledge A response to the HOLD input, causing the processor to tri.state the local bus. The bus return active one cycle after HOLD goes back low. 31 HOLD Hold When another device requaltS the Iocel bus. driving HOLD high, will cause the PPD8086 to issue a H LOA. 32 RD Reed Depending on the state of the M/IO line. the processor is reading from either memory or I/O. 33 MN/MX Minimum/Maximum This input is to tell the processor which mode It Is to be used in. This effects lOme of the pin detlerlptlons. 34 ~/S7 8us/High Enabl. ThiS is used in conjunction wit~ the most significant half of the data bUI. Peripheral devices on thil half qf the bus use SHE to condition chip select functionl. 3!h18 AI6-At9 Most Significant The four most significant address jlits for mamory oper. Address Bits tionl. Low during I/O operat~.· 26,27,211 So-S7 StatUi Outputs These ara the status OUtpUtl from the processor. They are 34-38 utad by the ",PD8288 to gafler~ bus controllignali. 24,25 CSt,OSO Que StatUI UIJ.!d to track the Internal ",P08086 instructlOfl que. 29 LOCK Lock Thl. output il set by tha "LOCK" instruction to Pl"8V8(lt other IY1tIm bUI masten from gaining control. 30,31 ~§ Req'l"'t/Grant Other local bus marters can force the processor to reba.. ROIGTI the local bus It the end of the ~rrent bus cycle. 5-28 fjPD8086 BLOCK DIAGRAM EXECUTION UNIT BUS INTERFACE UNIT RELOCATION REGISTER FILE REGISTER FILE SEGMENT DATA, REGISTERS POINTER, AND AND INDEX REGS INSTRUCTION (SWORDS) POINTER (5WORDS) 16-BIT ALU FLAGS BUS INTERFACE UNIT DT/Fl, DEN, ALE 6-BYTE INSTRUCTION OUEUE TEST-----r------------~~----------~ INT LOCK NMI CONTROL & TIMING OSO,OS1 RO/GTO,1 HOLD HLDA CLK RESET READY MN/MX GND Vee 5-29 IlPD8086 Operating Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . oOe to 700 e ABSOLUTE MAXIMUM Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -65°e to +150o e RATINGS* Voltage on Any Pin with Respect to Ground . . . . . . . . . . . . . . . . . . . -1.0 to +7V Power Dissipation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.5W Ta = 25°C 'COMMENT: Stress above those listed under "Absolute Maximym Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. LIMITS TEST DC CHARACTERISTICS PARAMETER SYMBOL MIN MAX UNITS CONDitiONS Input low Voltage Vil -0.5 +O.S V Input High Voltage VIH 2.0 VCC +0.5 V Output Low Voltage VOL 0.45 V 10L = 2.5 rnA Output High Voltage VOH 2.4 V 10H =-400IlA Power Supply Current ICC IlPDSOS6/ 340 rnA Ta = 25°C IlPD80S6·2 350 rnA Input leakage Current III ±10 Il A OVUTPUT) M/iO BH'EfS7. A,1g/SS·A1S/S3 ALE WOITE CYCLE \ ADtS : : : iJ) IRD, iN'fA, OTfR - VOH) -I--+-~~I~r-- W1I AD1S-AOS -1-1-1L-~i!-.l---.,....~---~.v-;:;;;:;;tl~-+----~ INTA CYCLE DT/A iJ)@ (RD. iNA .. VOH BHE" VOL) SOFTWARE HALT QEN,Ri5,WR.iNi'A ~ VO H INVALID ADDRESS SOFTWARE HALT TelAV NOTES: lMck. TM 8C881ocM ADDR/Date BUI is floating during both INTA cycles. Control for POinter ~ IS shown for IRond INTA cycM. ® S'IJn8ls at 8284 or 8288 .,. shown few reference onfy. @) I!!!..!...SSU!!!5!,2f 1!!L..828B~~£!!!!!.rolsignalstMiiDC. MWTe, AMWC,IORC, lOwe. AIOWC,INTA end DEN) legs the active high 8288 CEN (J) All tmn", rnuturement,.re made at 1.SV un... othetwtII noted. @ Stetullnactrve in state JUst prior to T4- 5-36 ",PD8086 ASYNCHRONOUS SIGNAL RECOGNITION CLK NMI INTR SIGNAL ,,:_ _ __ NOTE: CD Setup requirements for asynchronous signals only to guarantee recognition at next CLK. BUS LOCK SIGNAL TIMING REQUEST/GRANT SEQUENCE TIMING* NOTE: StatuI Valid to ALE tSVlH 15 ns ROY Hold Time Into ns tCLR1X High MCE Inactive tclMCl 15 ns Delay All signals switch between VOH and VOL unless otherwise specified. (J) ROY is sampled near the end of T2, T3, TWAIT to determine if TWAIT machine states are inserted. @ The cascade address IS valid between the first and second INTA cycles. @ Two INTA cycles run back·ta-back. The I'PD8088 local Address/Data bus floats during both INTA cycles. The control signals shown are for the second INTA cycle. ~ Signals at the I'PD8284 and I'PD8288 are shown for reference. @ The flbD8288 active-~~h CEN lagwWhen the "PD8288 Issues command and control signals (MRD. , MWTC, AM , IORC, I C, AIOWC, INTA, and DEN). ~ All timing measurements are taken at 1.5V unless otherwise specified. @ Status is inactive prior 'to T4. 5-45 ~PD8088 Timing Waveforms (Cont.) Asynchronous Input Recognition ClK ~~----[ NMI \---------l INTR ~ SlgnaI!-: __ ? ------------=>i-....J._ _m Not.. (j) Setup requirements for asynchronous signal~ guarantee recognition at next elK. Maximum Mode Bus Lock Signal Timing r F Any ClK Cyelto -------11 j - - - - - A ny ClK Cycle ClK ------ ------/ ICLAV tClAV lOCKI----- - Maximum Mode RequesVGrant Sequence Timing Any CLK Cycle CLK tGVCH r---+---- tcHGX tClGl AI9iSs-Al&1S3 p_~_vm_u._~_m ... I _____ ~ _ _ _ _I>--_ _ _ _ . . . ~~.>----------""\ tcuu r----i tclGH A15-A8 AD7-AOO ""-.a 0 II Coprocessor Gl ~D8088 >--_ _ _ _ _ _ _ _- J ' -_ _.... 12.81. So 1m. I:iia( Noto, (j) The coprocessor risks bus conten!ion if it drives the buses outside the areas shown. 5-46 !-,PD8088 Timing Waveforms (Cont.) Mimimum Mode Hold Acknowledge Timing \ ~"'ClKCyCI' ClK ..._ ~_J-J~ttHHVVCC~HGl , HOLD HLDA 1-- ____ ~.I---~rt --~,----t_+__tClHA-V~.... tCLHAV u tClAZ Coprocessor Note: (!) All signals switch between VOH and VOL unless otherwise specified. Package Outlines For information, see Package Outline Section 7. Cerdip, fLPD8088D 8088DS-REV1·7 ·83-CAT 5-47 Notes 5-48 NEe PERIPHERALS iii NEe J.1PD765A/ J.1PD7265 SINGLE/DOUBLE DENSITY FLOPPY DISK CONTROLLER Description o Data Transfers in DMA or Non-DMA Mode The J.LPD765A is an LSI Floppy Disk Controller (FDG) chip o Parallel Seek Operations on Up to Four Drives which contains the circuitry and control functions for inter- o Compatible with J.LPDSOSO/S5, flPDSOS6/SS and J.LPD7S0 (ZSO'") Microprocessors facing a processor to 4 floppy-disk drives. It is capable of supporting either IBM 3740 Single Density format (FM), or o Single Phase Clock (S MHz) o +5VOnly IBM System 34 Double Density format (MFM) including o 40-Pin Plastic Package double-sided recording. The J.LPD765A provides control ", zao IS a registered trademark of 2110g Inc signals which simplify the design of an external phase MIcro Floppydlsk@ IS a registered trademark of Sony Corporation locked loop and write precompensation circuitry. The FDC simplifies and handles most of the burdens associated with Block Diagram implementing a floppy-disk interface. The fiPD7265 is an addition to the FDC family that has been designed specifically for the Sony Micro Floppydisk® drive. The J.LPD7265 is pin-compatible and electrically equivalent to the 765A but utilizes the Sony recording for- Registers mat. The J.LPD7265 can read a diskette that has been formatted by the J.LPD765A. Hand-shaking signals are provided in the J.LPD765AI WRClock J.LPD7265 which make DMA operation easy to incorporate WR Data WR Enable with the aid of an external DMA Controller chip, such as the Serial Preshlf.O J.LPDS257. The FDC will operate in either the DMA or non- Interface Controller Preshl,.1 DMA mode. In the non-DMA mode the FDC generates ORO OACK interrupts to the processor every time a data byte IS to be INT transferred. In the DMA mode, the processor need only AD load the command into the FDC and all data transfe(s WR Ready occur under control of the FDC and DMA controllers. Ao Write Protectl TwoS.de II There are 15 commands which the J.LPD765A/flPD7265 Index Reset will execute. Each of these commands requires multiple S-bit bytes to fully specify the operation which the proces- CS Unit Select 0 sor wishes the FDC to perform. The following commands Drive Unit Select 1 Interface are available: Controller MFM Mode READ DATA SCAN HIGH OR EQUAL WRITE DELETED DATA ClK RYlISeek READID SCAN LOW OR EQUAL SEEK Vee Head Load SPECIFY READ DELETED DATA RECALIBRATE READ TRACK WRITE DATA SENSE INTERRUPT STATUS GNO Head Select SCAN EQUAL FORMAT TRACK SENSE DRIVE STATUS Low Current! Direction Fault Reset/Step Features Address Mark detection circuitry is internal to the FDC which simplifies the phase locked loop and read elec- Absolute Maximum Ratings* tronics. The track stepping rate, head load time, and T. _ 25'C head unload time are user-programmable. The J.LPD765AI Operating Temperature -10'C to + 70'C J.LPD7265 offers additional features such as multitrack and Storage Temperature - 40'C to + 12S'C multiside read and write commands and single and double All Output Voltages -O.Sto +7V density capabilities. All Input Voltages -O.Sto +7V o Sony (EMCA) Compatible Recording Format Supply Voltage Vee ._".- --._"' ---- -O.Sto +7V -"----- (J.LPD7265) Power Dissipation 1W o IBM-compatible Format (Single and Double Density) - - - - - (J.LPD765A) o Multisector and Multitrack Transfer Capability *COMMENT: Exposing the device to stresses above o Drive Up to 4 Floppy or Micro Floppydisk® Drives those listed in Absolute Maximum Ratings could cause o Data Scan Capability-Will scan a single sector or an permanent damage. The device is not meant to be entire cylinder comparing byte-for-byte host memory operated under conditions outside the limits described and disk data in the operational sections of this specification. Expo- sure to absolute maximum rating conditions for extended periods may affect device reliability. Revl1 6-1 f.LPD765A/7265 Pin Identification Pin --;;,.::.-."';S;::.=m:;:b=.;-,;;';"'""7. Function N=am=e--- I 0 Connects To Pin Configuration Places FDC In Idle state Resets output lines to FDD to 0 (low) Does not affect SRT, HUT or HLT In Specify command If RST Reset Processor ROY pin IS held high dUring RESET Vcc Reset, FDC Will generate an RD RW/SEEK Interrupt Within 1 024 msec To clear this Interrupt use Sense iNA LCT/DIR Interrupt Status command CS FA/STP Control signal for transfer of A, HDL Read I 3: Processor data from FDC to Data Bus, when 0 (low) DB, flDY Control signal for transfer of. DB, WP/TS Write I 1-- Processor data to FDC via Data Bus, when DB, a (low) FLT/TRo DB, Processor IC selected when 0 (low), allow- PS, CS Chip Select Ing RD and WR to be enabled DB, PS, Selects Data Reg (Ao 1) or Data/Status DB, WDA Status Reg (Ao=O) contents of Reg Select the FDC to be sent to Data Bus DB, US, De, US, Data Bus 1/0 '1~ Processor Bldlrectlonal8-blt Data Bus DRQ HD 14 ORO Data DMA o OMA DMA Request IS being made by Request FDC when DRO = 1 DACK MFM DMA cycle IS active when 0 TC WE DMA 15 DACK DMA (low) and controller IS perform- Acknowledge lOX VCO ,ng DMA transfer. INT RD Indicates the termmatlon of a DMA transfer when 1 (high) It CLK RoW 16 TC Terminal Count DMA terminates data transfer during GND WCK Read/Wr,te/Scan command ,n DMA or Interrupt mode Indicates the beginning of a 17 lOX Index FDD disk track 18 INT Interrupt o Processor ~~e;D6t Request generated Single phase 8 MHz square- DC Characteristics 19 CLK Clock wave clock T. = -10'Cto +70'«;; . . 20 GND Ground DC power return Vee = + 5V ± 5% ul'liess otherWise specified Write data rate to FOD FM 21 WCK Write Clock 500 KHz, MFM = 1 MHz, With a Limits Test pulse Width of 250 ns for both Parameter SymbOI~M~m---lY==p~@~~~M~a.--- Unit Conditions FM and MFM Input Low Voltage V1L -0.5 08 Read Data Phase Generated by PLL, and used to 22 ROW Window Lock Loop sample data from FDD ROD Read data from FDD. containing 23 Read Data FDD clock and data bits VCOI Phase Inhibits VCO In PLL when 0 Input Low Voltage 24 Sync VCO/Sync o Locked Loop (law), enables VCO when 1 (CLK + WR Clock) VIL(~) .~--,0c:..5_ _ _ _ _0._65 _ _ _ _V_ __ 25 WE Write Enable o FDD Enables write data IOta FDD ~~~ ~ifJ~~:::) V1H($) 24 Vee + 0 5 V 26 MFM MFM Mode o Phase Lock Loop MFM mode when 1, FM mode when 0 Vee Supply curre:'"cc'-",lc"eC_ __ 150 mA Head 1 selected when 1 (high), Input Load Current III 27 HD Head Select o FDD Head 0 selected when 0 (low) (All Input Pins) 28, 29 ~~~' Unit Select o FDD FDD Unit selected High Level Output Leakage Current 'LOti _ _ _ _ _ _ ~,. _ _ _ !::~___ ,,~~L=__ ycc _" __ _ 30 WDA Wnte Data o FDD Senal clock and data bits to FCC Low Level Output Leakage Current _.',!:Q.L..___ -10 _~.~OUT ~~~~ __ Precompen- Wnte precompensabon status 31, 32 PS" PSo satlon o FDD during MFM mode Determines Note: CD TYPical values for Ta -"'- 25°C and nominal supply voltage (preshl!t) early, late, and normal times Senses FCD fault condition In 33 FLTfTRo FaultiTrack 0 FDD Read:Wnte mode, and Track 0 condition In Seek mode. Senses Wnte Protect status In Capacitance 34 WP/TS Wnte Protect! Two Sld~ FDD Read,Wnte mode, and Two-Side T. = 25'C;fc = 1MHz;Vee = OV Media In Seek mode Indicates FDC IS ready to send 35 ROY Ready FDD or receive data Limits Test Command which causes read Parameter Symbol Min Typ Max Unit Conditions 36 HDL Head Load o FDD write head In FDC to contact Clock Input diskette capacltanc:~ec-_ _ _ _ _~CC"N","(''L')_ Resets fault FF In FCD In Read Input Capacitance C1N 37 FRISTP Fit Reset/Step o FDD Wnte mode, contains step pulses to move head to another Output Capacitance COUT cylinder In Seek mode lowers Write current on Inner tracks In Read/Write mode, determines direction head Will 38 o FoD step In Seek mode A fault reset pulse IS Issued at the beginning of each Read or Write command prior to the occurrence of the Head Load signal When 1 (high) Seek mode RW I Read Write . 39 SEEK Seek o FDC selected and when 0 (low) Read/Wnte mode selected 40 Vee +5V CC power. Note: CD Disabled when CS = 1 6-2 AC Characteristics f.LPD765A/7265 T.= -10"Cto+70"Cj Vee = + 5V ± 5% unless otherwise specified Limits Timing Waveforms Test Parameter Symbol Min TypCD Max Unit Conditions 120 125 500 Processor Read Operation 125 8"FDD Clock Period "CY ns 250 5'/4" FDD Ao. CS, DACK Clock Active (High) <1>0 40 125 3 1/2" Sony RD =2f Clock Rise Time "r 20 ns Clock Fall Time "I 20 ns '0' Data Ag, CS, DACK Se'up Time 'oRO j 'A_ ns Ao. es, DACK Hold Time 'NT from RD t '_A ns RDWidth 250 Data Access Time from RD j ''_-0- 200 ns C L =100pf Processor Write Operation DB to Float Delay Time fromRD i 1.0, es, DACK Setup Time '0' 20 100 ns CL = 100 pF 10WR j 'AW ns "0. es, OACK Hold Time WR 10WR 1 IWA ns WRWldlh Iww 250 ns Data Setup Time to WR t 150 ns Data low Data Hold Time from WR t ns INT Delay Time from RD i ,_,'wo 500 ns INT 'w'1- INT Delay Time from WR t IWI 500 ns ORO Cycle Time t Mey 13 eS DACK j ~ ORa j Delay lAM 200 ns Clock ORa 1 ~ DACK j Delay 'MA 200 ns I.j.lc),-125 ns DACKWldlh 1M CLK~ TC Width Reset Width ITe tRST 14 "'" "CY "CY (bR $0 _1' t= tRRDD\O\W getting set or reset is 12 f-LS. For this reason every time the Main Status Register IS read the CPU should wait 12....1:!:.§. Note: Either polarity data window IS valid twCy--j The maximum time from the trailing edge of the last RD In the result phase to when DB4 (FDC busy) goes low Terminal Count Reset is 12 f-Ls. Reset H ~ ~ST Data InlOut Out FOC and InlO Processor (010) Out Processor and Into FOC I L- Ready I : : RequeslforMaster I~ (ROM) I Not I I : I I I II I IReadyllllllll! Internal Registers \VA I u I I I I I I AD I I I I I I I I I II \ The f-LPD765A/f-LPD7265 contains two registers which may ~I be accessed by the main system processor: a Status Reg- I A I BI A IBI A I C I Die IDIBI A I ister and a Data Register The 8-bit Main Status Register contains the status information of the FDC, and may be Notes: [!] - Data register ready to be written mto by processor accessed at any time. The 8-blt Data Register (which actu- 00 - Data register not ready to be written Into by processor lID - Data register ready for next data byte to be read by processor ally consists of several registers m a stack with only one [QJ - Data register not ready to be read by processor register presented to the data bus at a time), stores data, commands, parameters, and FDD status information Data bytes are read out of, or written mto, the Data Register In order to program or obtain the results after a particular command. Only the Status Register may be read and used to facilitate the transfer of data between the processor and f-LPD765/f-LPD7265. The relation~ between the Status/Data registers and the signals RD, WR, and Ao is shown below. Ao RD WR Function oo , ~-.- 1 0 Read Mam Status Register -1iiOg~.I--·--~··-~·--- -----0--- -~~O------O- Illegal _" _______.._~----=== _~1___ ~ __ ~~-- _ _~~~ __ ~_ 1 0 .----~-- 1 6~4 j-lPD765A17265 Status Register Identification Status Register Identification (Cont.) Bit Bit Description Description No. Name Symbol No. Name Symbol Status Reglste, 0 Status Register 3 Dr = OandD6 = 0 0, Fault FT ThiS bit is used to Indicate the status of the Fault signal Normal Termination of command, (NT). Command was from the FDD. completed and properly executed. ThiS bit is used to mdlcate the status of the Write Pro- D, Write Protected WP tected signal from the FOO. ~=OandD6-1 Abnormal Termination of command, (AT). Execution of ThiS bit Is used to Indicate the status of the Ready signal D, command was started but was not successfully Ds Ready RY from the FOD. Interrupt Code IC completed. This bit Is used to Indicate the status of the Track 0 D, ~-1and06-0 D, Track 0 TO signal from the FDO. Invalid Command Issue, (IC~ Command which was issued was never started. This bit is used to Indicate the status of the lWo Side D, lWo Side TS signal from the FDD. 0 7 = 1andD6-1 ThiS bit IS used to indicate the status of the Side Select Abnormal Termination because during command execu- D, Head Address HD signal to the FOD tion the ready signal from FOD changed state. This bit IS used to indicate the status of the Umt Select 1 When the FOC completes the SEEK command, this flag D, Unit Select 1 US, Ds Seek End SE IS set to 1 (high). signal to the FOD. This bit IS used to mdicate the status of the Umt Select 0 Equipment If a fault signal is received from the FOD, or if the Track 0 D, Unit Select 0 US, signal to the FOD. D, Check EC signal fails to occur after 77 step pulses (Aecahbrate Command) then this flag is set. When the FDD is In the not-ready state and a read or D, Not Ready NR :m: ~~:!!::~~:: :::~~'t~~~:~ ~ :~i~~~er:~ge~ drive, then this flag is set. Notes: CD CRC = Cyclic Redundancy Check @ IDR= Internal Data Register ® Cyhnder (C) IS described more fully In the Command Symbol Descrlpton on page 7 This flag is used to Indicate the state of the head at D, Head Address HD Interrupt. D, Unit Select 1 US, These flags are used to indicate a Drive Umt Number !!II Unit Select 0 USg at Interrupt. Command Sequence Status Register t When the FOC tries to access a sector beyond the final The f-LPD765A/f-LPD7265IS capable of performing 15 differ- 0, End of Cylinder EN sector of a cylinder, this flag is set. ent commands. Each command is Initiated by a multlbyte D, Not used. This bit Is always 0 (low). transfer from the processor, and the result after execution When the FOC detects a CRCG) error In either the 10 field Ds Data Error DE or the data field, this flag is set. of the command may also be a multi byte transfer back to If the FOC Is not serviced by the host system during data the processor. Because of thiS multibyte Interchange of D, Overrun OR transfers within a certain time interval, this flag IS set. information between the f-LPD765A/f-LPD7265 and the D, Not used. ThiS bit always 0 (low). processor, it is convenient to consider each command ~~~~l~xce:~:ann:' :~~OF~~T:a~:~~~~~:::c~~ATA as consisting of three phases: specified In the IOR® Register, this flag is set. During execution of the READ 10 command, if the FOC Command The FDC receives all Information D, No Data ND cannot read the 10 field without an error, then this flag Phase: required to perform a particular opera- is set. During execution of the READ A cylinder command, If tion from the processor. the starting sector cannot be found, then thiS flag is set. Execution The FDC performs the operation It was During execution of WRITE DATA, WRITE DELETED D, Not Writable NW DATA or Format A cylinder command, If the FDC detects Phase. Instructed to do. a write protect signal from the FDO, then this flag is set. H the FOe cannot detect the 10 Address Mark after Result Phase. After completion of the operation, status encountering the Index hole twice, then this flag Is set. and other housekeeping information are D, Missing Mark Address MA H the FDC cannot detect the Data Address Mark or made available to the processor Deleted Data Address Mark, this flag IS set. Also at the same time, the MO (Missing Address Mark In data field) of Status Register 2 is set. FollOWing are shown the required preset parameters and Status Register 2 results for each command. Most commands require 9 com- 0, Not used. This bit Is always 0 (low). mand bytes and return 7 bytes dUring the result phase The D, Control Mark CM ~~~!'~Dce;~~~t!'nfe:~: =~r~1~:~:;:I~;~~:re~ "W'. to the left of each byte Indicates a command phase Data Address Mark, this flag IS set. byte to be written, and an "R" Indicates a result byte Data Error in DD If the FDC detects a CRC error In the data field then thiS Ds Data Field flag Is set. This bit is related to the NO bit, and when the contents of D, Wrong Cylinder WC C@ on the medium is different from that stored in the lOR. this flag is set. During execution of the SCAN command, if the condition D, SCan Equal Hit SH of "equal" is satisfied. this flag is set. During execution of the SCAN command, if the FDC can- D, Scan Not Satisfied SN not find a sector on the cylinder which meets the condition, then thiS flag is set. This bit Is related to the NO bit, and when the contents of D, Bad Cylinder BC C on the medium Is different from that stored in the lOR and the contents of e is FF(16)' then this flag is set. Missing When data is read from the medium, if the FOC cannot D, Address Mark MD find a Data Address Mark or Deleted Data Address Mark, In Data Field then this flag is set. 6-5 I-LPD765A/7265 - Instruction Set CD ® Instruction Set Ph••• RIW DahI.u. D7 DI DR DS Da DI D! DR Reed_. Remarks ....... Date Bus DZ DI DR DS Da D. D, DR WrIt. Deleted_ Remarks Command W MY MF SK 0 0 1 1 0 Command Codes Command W MT MF 0 0 1 0 0 1 Command Code. W X X X X X HD US, Us" @ W X X X X X HD US, Us" W C Sector 10 Information prior W C Sector 10 InfOrmation Prior W H to command execution. The W H to command execution. The W R I 4 bytes are commanded W R 4 byte. are commanded W N agaI1181 h _ , on Floppy W N against header on Floppy W EDT I Disk. W EDT DIll<. W GPL W GPL W DTL W DTL Execution Data transfer between the Execution Data transfer between the FDD and main system FDD and main system _uR R STO Status Information after _uR R STO Status Informadon after R STI command executton R ~-- STI command execution R STZ R STZ R C Sector 10 Information after R C Sector 10 Information after R H command execution R H I command executton R R R R R N R N _Del _ _ Reed A Track Command W MT MF SK 1 1 0 0 Command Codes Command W 0 MF SK 0 0 0 1 0 Command Codes W X X X X X HD US, US. W X X X X X HD US, Us" W C - - - - - Sector 10 InformatIOn prior W C Sector 10 Information prior W H to command execution. The W H I to command execution W R 4 bytes are commanded W R W N against header on FlOPPY W N W EDT Disk. W EDT W GPL W GPL W DTL W DTL execution Data transfer between the Execution Data transfer between the FDD and ma.n system FDO and main system FOC ReouR R STO Status InformaHon after reads all data fteids from R STI command execution index hole to EOT. R ST2 RaBuH R STO Status Information after R C Sector 10 InformatIOn after R STI command execution R H command execution R ST2 R R R C Sector 10 Information after R N R H command execution Write_ R R R N Command W MY MF 0 0 1 0 1 Command Codes W X X X X X HD US, Us" R_dID W C Sector 10 Information prior Command W 0 MF 0 0 1 0 1 0 Command Codas W H to command execution. The W X X X X X HD US, Us" W R 4 bytes are commanded Execution The first correct 10 W N against header on Floppy Information on the cylinder W EDT Disk. IS Blored 1ft Data Register. W GPL W DTL Result R STO Status Informal1on after Execution Data transfer between the R STI command execubon R STZ main system and Foo R C Sector 10 Information read _uR R STO Status Information after R H during Execution phase from R STI command execution R R Floppy Disk. R ST2 R N R C Sector 10 information after R H command execubon Format A Track R R Command W 0 MF 0 0 1 1 0 1 Command Codes R N W X X X X X HD US, Us" W N Bytes/Sector W SC SactorSlTrack Notes: mand. The FDC compares the PCN (Present Cylinder R), and the scan operation IS continued. The scan opera- Number) which is the current head position with the NCN tion continues until one of the following conditions occur: (New Cylinder Number), and if there is a difference, per- the conditions for scan are met (equal, low, or high), the last forms the following operations: sector on the track IS reached (EaT), or the terminal count PCN < NCN: Direction Signal to FDD set to a 1 (high), and signal is received. Step Pulses are issued. (Step In) If the conditions for scan are met, then the FDC sets the PCN > NCN: Direction Signal to FDD set to a 0 (low), and SH (Scan Hit) flag of Status Register 2 to a 1 (high) and Step Pulses are Issued. (Step Out) terminates the Scan command. If the conditions for scan The rate at which Step pulses are Issued is controlled by are not met between the starting sector (as specified by R) SRT (Stepping Rate Time) in the Specify command. After and the last sector on the cylinder (EaT), then the FDC each Step pulse is issued NCN is compared against PCN, sets the SN (Scan Not Satisfied) flag of Status Register 2 to and when NCN = PCN, the SE (Seek End) flag is set in a 1 (high) and terminates the Scan command. The receipt Status Register 0 to a 1 (high), and the command is termi- of a Terminal Count signal from the processor or DMA con- nated. At this point FDC interrupt goes high. Bits DoB-D3B troller during the scan operation will cause the FDC to in the Main Status Register are set during the Seek opera- complete the comparison of the particular byte which IS In tion and are cleared by the Sense Interrupt Status process and then to terminate the command. Table 2 command. 6 -11 fJ-PD765A17265 During the command phase of the Seek operation the Sense Interrupt Status FDC is in the FDC Busy state, but during the execution An Interrupt signal is generated by the FDC for one of the phase it is in the Nonbusy state. While the FDC is in the following reasons: Nonbusy state, another Seek command may be issued, 1. Upon entering the Result phase of: and in this manner parallel Seek operations may be done a. Read Data command on up to four drives at once. No other command can be b. Read A Track command issued for as long as the FDC is in the process of sending c. Read ID command step pulses to any drive. d. Read Deleted Data command If an FDD is in a Not Ready state at the beginning of the e. Write Data command command execution phase or during the Seek operation, f. Format A Cylinder command then the NR (Not Ready) flag is set in Status Register 0 to a g. Write Deleted Data command 1 (high), and the command is terminated after bits 7 and 6 h. Scan commands of Status Register 0 are set to 0 and 1 respectively. 2. Ready Line of FDD changes state If the time to write three bytes of Seek command exceeds 3. End of Seek or Recalibrate command 150"",s, the timing between the first two step pulses may 4. During Execution phase in the non-DMA mode be shorter than set in the Specify command by as much Interrupts caused by reasons 1 and 4 above occur during as 1ms. normal command operations and are easily discernible by Recalibrate the processor. During an execution phase in non-DMA The function of this command is to retract the Read/Write mode, DB5 in the Main Status Register IS high. Upon enter- head within the FDD to the Track 0 position. The FDC ing the Result phase thiS bit gets cleared. Reasons 1 and 4 clears the contents of the PCN counter and checks the do not require Sense Interrupt Status commands. The inter- status of the Track 0 signal from the FDD. As long as the rupt is cleared by Reading/Writing data to the FDC. Inter- Track 0 signal is low, the Direction Signal remains 0 (low) rupts caused by reasons 2 and 3 above may be uniquely and step pulses are issued. When the Track 0 signal goes identified with the aid of the Sense Interrupt Status com- high, the SE (Seek End) flag in Status Register 0 is set to mand. This command when issued resets the Interrupt a 1 (high) and the command is terminated. If the Track 0 signal and via bits 5, 6, and 7 of Status Register 0 identifies signal is still low after 77 step pulses have been issued, the the cause of the interrupt. FDC sets the SE (Seek End) and EC (Equipment Check) Seek End Interrupt Code flags of Status Register 0 to both 1s (highs) and terminates BitS Bit 6 Bit 7 eaus. the command after bits 7 and 6 of Status Register 0 are set 1 Ready Line changed state, either polarity to 0 and 1 respectively. Normal Termination of Seek or Recalibrate command The ability to do overlap Recalibrate commands to multiple Abnormal Termination of Seek or Recall- brate command FDDs and the loss of the Ready signal, as described in the Seek command, also applies to the Recalibrate command. Table 3 If the Diskette has more than 77 tracks, then Recalibrate The Sense Interrupt Status command IS used In conJunc- command should be issued twice, in order to pOSition the tion with the Seek and Recalibrate commands which have Read/Write head to the Track O. no result phase. When the disk drive has reached the desired head position the f.LPD765A/f.LPD7265 Will set the Interrupt line true. The host CPU must then Issue a Sense Interrupt Status command to determine the actual cause of the interrupt, which could be Seek End or a change In ready status from one of the drives. A graphiC example is shown: Seek, Recalibrate, and Sense Interrupt Status : - - - Seek (or Recahbrate) Command ---~- Sense Interrupt Status Command - : I--- Command Phase ---t- Execution Phase _ f - . Command Phase -1- Result Phase-I INT : : r--, ~ : I I I I I I I A, ""1LJD un LJ ffi : I un. 1Jn. urn. I I @ r-~,-------, I WR~r--------'Ir---------- OIOtr--uu U J[ J[ ROM ~ c ~ .c ,g:5 ~§ ~ .;t VI ~£c::2 "~ 8E~~ ~ c z -cUe 0,. ~~E ~~~ '" z ~ g'm &£~s ~ "z OE3: VI"'''' "'" 6-12 fj-PD765A/7265 Specify Sense Drive Status The Specify command sets the initial values for each of the This command may be used by the processor whenever It three internal timers. The HUT (Head Unload Time) defines wishes to obtain the status of the FDDs. Status Register 3 the time from the end of the execution phase of one of the contains the Drive Status information stored internally in Read/Write commands to the head unload state. This timer FDG registers. is programmable from 16 to 240ms in increments of 16ms Invalid (01 = 16ms, 02 = 32ms ... OF '6 = 240ms). The SRT If an Invalid command is sent to the FDG (a command not (Step Rate Time) defines the time interval between adja- defined above), then the FDG Will terminate the command cent step pulses. This timer IS programmable from 1 to 16 after bits 7 and 6 of Status Register 0 are set to 1 and 0 ms in increments of 1 ms (F = 1ms, E = 2ms, D = 3ms, respectively. No interrupt is generated by the fLPD765A/ etc.). The HlT (Head load Time) defines the time between fLPD7265 dUring this condition. Bits 6 and 7 (DIO and. when the Head load signal goes high and the Read/Write ROM) in the Main Status Register are both high (1), Indicat- operation starts. This timer IS programmable from 2 to 254 ing to the processor that the fLPD765A/fLPD7265 IS In the ms in increments of 2 ms (01 = 2ms, 02 = 4ms, 03 = Result phase and the contents of Status Register 0 (STO) 6ms ... 7F = 254ms). must be read. When the processor reads Status Register The time intervals mentioned above are a direct function of o it will find an 80 hex, indicating an Invalid command the clock (GlK on pin 19). Times indicated above are for an was received. 8MHz clock; If the clock was reduced to 4MHz (minifloppy A Sense Interrupt Status command must be sent after application) then all time intervals are Increased by a factor a Seek or Recalibrate Interrupt, otherwise the FDG Will of 2. consider the next command to be an Invalid command. The choice of a DMA or non-DMA operation is made by In some applications the user may wish to use this com- the ND (Non-DMA) bit. When this bit IS high (ND = 1) the mand as a No-Op command to place the FDG in a standby Non-DMA mode IS selected, and when ND = 0 the DMA or No Operation state. mode IS selected. fLPD765A (FM Mode) GAP4a SYNC lAM GAP1 SYNC lOAM C S C GAP2 SYNC DATA AM DATA C GAP3 GAP 4b 40, 6, 26, 6, Y H E N R 11> 6, (j) R (j) FF 00 FC FF 00 FE L D C 0 C FF 00 FB or F8 C Index~ I------------Repeat NTlmes------------j fLPD7265 (FM Mode) ~--,-,---,----,-~--,-,--~m Index ~----------RepeatNTlmes------------I fLPD765A (MFM Mode) Index~ 1-------------RepeatNTlmes-------------l fLPD7265 (MFM Mode) lOAM DATA AM GAP1 SYNC C S C GAP2 SYNC C GAP3 GAP4 H E N DATA 32, 4E 12, 00 3, A1 I FE Y L D C 0 R C 22, 4E 12, 00 3, A1 I Fa F8 (j) R C (j) Index~ 1------------RepeatNTlmes--------------j 6-13 ,""PD765A17265 iLPD765A Format I GAP4a lAM GAP1 10 GAP2 DATA GAP3 10 (( IGAP4b ;,i----'---' I VcoSYNC WE t r------,\ r .,.PD7265 Index ~--------------------~{~ Format I GAP1 110 GAP2 DATA GAP3 10 GAP2 10 (( I GAP4 i ,/----'----' I VcoSVNC - -_ _--'\---<...1 _____~ WE I ,------"'"'\ , Note: Read Write Notea: It IS suggested that the user refer to the followmg applicatIon notes C/O r ~ r--- Logic Modem and Sync [ BIA Controls Bus DATA ... Control Logic .... I Cl BUS SBlts " ) K Internal Data and Control Bus I I m I ~ CS RD f--- r--- Channel B Serial . } Serial Data "'" WR i i ~ Data Serial Data } and Clocks Control DMAControl ,--< Interrupt Control Logic Logic Logic ¢ Modem and Sync Controls I I I I I f HAl HAO 4 DMA Request PRI PRO INT INTA Lines ~ a" ..... iii) ...J> o m ~PD7201A Programming the MPSC2 Register pOinter (Do - O2 ) The software operation of the MPSC2 is very straightfor- The register pointer specifies which register number is ward. Its consistent register organization and high-level accessed at the next control register write or status register command structure help minimize the number of opera- read. After a hardware or software reset the register pointer tions required to implement complex protocol designs. is set to zero. Therefore, the first control byte goes to con- Programming is further simplified by the MPSC2'S exten- trol register O. When the register pointer is set to a value sive interrupt and status reporting capabilities. This section other than zero the next control or status (C/O = 1) access is divided into two parts. is to the specified register, after which the pointer is reset to zero. Other commands can be freely combined in control The MPSC2 Regilters register 0 by setting the register pointer. The MPSC2 interfaces to the system software with a num- Commands (03 - 0 5 ) ber of control and status registers associated with each Commands commonly used during the operation of the channel. Commonly used commands and status bits are MPSC2 are grouped in control register O. They include accessed directly through control and status registers O. the following: Other functions are accessed indirectly with a register pointer to minimize the address space that must be dedi- Null (000): This command has no effect and is used only cated to the MPSC2. to set the register pointer or issue a CRC command. Send abort (001): When operating in the SOLC mode this Control Register command causes the MPSC2 to transmit the SOLC abort Control code, issuing 8 to 13 consecutive ones. Any data Register Function currently in the transmitter or the transmitter buffer is o Frequently used commands and register pointer control Interrupt control destroyed. After sending the abort the transmitter reverts Processor/bus Interface control to the idle phase (flags). When using the Tx byte count RacINV8r control mode enable (06 of CR1), and an underrun condition Mode control occurs, the f,LP07201A will automatically issue the send Transmitler control abort command. Sync/address character Reset external status interrupts (010): When the Sync character external/status change flag is set, the condition of bits 0 3 - 0 7 of status register 0 are latched to allow the cap- Status Register ture of the short pulses that may occur. The reset external/ Status status interrupts command reenables the latches so Raglster Function o Buffer and "external/status" status that new Interrupts may be sensed. Received character error and special condrtlon status Channel reset (011): This command has the same effect 2 (Channel Interrupt vector on a single channel as an external reset at pin 2. A channel Booly) reset command to channel A resets the internal interrupt prioritization logic. This does not occur when a channel Tx byte count register, low byte reset command is issued to channel B. All control Tx byte count register, hIgh byte registers associated with the channel to be reset must be reinitialized. After a channel reset, wait at least four system All control and status registers except CR2 are sepa- clock cycles before writing new commands or controls to rately maintained for each channel. Control and status that channel. registers 2 are linked with the overall operation of the Enable interrupt on next chliracter (100): When operat- MPSC2 and have different meanings when addressed ing the MPSC2 in an interrupt on first received character through different channels. mode this command may be issued at any time. This com- When initializing the MPSC2 control register 2A (and 2B ,mand must be issued at the end of a message to reenable if desired) should be programmed first to establish the the interrupt logic for the next received character (the first MPSC2 processor/bus interface mode. Each channel character of the next message). may then be programmed to be used separately, begin- ning with control register 4 to set the protocol mode for Reset pending transmitter interrupt/OMA request that channel. The remaining registers may then be (101): A pending transmitter buffer becoming empty inter- programmed in any order. rupt or DMA request can be reset without sending another character by issuing this command (typically at the end of a Control Register 0 message). A new transmitter buffer becoming empty inter- rupt or OMA request is not made until another character has been loaded and transferred to the transmitter shift register or when, If operating in the synchronous or SOLC modes, the first CRC character has been sent. Error Reset (110): This command resets a special receive condition interrupt. It also reenables the parity and overrun error latches that allow errors at the end of a message to be checked. 6-18 j.LPD7201A End of interrupt (111) (channel A only): Once an inter- Transmitter interrupt enable (01) rupt request has been issued by the MPSC2 all lower When this bit is set to one the MPSC2 issues an inter- priority internal and external interrupts in the daisychain are rupt when: held off to permit the current interrupt to be serviced while 1) The character currently in the transmitter buffer is allowing higher priority interrupts to occur. At some point in transferred to the shift register (transmitter buffer the interrupt service routine (generally at the end), the becoming empty) or, end of Interrupt command must be issued to channel A to 2) The transmitter enters the idle phase and begins reenable the dalsychain and allow any pending lower prl- transmitting sync or flag characters. onty internal interrupt requests to occur. The EOI command must be sent to channel A for Interrupts that occurred on 3) The Tx byte mode enable bit is set (CR1 - D6 = 1). either channel. The 7201A will automatically issue a Tx interrupt or DMA request when the transmitter becomes CRC Control Commands (Os - 0 7 ) enabled (CR5 - D3 = 1). The following commands control the operation of the CRC generator/checker logic. Condition affects vector (02 ) (programmed in channel B for both channels) Null (00): This command has no effect and is used when issuing other commands or setting the register pointer. When this bit is set to zero the fixed vector programmed in CR2B during MPSC2 initialization is returned in an Reset receiver CRC checker (01): This command resets interrupt acknowledge sequence. When this bit is set to the CRC checker to zero when the channel is in a syn- one the vector is modified to reflect the cOfldition that chronous mode and resets to all ones when in an SDLC caused the interrupt. mode. Reset transmitter CRC generator (10): This command Receiver interrupt mode (0 3 - 0 4 ) resets the CRC generator to zero when the channel is in This field controls how the MPSC2'S InterruptiDMA logic a synchronous mode and resets to all ories when in an handles the character received condition. SDLC mode. Receiver interrupts/OMA request disabled Reset idle/CRC latch (11): This command resets the idle/ (00) CRC latch so that when a transmitter underrun condition The MPSC2 does not issue an interrupt or a DMA request occurs (that is, the transmitter has no more characters to when a character has been received. send), the transmitter enters the CRC phase of operation m and begins to send the 16-blt CRC character calculated up InterruptlOMA on first received character to that point. The latch is then set so that If the underrun only (01) condition persists, Idle characters are sent follOWing the In thiS mode the MPSC2 issues an interrupt only for the first CRC. After a hardware or software reset the latch IS in character received after an enable interruptiDMA on first the set state. This latch is automatically reset after the character command (CRO) has been given. If the channel first character has been loaded into the Tx buffer in the is In a DMA mode, a DMA request is issued for each charac- SDLC mode. ter received including the first. This mode generally is used • whenever the MPSC2 is in a DMA or block transfer mode. Control Register 1 This wi II signal the processor that the beginning of an incoming message has been received. D, D, Tx Byte D, D, I D, D, D, Do Interrupt (and issue a OMA request) on all Walt Walton Receiver Condition Transmitter Ext/Status Count Function Mode Receiver Interrupt Affects Interrupt INT received characters (10) Enable Transmitter Mode Vector Enable Enable Enable In this mode an interrupt (and DMA request if the DMA mode IS selected) is issued whenever there IS a character D, D, D, D, D, present In the receiver buffer. A panty error is considered a speCial receive condition. Low Byte Interrupt (and issue a OMA request) on all received characters (11) D, D, D, D, D, ThiS mode is the same as the one above except that a parity error is not considered a speCial receive condition. High Byte The follOWing are considered special receive conditions: Receiver overrun factor External/status interrupt enable (00 ) Asynchronous framing error When this bit is set to one the MPSC2 Issues an interrupt Parity error (If specified) whenever any of the following conditions occur: SDLC end of message (final flag received) Transition of the DCD input pin Transition of the CTS input pin Wait on receiver/transmitter (05) Transition of the SYNC Input pin If the wait function is enabled for block mode transfers, Entering or leaving synchronous hunt phase, setting this bit to zero causes the MPSC2 to Issue a wait break detection or termination (WAIT output goes low) when the processor attempts to SDLC abort detection or termination write a character to the transmitter while the transmitter Idle/CRC latch becoming set (CRC being sent) buffer IS full. Setting this bit to one causes the MPSC2 to After ending flag is sent in the SDLC mode issue a wait when the processor attempts to read a charac- ter from the receiver while the receiver buffer IS empty. 6-19 f.LPD7201A Tx byte count mode enable (06 ) Interrupt vector mode (03 - 05) Each channel has a 16-bit Tx byte count register used for This field determines how the MPSC2 responds to an inter- automatic transmit termination. When this bit is set to one rupt acknowledge sequence from the processor. the next two consecutive command cycle writes will be to the byte count register. The first byte is loaded into the Interrupt Acknowledge Sequence Response Status Register 28 and Interrupt Vector lower 8 bits and the second to the upper 8 bits of the byte Bits Affected When Condition Affect. Vector count register. The byte count register holds the number of Is Enabled transfers to be performed by the transmitter. A byte counter o 0 0 Nonvectored is incremented each time a transfer is performed until the o Nonvectored value of the byte counter is equal to the value In the byte Nonvectored Illegal count register. When equal, interrupts or DMA requests will 8085 Master be stopped until the byte count enable bit is issued and a 8085 Slave new byte count is loaded Into the byte count register. If a 8086 transmit underrun occurs In the SDLC mode, and the byte 8085/8259A Slave count is not equal to the byte count register, the abort sequence will be. ~ent automatically. Rx INT mask (06 ) Also, when using the Tx byte count mode, a transmit inter- This option IS generally used in the DMA modes. Enabling rupt or DMA request will automatically become active after this bit Inhibits the interrupt from occurring when the inter- issuing the Tx enable command to CRS. ruptlDMA Request On First Received Character mode IS The Tx byte count mode can be cleared by either a channel selected. In other words, only a DMA request Will be gener- reset command or a hardware reset. ated when the first character is received. Wait function enable (07 ) Pin 10 SYNCB/RTSB select (07 ) Setting this bit to one enables the wait function which is Programming a zero into this bit selects RTSB as the described in CR1. function of pin 10. A one selects SYNCB as the function. Control Register 2 (Channel A) Control Register 2 (Channel B) 0, D. I 0, I D. I 0, I 0, I 0, I D. I 0, 0, 0, D. 0, 0, 0, D. Pm10 SVNCBlRTSB RxlNT Mask I Interrupt Vector Mode I P"o,,~ I DMAMode Select I Interrupt Vector OMA mode select (Do - 0 1 ) Interrupt vector (Do - 0 7 ) Setting this field determines whether channel A or B is When the MPSC2 is used In the vectored Interrupt mode used in a DMA mode (Le., data transfers are performed by the contents of thiS register is placed on the bus during the a DMA controller) or in a non-DMA mode where transfers appropriate portion of the interrupt acknowledge sequence. are performed by the processor in either a polled, interrupt, Its value IS modified if status affects vector is enabled. The or block transfer mode. The functions of some MPSC2 pins value of SR2B can be read at any time. This feature is are also controlled by this field. particularly useful In determining the cause of an Interrupt when using the MPSC2 in a nonvectored interrupt mode. DMA Mode Selection Channel Pin Function Control Register 3 D. DR A • 11 29 30 2fI31 32 0 0 Non·DMA Non-DMA WAITS DTRB DMA Non·DMA DRQTxA HAl PRI PRI PRO PRO DTRA WAlTA HAO DRQRxA 0, I D. 0, D. 0, 0, 0, Sync D. Enter Address Character DMA DMA DRQTxA HAl DRQRxB DRQTxB HAO DRQRxA Number of Received Auto Hunt Receiver Search Receiver Bits per Character Enables CRC Enable Mode Load Enable DMA DMA DRQTxA DTRB DRQRxB DRQTxB DTRA DRQRxA Phase Inhibit Priority (02 ) Receiver enable (Do) This bit selects the relative priorities of the various interrupt After the channel has been completely initialized, setting and DMA conditions according to the application this bit to one allows the receiver to begin operation. This requirements. bit may be set to zero at any time to disable the receiver. DMAllnterrupt Priorities Sync character load inhibit (01 ) Mode DMAPriorit, D2 Channel A Channel B Relation Interrupt Priority Relation In the character synchronous modes, this bit inhibits the SRxA. RxA > TxA > SRxB, RxB > transfer of sync characters to the receiver buffer thus per- 0 Txe > ExTA > ExTB forming a "sync-stnpping" operation. When using the INT INT 1 SRxA, RxA > SRxB, RxS > TxA > MPSC2'S CRC checking ability this feature should be used TxB > ExTA > ExTB SRxA, RxA > SRxS, RxB > TxB > only to strip leading sync characters preceding a message 0 DMA INT RxA>TxA ExTA> ExTB since the load inhibit does not exclude sync characters 1 RxA>TxA SRxA, RxA > SRxB, RxB > Txe > embedded in the message from the CRC calculation. Syn- ExTA> ExTB RxA > TxA > RxB > SAxA. RxA > SRxB, Rxe > ExTA > chronous protocols using other types of block checking 0 TxB ExTB such as checksum or LRC are free to strip embedded sync DMA DMA 1 RxA > RxB > TxA > SRxA. RxA > SRxB, RxB > ExTA > characters with this bit. Txe ExTB 6-20 ILPD7201A Address search mode (0 2 ) Parity even/odd (0 1) In the SOLC mode, setting this bit places the MPSC2 Programming a zero Into thiS bit when panty is enabled in an address search mode. Character assembly does causes the transmitted parity bit to take on the value not begin until the 8-blt character (secondary address required for odd parity. The received character is checked field) follOWing the starting flag of a message matches for odd parity. Conversely, a one in this bit signifies even either the address programmed Into CR6 or the global panty generation and checking. address 11111111. Number of stop bits per sync mode (0 2 - 0 3 ) Receiver CRC enable (0 3 ) This field specifies whether the channel is used In a ThiS bit enables and disables (1 = enable) the CRC synchronous (SOLC) or an asynchronous mode. In an checker In the COP mode allowing characters from the asynchronous mode this field also specifies the number of CRC calculation to be selectively included or excluded. bit times used as the stop bit length by the transmitter. The The MPSC2 features a one-character delay between the receiver always checks for one stop bit. receiver shift register and the CRC checker so that the Stop Bits enabling or disabling takes effect with the last character transferred from the shift register to the receiver buffer. Therefore, there is one full character time in which to read the character and decide whether or not It should _~~,!~~~~~~_1_~~~~_~~_es (1"~~~~~!~ _ _ _ _ _ ~~~~~~.~~~:.blt tlmes_(2 stop bl_~ _ _ _ _ _ _ _ _ be Included in the CRC calculation. In the SOLC mode, there IS no 8-blt delay. Sync mode (0 4 - 0 5 ) Enter hunt phase (04 ) When the stop bits/sync mode field is programmed for Although the MPSC2 receiver automatically enters the sync synchronous modes (0 2, 0 3 = 00), this field specifies hunt phase after a reset, there are times when reentry may the particular synchronous format to be used. This field be desired, such as when It has been determined that syn- is ignored in an asynchronous mode. chronization has been lost or, in an SOLC mode, to Ignore Synchronous Formats the current Incoming message. Writing a one into this bit at Sync Sync any time after initialization causes the MPSC2 to reenter Mode 1 Mode 2 the hunt phase. - --- _0_ _ ~ _ _ ~~I!,.!!!:nal s!~ronlzatlo~ char!cter (monosync) Auto enables (05 ) 0 _ _ _ _ _ ~ _____ __ 1~~~n~~~!~.~omz~tlOn5haracter (bisync) SDLC Setting this bit to one causes the OCO and CTS - , _.., - - - -1 External synchronization (SYNC pm becomes an Input) Inputs to act as enable inputs to the receiver and trans- mitter, respectively. Clock rate (0 6 - 0 7 ) This field specifies the relationship between the transmitter Number of received bits per character and receiver clock inputs (TxC, RxC) and the actual data (0 6 - 0 7 ) rates at TxO and RxO. When operating in a synchronous This field specifies the number of data bits assembled to mode a 1x clock rate must be specified. In asynchronous make each character. The value may be changed on the fly modes any of the rates may be specified, however, with a 1x while a character is being assembled and, if the change is clock rate the receiver cannot determine the center of the made before the new number of bits has been reached it start bit. In thiS mode, the sampling (rising) edge of affects that character. Otherwise the new specifications RxC must be externally synchronized with the data. take effect on the next character received. Clock Rates Received Bits per Character Clock Clock Bits per Character ---- Rate 1 07 Rate 2 D6 Clock Rate - - - _o. a . _ -a - _ . _ - - - _._._-_._-- Clock Rate - 1x Data Rate o - - - - - --c-----------=------ _ .----- ---i o 1 Clock Rate:::: 16x Data Rate -_----'.- _ . _ , , - - _ . _ - - - _ . _ - - - _ . _ . _ . - 1 0 Clock Rate - 32x Data Rate _ _----'._ _ _ _ _...:.1 ._ _ _ _ _ _ _ "s,_"__"._,, -,-,----,----- -- ----------~-~. ---------- _--'---_ _1 ________________ ~~_~_~~te =:,64X Data Rate _ __ Control Register 4 Control Register 5 0, I 0, I 0, I 0, I 0, I 0, I 0, 0, 0, 0, I 0, 0, 0, 0, 0, 0, I Numbe, of Slop Bits IPanty Panty Number of Transmitted Send Transmitter CRC - Transmitter Clock Rate I Sync Mode per Sync Mode Even/Odd Enable DTR Bits per Character Break Enable Polynomial Select RTS CRC Enable Parity enable (Do) Transmitter CRC enable (Do) Setting thiS bit to one adds an extra data bit containing A one or a zero enables or disables respectively, the CRC panty information to each transmitted character. Each generator calculation. The enable or disable does not take received character is expected to contain this extra bit effect until the next character IS transferred from the trans- and the receiver parity checker is enabled. mitter buffer to the shift register, thus allowing specific characters to be included or excluded from the CRC cal- culation. By setting or resetting this bit just before loading 6-21 j.LPD7201A the next character, it and subsequent characters are Transmitted Bits per Character included or excluded from the calculation. If this bit is zero Transmitted Transmitted Bits per Bits per when the transmitter becomes empty the MPSC2 goes to Character 1 Character the idle phase regardless of the state of the idle/CRC latch. Bits per Character 5 or less (see below) RTS (0,) In synchronous and SOLC modes setting this bit to one causes the RTS pin to go low while a zero causes it to go high. In an~nchronous mode setting this bit to zero does not cause RTS to go high until the transmitter is completely Normally each character is sent to the MPSC2 right- empty. This feature facilitates programming the MPSC2 for justified and the unused bits are ignored. However, when use with asynchronous modems. sending five bits or less the data should be formatted as shown below to inform the MPSC2 of the precise number . CRC polynomial select (0 2 ) of bits to be sent. . This bit selects the polynomial used by the transmitter and Transmitted Bits per Character for receiver for CRC generation and checking. A one selects the CRC-16 polynomial (X16 + X15 + X2 + 1). A zero 5 Characters or Less D7 D. D. Do D3 D2 D, D. Number of Bits per Characte' selects the CRC-CCITT polynomial (X16 + X12 + x5 + 1). 1 1 1 1 0 0 0 D. In an SOLC mode CRC-CCITT must be selected. Either 0, D. polynomial may be used in other synchronous modes. 0, 0, Do 03 0, 0, D. Transmitter enable (0 3 ) 0, 0, 0, .0, Do After a reset the transmitted data output (TxO) is held high (marking) and the transmitter is disabled until this bit is set. OTR (data terminal ready) (0 7 ) In an asynchronous mode TxO remains high until data is When this bit is one the OTR~ut is low (active). Con loaded for transmission. versely, when this bit is zero OTR is high. In synchronous and SOLC modes the MPSC2 automati- Control Register 6 cally enters the idle phase and sends the programmed sync or flag characters. 0, 0, 0, 0, D. When the transmitter is disabled in an asynchronous mode Sync Byte 1 any character currently being sent is completed before TxO returns to the marking state. Sync byte 1 (Do - 0 7 ) If the transmitter IS disabled during the data phase in a synchronous mode the current character is sent. TxO then Sync byte 1 is used in the following modes: goes high (marking). In an SOLC mode the current charac- Monosync 8-bit sync character transmitted ter is sent, but the marking line following is zero-inserted. during the idle phase That is, the line goes low for one bit time out of every five. Bisync Least significant (first) 8 bits of The transmitter should never be disabled during the SOLC the 16-bit transmit and receive data phase unless a reset is to follow immediately. In either sync character case, any character in the buffer register is held. External Sync Sync character transmitted during the Disabling the transmitter during the CRC phase causes the idle phase remainder of the CRC character to be bit-substituted with SOLC Secondary address value matched to the sync (or flag). The total number of bits transmitted is secondary address field of the SOLC correct and TxO.goes high after they are sent. frame when the MPSC2 is in the If the transmitter is disabled during the idle phase the address search mode remainder of the sync (flag) character is sent. TxO then Control Register 7 goes high. 0, 0, 0, 0, 0, Do Send break (04) Sync Byte 2 Setting this bit to one immediately forces the transmitter output (TxO) low (spacing). This function overrides the normal transmitter output and destroys any data being Sync byte 2 (Do - 0'7) transmitted although the transmitter is still in operation. Sync byte 2 is used in the following modes: Resetting this bit releases the transmitter output. Monosync 8-bit sync character matched by the receiver Transmitted bits per character (05 - 0 6 ) Bisync Most significant (second) 8 bits of the 16- This field controls the number of data bits transmitted in bit transmit and receive sync characters each character. The number of bits per character may be changed by rewriting this field just before the first character SOLC The flag character, 01111110, must be is loaded to use the new specification. programmed into control register 7 for flag matching by the MPSC2 receiver 6-22 /J-PD7201A Status Register 0 External synchronization mode: Sync status operates in the same manner as an asynchronous mode. The MPSC2'S D, D, D; D, D, D, D, Do receiver synchronization logic is also tied to the sync status Transmitter Received bit in an external synchronization mode and a low-to-high Breakl Sync Interrupt Abort Idle/CRe CTS Status DCD Buffer Pending Character transition (SYNC input going low) informs the receiver that Empty Available synchronization has been achieved and character assem- bly begins. Received character available (0 0 ) A low-to-high transition on the SYNC input indicates When this bit is set it indicates that one or more charac- that synchronization has been lost and is reflected both ters in the receiver buffer is available for the processor to in the sync status becoming zero and the generation of read. Once all the available characters have been read the an external/status interrupt. The receiver remains in the MPSC2 resets this bit until a new character IS received. receive data phase until the enter hunt phase bit in Interrupt pending (01 - channel A only) control register 3 is set. The interrupt pending bit is used with the interrupt vector Monosync, bisync, SOLC modes: In these modes, sync register (status register 2) to make it easier to determine status indicates whether the MPSC2 receiver is in the sync the MPSC2'S interrupt status, particularly in a nonvectored hunt or receive data phase of operation. A zero indicates interrupt mode where the processor must poll each device that the MPSC2 is in the receive data phase and a one to determine the interrupt source. In this mode inte~t indicates that the MPSC2 is in the sync hunt phase (as after pending is set when status register 2B is read, the PRI a reset or a setting of the enter sync hunt phase bit). As in input is active (low), and the MPSC2 is requesting inter- the other modes a transition on this bit causes an external/ rupt service. status interrupt to be issued. It should be noted that enter- The status registers of both channels need not be analyzed ing a sync hunt phase after either a reset or when to determine if an interrupt is pending. If the status affects programmed causes an external/status interrupt request vector is enabled and the interrupt pending is set the vector which may be cleared immediately with a reset external/ read from SR2 contains valid condition information. status interrupt command. In a vectored interrupt mode interrupt pending is set during CTS (05): This bit reflects the inverted state of the the interrupt acknowledge cycle (on the leading edge of the CTS input. When CTS is low, the CTS status bit is high. second INTA pulse) when the MPSC2 is the highest priority Any transition on this bit causes an external/status inter- device requesting interrupt service (PRI is active). In either rupt request. mode if there are no other pending interrupt requests inter- Idle/CRC (06 ) (Tx underrun/EOM): This bit indicates the II rupt pending is reset when the end of the interrupt state of the idle/CRC latch used in the synchronous and command is issued. SOLC modes. After a hardware reset this bit is set to one, indicating that the transmitter is completely empty. When Transmitter buffer empty (0 2 ) the M PSC2 enters idle phase it automatically transmits This bit is set whenever the transmitter buffer is empty sync or flag characters. except during the transmission of CRC. (The MPSC2 uses In the SOLC mode the MPSC2 automatically resets thiS • the buffer to facilitate this function.) After a reset the buffer latch after the first byte of a frame is written to the Tx buffer. is considered empty and transmit buffer empty is set. When the transmitter IS completely empty, the MPSC2 External/status flags (0 3 -0 7 ) sends the 16-blt CRC character and sets the latch again. The following status bits reflect the state of the various con- An external/status interrupt IS Issued when the latch is set, ditions that cause an external/status interrupt. The MPSC2 Indicating that CRC IS being sent. No Interrupt is Issued latches all external/status bits whenever a change occurs when the latch is reset. that would cause an external/status interrupt (regardless of Break/abort (07 ): In the asynchronous mode this bit Indi- whether thiS interrupt is enabled). This allows transient cates the detection of a break sequence (a null character status changes on these lines to be captured with relaxed plus framing error that occurs when the RxO input is held software timing requirements. low, spacing, for more than one character time). Break/ When the MPSC2 is operated in an interrupt-driven mode abort is reset when RxO returns high (marking). for external/status interrupts, status register 0 should be In the SOLC mode, Break/abort indicates the detection of read when this interrupt occurs and a reset external/status an abort sequence when seven or more ones are received interrupt command issued to reenable the interrupt and in sequence. It is reset when a zero is received. the latches. To poll these bits without interrupts, the reset external/status interrupt command can be issued to first Any transition of the break/abort bit causes an external/ update the status to reflect the current values. status interrupt. OCO (03 ): This bit reflects the inverted state of the Status Register 1 OCO input. When OCO is low the OCO status bit is high. Any transition on this bit causes an external/status inter- rupt request. D, D, D; D, D, I D, I D, D, CRC Sync status (04 ): The meaning of this bit depends on the End of Framing Overrun Panty SOLe ReSidue Code All Sent SOLe Frame Error Error operating mode of the M PSC2. Error Asynchronous mode: Sync status reflects the inverted state of the SYNC input. When SYNC is low, sync status is high. Any transition on this bit causes an external/status interrupt request. 6-23 fJ-PD7201A All sent (Do) When any of these conditions occur and interrupts are This bit is set when the transmitter is empty and reset when enabled, the MPSC2 issues an interrupt request. In addi- a character is present in the transmitter buffer or shift regis- tion, if a condition affects vector mode is enabled, the ter. This feature simplifies the modem control software vector generated (and the contents of SR2B for nonvec- routines. In the bit synchronous mode, this bit will be set tored interrupts) is different from that of a received when the ending flag pattern is sent. character available condition. Thus, it is not necessary to analyze SR1 with each character to determine if an error SOLC residue code (01 - 0 3 ) has occurred. Since the data portion of an SOLC message can consist of As a further convenience, the parity error and receiver over- any number of bits and not necessarily an integral number run error flags are latched. That is, once one of these errors of characters, the MPSC2 features special logic to deter- occurs, the flag remains set for all subsequent characters mine and report when the end of frame flag has been until reset by the error reset command. With this facility SR1 received, the boundary between the data field and the CRC need only be read at the end of a message to determine if character In the last few data characters that were just read. either of these errors occurred anywhere in the message. When the end of frame condition is indicated, that is, status The other flags are not latched and follow each character register 1 0 7 = 1 and special receive condition interrupt (if available in the receiver buffer. enabled), the last bits of the CRC character are in the Parity error (04 ): This bit is set and latched when parity receiver buffer. The residue code for the frame is valid in the is enabled and the received parity bit does not match the status register 1 byte associated with that data character. sense (odd or even) calculated from the data bits. (SR1 tracks the received data in its own buffer.) Receiver overrun error (05): This error occurs and is The meaning of the residue code depends upon the num- latched when the receiver buffer already contains three ber of bits per character specified for the receiver. The characters and a fourth character is completely received, previous character refers to the last character read before overwriting the last character in the buffer. the end of frame, and so forth. CRClframing error (06 ): In the asynchronous mode a framing error is flagged (but not latched) when no stop bit is Residue Codes detected at the end of a character (i.e., RxO is low one bit 8 Bits per Character time after the center of the last data or parity bit). When this D~ D. D, Previous Character 2nd Previous Character CCCCCCCC CCCCCDDD condition occurs, the MPSC2 waits an additional one-half 1 0 0 0 CCCCCCCC CCCCDDDD bit time before sampling again so that the framing error is 1 CCCCCCCC CCCDDDDD not interpreted as a new start bit. 0 0 CCCCCCCC CCDDDDDD In the synchronous and SOLC modes this bit indicates the 1 CCCCCCCC CDDDDOOD result of the comparison between the current CRC result 0 1 CCCCCCCC DDDDDODD (no residue) and the appropriate check value and is usually set to one 1 CCCCCCCD DDDDDDDD since a message rarely indicates a correct CRC result until 0 0 0 CCCCCCDD DDDDDODD correctly completed with the CRC check character. Note 7 Bits per Character that a CRC error does not result in a special receive condi- D. D. D, Previous Character 2nd Previous Character tion interrupt. 1 0 0 CCCCCCC CCCCCDD CCCCCCC CCCCDDD End of SOLC frame (EOF) (0 7 ): This status bit is used 1 CCCCCCC CCCDDDD only in the bit synchronous mode to indicate that the end of 0 0 1 CCCCCCC CCDODDD frame flag has been received and that the CRC error flag 0 1 CCCCCCC CDDDDDD and residue code are valid. This flag can be reset at any CCCCCCC DDDDDDD (no residue) time by issuing an error reset command. The MPSC2 also CCCCCCD DDDDDDD automatically resets this bit when the first character of the 6 Bits per Character next message frame is sent. D. D. D, Previous Character 2nd Previous Character 1 0 0 CCCCCC CCCCCD Status Register 28 0 CCCCCC CCCCDD 1 CCCCCC CCCDDD D, D, D, D, D, D, D, D, 0 0 CCCCCC CCODDD CCCCCC CDDDDD Interrupt Vector 0 0 CCCCCC DDDDDD (no ,esldue) 5 Bits per Character Interrupt vector (Do - 0 7 - channel B only) 2nd Previous Character 3rd Previous Character Reading status register 2B returns the interrupt vector that 1 0 0 c c cceo0 0 0 0 (no residue) CCCCD DDDDD is programmed into control register 2B. If a condition affects CCCDD DDDDD vector mode is enabled the value of the vector is modified 1 CCDDD DDDDD _ _ _ _ _ _ _ _ 0 _ _ _ _ _ _ _ _ _ _ _ 0 _ _ _ _ __ as shown in the following table. o 0 0 CDDDD DDDDD Special receive condition flags The status bits described below - parity error (if parity as a special receive condition is enabled), receiver overrun error, CRC/framing error, and end of SOLC frame - all represent special receive conditions. 6-24 j.LPD7201A Condition Affects Vector Modifications Read Register Bit Functions Interrupt 8085 Modes D. D3 D2 Pending (SRO, Dt Channel AI 8086 Modes D2 D, Do Condition Read Register 0 No Interrupt pending o o 0 0 0 Channel B transmitter buffer empty Channel B externallstatus change I 0, I 0, I 0, I 0, I 0, I 0, I 0, I Do I o o 1 1 o o 0 1 Channel B received character available Channel B special receive condition Channel A transmitter buffer empty Channel A external/status change IIU Ax Character Available INT Pendmg (Channel A Only) b~guffer Empty } Sync/Hunt Used with Channel A received character available CTS ExternallStatus Tx Underrun/EOM Interrupt Mode Channel A special receive condition Break/Abort As can be seen code 111 can mean either channel A spe- cial receive condition or no interrupt pending. They can be Read Register 1(j) easily distinguished by examining the interrupt pending bit (D, ) of status register 0, channel A. In a nonvectored inter- I I I I I I I I I 0, 0, 0, 0, 0, 0, 0, Do rupt mode the vector register must be read first for the interrupt pending to be valid. L All Sent - Used with External/Status Interrupt Mode I·Fleld I-Fie Id Bltsm Bits Second Previ ous PrevIous 1 I 0 Byt 0 Byte 3 0 0 t 0 0 4 1 1 0 0 5 Residue Data for 0 0 1 0 6 Eight Rx Bits per 1 0 1 0 7 Character 0 1 1 0 8 Programmed 1 t 1 t 8 0 0 0 2 8 L - Parity Error } - Ax Overrun Error CRe/Frammg Error End of Frame (SOLC) Read Register 2 VO I, I "---V3 --=~~ Interrupt ! ·-----------·-V4 Vector L~ -=----=== -=-=--= ~~ --- - - - - - - - - - - - - - - - - - V 7 Notes: CD Used with speCial receive condition mode ® Variable If Status Affects Vector IS programmed Write Register Bit Functions Write Register 0 Register 0 Register 1 Register 2 POinter for Register 3 the Selection of Register 4 a Read/Wnte Register 5 Register Register 6 Register 7 Null Code Send Abort (SOLC) Reset EXT/Status Interrupts Channel Reset Enable INT on Next Rx Character Reset Tx INT/OMA Pending Error Reset End of Interrupt (EOI- Channel A only) Null Code Reset Rx CRC Checker Reset Tx CRC Generator Reset Tx Underrun/EOM Latch 6-25 jJ.PD7201A Write Register Bit Functions (Cont.) Write Register 1 Write Register 3 EXT INT Enable Rx Enable Tx INT Enable Sync Character Load Inhibit L-_ _ _ _ Status Affects Vector L_~===== Address Search Mode (SOLe) Rx eRe Enable (Channel B only) Rx tNT and DMA Disable } L_~======== Auto Enter Hunt Phase Enables Rx INT on First Character INT on All Rx Characters OR Interrupt on Rx5 Bits/Character (Panty Affects Vector) Special Receive Rx7 Bits/Character tNT on All Rx Characters Condition Rx6 Bits/Character (Parity Does Not Affect RxB Bits/Character Vector) Walt on RecelverlTransmltter Tx Byte Count Enable Write Register 4 '-------Walt Enable Write Register 2 (Channel B) Parity Enable o Parity"" Odd 1 Parity = Even Sync Modes Enable 1 Stop BltlCharaeter V1 11h Stop Bits/Character VO } L~====V2 2 Stop Bits/Character V3 Interrupt 8-blt Sync Character L~======~ Vector SOLC 16-blt Sync Character L-=========== ~ V5 Mode (01111110 Flag) External Sync Mode Xl Clock Mode X16 Clock Mode X32 Clock Mode Tx Byte Count Register X64 Clock Mode Write Register 5 s.tO -Bill W~BII2 Blt5 Blt3 8114 Low Byte Tx CAe Enable RTS Bit 6 '-----------------BII7 l_~=~====CRC-16/CRC-CCITT Tx Enable Send Break TxS Bits (or LessVCharacter Tx7 BIts/Character Tx Byte Count Register Tx6 BIts/Character Tx8 BIts/Character OTR I~I~I~I~I~I~I~I~I Write Register 6 [I Lb Bit 8 8119 Blll0 81t11 High 81112 Byte 81113 81114 BII15 L ._ _ _ _ SyncB.tO } :~~~:::~ Write Register 2 (Channel A) l_1=~=k~B~~~~~5Sync Sync Bit 4 Bit 3 SyncSIIS Sync Bit 6 SyncBrt7 Address Field Also SDLC l Wrne Register 7 o 80th Channels Interrupt 1 Channel A DMA, Channe1 B INT ~ode=~g~:~::: g:::=:::~t;~o;~=. 8085 Master M O o Priority AxA '> TxA > RxB > TxB 1 Priority RxA > RxB > TxA > Txe _1=1::~~~~~~~~~sYnc8It } ~~~~:~: Sync B.t l o 1 8085 Slave Mode 1 0 8086/88 Mode 11 (j) 1 1 8085J8269A Slave Mode Sync Bit 12 Sync Bit 10 13 Interrupt VectoredlNonvectored Sync Bit 14 Receive Interrupt Mask Sync BI115 SYNCB RTSBPln10 Pin 10 Note; GPIB ~ 09 .... I~ I~ I~ ~ I- Il ::>....1 III ,....: III 1 III Lti o <{ Q III <{ o () lii "' l- V> l- V> co a Ii; a: a: a: V> co w o 0- a: "- 6-41 "PD7210 "P07210 MC344BAX4 GPIB ~ DATA A BUSA OIOB OATAB BUS B ~ 0107 ~ I 5 OATAC DATA 0 BUSC BUS 0 ~:g~ MINIMUM 8085 SYSTEM S/RA_O PEA-O WITH J,LPD7210 (CONT_) iill54 pATAA BUSA i5ii5j OATAB BUS B 0102 OATAC BUSC DiD, PATAO BUS 0 S/RA-O PEA-O T/RI ~.--!> T/R3 (EOIOE) S/RA 'Em OAT<'IA BUSA EOI S/RB mtv OATAB 'BUS B DAV t - - S/RC mml OATAC BUSC NRFD ' - - - S/Ro iiii5Ac' DATA 0 BUS 0 NDAC PEA_O T/R2 (CIC) m:r [1>- DATA S/RA A BUSA SRO L-..- S/RB ATIir OATAB BUS B ATN S/RC iml iJ!!'e' . OATAC S/Ro DATA 0 BUS C BUS D PEA-O REN IFC TT "H""L" "L" Note: In this example, high-speed data transfer cannot be made since the bus transceiver is of the open collector type (Set 82 = 0). 01 B 08 8B I 7 D7 B7 lii06 Os BS Brn5 Os B5 Iml4 04 SN75160 B4 DI03 D3 B3 i5i02 02 B2 om; 01 91 T/R3 (PE) PE TE "P0721 0 T/RI GPIB TE T/R2 (CIC) DC SRO SRO ATN ATN I EOI SN751S1 i5Ai7 OAV NFirn NRFO NOAC NOAC F IFC RE REN Note: In the case of low-speed data transfer (82 = 0), the T/R3 pin can be used as a TRIG output_ The PE input of SN75160 should be cleared to "0_" 6.-42 ",PD721 0 ABSOLUTE MAXIMUM (Ta = 25"C) RATINGS Parameter Symbol Test Conditions Ratings Unit Supply Voltage VCC -0.5 -+ 7.0 V Input Voltege VI -0.5 - +7.0 V Output Voltage Vo -0.5 - +7.0 V Operating Temperature T opt 0-+70 ·C Storage Temperatura Tstg -65 - +125 ·C DC CHARACTERISTICS (Ta= 0 - +70·C. VCc= 5V ± 10%) Limits Parameter Symbol Test Conditions Min Typ Max Unit Input Low Voltage VIL -0.5 +0.8 V Input High Voltage VIH +2.0 VCC+0.5 V Low Level 10L = 2mA +0.45 V VOL Output Voltage (4 mA : T/R1 Pin) High Level 10H =-400"A V VOH1 +2.4 Output Voltage (Except I NT) High Level 10H =-400"A +2.4 Output Voltage VOH2 V liNT Pin) 10H =-50"A +3.5 Input Leakage IlL VIN =OV- VCC -10 +10 "A Current Output Leakage -10 +10 10L VOUT = 0.45V - VCC "A Currant Supply Currant ICC +180 mA CAPACITANCE (Ta • 25"C. VCC = GND = OV) Limits Parameter Symbol Test Conditions Min. Typ. Max Unit Input Capacitence CIN f = 1 MHz 10 pF Output Capacitence COUT All Pins Except Pin Under 15 pF Test Tied to AC Ground 1/0 Capacitence ClIO 20 pF 6-43 IlPD7210 (T a = 0 - 70°C, VCC = 5V ±10%) AC CHARACTERISTICS Limlts Parameter Symbol Conditions ~in Max Unit PPSS -+ PPAS, ATN = True 260 ns EOI. -+T/R1t tEOTil PPSS -+ PPAS, ATN = True 155 ns EOlt-+T/R14 teoT12 PPAS -+ PPSS, ATN = False 200 ns ATN. -+ NOAC. tATNO AIOS-+ANRS, LIDS 155 ns ATN. -+T/RH tATT1 TACS + SPAS -+ TAOS, CIOS 155 ns ATN. -+T/R2. tATT2 TAGS + SPAS -+ TAOS, CIOS 200 ns OAW -+ OMAREQ tOVRQ ACRS .... ACOS, LACS 600 ns OAV ..... NRFO. tOVNR1 ACRS-+ACOS 350 ns OAW -+ NOACt tOVN01 ACRS -+ ACOS .... AWNS 650 ns OAVt -+ NOAC. tOVN02 AWNS-+ANRS 350 ns . OAVt -+ NRFOt tOVNR2 AWNS -+ ANRS -+ ACRS 350 ns RD. -+ NRFOt tRNR ANRS-+ACRS 600 ns LACS, 01 reg. selected NOACt -+ OMAREat tNORQ STRS -+ SWNS -+ SGNS, TACS 400 ns N OACt -+ OA Vt STRS -+ SWNS -+ SGNS 360 ns tWOI SGNS -+ SOYS, BO 250 ns reg•• elected NRFOt -+ DAii. tNROV SOYS-+STRS, T1 = True 350 ns SGNS -+ SOYS -+ STRS twov BO reg. selected, R FO = True 830 ns NF = fc = 8 MHz, +tSYNC Tl (High Speed) TRIG tTRIG 50 ns Pulse Width 6-44 IlPD7210 AC CHARACTERISTICS (Ta - 0 -70"C. VCC = 5V ± 10%) (CONT.) Limits Parameter Symbol Test Conditions Min Max Unit RSO- RS2 85 ns Address Setup to AD tAR Cs 0 ns Address Hold from iU) tRA 0 ns RD Pulse Width tRR 170 ns Data Delay from Address tAD 250 ns Data Delay from R D ~ tRD 150 ns Output Float Delay from ROt tDF 0 80 ns RD Recovery Time tRV 250 ns Address Setup to WR tAW 0 ns Address Hold from WR tWA 0 ns WR Pulse Width tww 170 ns Data Setup to WR tow 150 ns Data Hold from WR twD 0 ns WR Recovery Time tRV 250 ns DMAREClI Delay from DMAACK tAKRQ 130 ns Data Delay from DMAACK tAKD 200 ns 6-45 "PD7210 TIMING WAVEFORMS CS, RS2-0 _ _ _'"'""'_ _ _.......tt---- tRR -----1"'1 11_ _ _ _ _ _ _ _'"'"\0 ro-----tRV - - - - i 07-0 \l tAKO OMAREQ l:::;;K,a~~_______________________________ CS, RS2-0 07-0 Package Outlines F. Information, _ Package Outline Section 7. Plastic, ,..PD7210C Ceramic, ,..PD7210D 7210D8-REV2-7-83-CAT 6-46 NEe fLPD7220/GDC fLPD7220-11 fLPD722G-2 GRAPHICS DISPLAY CONTROLLER Description Features The p,PD7220 Graphics Display Controller (GDC) is an D Microprocessor Interface intelligent microprocessor peripheral designed to be the DMA transfers with 8257- or 8237 -type controllers heart of a high-performance raster-scan computer graphics FIFO Command Buffering and character display system. Positioned between the D Display Memory Interface video display memory and the microprocessor bus, the Up to 256K words of 16 bits GDC performs the tasks needed to generate the raster Read-Modify-Write (RMW) Display Memory cycles display and manage the display memory. Processor soft- in under 800ns ware overhead is minimized by the GDC's sophisticated Dynamic RAM refresh cycles for nonaccessed memory instruction set, graphics figure drawing, and DMA transfer D Light Pen Input capabilities. The display memory supported by the GDC D External video synchronization mode can be configured in any number of formats and sizes up to D Graphics Mode 256K 16-bit words. The display can be zoomed and pan- Four megabit, bit-mapped display memory ned, while partitioned screen areas can be independently D Character Mode scrolled. With its light pen input and multiple controller 8K character code and attributes display memory capability, the GDC is ideal for advanced computer D Mixed Graphics and Character Mode graphics applications. 64K if all characters For a more detailed description of the GDC's operation, 1 megapixel if all graphics please refer to the GDC Design Manual. D Graphics Capabilities Figure drawing of lines, arC/Circles, rectangles, and System Considerations graphics characters in 800ns per pixel The GDC is designed to work with a general purpose Display 1024-by-1024 pixels with 4 planes of color m microprocessor to implement a high-performance or grayscale comlPuter graphics system. Through the division of labor Two independently scrollable areas established by the GDC's design, each of the system com- D Character Capabilities ponents is used to the maximum extent through six-level Auto cursor advance hierarchy of simultaneous tasks. At the lowest level, the Four independently scrollable areas GDC generates the basic video raster timing, including Programmable cursor height sync and blanking signals. Partitioned areas on the screen Characters per row: up to 256 and zooming are also accomplished at this level. At the Character rows per screen: up to 100 next level, video display memory is modified during the D Video Display Format figure drawing operations and data moves. Third, display Zoom magnification factors of 1 to 16 memory addresses are calculated pixel by pixel as drawing Panning progresses. Outside the GDC at the next level, preliminary Command-settable video raster parameters calculations are done to prepare drawing parameters. At D Technology the fifth level, the picture must be represented as a list of Single +5 volt, NMOS, 40-pin DIP graphics figures drawable by the GDC. Finally, this repre- D DMA Capability sentation must be manipulated, stored, and communi- Bytes or word transfers cated. By handling the first three levels, the GDC takes 4 clock periods per byte transferred care of the high-speed and repetitive tasks required to implement a graphics system. . Rev/4 6-47 /J-PD7220 Pin Configuration 2xWCLK V" lj!IIf A17 HSYNC A16 V/EXTSYNC AD15 BLANK AD14 ALE AD13 ..J!!lQ. AD12 DACK AD11 ~ AD10 AD9 AO ADS DBO AD7 DBl AD6 DB2 AD5 DB3 AD4 DB4 AD3 DB5 AD2 DB6 ADl DB7 ADO GND 0..:::""_ _ _- ' LPEN Pin Identification Character Mode Pin Utilization "In Pin No. Name Direction Function No. Symbol Direction Function 35·37 AD13to 15 OUT Line Counter Bits 0 to 2 Outputs 2xWCLK IN Clock Input 38 A16 OUT Line Counter Bit 3 Output iiiiii OUT Display Memory Read Input Flag 39 A17 OUT Cursor Output and Line Counter Bit 4- HSYNC OUT Horizontal Video Sync Output V/EXTSYNC IN/OUT Vertical Video Sync Output or External VSVNC Input BLANK OUT CRT Blanking Output Mixed Mode Pin Utilization ALE~ OUT Address Latch Enable Output "In ORO OUT DMA Request Output No. Name Direction Function ~ IN DMA Acknowledge Input l!Il" IN Read Strobe Input for Microprocessor Interface 35-37 AD13to15 INfOUT Address and Data Btts 13to 15 10 WR IN Write Strobe Input for Microprocessor Interface 38 A16 OUT Attribute Blink and Clear Line Count." Output 11 AO IN Address Select Input for Microprocessor Interface 39 A17 OUT Cursor and 8tt-Map Area- Flag Output 12-19 060107 IN/OUT Bidirectional Data Bus to Host Microprocessor 'Output 10 clock cycles after trailing edge of HSYNC. See figure for 20 GND Ground timing example. 21 LPEN IN Light Pen Detect Input 22·34 ADO to 12 IN/OUT Address and Data Lines to Display Memory Graphics Mode Pin Utilization 35-37 AD13to15 IN/OUT Utilization Varle. with Mode of Operation 38 A16 OUT Utilization Varies with Mode of Operation ..In 39 A17 OUT Utilization Varies with Mode of Operliltlon No. Name Direction Function 40 V" +5V± 10% 35-37 A013to 15 IN/OUT Address and Data 81ts 13to 15 38 A16 OUT Address Bit 16 Output 39 A17 OUT Address Bit 17 Output Block Diagram r-~D;'M~A~--~----______~~;':~::~~HSYNC Control V/EXT SYNC L-_ _ _- - ' - BLANK ALE i5iiN A-17 A-16 AD-15 A[)..14 Parameter AD-13 RAM 16x8 ' -_ _ _--''''''." AD-Oto 12 +5Vo--- LPEN GNDo-- 2 x WCLK 0---- 6-48 tLPD7220 GDC Components exhausted, the controller accesses the starting address and line count of the next display area from the parameter Microprocessor Bus Interface RAM. The system microprocessor, by modifying a display Control of the GOC by the system microprocessor is area starting address, can pan in any direction, indepen- achieved through an 8-bit bidirectional interface. The status dently of the other display areas. register is readable at any time. Access to the FIFO buffer Drawing Controller is coordinated through flags in the status register and oper- ates independently of the various internal GOC operations, The drawing processor contains the logic necessary to due to the separate data bus connecting the interface and calculate the addresses and positions of the pixels of the the FIFO buffer. various graphics figures. Given a starting point and the appropriate drawing parameters, the drawing controller Command Processor needs no further assistance to complete the figure drawing. The contents of the FIFO are interpreted by the command processor. The command bytes are decoded, and the Display Memory Controller succeeding parameters are distributed to their proper The display memory controller's tasks are numerous. Its destinations within the GOC. The command processor primary purpose is to multiplex the address and data infor- yields to the bus interface when both access the FIFO mation in and out of the display memory. It also contains simultaneously. the 16-bit logic unit used to modify the display memory contents during RMW cycles, the character mode line DMA Control counter, and the refresh counter for dynamic RAMs. The The OMA control circuitry in the GOC coordinates trans- memory controller apportions the video field time between fers over the microprocessor interface when using an exter- the various types of cycles. nal OMA controller. The OMA Request and Acknowledge handshake lines directly interface with a ILP08257 or Light Pen Deglitcher ILP08237 OMA controller, so that display data can be Only if two rising edges on the light pen input occur at the moved between the microprocessor memory and the dis- same point during successive video fields are the pulses play memory. accepted as a valid light pen detection. A status bit indi- cates to the system microprocessor that the light pen m Parameter RAM register contains a valid address. The 16-byte RAM stores parameters that are used repetitively during the display and drawing processes. In Programmer's View of GDC character mode, this RAM holds four sets of partitioned The GOC occupies two addresses on the system micro- display area parameters; in graphics mode, the drawing processor bus through Which the GOC's status register and pattern and graphics character take the place of two of the FIFO are accessed. Commands and parameters are writ- sets of parameters. ten into the GOC's FIFO and are differentiated based on address bit AD. The status register or the FIFO can be read Video Sync Generator as selected by the address line. Based on the clock input, the sync logic generates the raster timing signals for almost any interlaced, non- AO READ WRITE interlaced, or "repeat field" interlaced video format. The Status Register Parameter Into FIFO generator is programmed during the idle period following a reset. In video sync slave mode, it coordinates timing 0 I I I I I I I I I I I I I I I I I I between multiple GOCs. FIFDRead Command Into FifO Memory Timing Generator 1 I I I I I I I I I I I I I I I I I I The memory timing circuitry provides two memory cycle types: a two-clock period refresh cycle and the read- GDC Microprocessor Bus Interface Registers modify-write (RMW) cycle which takes four clock periods. The memory control signals needed to drive the display Commands to the GOC take the form of a command byte memory devices are easily generated from the GOC's ALE followed by a series of parameter bytes as needed for and OBIN outputs. specifying the details of the command. The command pro- cessor decodes the commands, unpacks the parameters, Zoom & Pan Controller loads them into the appropriate registers within the GOC, Based on the programmable zoom display factor and the and initiates the required operations. display area entries in the parameter RAM, the zoom and The commands available in the GOC can be organized into pan controller determines when to advance to the next five categories as described in the following section. memory address for display refresh and when to go on to the next display area. A horizontal zoom is produced by slowing down the display refresh rate While maintaining the video sync rates. Vertical zoom is accomplished by repeat- edly accessing each line a number of times equal to the horizontal repeat. Once the line count for a display area is 6-49 f-LPD7220 GDC Command Summary SR-7: Light Pen Detect When this bit is set to 1, the light pen address (LAD) Video Control Commands register contains a deglitched value that the system micro- 1. RESET Resets the GDC to its idle state. processor may read. This flag is reset after the 3-byte 2. SYNC Specifies the video display format. LAD is moved into the FIFO in response to the light pen 3. VSYNC Selects master or slave video synchro- read command. nization mode. 4. CCHAR Specifies the cursor and character row SR-6: Horizontal Blanking Active heights. A 1 value for this flag signifies that horizontal retrace blank- ing is currently underway. Display Control Commands 1. START Ends Idle mode and unblanks SR-S: Vertical Sync the display. Vertical retrace sync occurs while this flag is a 1. The 2. SCTRL Controls the blanking and unblanking of vertical sync flag coordinates display format modifying the display. commands to the blanked interval surrounding vertical 3. ZOOM Specifies zoom factors for the display sync. This eliminates display disturbances. and graphics characters writing. 4. CURS Sets the position of the cursor in SR-4: DMA Execute display memory. This bit is a 1 during DMA data transfers. 5. PRAM Defines starting addresses and lengths of the display areas and specifies the SR-3: Drawing in Progress eight bytes for the graphics character. While the GDC is drawing a graphics figure, this 6. PITCH Specifies the width of the X dimension status bit is a 1. of display memory. , SR-2: FIFO Empty Drawing Control Commands This bit and the FIFO Full flag coordinate system micro- 1. WDAT Writes data words or bytes into processor accesses with the GDC FIFO. When it is 1, the display memory. Empty flag ensures that all the commands and parameters 2. MASK Sets the mask register contents. previously sent to the GDC have been interpreted. 3. FIGS Specifies the parameters for the drawing controller. SR-1: FIFO Full 4. FIGD Draws the figure as specified above. A 1 at this flag indicates a full FIFO in the GDC. A 0 ensures 5. GCHRD Draws the graphics character into that there is room for at least one byte. This flag needs to display memory. be checked before each write into the GDC. Data Read Commands SR-O: Data Ready 1. RDAT: Reads data words or bytes from When this flag is a 1, it indicates that a byte is available to display memory. be read by the system microprocessor. This bit must be 2. CURD: Reads the cursor position. tested before each read operation. It drops to a 0 while the 3. LPRD: Reads the light pen address. data is transferred from the FIFO into the microprocessor DMA Control Commands interface data register. 1. DMAR Requests a DMA read transfer. 2. DMAW Requests a DMA write transfer. FIFO Operation & Command Protocol The first-in, first-out buffer (FIFO) in the GDC handles the Status Register Flags command dialogue with the system microprocessor. This flow of information uses a half-dupl~x technique, in which I I 1 1 7 '6 5 4 1 3 1 2 11 o I the single 16-location FIFO is used for both directions of data movement, one direction at a time. The FIFO's direc- tion is controlled by the system microprocessor through ~Data_y the GDC's command set. The host microprocessor coordi- I RFOFul1 1 RFOEmpty Drawfhg In Prog..... nates these transfers by checking the appropriate status register bits. [ 1 1 DMA Execute Vertical Sync Active Horizontal Blank Active The command protocol used by the GDC requires differen- tiation of the first byte of a command sequence from the Ugh! _ Datect succeeding bytes. The first byte contains the operation code and the remaining bytes carry parameters. Writing Status Register (SR) into the GDC causes the FIFO to store a flag value along- side the data byte to signify whether the byte was written into the command or the parameter address. The com- mand processor in the GDC tests this bit as it interprets the 6-50 fJ-PD7220 entries in the FIFO. dAD field to specify the dot address. The command pro- The receipt of a command byte by the command processor cessor converts this parameter into the one-of-16 format marks the end of any previous operation. The number of used in the Mask register for figure drawing. A full 16 bits parameter bytes supplied with a command is cut short by can be loaded into the Mask register using the MASK com- the receipt of the next command byte. A read operation mand. In addition to the character mode use mentioned from the GDC to the microprocessor can be terminated at above, the 16-bit MASK load is convenient in graphics any time by the next command. mode when all of the pixels of a word are to be set to the same value. The FIFO changes direction under the control of the sys- tem microprocessor. Commands written into the GDC The Logic Unit combines the data read from display al~ays put the FIFO into write mode if it wasn't in it already. memory, the Pattern Register, and the Mask register to If it was in read mode, any read data in the FIFO at the time generate the data to be written back into display memory. of the turnaround is lost. Commands which require a GDC Anyone of four operations can be selected: REPLACE, response, such as RDAT, CURD and LPRD, put the FIFO COMPLEMENT, CLEAR or SET. In each case, if the into read mode after the command is interpreted by the respective Mask bit is 0, that particular bit of the read data GDC's command processor. Any commands and param- is returned to memory unmodified. If the Mask bit is 1, the eters behind the read-evoking command are discarded modification is enabled. With the REPLACE operation, the when the FIFO direction is reversed. Pattern Register data simply takes the place of the read data. for modification enabled bits. For the other three oper- Read·Modify·Write Cycle ations, a 0 in the modify data allows the read data bit to be Data transfers between the GDC and the display memory returned to memory. A 1 value causes the specified opera- are accomplished using a read-mOdify-write (RMW) mem- tion to be performed in the bit positions with set Mask bits. ory cycle. The four clock period timing of the RMW cycle is used to: 1) output the address, 2) read data from the mem- Fig"re Drawing ory, 3) modify the data, and 4) write the modified data back The GDC draws graphics figures at the rate of one pixel into the initially selected memory address. This type of per read-mOdify-write (RMW) display memory cycle. These memory cycle is used for all interactions with display mem- cycles take four clock periods to complete. At a clock fre- ory including DMA transfers, except for the two clock quency of 5MHz, this is equal to 800ns. During the RMW period display and RAM refresh cycles. cycle the GDC simultaneously calculates the address and The operations performed during the modify portion of the position of the next pixel to be drawn. RMW cycle merit additional explanation. The circuitry in the The graphics figure drawing process depends on the GDC uses three main elements: the Pattern register, the display memory addressing structure. Groups of 16 hori- Mask register, and the 16-bit Logic Unit. The Pattern regis- zontally adjacent pixels form the 16-bit words which are ter holds the data pattern to be moved into memory. It is handled by the GDC. Display memory is organized as loaded by the WDAT parameters or, during drawing, from a linearly addressed space of these words. Addressing the parameter RAM. The Mask register contents determine of individual pixels is handled by the GDC's internal which bits of the read data will be modified. Based on the RMWlogic. contents of these registers, the Logic Unit performs the During the drawing process, the GDC finds the next pixel selected operations of REPLACE, COMPLEMENT, SET, or of the figure which is one of the eight nearest neighbors of CLEAR on the data read from display memory. the last pixel drawn. The GDC assigns each of these eight The Pattern register contents are ANDed with the Mask directions a number from 0 to 7, starting with straight down register contents to enable the actual modification of the and proceeding counterclockwise. memory read data, on a bit-by-bit basis. For graphics draw- ing, one bit at a time from the Pattern register is combined with the Mask. When ANDed with the bit set to a 1 in the Mask register, the proper single pixel is modified by the 000 ',,--1/' Logic Unit. For the next pixel in the figure, the next bit in the Pattern register is selected and the Mask register bit is O~O~O moved to identify the pixel's location within the word. The Execution word address pointer register, EAD, is also adjusted as required to address the word containing the next pixel. Drawing Directions ci6'o Figure drawing requires the proper. manipulation of the In character mode, all of the bits in the Pattern register are add tess and the pixel bit position according to the ,drawing used in parallel to form the respective bits of the modify direction to determine the next pixel of the figure. To move data word. Since the bits of the character code word are to the word above or below the current one, it is necessary used in parallel, unlike the one-bit-at-a-time graphics draw- to subtract or add the number of words per line in display ing process, this facility allows any or all of the bits in a memory. This parameter is called the pitch. To move to the memory word to be modified in one RMW memory cycle. word to either side, the Execute word address cursor, EAD, The Mask register must be loaded with 1s in the positions must be incremented or decremented as the dot address where modification is to be permitted. pointer bit reaches the LSB or the MSB of the Mask regis- The Mask register can be loaded in either of two ways. In ter. To move to a pixel within the same word, it is necessary graphics mode, the CURS command contains a four-bit to rotate the dot address pointer register to the right or left. 6-51 /LPD7220 The table below summarizes these operations for each word address when moving to the next word. It does not direction. follow a 45 degree diagonal path by pixels. D.. Operations to Addr••• the Next Pixel Drawing Parameters 000 EAD + P_EAD In preparation for graphics figure drawing, the GDC's Draw- EAD + P-EAD ing Processor needs the figure type, direction and drawing 001 dAD (MSB) = 1:EAD + 1 _ EAD dAD_lR parameters, the starting pixel address, and the pattern 010 dAD (MSB) = 1 :EAD + 1 - EAD dAD-lR from the microprocessor. Once these are in place within EAD - P ...... EAD 011 dAD (MSB) = 1:EAD + 1 _ EAD dAD-lR the GDC, the Figure Draw command, FIGD, initiates the 100 EAD - P-EAD drawing operation. From that point on, the system micro- 101 EAD - P ...... EAD processor is not involved in the drawing process. The GDC dAD (LSB) = 1:EAD - 1 ...... EAO dAD-AR Drawing Controller coordinates the RMW circuitry and 110 dAD (lSB) = 1:EAD - 1 _ EAD dAD-RR address registers to draw the specifed figure pixel by pixel. EAD + P-EAD 111 dAD (lSB) = 1 :EAD - 1 _ EAD dAD-RR The algorithms used by the processor for figure drawing Where P = PItch, LR == Left Rotate, RR = RIght Rotate, are designed to optimize its drawing speed. To this end, the EAD = Execute Word Address, and dAD = Dot Address stored In the Mask RegIster specific details about the figure to be drawn are reduced by the microprocessor to a form conducive to high-speed Whole word drawing is useful for filling areas in memory address calculations within the GDC. In this way the repeti- with a single value. By setting the Mask register to all 1s tive, pixel-by-pixel calculations can be done quickly, with the MASK command, both the LSB and MSB of the thereby minimizing the overall figure drawing time. The dAD will always be 1, so that the EAD value will be incre- table below summarizes the parameters. mented or decremented for each cycle regardless of direction. One RMW cycle will be able to effect all 16 bits of Drawing Type DC D D2 Dl DM the word for any drawing type. One bit in the Pattern regis- Initial Value· 8 -1 -1 ter is used per RMW cycle to write all the bits of the word Lme IAII 2I AD I-I"11 2(IADI-IAII) 21AOI to the same value. The next Pattern bit is used for the Arc" rsin

7 Ul1lJ1J CJ N\l Read Data W ·'mtlal values for the vanous parameters remam as each drawmg process ends ', " .~ ~ ~ r) 001 ~ -- 0 "CIrcles are drawn wIth 8 arcs, each of whIch span 45 b , so that Sm q, = 1/\/2 and Sm fl = 0 '''GraphIc characters are a specIal case of bIt-map area filling In whIch B and A ,.;;; 8 If A = 8 there IS no need to load D and D2 ~ L> ~ § " Where ' ,- ~ , 010 CJ -1 = all ONES value All numbers are shown 10 base 10 for convenIence The GOC accepts base 2 numbers (2s complement notation where apprOpnale) 011 V C'" ~ ;/ 0 ~ - = No parameter bytes sent to GOC for thiS parameter 6.1= The larger at 6.x or 6.y 6.0= The smaller at Ax or 6.y 100 v~ [ /J fUlJU1 [J f"N r= RadiUS of curvature, In pixels 4= Angle from major aXIs to end of the arc rb,.;;; 45" fI= Angle from major aXIs to start of the arc fI,.;;; 45° ~~0 : ~ i = Round up to the next higher IOteger ~ C /,- 101 1 = Round down to the next lower IOteger A= Number of pixels 10 the IOltially specified dIrection n V "J ~ f CJ ~ B= Number of pIxels 10 the directIon at nght angles to the 110 initIally specifIed direction W= Number of words to be accessed ';,) ~ ~ (> ~ C= Number of bytes to be transferred In the inItIally specIfIed 111 ~ dIrectIon (Two bytes per word If word transfer mode IS setected ) 0= Number of words to be accessed In the dlfectlon at fight angles to the InItially specified dIrectIon Note that during line drawing, the angle of the line may be DC = Drawmg count parameter whIch is one less than the num- ber of RMW cycles to be executed allywhere within the shaded octant defined by the DIR OM = Dots masked from draWIng dunng arc drawing value. Arc drawing starts in the direction initially specified t = Needed only for word reads by the DIR value and veers into an arc as drawing pro- ceeds. An arc may be up to 45 degrees in length. DMA transfers are done on word boundaries only, and follow the arrows indicated in the table to find successive word addresses. The slanted paths for DMA transfers indicate the GDC changing both the X and Y components of the 6-52 j.LPD7220 Graphics Character Drawing mapped graphics area or a coded character area, and Graphics characters can be drawn into display memory whether a 16-bit or a 32-bit wide display cycle is to be used pixel-by-pixel. The up to 8-by-8 character display is loaded for that area. into the GDC's parameter RAM by the system micropro- The other use for the PRAM contents is to supply the pat- cessor. Consequently, there are no limitations on the tern for figure drawing when in a bit-mapped graphics area character set used. By varying the drawing parameters and or mode. In these Situations, PRAM bytes 8 through 16 are drawing direction, numerous drawing options are available. reserved for this patterning information. For line, arc, and In area fill applications, a character can be written into dis- rectangle drawing (linear figures) locations 8 and 9 are play memory as many times as desired without reloading loaded into the Pattern Register to allow the GDC to draw the parameter RAM. dotted, dashed, etc. lines. For area filling and graphics bit- Once the parameter RAM has been loaded with up to eight mapped character drawing locations 8 through 15 are refer- graphics character bytes by the appropriate PRAM com- enced for the pattern or character to be drawn. mand, the GCHRD command can be used to draw the Details of the bit aSSignments are shown for the various bytes into display memory starting at the cursor. The zoom modes of operation. magnification factor for writing, set by the zoom command, controls the size of the character written into the display Character Mode memory in integer multiples of 1 through 16. The bit values in the PRAM are repeated horizontally and vertically the number of times specified by the zoom factor. The movement of these PRAM bytes to the display mem- ory is controlled by the parameters of the FIGS command. Based on the specified height and width of the area to be drawn, the parameter RAM is scanned to fill the required area. For an 8-by-8 graphics character, the first pixel drawn uses the LSB of RA-15, the second pixel uses bit 1 of RA-15, and 3 IWD11. 0 I" . LEN1, tl~g1:.~g~:::'"y'~~~~n1 ,-_. low significance fields so on, until the MSB of RA-15 is reached. The GDC jumps to the corresponding bit in RA-14 to con- tL___________ A Wide Display cycle width of two words per memory cycle ~~lim::I~h!:td:!~I? tinue the drawing. The progression then advances toward The display address counter the LSB of RA-14. This snaking sequence is continued for is then incremented by 2 for each display scan the other 6 PRAM bytes. This progression matches the cycle. Other memory cycle sequence of display memory addresses calculated by the types are not tnfluenced. drawing processor as shown above. If the area is narrower Display Partition 2 than 8 pixels wide, the snaking will advance to the next RA-4 starting address SAD2l I-- and PRAM byte before the MSB is reached. If the area is less length than 8 lines high, fewer bytes in the parameter RAM will be scanned. If the area is larger than 8 by 8, the GDC will 0 0 o I SAD2... repeat the contents of the parameter RAM in two dimen- LEN2l I0 0 0 0 sions, as required to fill the area with the 8-by-8 mozaic. (Fractions of the 8-by-8 pattern will be used to fill areas WD21 0 I LEN2 ... which are not multiples of 8 by 8.) Display PartHlon 3 RA-8 SAD3L I-- and starting address length Parameter RAM Contents: RAM Address RAOto15 0 0 o I SAD3H The parameters stored in the parameter RAM, PRAM, are 10 LEN3L I0 0 0 0 available for the GDC to refer to repeatedly during figure drawing and raster-scanning. In each mode of operation 11 wool 0 I LEN3H the values in the PRAM are interpreted by the GDC in a predetermined fashion. The host microprocessor must load the appropriate parameters into the proper PRAM loca- Display Partition 4 tions. PRAM loading command allows the host to write into RA-12 SAD4c I-- and starting address length any location of the PRAM and transfer as many bytes as desired. In this way any stored parameter byte or bytes 13 0 0 o I SAD4H may be changed without influencing the other bytes. 14 LEN4L I 0 0 0 0 The PRAM stores two types of information. For specifying the details of the display area partitions, blocks of four 15 WD41 0 I LEN4H bytes are used. The four parameters stored in each block include the starting address in display memory of each display area, and its length. In addition, there are two mode bits for each area which specify whether the area is a bit- 6-53 fJ-PD7220 Graphics and Mixed Graphics and Character Modes Command Bytes Summary AMI I .........._"--"_SA I L DiIpIIIy _ _ ' ...... DI_,......_ SADI. ====- ..........._ . . . . I _ ( _ a d d...., RESET SYNC VSYNC I I~ L .....,. 01 DiIpIIIy _Ion CCHAR WDI 1M , _ _ _ _ _LEN1 __• _ _ _ _ _'_ ==-~~~::hcount, 1n _ _,ollnd_on _ o or Image graph'" clll l_ -. _ .1n0 0 ond START g"",,"'_1hIo bft muot beO. SAII2c Whonl,IIIeDADIo_od ~_dloplaycy"" DilplllyPartlllon I-- OIartlng add.... end 1ong1h_lmogo _2 BCTRL ZOOM bft .. l n _ l SAD2. 6 LEN2, I 0 o I SAD2. CURS WD211M I LEN2. PRAM SA or OCHR8 Pa\1em 0116 bfto ._for PITCH ~": ~ : ~CHRT: IIgure drawing to pottern dotted, dashed, etc. lines : WDAT MDO flA.l0 OCHRe MASK 11 OCHR5 FIOS 12 OCHR4 0 .......... ch8t'8Clor bytes to be mowd Into dloplay f- morncry _ graphics 13 OCHN ch_drawlng FIOO 14 GCHR2 15 GCHRt / OCHRO o l' ROAT l' 1 I IITYPE MOD CURD l' I LPRO l' I o OMAR l' 1 I 1'1 TYPE MOD OMAW I 0 1 I TYPE 1 I MOD 6-54 f.LPD7220 Video Control Commands Horizontal Front Porch Constraints 1. If the display ZOOM function is used at other than 1X: Reset HFP ;;.. 2 Display Word Cycles (4 clock cycles). 2. If the GDC is used in the video sync Slave mode: RESET:I 0 • 0 o 0 0 I Blank the display, ent. kil. mod., and Initialize wHhIn lho GDC: HFP ;;.. 4 Display Word Cycles (8 clock cycles). 3. If the Light Pen is used: -FIFD - Command Processor HFP;;.. 6 Display Word Cycles (12 clock cycles). -Internal Counters 4. If interlace mode is used: HFP ;;.. 3 Display Word Cycles (6 clock cycles). This command can be executed at any time and does not modify any of the parameters already loaded into the GDC. Horizontal SYNC Constraints If followed by parameter bytes, this command also sets the 1. If Interlaced display mode is used: sync generator parameters as described below. Idle mode HS ;;.. 5 Display Word Cycles (10 clock cycles). is exited with the START command. Modes of Operation Bits C G Dlopl., Mod. _ 01 Operotlon lSIect bits P1 o 0 See below o 0 Mixed Graphics .. Character ActIve Display _ per o I Graphics Mode P2 line - 2 Must be ..... I 0 Character Mode number with bit 0:: 0 I I Invalid P3 I • _ntal Sync Width _ I '---------- _ ..I Sync WIdIh. low bois o 0 Nonlntarlaced ,'--._---_I o I Invalid 1 0 Interlaced Repeat Field for Character Displays P4 L--'---'-_H_FP '.....J1- vs... ........................_ L -.... Sync Width. high bUs 11 Interlaced . - Horizonllli Front Porch Width - I Repeat Field Framing: 2 Field Sequence with V2 line offset between otherwise identical fields. Interlaced Framing: 2 Field Sequence with V2 line P5 0 0 HBP I- Horizontal Bock Porch Width - I offset. Each field displays alter- P6 0 0 VFP I-- VertI. .1Fronl Porch WIdth nate lines. Noninterlaced Framing: 1 field brings all of the information PT AL, I -VI_ ActIve Display LI.... per to the screen. FIeld. low bits Total scanned lines in interlace mode is odd. The sum of VFP + VS + VBP + AL should equal one less than the desired odd number of lines. P8 VBP I-- AL, ActIve Display LInes per -I'r,-'--'I==:==~=:~~~_VIdSO L-..L-......... ~ Field. hogh bits VertI. .1Bock Porch Width D No RefrHh - STATIC RAM Refr.sh - Dynamic RAM In graphics mode, a word is a group of 16 pixels. In charac- ter mode, a word is one character code and its attributes, if Dynamic RAM refresh is important when high display zoom any. The number of active words per line must be an even factors or DMA are used in such a way that not all of the number from 2 to 256. An all-zero parameter value selects rows in the RAMs are regularly accessed during display a count equal to 2n where n = number of bits in the param- raster generation and for otherwise inactive display eter field for vertical parameters. All horizontal widths are memory. counted in display words. All vertical intervals are counted in lines. F Dr.wlna Time Window Drawing during active dl.pl., time and retrace blanking DraWIng only during retrace blanking Horizontal Back Porch Constraints 1. In general: Access to display memory can be limited to retrace blank~ HBP ;;.. 3 Display Word Cycles (6 clock cycles). ing intervals only, so that no disruptions of the image are 2. If the IMAGE or WD modes change within one seen on the screen. video field: HBP ;;.. 5 Display Word Cycles (10 clock cycles). 3. If interlace or mixed mode is used: HBP;;.. 5 Display Word Cycles (10 clock cycles). 6-55 f.LPD7220 SYNC Format Specify Once the GOCs are initialized and set up as Master and Slaves, they must be given time to synchronize. It is a good idea to watch the VSYNC status bit of the Master GOC and SYNC, 1,--0-,---,--,--,---,---,_'-,-I I D"T"""'E wait until after one or more VSYNC pulses have been gen- L The display IS enabled by a 1, and blanked by a O. erated before the display process is started. The START command will begin the active display of data and will end Pl Mode of Operation select bits the video synchronization process, so be sure there has' See below been at least one VSYNC pulse generated for the Slaves P2 Active Display Words per to synchronize to. line - 2 Must be even number with bit 0 = a P3 Cursor & Character Characteristics HOrizontal Sync Width - 1 ' - -_ _ _ _ _ _ _ _ _ Vertical Sync Width, low bits CCHAR,I 0 , , , 0 P4 L--'--'"_HF.....P-.--'---'-----'_V .....S_" ----,I- VertIcal Sync WIdth, hIgh bIts \~'- _____- HOrizontal Front Porch Width _ 1 lR I--- linea per character row - 1 P5 ° ° HBP r-- HOrizontal Back Porch Width _ 1 P6 ° ° VFP f - Vertical Front Porch Width P2 I B~~S~ CTOP I--- ~u;~;.;: line number ' - - - - - - - - - 0 - Blinking Cursor P7 Al, I-- Video Active Display Lmes per Field. low btts 1 _ Steady Cursor ' - - - - - - - - - Blink Rate, lower bits P8 VBP AL" I- Active Display Lines per P3 '--'--'-C-.;BOT:-'---''--...I--l_B_R"-'-----'J-- Blink Rate, upper bits '\,--~,_-_-_'-_-_..J_-:_...J_'-_-_..J_._ L - - ' - - ' - _..... - ..... Video FIeld, high bits Verttcal Back Porch Width ,'-'------ . Cursor Bottom line number in the row CBor < LR This command also loads parameters into the sync gener- In graphics mode, LR should be set to O. The blink rate ator, The various parameter fields and bits are identical to parameter controls both the cursor and attribute blink rates. those at the RESET command. The GOC is not reset nor The cursor blink-on time = blink-off time = 2 x SR (video does it enter idle mode. frames). The attribute blink rate is always Y2 the cursor rate but with a % on-'.4 off duty cycle. All three parameter bytes Vertical Sync Mode must be output for interlace displays, regardless of mode. For interlace displays in graphics mode, the parameter SR L = 3. VSYNC'L.-I ° ~~~--L'1....... '0 L O_Accept External Vertical Sync - Slave Mode 1 -Generate & Output Vertical Display Control Commands Sync - Master Mode Start Display & End Idle Mode When using two or more GOCs to contribute to one image, one GOC is defined as the master sync generator, and the others operate as its slaves. The VSYNC pins of all GOCs are connected together. A few considerations should be observed when synchro- Display Blanking Control nizing two or more GOCs to generate overlayed video via the VSYNC INPUT/OUTPUT pin. As mentioned above, the Horizontal Front Porch (HFP) must be 4 or more display BCTRl: 1 0 0 ~_'--~--'_-'-.....L_-'---' L.. 0 1 DE I-- The display is enabled :~~ 1, and blanked by cycles wide. This is equivalent to eight or more clock cycles. This gives the slave GOCs time to initialize their internal video sync generators to the proper point in the video field to match the incoming vertical sync pulse (VSYNC). This res~tting of the generator occurs just after the end of the incoming VSYNC pulse, during the HFP interval. Enough time during HFP is required to allow the slave GOC to complete the operation before the start of the HSYNC interval. 6-56 fl-PD7220 Zoom Factors Specify Pitch Specification ° PITCH: . .1.0---'----'----'----'---'---'---'-1---'1 Pl' 1 P !-NUmberolward _ _ Pl 1-.-'--'-' OISP "<"V GCHR .....-.l--'---''---'-....J I- Zoom factor lor graphics chlroctor wrftlng and .... . L.--'_...L...--'-----''---'-~_'__...... :::::::I'::.:n 1110 \ fliling '-----------Dlaplayzoom factor This value is used during drawing by the drawing processor to find the word directly above or below the current word, Zoom magnification factors of 1 through 16 are available and during display to find the start of the next line. using codes 0 through 15, respectively, The Pitch parameter (width of display memory) is set by two different commands. In addition to the PITCH com- Cursor Position Specify mand, the RESET (or SYNC) command also sets the pitch value. The "active words per line" parameter, which spec- ifies the width of the raster-scan display, also sets the Pitch ° of the display memory. Note that the AW value is two less than the display window width. The PITCH command must Pl EAD '---'---'----'_........--'---''---'---'. I-- Execute WOrd AcId..... 1- byte be used to set the proper memory width larger than the window width. P2 Drawing Control Commands Write Data into Display Memory P3 dAD 1 ° ° I ~Q: (Graphlco_only) \ , ' _ _ _ _ _ _ _ _ WOrd AcId..... top_ " < - - - RMW Memory cycle - Dot Address within the word logical a-atIon: ~ 0 _ _ _ REPLACE _ Pattern In character mode, the third parameter byte is not needed. 1 _ _ _ COMPLEMENT The Cl,Jrsor is displayed for the word time in which the dis- 0 I _-_ -_- SETIOI RESETIO:.oro play scan address (DAD) equals the cursor address. In '--------Do1atnln_1YPo: graphics mode, the cursor word address specifies the word containing the starting pixel of the drawing; the dot address °°:_:======WOrd. .. 01"" Low Low\1lon Byte High byte WOrd value specifies the pixel within that word. : _:_-----::'0 01 1110 Word Parameter RAM Load Pl WORD, OR BYTE I- WOrd Low Do1a Byte or ~I__'--~~_L--'-_~+---'-~ '--'----L_.L..-.........- - - ' _........--'-----' Single Byte Do1a value PRAM: . .1____ StartIng Add_In petllmeter RAM P2 .1 WORD, oIc. L.----'_-'-~_.'--_'_-'-_.L..-...J! - ' - - WOrd Ir.n_only: High Do1a Byte Upon receiving a set of parameters (two bytes for a word ~, I 1--11016 I--.....L...---L_.L..-.........- - - ' _........--'-----'. bytoolObe_od Into 1he para....or RAM transfer, one for a byte transfer), one RMW cycle into Video I o1arting 811ho RAM_.... Memory is done at the address pointed to by the cursor I _lIIodby~ P, EAD. The EAD pointer is advanced to the next word, according to the previously specified direction. More From the starting address, SA, ~ny number of bytes parameters can then be accepted. may be loaded into the parameter RAM at incrementing For byte writes, the unspecified byte is treated as all zeros addresses, up to location 15. The sequence of parameter during the RMW memory cycle. bytes is terminated by the next command byte entered into In graphics bit-map situations, only the LSB of the WDAT lhe FIFO. The parameter RAM stores 16 bytes of informa- parameter bytes is used as the pattern in the RMW opera- tion in predefined locations which differ for graphics and tions. Therefore it is possible to have only an all ones or character modes. See the parameter RAM discussion for all zeros pattern. In coded character applications all the bit assignments. bits of the WDAT parameters are used to establish the drawing pattern. The WDAT command operates differently from the other commands which initiate RMW cycle activity. It requires 6-57 J.LPD7220 parameters to set up the Pattern register while the other Figure Drawing Parameters Specify commands use the stored values in the parameter RAM. Like all of these commands, the WDAT command must be preceded by a FIGS command and its parameters. Only the first three parameters need be given following the FIGS opcode, to set up the type of drawing, the DIR direction, ~ Drawing Dlroc1Ion Ba. . and the DC value. The DC parameter +1 will be the num- Fogure typo Soloct Bl1s: ber of RMW cycles done by the GDC with the first set of L~======une(voctor) WDAT parameters. Additional sets of WDAT parameters GraphiCS Character '-----------------Arc,/C'rcle will see a DC value of 0 which will cause only one RMW '--------------------Roctongle cycle to be executed per set of parameters. '---------------------Slanted Graphics Character Mask Register Load ~IL~__~~__M~,~__~~~ 1 , 0 I Low significance byte :1 i GDi \ DC, , DC, ' - -_____________ Grophlcs Drawlngllag Iorueeln MI_ Grophlcs end Character M_ ~IL~__~~__M~,~__~~~ High signmca.... by1e This command sets the value of the 16-bit Mask register of the figure drawing processor. The Mask register controls which bits can be modified in the display memory during a read-modify-write cycle. The Mask register is loaded both by the MASK command and the third parameter byte of the CURS command. The MASK command accepts two parameter bytes to load a 16-bit value into the Mask register. All 16 bits can be indi- vidually one or zero, un.:jer program control. The CURS command on the other hand, puts a "1 of 16" pattern into the Mask register based on the value of the Dot Address value, dAD. If normal single-pixel-at-a-time graphics fig- ure drawing is desired, there is no need to do a MASK command at all since the CURS command will set up the proper pattern to address the proper pixels as drawing pro- gresses. For coded character DMA, and screen setting and clearing operations using the WDAT command, the MASK command should be used after the CURS command if its Valid Figure Type Select Combinations third parameter byte has been output. The Mask register should be set to all "ONES" for any "word-at-a-time" SLRAGCL Op.,ml . . operation. o 0 0 0 0 Character Display MOde Drawing, Individual Dot Drawing, DMA. WDAT, and RDAT o 0 0' Straight Line Drawing o 0 0 0 Graphics Character DraWinG and Area filling with grapltk:s character pattern o 0 0 0 Arc and Circle Drawing o 1 0 0 Rectangle Drawing o 0 0 Slanted GraphlcI Character Drawing and Slanted Area Filling Only these bit combinations assure correct drawing operation. Figure Draw Start ROD: ~1_O~~ _________l~-_O o~1 ___ On execution of this instruction, the GDC loads the param- eters from the parameter RAM into the drawing processor and starts the drawing process at the pixel pointed to by the cursor, EAD, and the dot address, dAD. 6-58 f.LPD7220 Graphics Character Draw and Area Filling Start The Execute Address, EAD, points to the display memory word containing the pixel to be addressed, GCHRD:~I_o~~ ~~ ~~_o~,_o~1 __ __ The Dot Address, dAD, within the word is represented as a 1-of-16 code for graphics drawing operations, Based on parameters loaded with the FIGS command, this Light Pen Address Read command initiates the drawing of the graphics character or area filling pattern stored in Parameter RAM, Drawing begins at the address in display memory pointed to by the EAD and dAD values, The following bytes are returned by the GDC through the FIFO: Data Read Commands Read Data from Display Memory ~1_A7~,~__-,-_LA-,-D'--I.__"-~A_O.,,,lf--- LIght Pen Address, low byte RD~: ~1_1~~_1~I TY~P_E~I_o~I_M_D~D~ __ IA15 , LADM ~.--~.~~-'---'I---'--'---"-.",I. A8 f--- Light Pen Address, middle byte 1 o Data Transfer Type: 0 - ..o----------WOrd, low then high byte 1 0 , 0 ~~~~~~~~~ 0 1 LAD" 1---- Light Pen Address, hIgh byte o - .. o - - - - - - - - - - L o w byte of the Word only The light pen address, LAD, corresponds to the display 1 - .. - - - - - - - - - - H l g h byte althe Word only word address, DAD, at which the light pen input signal is 1 - .. o<__---------Invalld detected and deglitched, The light pen may be used in graphics, character, or mixed Using the DIR and DC parameters of the FIGS command modes but only indicates the word address of light pen to establish direction and transfer count, multiple RMW position, cycles can be executed without specification of the cursor address after the initial load (DC = number of words DMA Read Request or bytes), ~1_1~~~1~I__TY~P_E~I_1-LI_M_D~D~ As this instruction begins to execute, the FIFO buffer direc- tion is reversed so that the data read from display memory DMAR: can pass to the microprocessor, Any commands or param- 1__0_--------- Data Transfer Type eters in the FIFO at this time will be lost. A command byte o -...0_--------- Word, Low then High Byte sent to the GDC will immediately reverse the buffer direc- o -..00---------- Low Byte of the Word tion back to write mode, and all RDAT information not yet 1 - .. - - - - - - - - - - High Byte of the Word read from the FIFO will be lost. MOD should be set to 00 if 1 _ .. 0 < _ _ - - - - - - - - - Invalid no modification to video buffer is desired, Cursor Address Read DMA Write Request CURD: 11 , 1 , 1 , 0 , 0 - - RMW Memory Logical Operation' The following bytes are returned by the GDC through o _REPLACE With Pattern the FIFO: 1 _____ COMPLEMENT o~ RESET to Zero P1 A7 Execute Address (EAD), low byte 1-SETtoOne / - - - - - - - - - - - - 0 8 t a Transfer Type. P2 A15 Execute Address (EAD), 0' 0 -... 0--------- Word, Low then High Byte middle byte o --~--------- Low Byte of the Word P3 Execute Address (EAD), 1 -.~--------- High Byte of the Word high bits 1 -_0_--------- Invalid f--~-,~~~ ... i2- Dot Address (dAD), high byte 6-59 I-LPD7220 AC Characteristics, fLPD7220D T. ="to 7"; Vee =LOV :I: 10'lI0; GND =OV ...... e"•• -- (GDC .. CPU) _ ... ..... setup 10 AD i Add..... Hold from AD t AD PuIooWlcllh "",bol tAR to. '- MIn 0 t"", + 20 7220D'_ Iocv - v..""" Min 7220'101 L - . tFlO1 + 20 Ma Iocv - v..""" Min 722011-2"_ tR01 + 20 toe. Ma v..tc... Unit no no no Tnt Condiliono Do18 Delay from AD i t"", 120 eo 70 no CL =60pF DoI8 FIottIIng from AD t to. 0 120 100 90 no AD Pul.. Cycle Iocv 4""" 41eL. 4tc... no WrttoC,ele _ _ ..... - ..... SoIup 10 WA i ..... Hold from WR t WR Puloo WIdth (GDC ... CPU) ..- t.w tw. Iww MIn 120 72200 IJmIto Ma MIn 100 722OII-11.1tn1to Ma Min 10 90 722011-2 "milo Ma Unll no no no ,..., Condltl _ DoI8 setup 10 WR t low 100 eo 70 no DoI8 HokIfrom WA t two 10 10 10 118 WA Puloo Cycle Iwc. 4leLK 4tc... 4 !eLK no -- - . DMA .....dC,e•• (GDC .. CPU) GAeK SoIup 10 AD I GAeK Hold from AD t AD Puloo WIdth .,...,.." t .. tllK t ... Min .... +20 7220D IJmIto - Min 0 722O/Io11.1tn1to tROl + 20 0 """ + 20 722011-2 "milo Ma Unit 1)0 no n. "'" Condltl_ DoI8 Delay from AD I tADZ 1.5tcLK + 120 1.5tcLK + 80 1.5tCLK + 70 no CL-SOpF DAEO DoIoy from 110 no CL =50pF t ... 150 120 ~CLKt DREO setup 10 GAeK I to. no GAeK High ....., WIdth to. tc... tc... !eLK no GAeK Pul.. Cycle t. 4telK- 4!eLK* 4 'CLK· no DAEO I DoIoy~ tl- AI., 17, :::LX X :::pr'-_____ Bt.nk'~ r- ,'-____ =' , :i S' ea Zoomed Display Operation with RMW Cyc/. (3x Zoom) • iIII i ~·T·TOOTOO+·TM:rMT-M+. RtlW OIapI8y or AMW Cycle :I .:: Cycle ~'I CJ) :1 \ . I I I \ I I I \ \ / i"-- ' I CJ) C11 'M'.r~ (_-1 (-->----< - - >-<_jXO__ ' A1S,17 =n X X X'-_____ BLANK, =c\ / \ I "'F ~ .... ~ II ~PD7220 lImln.w.v.fo,.... (Coni.) Ught,.", and ~.,.nal Sync Input nmlng Clock Timing (2XWCLK) 2XWCLK:~ LP~, EX. SYNC: a== t", 1ltst La"' (for AC Tests, axcept 2XWCLK) VIdeo Sync Signal. nmlng I. lH 'I ZXWCLK:.JV\.../\./\./\ ____ ..J\../"\./\... __ ..I"VV ___ J"V\... __ J\... HBLANt<:J - - - - " " ' - - __ r HSYNC: I \1.. ____________ ADO-15::::X:::::X:::::::::::x:::::::x::=::::::x:::::x::: x= ==:::t: LCO-4::::::::)( I : \ ADO-15:t;;;*~~~~~~;~:-=-=-:~~~~~~;=-=-=~;~;;;~:-=-~ -+- ___ ' -___ ....A...- LCO-4:-v-----:x:::: ---v---- ------ ----------------- - - - " - - _________________________ ~---:x:: __ _ -:j( C i { I _______________________________________________ ' ' -~----:r:=;< 1 VBLANK: : ---- '--____ I ===x: I w~:.~-------------------------------~--------JI ,.1·-------------1VIFrome)------------------I InterlllC8d VIdeo nmlng HBLANK: .JL __ -IL.JL __ JL.JL __ JL.JL __ -1L - _ ...n.--- ~- --fL..J1-- I I I I VBLANK:l-- __ ~---,-------,----L __ S----,-,-----,-,-- I I I I I I I I I I I I VSYNC:, I I I II IL-- (Interlace) : : I : : I j' Odd Field I 'j' Even Field _ _-'-:_ __ I I I (NOI~~:.~~,)_)- - - - - - - - ' 1 L- 6-66 IJ.PD7220 Timing Waveforms (Co.,I.) VIdeo HorIzontal Sync Generator Parameters 1~'-----------------------IH--------------------~ I I I ~--------------------------~r- HBLANK:----.-J I I HSYNC: I I rI~ ______ ____________________________ ~ ~ I I I I I I I I I --1 H~ ~HBP--l,I-,- - - - - C / R - - - - - - - - - i Video Vertical Sync Generator Parameters 1-1,- - - - - - - - - - - - - - - - - - - 1 V ---------------1., VBLANK: I I I I I t-- I I I I I I VSYNC:.-J!L-_ _---:_ _ _ _ _ _ _ _ _ _ _ _ _ _ .....-_---!n I I I I I I I I I I I I I VFP r I I l I I I- VBP . . .·. .I'----------UF------j..... i I~P--1 ----1\11;1--- Cursor-Image Sit Flag 2xCCLK HBLANK HSYNC CRS-Image =± r'l----1f L r ~ r--l0tcLK~ L---'-nva-hd----+-1 s~ ~ Cursor Image 6-67 f-LPD7220 Video Field Timing HSVNC output ---II r-t--- BLANK Output --..J : rt-L-.- : : i Vertical SYNC LInes ·--t------ Vertical Back Porch Blankod linea Horizontal. SYNC--.o Pulse Horizontal &. Front Porch_ Blanking az u Active >- Display ~ lin.. Horizontal Back Porch Blanking ~ Vertical Front Porch Blanked Linea ~ "~JS Drawing Intervals ~ Drawing Interval ~ Additional DraWing Interval When ~ In Flash Mode ~ Dynamic RAM ReI....h d Enabled, Otharwlaa R22il AddKional DrawIng Interval DMA Request Intervals DMA Raquaat Int..-val Addftional DMA Req..... lnterval. W_ln Flash Mode 6-68 ~PD7220 Block Diagram of a Graphics Terminal r---------- ---------, I Clock ~P07220 GDC DBO-7 Data Blanking HSYNC VSYNC LPEN Host CompuW -----------------~ Multlplane Display "emory Diagram GDC AD Ot015 6-69 J.LPD7220 Package Outlines For Information, see Package Outline Section 7. Ceramic, .. PD7220D 7220DS·Rev 4·7·83·CAT·L 6-70 NEe tJPD7225 INTELLIGENT ALPHANUMERIC LCD CONTROLLER/DRIVER Description Pin Configuration The ",PD7225 is an intelligent peripheral device designed to interface most microprocessors with a wide variety of alphanumeric LCDs. It can directly drive any static or multiplexed LCD containing up to 4 backplanes and up to 32 segments and is easily cascaded for larger LCD applications. The ",PD7225 communicates with a host 520 5, microprocessor through an a-bit serial interface. It includes a 7-segment numeric and a 14-segment alpha- 5" 5'2 ,. 25 5, 55 numeric segment decoder to reduce system software 5'3 23 5. IS24 22 53 requirements. The ",PD7225 is manufactured with low ,.,. "'0 525 5, power consumption CMOS process allowing use of a 526 IlPD7225 5, single power supply between 2.7V and 5.5V and is 5" So available in a space-saving 52-pin flat plastiC package. 5,. COM3 ,. 52. 17 COM2 Features 530 16 COMl 53' COMO D Single-chip LCD Controller with Direct LCD Drive Cl, NC D Low-cost Serial Interface to most Microprocessors D Compatible with: 7-Segment Numeric LCD Configurations-up to 16 Digits 14-Segment Alphanumeric LCD Configurations-up to a Characters D Selectable LCD Drive Configuration: Pin Description Static, Biplexed, Triplexed, or Quadriplexed Pin D 32-Segment Drivers Ho. S._I Function D Cascadable for Larger LCD Applications D Selectable LCD Bias Voltage Configuration: Static, 112, or 113 D Hardware Logic Blocks Reduce System Software Requirements 3-5 CL2 SYNC YLCD1' YLCD2' YLCD3 System clock output (active high). Connect to CL1 whh 180kQ r.elstor, or leave open. Synchronlzatlon port (active lOW). For muttlchlp operation tie all SYNC lin•• together. LCD bla. voltage supply Inputa to LCD YOhage controller. Apply appropriate voltage. from a voltage ladder con& nected aeros. VOD' II - a-Bit Serial Interface Vss Ground. - Two 32 x 4-Bit Static RAMs for Display Data and 7,33 Power supply postllve. Apply single voltage ranging from VDD Blinking Data Storage 2.7V to 5.5V for proper operation. - Programmable Segment Decoding Capability SCK Serial clock Input (active low). Synchronizes 8-blt Hrlal da'a tranafer from mlcroprocel8Or to JoIPD7225. - 16-Character, 7-Segment Numeric Decoder SI Serial Input (active high). Oatalnput from mlcroproceasor. - 64-Character, 14-Segment USASCII Alpha- 10 CS ChiP select Input (active low). Enables ,..P07225 for data numeric Decoder Input from microproceasor. Display can also be updated - Programmable Segment Blinking Capability when ,..P07225 II deeelected. - Automatic Synchronization of Segment Drivers 11 BUSY Busy output (active low). Handlhake line tncHeat" that ,..P07225 I. ready to receive next data byte. with Sequentially Multiplexed Backplane Drivers 12 C/D Command/data Hlect Input (active both high and lOW). D Single Power Supply, Variable from 2.7V to 5.5V OI81lngulahe. 88l1sll, Input data byte as a command or a. display data. D Low Power Consumption CMOS Technology 13 RESET Reset Input (active lOW). RIC circuit or pul" Initializes ,..P07225 atter power·up. D Extended - 40°C to + a5°C Temperature Range 14 MC No connection. Available 15-18 CDMo-CDM3 LCO Backplane DrIver OUtputl. D Space-saving 52-Pin Flat Plastic Package 19-32, Sg-S31 LCD Segment Driver Outputa. 34-51 52 CLl System clock Input (active high). Connect to C~ with 1801Q reelltor, or to external clock IIDUrce. REVI1 6-71 J,lPD7225 Block Diagram COMO-COM3 LCD Driver 32 Display Latch 32 32 Voo VLCOI VLC0 2 LCD Voltage Controller Segment 32x4Blt 32x4Blt VLC0 3 Decoder Display RAM Blinking RAM Vss Buffer Interface Command Controller Decoder Senal Interface CS Cli) BuSY SI SCi< Command Summary Instruction Cod. Binary HEX Command D.scrlptlon D7 D. D. D. D:a D. Dt Do 1. MODE SET Initialize the "PD7225, Including selection of: 0 0 D4 D3 D2 Dl Do 40-5F 1) LCD Drive Configuration 2) LCD Bias Voltage Configuration 3) LCD Frame Frequency 2. UNSYNCHRONOUS DATA Synchronize Display RAM data transfer to 0 0 0 0 0 0 30 TRANSFER Display Latch with CS 3. SYNCHRONOUS DATA Synchronize Display RAM data transfer to 0 0 0 0 0 31 TRANSFER Display Latch with LCD Drive Cycle 4. INTERRUPT DATA Interrupt Display RAM data transfer to 0 0 0 0 0 38 TRANSFER Display Latch 5. LOAD DATA POINTER Load Data POinter With 5 bits of Immediate D4 D3 02 Dl Do EO-FF Data 6. CLEAR DISPLAY RAM Clear the Display RAM and reset the Data 0 0 0 0 0 0 0 20 Pointer 7. WRITE DISPLAY RAM Write 4 bits of Immediate Data to the Display 0 0 3 O2 0 1 Do DO-DF RAM location addressed by the Data POinter; Increment Data POinter 8. AND DISPLAY RAM Perform a Logical AND between the Display 0 0 0 3 O2 Dl Do 90-9F RAM data addressed by the Data Pointer and 4 bits of Immediate Data; Write result to same Display RAM location Increment Data Pointer 6-72 Command Summary (Cont.) t-t PD7225 Instruction Cod. Binary HEX D.scrlptlon D7 D. D. D. D3 D. Dt D. 9. OR DISPLAY RAM Perform a Logical OR between the Display 0 0 3 O2 0, Do BO-BF RAM data addressed by the Data POinter and 4 bits of Immediate Data, Write result to same Display RAM location, Increment Data POinter 10. ENABLE SEGMENT Start use of the Segment Decoder 0 0 0 0 0 15 DECODER 11. DISABLE SEGMENT Stop use of the Segment Decoder 0 0 0 0 0 0 14 DECODER 12. ENABLE DISPLAY Turn on the LCD 0 0 0 0 0 0 1 11 13. DISABLE DISPLAY Turn off the LCD 0 0 0 1 0 0 0 0 10 14. CLEAR BLINKING RAM Clear the Blinking RAM and reset the Data 0 0 0 0 0 0 0 0 00 POinter 15. WRITE BLINKING RAM Write 4 bits of Immediate Data to the Blinking 0 0 0 3 O2 0, Do CO-CF RAM location addressed by lhe Data POinter; Increment Data POinter 16. AND BLINKING RAM Perform a Logical AND between Blinking 0 0 0 0 3 O2 0, Do 80-8F RAM data addressed by the Data POinter and 4 bits of Immediate Data; Write result to same Blinking RAM Location; Increment Data POinter 17. OR BLINKING RAM Perform a Logical OR between Blinking 0 0 0 3 O2 0, Do AO-AF RAM data addressed by the Data POinter and 4 bits of Immediate Data, Write result to same Blinking Location; Increment Data Pointer 18. ENABLE BLINKING Start Segment Blinking at the Frequency 0 0 0 0 Do 1A-1 B Specified by 1 bit of Immediate Data 19. DISABLE BLINKING Stop Segment Blinking 0 0 0 0 0 0 18 Details of operation and application examples can be DC Characteristics found in the "IlPD7225 Intelligent Alphanumeric LCD Ta = - 10·C to + 70·C; vDD = + s.ov ± 100/0 Controller/Driver Technical Manual." LImits Te.t Parama.er Symbol MIn Tvp M •• Unit Condltlon_8 Absolute Maximum Ratings * input Voltage VIH 0.7 VOO VOO V High Ta = 2S·C Input Voltage 0.3 V VIL Supply Voltage, VOO -0.3Vto +7.0V Low voo Input Leakage IUH .A VIH - VOO All Inputs and Outputs with Respect to VSS - O.3V to Voo + O.3V Current High Storage Temperature -65·C to + 150·C Input Leakage -2 .A VIL - ov ILIL Operating Temperature -10·C to + 70·C Current Low Output Voltage VOH VOO -0.5 V BUSY, SYNC. ·COMMENT: Stress above those listed under "Abso- High IOH = -10 IJ.A lute Maximum Ratings" may cause permanent damage Output Voltage VOL, 0.5 V BUSY, 10L - 100.A to the device. This is a stress rating only and functional Low VOL2 1.0 V SYNC,IOl 900j.lA operation of the device at these or any other conditions Output Leakage ILOH .A VOH Voo above those indicated in the operational sections of this CUrrent Low 'LOL .A VOL ov specification is not implied. Exposure to absolute max- Output Short lOS -300 .A SYNC. VOS - 1.0V imum rating conditions for extended periods may affect Circuit Current kQ device reliability. Backplane Driver Output Impedance RCOM COMO-COM3' VOO ~ VLCO· Applies to statlc~. 1/2-, and 1/3-LCD bias voltage schemes Segment Driver RSEG 14 kQ SO-S31. Output Impedance VOO ~ VLCO· Applies to 8tatlc~. 112-, and 1I3-lCD bias voltage schemes Supply Current 100 100 250 .A ell external clock, ,+ = 200 KHz 6-73 ",PD7225 DC Characteristics (Cont.) AC Characteristics (Cont.) T. = o·c to + 70'C; YDD = 2.7 to 5.5Y T. = O·Cto +70·C;YDD = 2.7Yt05.SY LImit. limit. Te.t .,lftbOI Min TvP .... Un" Symbol Min Trll Max Unit Condhlons Input Voltage 0.7 VOO VOO V Except SCK Clock FreQUenCy __ '+'-__S_0_ _ _ _ _ _'_40_ _K_H_Z_ _ _ _ _ __ High 0 •• VOO V SCK 'OSC 50 100 140 KHz R = 180 kQ + 5%. VOO VoO = 30V ± 10% 0.3 v Except SCK Input Voltage VOO Clock Pulse Width '6 ,",S Cll' external clock Low High 0.2 V SCK VOO , Clock Pulse Width '6 I----- 6-75 J-IPD7225 Characteristics Curves Ta = 2SoC External Resistance vs Oscillation Frequency Supply Voltage va Oscillation Frequency ? 200 , D R 140 1:1 R7V R '~ ~ ~ ? 120 r; ~ ~ ~ . "e 100 "- c .2 : ~ '~ ~ I ! ~ c 2 100 / 1/ VOO = 3V ~ 50 ,, ,, , , 80 y 100 200 500 External Resistance R (kQ) ~ Supply Voltage VOO (V) Supply Voltage vs Supply Current ~ 100 External Clock f =: 200 KHz V ~ Q .P / V () E ~ ag- 50 '7 III /' V 20 L, -- Supply Voltage Voo (V) 6-76 J..lPD7225 7.Segment Numeric Data Decoder Character Set Decoded Display RAM Data Triplexed Quadruplexed Display Display RAM Address Display RAM Address Byte (HEX) Character n+2 n+1 n n+1 n 00 a 3 5 3 0 7 01 P uJ C':::. 0 0 0 3 0 6 02 51 Co 2 7 E 3 03 Sa 0 7 3 A 7 04 EI 2 3 3 6 Q, (j] 05 7 2 B 5 Dc 06 _0 B 3 7 2 F 5 D 07 g 0 3 0 7 08 09 B Ii 3 7 7 3 3 F B 7 7 II OA Ii 3 2 0 2 0 OB aq 3 7 0 F OC 3 5 0 0 G, ,>f lf 00 ~~~ 0 6 0 A 0 ~:'(, OE 8 2 6 2 E 4 OF 0 0 0 0 0 6-77 ... 1= I:3! ..-: "I» Display Display RAM Display Display RAM Display Display RAM Display Display RAM g" i ~ t " Byte Byte Byte .zen3 ....CI~ Char Address Char Address Char Address Byte Char Address i!: 0 III (HEX) n+3n+2n+1 n (HEX) n+3n+2n+1 n (HEX) n+3n+2n+1 n (HEX) n+3n+2n+1 n 5" 3 fa 3; II CD !. Fa ~ s ::. 0 AO 000 0 BO B 4 7 E 2 co Q] A 7 C 0 DO p 236 4 CD ,.a U'I ~ o ..• = .... :s if ~ •"11 1/1CD III CO) I'l A1 Invalid B1 iJ o 'I' ",I' 6 0 0 C1 m 2 7 6 4 01 ~ o 7 E 8 :r III :s c "" ~ '~ '~ II ca • A2 Invalid B2 2 3 C 4 C2 8 7 8 5 02 2 3 6 C ..3 -- CD ~5" m1 ii' • [ A3 Invalid B3 2 7 8 4 C3 m: o E 0 03 YD 1 5 8 4 .. ~ III x III g" =" A4 Invalid B4 2 6 2 4 C4 m 878 04 8 0 ~ CD n oQ. AS Invalid B5 I 2 5 A 4 C5 ~ 2 E 4 05 B o 6 E 0 .. CD n :r 0> A6 Invalid B6 15 2 5 E 4 C6 E 264 06 ~ 406 2 III ... ~ I = 400 KHz T a = _25°C, VDO = OV CAPACITANCE LIMITS PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Input Capacitance CI 10 pF ftl> = 1 MHz Output Capacitance Co 25 pF Unmeasured PinS Input/Output Capacitance CIO 15 pF SYNC retu rned to G rou nd. 6-82 ",PD7227 .AC CHARACTERISTICS Ta = _10°C to +70°C, VDD = +5.0V ± 10% LIMITS PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Clock Frequency f 100 1000 KHz Clock Pulse Width High tWH 400 ns Clock Pulse Width Low tWL 400 ns SCK Cycle tCY...K 0.9 I'S SCK Pulse Width High tkWH 400 ns SCK Pulse Width Low tKWL 400 ns SCK Hold Time After BUSYt tKHB 0 ns SI Setup Time To SCKt tlS K 100 ns SI Hold Time After SCKt tlHK 250 ns SO Delay Time After SCK. tODK 320 ns SO Delay Time After C/D. tODD 2 I'S SCK Hold Time After C/D. tKHD 2 I'S BUSY Delay Time After 8th SCKt tBDK 3 I'S CLOAD = 50pF BUSY Delay Time After C/Dt tBDD 2 I'S BUSY Delay Time After CS. tBDC 2 I'S C/D Setup Time to 8th SCKt tDSK 2 I'S C/D Hold Time After 8th SCKt tDHK 2 I'S CS Hold Time After 8th SCKt tCHK 2 I's CS Pulse Width High tCWH 2M I'S CSt Delay Time to BUSY Floating tCDB 2 I'S CLOAD = 50pF SYNC Load Capacitance CLOADS 100 pF AC CHARACTERISTICS Ta -10to +70'C.VOO ~ 2.7t055V LIMITS PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Clock Frequency f 100 250 KHz Clock Pulse Width High tWH 1800 ns Clock Pulse Width Low tWL 1800 ns SCK Cycle tCYK 4 I'S SCK Pulse Width High tkwH 1800 ns SCK Pulse Width Low tKWL 1800 ns SCK Hold Time After BUSYt tKHB a ns SI Setup Time To SCKt tlS K 500 ns SI Hold Time After SCK t tlHK 1 ns SO Delay Time After SCK. tODK 1200 ns SO Delay Time After C/D. tODD 3 I'S SCK Hold Time After C/Dl tKHD 3 I'S BUSY Delay Time After 8th SCK t tBDK 4 I's CLOAD = 50 pF BUSY Delay Time After C/Dt tBDD 3 I'S BUSY Delay Time After CS I tBDC 3 I'S C/D Setup Time to 8th SCKt tDSK 3 I'S C/D Hold Time After 8th SCKt tDHK 3 I's CS Hold Time After 8th SCKt tCHK 3 I'S CS Pulse Width High tCWH 2/f I'S Cst Delay Time to BUSY Floating tCDB 3 I'S CLOAD = 50pF SYNC Load Capacitance CLOADS 100 pF 6-83 ,.,PD7227 CLOCK WAVEFORM SERIAL INTERFACE TIMING WAVEFORMS cs c/o --, tODD - --, ,.....- SO/BUSY \ "t ("SO) --j1\~~J _ _ ..J " ,__ SO/Bl:.JSY -- I, ,--- , - - - 1 + - - - - - - - - - ,,'CDJ -'' r ,-- r---tB_D~K...,,_/ _ _ (as BUSY) I tKHS _ --1 I-----'io"*~- 'L SCK 8th 51 6-84 ,",PD7227 5 X 7 CHARACTER SET o 0 AS GENERATED IN fLPD7227 o 0 Display Byte ... ... .... .... ... .. ....... ' " • .00 , •• , . • • • • • 0,,'-,,- • • ,," • " o 0 0 .... .... 0 • ' •• "0" •• " '." ... ........ ... .. .. .. ',' ,' 0 " ' ..">" " " ' •• ,, "', .. .. • o o o 1 ".' (".')' ".' .'" ",,, .0' ,,., • .••• • ",,'.< ••• .. .... .... ... • • •' •• 0_.. , ' • ....... . ,.' . .. •• ' 0 • • CC". • o o o ( .......... "0 ~. .' " •• ~ ( o o • • • • • 0' ••••• •••• u •• • ~, • ., ( • o o •• '0".' 000'.( • o .:::. :.. :. ::: : • •••• c , • ................. ,.,) .. .. o o • • ·... ....... ...... "._' ••• c"' • • " ' ' ,·,°8 • • " ... ..... ... , .,' .' •• " ' • 0 •• """0 •• " • • • • • • • o o ~m:gmm; 0""."."',(, •• " ~ ~ " •• "." ••• ',. (00" o 0 0 0 0 0 0 Display Byte Do ... : : : ... : cO 0 0 0 : ... .. . " ... 0 0 .. ... . - " .. 0 0 .. .. ..... 0 ... 0 0 o o 6-85 "PD7227 Pack. . . Outlines For Information, . . . Paclulge OUtline Section 7. PI.stlc Mlniftat, ",PD722713 6-86 7227DS-REVl-7-83-CAT NEe f.1PD7228 INTELLIGENT DOT-MATRIX LCD CONTROLLER/DRIVER Description Pin Configuration The J.LP07228 Intelligent Dot-Matrix LCD ControlierlDriver is a peripheral device designed to interface most micro- processors with a wide variety of dot-matrix LCOs. It can directly drive any multiplexed LCD organized as 8 rows x 50 columns or 16 rows by 42 columns. The J.LP07228 has a standby function to conserve power. It is equipped with C3 • C2 , several logic blocks, such as an 8-bit serial interface, a c3 • C•• 4-bit parallel interface, an ASCII upper Ilower case, a Kana c•• C,. character generator, a 50 x 16 static RAM with full readl c., C,. C42 1R '5 C17 write capability, and an LCD timing controller, all of which C43 /R'4 C,. reduce microprocessor system software requirements. C44 /R '3 C" The J.LP07228 is manufactured with a single 5V CMOS C4s /R '2 C,. process, and is available in an 80-pin space saving flat C46 /R '1 C'3 plastic package. C47 /R '0 C,. C4S /R g Cl1 Features C49 /R a C,. o LCD direct drive R'S/R7 C. o 8-line or 16-line multiplexing drive possible with R'4 /R 6 Ru/Rs C. C7 single chip R'2/R4 C. - 8-line multiplexing: 400 (50 x 8) dots R11 /R3 Cs - 16-line multiplexing: 672 (42 x 16) dots R'0/R2 C. o 8-line or 16-line multiplexing drive with n chip RgJR, R8/RO C3 C. configuration VLC5 C, - 8-line multiplexing: n x 400 (n x 50 x 8) dots VLC1 C. - 16-line multiplexing: n x 800 (n x 50 x 16) dots NC NC DRAM: 2 x 50 x 8 bits for display data storage V LC4 CLOCK o Programmer designated dot (graphics) display o 5 x 7 dot-matrix display by on-chip character generator ASCII characters (alphanumerics, others): 64 charac- ters; JIS characters (Kana and others): 96 characters o Cursor operating command o 8-bit serial interface compatible with J.LP07500, J.LCOM-43N, J.LCOM-87/87LC Pin Identification o 4-bit parallel interface compatible with J.LP07500, Pin J.LCOM-84/84C o Standby function No. Symbol Description o CMOS 1-18 CO-C 41 LCD Column Drive Outputs o Single power supply 42-80 o 80-pin plastic flat package 5-12 13-20 C42/R'S-C49/Rs Ro/Ra- R7/ R'5 LCD Row/Column Drive Outputs LCD Row Drive Outputs o Extended - 40°C to + 85°C temperature 21,22 24-26 VLC1-VLC5 LCD Power Supply range available 23, 42 NC No Connection 27 0 0 /51 Data Bus O/Serlallnput 28 O,(P/S) Data Bus 1 (ParallellSerlal Select) 29 O.(CAE) Oata Bus 2 (Chip Address Enable) 30 0 3 /50 Data Bus 3/Serlal Output 31 SYNC Synchronization Signal Input/Output 32 BUSY Busy Signal Output 33 Voo Power Supply 34 Vss Ground 35 STB/SCK Strobe/Serial Clock Input 36 C/O Command/Data Select Input 37,38 CAo, CA, Chip Address Select Inputs 39 CS Chip Select Input 40 RESET Reset Signal Input 41 CLOCK System Clock Input 6-87 fl.PD7228 Block Diagram CoS CoNS System Clock Serial/Paraliellnterface Control 1 n n '"mm ~I ~l ~l ~ -l" ~ 0 III Jl ;r- 01 III "- ,. '0 'ii ... ~I 0 .!!! $1 6-88 j.LPD7228 Character Code Character Cadell and DIsplay Patterns 4 0 I I I I ~ ... ... : .. : ... 0 0 1 .. ..: .. .... ... : ... .... .. .. 0 1 : : .. . '". .. . 0 1 ... : ... ..... ... ... ... : ... ... .. . 0 1 0 0 . ... : ... ..... .... . . . : .. ... ... .. ..... ... ... : : .... : : . ...: 0 1 0 1 .. .... ... : ..... .. . ... ... . .. . ... 0 1 1 0 .... ... : .. . .... .. .. . .... .... .. .. .... ... . : : 0 1 1 1 .. : ...: : : .. ..... : ..... 1 1 0 0 1 1 0 1 ..... .. ..: ... ..... . ..... ..... ..... .. .. . .... ... .. : D ..... : ..... 1 1 0 0 : : ..... : : ~ ,. . : ..... : ..... ... .... ... : 1 1 0 1 ..... ..... ..... 6-89 f,LPD7228 Commands for fLPD7228 Electrical Specifications The fLPD7228 is provided with sixteen types of commands, Absolute Maximum Ratings* each command consisting of one byte (8 bits). T. =25"C Supply Voltage, VDO -0.3Vto +7.0V Command Summary Input Voltage, V, - 0.3V to Voo + 0.3V Output Voltage, Vo - 0.3V to VDO + 0.3V 1. Set Frame Frequency 000 OF2F1FO Operating Temperature, TOPT -10°C to + 70°C Storage Temperature, T8m - 65°C to + 1500C 2. Set Multiplexing Mode o 0 0 M2 Ml MO *COMMENT: Exposing the device to stresses above 3. Display Off 0000000 those listed in Absolute Maximum Ratings could cause permanent damage. The device is not meant to be 4. Display On o 0 0 0 0 0 operated under conditions outside the limits described in the operational sections of this specification. Expo- sure to absolute maximum rating conditions for 5. Set Read Mode o 0001110 extended periods may affect device reliability. 6. Set Write Mode o o o 11 10 Capacitance T. = 25"C; VDD =OV 7. Set AND Mode o o 11 10 Umlts T.st Parameter SYllibol Min Typ Max Unit Conditions 8. Set OR Mode o o o 11 10 ~ln~p~~ca~~~CIle~n~~~______~C~IN~________~I~O__~PF~f=IMHZ '::~o=~"':::':pec-=ca::O:=n~=ta:::-=---------,~",:",UT-'-----------=~=-------"'::'----- ~:=~::ins 9. Set Character Mode with o o o Right Entry 10. "Set Character Mode with 0 0 0 0 0 DC Characteristics Left Entry· ......:'---'--"---'--=--=----=:;--=-- T.= -10"Cto +70"C;VDD = +5V±10% Limits 11. BitSet o o B2 Bl BO Jl JO Parameter Symbot Min 1)p II. Unit Test CondHions O.7Voo Voo V EXceptW Inpul VoHeae High 12. Bit Reset o o B2 Bl BO Jl JO O.8VDD Voo V Inpul Vollege low V,L o O.3Voo V Inpul Leakage Current High VI = Voo 13. "Write Cursor" o o Input Leakage Current Low -10 ,.A V, =OV Voo - BUSY. 0 0-03• 14. "Clear Cursor" o 0 0 Oulp~ Vollega High VOH1 0.5 V IOH = -400,.,.A VOH2 Voo - 0.5 15. Load Immediate to 06 05 04 03 02 01 DO Bii§Y, Do-D3• Data Pointer VOL1 0.45 VIOL = 1.7mA ~p~ Voltage Low 0.45 V SYNC, IOL = 16. "Set Stop Mode" o 0 0 0 0 0 0 l00,.A Oulpul Leakage Cu,,,,,,1 High ILOH 10 j.LA. Vo = Voo Note: *Newlyadded (compared to IJ-PD7227) Output Leakage Current Low ILOL -10 ,.A V, = OV 3.0 Voo V Command Summary Row Output Impedance RROW 8 kO Row/Column Output Impedance RROW/COL 10 kO Instruction Code Column Output Impedance ReOL 10 15 kO Binary Operating Mode, Mnemonic Operation 200 400 ,.A Ie = 400kHz Supply Current looz 20 ,.A SIop_. SFF set Frame Frequency 1 0 02 0,00 10-14 ClK = OV SMM Set Mul~plexlng Mode 1 1 02 0,00 la-IF DISP OFF Display Off o 0 0 0 0 08 DISP ON DI.playOn o 1 0 0 1 09 lDPI Load Data Pointer With 1 De DIS 0 4 03 02 0, Do 8O·Bl AC Characteristics Immediate Co-Fl T. = -10"Cto +70"C;VDD = +5V ± 10% SRM Set Road Mode 0 1 1 0 0 0 0 , 00 60-Q SWM SetWrIle Mode 0 1 1 0 0 1 0 , 00 64-67 Common Operation SORM Set OR Mode 0 1 1 0 1 0 0 , °0 68-6B 0 1 1 0 1 1 0 , 00 1.imII. Test SANDM Set AND Mode 6C-6F Set Character Mode with Perameter Symbol Min Typ ..... Unit Conditions SCMl Left Enlry o 1 1 1 0 0 0 1 71 Clock Frequency fc 100 1100 kHz Set Character Mode wHh SCMR Righi Entry 0111001072 CI_ Pul.. Width HIgh tWHC 350 n8 BSET BlISet o 04 D:, D2 0, Do 4O-5F Clack Pul.. Widlh Low t wLC 350 ns BRESET BII Reeot 1 0 4 0 3 O2 0, Do 2O-3F WRCURS Write Cursor 1 1 1 1 0 1 7D BUSY Delay Tlma from CS • Iocas CL =50pF 2 "" ClCURS Claar Cursor 1 1 1 1 0 0 7C cs t Delay Time STOP Set Stop Modo 00000101 Iocs.. 4 ~s C L = 50pF to 'Iill§V floating CS High Level Time tWHCS ~. SYNC Load Capaclta_ ClOY 100 pF Data Set-up Time 10 RESET j I ... Data Hold Time from RESET ~ ..... 6-90 /-LPD7228 AC Characteristics (Cont.) Serial Interface Timing Waveforms (Cont.) T. = -10"Cto +7O"C;Voo = +5V ± 10% AC Test PoInts Serial Interface Operation SCKCyel. ......meter SCK Pulse Width High SCK Pulse Wldlh L.ow Symbol Icy, tWHK IWLK Min 0.9 400 400 LImits TJp """ Unit .s ns Teol Conditions =x O.7VDO ~p=.~ D.3VOD x:: O.7VOD O.3VOD SCK" Hold 11m. from BUSY 1 IHa' 0 ns 51 Set-up 11m. to SCK 1 lsi, 100 ns SI Hold llme from SCK 1 tHKI 250 ns Clock Waveform SO Delay llme from §CK j ~~~h~~mefrom 10'0 1..8 320 . ns CL = 50pF BUSY Low-leveillme ciii Set-up 11m. to First SCK j 1wL. ..... 18 64 . Ille C, = 50pF ciii Hold 11m. from Elghlh SCK 1 CS Hold 11m. from Elghlh SCK 1 t,,'D ....es . .s CLOCK AC Characteristics (Cont.) T. = -10"Cto +70·C;Voo = +5V ± 10% Interface TimIng waveforms Parallel Interface Operation Umlts Test PIIrameter Symbol Min Typ Max Unit Conditions !:~!mmand Set-up Time IA 100 ns CL = 80pF Input£2..mmand Hold Time from STB j I. 90 ns C, = 20pF Inpul Data Set-up TIme lo!!Tlf1 Ie 230 ns CL - 80pF Input Data Hold Time from STB t 10 50 ns CL = 20pF Output OBIs Delay TIme lACe 90 650 n. CL = 80pF Output 0818 Hold Time t" 0 150 n. CL - 20pF STB Pulse Width Low STB High Level Time 1st. isH 700 . ns Parallel Interface Timing Waveforms STB Hold 11m. from BUSY 1 =~~~mefrom t Has 1os8 . .s C/o Set-up Time 10 First STB ! CID Hold TIme from Second S'fij 1 CS Hold T,m. from Second 5TB t Is.. ....D I HSCS .. .s ~D --~--~----------~r--r--- Serial Interface Timing Waveforms liiJliY _~...~+----------t-\ -U-IWHes __+_""',.._______ :=i-::1L L ---+--~-~ ~ 0 ...0 3 ---------- I Package Outlines For information, s_ Package Outline Section 7. 81 ---=ME K ~ ~r- USB lttKI ~~B-- 'wLK 10KB Plastic Minlflat, .,.P07228G ~t::0 __ _ SO ----w.. 722805-7·83-CAT-L 6-91 Notes 6-92 j.LPD7261 NEe HARD·DISK CONTROLLER Description Pin Configuration The fLPD7261 hard-disk controller is an intelligent micro- SYNC Vee processor peripheral designed to control a number of RIWOATA Bn different types of disk drives. It is capable of supporting (RGATE) RfWCLK BTO (WGATE) either hard-sector or soft-sector disks and provides all con- trol signals that interface the controller with either SMD disk RESET CLK interfaces or Seagate floppy-like drives. Its sophisticated INT INDEX instruction set minimizes the software overhead for the host OREQ SCT (PCL) microprocessor. By using the DMA controller, the micro- fC USTG (PCE) processor needs only to load a few command bytes into the cs SSTG (OSO) fLPD7261 and all the data transfers associated with read, AD BOIR (SKC) write, or format operations are done by the fLPD7261 and WR TG3 (TRKO) the DMA controller. Extensive error reporting, verify com- AO TG2 (READY) mands, ECC, and CRC data error checking assure reliable DO TGI (WFLT) controller operation. The fLPD7261 provides internal 01 BT2 (OSO) address mark detection, ID verification, and CRC or ECC 02 BT3 (OSI) checking and verification. An eight-byte FIFO is used for 03 BT4 (HSO) loading command parameters and obtaining command 04 BT5 (HS1) results. This makes the structuring of software drivers a 05 BT6 (HS2) simple task. The FIFO is also used for buffering data during 06 BT7 (RWC) DMA read/write operations. 07 BT8 (STeP) GNO BT9 (BOIR) Features o Flexible interface to various types of hard-disk drives o Programmable track format Note: Signals shown In parentheses are used when the ~PD7261 IS In the floppy-like mode. o Controls up to 8 drives o Parallel seek operation capability Pin Identification - Host Interface Pins o Multisector and multitrack transfer capability Pin 110 Function o Data scan and data verify capability No. 4 Name RESET Reset input. When high, it forces the device into an o High-level commands, including: idle state. The device remains idle until a command is Issued by the system. READ DATA SEEK (normal or buffered) INT o Interrupt request to the system, set high for request. READ ID RECALIBRATE (normal or buffered) OREQ o DMA request. Normally low, set high to request a WRITE DATA READ DIAGNOSTIC (SMD only) transfer of data between the disk controller and memory. FORMAT SPECIFY TC This is used as a terminal count input durmg OMA. SCAN DATA SENSE INTERRUPT STATUS CS Chip select. When low, It enables reading from or VERIFY DATA SENSE UNIT STATUS writing Into the register selected by AO. RO Read strobe. When low, selected register contents VERIFY ID DETECT ERROR are read. CHECK ---;:;---"""----;-----;;Wr""'lte 10 Wl'I strO~be-::-.7.W;;:chec::n7Io:c:w:-c.dcc cccci.ccwr"'IIIO:C.nC-;i"'n1~o'~he:C--­ ••• o NRZ or MFM data format selected register. o :::t;~~::~~~:~tb~s~nC:W~:~i~~~t~:n. 11 AO Maximum data transfer rate: 12MHz (SMD mode) o Error detection and correction capability command/status register is setected; when low, the data buffer is selected. o Simple I/O structure: compatible with most 12-19 20 DO-07 GNO 1/0 P.S. Data bus port, to be connected to data bus. Ground. microprocessors o All inputs and outputs except clock pins are TTL- 36 37 INDEX CLOCK This signal indicates the beginning of sector zero. External clock input, used a& timing clock for the compatible (clock pins require pullup) on-chlp processor. o Single + 5V power supply 40 Vee P.S. + 5V power supply. o 40-pin dual-in-line package Rev/1 6-93 J.LPD7261 Disl: Interface Pins (Defined by mode) Absolute Maximum Ratings· Pin QperaIIng Temporalu" O"C to +7IrC SliD FIOIIPV"like No. Name Storage Temperature -WC 10 +15O"C SYNC PLO LocklRead ~ Enallle Voltage on any Pin with Respect to Ground - 0.5V to +7.0V RIW DATA _"taData RlWCLK Read CI_ I Servo Clock Read Clock I Wrlta Clock *COMMENT: E~posing the device to stresses above 21 BTB,DIR Blt91 UnHSelectad Direction In those listed in Absolute Maximum Ratings could cause 22 BT8, STEP BH8 I Seek Enel Stap Pulse 23 BT7, RWC BH71 W R _ I (SR7) Reduced W\'fte Cu""", permanent damage_ The device is not meant to be 24 BT8,HS2 B"a I (AMFounel) I (SRa) H_SeIecI22 operated under conditions outside the limits described 25 BT5,HS1 B"5 I Unit Reedy I (SR5) Heed Select 2' in the operational sections of this specification_ Expo- 28 BT4,HSO BH41 On Cylinder I (SR4) _SeIecI20 sure to absolute maximum rating conditions for 27 BT3,DS1 B"31 SeekEnor I (SR3) 28 BT2,08O B"21 Fault I (SR2) D.... Select 20 extended periods may affect device reliability_ 28 m,WFLT Wrlta Fau" AC Characteristics (Processor Interface) 30 'flit READY 31 TG3, TAKO 1I'ackOOO ",,.meler Symbol - :=n~LImH=::::~..u:::- .. Unit Teot CondHlona 32 BDIR,SKC Direction Seek Complete CLOCK Cycle ~cy 90 nl 33 B'i'ii, DSD (SR setect Tiii) OlIve Selectad CLOCK Low TIme ~CH 32 no 34 tmtt,PCL Unit select tag Pnocomp Lata CLOCK High TIme ~CL 32 nl 35 SCT, PCE Secto, I (SR1) CLOCK RI.. TIme ~. 10 no 38 INOEX Index I (SAO) Index CLOCK Fall TIme ~F 10 nl 38 BTO,WGATE BHO wrlta Geta AD, eli Setup to1115 IA• no 39 BT1,RGATE BH1 ReadGete AO, CS Hold from Jifi tRA nl Not_ The mulbfunctlOr1 signals above are defined by the use of the Specify command By setting AD Pula Width tRA 200 ns the SSEe bit In the mode byte of the Specify command to a one the floppy-like mode IS Deta Delay from iIlI lAO 150 ns selected To better understand the functIOns of these pms, refer to the ,ndMdual mstructlons and to the SMD and floppy-like Interface defln~lOns Output Float Delay to. 100 ns Data Dotay from AD, C§ lAD 150 no Block Diagram AD, aSotup to WI! lAW na AD, CS Hold from WI! tWA no RiWClK Wii Pul.. WkHh Iww 200 na RGATE Data Sotup to Wli low 100 nl R/WDATA_ ClK Data Hold from Wi! two nl WGATE SYNC Format Controller Processing Unit RESET rry Time from 1m, Iov 200 nl SCT RESET Pul.. Width IRST 100 ~CY TC Pul.. WkHh Ire 100 no OREQ Data Buffer INT Detay from WI! !wi 200 no 8-byte FIFO DREQ Dolay lrom WIi IWA! 250 no DREQ Dotay from RD 1 I.A" 250 no 00-07 -------'----0-1 Command! INT __----_---1 Status Reg. DREQ Delay from RD2 lRAII 150 ns AC Characteristics (Floppy·like Interface) Symbol -:M='n=-L=ImII:::::;~:::",,~ Port Unit Teot Readl Control COnditions Write Internal Control RAM RlWClK Cycfe PerIod 83 ns RlWCLK Low TIme 30 ns RlWClK High TIme ns RiWClK RI.. TIme 10 nl ROM (Control Firmware) RlWClK Fall TIme 10 ns loes 40 ns RiWOATA Hold 110m DC Characteristics RlWCLK no RiWOATA Delay 110m ~.....ter SWlllbol --:M=ln~IJmH=::::~:::... ~ Unit Teot CqncIIHlona RlWClK loco 70 no RGATE Delay from Input Low Voltage VIL 0_5 + 0_8 v All except ClK RlWCLK tc.. 300 nl Input Low VoHoge V,L, 0_5 +0_6 v ClK WGATE Delay from InputHlghVoltage V., +2.0 Vee V Alloxcept CLK, RESET RlWCLK lew. 150 no Input High Voltage VIH, +3_3 Vee V CLK, RESET 70 no Output Low Voltage VOL +0.45 V ..,,-+2.OmA OREQ,INT, DO-D7 SYNC Dalay from RiWCLK Icsy 150 no Output Low Voltage VOL' +OAS V ..,,=+1.6mAall 080, OSI Sot up to §'iiii Iossr 250 ~~~ DREQ, INT, DIRSotuplo!lTEJl' IDiST 200 Output High Voltage Vo. +2.4 V I"" -100,,", DREQ, sm Pul.. Width tsr. 69 85 ~cy Normal INT, DO-D7 ~OS1 Hold from Seek Output High _ge Vo., +2A V IOH - 5O,ttc all 750 ~Cycy BOIR Hold from USTG "'OUT 15 Terminal Counr Iuvoo $CY Unft UNIT ADR Set up to Seloct USTG ....UT 20 40 $CY Opemlon UNIT ADA Hold from USTG IuTuA 15 $CY BOIR Set up to TAG 1 tSOT1 'D 48 $CY BDIR Hold from TAG 1 tnBD 80 $cv CYL. ADR Set up to TAG 1 t CAT• 'D 48 $cv c,n_, Silloct CYL ADR Hold !rom Oporatton TAGI t T1CA 60 $cv Inretrupr TAG 1 Pul.. Width BOIR Set up to TAG 2 tn ,G1 tam. 24 15 36 $cv cv 'NT --.Jr --------II1 J-------i:: BDIR Hold from TAG 2 HEAD ADA Set up TAG2 tHAT2 HEAD ADR Hold from TAG2 TAG2, Pu... Width tT2BO tT2HA tTAG2 70 15 70 24 70 36 cv cv cv cv Hood Soloct Dperatlon Wii ------'--=4 ~ ~ BDIR Set up to TAG3 tBDT3 24 cv RTZ, - BDIR Hold from TAG 3 Inoao 24 36 cv FAULTCLR., BT DATA Set up to TAG3 lam 58 cv SERVO, Dr#Wllnterface RTZIFURST HDld from TAG3 t13AIl 24 CY DATASTB. TAG 3 Pul.. Width t TAGa 58 66 cy Control c,_nm,ns:fP'- DATA STBJSERVD OFF. I!/W CLK Hold from TAG3 t,.,.OT 75 CY nmlng BOIR Delay from SSTG BOIR High nme BTS Set up to BDIR Ismo ..... tssao 24 54 24 88 36 CY CY cv Sonoo Unft to BTS Hold !rom BDIR t_ 24 33 oi>cv allltuo SSTG Pul.. Width IaoTc 200 cv nmlng RlWCLK Timing Waveforms Host System Interface RIW Data ('npUl) Clock II/W Data (Output) ~ ctt ~-W--SEEK COMPLETE DO UAO p - ' - - - - - - - - - j .::>O-~~-REDUCEO WRITE CURRENT Drive Interface DIRECTION IN The f.LPD7261 has been designed to implement two of the ~------~'::>o-~--WRITEG~E more popular types of interfaces: the SMD (Storage Mod- HEAD SELECT 0 ule Drive) and the floppy-like Winchester drive which has p - - - - - - - - - j ~><>--~~- HEAD SELECT 1 come to be known as the ST-506 (Seagate Technology) HEAD SELECT 2 interface. The desired interface mode is selected by the 7406 STEP specify command. DiiiVES'E[T DRIVESEL2 Floppy-like Interface DRIVESEL3 In the floppy-like mode the f.LPD7261 performs MFM encod- DRIVESEL4 ing and decoding at data rates to 6 MHz and provides all V2 LS138 7407 necessary drive interface signals. Included internally is cir- cuitry for address mark detection, sync area recognition, Note: ED "" 220n Pull-up/330n Pull-down terminator serial-to-parallel-to-serial conversion, an a-byte FIFO for data buffering, and circuitry for logical addressing of the SMD Interface drives. External circuitry required consists of control signal In the SMD mode the f.LPD7261 will support data rates buffering, a delay network for precompensation, a phase to 12 MHz in the NRZ format. All control functions neces- lock loop, a write clock oscillator and a differential trans- sary for an SMD interface are implemented on-chip with ceiver for drive data. The floppy-like interface can be de-multiplexing of a data lines performed externally by a implemented with as few as 12 to 14 additional SSIICs. single a-bit latch. A small amount of logic is required to multiplex the data and clock lines, and differential drivers and receivers are required to implement the actual inter- face. Depending on individual logic design and the number of drives used, the SMD interface may be implemented with as few as 12 ICs. 6-99 IJ-PD7261 ,,"PD7261D SMD Interface 2.5K-internal ROM is selected and executed. Some of these commands are executed by the command processor SYNC~ r - - - r - WRITE CLOCK without involvement of the format controller. When data r-- SERVO CLOCK transfers to and from the disk are made, the command R!WCLK~ processor loads the appropriate microcode into the format r- READ CLOCK controller, then relinquishes control. When the data transfer '-- WRITE DATA is complete, the command processor again takes control. Y R/WOATA 2 r- READ DATA One other important function that the command processor BTO 38 - BITO performs is managing the interface to the disk drives. The Bn 39 INDEX 36 TX - BIT 1 and - I NDEX command processor contains an I/O port structure similar to many single chip microcomputers in that the ports may RX be configured as input or output pins. Depending on the SCT 35 r- SECTOR mode of operation selected by the Specify command, the TGl 29 - TAG 1 command processor will use the bidirectional I/O lines for TG2 30 - TAG 2 different functions. TG3 31 - TAG 3 Command Register SSTG 33 - SR SELECT TAG This register is a write o~register. It is selected when the USTG 34 - - UNIT SELECT TAG AO input is high and the CS input is low. There are two kinds 8T2 28 BIT 2 of commands: disk commands and auxiliary commands. Each command format is shown below. BT3 27 r-- - BIT3 8T4 26 r-- - BIT 4 An auxiliary command is accepted at any time and is imme- diately executed, while a disk command is ignored if the on- 8-Blt r-- 8T5 25 - BIT5 Latch TX chip processor is busy processing another disk command. BT6 24 r-- - BIT6 A valid disk command causes the processor to begin 8T7 23 r-- - 81T7 execution using the parameters previously loaded into the BT8 22 f-- - BIT8 data buffer. Disk commands and the parameters needed ~f--~- 81T9 BT9 21 are described in the next section. BDIR 32 Disk Command Byte ~ DE FAULT CC4 CC3 CC2 CC1 CCO UA2 UA1 UAO - SEEK ERROR - ON CYLINDER - UNITREACY Umt Address (UA) RX Command Code - AM FOUND - WRITE PROTECTED CC4-CCO -- SEEK END 0 0 0 0 X (Auxiliary Command) ~c---- UNIT S'ELECTEO SENSE INT. STATUS GJ 0 0 0 X UNIT SELD 0 0 0 X SPECIFY GJ I TX UNIT SEL 1 0 0 1 1 X SENSE UNIT STATUS I UNIT SEL 2 0 0 0 X DETECT ERROR GJ 0 0 1 [B) RECALIBRATE Note: TX and AX are differential drivers and receNers 0 0 [B] SEEK 0 [5) FORMAT Internal Architecture 0 0 0 [51 VERIFYID The fLPD7261 can be divided into three major internal 0 0 1 [51 READID logic blocks: command processor; format controller; micro- 0 0 X READ DIAGNOSTIC processor interface. 0 1 1 X READ DATA Command Processor 0 0 X CHECK The command processor is an 8-bit microprocessor with its 0 1 X SCAN own instruction set, program ROM, scratchpad RA!V1, ALU, 0 X VERIFY DATA and I/O interface. Its major functions are: X WRITE DATA o To decode the commands from the host microcomputer Note: CD means the UA field IS 000 [Bjlndlcates buffered mode when set that are received through the 8-bit data bus; [51 mdlcates skewed mode when set o To execute seek and recalibrate commands; o To interface to the drives and read the drive status lines; Format Controller o To load the format controller with the appropriate micro- The format controller is built with logic that enables it to code, enabling It to execute the various read/write data execute instructions at very high speed: one instruction per commands. single clock cycle. The major functions it performs are: The command processor microprocessor is idle until it receives the command from the host microcomputer. It then o Serial-to-parallel and parallel-to-serial data conversion; reads the parameter bytes from the FIFO, and loads them o GRG and EGG generation and checking; into its RAM. The command byte is decoded and, depend- o MFM data decoding and encoding; ing on its opcode, the appropriate subroutine from the o Write precompensation; 6-100 J.LPD7261 o Address mark detection and generation; Both of the CEH and CEl bits are cleared by a disk com- o ID field search in soft-sector format; mand, but both bits may be cleared before the next disk o DMA data transfer control during read/write operations. command by issuing a ClCE auxiliary command. The major blocks in the format controller are the sequencer The interrupt caused by the SRO bit indicates that a Sense and the serial/parallel data handler. The sequencer con- Interrupt Status command should be issued by the host sists of a writable control store (32 words by 16 bits), a microprocessor so that it can determine the exact cause of program counter, branch logic, and the parameter register. the interrupt. However, the f1PD7261 may be processing a The serial/parallel logic consists of a parallel-to-serial con- disk command when the interrupt occurs. Since it is not verter for disk write operations, a serial-to-parallel con- possible to issue a disk command while the f1PD7261 is verter for disk read operations, precompensation logic for busy, an HSRO auxiliary command can be issued to set the writing MFM data, comparator logic that locates sync fields, SROM (Sense Interrupt Request Mask) and mask the inter- address marks, and ID fields. There is also comparator rupt. The SROM is reset upon completion of the disk logic that is used during Verify Data commands. command in progress. DMA Control Block Diagram of the Format Controller When true, the DREO pin and the DRO (data request) bit of the status register indicate a request for data transfer Write Data between the disk controller and external memory. These Precomp. Early Precomp. Late are activated during execution of the following disk RIW C l o c k - - - - - f - - - - - 4 - - - - I commands: Read Oata HDC <- memory: FORMAT, Verify ID, Scan, Verify Data, Write Data Data HDC -> memory: Read ID, Read Diagnostic, Buffer Read Data Data being read from a disk or external memory is tem- porarily stored in the data buffer (a-bytes maximum), and is transferred to external memory or a disk respectively. Data transfers are terminated externally by a reset signal or RAM by a read or a write data operation coinciding with an active terminal count (TC) signal. They are also terminated inter- nally when an abnormal condition is detected or all the data Microprocessor Interface Read/Write Control The internal registers are selected via the truth table shown. Register Selection Table specified by the sector count parameter (SCNT) has been transferred. Data transfers are accomplished by RD or WR signals to the f1PD7261 when DREO is active. During Read opera- tions, DREO goes active when the FIFO contains three or II • CS AO RD WR Selection more bytes. If the FIFO contains three bytes and an RD 0 0 0 1 Data Buffer pulse is issued, DREO goes low within t RAI1 . DREO 0 0 0 Register CD will stay active on the final sector until the final byte is 0 0 1 Status Register extracted. In this case, DREO goes low within t RAI2 . During 0 1 0 Command Register Write operations DREO is asserted as soon as a WRITE 0 X 1 1 DATA command is accepted. DREO remains high until the Don't Care X X X FIFO contains six bytes, at which time it goes low within 0 X 0 0 Inhibited tWAI ' DREO corresponds to FIFO almost-full and FIFO Note: Data clocked In on riSing edge of SCK @ Broken hne denotes consecutive sendlnq of next data SlACK --------------------------------~~ 6-117 j.LPD7720 Parallel 1/0 Instructions The 8-bit parallel 1/0 port may be used for transferring The SPI has 3 types of instructions, all of which are one 23- data or reading the SPI's status. Data transfer is han- bit word and execute in 250 ns. dled through a 16-bit Data Register (DR) that is software- configurable for double or single byte data transfers. The Arithmetic/Move-Return (OP = aO/RT = 01) port is ideally suited for operating with 8080, 8085, and 8086 processor buses and may be used with other pro- cessors and computer systems. 22 21 20 l~ll8 17 16 15 j 14.1 13 12111 10 9 J:l 7 6 5 41 3 2 1 0 I OP o0 ~~'ect I ALU I~ I I DPa. OPH-M Ii I SRC I DST Parallel R/W Operation l RT o1 Same as OP instruction CS Ao WR RD Operation 1 X X X No effect on internal operation. 0 0 -07 OP/RT Instruction Field Specification X X 1 1 are at high impedance levels There are two instructions of this type, both of which are 0 0 0 1 Data from 0 0 -0 7 are latched to DR Q) capable of executing all ALU functions listed in Table 2. 0 0 0 Contents of DR are output to 0 0 -07 Q) The ALU functions operate on the value specified by the 0 0 Illegal (SR is read only) P-select field. (See Table 1.) 0 1 0 Eight MSBs of SR are output to 0 0 -07 Besides the arithmetic functions these instructions can 0 X 0 0 Illegal (May not read and write also modify (1) the RAM Data Pointer DP, (2) the Data ROM simultaneously) Pointer RP, and (3) move data along the on-chip data bus Note: (j) Eight MSBs or 8 LSBs of data register (DR) are used depending on DR status bit (DRS) from a source register to a destination register (the possible The conditIOn of 5ACR = 0 IS equivalent to Ao = CS = 0 source and destination registers are listed in Tables 7 and 8 respectively). The difference in the two instructions of this type is that RT executes a subroutine or interrupt return at Status Register (SR) the end of the instruction cycle while the OP does not. MSB LSB Table 1. P-Select Field o : 0 : 0 : 0 Mnemonic D zo D'D ALU Input RAM 0 0 RAM The status register is a 16-bit register in which the 8 most lOB 0 1 Internal Data Bus Q) significant bits may be read by the system's MPU for the M 0 M Register latest 1/0 and processing status. N N Register Note: (j) Any value on the on-chip data bus Value may be selected from any of the registers hsted Status Register Flags In Table 7 source register selections Flag Description RQM (Request for A read or write from DR to lOB sets RQM ~ Table 2. ALU Field Master)._ _ _ _ _ _-c1_.Ac:.n,,-,-ex=ternal read (write) resets RQM ~ O. Flags SA 1 SAO CA ZA OVA 1 OVAO USFl and USFO General purpose flags which may Mnemonic D18 D17 D 16 DiS ALU Function SSi SSO CS Z8 OYBi OVBO (User Flags 1 and 0) be read by an external processor for user NOP 0 0 0 0 No Operation defined Signaling. OR 0 0 0 1 OR DRS (DR Status) For 16-bi! DR transfers (ORC ~ 0). AND 0 0 1 o AND DRS ~ 1 after firstS bits have been XOR 0 0 1 1 Exclusive OR x transferred SUB 0 1 0 o Subtract DRS ~ 0 after all 16 bits transferred. ---- ADD 0 1 0 1 ADD OMA (OMA Enable) OMA ~ 0 (Non-OMA transfer mode) OMA ~ 1 (OMA transfer mode). SBB 0 1 1 o Subtract with Borrow ORC (DR Control) ORC ~ 0 (16-bit mode) ADC 0 1 1 1 Add with Carry _. ____. _ _ _ _ _..:O::.:R-'-C=_~_''_('.::S__=-b:..cit:..:m.:.co::.:d::.:e''').______...__ _ DEC 1 0 0 o Decrement Acc SOC (SO Control) SOC ~ 0 (16-bit mode) INC 1 0 0 1 Increment Acc SOC ~ 1 (S-bit mode):.._______ _ CMP 1 0 1 o Complement SIC (SI Control) SIC ~ 0 (16-bit mode) Acc (1's SIC ~ 1 (S-bit mode). Complement) EI (Enable Interrupt) EI ~ 0 (interrupts disabled) SHR1 1 0 1 1 1-bltR-Shlft x EI ~ 1 (interrupts enabled)..____.__ _ SHL1 1 1 0 o 1-blt l-Shlft Pl, PO PO and Pl directly control the state of out- SHL2 1 1 0 1 2-bit L-Shlft x -------,-"- (Ports_O and 1) ___ ---"-ll!Pins PO and.!>.': SHL4 1 1 1 o 4-blt L-Shlft X I -~-------c----·---X - - .- - · - 1 - - - - - · - - XCHG 1 1 1 1 8-blt Exchange Notes: t May be affected, depending on the results - PrevIous status can be held a Aeset X Indefinite 6-118 f.1PD7720 Table 3. ASL Field Table 8. DST Field Mnemonic D. 4 Ace Selection Mnemonic D3 D2 D. Do Destination Register ACCA 0 Ace A @NON 0 0 0 0 No Register ACCB @A 0 0 0 Ace A (Accumulator A) @B 0 0 0 Ace B (Accumulator B) Table 4. DPL Field @TR 0 0 1 TR Temporary Register Mnemonic D. 3 D. 2 Low DP Modify (DP3"DPol @DP 0 0 0 DP Data Pointer DPNOP 0 o No Operation @RP 0 0 RP ROM Pointer DPINC 0 Increment DPL @DR 0 0 DR Data Register DPDEC o Decrement DP L @SR 0 1 1 1 SR Status Register DPCLR ClearDPL @SOL 0 0 0 SO Serial Out LSB 3 and ends at the falling edge of <1>2. The ALU commences operation at the JNCA 0 0 0 0 o 0 o CA = 0 rise of <1>1, and completes all operations at the fall of <1>3. JCA 0 0 0 0 o 0 CA = 1 Once an instruction-ROM address is available at the rise JNCB 0 0 0 0 o o CB = 0 of <1>3, the instruction is latched, and the source register and JCB 0 0 0 0 o 1 CB = 1 RAM address are determined so that data may be put on JNZA 0 0 a 0 o o ZA = 0 the internal bus by the fall of <1>4. The ALU input is latched JZA 0000 o 1 ZA=l at the rise of <1>1, and the output is available for accumula- JNZB 0 0 0 0 o ZB = 0 tor latch at the rise of <1>3. The cycle then repeats. JZB 0000 ZB = 1 The multiplier takes its input at the rise of <1>1, and its results are available in 250 ns, at the rise of the next <1>1. JNOVAO 0 0 0 o 0 0 OVAO = 0 JOVAO 0 0 0 o 0 OVAO = 1 Absolute Maximum Ratings* JNOVBO 0 0 0 o OOVBO=O T. = 25·C JOVBO 0 0 0 01 OVBO=l Voltage (Vcc Pin) -0.5to +7.0V0 (bO ___ 30V - - - 10V down-loaded to the Evakit from a development system via an RS232 port. The Evakit also serves to program the (bF (bR fLPD77P20, a full-speed EPROM version of the SPI. A demonstration mask ROM chip, containing some common digital filtering routines, including N-stage IIR (biquadratic) and FIR (transversal) filters, is available .to test hardware interfaces to the SPI. Further operational details of the SPI can be found in the fLPD7720 Signal Processing Interface Technical Manual. OB0- 7 ----------.,...-----4 6-121 JLPD7720 Operation of the SPI development tools is described in the A Signal Processing System Using Cascaded SPls & Serial Cross-Assembler User Manual, the Simulator Operating Communication Manual, the Evakit-7720 Operation Manual, and the NEC Development Systems Users' Manual. Spectrum Analysis System Product Example $ensor p.... USing the flP01720 ,/ Microphone Thermal P .....ure Llghl :...: ...............: Freq- Band-limiting Filter A Signal Processing System Using SPI(s) as a Complex Computer Peripheral An Ana/og-to-Ana/og Digital Processing System Using a Single SPI Analog In Package Outlines For Information, see Package Outline Section 7. Ceramic, jLPOn200 n200S-REV3-7-83-CAT 6-122 NEe .....PD77P20 UV ERASABLE SIGNAL PROCESSING INTERFACE (SPI) Description Pin Configuration The fLPD77P20 is an ultraviolet erasable and electrically programmable (EPROM) version of the j.LPD7720 signal processing interface (SPI). Functionally, the two parts are v" Vee identical. Program and data ROM, masked for the oACK Ao fLPD7720, are implemented in EPROM for the fLPD77P20. ORO CS/PROG The fLPD77P20 is useful in prototye applications or in sys- AD tems where quantities are insufficient for masked ROM de- P, WR velopment. For a complete functional description consult the Do SORQ 0, SO fLPD7720 Technical Manual. 0, 0, SOEN Applications 0, SIEN D Speech synthesis and analysis SCK D Digital filtering D. INT D Fast Fourier transforms (FFT) 0, RST D Dual-tone Multifrequency (DTMF) transmitters/receivers GND ClK D High-speed data modems D Equalizers D Adaptive control Pin Identification D Sonar/radar image processing Pin D Numerical processing No. Symbol 1/0 Function Vpp Programming voltage DACK DMA Request Acknowledge. Indicates to the Features ..,POn20 that the data bus IS ready for a DMA D Internal ultraviolet EPROM (instruction and data) = transfer. (DACK CS. Ao = 0) ORO o DMA Request signals that the ....pomo Is re- D Programmable with single pulse questing a data transfer on the data bus. D Compatible with fLPD7720 4.5 Po,p, o po. P, are general purpose output control lines D SMHz clockl250ns instruction execution 6-13 00-0, 110 Three- Port for data transfer between the data or sta- D 16-bit data word s1ate tus register and the data bus. 14 D Multioperation instructions for optimizing program GND 15 ClK Single phase Master Clock Input. execution 16 RST Reset initializes the I-lPD7720 Internal logic and D Large memory capacities sets the PC to O. - Programmable program ROM 512 x 23 bits 17 INT Interrupt. A low to high transition on this pin - Programmable data ROM 512 x 13 bits will (if Interrupts are enabled by the program) execute a call Instruction to location 100H. - Data RAM 12S x 16 bits 18 SCK Serial Data InputiOutput Clock. A serial data bit D Fast (250ns) 16 x 16-bit parallel multiplier with 31-bit is transferred when this pin IS high. result 19 SIEN Serial Input Enable. This line enables the shift clock to the serial input register. D Dual accumulators 20 SOEN Senal Output Enable. This pin enables the shift D Four-level subroutine stack for program efficiency clock to the serial output register D Multiple I/O capabilities 21 SI Serial Data Input. This pin inputs 8- or 160M - Serial serial data words from an external device such as an AID converter. - Parallel 22 SO o Senal Data Output. This pin outputs 8- or 160bit -DMA data words to an external device sucll as a D/A converter. D Fully bus compatible with most microprocessors, 23 SORa OTIlree- Serial Data Output Request. Specifies to an ex~ including: state ternal device that the serial data register has - fLPDSOSO been loaded and is ready for output. SORQ is reset when the entire 8- or 160blt word has - fLPDSOS5 been transferred. - fLPDSOS6 24 WR Write control Signal writes the. contents of the - fLPD7S0 (ZSO),. data bus into the data register. Read control signal. Enables an output to the D +5V power supply 25 RD data port from the data or status register. D NMOS technology 26 CSiPROG Chip Select. Ena..!!!..es data transfer with data or D 2S-pin dip package status port with RD or WR. 27 Ao Selects data register for readfwrite (low) or sta- tus register for read (hl9h)- 1M zao IS a regIstered trademark of Zllog Inc 28 Vee +SVpower Rev/1 6-123 p.PD77P20 Block Diagram I OMA I Interface ORO Logic Instruction I RAM - ROM 128x16 Multiplier 512.23 I $ensl I Mr- 110 PC r I -1 lr--o'--p"""11 lr ~r Ir--K........t """11 I ~ 0 Stack 1 2 3 r- L-, 11 I Shift I I --Q: Porl: P, p, General 110 L~~...J TR MPX I ~ Flag A S A S A C A Z A 0 V V 0 - _ DR Read/write Control Logic 1 0 A A oata 1 0 ALU ROM ~ RP-- '-- S S C Z 0 0 512x13 Flag B B B B B V V CLK-- 1 0 B 1 B 0 - I Acc A I r- D RST_ INT_ Vcc - I Ace B I '--- SR I--liD V _ pp GND- Interrupt IL I--WI! I--~PROG '--A, Parallel 1/0 Mode Selection DC Characteristics ~PIns Inotruclfon ROM program Data ROM program 5PRoG V,. V,. Vpp VPP Vpp Vee +5V +5V Outputs 0.. 0,. _tar T. = -1O'C +7O'C; Vee = +5V ± 5% Input Low Symbol VIL Min -0.5 IJmItto TvI' Max 0.8 Unit V Tnt Conditione lnatruction ROM read VIL Vee +5V Dour Voltage Data ROM read VIL Vee +5V Dour Input High V,. 2.0 Vee +0.5 V VIL 0,.. Voltage Vee +5V Dour InputCLK V",L -0.5 0.45 V OperatIon VII Voltage Low HIghZ InputCLK V"'. 3.5 Vee + 0.5 V Voltage High Output Low VOL 0.45 V IOL- 2.QmA Voltage Absolute Maximum Ratings* Output High VO. 204 V 10.= -4OO,.A Voltage T. = 25"C Input Load IUL -10 ,.A v.. -ov Supply Voltage, Vee -O.3Vto +7.0V Currant InpulLoad IUH 10 ,.A VIN= Vee Input Voltage, V, -O.3Vto +7.0V Current OUtput Voltage, Vo -O.3Vto +7.0V OutputRoat ILOL -10 ,.A Vour - OA7V Leakage Operating Temperature, TOPT -1O"C to + 7O"C Output Float iLo. 10 ,.A Vour- Vee Storage Temperature, TSTG -65'C to +15O'C Leokaga Supply Voltage, Vpp -O.3V to +22V Power Supply Icc 270 3SO mA CUrrent Program Mode 70 *COMMENT: Exposing the device to stresses above VPP CUrrent I.. rnA Max Pulae CurrentCY 122 2000 ns elK Pulse Width <1>0 60 ns Read Operation Voltage at measuring elK Rise TIme elK Fall Time <1>' <1>' 10 10 ns ns point of timing 1.0V and 3.0V .... Cs, DACK .::::t k:::: Ro~~I··-rtRA "'" CS. O~K Setup IAR ns TimeforRD Ao, CS, OACK Hold TImeforRD IRA ns DB..,_____I::'~ --ilt.-__ _ RD Pulse Width IRR 250 ns Data Delay from RD IRO 150 ns CL - l00pF Read to Data Floating IOF 10 100 CL = 100pF Write Operation "'" CS, O~K Setup ns TimeforWR lAw Ao, CS, OACK Hold ns TimeforWR twA WR Pulse Width tww 250 ns Data Setup Time forWR low 150 ns Data Hold Time forWR two ns RD, WR Recovery IRV 250 ns DMA Operation Time ORa Delay Time lAM 150 OACK Delay Time toACK <1>0 SCK Cycle Time Iscy 480 DC ns SCK Pulse Width ISCK 230 ns SCK Rise Time l.sc 20 ns Voltage at measuring point SCK Fall Time IISC 20 ns of timing 1.0V and 3.0V Seriallnput/Output SORODelay loRa 30 150 ns CL = 100pF SOEN Setup Time ~s forSCK !soc 50 SCK SOEN Hold Time tORO !cso 30 ns forSCK SORO SO Delay lOCK 150 ns SO Delay from SCK wrth SORO tozRO 20 300 ns SO Delay from SCK lozse 20 300 ns SO Delay from SOEN loz. 20 180 ns SOEN to SO Floating 1HZ. 20 200 ns SCK to SO Floatmg Itiz,e 20 300 ns SO Delay from SCK withSORQ tHZRQ 70 300 ns SEIN, 51 Setup Time loe 55 ns SEIN, 51 Hold Time !co 30 ns 81 Po, p, Delay lop CY + 150 ns RST Pulse Width IRST CY Port Output INT Pulse Width tiNT "CY Note; Voltage at measunng point of AC tlmmg VIL = VOL = OBV ClK~ ~ VIH = VOH = 20V P.,P, Capacitance T. = 25·C; Vee = OV Reset Limns RST Parameter Symbol Min Tvp Max Unit Test Conditions ClK, SCK Capacitance C. 20 pF Input Capacitance =1MHz Interrupt ClN 10 pF fc Output Capacitance CoUT 20 pF Input Waveform of AC Test (except CLK,SCK) Notes: --GD--C Address lFEH-OOOH lFFH V 6-129 f.tPD77P20 Operation Mode Package Outlines The iJ.PD77P20 may be utilized in an operation mode after For Information, see Package Outline Section 7. the instruction ROM and data ROM have been pro- grammed. Operation modes are invoked in slightly different Ceramic, ".PD77P20D, has quartz window manners depending on the mask level and the specific mask lot within the series. K·mask The iJ.PD77P20 K-mask requires that Vpp be supplied in a different manner than for the E-mask for an operation mode only. Vpp voltage should be supplied in the following fashion: R o ( ' - - - _ 1 ' - - - K f-----.----o+5V ± 5% Vee Vpp = Vee - (0.6 ± 0.2S)V Ipp Min = O.SmA Max = 3.SmA A silicon junction diode of 0.6V forward voltage (V F) should be used. R should be BOOO to 1.BKO to satisfy the Vpp and Ipp requirements. ' Parts before lot K21031 (excluding K21031) require a NOP (No Operation) to be programmed into instruction ROM lo- cation OOOH in order to properly operate at BMHz. For parts with lot numbers equal to or greater than K21031 location OOOH of the instruction ROM does not require a NOR for BMHz operation. E·mask and P·mask The iJ.PD77P20 E-mask and P-mask requires that Vpp be connected directly to Vee for an operation mode as shown. The P-mask version is packaged as a cerdip. Note that these versions are also compatible with the K-mask Vpp specifications. r------_---<>+sv ± 5% V" Vee No additional constraints apply to these versions. For both versions adequate power supply decoupling should be pro- vided. 77P20D5-REV1-7-83-CAT-D 6-130 NEe fJ-PD7751 ADPCM VOICE SYNTHESIS LSI Description Pin Configuration The j.LPD7751 is an LSI device for high quality voice synthesis applications. Based on an ADPCM algorithm (adaptive differen- tial PCM). the device decodes voice data stored in external TEST, V,,( + 5V) ROM and outputs a synthesized voice signal. This output may XTAL, TEST 3 be sent to a conventional audio speaker through an 8-bit D/A XTAL2 BUSY SEL 2 converter. filter and power amplifier. RESET I.C SEL1 Eight messages can be stored per 128K-bit memory bank. at START SELo compressed bit rates of 14 to 20K-bits/second. Efficient encod- TEST2 vo, ing of silences within a message allows further compression of I.C va. digitized voice signals. Voices may also be mixed with back- I.C. VO, ground music or other sounds. I.e. VO, I.C. VO, Features DATA, VO, D ADPCM decoding capability DATA, OATA 2 VO, VO, D Eight messages selectable per memory bank DATA3 Vc. c (+ 5V) D Compatible with 2716/32 external ROM DATA. PROG D Unlimited number of messages storable in multiple memory DATA5 AD, DATA,; AD, banks DATA7 AD, D Variable bit rate 14 to 20Kbps GND AD, D Sampling clock 4. 5. or 6KHz D Compressed encoding for pauses D Easy voice processing Pin Identification Pin High quality voice reproduction 110 Function m No. Symbol Name Minimum dependence on voice characteristics of 2,3 XTAL, Crystal Form a clock oscillator CirCUit when externally con- speaker XTAL2 nected to 6MHz cry~tal .~~-~ RESET Reset Initializes the f.LPD7751 Internal logic Easy analysis and data generation START Start Starts output of message that has been selected Stable voice quality by SElO'" SEL2. Active low trigger I~~~_~~_ 12-19 DATAo Data Transfers the compressed vOice data from an Combined voice and background music capability to Signal external memory for decodmg. D N channel MaS 21-24 ADo DATA7 .--.~~ Specifies to 1/0 expander ports (eg, j..lPD8243) the Address 0 D + 5V single power supply to Signal address of the external memory contalmng the stored voice data. D 40-pin plastic DIP 25 AD, PROG Program 0 -~--.--~-~---~~- Strobe Signal for decoding address signals Low to Signal high transition indicates address information IS -~~~~~~~~~~~- - 27-34 VOo VOice 0 Outputs to D/A converter the 8-blt vOice Signal that to Signal has been decoded via ADPCM VO, 35-37 -""SELo Messag;-~-I- SpeCifies which of eight types of stored messages to Select to be output from external memory SEL2 38 Busy Busy 0 Chip status; goes low dUring decode and output Signal operatlo~~_. _______ . ____ ._ _ _ ~ __ 26,40 Vee Power + 5volt power supply. Supply 20 GND Ground ~--.- ------ -----~-- 5,8-11 IC Internal 0 Must be left open dUring normal operation. Connection ~~~~~--~-~~---~~----~-~~~- 1,7,39 TEST1 Test I Inputs for LSI testing. Must be connected to GND to Input dUring normal operation. TEST3 Package Outlines For information, see Package Outline Section 7. PlastiC. "PD7751 7751 DS·7·83·CAT-W 6 -131 Notes 6-132 NEe I-LPD7752 FORMANT VOICE SYNTHESIS Description Pin Identification The fLPD7752 is an LSI for voice synthesis which employs Pin formant data as accumulated parameters. With five filters No. Symbol Name 1/0 Function corresponding to the first through the fifth formants, vocal REO Request 0 Requests a formant parameter from external ROM. Returns to low level after the characteristics are reproduced to synthesize voice at bit rates parameter has been written, or If an error as low as 2400bps. The fLPD7752 can be connected easily occurs during the parameter transfer, or .f a stop command IS received dUring vOice to any bus system of the SOSOA family. Through serial =------c:::-=c--:=--~~----c=--~~"----~~~~=__- generation. ..- ..~~ interfaces, the LSI can also be connected to various other BUSY Busy 0 Indicates message select command accepted and synthesIs operation IS In microcomputers. The fLPD7752 operates with attractive low progress. power consumption because of its CMOS structure. RESET Reset Resets deVice. 4-11 DB ... Data Bus Three- Bidirectional data bus for input of mode, DB, state command, and formant parameter data to Features f.lPDn52, and output of status ~nformation. D Voice synthesizing system using formant parameters 12 SCK Serial Clock Clock for senallnput. Should be held high for parallel input mO.c:de::::..._ _ _ _ __ D 5 formants - first through fifth 13 SI Senallnput Senal input for mode or command data, as specified by Ao. D Bit rate variable between 5600bps and 2400bps 1. GND Ground D Internal 32K-bit ROM for voice data storage (voice 15,16 Ao,A1 Input Data Specification of parallel bus Input as mode, duration: approx. 13 seconds at 2400bps, max 63 Identification command, or formant data (see 1/0 Control Signals Table). For serial input: AtJ = 0 for messages) mode; Ao := 1 for command. D External formant parameter ROM (option) 17 CS Chip Select Low-level signal enables read/Write transfers on parallel data bus. DOn-board 9-bit D/A converter - option provided to 18,19 X1,X2 Crystal Connection for 3.6MHz (3.579545MHz) interface an external D/A converter Oscillator crystal or ceramiC oscillator, or for Input of external clock Into Xl. D 3 different voice synthesizing speeds (slow, normal, and 20 WR WrIte Low-level signal wntes bus input to the fast) f.lPD7752 (mode, command, or formant data as specified by Ao, Al, see 110 Control D Frame length: 10ms or 20ms Signals Table). D Bus-compatible with the fLPDSOSOA, fLPDSOS5A and 21 RD Read Low-level signal reads status information from the f.lPD7752, independent of the value fLPDS04S ofAoandA1. D Serial interface for mode/command input 22 VSTB Voice Output 0 Strobe indicates that all 16 bits of senal data Strobe have been output from DVO (digital vOice D Clock oscillator circuit output). 23 AVO Analog VOice 0 SyntheSized analog VOice output from 9-blt D CMOS structure Output D/A converter. ReqUires external load D + 5V single power supply resistor 2. GNDA Analog Ground Ground potential for AVO (analog vOice D 2S-pin plastic DIP output) 25 TEST Test Input for LSI testmg. Must be connected to GND durmg normal operation. Pin Configuration 26 VCK Voice Clock 0 Output of 16 clock pulses synchrOnized to eVOslgnal. 27 DVO Digital Voice 0 Synthesized digital voice output as the 14 REO v" Output MSB of a 16-bit serial data stream. Output IS LSS first, and the first two (LSS) bits are BUSY DVO zero. RESET VCK 28 Vee Power +5V power supply. DB, TEST DB, GNDA DB, AVO I/O Control Signals DB, VSTB cs RD WR Ao A, Operation DB, AD X X X No operation DB, WR X X Status read DB, l(, 0 Formant parameter write DB, X, Modewnte SCK cs Prohibited 51 A" Command write GND A, Note: 0 - Low 1 = High X = Don't Care Package Outlines For information, see Package Outline Section 7. Plastic, fJ.P07752 nS205-7-83-CAT-W 6-133 Notes 6-134 NEe fJ-PD7761/fJ-PD77621MC.4760 SPEECH RECOGNITION 3·CHIPSET Description Features The fLPD7761, fLPD7762, and MC-4760 constitute a 3-chip D Recognition of 128 isolated words LSI set containing the main functions of an isolated word, D Compressed DP matching algorithm speaker-dependent recognition system. These functions D Word registration capacity: 128 to 512 words include an analog interface, processing for voice analysis, (with 16K-to 64K-byte memory) compressed dynamic programming (DP) matching, and D Word duration up to 2 seconds system control. The 3-chip set employs a DP time warping D Average 0.5 seconds response time for recognition algorithm to compensate for variations in the rate of speech, D Recognition rate above 98 percent which greatly facilitates the matching of a given spoken D Directly connectable to microphone for voice input phrase to a stored vocabulary of digitized words. Three kinds D Supports parallel, serial, and RS-232C system I/O of system I/O interface are supported for ease of control by interfaces external microcomputers. With this LSI chip set, speech D Convenient commands for recognition, training, data recognition systems can be developed for low cost and with transfer, and other functions low total chip count. D Includes analog interface (MC-4760), analysis and calculation processor (fLPD7761), and control processor (fLPD7762) Pin Configurations D Requires + 5V, + 12V, - 12V power supply D A/D converter sampling at 10kHz AB,s Vo< ,bout AB'4 DB, AB,~ DB, AB'2 DB, AB" DB. AB,o NC V" DB, AB, PU A, DB, AB. DB, AB, NU CS DB, AB, AB, NU lID DORa HST AB. NU WA , CG AB, II 0, DOAO WAIT AB, RE AB, 0, NU WR AB, liD NU 0, DVI NU NU CG 0, NU MM, lotH MM, 0, SMPL, TO SEL, SClK SAK SELo scs OBF 0, SMPL, NU IBF NU NU 0, AST SCK RST GND ClK SI ATCs SO ATC4 RESET ATC a X, ATC 2 X, ATC, GNO ATCo MICIN LINE IN DVO lPF OUT ClK GADJ SMPL NC GND GND V+ V- ATC o NC ATC1 NC ATC 2 AOUT ATC", ATC 4 ATC 6 ATC s 776117762/4760DS-7-83-CAT-W 6-135 ---_.,----- Notes 6-136 NEe "PD8155 "PD8155-2 "PD8156 "PD8156-2 2048 BIT STATIC MOS RAM WITH 1/0 PORTS AND TIMER OESCR IPTION The IlPD8155 and IlPD8156 are IlPD8085A family components having 256 X 8 Static RAM, 3 programmable I/O ports and a programmable timer. They directly interface to the mUltiplexed IlPD8085A bus with no extern~1 logic. The IlPD81 55 has an active low chip enable while the IlPD8156 is active high. FEATURES • 256 X 8·Bit Static RAM • Two Programmable 8-Bit I/O Ports • One Programmable 6·Bit I/O Port • Single Power Supplies: +5 Volt, ±10% • Directly interfaces to the IlPD8085A and IlPD8085A-2 • Available in 40 Pin Plastic Packages PIN CONFIGURATION II PC3 vcc PC4 PC2 TIMER IN PCl RESET PCO PC5 PB7 'fi"M"ER 5UT PBS 101M PB5 CE/EE* PB4 AD PB3 WR IlPD PB2 ALE 8155/ PBl ADO 8156 PBo ADl PA7 AD2 PAs AD3 PA5 AD4 PA4 AD5 PA3 ADS PA2 AD7 PAl Vss PAO *"PD8l55: ~ "PD8l56: CE Rev/3 6-137 IlPD8155/8156 The pPD8155 and pPD8156 contain 2048 bits of Static RAM organized as 256 X 8. FUNCTIONAL The 256 word memory location may be selected anywhere within the 64K memory DESCRIPTION space by using combinations of the upper 8 bits of address from the pPD8085A as a chip select. The two general purpose 8-blt ports (PA and PB) may be programmed for Input or output either in interrupt or status mode. The single 6-bit port (PC) may be used as control for PA and PB or general purpose Input or output port. The pPD8155 and pPD8156 are programmed for their system personalities by writing into their Command/Status Registers (C/S) upon system Initialization. The timer is a single 14-bit down counter which is programmable for 4 modes of oper- ation; see Timer Section. Vee 1+5VI BLOCK DIAGRAM t - 8 - - -- ~ p L A IOiNi A R 8 T 1----- A '-- CE e M ~ H ALE -'C - r---- p B 8 '-- RESET ~ 0 N T R 0 L - --- - - P e 6 TIMER IN J TIMER I TIMER OUT I Vss IOVI Operating Temperature . . . . . . . . . . . . . . . . . O°C to +70°C ABSOLUTE MAXIMUM Storage Temperature . . . . . . . . . . . . . . . _65°C to +150°C RATINGS* Voltage on Any Pin . . . . . . . . . . . . . . . . . . . . . . . . -0.5 to +7 VoltsCD Power Dissipation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.5W Note: CD With Respect to Ground. Ta = 25°C *COMMENT. Stress above those listed under "Absolute MaXimum Ratings" may cause permanent damage to the deVice. This is a stress ratIng only and functional operation of the device at these or any other conditions above those indIcated In the operational sectIons of this speclflcatJOn IS not Implied. Exposure to absolute maximum rating conditions for extended periods may affect deVIce reliability. 6-138 ,..PD8155/8156 PIN IDENTIFICATION PIN NO. SYMBOL NAME FUNCTION 1,2,5 PC3,PC4,PC5 Port C Used as control for PA and 39, 3S, 37 PC2, PC1, PCO PS or as a 6·bit general purpose port 3 TIMER IN Timer Clock In Clock input to the 14·bit binary down counter 4 RESET Reset In From J.lPD9JS5A system reset to set PA, PB, PC to the input mode 6 TIMER OUT TImer Counter Output The output of the timer function 7 10/M I/O or Memory Selects whether operation to Indicator and from the chip is directed to the internal RAM or to I/O ports S CE/CE Chip Enable Chip Enable Input. Active low for J.lPDS155 and active high for J.lPDS156 9 RD Read Strobe Causes Data Read 10 WR Write Strobe Causes Data Write 11 ALE Address Low Enable Latches low order address in when valid 12·19 ADO - AD7 Low Address/Data 3·State address/data bus to interface directly to J.lPDSOS5A 20 VSS Ground Ground Reference 21·2S PAO - PA7 Port A General Purpose I/O Port 29·36 PBO - PB7 Port B General Purpose I/O Port 40 VCC 5 Volt Input Power Supply DC CHARACTERISTICS Ta = o°c to +70°C; VCC = 5V ± 10% LIMITS TEST PARAMETER SYMBOL MIN TYP MAX UNIT CONDITIONS Input Low Voltage VIL -0.5 O.S V Input High Voltage VIH 2.0 VCC-+O· 5 V Output Low Voltage VOL 0.45 V IOL= 2mA Output High Voltage VOH 2.4 V IOH K 400pA Input Leakage IlL ±10 pA VIN .. Vee to OV Output Leakage Current ILO ±10 pA 0.45V< VOUT <,VCC VCC Supply Current ICC 180 mA Chip pPD8155 IlL ICE) +100 pA Enable VIN" VCC to OV pPD8156 IILICE) 100 pA Leakage 6-139 "PD8155/8156 Ta = o'e to +70'e, vee = 5V ± 10% AC CHARACTERISTICS LIMITS I 8155/8156 8155·2/8156·2 TEST PARAMETER SYMBOL MIN MAX MIN MAX UNIT CONDITIONS Address to Latch Set Up Time tAL 50 30 n, Address Hold Time after LeltCh tlA 80 30 n, Latch to READ/WRITE Control tlC 100 40 Valid Data Out Delay from READ Control tAD 170 140 "'n, Address Stable to Data Out Valid tAD 400 330 n, Latch Enable Width tll 100 70 n, Data Bus Float After READ tRDF 0 100 0 80 n, READ/WRITE Control to Latch Enable tel 20 10 n, READ/WRITE Control Width tcc 250 200 n, Data In to WR ITE Set Up Time tow 150 100 n, Data In Hold Time After WR ITE two 0 0 n, Recovery Time Between Controls tAV 300 200 n, WRITE to Port Output twp 400 300 n, 150 pF Load Port Input Setup Time tPA 70 50 n, Port Input Hold Time tAP 50 10 n, Strobe to Buffer Full tSBF 400 300 n, Strobe Width tss 200 t50 n, READ to Buffer EmptY R8E 400 300 n, Strobe to INTR On Sl 400 300 n, READ to INTR Off tRol 400 300 n, Port Setup Time to Strobe tpss 50 0 n, Port Hold Time After Strobe tpHS 120 100 n, Strobe to Buffer Empty tSBE 400 300 n, WRITE to Buffer Full tWBE 400 300 n, WRITEto~ tWI 400 300 n, TIMER-IN to OUT Low tTL 400 300 n, TIMER-IN to OUT High tTH 400 300 n, Data Bus Enable from READ Control tRDE 10 10 n, READ CYCLE TIMING WAVEFORMS CE OR 101M AO()'7 ALE RO WRITE CYCLE CE ("P081551 OR CE u,PD81561 IO/Q AOo-, ALE ViR 6-140 "PD8155/8156 TIMING WAVEFORMS (CaNT.) STROBED INPUT MODE BF _ _ _ _ _ _" 'SBF INTA INPUTDATA-------~~~~-~~------------------------ FROM PORT _ _ _ _ _ _~~--_+~~~----------------------- STROBED OUTPUT MODE BF --------', INTR OUTPUT DATA TOPORT ________________~~------------------------ BASIC INPUT MODE J~'RP Ri5 ---=--t.-'PR _ INPUT ~_--------~----...... DATA BUS:::::::x_______ BASIC OUTPUT MODE OUTPUT _______________ ~~-- TIMER OUTPUT LOAD COUNTER RELOAD FROM CLR ----t FC~6:~t~ -..; COUNT I I I COUNTDOWN fROM 3 TO 0 ",0816618156 ,IIP08156-218156-2 <20 -Test POlnts--- 2 0 X = = READY to elK Low Setup Time IRS 60 ns 045 08- -08 ADDSTB High trom elK High Delay 130 ns tSTl Time Inputs are driven at 2.4V for logic 1 and O.45V for ACOSTB Low from elK High Delay ISTl 90 no logic O. These timing measurements are made at 2.0V Time for logic 1 and O.BV for logic O. A transition time of Not••• 20 ns or less is assumed for input timing parameters. (!) Netl/OW or MEMW pulse width for normal write is ICy-100 ns Unles~ noted, output loading is 1 TTL gate plus 50 pF and 2tCY-100 ns for extended write. Netl/OR or MEMR pulse capacitance. Width for normal read IS 2tCY - 50 ns and tCY - 50 ns for com- pressed read. AC Characteristics DMA (Master) Mode @ TOO1 is measured at 2.0V. tOQ2 IS measured at3.3V. An exter- nal pullup resistor of 3.3kQ connected from HRO to VCC is Ta = O°C to +70°C; VCC = 5V ± 5"10; VSS = OV assumed for t002. Limit. Parameter Symbol Min Tvp Ma. Unit AEN High from CLK Low (SI) Oolay IAEL 200 ns AC Characteristics Peripheral Mode Time AEN Low from CLK High (SI) Oolay IAET 130 na Ta = O°C to +70°C; VCC = 5V ± 5"10; VSS = OV T!ma LImIt. ADR Active to Float Delay from elK IAFAB 90 High P.rameter Symbol Min TrP Max Unit ADR Valod or CS Low 10 READ Uow IAR 50 no READ or WRITE Float from elK High IAFC 120 ns II AOR Valid 10 WRITE High SelUp TIme lAW 150 DB Active to F10at Delay from elK IAFDB 170 qs HIgh CS Low 10 WRITE High Setup Time lew 150 no ADA from READ High HOld Time n. Data Valid 10 WRITE High Setup Time IDW 150 no IAHR ICy-l00 ADR or CS- Hold lrom READ High IRA ns DB from ADDSTB Low Hold Time IAHS 30 ns ADR from WRITE High Hold Tlmo IAHW Icy-SO ns Data Access 'rom READ Low You m~st time successive read Dr write operations by the CPU to allow at least 400 ns recovery time for the "PD8237A-5 between read and writ~ pulses. 6-170 /-lPD8237A-S Timing Waveforms (Cont.) DMA Transfer CLK ORO ,kI'J"MJ"vr ~ ~rl tQs-j fl.} f-- 5, ~ ,\ S ~ » _ las V I- 54 t---J 5, tCl H~ 5, 5, ~tOF too_ l-- HRQ - --tHS HLDA ,////1 \\ \\' ~ AEN , tAEL - j -[AET - ~ - !-tSTT DOSTS I 1--, 1- -teps 1--- tASStA~S TAOS I - - - tAK -I f- 1... 00-0 7 I I As-A15 - IAH~~ ~t ~~ tASM AFAB f...tAF1DB IFAAB~ !-tArw- Ao-A7 I Addrel!s Valid TN Address v"'J.r ~ I-t!R-I I- IAHR ACK I / "J tFACI-- I---- toel tDeTR I- - tDel teCTR - j I-tAFC RE AD , ~ Ir\ I}---{ ~ _ to CTW _tDCTW E I \~~~~ /'f-- ~F--\ I (For Extended Write) I LA< ~ Internal EOp , tEPW-1 E)I;ternal EOp ~\\\\\\\'0 illl'lllllllll See Note 2, AC CharacteristIcs, OMA Mode 6-171 I-lPD8237A':S Timing Waveforms (Cont.) Memory-fa-Memory Transfer 52t 522 523 524 5t AO-A7 tFAAB r tAH5 Address Valid tAFDB tFADB DO-D7 AS-A15 OUT tFADB tFAC tODV tODH tlOH tAFC MEMR tDCTW tFAC tDCL MEMvi tAK Ready EXT EOP~\.....,\-.-\-r-\"T"""\"T"""\~\~\.---.\\r--"';\--...\-,..\~\-.-\ n tEPW EP5 Z-r--- .......,Z,......,Z---.Z~Z---rZ--r-Z elK tDCl tDCTR READ tDCTW tRH [- tR5 tR5 READY \\\\\\\\\\\1 6-172 t-tPD8237A.5 Timing Waveforms (Cont.) Compressed Transfer CLK _ _ _ _..J AO-A7 READY Reset vcc RESET I/ORorllOW Package Outlines For information, see Package Outline Section 7. Plastic, f1PD8237C·5 Ceramic, f1PD8237D·5 Cerdip, f1PD8237AD·5 8237A·5DS·REV1· 7·83·TRIUM-CA T 6-173 NOTES 6-174 NEe ",PD8243 ",PD8243H INPUT/OUTPUT EXPANDER FOR fLPD8048 FAMILY DEseR I PT ION The J.lPD8243 Input/output expander IS directly compatible with the J.lPD8048 family of single·chip microcomputers. Using NMOS technology the J.lPD8243 provides high drive capabilities while requiring only a single +5V supply voltage. The J.lPD8243 interfaces to the J.lPD8048 family through a 4·bit I/O port and offers four 4·blt bi-directional static I/O ports. The ease of expansion allows for multiple J.lPD8243's to be added using the bus port. The bi·directlonal I/O ports of the J.lPD8243 act as an extension of the I/O capabilities of the J.lPD8048 microcomputer family. They are accessible with their own ANL, MOV, and OR L instructions. FEATURES • Four 4-Bit I/O Ports • Fully Compatible with J.lPD8048 Microcomputer Family • High Output Drive • NMOS Technology • Single +5V Supply • Direct Extension of Resident J.lPD8048 I/O Ports • Logical AND and OR Directly to Ports • Compatible with Industry Standard 8243 • Available in a 24·Pin Plastic Package P50 24 Vee P40 2 23 P51 P41 3 22 P52 P42 4 21 P53 P43 5 20 P60 CS 6 J.lPD 19 P61 8243 PROG 7 18 P62 P23 8 17 P63 P22 9 16 P73 P21 15 Pn P20 14 P71 GND 13 P70 Rev/2 6-175 IJPD8243 General Operation FUNCTIONAL The I/O capabilities of the pPD8048 family can be enhanced in four 4-bit I/O port DESCRIPTION increments using one or more pPD8243's. These additional I/O lines are addressed as ports 4-7. The following lists the operations which can be performed on ports 4·7. • Logical AND Accumulator to Port. • Logical OR Accumulator to Port. • Transfer Port to Accumulator. • Transfer Accumulator to Port. Port 2 (P20,P23) forms the 4-bit bus through which the pPD8243 communicates with the host processor. The PROG output from the pPD8048 family provides the neces- sary timing to the pPD8243. There are two 4-bit nibbles involved in each data transfer. The 'first nibble contains the op-code and port address followed by the second nibble containing the 4-bit data. Multiple pPD8243's can be used for additional I/O. The output lines from the pPD8048 family can be used to form the chip selects for the additional pPD8243's. Power On Initialization Applying power to the pPD8243 sets ports 4-7 to the tri-state mode and port 2 to the input mode. The state of the PROG pin at power on may be either high or tow. The PROG pin must make a high-to-Iow transition in order to exit from the power on mode. The power on sequence is initiated any time VCC drops below lV. The table below shows how the 4-bit nibbles on Port 2 correspond to the pPD8243 operations. Port Address Op-Code P21 P20 Address Code P23 P22 Instruction Code 0 0 Port 4 0 0 Read 0 1 Port 5 0 1 Write 1 0 Port 6 1 0 ORLD 1 1 Port 7 1 1 ANLD For example an 0010 appearing on P20-P23, respectively, would result in a Write to Port 4. Read Mode There is one Read mode in the pPD8243. A falling edge on the PROG pin latches the op-code and port address from input Port 2. The port address and Read operation are then decoded causing the appropriate outputs to be tri-stated and the input buffers switched on. The rising edge of PROG terminates the Read operation. The Port (4,5,6, or 7) that was selected by the Port address (P21-P20) is returned to the tri-state mode, and Port 2 is switched to the input mode. Generally, in the read mode, a port will be an input and in the write mode it will be an output. If during program operation, the pPD8243's modes are changed, the first read pulse immediately following a write should be ignored. The subsequent read signals a~e valid. Reading a port will then force that port to a high impedance state. Write Modes There are three write modes in the pPD8243. The MOVD Pp,A instruction from the pPD8048 family writes the new data directly to the specified port (4,5,6, or 7). The old data previously latched at that port is lost. The ORLD Pp,A instruction performs a logical OR between the new data and the data currently latched at the selected port. The result is then latched at that port. The final write mode uses the AN LD Pp,A instruction. It performs a logical AND between the new data and the data cur- rently latched at the specified port. The result is latched at that port. The data remains latched at the selected port following the logical manipulation until new data is written to that port. 6-176 ~PD8243 BLOCK DIAGRAM PIN IDENTIFICATION PIN NO. SYMBOL FUNCTION 2·5 P40, P43 The four 4·bit static bi·dlrectional I/O ports. They 1.21·23 P50, P53 are programmable into the following modes: 17·20 P60, P63 input mode (during a Read operation); low 13-16 P70- P73 impedance latched output mode (after a Write operation); and the tri-state mode (following a Read' operation). Data appearing on I/O lines P20-P23 can be written directly. That data can also be logically ANDed or 0 Red with the previous data on those lines. 6 ~ Chip Select input (active-low). When the IlPD8343 is deselected (Cs = 1). output or internal status changes are inhi bited. 7 PROG Clock input pin. The control and address informa- tion are present on port lines P20-P23 when PROG makes a high-to-Iow transition. Data is present on port lines P2o-P23 when PROG makes a low-to-high transition. 8-11 P20-P23 P2o-P23 form a 4-bit bi-directional port. Refer to PROG function for contents of P20-P23 at the rising and falling edges of PROG. Data from a selected port is present on P20-P23 prior to the rising edge of PROG if during a Read operation. 12 GND The IlPD8041 /8741 ground potential. 24 VCC +5 volt supply. 6-177 J.LPD8243 Operating Temperature ... O°C to +70°C ABSOLUTE MAXIMUM Storage Temperature ... -65°C to +150°C RATINGS* Voltage on Any Pin -0.5 to +7 VoltsCD Power Dissipation ..... . ......... 1 W Note: not fully loaded tACC(MIN)/j.lPD82C43 vs tpcfMAX)ij.lPD80C48, 49 5 250 200 \ 150 ~ IJ.PD82C43 ~CMIN tPCM~ 100 ~ i'-.. ~ ,- ~PD80C48 _ I - ' - ~PD80C49_ ~ ~ 50 " Frequency mHz Package Outlines For information, see Package Outline Section 7. Plastic, fLPD82C43C Cerdip, fLPD82C43D Plastic Skinnydlp, fLPD82C43CX 6-186 82C43-REV2-7-83-CAT NEe ,..PD8251A ,..PD8251 AF * PROGRAMMABLE COMMUNICATION INTERFACES DESCRIPTION The ...,PD8251A/AF Universal Synchronous/Asynchronous ReceiverfTransmitter I USART) is designed for microcomputer systems data communications. The USART is used as a peripheral and is programmed by the 8080A or other processor to communicate in commonly used serial data transmission techniques including IBM Bi-Sync. The USART receives serial data streams and converts them into paral- lel data characters for the processor. While receiving serial data, the USART will also accept data characters from the processor in parallel format, convert them to serial format and transmit. The USART will signal the processor when it has completely received or transmitted a character and requires service. Complete USART status including data format errors i!nd control signals such as TxE and SYNDET, is avail- able to the processor at any time. FEATURES • Asynchronous or Synchronous Operation Asynchronous: Five 8-Bit Characters Clock Rate - 1, 16 or 64 x Baud Rate Break Character Generation Select 1, 1-1/2, or 2 Stop Bits False Start Bit Detector Automatic Break Detect and Handling (IlPD8251A) Synchronous: Five 8-Bit Characters Internal or External Character Synchronization Automatic Sync Insertion Sin!jle or Double Sync Characters • Baud Rate (1X Mode) - DC to 64K Baud • Full Duplex, Double Buff!!red Transmitter and Receiver • Parity, Overrun and Framing Flags • Fully Compatible with 8080A/8085/J.LPD780 (Z80TM) • All Inputs and Outputs are TTL Compatible • Single + 5 Volt Supply, ± 10% • Separate Device Receive and Transmit TTL Clocks • 28 Pin Plastic,Cerdip,anc;! Ceramic DIP Packages • N-Channel MOS Technology PIN NAMES PIN CONFIGURATION D2 D, "1-00 oan:.II .... 18btu' elll Control or Dat. II to be Written or ANd D3 00 lIT> R..t 0.18 eo.,....,.nd RxO Vcc WI\ Write 0 ... Of Control CornfNnd Ci ChtpEn.tN Ir.C eLK Clock Pul. (TTL) fiTA RES T -. TiC Tl'lln.mln... Clock mLl m TxO Tr.nemltter OM. Axe .......... Cloc:kITTLI !5Sif RxO Rec.."" oar. RxRDY Rec.uWl RUdy (hill cherKter for 10801 RESET T..,OY rl'llnsrtKtter Rqdy (r..tv fOf char from 8080) CLK Dat.SetA TxD Dl'R o.te TfnYtll'llll Rudv SYNOET SyncOlt1ect TxE SVHDETIBD Sync DeMctIB,. Detect RTS R-ayes1 to Send p_ eft' eTS c....toSendo.t. SYNOET (,.,.082511 TxE T,....,.,«... Empty SYNOET/BO ,,"P08251A) RxADY Vee +5 Volt Supply TxROY GNO Ground TM: Z80 is a registered trademark of Zilog, Inc. Rev/6 *Preliminary 6-187 IJ.PD8251A/AF BLOCK DIAGRAM FhFlOY, SYNDET/BD I..,PD8251AIAFI II-PD8251AF ENHANCEMENTS PRESENT II-PD8251A NEW II-PD8251AF 1. A prevIously loaded data character WIll be retransmitted A previously loaded character will be flushed out and if Tx was disabled before TxEMPTY by TxEnable ~ or not transmItted on CTS ~ or TxEnable t. CTS t, and is re-enabled by TxEnable t or CTS ~ be- fore a new data character is sent to ILPDS251A by CPU. CPU. 2. Break Detect does not always reset upon RxData return- Break Detect will reset on RxData gOing to '1'. ing to a '1' durong the last bit of the character following the break. Break detect will latch up, and the device must be cleared by device Reset. 3. On TxEnable ~ or CTS t during the first character of a Will output both sync characters on TxEnable ~ or CTS double-character sync output, the second sync character t· will not be output. 4. If the Status Register is read durong a status update, an Some valid status (eIther new or old) will always be erroneous status read may resuli. available. 5. In Rx mode, a hardware or software reset does not force Reset WIll clear Rx hunt conditIon, force asynchronous asynchronous mode, clear hunt condition or require Ii operation (64X clock), and require a proper line initiali- proper line initialization (1 to 0 transitIon) before receiv- zation before receIving anything. ing. This may cause reception of garbage characters. 6. Break Detect will occur on the first complete (start bIt to Will give a framing error at the end of the first complete stop bit) break. This situation could be confused with a or partIal break and will gIve a Break Detect at the stop null frame (all zeroes) that also has a framing error. bit positIon of the second contiguous break character. 7. Sync Detect does not reset on status read. Sync Detect will reset on status read. S. RxRDY clears within 2 tCY's of RD lellding edge. RxRDY will clear on RD leadIng edge. 9. TxEMPTY oscillates with internal clock when TxEnable TxEMPTY WIll not oscillate thIS way. ~ or CTS t. 10. TxROY and TxEMPTY clear on WR traoling edge (data). TxRDY, TxEMPTY will clear on WR leading edge. 11. Enter hunt command affects asynchronous Rx by loss Enter hunt WIll not affect asynchronous operation. of data characters. 12. Writing a command will sometimes clear TxRDY or C/O set up and hold margin WIll be Improved. TxEMPTY if C/O set up or hold is ma.!llinal. Reading sta- tus will sometimes clear RxRDY if C/O set up or hold is marginal. 13. Rx data overrun error will not occur and garbage data Will Indicate an overrun err,or properly. may result if RD and CS are active during an internal data update. 14. In asynchronous mode, after a reset, the first TxD bIt The first TxD bit will be shifted out on the first TxC ~ may be shifted out on either the first or second TxC ~ edge. edge. ' 15. RxRDY can glitch when ClK does not have a f,xed phase RxRDY will not glitch. relationship to RxC. 16. The receiver occasionally gives an extra character fol- No extra characters will occur. lowing the end of Break conditIon. 6-188 ",PD8251A/8251AF FUNCTIONAL The ... PD8251A/AF Universal Synchronous/Asynchronous ReceiverlTransmitters are DESCRIPTION designed specifically for 8080 microcomputer systems but work with most 8-bit pro- cessors. Operations of the ...PD8251A/AF, like other I/O devices in the 8080 family, are programmed by system software for maximum flexibility. In the receive mode, the ... PD8251A/AF converts incoming serial format data into parallel data and makes certain format checks. In the transmit mode, it formats par- allel data into serial form. The device also supplies or removes characters or bits that are unique to the communication format in use. By performing conversion and formatting services automatically, the USART appears to the processor as a simple or "transparent" input or output of byte-oriented parallel data. BASIC OPERATION c/o RD WR CS 0 0 1 0 fLPD8251A/AF~ Data Bus 0 1 0 0 Data Bus ~ ILPD8251A/AF 1 0 1 0 Status -+ Data Bus 1 1 0 0 Data Bus -+ Control X X X 1 Data Bus -+ 3·Stcte X 1 1 0 PIN IDENTIFICATION PIN FUNCTION NO. SYMBOL NAME 1,2, 07- Do Data Bus Buffer An 8·blt, 3-state bl·dlrectlonal buffer used to 27,28 onterface the USART to the processor data 5-8 bus. Data IS transmitted or received by the buffer to response to Input/output or Readl Write instructions from the processor. The Data Bus Buffer also transfers Control words, Command words, and Status 26 Vec V CC Supply Voltage +5 volt supply 4 GND Ground Ground ThiS logic block accepts mputs from the pro· cessor Control Bus and generates control signals for overali USART operation The Mode Instruction and Command Instruction registers Read/Wrote Control Logic that store the control formats for device func- tional definition are located to the Read! Write Control Logic 6-189 "PD8251 A/AF PIN PIN IDENTIFICATION FUNCTION (CONT) NO SYMBOL NAME 21 RESET Reset A "one" on thl~'lnput forces the USART Into the "Idle" mode where it will remam until remltlal~ I ized with a new set of control words. Minimum RESET pulse wIdth IS 6 tCY. 20 ClK Clock Pulse The elK Input provides for Internal device tim- 109 and IS usually connected to the Phase 2 (TTLi output of the !,PB8224 Clock Generator. External Inputs and outputs are not referenced to ClK, but the ClK frequency must be at least 30 times the Receiver or Transmitter clocks In the synchronous mode and 4.5 10 WR Wnte Data times for the asynchronous mode. A "zero" on this Input Instructs the USART -- to accept the data or control word which the processor IS writing out on the data bus. 13 RD Read Data A "zero" on thIS onput onstructs the USART to place the data or status Information onto the Data Bus for the processor to read 12 C/O Control/Data The Control/Data Input, In conjunction With the WR and RD Inputs, onforms the USART to accept or provIde either a data character, control word or status Information via the Data Bus o= Data, 1 = Control. 11 CS ChIp Select A "zero" on thIS onput enables the USART to read from or write to the processor. The ",PD8251A/AF have a set of control Inputs and Modem Control outputs which may be used to sImplify the '"terface to. Modem. 22 DSR Data Set Ready The Data Set Ready Input can b. tested by the processor via Status mformatlon The Bs1i'mput IS normally used to test Modem Data Set Ready condition 24 DTR Data Termonal Ready The Data Termmal Ready output can~ con- trolled vIa the Command word The DTR output IS normally used to drive Modem Data Termmal Ready or Rate Select hnes 23 RTS Request to Send The Request to Send output ~be controlled vIa the Command word The RTS output IS normally used to drive the Modem Request to Send Ime 17 CTS Clear to Send A "zero" on the Clear to Send Input enables the USART to transmIt seroal data If the TxEN bIt on the Command Instruction register IS enabled (onel 6-190 ,..PD8251A/AF TRANSMIT BUFFER The Transmit Buffer receives parallel data from the Data Bus Buffer via the internal data bus, converts parallel to serial data, inserts the necessary characters or bits neeaed for the programmed communication format and outputs composite serial data on the TxD Pin. PIN IDENTIFICATION PIN (CONT.) FUNCTION NO. SYMBOL NAME The Transmit Control Logic accepts and outputs Transmit Control Logic all external and Internal signals necessary for senal data transmission. 15 TxRDY Transmitter Ready Transmitter Ready signals the processor that the transmitter IS ready to accept a data character. TxRDY can be used as an Interrupt or may be tested through the Status information for polled operation. Loading a character from the processor automatically resets TxRDY, on the leading edge. 18 TxE Transmitter Empty The Transmitter Empty output signals the processor that the USART has no further char- acters to transmit. TxE IS automatically reset upon receiving a data character from the pro* cessor. In half-duplex, TxE can be used to signal end of a transmiSSion and request the processor to "turn the line around," The TxEn bit In the command instruction does not effect TxE. In the Synchronous mode, a "one" on thiS out* put IndiCates that a Sync character or charac- ters are about to be automatically transmitted as "fillers" because the next data character has not been loaded. 9 TxC Transmitter Clock The Transmitter Clock controls the serial charac ter transmiSSion rate. In the Asynchronous mode, the TxC frequency IS a multiple of the actual Baud Rate. Two bits of the Mode Instruc- tion select the multiple to be 1 x, 16x, or 64x the Baud Rate. In the Synchronous mode, the TxC frequency IS automatically selected to equal the actual ~aud Rate Note that for both Synchronous and Asynchro- nous modes, serial data IS shifted out of the USART by the failing edge of TxC. 19 TxD Transmitter Data The Transmit Control Logic outputs the composite serial data stream on thiS pin. fLPD8251A/AF \ ADDRESS BUS \ INTERFACE TO 8080 AO STANDARD SYSTEM BUS ) CONTROL BUS \ - - 1/0 R - - IIOW ,)2 RESET ITTL! \ DATA BUS \ /~ 8 ( - V -RD -WR C/D CS D7 - DO RESET ClK 8251A/AF 6 -191 ,..PD8251 AIAF The Receive Buffer accepts serial data input at the RxD pin and converts the data R ECE I V E BU F FER from serial to parallel format. Bits or characters required for the specific communi- cation technique in use are checked and then an eight-bit "assembled" character is readied for the processor. For communication techniques which require less than eight bits, the ILPD8251A/AF set the extra bits to "zero." PIN PIN IDENTIFICATION FUNCTION (CONT.) NO. SYMBOL NAME This block manages all activities related to Receiver Control Logic incoming data. 14 RxRDY Receiver Ready The Receiver Ready output Indicates that the Receiver Buffer IS ready with an "assembled" character for' input to the processor For Polled operation, the processor can check RxRDY uSing a Status Read or RxRDY can be con- nected to the processor Interrupt structure Note that readmg the character to the pro- cessor automatically resets RxRDY 25 RxC Receiver Clock The Receiver Clock determines the rate at which the incoming character IS received In the Asyn- chronous mode, the Rxe frequency may be 1,16 or 64 times the actual Baud Rate but In the Syn- chronous mode the FfXC frequency must equal the Baud Rate. Two bits In the mode Instruction select Asynchronous at lx, l6x or 64x or Syn- chronous operation at 1 x the Baud Rate Unhke TxC, data IS sampled by the fLPD8251A/AF on the rising edge of RxC. DATA :I CHA~ACTER RECEIVE FORMAT I ~ Notes Generated by .... PD8251AJAF 2 Does not appear on the Data Bus 3 If character length IS defined as 5, 6, or 7 bits. the unused bits are set to "zero .. 6-195 ",IPD8251 AIAF As in Asynchronous transmission, the TxD output remains "high" (marking) until SYNCHRONOUS the ....PD8251A/AF receive the first character (usually a SYNC character) from the TRANSMISSION processor. After a Command Instruction has set TxEN and after Clear to Send (CTS) goes low, the first character is serially transmitted. Data is shifted out on the falling edge of TxC and the same rate as TxC. . Once transmission has started, Synchronous Mode format requires that the serial data stream at TxD continue at the TxC rate or SYNC will be lost. If a data character is not provided by the processor before the p,PD8251A/AF Transmit Buffer becomes empty, the SYNC character(s) loaded directly following the Mode Instruc- tion will be automatically insElrted in the TxD data stream. The SYNC character(s) are inserted to fill the line and'maintain synchronization until new data characters are available for transmission. If the .... PD8251A/AF become empty, and must send the SYNC characters(s), the TxEMPTY output is raised to signal the processor that the Transmitter Buffer is empty and SYNC characters are being transmitted. TxEMPTY is automatically reset by the next character from the processor. In Synchronous Receive, character synchronization can be either external or inter- SYNCH RONOUS nal.lfthe internal SYNC mode has been selected, and the Enter HUNT (EH) bit has RECEIVE been set by a Cqmmand Instruction, the receiver goes into the HUNT mode. Incoming data on the RxD input is sampled on the rising edge of RxC, and the Receive Buffer is compared with the first SYNC character after each bit has been loaded until a match is found. If two SYNC characters have been programmed, the next recElived character is also compared, When the SYNC character(s) pro- grammed have been detected, the fLPD8251A/AF leave the HUNT mode and are in character synchronization. At this time, the SYNDET (output) is set high. SYNDET is au~omatically reset by a STATUS READ. If external SYNC has been specified in the Mode Instruction, a "one" applied to the SYNDET (input) for at least one RxC cycle will synchronize the USART, Parity and Overrun Errors are treated the same in the Synchronous as in the Asyn- chronous Mode. If not in HUNT, parity will continue to be checked even if the receiver is not enabled. Framing errors do not apply in the Synchronous format. The processor may command the receiver to enter the HUNT mode with a Com- mand Instruction which sets Enter HUNT (EH) if synchronization is lost °7 06 05 04 03 0-, 01 DO lscs}ol EP IPENI L, I I I I L1 0 0 MODE INSTRUCTION FORMAT I l 0 CHARACTER LENGTH 1 0 1 SYNCHRONOUS MODE 0 0 1 1 5 6 7 8 BITS BITS BITS BITS I I PARITY ENABLE ~ 11 ENABLEl 10 DISABLE) I EVEN PARITY GENERATION/CHE CK 1 EVEN o opo ExTERNAL SYNC DETECT SYNDET IS AN INPUT SYNOET IS AN OUTPUT ' - - - - - - - - - - - - _ SINGLE CHARACTEA SYNC 1 SINGLE SYNC CHARACTER o DOUBLE SYNC CHARACTER 6-196 ,.,PD8251A/AF TRANSMIT/RECEIVE PROCESSOR BYTES 15-8 BITS CHARI C~\:ACHRS FORMAT SYNCH RONOUS MODE DATA ASSEr\lBLED SERIAL DATA OUTPUT (T"D) DATACHAR~;_C_TE_R_S ______ ~ TRANSMIT FORMAT SERIAL OAT A INPUT (RxD) SYNC CHAR 1 CSHY:~} I DA T A CH~R:I-A_CT_E_R_S _ _--, PROCESSOR BYTES 15 8 BITS CHARI G) DATAC::~ RECEIVE FORMAT Note G) If character lenqlh IS defined (IS 5, 601 7 l)lts. thf' ul1u~pd bits are set to "7ero " After the functional definition of the fLPD8251A/AF has been specified by the Mode COMMAND INSTRUCTION Instruction and the SYNC character(s) have been entered (if in SYNC mode), the FORMAT USART is ready to receive Command Instructions and begin communication. A Command Instruction is used to control the specific operation of the format selected by the Mode Instruction. Enable Transmit, Enable Receive, Error Reset and Modem Controls are controlled by the Command Instruction. After the Mode Instruction and the SYNC character(s) (as needed) are loaded, all subsequent "control writes" (Ci5 = 1) will load or overwrite the Command Instruc- tion register. A Reset operation (internal via CMD IR or external via the RESET input) will cause the fLPD8251A/AF to interpret the next "control write", which must immediately follow the reset, as a Mode Instruction. STATUS READ FORMAT It is frequently necessary for the processor to examine the status of an active inter- face device to determine if errors have occurred or if there are other conditions which require a response from the processor. The fLPD8251A/AF have features which allow the processor to read the device status at any time. A data fetch is issued by the processor while holding the ci5 input "high" to obtain device Status Information. Many of the bits in the status register are copies of external pins. This dual status arrangement allows the fLPD8251A/AF to be used in both Polled and interrupt driven environments. Status update can have a maximum delay of 28 clock periods in the fLPD8251A/AF. PARITY ERROR When a parity error is detected, the PE flag is set. It is cleared by setting the ER bit in a subsequent Command Instruction. PE beong set does not inhibit USART operation. OV E R RUN ERROR If the processor fails to read a data character before the one following is available, the OE flag is set. It is cleared by setting the E R bit in a subsequent Command Instruction. Although OE being set does not inhibit USART operation, the previously received character is overwritten and lost. FRAMING ERROR CD If a valid STOP bit IS not detected at the end of a character, the FE flag is ~et. It IS cleared by settong the ER bit In a subsequent Command Instruction. FE being set does not inhibit USART operation. Note. CD ASYNC mode only. 6-197 IlPD8251A/AF COMMAND INSTRUCTION FORMAT TRANSMIT ENABLE 1 = enable 0"'- disable DATA TERMINAL READY "high" will force i5TR output to zero RECEIVE ENABLE 1" enable 0'" disable SEND BREAK CHARACTER 1 = forces TxD "low" 0'" normal operation ERROR RESET 1'" reset all error flags PE, QE, FE REQUESrrO SEND "hIgh" wIll force RTs output to zero INTERNAL RESET "high" returns USART to Mode InstructIOn Format ENTER HUNT MQDE 1 '" enable sealch for Sync Charactels CD STATUS READ FORMAT 0, I I I I I I I IL DSR SYNDET IBD FE DE PE T,E R,RDY T,ROY I 1 1 1 SAME DEFINITIONS AS 110 PINS PARITY ERROR The PE flag IS set when a parity error IS detected. It IS reset by the ER bit afthe Command Instruction, PE does not mhiblt operation of the ,.."PD8251A/AF OVERRUN ERROR The OE flag IS set when the CPU does not read a character before the next one becomes available '---- It IS reset by the ER bit of the Command Instruction. DE does not inhibit operation of the fJ..PD8251A/AF, but, the prevI- ously overrun character IS lost. FRAMfNG ERROR (Async only) The FE flag IS set when a valid Stop bit IS not detected at the end of every character It IS reset by the ER bit of the Command Instruction FE does not inhibit the operation of the .P08251AIAF. Notes CD No effect In ASYNC mode @ TxADY status bit IS I'IOt totallv eqUivalent to the TxADY OlItput pm. the relatlOAShlP IS as follows 6-198 ixROY status bit'" DB Buffer Emptv TxADY (pm 1 SI '" DB Buffer Emptv • m •hEn ",PD8251A/AF ADDRESS BUS APPLICATION OF THE f.lPD8251 AIAF CONTROL BUS DATA BUS ,.----, EIATOTTl~ L~:'::O~A':'J ~ CONVERTER "PD 8251AI AF BAUD RATE CRT GENERATOR TERMINAL ASYNCHRONOUS SERIAL INTERFACE TO CRT TERMINAL, OC to 9600 BAUD PHONE L1NF INTER FACE TELEPHONE LINE ASYNCHRONOUS INTERFACE TO TELEPHONE LINES SYNCHRONOUS TERMINAL OR PERIPHERAL DEVICE SYNCHRONOUS INTERFACE TO TERMINAL OR PERIPHERAL DEVICE PHONE LINE INTER FACE TELEPHONE LINE SYNCHRONOUS INTERFACE TO TELEPHONE LINES 6-199 IlPD8251A/AF Operating Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . ... -OoC to +70°C ABSOLUTE MAXIMUM Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . _65°C to +150°C RATINGS· Ali Output Voltages. . . . . . . .. . . . . . . . . . -0.5 to +7 Volts All Input Voltages. . . .....•.. .-0.5 to +7 Volts Supply Voltages ................... . -0.5 to +7 Volts Ta = 25°C ·COMMENT. Stress above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This IS a stress rating only and functional operation of the device at these or any other conditions above those Indicated in the operational sections of this specification IS not implied. Exposure to absolute 1"18ximum rating conditions for extended periods may affect device rei iab., ity . Ta =O"Cto70"C;VCC = 5.0V ± 10%for8251A/AF;GND = OV. DC CHARACTERISTICS LIMITS fLPD8251 AIAF PARAMETER SYMBOL MIN MAX UNIT TEST CONDITIONS Input Low Voltage VIL -0.5 08 V Input High Voltage VIH 2.0 Vee V ~PD8251 IOL= 1.7mA Output Low Voltage VOL 0.45 V ~PD8251A IOL = 2.2mA ~PD8251. IOH' -10C ~A Output High Voltage VOH 2.4 V ~P08251A IOH = -400~A ±10 VOUT = 0.45V Output Float Leakage IOFL ~A 10 .45V", VOUT '" VCC Input Load Current IlL 10 ~A .45V '" VIN '" VCC Power Supply Current ICC laO mA All Outputs = LogiC 1 Ta = 25"C. VCC' GND' OV LIMITS TEST CAPACITANCE PARAMETER SYMBOL MIN TY' MAX UNIT CONDITIONS Input Capacitance CIN 10 pF Ie· 1 MHz I/O Capacitance CliO 20 pF Unmeasured pins returned toGND TESTING INPUT, OUTPUT WAVEFORM a-Fi '20 2V c / ~ "0 V INPUTIOUTPUT 4201l18251A AF) ~ D.U.T. r CL ~ 6K 18251 A AF) >- ::> o -10 / SPEC -20 / -100 -50 '50 "00 A C TESTING INPUTS ARE DRIVEN AT 2 4V FOR A LOGIC "1" AND Figure 1. o4SV FOR A LOGtC "0" TIMING MEASUREMENTS ARE MADE AT 2 OV .6 CAPACITANCE (pFI FOR A LOGIC "1" AND 0 8V FOR A LOGIC "0 " TYPical a Output TEST LOAO CIRCUIT Delay Versus a Capacitance (pFI 6-200 IlPD8251 AIAF AC CHARACTERISTICS Ta = o'e to 70'e; Vee = 5.0V ± 10% for 8251A/AF; GND = OV. LIMITS IlPD8215A j.lPDB251AF I TEST PARAMETER SYMBOL I MIN MAX I MIN I MAX I UNIT CONDITIONS READ Address Stable belere READ (eS C OJ W 90 40 Clock Rise and Fall Time 20 20 .'.' 'RtF TleD Deley from Failing Edge of Tlce IDTx RII: Data Set-Up Time to Sampling Pulse .' 'SAx Rx Data Hold Time to Sampling Pulse tHRx Transmitter Input Clock Frequency lXBaud Rate 'T, B4 DC 64 kH, l6X Baud Rate 310 DC OlD kH, 64X Baud Rate 615 DC 615 kH, Transmitter Input Clock Pulse Width ITPW tX Baud Rate 12 12 'CY l6X and 64X Baud Rate 'CY Transmitter Input Clock Pulse Delay ITPO IX Baud Aate 15 15 'CY 16X and 64X Baud Rate 'cv Receiver Input Clock Frequency 'R, OC IX Baud Rate 64 64 kH, l6X Baud Rate 310 DC 310 Kh> 64X Baud Aate 615 DC 615 kH, D Receiver Input Clock Pulse Width tAPW IX Baud Rate 12 12 'CV 16X and 64X Baud Rate 'cy Receiver Input Clock Pulse Delay I RPD IX Baud fl:ate 15 15 'cy t6X and 64X 8aud Aate 'CY TKROY Delay from Center of Data Bit (i 'T, 'cy TxRDY 1 from L.eadlng Edge of WR @ ITxADY 300 CLEAR RKRDY Delay from Center of Data Bit 'RX 24 20 'CY .. Internal SYNDET Delay from Center of Data 81t RxRDY 1 from leading EdQa of AD C!l 'IS 24 300 'CY lAx ROY CLEAR EXlarnal~OET Set-lJp Time before Failing Edge of RxC (j) 'ES 16 " 'cV TxEMPTY Delay from Center of Data Bit --"'__ '000 READ TIMING CLOCK AND GATE TIMING A" AQ, cs __"l'_________f-o'f' ____ DATA BUS _ _ _ _ -J~~--~~"~ ___ WRITE TIMING 6-208 IlPD8253 PROGRAMMING The programmer can select any of the SIX operational MODES for the counters uSing THE IlPD8253 system software. IndiVidual counter programming IS accomplished by loading the CONTROL WORD REGISTER with the appropriate control word data (AO, A1 ~ 11). CONTROL WORD FORMAT SC - Select Counter SC1 SCO 0 0 Select Counter 0 0 1 Select Counter 1 1 0 Select Counter 2 1 1 Invalid R L - Read/Load RL1 RLO 0 0 Counter Latching Operation 1 0 Read/Load Most Significant Byte Only 0 1 Read/Load Least Significant Byte Only 1 1 Read/Load Least Significant Byte F ITESTPOINTS WRITE MODE <. )C 2~ Q8 TIMING WAVEFORMS ---twLWH WR ---------~ cs __________. ADDRESS BUS AO _ _ _ _ _ _ _ _J DATA BUS READ/iNTA MODE RD/iiiiTA _ _ _ _ _ _ _""""" t - - - - - - t R L R H - - - EN--------------~--~ tRLEl tRHAX cs------__ ADDRESS BUS AO _ _ _ _ _ _ _ _. J DATA BUS- _ _ _ _ _ _ _ _ _ _ _ _ ~A~~~~\. ______ tR_H_D_Z---,~ _____ _ OTHER TIMING 6-236 ,..PD8259A ,::Jd TIMING WAVEFORMS INTA SEQUENCE _~\_(j)---"'\\ (CONT.) J_tJHI_Hc_ ... ~--------------~ DB - - - - - - - - - - - - -1-0 -- -0-- 'tCVIAL-1 1--~--1---~r-~--~ tCVDV -- CD-2----------------~----L4----~----~~----------~ IR TRIGGERING TIMING REQUIREMENTS EARLIEST IR CAN BE REMOVED LATCH' LATCH' LATCH' ARMED ARMED ARMED IA 8086/8088 8080/8085 INT ---+*"" INTA ---+----~ 8080/8085 'EDGE TRIGGERED MODE ONLY DETAILED OPERATIONAL The sequence used by the ~PD8259A to handle an interrupt depends upon whether DESCRIPTION an 8080A/8085A or 8086/8088 CPU is being used. The following sequence applies to 8080A/8085A systems: The ~PD8259A derives its versatility from programmable interrupt modes and the ability to jump to any memory address through programmable CALL instructions. The following sequence demonstrates how the ~PD8259A interacts with the processor. 1. An interrupt or interrupts appearing on IRO-7 sets the corresponding IR bit(s) high. This in turn sets the corresponding IRR bit(s) high. 2. Once the I R R bit(s) has been set, the ~PD8259A will resolve the priorities according to the preprogrammed interrupt algorithm. It then issues an INT signal to the processor. 3. The processor group issues an INTA to the ~PD8259A when it receives the INT. 4. The INTA input to the ~PD8259A from the processor group sets the highest priority ISR bit and resets the corresponding IRR bit. The INTA also signals the ~PD8259A to iSSUE! an 8-btt CALL instruction op-code (11001101) onto its Data bus lines. 5. The CALL instruction code instructs the processor group to issue two more INTA pulses to the ~PD8259A. 6-237 IlPD8259A 6. The two INTA pulses signal the j.lPD8259A to place its preprogrammed interrupt DETAILED OPERATIONAL vector address onto the Data bus. The first INTA releases the low-order 8-bits DESCRIPTION of the address and the second INTA releases the high-order 8-bits. (CONT.) 7. The j.lPD8259A's CALL instruction sequence is complete. A preprogrammed EOI (End-of-Interrupt) command is issued to the j.lPD8259A at the end of an interrupt service routine to reset the ISR bit and allow the /.IPD8259A to service the next interrupt. For 8086/8088 systems the first three steps are the same as described above, then the following sequence occurs: 4. During the first i'NTA from the processor, the j.lPD8259A does not drive the data bus. The highest priority ISR bit is set and the corresponding IR R bit is reset. 5. The j.lPD8259A puts vector onto the data bus on the second INT A pulse from the 8086/8088. 6. There is no third INTA pulse in this mode. In the AEOI mode the ISR bit is reset at the end of the second INTA pulse, or it remains set until an EOI com- mand is issued. 8080A/8085A MODE INTERRUPT For these processors, the j.lPD8259A is controlled by three INTA pulses. The first SEQUENCE INTA pulse will cause the j.lPD8259A to put the CALL op-code onto the data bus. The second and third ii\i'i'A pulses will cause the upper and lower address of the interrupt vector to be released on the bus. 07 De 05 1M 03 02 01 DO FIRST 'j'jij'fA CALL CODE LI_'______o_,~-_----,....JI IR Inl.,.._4 07 De 0$ 0. , , 03 02 , 0' DO 7 6 A7 A7 A6 A6 A5 A5 , , 0 0 0 0 0 , , 0 5 • A7 A6 A5 , 0 0 A7 A6 A5 0 , , 0 0 0 '3 A7 A6 A5 0 , 0 0 , 2 A7 A7 A6 A6 A5 A5 0 0 0 ., 0 0 0 0 0 0 A7 A6 A5 0 0 0 0 0 IR Interv.I ... 1 SECONDINTA 07 os OS 0. 03 02 DO , , , 0' 7 6 A7 A7 A6 A6 , , 0 0 0 0 0 0 0 5 A7 A6 , 0 , 0 0 0 4 A7 A6 , 0 0 0 0 0 3 A7 AS 0 , , 0 0 0 , ,2 A7 A6 0 0 0 0 0 A7 A6 0 0 , 0 0 0 0 A7. A6 0 0 0 0 0 0 6-238 "PD8259A INTERRUPT SEQUENCE (CONT.) TH I R 0 Tfii'i'A D7 De DS DO DS D. D' DO A'5 A,. A,3 .,2 A11 A,O A9 A8 In this mode only two INTA pulses are sent to the J.lPD8259A. After the first INTA pulse, the J.lPD8259A does not output a CALL but internally sets priority resolution. If it is a master, it sets the cascade lines. The interrupt 'vector is output to the data bus on the second INTA pulse. ' 07 06 05 D4 D3 02 01 DO IR7 T7 T6 T5 T4 T3 1 1 1 IR6 T7 T6 T5 T4 T3 1 1 0 IR5 T7 T6 T5 T4 T3 1 0 1 IR4 T7 T6 T5 T4 T3 1 0 0 IR3 T7 T6 T5 T4 T3 0 1 1 IR2 T7 T6 T5 T4 T3 0 1 0 IRl T7 T6 T5 T4 T3 0 0 1 IRO T7 T6 T5 T4 T3 0 0 0 INITIALIZATION ICW1 AND ICW2 COMMAND WORDS A5·A15. Page starting address of service routines. In an 8085A system, the 8 request levels generate CALLs to 8 locations equally spaced in memory. These can be pro- grammed to be spaced at intervals of 4 or 8 memory locations, thus the 8 routines occupy a page of 32 or 64 bytes, respectively. The address format is 2 bytes long (AO-A15). When the routine interval is 4, AO-A4 are automatically inserted by the J.lPD8259A, while A5-A15 are programmed externally. When the routine interval is 8, AO-A5 are automatically inserted by the J.lPD8259A, while A6-A15 are programmed externally. The 8-byte interval maintains compatibility with current software, while the 4-byte interval is best for a compact jump table. In an MCS-86 system, T7-T3 are inserted in the five most significant bits of the vector- ing byte and the J.lPD8259A sets the three least significant bits according to the inter- rupt level. AlO-A5 are ignored and ADI (Address Interval) has no effect. LTIM: If LTIM = 1, then the J.lPD8259A operates in the level interrupt mode. Edge detect logic on the interrupt inputs is disabled. ADI: CALL address interval. ADI = 1 then interval = 4; ADI = 0 then interval = 8. SNGL: Single. Means that this is the only J.lPD8259A in the system. If SNGL = 1 no ICW3 is issued. IC4: If this bit is set - ICW4 has to be read. If ICW4 is not needed, set IC4 =0. ICW3 This word is read only when there is more than one J.lPD8259A in the system and cas- cading is used, in which case SNGL = O. It will load the 8-bit slave register. The func- tions of this register are: a. In the master mode (either when SP = 1, or in buffered mode when M/S = 1 in ICW4) a "1" is set for each slave in the system. The master then releases byte 1 of the call sequence (for 8085A system) and enables the correspond- ing slave to release bytes 2 and 3 (for 8086/8088 only byte 2) through the cascade lines. 6-239 ",PD8259A b. In the slave mode (either when SP = 0, or if BUF = 1 and M/S = 0 in ICW4) INITIALIZATION bits 2-0 identify the slave. The slave compares its cascade input with these bits COMMAND WORDS and if they are equal, bytes 2 and 3 of the CALL sequence (or just byte 2 for (CONT.) 8086/8088) are released by it on the Data Bus. ICW4 SFNM: If SFNM = 1 the special fully nested mode is programmed. BUF: If BUF = 1 the buffered mode is programmed. In buffered mode SP/EN becomes an enable output and the master/slave determination is by M/S. M/S: If buffered mode is selected: M/S = 1 means the pPD8259A is pro- grammed to be a master, M/S = 0 means the J.lPD8259A is programmed to be a slave. If BUF = 0, M/S has no function. AEOI: If AEOI = 1 the automatic end of interrupt mode is programmed. pPM: Microprocessor mode: pPM = 0 sets the pPD8259A for 8085A system operation, pPM = 1 sets the pPD8259A for 8086 system operation. INITIALIZATION D7 DO DO 1M III D2 D1 DO SEQUENCE 1·______A_7_______M______M______-r______Ln_M______ _____S_N_Q_L_____ L- A_~ '~_JJ~W1 I 1 A15/17 A141T6 A13/T5 A121T4 Al1fT3 A10 A9 AI IICW2 ~------------------~r_--------------------J r-----------------~~N:~.~ ~11-~-L.~ I 1 Sf as sa 50 83 S2/1"02 S1/101 SO/IDO IICWI I 1 ~~. ~~·DI SFNM YES (ac.-1) IU' MIS AlOI •... I~w. I I READY TO ACCEPT INTERRUPTS 6-240 ",PD8259A OPPERATIONAL COMMAND Once the IlPD8259A has been programmed with Initialization Command Words, WORDS (OCW's) @ It can be programmed for the appropriate interrupt algorithm by the Operation Command Words. Interrupt algorithms In the IlPD8259A can be changed at any time during program operation by issuing another set of Operation Command Words. The following sections describe the various algorithms available and their associated OCW's. INTERRUPT MASKS The individual Interrupt Request input lines are maskable by setting the corresponding bits in the Interrupt Mask Register to a logic "1" through OCW1. The actual masking is performed upon the contents of the In·Service Register (e.g., if Interrupt Request line 3 is to be masked, then ,only bit 3 of the IMR is set to logic "1." The IMR in turn acts upon the contents of the ISR to mask bit 3). Once the IlPD8259A has acknowledged an interrupt, I.e., the IlPD8259A has sent an INT signal to the processor and the system controller has sent it an INTA signal, the interrupt input, although it is masked, Inhibits lower Priority requests from being acknowledged. There are two means of enabling these lower priority interrupt lines. The first is by issuing an End-of-Interrupt (EOI) through Operation Command Word 2 (OCW2), thereby resetting the appro- priate ISR bit. The second approach is to select the Special Mask Mode through OCW3. The Special Mask Mode (SMM) and End-of-Interrupt (EOI) will be described in more detail further on. FULLY NESTED MODE The fully nested mode IS the J.lPD8259A's basic operating mode. It will operate in this mode after the initialization sequence, without requiring Operation Command Words for formatting. Priorities are set IRa through IR7, with IRa the highest priority. After the Interrupt has been acknowledged by the processor and system controller, only higher priOrities will be serviced. Upon receiving an INTA, the priority resolver determines the priOrity of the Interrupt, sets the corresponding I R bit, and outputs the vector address to the Data bus. The EOI command resets the corresponding ISR bits at the end of its service routines. Notes: G) Reference Figure 2 ® Reference Figure 3 6-241 IlPD8259A ROTATING PRIORITY MODE COMMANDS OPERATIONAL COMMAND The two variations of Rotating Priorities are the Auto Rotate and Specific Rotate WORDS (CONT.) modes. These two modes are typically used to service interrupting devices of equivalent priorities. 1. Auto Rotate Mode Programming the Auto Rotate Mode through OCW2 assigns priorities 0-7 to the interrupt request input lines. Interrupt line IRO is set to the highest priority and I R7 to the lowest. Once an interrupt has been serviced it is automatically assigned the lowest priority. That same input must then wait for the devices ahead of it to be serviced before it can be acknowledged again. The Auto Rotate Mode is selected by programming OCW2 in the following way (refer to Figure 3): set Rotate Priority bit "R" to a logic "1"; program EOI to a logic "1" and SEOI to a logiC "0." The EOI and SEOI commands are discussed further on. The following is an example of the Auto Rotate Mode with devices requesting interrupts on lines IR2 and IR5. Before Interrupts are Serviced: IS7 IS6 IS5 IS4 IS3 IS2 IS1 ISO I ° I ° I I ° I ° I I° I ° In-Service Register Priority Status Register -- Highest Priority According to the Priority Status Register, IR2 has a higher priority than IR5 and will be serviced first After Servicing: In-Service Register 1 ..._OC-.----------4 D Q RESET CK +----------O-CLK EFI--~======::(Y- PCLK CSYNC------------~~==============i=::--~--:J RDY1--------~--~~==t:} ~---;:--I 1------<_ READY AEiii2~~=:J RDY2 ~------------------~ FUNCTIONAL DESCRIPTION The clock generator can provide the system clock from either a crystal or an external TTL source. There is an internal divide by three counter which receives its input from either the crystal or TTL source (EFI Pin) depending on the state of the F/Cinput strapping. There is also a clear input (C SYNC) which is used for either inhibiting the clock, or synchronizing it with an external event (or perhaps another clock generator chip). Note that if the TTL input is used, the crystal oscillator section can still be used for an independent clock source, using the asc output. For driving the MaS output level, there is a 33% duty cycle MaS output (CLK) for the microprocessor, and a TTL output (PCLK) with a 50% duty cycle for use as a peripheral clock signal. Th is clock is at one half of the processor clock speed. Reset timing is provided by a Schmitt Trigger input (m) and a flip·flop to synchronize the reset timing to the falling edge of CLK. Power·on reset is provided by a simple RC circuit on the RES input. There are two READY inputs, each with its own qualifier (AEiiii, AEN2). The unused AEN signal should be tied low. The READY logic in the 8284A synchronizes the RDY1 and RDY2 asynchronous inputs to the processor clock to insure proper set up time, and to guarantee proper hold time before clearing the ready signal. 6-265 ",PB8284A Operating Temperature ........ oOe to 700e ABSOLUTE MAXIMUM Storage Temperature .. . -65°e to +150o e RATINGS* All Output and Supply Voltages. . .. -O.5Vto+7V All Input Voltages . . . . . . . . . . . . - 1 .OV to +5.5V *COMMENT Stress above those listed under "Absolute Maximum Ratmgs" may cause permanent damage to the device. This IS a stress rating only and functIOnal operation of the device at these or any other conditions above those mdicated In the operational sections of this speCification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. Conditions: Ta ~ O°C to 70°C, VCC ~ 5V ± 10% DC CHARACTERISTICS TEST PARAMETER SYMBOL MIN MAX UNIT CONDITIONS Forward Input Current [ASYNC) IF -1.3 mA VF ~ 0.45V (Other Inputs) -0.5 VF = O.45V Reverse Input Current IR 50 Il A VR ~ 5.25V Input Forward Clamp Voltage Vc -1.0 V Ic~-5mA Power Supply Current lee 140 mA Input low Voltage Vil 0.8 V VCC~ 5.0V Input High Voltage VIH 2.0 V VCC ~ 5.0V Reset Input High Voltage VIHR 2.6 V VCC ~ 5.0V Output low Voltage VOL 0.45 V 5 mA ~IOl Output High Voltage (ClK) VOH 4 V -1mA} (Other Outputs) 2.4 V -1 mA IOH RES Input HystereSIS VIHR,VILR 0.25 V VCC ~ 5.0V Conditions: Ta""· O°C to 70°C, VCC=5V ± 10% AC CHARACTERISTICS TIMING REQUIREMENTS TEST PARAMETER SYMBOL MIN MAX UNITS CONDITIONS External Frequency High Time TEHEl 13 90%·90% VIN External Frequency low Time TElEH 13 n,"' 10%-10% VIN EFI Period TElEl TEHEL+TElEH+1i 1 XTAL Frequency 12 25 "' MH, ROY1, ROY2 Set-Up to ClK TR1VCl 35 ROY1, ROY2 Hold to ClK TClR1X 0 "' AEN1, AEN2 Set-Up to ROY1, ROY2 TA1VR1V 15 "' AEN1, AEN2 Hold to ClK TClA1X 0 "'n, CSYNC Set-Up to EFI TYHEH 20 CSYNC Hold to EFI TEHYl 10 n,"' CSYNC Width TYHYl 2 TElEl RES Set·Up to ClK TllHCl 65 "' 2 RES Hold to elK TCll1 H 20 "' (2) ROYl, RDY2 Active Set-Up to ClK tR1VCH 35 "' ASYNC - lOW ROY1, RDY2 Inactive Set.Up to ClK 35 "' tR1VCL ASYNC Set Up to ClK tAYVCl 50 "'n, ASYNC Hold to ClK 0 Input Rise Time tClAYX 20 "' From 0 8V to 2 OV tlllH Input Fall Time tlLll 12 n,"' From 2 OV to 0 8V 6-266 ",PB8284A AC CHARACTERISTICS TIMING RESPONSES TEST (CONT.) PARAMETER SYMBOL MIN MAX UNITS CONDITIONS eLK Cycle Period TCLCL 125 "' elK High Time TCHCL (1/3 TCLCL) +20 n' Figure 3 and Figure 4 eLK Low Time TCLCH (2/3 TCLCL) -15 a n, Figure 3 and Figure 4 TCH1 CH2 elK Rise and Fall Time TCL2CL 1 10 n, 1 OV to 3 5V PCLK High Time TPHPL TCLCL -20 n, PCLK Low Time TPLPH TCLCL -20 n, Ready Inactive to elK 4 TRYLCL -8 n, Figure 5 and Figure 6 Ready Active to eLK (3) TRYHCH (2/3 TCLcL)-15 0 n, Figure 5 and Figure 6 eLK To Reset Delay TCLIL 40 n, elK to PCLK High Delay TCLPH 22 n, elK to PCLK Low Delay TCLPL 22 n, ase to elK High Delay TOLCH -5 12 n, ase to elK Low Delay TOLCL 2 22 n, Output Rise Time (except elK) tOLOH 20 n, From GaV to 2 OV Output Fall Time (except elK) tOHOL 12 n, From 2 OV to a.BV A 0 1 A->8 1 0 } A and 8 1 1 HIGH IMPEDANCE Operating Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . oOe to 70°C ABSOLUTE MAXIMUM Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -65°e to +150o e RATINGS* All Output and Supply Voltages . . . . . . . . . . . . . . . . . . . . . . . . . . . -O.5V to +7V All Input Voltages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -1.0V to +5.5V Ta = 25°C *COMMENT: Stress above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. 6-270 ",PB8286/8287 DC CHARACTE R ISTICS Ta = o°c to 70°C, VCC = 5V ± 10% PARAMETER SYMBOL MIN MAX UNITS TEST CONDITIONS Input Clamp Voltage Vc -1 V IC =-5 rnA .1- 8287 Icc 130 rnA Power Supply Current I. 8286 ICC 160 rnA Forward Input Current IF -02 rnA VF =045V Reverse Input Current IR 50 ~A VR = 5.25V - B Outputs 0.45 V IOL = 32 rnA Output Low Voltage VOL - A Outputs 0.45 V IOL=16rnA - B Outputs 24 V IOH - -5 rnA Output High Voltage VOH - A Outputs 2.4 V IOH =-1 rnA Output Off Current IOFF IF VOFF = 045V Output Off Current IOFF IR VOFF = 5 25V Input Low Voltage 1- A Side VIL - 00.8 V VCC = 50V CD I B Side VIL 9 V VCC = 50V CD Input High Voltage VIH 2.0 V VCC=50V CD F '" 1 MHz i'nput Capacitance - A Side CIN 16 pF VBIAS - 2.5V, VCC = 5V Ta = 25°C F = 1 MHz Note CD B Outputs - IOL = 32 rnA, IOH = -5 rnA, CL = 300 pF A Outputs - IOL = 16 rnA, IOH = -1 rnA, CL = 100 pF AC CHARACTERISTICS Ta = O°C to 70°C, VCC = 5V ± 10% SYMBOL PARAMETER MIN MAX UNITS TIVOV Input to Output Delay Inverting 5 22 ns Non-Inverting 5 30 ns TEHTV Transmit/Receive Hold Time TEHOZ ns TTVEL Transmit/Receive Setup 10 ns TEHOZ Output Disable Time 5 22 ns TELOV Output Enable Time 10 30 ns TILlH, Input Output Rise Time 20 ns TOLOH TIHIL, Input Output Fall Time 12 ns TOHOL Notes: See waveforms and test load circuit_ S Outputs - IOL = 32 mA, IOH = -5 mA, CL = 300 pF A Outputs - IOL = 16 mA, IOH =-1 mA, CL = 100 pF AC TESTING INPUT INPUT/OUTPUT OUTPUT WAVEFOR'M A C TESTING INPUTS ARE DRIVEN AT 2 4V FOR A LOGIC "1" AND 0,45V FOR A LOGIC "0" TIMING MEASUREMENTS ARE MADE AT 1 5V FOR BOTH A LOGIC "'" AND "0" 6-271 ",PB8286/8287 WAVEFORMS I."" TEHOl r- TELOW OUTOU.. ~ - TEHTV---j __________________ ~t~~-- TTYIL 15V UV 214V TEST LOAD CI RCUITS OUT ~-r. . OUT ~-r OUT ~." a.&TATE to VOl. t.... S-STATE TO VOL I-" SWITCHING BOUTPUT A OUTPUT BOUTPUT uv tlV ..av OUT t_ .... OUT ~-r t.... OUT ~'-1'.... MTATETOYOH IoSrATETO YOH SWITCHING BOUTPUT A OUTPUT A OUTPUT MOS microprocessors like the BOBO/BOB5A/BOB6 are generally capable of dnvmg a FUNCTIONAL smgle TTL load. This also applies to MOS memory devices. While suffi~lent for min- DESCRIPTION imum type small systems on a smgle PC board, It IS usually necessary to buffer the mIcroprocessor and memory sIgnals when a system IS expanded or sIgnals go to other PC boards. These octal bus transceivers are designed to do the necessary buffering. Bi-Directional Driver Each buffered Ime of the octal dnver consists of two separate tri-state buffers. The B side of the driver IS designed to drive 32 mA and interface the system side of the bus to I/O, memory, etc. The A side IS connected to the microprocessor. Control Gating, OE, T The OE (output enable) Input is an active low signal used to enable the dri'vers selected by T on to the respective bus. T is an input control signal used to select the direction of data through the trans- ceivers. When T is high, data is transferred from the AO-A7 inputs to the BO-B7 out- puts, and when low, data is transferred from BO-B7 to the AO-A7 outputs. 6-272 ,..PB8286/8287 Package Outlines For information, see Package Outline Section 7. Plastic, fLPB8286C/87C Cerdlp, fLPB8286D/87D 8286/8287-DS-REV1-12-81-CAT 6-273 Notes 6-274 NEe CPU SYSTEM ,..PB8288 BUS CONTROLLER DESCRIPTION The J.LPB8288 bus controller is for use in medium to large J.LPD80B6/8088 systems. This 20'pm bipolar component provides command and control timing generation, plus bipolar drive capability and optimal system performance. It provides both MultibusTM command signals and control outputs for the microprocessor system. There is an option to use the controller with a multi·master system bus and separate I/O bus. FEATU RES • System Controller for IlPD8086/8088 Systems • Bipolar Drive Capability • Provides Advanced Commands • Tri-State Output Drivers • Can be used with an I/O Bus • Enables Interface to One or Two Multi-Master Buses • 20-P in Package PIN NAMES PIN CONFIGURATION SO-S2 Status Input P,ns lOB VCC ClK Clock ClK SO ALE Address latch Enable 51 52 DEN Data Enable DT/R MCE/PDEN DTtR Data Transmit/Receive ALE DEN AEN Address Enable AEN CEN CEN Command Enable MRDC iN-i'A lOB I/O Bus Mode AMWC IoRc AIOWC Advanced I/O Write MwTC AiOWc 10WC I/O Write Command iORC I/O Read Command GND 10WC lJloWr; Advanced Memory Write MWTC Memory Write Command MRDC Memory Read Command INTA Interrupt Acknowledge MCE/PDEN Master Cascade/Peripheral Data Enable TM - Multibus is a trademark of Intel Corp. REVI1 6-275 IlPB8288 PIN PIN IDENTIFICATION FUNCTION NO. SYMBOL NAME 1 lOB I/O Bus Mode Sets mode of IlPB8288, high for the I/O bus mode and low for the system bus mode. 2 ClK Clock The cI ock signal from the IlPB8284 clock generator synchronizes the generation of command and control signals. 3,19,18 SO, Sl, S2 Status Input Pins The IlPB8288 decodes these status lines from the Il PB8086 to generate command and control signals.When not in use, these pins are high. 4 DT/R Data Transmit/Receive This signal is used to control the bus transceivers in a system. A high for writing to I/O or memory and a low for reading data. 5 ALE Address latch Enable This signal is used for controlling transparent D type latches (J.LPB8282/ 8283). It will "strobe in the address on a high to low transition. 6 AEN Address Enable In the I/O system bus mode, AEN enables the command outputs of the IlPB8288 105 ns after it becomes active. If AEN is inactive, the command outputs are tri-stated. 7 MRDC Memory Read This active low signal is for switch- Command ing the data from memory to the data bus. 8 AMWC Advanced Memory This is an advanced write command Write Command which occurs early in the machine cycle, with timing the same as the read command. 9 MWTC Memory Write This is the memory write command Command to transfer data bus to memory, but not as early as AiiiiWC:. (See timing waveforms. ) 11 10WC I/O Write Command This command is for transferring information to I/O devices. 12 AIOWC Advanced I/O Write This write command occurs earlier Command in the machine ~cle than TOWC: 13 10RC I/O Read Command This signal enables the CPU to read data from an I/O device. 14 INTA Interrupt Acknowledge This is to signal an interupt- ing device to put the vector information on the data bus 15 CEN Command Enable This signal enables all command and control outputs. If CEN is low, these outputs are inactive. 16 DEN Data Enable This signal enables the data trans- ceivers onto the bus. 17 MCE/ Master Cascade Enable Dual function pin system. PDEN Peripheral Data Enable MC/E - In the bus mode, this signal is active during an inter- ru pt sequence to read the cascade address from the master interrupt controller onto the data bus. l'Dm - In the I/O bus mode, it enables the transceivers for the I/O bus just as DEN enables bus transceivers in the system bus mode. 6-276 ,..P88288 BLOCK DIAGRAM 8086 STATUS I so - ~ ·2 STATUS DECODER COM· MAND SIGNAL GENERA· TOR MWTC AMWc !l1f5Cl l'ORC i'5WC MULTIBUsTM COMMAND SIGNALS AiOWC iNTA CONTROL' AEN INPUT) CEN ( eLK CONTROL CONTROL SIGNAL GENERA· DT/R DEN MCE/P'De'N 1 ADDRESS LATCH. DATA TRANSCEIVER, ANO INTERRUPT CONTROL LOGIC TOR ALE SIGNALS ~ lOB +5V GND CONNECTING THE BUS CONTROLLER TO THE CPU ClK I" ClK I " 80 26 1 V 7 3 80 S, Ls ~ 2" jJPBB284 RE;AJLY 22 18 52 10 ~T _21 COMMAND .PDS0861 1 DE N JlP88288 8US 8088 DT/R CPU ALE MN/MX ~33 I TO STa OF /JPB8282/8283 LATCH TO T OF .P88286/S2S7 TR ANSCEIVER TO OE OF .P88286/8287 T RANSCEIVER ABSOLUTE MAXIMUM OPERATING TEMPERATURE .. .... oOe to 70°C RATlNGS* Storage Temperature . . . . . . . . . . -65°C to +1500 e All Output and Supply Voltages M •• 0.8 -1.0 UnH V V V T.at Conditions Vee = 4 SOY, IC=-5mA, HLT + HPBRQ Input Forward Current IF -0.5 mA Vee = 5.SOY, VF = O.45V lOB Mode lOB = Low Memory (I/O Status + TI) • Reverse Input ....kage IR &iJ ,.A Vee = 5.50V Only RESB = Low Commands CBRQ + HLT + Currant VR·5.SOV HPBRQ O~Low Voltage VOL lOB Mode· lOB = Low (Memory «I/O Status BUSY, CiiiiQ 0.45 V IOL = 20 mA AEN 0.45 V IOL = 18 mA RESB Mode RESB = High Command) • Commands) + (TI) BPRO,1iREil 0.46 V, IOL = 10 mA (SYSB/RESB = (SYSBIRESB = 0'!!l!!!!..H~llage VOH High) Low). CBRQ + BUSY, CBRa Open Collector HPBRQt + HL!l 2.4 V All Other Outputl 10H = 400,.A Note. Power Supply Current ICC 165 mA (i) Except for HALT and Idie status. @ LOCK prevents surrender of bus to any other arbiter. CROLCK prevents surrender of bus to a iower priority arbiter. @ HLT = processor hait;,52-S0 = 011. Capacitance @ TI = processor idle; 5~ = 111. @ +'meansOR. P._"".r Symbol Min Typ M.x Unit T••t Condition. @ • means AND. Input Capacitance Cln Statu. 25 pF t HPBRQ = higher Priority bus request or BPRN = I, Input Capacitance Cm (Other.) 12 pF Absolute Maximum Ratings * T. = 2S·C Operating Temperature Storage Temperature Voltage on Any Pin O·Ct070·C -6S·Cto +IS0·C -O.SVto +7V '--1I . 2,3V 92.5Q 2)AEN ~ I:'::Q Ali Input Voltages Power Dissipation ·COMMENT: Exposing the device to stresses above -1.0V to + S.SV I.SW 250 pF I 100PF '--r · those listed in Absolute Maximum Ratings could cause permanent damage., The device is not meant to be operated under conditions outside the limits described in the operational sections of this specification. Expo- 170Q , sure to absolute ,maximum rating conditions for extended periods may affect device reliability. 1 60PF 6-286 ",P88289 Typical CPU System Using the lAP B8289 Bus Arblter rlDh READY RDYI XACK 8284A "- Clock Driver bJVCC ANYRQT AEiiff r Cll< Bu. KHi "- Arbit.r Control READY ClK 8289 Bus ClK -y 8086 or ~ AEN RESB~ 8088 CPU +----1 S2)~ AEN 81atu8 (So. §1. Bus Controller I --/ ClK 8288 "- Command Bus ADO-ADI5 A16-A19 ALE / DEN lOB ~ Processor OE l STB DTiR Local Bus Addr... Latch I ) 82821 8283 -V Addre59 Bus ~ XC DIS OE Transceiver • T r "" --/ 82861 8287 "'- Oat• Bus 6-287 ~PB8289 AEN1 8284A Clock XACK (110 B u s ) - - - - - - - - - - - i R D Y 1 R D Y 2 ! - - - - - - - - - - - - - - - - - - X A C K MUlti-master System Bus MUlti-master Control Bus 8089 lOP I/O Bus Multi-master System Bus 10 Multi-master Command System Bus Command Bus vee 82831 10 8282 Multi-master Address System Address Address Address Bus Latch Latch Bus (2 OR 3) (2 OR 3) OE T 8286/8287 8286/8287 MUlti-master 10 Data Transceiver Transceiver System Bus (2) (2) Data Bus TYPICAL lOB Sy.tem 6-288 ",PB8289 D AEN2 AENlp---------, 8284A Clock :~:.nl BUS·-----------!RDY2 R D Y 1 i - - - - - - - - - - f - - - - - - - - - - X A C K Mull"-masler System Bus Mulll·m....r Syalem Bus Conlrol I-t---vcc Resldenl Bus Mul....m..ter Syst.m Bus R.sld.nt COmmand Muhl·rnaster Syatem Bus COmm.nd Bus Prom OR Decoder 828218283 Resldenl Address Acldreu Multl·m....r System aus Lat.~ Add.... Bus (2 OR 3) 828818287 Rnldenl Dala Transceiver MulU-mUler Syat8m Bus Date aus (2) • By .ddlng another 8289 arbiter .nd connecting 118 AEN 10 Ihe 8288 who •• AEN Is pre_nty groundacl, lhe processor could h.v••cce.. 10 twa muhl-m....r buses. 6-289 ~PB8289 AC Characteristics AC Test Condition Waveform Timing Requirements InputfOutput Ta = O°Cto +70°C; vcc 5V ± 10% Parameter Symbol MIn LImits TVp Ma. Unit Test Conditions :4~=X5_-Test POInIS--'~ elK Cycle Period tClCL 125 elK Low Time teLcH 65 elK High Time 35 ns AC Testing Inputs are driven at 2.4V for LOGIC 1 and O.45V for LOGIC o. The clock IS tCHCL driven at 4.3V and 0.25 Timing measurements are made at 1.5V for lOGIC 1 and O. Status Active tSVCH 65 ICLCl-1O Setup Status Inactive tSHCL 50 tCLCl-10 Timing Waveforms Setup Status Active tHVCH 10 ns The signals related to ClK are typical processor signals Hold and do not relate to the depicted sequence of events of Status Inactive tHVCL 10 the signals referenced to BClK. The signals shown Hold 20 related to the BClK represent a hypothetical sequence BUSYN Setup to ISYSBL BCLK~ of events for illustration. Assume three bus arbiters of CBRON Setup to tcasBL 20 priorities 1, 2, and 3 configured in the serial priority BCLK~ resolving scheme. Assume arbiter 1 has the bus and is BCLK Cycle Time tSLBL 100 holding BUSY low. Arbiter 2 detects its processor wants BClK High Time tSHCL 30 065 (lBLBL) ns the bus and pulls BREQ #2 low. If BPRN #2 is high (as LOCK Inactive Hold tClLL1 10 shown), arbiter 2 pulls CBRQ low. CBRQ signals to LOCK Active 40 ns higher priority arbiter 1 that a lower priority arbiter tCLLL2 Setup wants the bus. A higher priority arbiter would be given SPRNn to BCLK tpNBL 15 BPRN when it makes the bus request rather than having Setup Time to wait for another arbiter to release the bus through SVSBfRESB Setup tCLSR1 CBRQ. Arbiter 1 relinquishes the multimaster system SYSB/AESB Hold 20 tCLSR2 bus when it enters a state of not requiring it, by lower- Imtlalization Pulse 3 tSLBL + ns Width tlVIH 3 tCLCL ing its BPRO #1 (tied to BPRN #2) and releasing BUSY. Input Rise Time IILlH 20 ns From O.SV to 2.0V Arbiter 2 now sees that it has priority from BPRN #2 Input Fall Time tlHIL 12 ns From 2 OV to O.SV being low and releases CBRQ. As soon as BUSY signi- fies the bus is available (high), arbiter 2 pulls BUSY low on the next falling edge of BClK. Note that if arbiter 2 Timing Responses didn't want the bus at the time it received priority, it limits would pass priority to the next lower priority by lowering Parameter Symbol MIn TVp Max Unit Te.t Conditions its BPRO #2 (TPNPO). Note also that even a higher BCLK to BREa tBLBAL 35 ns priority aribiter which is acquiring the bus through Delay CD BPRN will momentarily drop CBRQ until it has acquired BCLK to BPAO tBLPOH 40 the bus. C!J® BPANH to BPAoa tPNPO 25 Delay CD ® BCLKto BUSY tSLBYL 60 Low BCLK to BUSY tBLBYH 35 ns Float @ eLK to AEN High tCLAEH 65 BCLK to AEN Low tBLAEL 40 BCLKto CBAa tBLCBL 60 Low BCLK to CBAa tRLCAH 35 Float @ Output Rise Time tOLOH 20 From O.8V to 2.0V Output Fall Time '0HOL 12 From 2.0V 10 O.8V Notesl (j) Denotes that the spec applies to both transitions of the signal. @ BCLK generates the first BPRD. Subsequent changes of BPRD are generated through BPRDN @ Measured at O.5V above GND 6-290 ~PD8289 Timing Waveforms STATE ------T4--------t------ ------~~------T2~----_r~----T3------~-------T4 .,------!---'ClCH ClK 'HVCH tClll1 tCLL2 lOCK SYSB/RESB tClSR1--- tCLSR2 AEN Processor elK Related Bus elK Related tBHCL IBLBRL BREa #2 SPRN If2 (BPRO #1) BPRO #2 (BPRN #3) ISYSBl ISLBYL IBLeSL !- tSLBYH tBLCBH 6-291 J.(PD8289 Package Outlines For information, .ee Package Outline Section 7. Cerdip, fLPB8289D 8289DS·REV1·7-83-TRIUM..cAT 6-292 NEe /JPD8355 /JPD8355·2 /JPD8755A* 16,384-BIT ROM WITH I/O PORTS *16,384-BIT EPROM WITH I/O PORTS DESCR IPTION The IlPD8355 and the IlPD8755A are IlPD8085A Family components. The IlPD8355 contains 2048 x 8 bits of mask ROM and the IlPD8755A contains 2048 x 8 bits of mask EPROM for program development. Both components also contain two general purpose 8·bit I/O ports. They are housed In 40 Pin packages, are designed to directly interface to the IlPD8085A, and are pln·for,pln compatible with each other. F EA TU R ES • 2048 X 8 Bits Mask ROM (IlPD8355 and IlPD8355·2) • 2048 X 8 Bits Mask EPROM (IlPD8755A) • 2 Programmable I/O Ports • Single Power Supplies: +5V • Directly Interfaces to the IlPD8085A • Pin for Pin Compatible • IlPD8755A: UV Erasable and Electrically Programmable • IlPD8335 and IlPD8355·2 Available in Plastic Package • J..LPD8755A Available in Ceramic Package PIN CONFIGURATIONS CE ClK RESET CE VCC PB7 PBS PB5 CE CE ClK RESET VCC PB7 PBS PB5 m NC PB4 VDD PB4 READY PB3 READY PB3 IO/iiii PB2 101M PB2 lOR PBl lOR PBl RD PBo RD PBo lOW IlPD PA7 lOW IlPD PA7 ALE 8355/ PAS ALE 8755A PAS ADO 8355-2 PA5 ADO PA5 ADl PA4 ADl PA4 AD2 PA3 AD2 PA3 AD3 PA2 AD3 PA2 AD4 PAl AD4 PAl AD5 PAo AD5 PAo ADS AlO ADS Ala AD7 Ag AD7 Ag Vss AS Vss AS NC: Not Connected Rev/2 6-293 I-lPD835518755A The J.lPD8355 and J.lPD8755A contain 16,384 bits of mask ROM and EPROM FUNCTIONAL DESCRIPTION respectively, organized as 2048 X 8. The 2048 word memory location may be selected anywhere within the 64K memory space by using the upper 5 bits of address from the J.lPD8085A as a chip select. The two general purpose I/O ports may be programmed input or output at any time. Upon power up, they will be reset to the input mode. VDDCD vcc (+5V) BLOCK DIAGRAM S AD7 . ADO --+- AlO' AS READY CE IT ALE RD D S PA7·PAO D lOW lOR ClK S loiM RESET Vss (OV) Note CD VDD applies to I'PDS755A only. Operating Temperature (J.lPD8355) ......................... oOe to +70 o e ABSOLUTE MAXIMUM (J.lPD8755A) . . . . . . . . . . . . . . . . . . . . . . . oOe to +70 o e RATINGS* Storage Temperature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -65°e to +150 o e Voltage on Any Pin (J.lPD8355) . . . . . . . . . . . . . . . . . . . . . . . . -0.5 to +7V CD (J.lPD8755A) . . . . . . . . . . . . . . . . . . . . . . . -0.5 to +7V CD Power Dissipation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. 1.5W Note: CD With Respect to Ground *COMMENT: Stress above those listed under "Absolute MaxImum Ratings" may cause permanent damage to the device. Th,s is a stress rating only and functIonal operation of the device at these or any other conditIOns above those indicated In the operational sections of this speCIfication IS not Implied. Exposure to absolute maximum rating conditions for extended periods may affect deVice reliability. Ta = O°C to +70°C; VCC = 5V ± 5% DC CHARACTERISTICS LIMITS TEST PARAMETER SYMBOL MIN MAX UNIT CONOITIONS Input Low Voltage VIL -0.5 0.8 V Vee = 5.0V CD Input High Voltage VIH 2.0 VCC+0.5 V Vec = 5.ov·CD Output Low Voltage VOL 0.45 V IOL = 2 rnA Output High Voltage VOH 2.4 V IOH = -400 I'A Input Leakage IlL 10 IJA VIN = VCC to OV Output Leakage Current ILO ±10 IJA 0.45V "VOUT "Vcc Vee Supply Current lee 180/125 rnA IJPD8355/8355-2 Note: CD These conditions apply to J.lPD8355/J.lPD8355-2 only. 6-294 lAP D8355/8755A PIN IDENTIFICATION PIN NO. SYMBOL NAME FUNCTION 1,2 CE, CE Chip Enables Enable Chip activity for memory or I/O 3 ClK Clock Input Used to Synchronize Ready 4 Reset Reset Input Resets PA and PB to all inputs 5Q) NC Not Con nected 5CV VDD Programming Used as a programming voltage, Voltage tied to +5V normally 6 Ready Ready 0 utput A tri·state output which is active during data direction register loading 7 10/M I/O or Memory An input signal which is used Indicator to indicate I/O or memory activity 8 lOR I/O Read I/O Read Strobe In 9 RD Memory Read Memory Read Strobe In 10 lOW I/O Write I/O Write Strobe In 11 ALE Address low Indicates information on Enable Address/Data lines is valid 12·19 ADO·AD7 low Address/Data Multi plexed Low Address and Bus Data Bus 20 VSS Ground Ground Reference 21·23 A8·A 1Q High Address High Address inputs for ROM reading 24·31 PAO·PA7 Port A General Purpose I/O Port 32·39 PBO·PB7 Port B General Purpose I/O Port 40 VCC 5V Input Power Supply Notes: Q) pPD8355 ~ pPD8755A I/O PORTS I/O port activity IS controlled by performing I/O reads and writes to selected I/O port numbers. Any activity to and from the pPD8355 requires the chip enables to be active. This can be accomplished with no external decoding for multiple devices by utilizing the upper address lines for chip selects. Q) Port activity is controlled by the following I/O addresses: AD, ADO PORT SELECTED FUNCTION 0 0 A Read or Write PA 0 1 B Read or Write PB 1 0 A Write PA Data Direction 1 1 B Write PB Data Direction Since the data direction registerlS for PA and PB are each 8·bits, any pin on PA or PB may be programmed as input o~ output (0 = in, 1 = out). Note: CD During ALE time the data/address lines are duplicated on A15·A8. 6-295 ~PD8355/8755A Ta'" O°C to 70°C VCC- 5V + 5% 8355 8355·2 Test AC CHARACTERISTICS Symbol Parameter Moo Max. Mm. Mox Unit CondItIons teYe Clock Cycle Time 320 200 T, elK Pulse Width 80 40 r-~---+~~~-------------------r~--r----+~~-r----+---~CLOAD=150pF T2 elK Pulse Width 120 70 If,t r elK Rise and Fal! Time 30 30 tAL Address to Latch Set Up Time 50 30 tlA Address Hold Time after Latch 80 30 tle latch to READ/WA ITE Control 100 40 tAD Valid Data Out Dealy from READ Control 170 '40 tAD Address Stable to Data Out Valid 400 330 tll Latch Enable Width '00 70 tRDF Data Bus Float after READ '00 85 tel READ/WAITE Control to Latch Enable 20 f-=--+---'o:":::===-=-=.:..,:=-====--+:::=-i-----f--:-:c-+----t--"'----1150 tee READ/WRITE Control Width 250 'A 200 Load pt- tow Data In to Write Set Up Time 150 150 two Data In Hold Time After WR ITE 10 10 twp WRITE to Port Output 400 400 tpA Port Input Set Up Time 50 50 tAP Port Input Hold Time 50 50 tRYH READY HOLD Time 160 '60 tARY ADDRESS (CE) to READY 160 160 tAV Recovery Time Between Controls 300 200 tAOE READ Control to Data Bus Enable 10 10 Notes 30 ns for IJPDB755A CLOAD'" 150 pF ROM READ, I/O READ AND WRITE CD TIMING WAVEFORMS elK ,tCY/~--"-i\'- __...JIr---rT'=fT2L AS-l0-'r.-----------------------------. 10/M_-'-~========~~=========;~--------------------'~-- ADO_7 __ J~ __________ ~ PROM READ, I/O READ AND WRITE ~ Aa-10 ADDRESS ADO.7 _ _ ...J-f-_____"'i r-_...J"f-__D_A_T_A_ _ _-'r ---..( ADDRESS }- ALE CE tcc Notes: G) I'PD8355 @ I'PD8755A ® CE must remain low for the entire cycle 6-296 JJPD8355/8755A TIMING WAVEFORMS CLOCK (CONT.) If WAIT STATE TIMING (READY = 0) elK ICE = 1). fCE = 0) ALE 1/0 PORT INPUT MODE, ~~:~~ \-'M~ t~'RP INPUT~ ~ QATA----- - - ' " BUS _ _ _ _ _ _ _ ..1\__________ OUTPUT ".ODE' \ . . .----.-WP--1 l':L' GL~~CT~~~E~ PORT - - - - - - - - - - - - ~ OUTPUT,_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ ~ OATA------V BUS _ _ _ _ _ _ ../'\_ _ _ _ _ _..1. X '-._ _ __ EPROM PROGRAMMING Erasure of the IlPD8755A occurs when exposed to ultraviolet light sources of wave· IlPD8755A lengths less than 4000 A. It is recommended, if the device is exposed to room fluorescent lighting or direct sunlight, that opaque labels be placed over the window to prevent exposure. To erase, expose the device to ultraviolet light at 2537 A at a minimum of 15 W·sec/cm 2 (intensity X expose ~ime). After erasure, all bits are in the logic 1 state. Logic O's must be selectively programmed into the desired locations. It is recommended that NEC's PROM programmer be used for this application, 6-297 I4PD8355/8755A Package Outlines For Information, ••e Package Outline Section 7. Plastic, f,CPD8355HC/8755AC Ceramic, f,CPD8355D Ceramic, f,CPD8355HD Ceramic, f,CPD8755AD Cerdip, f,CPD8755AD, has quartz window 8355/8355-218755AD5-REV2-7-83-CAT 6-298 NEe PACKAGE OUTLINES IJ PACKAGE OUTLINES All packaging information is contained in this Package Outlines section. Specifications and dimensions for every package are shown together with a list of the products available in each. Additions, changes, and updates will be incorporated in succeeding editions of the catalog. 16PIN Item MIllimeter. Inchea Plastic f:, A 19.4 max 0.76 max B 0.81 0.03 fLPB8216C/26C C 2.54 0.10 0 0.5 17.78 002 0.70 I' -A 'I G H 1.3 2.54 min 0.5 min 4.05 max 4.55 max 0.051 a.10ml" 002 min 0.16 max 018 max =fMWiJ -I~. ,-J \.- 1~~L~'~1 ' K 7.62 0.30 6.4 025 +010 II 0.25 -0.05 0.01 Item Millimeter. Inch •• Cerdip A 19.9 max 0.784 max B 1.06 0.042 fLPB8216D/26D ~K;;] C 0 2.54 0.46 ± 0.10 0.10 0.018 ± 0.004 I' A 'I Ir-Li ,~J.I r ) E 17.78 0.70 1.5 0.059 G 2.54 min a.10ml" H a.Sml" 0.019 min 4.58 max 0.181 max B~ jc~,l -i~1I ~ K 0-15' 5.08 max 0.20 max 7.62 0.30 6.4 0.25 +0.10 +0.0039 II 025 0.0098 -0.05 -0.0019 Item A B C Mlillme.er. 23.2 max 1.44 2.54 Inch•• 0.91 max 0.055 0.1 18PIN Plastic fLPD8284AC II ~, f~~ 0 0.45 0.02 E 20.32 0.8 I' , JW!~ ~~, .,1 · 1.5 0.059 G 2.5ml" 0.1 min H OSmin 0.02 min 4.6 max 0.18 max K 5.1 max 7.62 6.7 O.2max 0.3 0.26 II 0.25 0.01 7-1 PAC ~~~~~~"""""""""""""""""""~"~~~~~~~~~~ln~C~h~ WAGE OUTLI N · - 18 PIN (Con. 8 . a._ •.~ _ .~ ~- _ , ;.. ~ - t I • . 'M " _D Cer IP }" : l I_"~,!, A 'I : ::: :: 20.32 0.45 0.06 -..if--.M I J ~B~-IE ~'.I~r 0.15" I\- G . :;.~. ~ 4.6 max ;6.7 0.2 max _ M 0.25 20 PIN Item Mlilimete,. Inch•• Plastic A 28.7 max 1.05 max B 1.05 0.041 PB8282C/83C ~PB8286C/87C C 2.54 0.1 D 0.5-0.1 0.02 -0.004 22.86 0.9 1.4 0.055 G 2.54 min 0.1 mm H O.5mm 0.02 min 3.55 0.14 5.08 max 02max K 7.62 0.3 6.4 0.25 M 0.25 - 0.10 0.01 - 0.004 - 0.05 -0.002 Cerdip It_ 1IIIIIm.I... A 21.7 max PB8282D/83D ...PB8286D/87D 8 0.7 0.028 ~PB8288D A 1 C 2.&4 0.1 ... PB8289D D 0.48 ± 0.1 0.018 ± 0.004 E 22.88 0.9 F 1.4 0.055 G 0.1 min 2.54 min 0.02 min H 0.5 min 0.17 max 4.32m8x 5.08ma. 0.2m8x 7.82 0.3 !L=----~8.8~n:10___:: + 0.004 -K 0.27 ft. M 0.25 + _ 0.10 0.05 0.01 _ 0.002 24 PIN Item Mlllllllete,. Inch•• Plastic A 33ma. 1.3mBX a 2.63 0.1 ... PB8212C 'I c ~' 2.54 0.1 PD8243C ... PD82C43C A D -~:::"::-:--'0.02 0.5 ± 0.1 ± 0.004 ~PD8253C-5 ~~t' I E F 27.94 1.5 1.1 0.059 G 2.54ml" 0.1 min H 0.5 min 0.02 min I 5.22m8x 0.205m8x J S.72mu 0.225 max K 15.24 0.6 13.2 0.52 + 0.10 + 0.004 M _ _ _0_.25_-__ _ 0•05 0.01 _ 0.0019 7-2 Item Millimeter. Inche. A 30.78 max 1.21 max B 1.53 max 0.06 max fJ.PD8243D c 2.54:t 0.1 0.10 ± 0.004 fJ.PD8253D-5 D 0.46 ± 0.8 0.018 ± 0.03 27.94 ± 0.1 1.10 ± 0.004 1.02 min 0.04 min G 3.2 min 0.13 min H 1.02 min 0.04 min 3.23 max 0.13 max 4.25 max 0.17 max K 15.241yp 0.601yp 14.93'yp 0.591yp M 0.25 ± 0.05 0.010 ± 0.002 Item Millimeter. Inche. Cerdip A 33.5 max 1.32 max fJ.PB8212D B 2.78 0.11 fJ.PD8243D c 2.54 0.1 fJ.PD82C43D D 0.46 0.018 fJ.PD8253D-5 27.94 1.1 1.5 0.059 G 2.54 min 0.1 min _-'H"-_ _-=0.5=-m:.:cl:.:cn_ _~0.019 min 4.58 max 0.181 max 5.08 max 0.2 max K 15.24 0.6 13.5 0.53 + 0.10 + 0.004 M 0.25 0.01 - 0.05 - 0.002 Item Millimeter. Inche. Plastic A 33 max 1.3 max Skinnydip B 2.53 0.1 c 2.54 0.1 fJ.PD82C43CX D 0.5 ± 0.1 0.02 ± 0.004 E 27.94 1.1 1.5 0.059 G 2.54 min 0.1 min H 0.5 min 0.02 min 5.22 max 0.205 max 5.72 max 0.225 max K 7.62 0.30 6.4 0.25 + 0.10 + 0.004 M 0.25 0.01 - 0.05 - 0.0019 ------------------------------------------------------28 Item A B Mlllimete,. 38.0 max 2.49 Inche. 1.496 max 0.098 Plastic PIN fJ.COM-4C C 2.54 0.10 fJ.PD557LC fJ.PD550C/554C fJ.PD550LC/554LC fJ.PD7506C fJ.PD7507SC fJ.PD7520C fJ.PD8021C fJ.PD8251ACI AFC fJ.PD8259AC 13.2 0.52 + 0.10 + 0.004 M 0.25 0.01 - 0.05 - 0.002 7-3 PACKAGE OUTLINES 28 PIN ( C o n t . ) - - - - -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ Ceramic Item IIlIIimete,. Inch•• A 36.2 max 1.43 max fJ.PDn20D B 1.59 max 0.06 max fJ.PDnp20D' fJ.PD8251AD/AFD c 2.54 ± 0.1 0.1 ± 0.004 D 0.46 ± 0.01 0.02 ± 0.004 'has quartz window 33.02 ± 0.1 1.3 ± 0.004 1.02 min 0.04 min G 3.2 min 0.13 min H 1.0 min 0.04 min 3.5 max O.14m.x 4.5 max 0.18 max _-=.:.K_ _ _l;;.;5'c;:.24;.cI.,.,yp_ _ _0.6IYP 14.93 Iyp 0.591yp II 0.25 ± 0.05 0.01 ± 0.002 Cerdip Item Millimeter. " Inch•• A 37.7 max 1.48 max fJ.PDS021D B 2.78 1.1 fJ.PD8251AD/AFD fJ.PD8259AD c 2.54 0.1 ,D 0.46 ± 0.10 0.018 ± 0.004 27.94 1.10 1.3 0.05 G 2.54 min 0.1 min H 0.5 min 0.020 5.0 max 0.20 5.5 max 0.216 K 15.24 0.60 L 14.66 0.58 II 0.25 ± 0.05 0.010 ± 0.002 Plastic Item Millimeter. Inch•• Shrinkdip A 15.85m"" .828 max c 1.778 .07 fJ.PD7506CT D 0.5 .02 fJ.PD7520CT E 24.89 .98 fJ.PD7507SCT fJ.PD554CT F 1.1 .043 fJ.PD550CT G 2.54 .1 fJ.PD557LCT H .51 min .02 min 5.08m.x .2m.x K 15.24 .600 13.2 .52 + 0.10 + .004 II 0.25 .01 - 0.05 - .002 fJ.PD7507C/OSC fJ.PD7508AC fJ.PD7508HC fJ.PD8041AC fJ.PD8048HC/35HLC fJ.PDSOC35C/C48C B ~ F --jC~E ~~D .1 F 1.2 min 0.047 min fJ.PD8049HC/39HLC j..- _. G 2.54 min 0.10 min fJ.PD80C49C/C39C H 0.5 min 0.018 min fJ.PD78OC fJ.PD8155C/56C ~K~ 5.22 max 0.206 max fJ.PD8085AC/AHC fJ.PDn51C fJ.PD8237C-5 fJ.PD765AC/7265C fJ.PD8255AC-5 fJ.PD7201AC fJ.PD7210C fJ.PD8257C-5 IbPD8279C-5 fJ.PD8355HC/8755AC flv==L ==\j~I . . K 5.72 max 15.24 lyp 0.225 ma. 0.600 Iyp 7-4 PACKAGE OUTLINES - - - - - - - - - - - - - - - - - - - - - - - - - 4 0 PIN (Cont.) Item Millimeter. Inch •• Ceramic A 51.5 max 2.03 max fJ.PDB041AD S 1.62 max 0.06 max fJ.PDB04BHD/35HLD C 2.54 ± 0.1 0.1 ± 0.004 fJ.PDB!lC35D/C4BD 0 0.5 ± 0.1 0.02 ::t 0.004 fJ.PDB049HD/39HLD E 48.26 ± 0.1 1.9 ± 0.004 fJ.PD7BOD 1.02 min 0.04 min fJ.PDBOB5AD fJ.PD765AD/7265D G 3.2 min a.13m!n fJ.PD7201AD H 1.0 min 0.04 min fJ.P0 7210D 3.5 max 0.14 max fJ.PD7220D 4.5 max 0.18 max fJ.PD7261D fJ.PDB237D-S K 15.24 typ 0.6typ fJ.PDB25SAD-5 14.93 typ 0.59 IYP fJ.PDB279D-5 fJ.PDB755AD M 0.25 ± 0.05 0.01 ± 0.0019 fJ.PDB355D fJ.PDB155D/56D fJ.PDB355HD fJ.PDB257D-5 Item Millimeter. Inch •• Cerdip A 53.34 max 2.1 max fJ.PDBOB6D S 13.2 .52 fJ.PDBOBBD C 2.54 ± 0.25 .1 ± .01 fJ.PDBOBSAD 0 0.5 ± 0.1 .002 ± .004 fJ.PDB237D-5 E 48.56 1.91 fJ.PDBOB5AHD F 1.3 .051 fJ.PDB741AD* fJ.PDB74BD* G 0.51 min .02 min fJ.PDB749HD* H 7.62 .3 fJ.PDB75SAD* 5.08 max .2mBX 'has quartz window K 15.24 .6 M 0.25 ± 0.05 .01 ± .002 Item Millimeter. Inch •• Plastic A 39 max 1.54 max I' A '1 Shrinkdip c 1.778 .07 TT L I J f1PD7S07CU o E 0.5 35.56 .02 1.4 HTT U III ih fJ.PD7508CU fJ.PD750BACU G 1.1 2.54 .043 .1 s~ ~ ~ ~F ---jc~ ~~D .1 fJ.PD7507HCU fJ.PD750BHCU H .51 min .02 min fJ.PDBOC48CU fJ.PDBOC49HCU f~1 5.08 max .2 max K 15.24 .600 13.2 .52 J +0.10 +.004 M 0.25 .01 - 0.05 - .002 --I/-M \'-0-15' 7-5 Item ~-------------A--------------~ Ceramic· A 53.34 max 2.1 max B 20.32 .8 Piggyback c 2.54 ± 0.25 .1 ± .01 fL PD75CGOllE o 0.46 ± 0.05 .018 ± .002 E 48.26 1.9 1.02 .04 G 3.2 min .126 min H 1.02 min .04 min 3.0 max .118 max 4.32 max .170 max K 15.24 .6 15.24 .6 M 0.25 ± 0.05 .01 ± .002 N 33.02 1.3 o 2.54 ± 0.25 .1 ± .01 42PIN------------------------------------------------------ Plastic Item A Millimeters 56.0 max Inches 2.2 max B 2.6 max 0.1 max fLCOM-4C c 2.54 0.1 fLPD552C/553C fLPD7527C/28C/37C/38C o 0.5 ± 0.1 0.02 ± 0.004 E 50,8 2.0 1.5 0.059 G 3.2 min 0.126 min H a.Smln 0.02 min 5.22 max 0.20 max 5.72 max 0.22 max K 15.24 0.6 13.2 0.52 M 0.3 ± 0.1 0.01 ± 0.004 Cerdip Item MIUimater. Inch•• MC-430PD A 56.5 max 2.24 max r- A I B 27.94 ± 0.5 1.1 ± .02 11 000000000000 C 2.54 0.1 0 OD~J 11 + 0.25 + .01 0 0.5 .02 - 0.1 - .004 E 50.8 2.0 1.27 .05 G 2.54 min 0.1 min ,000000000000 H 1.5 ± 0.3 .059 ± .012 !L N l-:I-~~-B ~ ~P .1 ~H 1.0 min 6.5 max .039 min .256 max ,'lrffi Frr K 15.24 0.6 1~2M i '~ VVV~V~1i V T I ~ Ii VIi v:S1 I~ L .039 l M 0.35 + 0.25 .014 + .01 I - 0.1 - .004 ~K~ 1 F E f-c +-D .1 G N 0 1.6 2.54 ± 0.3 .063 0.1 ± .012 P 2.0 .079 Q 1.74 ± 0.25 .685 ± .01 R 21.0 max .827 max 7-6 PACKAGE OUTLINES 42 PIN (Cont.) 'I Item Millimeter. Inch•• A 55.88 max 2.2 max I' A Ceramic 1 B 20.32 .80 00000000000000 Piggyback C 2.5 ± 0.25 .1 ± .01 C o 0.46 ± 0.05 .018 ± .002 fLPD75CG28E/CG38E ---- --" 50.80 2.0 ) B G H 1.02 3.2m!n 1.02 min 3.0 max 4.32 max .04 .126 min .04 min .118 max .17 max 00000000000000 1 K 15.24 .6 15.24 .6 M 0.25 ± 0.05 .001 + .01 N 33.02 1.3 0 2.54 ± 0.25 .1 ± .01 Millimeter. Inches Plastic A 40.95 max 1.612 max Shrinkdip c 1.778 .07 o 0.5 .02 fLPD7527CUl28CUI 37CU/38CU 37.34 1.47 1.1 .043 G 2.54 .1 H .51 min .02 min 5.08 max .2 max K 15.24 .600 13.2 .52 + 0.10 + .004 M 0.25 .01 - 0.50 - .002 _____________________________________________________ 44 PIN Item Millimeter. Inches A 1.36 ± 0.4 .054 + .016 Plastic + .3 + .012 Miniflat B 10 .394 - .2 - .008 fLPD80C49G c 0.8 ± 0.2 .03 ± .008 fLPD80C48G + 0.3 + .01 o .35 .014 - 0.1 - .004 8.0 ± 0.3 .315 ± .012 1.0 ± 0.2 .39 :t: .008 + 0.10 + .004 G 0.15 .006 - 0.005 - .0002 H 0.0 ± 0.1 0.0 ± .004 1.5 max .059 max ~RDDRDDRRRRD~~ G H 7-7 PAcKAGE OUTLINES 52~N--------~--------~----------------------~-------- Plastic Miniflat ,,"COM-4G r~i ' -r- fIT H.... A B C MiIIl...ter. 14 12.0 ± 0.3 1.0 ± 0.15 + 0.2 .55 Inch•• .472 ± .012 .039 ± .006 + .008 l' [ , ,,.- -- --L.- ,,"PD7506G 0 0.4 .016 ,,"PD7507G/08G - 0.1 - .004 ,,"PD80C49G/C39G ,,"PD80C48G/C35G ~IC ---.Lot F 0.15 + 0.10 .006 + .004 ,,"PD7225G _ 0.05 _ .002 G 2.2 ± 0.2 .087 ± .008 _I :~1 ~ I---- ----I H 0.1m.. 20.6 ± 0.4 2.8 max .004m•• .811 ± .016 .110 max 64PIN--------------------------__________________________ Ite... Millimeter. Inch•• Plastic A 41.5 1.83 QUIL B 1.05 ± 0.2 .041 ± .008 C 2.54 0.1 ,,"PD7500G Evaluation o 0.5 ± 0.1 .02 ± .004 ~ Chip E 39.4 ± 0.3 1.55 ± .012 ,,"PD7800G ,,"PD7801G/02G 1.27 ± 0.25 .05 ± .01 ,,"PD7810G/11G 3.6 .142 ,,"PD7519G A 24.13 .95 ,,"PD78COSG K 19.05 .75 ,,"PD7807G/09G 16.5 .85 + 0.10 + .004 M .25 .01 - 0.05 - .002 N 23.1 - 25.2 .909 - .99 o 18.0 - 20.1 .709 - .781 Ceramic It.... MUII.e,." Ino.... QUIL A 41.5 1.634 max B 1.05 0.042 ,,"PD5568 C 2.54 0.1 o 0.5 ± 0.1 0.2 ± 0.004 E 39.4 1.55 F 1.27 0.05 G 5.4 min 0.21 min A 2.35mex 0.13.,..x 24.13 0.95 K 19.05 0.75 L 15.9 0.826 M 0.25 ± 0.05 0.01 ± 0.002 7-8 PACKAGE OUTLINES MIIII.,.ete,. Inch•• 64 PIN (Cont.) Item A 42.0 max 1.65 max I- A 'I QUIL Ceramic c B 26.67 1.05 T 2.54 ± 0.25 0.1 ± .01 Piggyback 00000000000000 C 1 0 0.46 ± 0.05 0.018 ± .002 .,.PD75CG19E 38.10 1.5 .,.PD78PG11E 1.02 .04 D B G 1.27 ± 0.25 .05 ± .01 H 1.02mln .04 min 00000000000000 3.9 max .154 max 4.45 max .175 max ~I' ~M~ K 3.2 min .126ml" 33.02 1.3 1 r-0--1 N M 2.54 ± 0.25 0.1 :t .01 +~~ 0.25 ± 0.05 .01 ± .002 TI IT N~r 15.24 .6 I ° p Q 19.05 24.13 .75 .95 11 I. jcp~~~D.1 F E 1. 1 . - : - 1 1 Item Millimeters Inche. Plastic A 581yp 2.284 typ c 1.778typ 0.07 typ Shrinkdip o 0.5 typ .0197 typ .,.PD7519CW 55.12 typ 2.17typ .,.PD7519HCW .,.PD7801CW 1.1 typ 0.043 typ .,.PD7802CW G 3.2 .126 .,.PD7810CW/11CW 22.3 typ .878 typ .,.PD7809CW/07CW 4.05 typ .159typ 3.95 typ 0.156 typ K 19.05 typ 0.75 typ 17 typ 0.669 typ M 2.75 typ 0.108typ Item Millimeter. Inch•• Plastic A 14 .551 fIT B 12 ± 0.3 .472 ± .012 Miniflat C 18.0 ± 0.3 .709 ± .012 .,.PD7501G 0 20 .787 .,.PD7502G/03G 1.0 ± 0.15 .039 ± .006 B A .,.PD7227G III +0.2 +.008 .,.PD78C06G 0.4 .016 -0.1 -.004 G 24.7 ± 0.4 .972 ± .016 +0.10 +.004 ~:~ H 0.15 .006 -0.05 -.002 1.2 ± 0.2 .047 ± .008 2.35 ± 0.2 .0925 ± .008 K 18.7 ± 0.4 .736 ± .016 L~g J-+ 2.3 max .091 max gggggggg:ggg gggggg ~J~ ~IP- 7-9 PACKAGE OUTLINES 80PIN------------------------------------------------------ Plastic Item Millimeters +.3 Inch•• +.012 m A 14 .55 -.2 -.008 Miniflat B 12.0 ± 0.3 .472 ± .012 fLPD7514G C 18.4 ± 0.3 .724 ± .012 fLPD7228G +.3 +.012 0 20 .787 -.2 -.008 0.8 ± 0.15 .0315 ± .006 +0.2 +.008 0.35 .0925 -0.1 -.004 G 24.7 ± 0.4 .972 ± .016 T1TTTT1'TT'TTT'1ll H 0.15 +0.10 -0.05 .006 +.004 -.002 18.7 ± 0.4 .736 ± .016 ------------+1.1 .1 K 2.35 ± 0.2 1.2 ± 0.2 .0925 ± .008 .048 ± .008 +0.25 +.01 2.05 .081 -0.10 -.004 7-10 NEe QUALITY & RELIABILITY IIr.II OF NEC MICROPROCESSORS ail NEe QUALITY AND RELIABILITY OF NEC MICROPROCESSORS Introduction Reliability Testing As large-scale integration reaches a higher level of density, Reliability is defined as the characteristics of an item reliability of devices imposes a profound impact on system expressed by the probability that it will perform a required reliability. And as device reliability becomes a major factor, function under stated conditions for a stated period of time. test methods to assure acceptable reliability become more This Involves the concept of probability, definition of a complicated. Simply performing a reliability test according to required function(s), and the critical time used in defining a conventional method cannot satisfy the demanding require- the reliability. ments for higher reliability: at these new, higher levels of LSI Definition of a required function, by implication, treats the def- density, it is increasingly difficult to activate all the elements in inition of a failure. Failure is defined as the termination of the the internal circuits. A different philosophy and methodology ability of a device to perform its required function(s). Futher- is needed for reliability assurance in microprocessors and more, a device is said to have failed if it shows inability to per- family products. Moreover, as integration density increases, form within guaranteed parameters as given in an electrical the degradation of internal elements in an LSI device is sel- specification. dom detected by measuring characteristics across external Discussion of reliability and failure can be approached in two terminals. ways: with respect to systems or to individual devices. The In order to improve and guarantee a certain level of reliability accumulation of normal device failure rates constitutes the for large-scale integrated circuits, it is essential to build qual- expected failure rate of the system hardware. Important con- ity and reliability into the product. Then the conventional siderations here are the constant failure period, the early fail- reliability tests are followed to ensure that the product dem- ure (infant mortality) period, and overall reliability level. With onstrates an acceptable level of reliability. regard to individual devices, areas of prime interest include NEC has introduced the concept of Total Quality Control specific failure mechanisms, failures in accelerated tests, and (TQC) across its entire semiconductor production line. By screening tests. adopting TQC, NEC can build quality into the product and Some of these failure considerations pertain to both systems thus assure higher reliability. The concept and methodology and devices. The probability of no failures in a system is the of Total Quality Control are companywide activities-involv- product of the probability of no failure in each of its compo- ing workers, engineers, quality control staffs, and all levels of nents. The failure rate of system hardware is then the sum of management. the failure rates of the components used to construct the NEC has also introduced a prescreening method into the system. production line that helps eliminate most of the potentially Life distribution defective units. The combination of building quality in and The fundamental principles of Reliability Engineering predict screening projected early failures out has resulted in superior that the failure rate of a group of devices will follow the well- quality and excellent reliability. known Bathtub curve in Figure 1. The curve is divided into This Reliability Report describes the philosophy and method- three regions: Infant Mortality, Random Failures, and Wear- ology used by NEC to attain a higher level of reliability for out Failures. microprocessors and family products. Technology Description Most microprocessors and family products are produced uti- wearout lizing high performance, high density, N-channel MOS tech- :Period ;; nology. State-of-the-art high performance has been achieved Random Failure Period by introducing fine line generation techniques. The data pre- '---------------~ sented in this report shows that this advanced technology ' - + - - - - - - - - - - - - - _ Time yields products as reliable as those from previous technologies. Figure 1. Reliability Life (Bathtub) Curve By reducing physical parameters, circuit density and perfor- mance were increased while active circuit power dissipation decreased. Current state-of-the-art N-channel MOS technol- Infant mortality, as the name implies, represents the early life ogy utilizes 2-4fLm channel length and a gate oxide thick- failures of devices. These failures are usually associated with ness of 3OO-500A. This advanced process yields integration one or more manufacturing defects. densities of 400-800 gateslmm 2 with a speed-power product After some period of time, the failure rate reaches a low of 1pJ or less. value. This is the random failure portion of the curve, repre- Technology evolution senting the useful portion of the life of a device. During this Technology evolved from early P-channel MOS to current random failure period there is a decline in the failure rate due state-of-the-art high performance, high density, N-channel to the depletion of potential random failures from the general MOS during the past decade. This evolution is expected to population. continue in the future. As a result, even more high level func- The wearout failures occur at the end of the device's useful tions will be included in a small area, as past history life. They are characterized by a rapidly rising failure rate demonstrates. over time as devices wear out both physically and electrically. 8-1 Quality and Reliability of NEC Microprocessors Thus, for devices which have very long life expectancies Accelerated reliability testing compared to those of systems, the areas of concern will be As an example, assume that an electronic system contains the infant mortality and the random failure portions of the 1000 integrated circuits and can tolerate 1 percent system population. failures per month. The failure rate per component is: The system failure rates are related to the collective device failure rates. In a given system, after elimination of the early 0.01 Failures _ 13.888 x 10-9 Failures/Hour failures, the system will be left to the failure rate of its compo- 720K Device Hours - or 13.8888 FITs nents. In order to make proper projections of the failure rate in Where: FIT = Failure unit per 109 device hours the operating environment, time-to-failure must be acceler- ated in tests in a predictable way. To demonstrate this failure rate, note that 13.8888 FITs corre- spond to one failure in about 7,000 devices in an operating test of 10,000 hours. It is quickly apparent that a test condition FailUre distribution at NEe is required to accelerate the time-to-failure in a predictable MOS and Bipolar integrated circuits returned to NEC from the and understandable way. The implicit requirement for the field underwent extensive failure analysis at NEC's Integrated accelerated stress test is that the relationship between the Circuit Division. accelerated stress testing condition and the condition of First, approximately 50 percent of the field returns were actual use be known. found to be damaged either from improper handling or mis- A most common time-to-failure relationship involves the use of the devices. These units were eliminated from the effect of temperature, which accelerates manyphysiochemi- analysis. The remaining failed units were classified by their cal reactions leading to device failure. Other environmental failure mechanisms, as depicted in Figure 2. These failures conditions are voltage, current, humidity, vibration, or some were then related to the major integrated circuit failure mech- combination of these. Table 2 lists the Reliability Assurance anisms and to their origins in a particular manufacturing step. Tests performed at NEC for the N-channel MOS devices. As shown in Figure 2, the first four failure mechanisms accounted for more than 90 percent of total failures. As a Table 1. Monthly NEC Reliability Tests result, NEC improved processes and material to reduce Test Method Test Conditions Lif. Test M'L·STD·883B these failures. Additionally, NEC introduced screening proce- High Temperature, Operating 10054, D Til = 100°C to 125°C for 1000 hrs dures to detect and eliminate defective devices. High Temperature, Storage 1DOeC Til - 150°C for 1000 hrs Temperature, humidity, and bias tests are used for testing the High Temperature, moisture resistance of plastic encapsulated integrated cir- t-ligh Humidity Test Ta = 85°C @85% RH for 1000 hrs Pressure Cooker Test Ta - 125°C @2.3 Atm for 168 hrs cuits. NEC developed a special process to improve the plas- Environment., Test tic encapsulation material. As a result, moisture-related- SOldering Heat Test 2031* T = 260°C for las without flux thus packaging-related-failures have been drastically Temperature Cycle 101 DC T= 65°C to + 15O"C for 10 cycles reduced. Thermal Shock 1011A T = O°C to 100°C for 15 cycles Lead Fatigue 200482 @250gm: 3 leads, 3 bends As a preventive measure, NEC has introduced a special Solderability 2003 T - 230°C for 5s with flux screening procedure embedded in the production line. A No'., . MI:!..L.:::ST=D-='750::CA:--~---'=~~~-'---='--'-''''-~~~~- burn-in at an elevated temperature is performed for 100 per- cent of the lots. This burn-in effectively removes the poten- Temperature Effect: The effect of temperature that con- tially defective units. In addition, improvement of the plastic cerns us is that which responds to the Arrhenius relationship. encapsulation material has lowered the failures in a high tem- This relates the reaction rate to temperature. perature and high humidity environment. R = Ro Exp[- Ea/kT] 20 40 60 80 100 Where: Ro = Constant OXide Percent Fa.ure Ea = Activation energy in eV Destroyed k = Boltzmann's constant SJ02PaHem Defects = 8.617*10**( - 5) eV/degrees K Bond-Wire T = Absolute temperature in degrees K Peel or Cut Percent Cumulative The significance of this relationship is that the failure mecha- _lzatIon FaHures Defects nisms of semiconductor devices are directly applicable to it. A MoiS1Ure PenetratIon linear relationship between failure mechanism and time is assumed. - Parameter Degradation Activation Energy: Associated with each failure mecha- nism is an activation energy value. Table 3 lists some of the more common failure mechanisms and the associated acti- ChlplPeell Crack vation energy of each. Metalization Corrosion Figure 2. Failure Distribution of MOS Integrated Circuits 8-2 Quality and Reliability of NEe Microprocessors Table 2. Activation Energy and Detection of Failure Mechanisms Where: F2 = Failure rate at T2 Activation F, = Failure rate atT, Failure Mechani.m Energy Detection Oxide Defect O.3eV Ea = Activation energy Silicon Defect O.3eV k = Boltzmann's constant Ionic Contamination 1.0-1.35eV High Temperature Operating T = Operating junction temperature in degrees K Electromlgratlon O.4-0.8eV Life Test This equation explains the thermal dependence of integrated Charge Injection 1.3eV Gold-Aluminum Interface a.BeV circuit failure rates and is used for derating the resulting fail- Metal Corrosion O.7eV High Humidity Operating ure rate to a more realistic temperature. Life Test Acceleration factor High Temperature Operating Life Test: This test is used to The acceleration factor is the factor by which the failure rate accelerate failure mechanisms by operating the qevices at an can be accelerated by increased temperature. This factor elevated temperature. For N-channel MOS microprocessors is derived from the Arrhenius failure rate expression, result- and their family products, the operating temperature is 125°C. ing in the following form: The data obtained is translated to a lower temperature by A = F,/F2 = Exp((Ealk) * (1/T, - 1/T2 )] using the Arrhenius relationship. High Temperature and High Humidity Test: Semi- Where: A = Acceleration factor conductor integrated circuits are highly sensitive to the gen- F2 = Failure rate at T2 eral accelerating effect of humidity in causing electrolytic cor- F, = Failure rate atT, rosion between biased lines. The high temperature and high In calculating the field reliability of an integrated circuit, it is humidity test is performed to detect failure mechanisms necessary to calculate the junction temperature. In general, which are accelerated by these conditions. This test is effec- the junction temperature will depend on the ambient tem- tive in accelerating leakage-related failures and drifts in perature, cooling, package type, operating cycle time, and device parameters due to process instability. power dissipation of the circuit itself. In these terms, the junc- High Temperature Storage Test: Another common test is tion temperature (TJ) is expressed as: the high temperature storage test in which devices are sub- jected to elevated temperatures with no applied bias. This TJ = T a + Pd * Af * ejA test is used to detect mechanical problems and process instability. Where: TJ = Junction temperature Environmental Test: Other environmental tests are per- Ta = Ambient temperature formed to detect problems related to the package, material, Pd = Power dissipation susceptibility to extremes in environment, and problems Af = Air flow factor related to usage of the devices. ejA = Package thermal resistance Table 4 lists derating factors of various failure mechanisms. Failure Rate Calculation and Prediction This table is generated assuming that an accelerated test is Analysis of integrated circuit failure rates can serve many performed at a junction temperature of 125°C. The result is useful purposes. For example, the early life failure rate helps then derated to 55°C junction temperature. The acceleration establish a warranty period, while the mature life failure rate factor may then be obtained by taking the inverse of the aids in estimating repair costs, spare parts stock require- derating factor. ments, or product downtime. Accurate prediction of failure rates can also be used for process control. Table 3. Derating Factors of Failure Mechanisms Failure Mechanism Activation Energy Derating Factor The following sections describe the failure rate calculation OXide Defect O.leV 0.1546 and prediction methods used by NEC's Integrated Circuit Silicon Defect O.3eV 0.1546 Division. Ionic Contamination 1.0eV 0.00'984 The Arrhenius model Electromlgration MeV 0.08307 Charge Injection 1.3eV 0.0003067 Most integrated circuit failure mechanisms depend, to some Metal CorrOSion 0.7eV 0.01315 degree, on temperature. This relationship can be repre- Gold-Aluminum Interface O.8eV 0.006886 sented by the Arrhenius model, which includes the effects of temperature and activation energy of the failure mechanisms. The acceleration of failure mechanisms in a high humidity As applied to accelerated life testing of integrated circuits, the and high temperature environment must be expressed as a Arrhenius model assumes that degradation of a performance function not only of temperature but also of humidity. parameter is linear with time. Temperature dependence is According to the reliability test statistics, the acceleration fac- taken to be the exponential function that defines the probabil- tor in such an environment can best be approximated with ity of occurrence. The relationship of failure rate to tempera- Peck's model as follows: ture is expressed as: A = Exp((Ealk) * (1/T, - 1IT2)] * [HdH,] ** 4.5 F, = F2* Exp[(Ealk) * (1IT, -1/T 2 )] Where: Ea = Activation energy k = Boltzmann's constant T = Junction temperature H = Relative humidity 8-3 Quality and Reliability of NEe MicroproceSSOrs For example, the acceleration factor for high humidity and Infant mortality process average goals high temperature or pressure cooker tests ranges from 100 to The infant mortality goal for each prOduct group is set at 1000 times that of the normal oper"lting environment. 0.10 percent. When a failure rate exceeds this level, there is Failure rate calculation prompt remedial action to reduce this rate. As an example, suppose that NEC's microprocessors and Long-term failure rate goals family product samples are submitted to a 1Ooo-hour life The long-term failure rate goal is based on the following test at 125°C junction temperature and encounter two fail- conditions: ures: one oxide and one metalization defect. The sample D A minimum of 1.2 million device hours at 1250C is accumu- size is 885 units. lateq to resolve 0.02 percent per 1000 hours at 55°C with Thus, the oxide failure rate is 0.11 percent per 1000 hours and a 60 percent confidence level. the metalization failure rate is 0.11 percent per 1000,hours. D A minimum of 3 million device hours at 125°C is accumu- Therefore, the total failure rate at 125°C sums to 0.22 percent I~ied to resOlve 0.01 percent per 1000 hours at 55°C With per 1000 hours at 1K hours. a 60 p~rcent confidence level. Failure rate p~lctlon To derate these failure rates to a normal operating environ- Infant Mortality Failure Screenlnlll ment, use the derating factors listed in Table 4. It is logical to assume that the integrated circuit that fails at one tempera1Ure would also fail at another temperature, Oxide Failures = 0.11 • 0.1546 = 0.01701 % per 1K hrs except that it would fail sooner at a higher temperature. As Metal Failures = 0.11 • 0.01315 = 0.00145% per 1K hrs can be expected, the failure rate is a function of its associ- Total Failures = 0.01846% per 1K hours ated activation energy. Establishing infant mortality screen- Note that the example above is a snapshot of the high tem- ing, therefore, requires knowledge of the likely failure perature life test performed on a particular lot. It is not accu- mechanisms and their associated activation energy. mulated data that can be used to represent overall reliability. The most likely mechanisms associated with infant mortality This conservative illustration, however, shows that the failure failures are,generally manufacturing defects and process rate in a normal operating environment is approximately 12 anomalies. Thesegenerally consist of contamination, times lower than that of a higher temperature environment. cracked chips, wire bond shorts, or bad wire bonds. Since The failure rate prediction takes different activation energies these describe a number of possible mechanisms, anyone into account whenever the causes of failures are known ' of whicYl might predominate at a given time, the activation through performing failure analysis. In some cases, however, energy, fot infant mortality might be expected to vary an average activation energy is assum9d in order to accom- considerably. plish a quick first-order approximation: NEC assumes an The effectiveness of a screening condition, preferably at average activation energy of 0.7eV whenever the exact fail- some 'stress level in order to shorten the time, varies greatly ure mechanis,m is not known, to yield a conservative estimate with the failure mechanism being screened for. Another factor of failure rates. is the economics of the screening process introduced into the production line. Optimal conditions and duration of a screen- Reliability Test Results ing process will be a compromise of these two factors. Before introducing new technologies or products, NEC's For example, failures due to ionic contamination have an acti- intemal reliability goals must be attained. Several categories vation energy of approximately 1.Oev, Therefore, a t5-hour of testing af'EI used in the internal qualification program to stress at 125°C junction temperature would be the' equivalent assure that prod\lct reliability meets NEC's reliability goals. of approximately 90 days of operation at a junction tempera- Once the product is qualified, its reliability level is regularly ture of 55°C. On the other hand, failures due to'oxide defects monitored in a monthly reliability test. have an activation energy of approximately O.3e\l, and a 15-hqut stress at 125°C junction temperature would be the NEC's Goals on Failure Rates equivalent of approximately one week'~ operation at 550C NEC's approach to achieving high reliability is to build quality jUflction temperature. As indicated by this, the conditiQn and into the product, as opposed to merely screening out defec- duration of infarit mortality screening would be a strong func- tive units. The use of distributed control methods embedded tion of the allowable component failures, hence the system in the production line, in conjunction with conventional failure, in the field. screening methods, results in the highest reliability at the Empirical data, gathered over more than a year at NEC, indi- lowest cost. cates that early failure does occur after less than 4 hours of NEC currently maintains failure rates for infant mortality and stress at 125°C ampient temperature. This f~ct is supported long-term device operation as listed in Table 4. by the life test of the same lot, where the failure rate shows random distribution, as opposed to a decreasing failure rate Table 4. Infant Mortality and Long-term Failure Rates which then runs into the random failure region. percent F.llure A.teOoe's NEC has adopted the initial infant mortality burn-in at 125°C Infant MortalHV failure Rate O.1011Khra as a standard production screening procedure. As a result, Long-tenn Life Failure Rate the field reliability of NEC devices Is an order of magni- 1.2M Device Hour Average O.02/1Khr. 3.0M Device Hour Average O.Ol/1Khre tude higher than the goals set for NEC's integrated circuit products. 8-4 Quality and Reliability of NEe Microprocessors Life Tests Table 7. High Temperature Storage Life Test The most significant difference between NEC's products Number of Number of Falluree at . ."",I. . 48 hra H hr. 168 hr. 500 hra 1Khr. and those of other integrated circuit manufacturers is the fact 2410 000 1 that NEC's have been prescreened for their infant mortality Total Number of Failures at 1K hr. - 5 defects. The products delivered to customers are operating at Failure Rate at 1K hra at 125°C = 0.207% per 1 K hrs the beginning of the random failure region of the life curve. Projected Failure Role a1SS'C = 0.006% par 1 K hr. The life test data also reflect this fact, as will be shown in the Pressure cooker test following sections. This test is effective in accelerating failure mechanisms The failure mechanism distribution from field failures, as pre- related to metalization corrosion due to moisture. The failure viously shown in Figure 2, also contains a very low percent- rate is 0.52 percent per 1000 hours at Ta = 125°C and 2.3 age due to infant mortality. The majority of failures are long- Atm at 100 percent humidity. This is equivalent to 0.0013 per- term life failures, and these can be eliminated by stringent cent per 1000 hours at 55°C and an environment of 60 per- process control. Usually, these failure mechanisms have low cent humidity (Table 8). activation energy associated with them. Table 8. Pressure Cooker Test Another significant improvement devised by NEC is plastic Number of Failures at Numb.rot encapsulation and passivation. As a result, NEC products 'Semple. 48hra "hra iN'''. 500h... 1Khr. show excellent reliability in both high humidity and high tem- 1718 4 No Test Performed perature environments. Following is life test data accumu- Total Number of Failures at 168 hr. 9 Failure Rata at 125"<: = 0.54% per 1K hr. lated over more than a year for N-channel microprocessors Projected Failure Rate at 55°C = O.(MJ1% per 1 K hrs and family products. Life test data summary High temperature operating life test Table 9 summarizes the life test results and projected failure This test is used to accelerate failure mechanisms by operat- rates In the normal operating environment. The failure rate ing the devices at an elevated temperature. For microproces- shows random distribution as opposed to a decreasing failure sors and family products, the failure rate is 0.242 percent per rate. This is a result of infant mortality screening. 1000 hours at 125°C. This is equivalent to 0.0071 percent per Table 9. Life Test Data 1000 hours in an operating environment of 55°C (Table 5). Number of Failur•• at Total Table 5. High Temperature Operating Life Test Number of Numb.rot Testltern Sampl•• Mhrs 16. hr. 500 hra 1 K hra Failures Numlaerof Number of F.llures at High Temperature Sampl•• 48hrs 98hrs tUh,. 5OGh,. 1Khrs UfaTea1 3317 3317 High HumKlHy Total Number of Failures at 1K hr. - 8 UfaTesl 2190 Failure Rate at 1K hr. at 1250C = 0.242% per 1K hrs High Temparatura Projected Failure Rate 81SS'C = 0.007% per 1 K hrs S10rage Life Test 2410 Pressure High temperature and high humidity life test CookerToa1 1718 Total 9635 24 This test is used to accelerate failure mechanisms by Note: • - No test performed operating the devices at high temperature and high humidity. Leakage-related failures and device parameter drift are accel- The projected failure rate in the normal operating environ- erated by this test. For microprocessors and family products, ment is calculated assuming that the average activation the failure rate is 0.091 percent per 1000 hours. This is equiv- energy is 0.7eV. alent to 0.0027 percent per 1000 hours in an operating envi- ronment of 55°C. The test conditions are Ta = 85°C and Figure 3 shows the life distribution of NEC integrated circuits relative humidity (RH) = 80% (Table 6). as a form of the Bathtub curve. Table 6. High Temperature and High Humidity Life Test Numberot Number of F.llur. at Sampl_ 48 hra H hr. 18. hr. 500 hr. 1Khrs 2190 0 0 0 Total Number of FaHure& lit 1K hr. =2 Failure Rate III: 1 K hrs at 85"C18S% RH = 0.091% per 1 K hr. ProJoc18d Failure Rate 81SS'C!6O% RH - 0.003% par 1 K hrs .oso High temperature storage life test This test is effective in accelerating the failure mechanisms .DID related to mechanical reliability problems and process insta- bility. For microprocessors and family products, the failure rate is 0.207 percent per 1000 hours at 125°C. This is equiva- lent to 0.0061 percent per 1000 hours in an operating envi- .DOS ronment of 55°C (Table 7). o.sK lK 2K 3K 4K 5K 10K 20K 30K Hra Figure 3. Plot of Life Test Results 8-5 -Quality and Reliability of NEe Microprocessors This life test data shows improvements of approximately Second, the reliability and quality assurance policy is an an order of magnitude better than NEC's goal. The hours of integral part of the entire organization. This enables a operation ~re equivalent to the normal operating environ- companywide quality control activity. At NEC, everyone in the ment. Wear-0ut failures, which had been the main target for company is involved with the concept and methodology of reliability improvement, have also been significantly reduced. Total Quality Control. . This result comes mainly from process improvements and Third, there is an on-going research and development effort stringent manufacturing process control. to set even higher standards of device quality and reliability. NEC's main goal has been to improve reliability with respect Fourth, extensive failure analysis is performed periodically to infant mortality and long-term life failures. This can be and corrective actions are taken as preventive measures. achieved by introducing an effective screening method for Process control is based on statistical data gathered from this infant mortality and building quality into the product. analysis. Thermal stress tests' The goal is to maintain the superior product quality and reli- Temperature cycling and thermal shock test the thermal com- ability that has become synonymous with the NEC name. patibilityof material and metal used to make integrated cir- The new standard is continuously upgraded and the iterative cuits. Table 10 lists the reliability test results of thermal stress process continues. tests. Implementation of distributed quality control Table 10. Thermal Stress Results Building quality into a product requires early detection of pos- Testllem Numberot S.mpl•• Number Failur•• 0' sible cause of failure at each process step. Then, immediate SOldering Heat Teat feedback to remove the cause of failure is a must. A fixed Ta = 260"C for 10 eecondl 1891 station quality inspection is often lacking in immediate feed- Tempemure Cycle T. = -&sOC to + 15O'C, 10 cycles 1891 back. It is, therefore, necessary to distribute quality control Thermal Sh_ Test functions to each process step, including the conceptual Ta = ere to + 1DCrC, 15 cycles 1891 stage. NEC has implemented a distributed quality <;antrol function at each step of the process. Following is a break- Mechanical stress tests down of the significant steps: In addition to the device life test, NEC performs mechanical stress tests to detect reliability problems related to the pack- o Product development phase age, material, and device susceptibility to an extreme envi- o Wafer processing ronment. Table 11 lists mechanical stress test results. o Chip mounting and packaging o Electrical testing and thermal aging Table 11. MechanIcal Stress Results Numberot Numberot o Incoming material inspection leotHam Sampl•• Fallur•• Product Development Phase: The product develop- Mechanical Shock Teat @l5kg, 3 axl. ment phase includes conception of a product, review of the 315 Vlbmlon Taot device proposal, organization and phYSical element design, @100Hzto2kHz,20g 315 engineering evaluation, and finally, transfer of the product to Constant AcceteratIon manufacturing. Quality and reliability are considered at every @2Okg,3axls 315 step. More significantly, at the design review stage and prior Lead FOIlg. . Test @250gms 638 to product transfer, the quality and reliability requirements Solderability Teat have to be examined and determined to be satisfactory. This @23O'Clor50ac0nds 638 often adds two to three months to the product development cycle. Building in high reliability, however, cannot be Bullt·ln Quality and Reliabiiity sacrificed. As large-scale integration reaches even higher levels of den- Wafer Processing Stage Inspection: The in-process qual- sity, simple quality inspections cannot assure adequate levels ity inspections that occur at the wafer fabrication stage are of product quality and reliability. In order to ensure the reliabil- listed in Table 12. ity of state-of-the-art, very large-scale integrated circuits, Table 12. Wafer Fabrication Inspection NEC has adopted another approach. Highest reliability and Inspection Item superior quality of a device can only be achieved by building Wafer ReslatlvHy, Dimension, and Appearance, Lot Ssmpllng Inspac1lon -these characteristics into the product at each process step. Mask NEC, therefore, has introduced the notion of Total Quality Alignment and Etching, 100 Percent Inspection PholO-Uthography Control (TQC) into its entire semiconductor production line. Claon'ng Quality control is distributed into each process step and then Oxide thickness, Sheet ResistIVity, Lot Sampling all are summed to form a consolidated system. Inspection MetallzaDon and P888rvatlon Thlcknesa, VUI. C-V Characteristics, and Lot Sampling Wafer Sort and Scribe DC Parameters. 100 Percent Inspection Approach•• to Total Quality Control DteSOrt 100 Percent VlauallnepecUon First, the quality control function is embedded into each process. This method enables early detection of possible causes of failure and immediate feedback. 8-6 Quality and Reliability of NEe Microprocessors Chip Mounting and Packaging: The in-process quality Reliability assurance test inspections that are done at the chip mounting and packaging Samples are continually taken from the warehouse and sub- stage are listed in Table 13. jected to monthly reliability tests as discussed in the previous Table 13. Chip Mounting and Packaging Inspection section. They are taken from similar process groups so that it Proce•• Inspection Item can be assumed that any device is representative of the reli- Die Incoming Material Inspection ability of that group. Ole Attach Appearance. Lot Sampling Inspection Wire Bonding Bond Strength, Appearance, Lot Sampling In-process screening Packaging 100 Percent Appearance Inspection Perhaps the most significant preventive measure that NEC Fine Leak* LotSampilng has implemented is the introduction of 100 percent burn-in as 100 Percent Inspection an integral part of the standard production process. Most of Note; * For ceramic package devices only the potential infant failures are effectively screened from Electrical Testing and Screening: Electrical testing and every lot, thereby improving reliability. Assuming average infant mortality screening are performed at this stage. A flow- activation energy of 0.7eV, bum-in at Ta = 125°C for four chart of the process is depicted in Figure 4. hours is equivalent to a week's operation in a normal operat- ing environment. This appears to be ample time for acceler- ating the time-to-failure mechanisms for early failures. DC Parameters Process automation, as previously mentioned, has also con- tributed a great deal in improving reliability. Since its intro- duction, assembly related failure mechanisms have been substantially reduced. And, in combination with in-process screening and materials improvement, it has helped establish quality and reliability above NEC's initial goals. Summary and Conclusion DC Parameters, AC Functional As has been discussed, building quality and reliability into products is the most efficient way to ensure product reliability. NEC's approach otdistributing quality control functions to process steps, then forming a consolidated quality control system, has produced superior quality and excellent reliability. Prescreening, introduced as an integral part of large-scale aectrlcal, integrated circuit production, has been a major factor in Appearance, and DImenSIons improving reliability. The most recent year's production clearly demonstrates continuation of NEC's high reliability and the effectiveness of this method. Reliability Assurance Tests (RATs), performed monthly, have m ensured high outgoing quality levels. The combination of building quality into products, effective prescreening of poten- Figure 4. Electrical Testing and Screening tial failures, and the reliability assurance test has established a singularly high standard of quality and reliability for NEC's At the first electrical test, DC parameters are tested, accord- large-scale integrated circuits. ing to the electrical specifications, on 100 percent of each lot. With a companywide quality control program, NEC is com- : This is a prescreening prior to the infant mortality test. At the miUed to building superior quality and highest reliability into second electrical test, AC functional as well as DC parameter all its products. Through continuous research and develop- tests are performed on 100 percent of the subjected lot. If the ment activities, extensive failure analysis, and process percentage of defective units exceeds the limit, the lot is sub- improvements, a higher standard of quality and reliability jected to an additional burn-in. As this defective lot is being will continuously be set and maintained. subjected to an additional burn-in, the defective units are undergoing a failure analysis, the results of which are then fed back into the process for corrective action. Incoming Material Inspection : Prior to warehouse storage, lots are subjected to an incoming inspection according to the following sampling plan: o Electrical test: DC parameters LTPD 3% Functional test LTPD 3% o Appearance LTPD 3% 8-7 Notes 8-8 NEe REPRESENTATIVES & DISTRIBUTORS IJ NEe u.s. REPRESENTATlVE$ Alabama Michigan Washington ~:;v~,~lL~~~mg, Inc Mlltlmore Sales, Inc Grand Rapids, MI 49506 ElectroniC Techmcal Sales ASSOCiates Kirkland, WA98033 205-533-9261 616-942-9721 206-627-6086 NOVI, MI46050 ArizoRa 313-349-0260 Fred Board AsSOCiateS, Inc Scottsdale, AZ65251 Minnesota CANADIAN 602-994-9366 George Russell & AsSOCiates REPRESENTATIVES Tucson, AZ 85704 Bloomington, MN 55420 602-299-1508 612-654-1166 British Columbia ••• Jarse, Kaytromcs Western tall"mia CERCO B G R AsSOCiates ~~'?81B~~3r 4G6 ~r~_~J:j~'9~ 92117 Marlton, NJ 08053 609-426-2440 Ontario Quorum Technical Sales HLM AssOCIates, Inc Kaytromcs, Inc San1a Clara, CA 96054 Concord, Ontano L4K1B1 406-96O-{I812 ~~~~f~ 07054 416-669-2262 Kanata, Ontano K2K 2A3 Celorado lew Muico 613-592-6606 Gandar, Inc Rontek, Inc quobec Go~en, CO 60401 ~5~~~~4NM 87191 303-233-0155 ~re~tl~er~~ au H8R 3Y8 Connecticut _Yort< 514-367-0101 HLMAssoClates ELCOM Sales Waterbury, CT 06708 Penfield, NY 14526 203-753-9694 716-365-1400 Florida Skaneateles, NY13152 315-085-6245 8emtromcs, Inc ~~~3~~~ngs, FL 32701 HLM ASSOCiates, Inc Northport, NY 11766 Clearwater. Fl33515 516-757-1608 613-461-4675 IIIorth carelina Georgi. Montgomery Marketing, Inc Montgomery Marketing, Inc Cary, NC27511 Norcross, GA 30092 919-467-6319 404-447-6124 Pennsylvania IlIInol. Imtech, Inc AM E Sales Pittsburgh, PA 15243 CollinsVille, IL 62234 412-344-0644 616-345-7404 Obi. sel~er AssOCiates Imtech, Inc ~f1~~~1~~~~ws, IL 60008 Akron, OH 44321 216-666-1165 Indiana ~f~~%~l'!~ilr14 MIS sales & ASSOCiates, Inc Fort Wayne, IN 46606 Drog.. 219-464-1904 ElectroniC Technical Sales AsSOCiates ~~~~£g~~~1 ~N 46260 Hillsboro, OR 97123 503-640-6066 IQwa Tennns.. George Russell & AssoCIates Cedar Rapids, IA 52402 ~;I~I~~u~ ~~::ng, Inc 319-369-9134 615-966-3608 Kansas TelOS A M E Sales Technical Marketing, Inc Overland Park, KS 66202 Austin, TX 78758 913-262-3971 512-635-0064 Maryland Carrollton, TX 75006 214-367-3601 ProfesSional Representatives Houston, 1)( 77081 Baltimore, MD 21208 713-777-9226 301-653-3600 Massachusetts utab Compass Technology Aspen Sales Woburn, MA 01801 Salt lake City, UT 64115 617-933-3336 601-467-2401 9-1 NEe NEC Electronics 401 Ellis Street Mountain View, CA 94943 ( TEL. 415-960-6000, lWX: 910-379-6985 84 MICROCAT-1-84-USA 50 K