DIGITAL SIGNAL PROCESSOR (DSP) AND SPEECH PROCESSOR PRODUCTS DATA BOOK NEC NEC Electronics Inc. NEC Digital Signal Processor [ DSP] and Speech Processor Products 1989-1990 DATA BOOK June 1989 Document No. 50052 ©1989 NEC Electronics lnc./Printed in the U.S.A. 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. The information in this document is subject to change without notice. Devices sold by NEC Electronics Inc. are covered by the warranty and patent indemnification provisions appearing in NEC Electronics Inc. Terms and Conditions of Sale only. NEC Electronics Inc. makes no warranty, express, statutory, implied, or by description, regarding the information set forth herein or regarding the freedom of the described devices from patent infringement. NEC Electronics Inc. makes no warranty of merchantability or fitness for any purpose. NEC Electronics Inc. assumes no responsibility for any errors that may appear in this document. NEC Electronics Inc. makes no commitment to update or to keep current the information contained in this document. NEC ii t-IEC SELECTION GUIDES a DIGITAL SIGNAL PROCESSORS El SPEECH PROCESSORS B DEVELOPMENT TOOLS II PACKAGE DRAWINGS B iii NEC iv NEC Contents Section 1 Section 3 Selection Guides Speech Processors Single-Chip Microcomputers 1-3 µPD7730/77C30 3·1 ADPCM Speech Encoder/Decoder V-Series Microprocessors and Peripherals 1·9 µPD7755/56/P56/57 3-15 Intelligent Peripheral Devices (IPD) 1-13 ADPCM Speech Synthesizers DSP and Speech Products 1-15 µPD7759 3-21 V-Series Development Tools 1-17 ADPCM Speech Synthesizer µ.PD75XX Series Development Tools 1-21 Section 4 µ.PD75XXX Series Development Tools 1-25 Development lbols µ.PD78XX Series Development Tools 1·29 µPD7720 Digital Signal Processor µ.PD78XXX Series Development Tools 1·31 EVAKIT-77208 4-1 DSP and Speech Development Tools 1·35 µPD7720 Stand-Alone Emulator PG-1500 Programming Adapters 1-37 ASM77 4-3 µPD7720 Absolute Assembler Section 2 SIM77 4-5 Digital Signal Processors µPD7720A/P20/C20A Simulator µPD77C20A/7720A/77P20 2·1 µPD77C25 Digital Signal Processor Digital Signal Processor EVAKIT-77C25 4-7 µPD77C25/77P25 2·25 µPD77C25 Stand-Alone Emulator Digital Signal Processor RA77C25 4·11 µPD77220 2·51 µPD77C25 Relocatable Assembler Package 24-Bit, Fixed-Point Digital Signal Processor µPD77220/µPD77230 Advanced Signal Processor µPD77230/77P230 2·81 EVAKIT-77220 4·13 32-Bit, Floating-Point Advanced Signal Processor µPD77220 Stand-Alone Emulator µPD7781 O 2·107 EVAKIT-77230 4-15 Modem Digital Signal Processor µPD77230 Stand-Alone Emulator µPD7281 2·169 DDK-77230 4-17 Image Pipelined Processor µPD77230 Evaluation Board µPD9305 2·211 RA77230 4·21 Memory Access and General Bus Interface µPD77220/µPD77230 Relocatable Assembler for the µPD7281 Package SM77230 4·23 µPD77220/µPD77230 Simulator v Contents NEC Section 4 Section 5 DSP and Speech Development lbols (cont) Package Drawings µPD77810 Modem Digital Signal Processor (MDSP) Package/Device Cross-Reference 5-1 IE-77810 4-25 18-Pin Plastic DIP {300 mil) (A, C Outline) 5-3 µ.PD77810 In-Circuit Emulator 18-Pin Plastic DIP {300 mil) (SA Outline) 5-3 RA77810 4·27 µ.PD77810 Relocatable Assembler Package 20-Pin Plastic DIP {300 mil) 5-4 µPD775X Family of Speech Synthesizers 24-Pin Plastic SOP (450 mil) 5-4 NV-300 System 4-29 28-Pin Plastic DIP {600 mil) 5-5 µ.PD775X Family Speech Analysis Tool 28-Pin Ceramic DIP {600 mil) 5-6 EB-7759 4-33 28-Pin Cerdip {600 mil) 5-7 µ.PD775X Demonstration and Evaluation Box 28-Pin PLCC 5-8 PG-1500 Series 4-35 EPROM Programmer 40-Pin Plastic DIP {600 mil) 5-8 40-Pin Ceramic DIP {600 mil) 5-9 44-Pin PLCC 5-10 52-Pin Plastic Miniflat 5-11 68-Pin Ceramic PGA (A Outline) 5-12 68-Pin Ceramic PGA (A-1 Outline) 5-13 68-Pin PLCC 5-14 132-Pin Ceramic PGA 5-15 vi NEC Contents Numerical Index Device, µPD Page 7281 2-169 7720A 2-1 77C20A 2-1 77P20 2-1 77220 2-51 77C25 2-25 77P25 2-25 77230 2-81 77P230 2-81 7730 3-1 77C30 3-1 7755 3-15 7756 3-15 77P56 3-15 7757 3-15 7759 3-21 77810 2-107 9305 2-211 vii Contents NEC viii NEC SELECTION GUIDES II 1-1 Selection Gu ides NEC Section 1 Part Numbering System Selection Guides µPD72001 L Typical microdevice part number Single-Chip Microcomputers 1-3 µP NEC monolithic silicon integrated circuit V-Series Microprocessors and Peripherals 1-9 D Device type (D = digital MOS) 72001 Device identifier (alphanumeric) Intelligent Peripheral Devices (IPD) 1-13 L Package type (L = PLCC) DSP and Speech Products 1-15 A part number may include an alphanumeric suffix that V-Series Development Tools 1-17 identifies special device characteristics; for example, µPD72001 L-11 has an 11-MHz data clock rating. µPD75XX Series Development Tools 1-21 µPD75XXX Series Development Tools 1-25 µPD78XX Series Development Tools 1-29 µPD78XXX Series Development Tools 1-31 DSP and Speech Development Tools 1-35 PG-1500 Programming Adapters 1-37 1-2 NEC Single-Chip Microcomputers NEC Electronics Inc. Selection Guide 4-Bit, Single-Chip CMOS Microcomputers Device, Clock Supply ROM RAM µPD Features (MHz) Voltage (V) (XS) (X4) 1/0 1 Package Pins 7502 7503 7507 LCD controller/driver LCD controller/driver General-purpose 0.4 0.4 0.4 2.5 to 6.0 2.5 to 6.0 2.7 to 6.0 2K 4K 2K 128 224 128 23 23 32 Mini.flat Miniflat DIP 64 64 40 D SDIP 40 Miniflat 52 7508 General-purpose 0.4 2.7 to 6.0 4K 224 32 DIP 40 SDIP 40 Miniflat 52 75CG08 Piggyback EPROM 0.4 4.5 to 5.5 2K or4K 224 32 Ceramic DIP 40 7514 LCD controller/driver 0.5 2.7 to 6.0 4K 256 31 Miniflat 80 7527A FIP controller/driver 0.6 2.7 to 6.0 2K 128 35 DIP 42 SDIP 42 7528A FIP controller/driver 0.6 2.7 to 6.0 4K 160 35 DIP 42 SDIP 42 75CG28 Piggyback EPROM; 0.5 4.5 to 5.5 4K 160 35 Ceramic DIP 42 FIP controller/driver 7533 AID converter 0.5 2.7 to 6.0 4K 160 30 DIP 42 SDIP 42 Miniflat 44 75CG33 Piggyback EPROM; 0.5 4.5 to 5.5 4K 160 30 Ceramic DIP 42 AID converter 7537A FIP controller/driver 0.6 2.7 to 6':Q, 2K 128 35 DIP 42 SDIP 42 7538A FIP controller/driver 0.6 2.7 to 6.0 4K 160 35 DIP 42 SDIP 42 75CG38 Piggyback EPROM; 0.5 4.5 to 5.5 4K 160 35 Ceramic DIP 42 FIP controller/driver 7554 Serial 1/0; external clock 0.7 2.7 to 6.0 1K 64 16 SDIP 20 or RC oscillator SOP 20 75P54 Serial 1/0; external clock 0.7 4.5 to 6.0 1K 64 16 SDIP 20 or RC oscillator OTP ROM SOP 20 7564 Serial 1/0; ceramic oscillator 0.7 2.7 to 6.0 1K 64 16 SDIP 20 SOP 20 75P64 Serial 1/0; ceramic oscillator 0.7 4.5 to 6.0 1K 64 16 SDIP 20 OTP ROM SOP 20 7556 Comparator; external 0.7 2.7 to 6.0 1K 64 20 SDIP 24 clock or RC oscillator SOP 24 75P56 Comparator; external 0.7 4.5 to 6.0 1K 64 20 SDIP 24 clock or RC oscillator OTP ROM SOP 24 7566 Comparator; ceramic oscillator 0.7 2.7 to 6.0 1K 64 19 SDIP 24 SOP 24 75P66 Comparator; ceramic oscillator 0.7 4.5 to 6.0 1K 64 19 SDIP 24 OTP ROM SOP 24 75004 General-purpose 4.19 2.7 to 6.0 4K 512 34 SDIP 42 Miniflat 44 1 Plastic unless ceramic (or cerdip) is specified. * Under development; consult Microcontroller Marketing for availability. 1-3 Single-Chip NEC 4-Bit, Single-Chip CMOS Microcomputers (cont) Device, Clock Supply ROM RAM µPD Features (MHz) Voltage (V) (XB) (X4) 1/0 'Package Pins 75006 General-purpose 4.19 2.7 to 6.0 GK 512 34 SDIP 42 Miniflat 44 7500S General-purpose 4.19 2.7 to 6.0 SK 512 34 SDIP 42 Miniflat 44 75POOS General-purpose 4.19 4.5 to 5.5 SK 512 34 SDIP 42 OTP ROM Miniflat 44 7502S. AID converter 4.19 2.7 to 6.0 SK 512 40 SDIP 64 Miniflat 64 75P02S * AID converter 4.19 4.5 to 6.0 SK 512 40 SDIP 64 Miniflat 64 7504S. AID converter; 0.5K EEPROM 4.19 2.7 to 6.0 SK 512 40 SDIP 64 Miniflat 64 75104 High-end with S-bit instruction 4.19 2.7 to 6.0 4096 320 5S SDIP 64 Miniflat 64 75106 High-end with S-bit instruction 4.19 2.7 to 6.0 6016 320 5S SDIP 64 Miniflat 64 7510S High-end with S-bit instruction 4.19 2.7 to 6.0 S064 512 5S SDIP 64 Miniflat 64 75P10S High-end with S-bit instruction; 4.19 4.5 to 5.5 S064 512 5S DIP 64 on-chip OTPROM or UVEPROM Miniflat 64 Shrink cerdip 64 75112 High-end with 8-bit instruction 4.19 2.7 to 6.0 12,032 512 5S SDIP 64 Miniflat 64 75116 High-end with S-bit instruction 4.19 2.7 to 6.0 16,12S 512 5S SDIP 64 Miniflat 64 75P116 High-end with S-bit instruction 4.19 4.5 to 5.5 16,12S 512 5S DIP 64 OTP ROM Miniflat 64 75206 FIP controller/driver 4.19 2.7 to 6.0 6016 369 32 SDIP 64 Miniflat 64 7520S FIP controller/driver 4.19 2.7 to 6.0 8064 497 32 SDIP 64 Miniflat 64 75CG20S FIP controller/driver; 4.19 4.5 to 5.5 S064 512 32 Ceramic SDIP 64 piggyback EPROM Ceramic flatpack 64 75212A FIP controller/driver 4.19 2.7 to 6.0 12,160 512 32 SDIP 64 Miniflat 64 75216A FIP controller/driver 4.19 2.7 to 6.0 16,256 512 32 SDIP 64 Miniflat 64 75CG216A FIP controller/driver; 4.19 4.5 to 5.5 16,256 512 32 Ceramic SDIP 64 piggyback EPROM Ceramic miniflat 64 75P216A * FIP controller/driver 4.19 4.5 to 5.5 16,256 512 32 SDIP 64 OTP ROM 7526S. FIP controller/driver 4.19 2.7 to 6.0 S064 512 20 SDIP 64 Flatpack 64 75304 LCD controller/driver 4.19 2.7 to 6.0 4K 512 GS Miniflat 80 75306 LCD controller/driver 4.19 2.7 to 6.0 GK 512 6S Miniflat so 7530S LCD controller/driver 4.19 2.7 to 6.0 SK 512 GS Miniflat so 75P308 LCD controller/driver; 4.19 4.5 to 5.5 SK 512 68 Miniflat so on-chip OTPROM or UVEPROM Ceramic LCC 80 75312 LCD controller/driver 4.19 2.7 to 6.0 12K 512 6S Miniflat 80 1-4 NEC Single-Chip 4-Bit, Single-Chip CMOS Microcomputers (cont) Device, Clock Supply ROM RAM µPD Features (MHz) Voltage (V) (XS) (X4) 1/0 *Package Pins 75316 LCD controller/driver 4.19 2.7 to 6.0 16K 512 68 Miniflat 80 75P316A * LCD controller/driver; 4.19 2.7 to6.0 16K 512 Miniflat 80 II 68 on-chip OTPROM or UVEPROM Ceramic LCC 80 75328 LCD controller/driver; 4.19 2.7 to 6.0 8064 512 24 Miniflat 80 AID converter 75P328 LCD controller/driver; 4.19 4.5 to 5.5 8064 512 24 Miniflat 80 AID converter OTP ROM 75402 Low-end 4.19 2.7 to 6.0 1920 64 22 DIP 28 SDIP 28 Miniflat 44 75P402 Low-end 4.19 4.5 to 5.5 1920 64 22 DIP 28 OTP ROM SDIP 28 Miniflat 44 75516 High-end; AID converter 4.19 2.7 to 6.0 16K 512 68 Miniflat 80 75P516 High-end; AID converter 4.19 4.5 to 5.5 16K 512 68 Miniflat 80 OTP ROM LCC 80 8-Bit, Single-Chip NMOS/CMOS Microcomputers Device, Clock Supply ROM RAM µPD Features (MHz) Voltage (V) (XS) (XS) 1/0 *Package Pins 7810H NMOS; AID converter 15 4.5 to 5.5 External 256 32 SDIP 64 QUIP 64 7811H NMOS; AID converter 15 4.5 to 5.5 4K 256 44 SDIP 64 QUIP 64 78PG11H NMOS; AID converter 15 4.5 to 5.5 4K 256 44 Ceramic QUIP 64 piggyback EPROM 78C1 OnBC10A CMOS; AID converter 15 4.5 to 5.5 External 256 32 QUIP 64 SDIP 64 Miniflat 64 PLCC 68 78C11/78C11A CMOS; AID converter 15 4.5 to 5.5 4K 256 44 QUIP 64 SDIP 64 Miniflat 64 PLCC 68 78C12A CMOS; AID converter 15 4.5 to 5.5 SK 256 44 QUIP 64 SDIP 64 Miniflat 64 PLCC 68 78C14 CMOS; AID converter 15 4.5 to 5.5 16K 256 44 QUIP 64 SDIP 64 Miniflat 64 PLCC 68 78CP14 CMOS; AID converter 15 4.5 to 5.5 16K 256 44 QUIP 64 OTP ROM SDIP 64 Miniflat 64 PLCC 68 16K 256 44 Ceramic QUIP 64 UVEPROM Shrink cerdip 64 1-5 Single-Chip NEC 8-Bit, Single-Chip NMOS/CMOS Microcomputers (cont) Device, Clock Supply ROM RAM µPD Features (MHz) Voltage (V) (X8) (X8) 1/0 'Package Pins 7S213 CMOS; AID converter; 12 4.5 to 5.5 External 512 54 SDIP 64 advanced peripherals QUIP 64 Miniflat 74 PLCC 6S 7S214 CMOS; AID converter; 12 4.5 to 5.5 16K 512 54 SDIP 64 advanced peripherals QUIP 64 Miniflat 74 PLCC 6S 7SP214 CMOS; AID converter; 12 4.5 to 5.5 16K 512 54 SDIP 64 advanced peripherals OTP ROM QUIP 64 Miniflat 74 PLCC 6S 16K 512 54 Shrink cerdip 64 UVEPROM Ceramic QUIP 64 7S220 CMOS; analog comparator; 12 4.5 to 5.5 External 640 71 PLCC S4 large 1/0 Miniflat 94 7S224 CMOS; analog comparator; 12 4.5 to 5.5 16K 640 71 PLCC S4 large 1/0 Miniflat 94 7SP224 CMOS; analog comparator; 12 4.5 to 5.5 16K 640 71 PLCC S4 large 1/0 OTP ROM Miniflat 94 7S233 * CMOS; real-time outputs; 12 4.5 to 5.5 External 640 54 Miniflat so AID and D/A converters Miniflat 94 PLCC S4 7S234 * CMOS; real-time outputs; 12 4.5 to 5.5 16K 640 54 Miniflat so AID and D/A converters Miniflat 94 PLCC 84 7SP234 * CMOS; real-time outputs; 12 4.5 to 5.5 16K 640 54 Miniflat 80 AID and DIA converters OTP ROM Miniflat 94 PLCC 84 16-Bit, Single-Chip CMOS Microcomputers Device, Clock Supply ROM RAM µPD Features (MHz) Voltage (V) (X8) (X8) 1/0 'Package Pins 78310A Real-time motor control 12 4.5to 5.5 External 256 48 SDIP 64 QUIP 64 Miniflat 64 PLCC 68 7S312A Real-time motor control 12 4.5 to 5.5 SK 256 4S SDIP 64 QUIP 64 Miniflat 64 PLCC 6S 7SP312A Real-time motor control 12 4.5 to 5.5 SK 256 4S Shrink cerdip 64 UVEPROM Ceramic QUIP 64 SK 256 4S SDIP 64 OTP ROM QUIP 64 PLCC 6S 78320 High-end; advanced analog 16 4.5 to 5.5 External 640 55 Miniflat 64 and digital peripherals PLCC 68 78322 High-end; advanced analog 16 4.5 to 5.5 16K 640 55 Miniflat 64 and digital peripherals PLCC 68 1-6 NEC Single-Chip 16-Bit, Single-Chip CMOS Microcomputers (cont) Device, Clock Supply ROM RAM µPD Features (MHz) Voltage (V) (XS) (XS) 1/0 'Package Pins 78P322 High-end; advanced analog 16 4.5 to 5.5 16K 640 55 PLCC 68 and digital peripherals OTP ROM 71P301 Port and memory extender used with 7832X microcomputer family; UVEPROM or OTPROM 4.5 to 5.5 16K 1K 16 PLCC Miniflat Ceramic QUIP 44 64 64 II 8-Bit, Single-Chip Microcomputers Device, Clock Supply ROM RAM µPD Features (MHz) Voltage (V) (XS) (XS) 1/0 'Package Pins 8035HL HMOS 6 4.5 to 5.5 External 64 27 DIP 40 8039HL HMOS 11 4.5 to 5.5 External 128 27 DIP 40 80C39H CMOS 12 2.5 to 6.0 External 128 27 DIP 40 Miniflat 44 80C40H CMOS 12 2.5 to 6.0 External 256 27 DIP 40 8041AH NMOS; universal PPI 11 4.5 to 5.5 1K 64 18 DIP 40 80C42 CMOS; universal PPI 12 4.5 to 5.5 2K 128 18 DIP 40 Miniflat 44 8048H HMOS 6 4.5 to 5.5 1K 64 27 DIP 40 8049H HMOS 11 4.5 to 5.5 2K 128 27 DIP 40 80C49H CMOS 12 2.5 to 6.0 2K 128 27 DIP 40 49H CMOS 12 2.5 to 6.0 2K 128 27 Miniflat 44 80C50H CMOS 12 2.5 to 6.0 4K 256 27 DIP 40 50H CMOS 12 2.5 to 6.0 4K 256 27 Miniflat 44 8741A NMOS; universal PPI; UVEPROM 6 4.5 to 5.5 1K 64 18 Cerdip 40 8748H NMOS; OTPROM or UVEPROM 11 4.5 to 5.5 1K 64 27 DIP 40 Cerdip 40 8749H HMOS; OTPROM or UVEPROM 11 4.5 to 5.5 2K 128 27 DIP 40 Cerdip 40 1-7 Single-Chip NEC 1-8 NEC ¥-Series Microprocessors and Peripherals NEC Electronics Inc. Selection Guide CMOS Microprocessors Device, Data Clock µPD (MHz) D Features Bits 'Package Pins 70008A *Z80 microprocessor 8 DIP 40 Miniflat 44 PLCC 44 70108 8088 compatible; .enhanced 8/16 8or10 DIP 40 (V20) Ceramic DIP 40 Miniflat 52 PLCC 44 70116 8086 compatible; enhanced 16 8or10 DIP 40 (V30) Ceramic DIP 40 Miniflat 52 PLCC 44 70208 MS-DOS, V20 compatible CPU with peripherals 8/16 8or10 Ceramic PGA 68 (V40) PLCC 68 Miniflat 80 70216 MS-DOS, V30 compatible CPU with peripherals 16/16 8or10 PGA 68 (V50) PLCC 68 Miniflat 80 70616 32-bit; high-speed 16/32 16 PGA 68 (V60) 70632 32-bit; high-speed 32/32 20/25 PGA 132 (V70) 70832 32-bit; high-speed 32/32 25 Ceramic PGA 208 (V80) 70136 Hardwired, enhanced V30 16 12or16 PGA 68 (V33) PLCC 68 70236 V33 core-based; high-integration; OMA, serial 1/0, 16 Ceramic PGA 132 (V53) interrupt controller, etc. 70320 MS-DOS compatible; high-integration; OMA, serial 1/0, 8/16 5 or8 PLCC 84 (V25) interrupt controller, etc. Miniflat 94 70330 MS-DOS compatible; high-integration; OMA, serial 1/0, 16 PLCC 84 .(V35) interrupt controller, etc. Miniflat 94 70325 MS-DOS compatible; high-integration; high-speed OMA 8/16 8or10 PLCC 84 (V25+) Miniflat 94 70335 MS-DOS compatible; high-integration; high-speed OMA 16 8or10 PLCC 84 (V35+) Miniflat 94 70327 MS-DOS compatible; high-integration; software protection 8/16 PLCC 84 (V25 Software Guard) Miniflat 94 70337 MS-DOS compatible; high-integration; software protection 16 PLCC 84 (V35 Software Guard) Miniflat 94 79011 MS-DOS compatible; high-integration; real-time operating system 8/16 PLCC 84 (V25 RTOS) Miniflat 94 79021 MS-DOS compatible; high-integration; real-time operating system 16 PLCC 84 (V35 RTOS) Miniflat 94 70322 MS-DOS compatible; high-integration; 16K-byte ROM 8/16 PLCC 84 (V25 ROM) 1 Plastic unless ceramic (or cerdip) is specified. *For additional information, refer to 1987 Microcomputer Data Book. 1-9 ¥-Series NEC CMOS Microprocessors (cont) Device, Data Clock µPD Features 1 Package Pins Bits (MHz) 70P322 MS-DOS compatible; high-integration; 16K-byte UVEPROM; 8/16 8 Ceramic LCC 84 V25 or V35 mode 70332 MS-DOS compatible; high-integration; 16K-byte ROM 16 8 PLCC 84 (V35 ROM) NMOS and HMOS Microprocessors Device, Data Clock µPD Features 1 Package Pins Bits (MHz) 8085A *8-bit microprocessor; NMOS or HMOS 5 DIP 40 8086 *16-bit microprocessor; HMOS 16 8 Cerdip 40 8088 *8-bit microprocessor; HMOS 8 8 Ceramic DIP 40 CMOS System Support Products Device, Data Clock µPD (MHz) 1 Package Pins Name Bits 71011 Clock Pulse Generator/Driver 20 DIP 18 SOP 20 71037 Programmable OMA Controller 8 10 DIP 40 Miniflat 40 PLCC 44 71051 Serial Control Unit 8/10 DIP 28 Miniflat 44 PLCC 28 71054 Programmable Timer/Controller 8 8/10 DIP 24 Miniflat 44 PLCC 28 71055 Parallel Interface Unit 8 8/10 DIP 40 Miniflat 44 PLCC 44 71059 Interrupt Control Unit 8 8/10 DIP 28 Miniflat 44 PLCC 28 71071 OMA Controller 8/16 8/10 DIP 48 Ceramic DIP 48 Miniflat 52 PLCC 52 71082 Transparent Latch 8 8 DIP 20 SOP 20 71083 Transparent Latch 8 8 DIP 20 SOP 20 71084 Clock Pulse Generator/Driver 25 DIP 18 SOP 20 71086 Bus Buffer/Driver 8 8 DIP 18 SOP 20 71087 Bus Buffer/Driver 8 8 DIP 20 SOP 20 1-10 NEC ¥-Series CMOS System Support Products (cont) Device, Data Clock µPD Name Bits (MHz) 1 Package Pins 71088 System Bus Controller 8/10 DIP 20 SOP 20 82C43 *Input/Output Expander NMOS System Support Products DIP Skinny DIP 24 24 D Device, Data Clock µPD Name Bits (MHz) 1 Package Pins 8155H *256 x 8 RAM; 1/0 ports and timer 8 3 or 5 DIP 40 8156H *256 x 8 RAM; 1/0 ports and timer 8 3 or 5 DIP 40 8237A *Programmable OMA Controller 8 DIP 40 8243 *Input/Output Expander DIP 24 8251A *Programmable Communications Interface 8 3/5 DIP 28 8253 *Programmable Internal Timer 8 DIP 24 8255A *Programmable Peripheral Interface 8 DIP 40 8257 *Programmable OMA Controller 8 DIP 40 8259A *Programmable Interrupt Controller 8 DIP 28 8279 *Programmable Keyboard/Display Interface DIP 40 1-11 ¥-Series NEC 1-12 t\'EC Intelligent Peripheral Devices (IPD) NEC Electronics Inc. Selection Guide Communications Controllers Device, µPD Name Description Data Rate 1 Package Pins 7201A 72001 Multiprotocol Serial Communications Controller CMOS, Advanced Multiprotocol Dual full-duplex serial channels; four OMA channels; programmable interrupt vectors; asychronous COP and BOP support; NMOS Functional superset of 8530; 8086N30 interface; two 1 Mb/s 2.2 Mb/s DIP Ceramic DIP DIP 40 40 40 II Serial Communications full-duplex serial channels; two digital phase-locked Miniflat 52 Controller loops; two baud-rate generators per channel; loopback PLCC 52 test mode; short frame and mark idle detection 72002 CMOS, Advanced Multiprotocol Low-cost, single-channel version of 72001; software 2.2 Mb/s DIP 40 Serial Communications Controller compatible; direct interface to 8237 OMA. Miniflat 44 PLCC 44 Not included in 1989-1990 IPD Data Book; refer to 72002 data sheet. 72101 CMOS, HDLC Controller Single full-duplex serial channel; on-chip DMA Controller. 4 Mb/s DIP 64 PLCC 68 Not included in 1989-1990 IPD Data Book; refer to 72101 data sheet Graphics Controllers Device, µPD Name Description Drawing Rate 1 Package Pins 7220A High-Performance General-purpose, high-integration controller; hardwired 500 ns/dot Ceramic DIP 40 Graphics Display support for lines, arc/circles, rectangles, and graphics Controller characters; 1024x1024 pixel display with four planes 72020 Graphics Display CMOS 7220A with 2M video memory; dual-port RAM control; 500 ns/dot DIP 40 Controller write-masking on any bit; enhanced external synch Miniflat 52 72022 Intelligent Display Display and image processing for text and sprites; three display 500 ns/dot PLCC 68 Processor modes; four-way horizontal split-screen display; CMOS Miniflat 80 72120 Advanced Graphics High-speed graphics operations including paint, area fill, 500 ns/dot PLCC 84 Display Controller slant, arbitrary angle rotate, up to 16x enlargement and Miniflat 94 reduction; dual-port RAM control; CMOS 72123 Advanced Graphics Enhanced 72120; expanded command set; improved painting 400 ns/dot PLCC 84 Display Controller II performance; laser printer interface controls; CMOS Miniflat 94 Advanced Compression/Expansion Engine Device, 1 Package Pins µPD Name Description 72185 Advanced Compression/ High-speed CCITT Group 3/4 bit-map image compression/expansion (A4 test SDIP 64 Expansion Engine chart, 400 PPI x 400 LPI in under 1 second); 32K-pixel line length; 32-megabyte PLCC 68 image memory; on-chip OMA and refresh timing generator; CMOS 1 Plastic unless ceramic (or cerdip) is specified. 1-13 IPD NEC Floppy-Disk Controllers Device, Transfer µPD Name Description Rate ' Package Pins 765A/B Floppy-Disk Controller Industry-standard controller supporting IBM 3740 and IBM 500 kb/s DIP 40 System 34 double-density format; enhanced 765B supports multitasking applications 71065/66 Floppy-Disk Interface Compatible with 765-family controllers and others; supports 500 kb/s SOP 28 multiple data rates from 125 to 500 kb/s SDIP 30 72065/65B CMOS Floppy-Disk 100% 765A/B microcode compatible; compatible with 808x 1 Mb/s DIP 40 Controller microprocessor families PLCC 44 Miniflat 52 72067 Floppy-Disk Controller CMOS; 765A/B microcode compatible; clock generation/ 500 kb/s DIP 48 switching circuitry; selectable write precompensation; Miniflat 52 digital phase-locked loop PLCC 52 72068 Floppy-Disk Controller All features of the 72067 plus IBM-PC, PC/XT, PC/AT, or 500 kb/s Miniflat 80 PS/2 style registers; 24-ma high-current drivers PLCC 84 72069 Floppy-Disk Controller All features of the 72067/68 with substitution of high- 1 Mb/s PLCC 84 performance analog phase-locked loop for digital PLL Miniflat 100 Hard-Disk Controllers Device, Read/Write µPD Name Description Clock ' Package Pins 7261A/B Hard-Disk Controller Supports eight drives in SMD mode, four drives in ST506 23MHz Ceramic DIP 40 mode; error correction and detection · 7262 Enhanced Small-Disk Serial-mode ESDI compatible; controls up to seven drives; 18MHz Ceramic DIP 40 Interface (ESDI) Controller supports up to 80 heads; hard and soft-sector interfacing 72061 CMOS Hard-Disk Supports SMD/SMD-E and ST506/412 type drives 24 MHz DIP 40 Controller Miniflat 52 PLCC 52 72111 Small Computer System Selectable 8/16 data bus width; 16 high-level commands 16MHz SDIP 64 Interface (SCSI) Controller for reduced CPU load; single-command automatic Miniflat 74 execution; 4-Mb sync/async; CMOS PLCC 68 1-14 t-IEC DSPand Speech Products NEC Electronics Inc. Selection Guide Digital Signal Processors Device, Instruction Instruction Data ROM Data RAM a µPD Description Cycle (ns) ROM (Bits) (Bits) (Bits) 'Package Pins 7720A 16-bit, fixed-point DSP; NMOS 244 512 x 23 510x13 128x16 DIP 28 PLCC 44 77C20A 16-bit, fixed-point DSP; CMOS 244 512 x 23 510x13 128x16 DIP 28 PLCC 28 PLCC 44 77P20 16-bit, fixed-point DSP; CMOS 244 512 x 23 510x13 128x16 Cerdip 28 UVEPROM UVEPROM 77C25 16-bit, fixed-point DSP; CMOS 122 2048 x 24 1024 x 16 256x16 DIP 28 PLCC 44 77P25 16-bit, fixed-point DSP; CMOS 122 2048 x 24 1024 x 16 256x16 DIP 28 OTP ROM OTP ROM PLCC 44 2048 x 24 1024x16 256x16 Cerdip 28 UVEPROM UVEPROM 77220 24-bit, fixed-point DSP; CMOS 122 2048 x32 1024 x 24 512 x 24 Ceramic PGA 68 PLCC 68 77230AR 32-bit, floating-point DSP; CMOS 150 2048 x 32 1024 x 32 1024 x 32 Ceramic PGA 68 77230AR-003 32-bit, floating-point DSP; CMOS; 150 n/a n/a n/a Ceramic PGA 68 standard library software 77P230R 32-bit, floating-point DSP; CMOS 150 2048 x 32 1024 x 32 1024 x 32 Ceramic PGA 68 UVEPROM UVEPROM 77810 16-bit fixed-point modem DSP; CMOS 181 2048 x 24 1024 x 16 256x16 Ceramic PGA 68 PLCC 68 7281 Image pipelined processor; NMOS 5-MHz n/a n/a 512x18 Ceramic DIP 40 clock 9305 Support device for µPD7281 10-MHz n/a n/a n/a Ceramic PGA 132 processors; CMOS clock Speech Processors Device, Clock Data ROM µPD Name Technology (MHz) (Bits) 'Package Pins 7730 ADPCM Speech Encoder/Decoder NMOS 8 DIP 28 77C30 ADPCM Speech Encoder/Decoder NMOS 8 DIP • 28 PLCC 44 7755 ADPCM Speech Synthesizer CMOS 0.7 96K DIP 18 SOP 24 7756 ADPCM Speech Synthesizer CMOS 0.7 256K DIP 18 SOP 24 77P56 ADPCM Speech Synthesizer CMOS 0.7 256K DIP 20 OTP ROM SOP 24 7757 ADPCM Speech Synthesizer CMOS 0.7 512K DIP 18 SOP 24 7759 ADPCM Speech Synthesizer CMOS 0.7 1024K DIP 40 external Miniflat 52 1 Plastic unless ceramic (or cerdip) is specified. 1-15 DSP and Speech NEC 1-16 t\'EC ¥-Series Development Tools NEC Electronics Inc. Selection Guide V-Series Development Tools Selection Guide Part Full Relocatable II Number Full Emulator Mini-IE Mini-IE Evaluation EPROM/OTP Assembler C Compiler (Note 1) Emulator Probe Emulator Probe Boards Device (Note 13) (Note 14) ,uPD70136GJ-12 IE-70136-A016 EP-70136L-A IE-70136-PC EP-70136L-PC DDK-70136 RA70136 CC70136 (Note 2) (Note 2) ,uPD70136GJ-16 IE-70136-A016 EP-70136L-A IE-70136-PC EP-70136L-PC DDK-70136 RA70136 CC70136 (Note 2) (Note 2) ,uPD70136L-16 IE-70136-A016 EP-70136L-A IE-70136-PC EP-70136L-PC DDK-70136 RA70136 CC70136 ,uPD70136L-12 IE-70136-A016 EP-70136L-A IE-70136-PC EP-70136L-PC DDK-70136 RA70136 CC70136 ,uPD70136R-12 IE-70136-A016 EP-70136L-A IE-70136-PC EP-70136L-PC DDK-70136 RA70136 CC70136 (Note 3) (Note 3) ,uPD70136R-16 IE-70136-A016 EP-70136L-A IE-70136-PC EP-70136L-PC DDK-70136 RA70136 CC70136 (Note 3) (Note 3) ,uPD70208GF·8 IE-70208-A010 (Note 12) EB-V40MINl-IE EB-70208 RA70116 CC70116 ,uPD70208GF-10 IE-70208-A010 (Note 12) EB-V40MINl-IE EB-70208 RA70116 CC70116 ,uPD70208L-8 IE-70208-A010 IE-70000-2958 EB-V40MINl-IE ADAPT68PGA EB-70208 RA70116 CC70116 68PLCC (Note 4) ,uPD70208L·10 IE-70208-A010 IE-70000-2958 EB-V40MINl-IE ADAPT68PGA EB-70208 RA70116 CC70116 68PLCC (Note 4) ,uPD70208R-8 IE-70208-A010 IE-70000-2959 EB-V40M INI-IE (Note 4) EB-70208 RA70116 CC70116 ,uPD70208R-10 IE-70208-A010 IE-70000-2959 EB-V40M INI-IE (Note 4) EB-70208 RA70116 CC70116 ,uPD70216GF-8 IE-70216-A010 (Note 12) EB-V50MINl-IE EB70216 RA70116 CC70116 ,uPD70216GF-10 IE-70216-A010 (Note 12) EB-V50MINl-IE EB70216 RA70116 CC70116 ,uPD70216L-8 IE-70216-A010 IE-70000-2958 EB-V50MINl-IE ADAPT68PGA EB70216 RA70116 CC70116 68PLCC (Note 4) ,uPD70216L-10 IE-70216-A010 IE-70000-2958 EB-V50MINl-IE ADAPT68PGA EB70216 RA70116 CC70116 68PLCC (Note 4) ,uPD70216R·8 IE-70216-A010 IE-70000-2959 EB-V50MINl-IE (Note 4) EB70216 RA70116 CC70116 ,uPD70216R-10 IE-70216-A010 IE-70000-2959 EB-V50MINl-IE (Note 4) EB70216 RA70116 CC70116 ,uPD70320GJ IE-70320-A008 EP-70320GJ EB-V25MINl-IE-P EP-70320GJ DDK-70320 RA70320 CC70116 (Note5) (Note 6) ,uPD70320GJ-8 IE-70320-A008 EP-70320GJ EB-V25MINl-IE-P EP-70320GJ DDK-70320 RA70320 CC70116 (Note 5) (Note 6) ,uPD70320L IE-70320-A008 EP-70320L EB-V25MINl-IE-P (Note 7) DDK-70320 RA70320 CC70116 ,uPD70320L-8 IE-70320-A008 EP-70320L EB-V25MINl-IE-P (Note 7) DDK-70320 RA70320 CC70116 ,uPD70322GJ IE-70320-A008 EP-70320GJ EB-V25MINl-IE-P EP-70320GJ DDK-70320 RA70320 CC70116 (Note 5) (Note 6) ,uPD70322GJ-8 IE-70320-A008 EP-70320GJ EB-V25MINl-IE-P EP-70320GJ DDK-70320 RA70320 CC70116 (Note 5) (Note 6) ,uPD70322L IE-70320-A008 EP-70320L EB-V25MINl-IE-P (Note 7) DDK-70320 70P322K RA70320 CC70116 (Note 10) 50173 1-17 ¥-Series NEC V-Series Development Tools Selection Guide (cont) Part Full Relocatable Number Full Emulator Mini-IE Mini-IE Evaluatlon EPROM/OTP Assembler C Compller (Note 1) Emulator Probe Emulator Probe Boards Device (Note 13) (Note 14) µPD70322L·8 IE·70320·A008 EP·70320L EB-V25MINl-IE·P (Note 7) DDK70320 70P322K RA70320 CC70116 (Note 10) µPD70325GJ·8 IE·70325·A008 EP·70320GJ (Note 12) (Note 12) DDK-70325 RA70320 CC70116 (Note5) µPD70325GJ·10 IE-70325-AOOS EP·70320GJ (Note 12) (Note 12) DDK-70325 RA70320 CC70116 (Note 8) (Note 5) µPD70325L·8 IE·70325·A008 EP·70320L (Note 12) (Note 12) DDK-70325 RA70320 CC70116 µPD70325L·10 IE·70325·A008 EP·70320L (Note 12) (Note 12) DDK-70325 RA70320 CC70116 (Note 8) µPD70327GJ-8 IE·70320·A008 EP·70320GJ EB-V25MINl·IE·P EP-70320GJ RA70320 CC70116 (Note 9) (Note 5) (Note 6) µPD70327L-8 IE·70320·A008 EP·70320L EB·V25MINl·IE·P (Note 7) RA70320 CC70116 (Note 9) µPD70330GJ·8 IE·70330·A008 EP·70320GJ EB-V35MINl·IE·P EP-70320GJ DDK-70330 RA70320. CC70116 (Note 5) (Note 6) µPD70330L·8 IE·70330·A008 EP·70320L EB·V35MINl·IE-P (Note 7) DDK-70330 RA70320 CC70116 µPD70332GJ·8 IE·70330-A008 EP·70320GJ EB-V35MINl·IE-P EP-70320GJ DDK-70330 RA70320 CC70116 (Note5) (Note6) µPD70332L-8 IE-70330·A008 EP-70320L EB-V35MINl-IE-P (Note7) DDK-70330 70P322K RA70320 CC70116 (Note 10) µPD70335GJ-8 IE-70335-A008 EP·70320GJ (Note 12) (Note 12) DDK-70330 RA70320 CC70116 (Note 5) µPD70335GJ-10 IE-70335-AOOS EP-70320GJ (Note 12) (Note 12) DDK-70330 RA70320 CC70116 (Note 8) (Note 5) µPD70335L·8 IE-70335-AOOS EP-70320L (Note 12) (Note 12) DDK-70330 RA70320 CC70116 µPD70335L-10 IE-70335·A008 EP-70320L (Note 12) (Note 12) DDK-70330 RA70320 CC70116 (Note 8) µPD70337GJ-8 IE-70330-A008 EP-70320GJ EB-V35MINl-IE-P EP-70320GJ RA70320 CC70116 (Note 9) (Note 5) (Note 6) µPD70337L-8 IE-7.0330-A008 EP-70320L EB-V35MINl-IE-P (Note 7) RA70320 CC70116 (Note 9) µPD79011 GJ-8 IE-70320-A008 EP-70320GJ (Note 12) (Note 12) RA70320 CC70116 (Note 11) (Note 5) µPD79011 L-8 +IE-70320-RTOS EP-70320L (Note 12) (Note 12) RA70320 CC70116 (Note 11) µPD79021 L-8 IE-70330-A008 EP-70320L (Note 12) (Note 12) RA70320 CC70116 (Note 11) +IE-70330-RTOS Notes: ( 1) Packages: ( 3) 68-pin PGApartsaresupported byusingtheEP-70136L-APLCC probe or EP-70136L-PC PLCC probe, plus a PLCC socket with a Package Description PGA-pinout. A PLCC socket of this type. is supplied with the GF 80-pln plastic minlflat EP-70136L-A. GJ 74-pin or 94-pln plastic miniflat ( 4) The EB-V40 MINI-IE and EB-V50 MINI-IE support PGA packages K 84-pln ceramic LCC with window directly; the ADAPT68PGA68PLCC adaptor converts the PGA- L 68-pln or 84-pin plastic LCC R pinout on the MINI-IE to a PLCC footprint. This adaptor Is 68-pin PGA supplied with the MINI-IE. ( 2) The EP-70136GL-A and EP.70136L-PC contain both a 68-pin PLCC probe and an adapter which converts the 68-pin PLCC probes to a 74-pln miniflat footprint. 1-18 t\'EC ¥-Series ( 5) The EP-70320GJ is an adaptor to the EP-70320L, which converts (13)The following relocatable assemblers are available: 84-pin PLCC probes to a 94-pin miniflat footprint. For GJ parts, RA70116-D52 For V20®/V30®/ (VS-DOS®) both the PLCC probe and the adaptor are needed. RA70116-WT1 V40™/V50™ (VAX/VMS™) ( 6) The EP-70320GJ adaptor can be used to convert the supplied RA70116-VXT1 (VAX/UNIX™ 4.2 BSD or Ultrix™) 84-pin PLCC cable of the EB-V25 MINl-IE-P or EB-V35 MINl-IE-P a RA70136-D52 For V33™ (MS-DOS) to a 94-pin miniflat. RA70136-WT1 (VAX/VMS) ( 7) The EB-V25 MINl-IE-P and EB-V35 MINl-IE-P are supplied with an RA70136-VXT1 (VAX/UNIX 4.2 BSD or Ultrix) 84-pin PLCC cable. RA70320-D52 For V25'" and V35'" (MS-DOS) ( 8) At the current time, the emulators for the ,uPD70325 and RA70320-WT1 (VAX/VMS) ,uPD70335 are specified to 8 MHz. Contact your local NEC Sales RA70320-VXT1 (VAX/UNIX 4.2 BSD or Ultrix) Office for the latest information on 10 MHz emulation. ( 9) Development for the ,uPD70327 or ,uPD70337 can be done using (14)The following C compilers are available: the appropriate ,uPD70320 or ,uPD70330 tools; however, debug- CC70116-D52 For V20/V30/ (MS-DOS) ging of programs in the Software Guard mode is not supported CC70116-VVT1 V40/V50 and (VAX/VMS) at this time. CC70116-VXT1 V25/V35 (VAX/UNIX 4.2 BSD or Ultrix) (10) The ,uPD70P322K EPROM device can be used for both ,uPD70322 CC70136-D52 For V33 (MS-DOS) and ,uPD70332 emulation. The ,uPD70P322K EPROM device can CC70136-WT1 (VAX/VMS) be programmed by using the PA-70P322L Programming Adapter CC70136-VXT1 (VAX/UNIX 4.2 BSD or Ultrix) and the PG-1500 EPROM Programmer. CC70320-D52 For V25 and V35 (MS-DOS) (11) For emulation of ,uPD79011 or ,uPD79021, the base emulator CC70320-WT1 (VAX/VMS) (IE-70320 or IE-70330) plus Real-Time Operating System soft- CC70320-VXT1 (VAX/UNIX 4.2 BSD or Ultrix) ware IE-70320-RTOS or IE-70330-RTOS) is required. (12) This emulation option is not currently supported, but may be available in the future. Contact your local NEC Sales Office for further information. V20 and V30 are registered trademarks of NEC Corporation. V25, V33, V35, V40 and V50 are trademarks of NEC Corporation. MS-DOS is a registered trademark of Microsoft Corporation. VAX, VMS and Ultrix are trademarks of Digital Equipment Corporation. UNIX is a trademark of AT&T Bell Laboratories. 1-19 ¥-Series NEC 1-20 NEC µPD75XX Series Development Tools NEC Electronics Inc. Selection Guide µPD75XX Series Development Tools Selection Guide a System PG-1500 Absolute Part Number Add-on Evaluatlon EPROM/OTP Adapter Assembler (Note 1) Emulator* Board* Board Device (Note 2) (Note 3) µP07501G-12 EVAKJT-75008 EV7514 SE-7514A ASM75 µPD7502G-12 EVAKJT-75008 EV7514 SE-7514A ASM75 µPD7503G-12 EVAKJT-75008 EV7514 SE-7514A ASM75 µPD7506C EVAKJT-75008 SE-7508 ASM75 µPD7506CT EVAKJT-75008 ASM75 µPD7506G-OO EVAKJT-75008 ASM75 µPD7507C EVAKJT-75008 µPD78CG08E ASM75 µPD7507CU EVAKJT-75008 ASM75 µP07507G-OO EVAKJT-75008 ASM75 µPD7507HC EVAKJT-75008 EV7508H µPD75CG08HE ASM75 µPD7507HCU EVAKJT-75008 EV7508H ASM75 µPD7507HG-22 EVAKJT-75008 EV7508H ASM75 µPD7507SC EVAKJT-75008 SE-7508 ASM75 µPD7507SCT EVAKJT-75008 ASM75 µPD7508C EVAKJT-75008 µPD78CG08E ASM75 µPD7508CU EVAKJT-75008 ASM75 µPD7508G-OO EVAKJT-75008 ASM75 µPD75CG08E EVAKJT-75008 ASM75 µPD7508AC EVAKJT-75008 SE-7508 ASM75 µPD7508HC EVAKJT-75008 EV7508H µPD75CG08HE ASM75 µPD7508HCU EVAKJT-75008 EV7508H ASM75 µPD7508HG-22 EVAKJT-75008 EV7508H ASM75 µPD75CG08HE EVAKJT-75008 EV7508H ASM75 ~PD7514G-12 EVAKJT-75008 EV7514 SE-7514A ASM75 µPD7516HCW EVAKJT-75008 EV7500FIP ASM75 µPD7516HG-12 EVAKJT-75008 EV7500FIP ASM75 µPD7516HG-36 EVAKJT-75008 EV7500FIP µPD75CG16HE ASM75 µPD75CG16HE EVAKJT-75008 EV7500FIP ASM75 µPD7519HCW EVAKJT-75008 EV7500FIP ASM75 µPD7519HG-12 EVAKJT-75008 EV7500FIP ASM75 µPD7519HG-36 EVAKJT-75008 EV7500FIP µPD75CG19HE ASM75 µPD75CG19HE EVAKJT-75008 EV7500FIP ASM75 µPD7527AC EVAKJT-75008 EV7528 µPD75CG28E ASM75 µPD7527ACU EVAKJT-75008 EV7528 ASM75 µPD7528AC EVAKJT-75008 EV7528 µPD75CG28E ASM75 µPD7528ACU EVAKJT-75008 EV7528 ASM75 * Required Tools 50174 1-21 µPD75XX Series NEC p.PD75XX Series Development Tools Selection Guide (cont) System PG-1500 Absolute Part Number Add-on Evaluatlon EPROM/OTP Adapter Assembler (Note 1) Emulator* Board* Board Device (Note 2) (Note 3) l'PD75CG28E EVAKIT-75008 EV7528 ASM75 l'PD7533C EVAKIT-75008 EV7533 µPD75CG33E ASM75 l'PD7533CU EVAKIT-75008 EV7533 ASM75 ,uPD7533G-22 EVAKIT-75008 EV7533 ASM75 ,uPD75CG33E EVAKIT-75008 EV7533 ASM75 l'PD7537AC EVAKIT-75008 EV7528 µPD75CG38E ASM75 l'PD7537ACU EVAKIT-75008 EV7528 ASM75 ,uPD7538AC EVAKIT-75008 EV7528 µPD75CG38E ASM75 ,uPD7538ACU EVAKIT-75008 EV7528 ASM75 ,uPD75CG38E EVAKIT-75008 EV7528 ASM75 l'PD7554CS EVAKIT-75008 EV7554A SE-7554A µPD75P54CS PA-75P54CS ASM75 l'PD7554G EVAKIT-75008 EV7554A SE-7554A µPD75P54G PA-75P54CS ASM75 ,uPD75P54CS EVAKIT-75008 EV7554A ASM75 l'PD75P54G EVAKIT-75008 EV7554A ASM75 ,uPD7556CS EVAKIT-75008 EV7554A SE-7554A µPD75P56CS PA-75P56CS ASM75 ,uPD7556G EVAKIT-75008 EV7554A SE-7554A µPD75P56G PA-75P56CS ASM75 ,uPD75P56CS EVAKIT-75008 EV7554A ASM75 l'PD75P56G EVAKIT-75008 EV7554A ASM75 ,uPD7564CS EVAKIT-75008 EV7554A SE-7554A µPD75P64CS PA-75P54CS ASM75 ,uPD7564G EVAKIT-75008 EV7554A SE-7554A µPD75P64G PA-75P54CS ASM75 ,uPD75P64CS EVAKIT-75008 EV7554A ASM75 ,uPD75P64G EVAKIT-75008 EV7554A ASM75 l'PD7566CS EVAKIT-75008 EV7554A SE-7554A µPD75P66CS PA-75P56CS ASM75 l'PD7566G EVAKIT-75008 EV7554A SE-7554A µPD75P66G PA-75P56CS ASM75 l'PD75P66CS EVAKIT-75008 EV7554A ASM75 ,uPD75P66G EVAKIT-75008 EV7554A ASM75 *Required tools 1-22 t-IEC µPD75XX Series Notes: (1) Packages: Package Description c 28-pin plastic DIP (µ.PD7506/07S) 40-pin plastic DIP (µ.PD7507/07H/08/08N08H) 42-pin plastic DIP (µ.PD7527A/28N33/37A/38A) cs CT cu 20-pin plastic shrink DIP (µ.PD7554/P54/64/P64) 24-pin plastic shrink DIP (µ.PD7556/P56/66/P66) 28-pin plastic shrink DIP 40-pin plastic shrink DIP (µ.PD7507/07H/08/08H) 42-pin plastic shrink DIP (µPD7527N28N33/37/37N38A) II cw 64-pin plastic shrink DIP E 40-pin ceramic piggy-back DIP (µ.PD75CG08/08H) 42-pin ceramic piggy-back DIP (µ.PD75CG28/33/38) 64-pin ceramic piggy-back QUIP (µPD75CG 16H/19H) G 20-pin plastic SO (µPD7554/P54/64/P64) 24-pin plastic SO (µ.PD7556/P56/66/P66) G-00 52-pin plastic miniflat G-12 64-pin plastic miniflat (µ.PD7501/02/03/16H/19H) 80-pin plastic miniflat (µ.PD7514) G-22 44-pin plastic miniflat G-36 64-pin plastic QUIP (2) By using the specified adapter, the PG-1500 EPROM programmer can be used to program the OTP device. (3) The ASM75 Absolute Assembler is provided to run under the MOS-DOS® operating system. (ASM75·D52). MS-DOS is registered trademark of Microsoft Corporation. 1-23 µPD75XX Series NEC 1-24 NEC NEC Electronics Inc. µPD75XXX Series Development Tools Selection Guide p.PD75XXX Series Development Tools Selection Guide Relocatable Structured D Part Number Main Board Add-on Emulation Optional Socket EPROM/OTP Assembler Assembler (Note 7) Emulator* Board* Probe* Adapter (Note 1) Device (Note 2) (Note 5) (Note 6) .uPD75004CU EVAKIT-75X EV-75008 (Note3) .uPD75P008CU/DU RA75X ST75X .uPD75006GB EVAKIT·75X EV-75008 EP-75008GB EV-9200G-44 ,14PD75P008G B RA75X ST75X ,14PD75006CU EVAKIT-75X EV-75008 (Note 3) ,14PD75P008CU/DU RA75X ST75X ,14PD75006GB EVAKIT-75X EV-75008 EP-75008GB EV-9200G·44 ,14PD75P008G B RA75X ST75X ,14PD75008CU EVAKIT·75X EV-75008 (Note 3) ,14PD75P008CU/DU RA75X ST75X ,14PD75008GB EVAKIT-75X EV-75008 EP·75008GB EV-9200G-44 ,14PD75P008G B RA75X ST75X ,14PD75P008CU EVAKIT-75X EV-75008 (Note 3) RA75X ST75X ,14PD75P008DU EVAKIT-75X EV-75008 (Note 3) RA75X ST75X ,14PD75P008G B EVAKIT-75X EV-75008 EP-75008GB EV-9200G-44 RA75X ST75X ,14PD75028CW EVAKIT·75X EV-75048 (Note4) (Note 4) ,14PD75P028CW RA75X ST75X ,14PD75028GC EVAKIT·75X EV-75048 (Note4) (Note 4) ,14PD75P028GC RA75X ST75X ,14PD75P028CW EVAKIT·75X EV-75048 (Note 4) (Note 4) RA75X ST75X ,14PD75P028GC EVAKIT-75X EV-75048 (Note 4) (Note4) RA75X ST75X ,14PD75048CW EVAKIT-75X EV-75048 (Note4) (Note4) RA75X ST75X ,14PD75048GC EVAKIT-75X EV-75048 (Note 4) (Note 4) RA75X ST75X ,14PD75104CW EVAKIT-75X EV-75108 (Note 3) ,14PD75P108CW/DW RA75X ST75X ,14PD75104G EVAKIT-75X EV-75108 EP-75108GF EV-9200G-64 ,14PD75P108G/GF RA75X ST75X ,14PD75P116GF ,14PD75104GF EVAKIT·75X EV-75108 EP·75108GF EV-9200G-64 ,14PD75P108G/GF RA75X ST75X ,14PD75P116GF ,14PD75104AGC EVAKIT·75X EV-75108 EP-75108GF EV-9200G-64 RA75X ST75X ,14PD75106CW EVAKIT-75X EV-75108 (Note 3) ,14PD75P108CW/DW RA75X ST75X .uPD75106G EVAKIT-75X EV-75108 EP-75108GF EV-9200G-64 ,14PD75P108G/GF RA75X ST75X ,14PD75P116GF µ.PD75106GF EVAKIT-75X EV-75108 EP-75108GF EV-9200G-64 ,14PD75P108G/GF RA75X ST75X ,14PD75P116GF ,14PD75108AG EVAKIT·75X EV-75108 EP-75108GF EV-9200G-64 RA75X ST75X ,14PD75108AGC EVAKIT-75X EV-75108 EP-75108GF EV-9200G-64 RA75X ST75X ,14PD75108CW EVAKIT-75X EV-75108 (Note 3) ,14PD75P108CW/DW RA75X ST75X ,14PD75108G EVAKIT-75X EV-75108 EP-75108GF EV-9200G-64 ,14PD75P108G/GF RA75X ST75X ,14PD75P116GF ,14PD75108GF EVAKIT·75X EV-75108 EP·75108GF EV-9200G-64 ,14PD75P108G/GF RA75X ST75X ,14PD75P116GF ,14PD75P108BCW EVAKIT-75X EV-75108 (Note 3) RA75X ST75X ,14PD75P108CW EVAKIT-75X EV-75108 (Note 3) RA75X ST75X ,14PD75P108DW EVAKIT-75X EV-75108 (Note 3) RA75X ST75X ,14PD75P108G EVAKIT·75X EV-75108 EP·75108GF EV-9200G-64 RA75X ST75X ,14PD75112CW EVAKIT·75X EV-75108 (Note 3) ,14PD75P116CW RA75X ST75X * Required Tools 50175 1-25 µPD75XXX Series NEC µPD75XXX Series Development Tools Selection Guide (cont) Relocatable Structured Part Number Main Board Add-on Emulation Optional Socket EPROM/OTP Assembler Assembler (Note 7) Emulator* Board* Probe* Adapter (Note 1) Device (Note 2) (Note 5) (Note 6) µP075112GF EVAKIT-75X EV-75108 EP-75108GF EV-9200G-64 µPD75P116GF RA75X ST75X µPD75116CW EVAKIT-75X EV-75108 (Note 3) µPD75P116CW RA75X ST75X µPD75116GF EVAKlT-75X EV-75108 EP·75108GF EV-9200G-64 µP075P116GF RA75X ST75X µPD75P116BGF EVAKIT-75X EV-75108 EP·75108GF EV-9200G-64 RA75X ST75X µPD75P116CW EVAKIT-75X EV-75108 (Note 3) RA75X ST75X µPD75P116GF EVAKIT-75X EV-75108 EP-75108GF EV-9200G-64 RA75X ST75X µPD75206CW EVAKlT-75X EV-75216A (Note 3) µPD75P216ACW RA75X ST75X µPD75206G EVAKIT-75X EV-75216A EP-75216AGF EV-9200G-64 RA75X ST75X µPD75208CW EVAKIT-75X EV-75216A (Note 3) µP075P216ACW RA75X ST75X µPD75208G EVAKIT-75X EV-75216A EP-75216AGF EV-9200G-64 RA75X ST75X µPD75CG208AE EVAKIT-75X EV-75216A (Note 3) RA75X ST75X µPD75CG208AEA EVAKlT-75X EV-75216A EP-75216AGF EV-9200G-64 RA75X ST75X µPD75212ACW EVAKIT-75X EV-75216A (Note 3) µPD75P216ACW RA75X ST75X µPD75212AGF EVAKIT-75X EV-75216A EP-75216AGF EV-9200G-64 RA75X ST75X µPD75216ACW EVAKIT-75X EV-75216A (Note 3) µPD75P216ACW RA75X ST75X µPD75216AGF EVAKIT-75X EV-75216A EP-75216AGF EV-9200G-64 RA75X ST75X µPD75CG216AE EVAKIT-75X EV-75216A (Note 3) RA75X ST75X µPD75CG216AEA EVAKIT-75X EV-75216A EP-75216AGF EV-9200G-64 RA75X ST75X µPD75P216ACW EVAKIT-75X EV-75216A (Note 3) µPD75P216ACW RA75X ST75X µPD75268CW EVAKIT-75X EV-75216A (Note 3) µPD75P216ACW RA75X ST75X µPD75268GF EVAKIT-75X EV-75216A EP-75216AGF EV-9200G-64 RA75X ST75X µPD75304GF EVAKIT-75X EV-75308 (Note 3) EV-9200G-80 µPD75P308GF/K RA75X ST75X µPD75306GF EVAKIT-75X EV-75308 (Note 3) EV-9200G-80 µPD75P308GF/K RA75X ST75X µPD75308GF EVAKIT-75X EV-75308 (Note 3) EV-9200G-80 µPD75P308GF/K RA75X ST75X µP075P308GF EVAKIT-75X EV-75308 (Note 3) EV-9200G-80 RA75X ST75X µPD75P308K EVAKIT-75X EV-75308 (Note 3) EV-9200G-80 RA75X ST75X µPD75312GF EVAKIT-75X EV-75308 (Note 3) EV-9200G-80 µPD75P316GF RA75X ST75X µPD75P316GF EVAKIT-75X EV-75308 (Note 3) EV-9200G-80 RA75X ST75X µPD75328GC EVAKlT-75X EV-75328 (Note 3) µPD75P328GC RA75X ST75X µP075P328GC EVAKIT-75X EV-75328 (Note 3) RA75X ST75X µPD75402C EVAKIT-75X EV-75402 (Note 3) µPD75P402C RA75X ST75X µP075402CT EVAKIT-75X EV-75402 (Note 3) µPD75P402CT RA75X ST75X µPD75402GB EVAKIT-75X EV-75402 EP-75402GB EV-9200G-44 µPD75P402GB RA75X ST75X µPD75P402C EVAKIT-75X EV-75402 (Note 3) RA75X ST75X µPD75P402CT EVAKIT-75X EV-75402 (Note 3) RA75X ST75X µPD75P402GB EVAKIT-75X EV-75402 EP-75402GB EV-9200G-44 RA75X ST75X µPD75516GF EVAKIT-75X EV-75516 (Note 3) µP075P516GF/K RA75X ST75X µPD75P516GF EVAKIT-75X EV-75516 (Note 3) RA75X ST75X µP075P516K EVAKIT-75X EV-75516 (Note 3) * Required Tools 1-26 t-IEC µPD75XXX Series Notes: (1) The EV-9200G-XX is an LCC socket with the footprint of the flat (7) Packages: package. One unit is supplied with the probe. Additional units are Package Description available as replacement parts in sets of five. c 28-pin plastic DIP (2) All EPROM/OTP devices can be programmed using the NEC CT 28-pin plastic shrink DIP PG-1500. Refer to the PG-1500 Programming Socket Adapter cu 42-pin plastic shrink DIP Selection Guide for the appropriate socket adapter. (3) The emulation probe is shipped with the add-on board. (4) Preliminary information. Contact your NEC Sales Representative for further information and availability. cw DU ow E EA 64-pin plastic shrink DIP 42-pin ceramic shrink DIP with window 64-pin ceramic shrink DIP with window 64-pin ceramic piggy-back shrink DIP 64-pin ceramic piggy-back miniflat D G 64-pin plastic miniflat (5) The RA75X relocatable assembler package is provided for the following operating systems: GB 44-pin plastic miniflat GC 64 or 80-pin plastic miniflat RA75X-D52 (MOS-DOS®) GF 64 or 80-pin plastic miniflat RA75X-WT1 (VAX/VMS'") K 80-pin plastic miniflat (6) The ST75X structures assembler preprocessor is provided with RA75X MS-DOS is registered trademark of Microsoft Corporation. VAX and VMS are trademarks of Digital Equipment Corporation. 1-27 µPD75XXX Series NEC 1-28 NEC NEC Electronics Inc. µPD78XX Series Development Tools Selection Guide 14PD78XX Series Development Tools Selection Guide** PG-1500 Relocatable II Part Number Emulation EPROM/OTP Adapter Assembler C Compiler (Note 1) Emulator* Probe* Device (Note 2) (Note 10) (Note 10) µPD7810HCW IE-7811H·M EV-9001-64 RA87 CC87 (Note 3) µPD7810HG-36 IE-7811H·M (Note 4) RA87 CC87 µPD7811HCW IE-7811H-M EV-9001-64 RA87 CC87 (Note 3) µPD7811 HG-36 IE-7811H·M (Note 4) µPD78PG11HE (Note 6) RA87 CC87 µPD78PG11HE IE-7811H·M (Note4) RA87 CC87 µPD78C10CW IE-78C11-M EV-9001·64 RA87 CC87 (Note 3) µPD78C10G-36 IE-78C11-M (Note 4) RA87 CC87 µPD78C10G·1 B IE-78C11-M (Note 5) RA87 CC87 µPD78C10GF-3BE IE-78C11-M (Note 5) RA87 CC87 µPD78C10L IE·78C11-M (Note 5) RA87 CC87 µPD78C10ACW IE-78C11-M EV-9001-64 RA87 CC87 (Note 8) (Note 3) µPD78C10AGQ-36 IE-78C11-M (Note4) RA87 CC87 (Note 8) µPD78C10AGF-3BE IE-78C11-M (Note 5) RA87 CC87 (Note's) µPD78C10AL IE-78C11-M (Note 5) RA87 CC87 (Note 8) µPD78C11CW IE-78C11-M EV-9001-64 µPD78CP14CW/DW PA-78CP14CW RA87 CC87 (Note 3) µPD78C1.1 G-36 IE-78C11-M (Note 4) µPD78CP14GQ-36/R PA-78CP14GQ RA87 CC87 14PD78CG14E µPD78C11G-18 IE-78C11-M (Note 5) µPD78CP14GF-3BE PA·78CP14GF RA87 CC87 µPD78C11 GF-3BE IE-78C11-M (Note 5) µPD78CP14GF-3BE PA·78CP14GF RA87 CC87 µPD78C11L IE-78C11-M (Note 5) µPD78CP14L PA-78CP14L RA87 CC87 µPD78C11ACW IE-78C11-M EV-9001-64 14PD78CP14CW/DW PA-78CP14CW RA87 CC87 (Note 8) (Note3) (Note 7) µPD78C11AGQ.36 IE-78C11-M (Note4) µPD78CP14GQ.36/R PA-78CP14GQ RA87 CC87 (Note 8) (Note 7) 14PD78C11AGF-3BE IE-78C11-M (Note 5) µPD78CP14GF-3BE PA·78CP14GF RA87 CC87 (Note 8) (Note 7) 14PD78C11AL IE-78C11-M (Note5) µPD78CP14L PA-78CP14L RA87 CC87 (Note 8) (Note 7) 14PD78C12ACW IE-78C11-M EV-9001-64 µPD78CP14CW/DW PA-78CP14CW RA87 CC87 (Note 8) (Note3) (Note 7) µPD78C12AGQ-36 IE-78011-M (Note 4) µPD78CP14GQ.36/R PA-78CP14GQ RA87 CC87 (Note 8) (Note 7) * Required Tools ** For all µPD78C1X devices, you may use the DDK-78C10 for evaluation purposes. 50176 1-29 µPD78XX Series t\'EC p.PD78XX Series Development Tools Selection Guide** (cont) PG-1500 Relocatable Part Number Emulation EPROM/OTP Adapter Assembler C Compiler (Note 1) Emulator* Probe* Device (Note 2) (Note 10) (Note 10) µ.PD78C12AGF-3BE IE-78C11-M (Note 5) µ.PD78CP14GF-3BE PA-78CP14GF RA87 CC87 (Note 8) (Note 7) µ.PD78C12AL IE-78C11-M (Note 5) µ.PD78CP14L PA-78CP14L RA87 CC87 (Notes) (Note 7) µ.PD78C14CW IE-78C11-M EV-9001-64 µ.PD78CP14CW/DW PA-78CP14CW RA87 CC87 (Note 3) µ.PD78C14G-36 IE-78C11-M (Note 4) µ.PD78CP14GQ-36/R PA-78CP14GQ RA87 CC87 ,u.PD78CG14E µ.PD78C14G-1B IE-78C11-M (Note 5) µ.PD78CP14GF PA-78CP14GF RA87 CC87 µ.PD78C14GF-3BE IE-78C11-M (Note 5) µ.PD78CP14GF PA-78CPHGF RA87 CC87 µ.PD78C14L IE-78C11-M (Note 5) µ.PD78CP14L PA-78CP14L RA87 CC87 µ.PD78C14AG-AB8 IE-78C11-M (Note 5) RA87 CC87 (Note 8) µ.PD78CG14E IE-78C11·M (Note 4) RA87 CC87 (Note 9) µ.PD78CP14CW IE-78C11-M EV-9001-64 PA-78CP14CW RA87 CC87 (Note 3) µ.PD78CP14DW IE-78C11-M EV-9001-64 PA-78CP14CW RA87 CC87 (Note 3) µ.PD78CP14G0-36 IE-78C11-M (Note 4) PA-78CP14GQ RA87 CC87 µ.PD78CP14GF-3BE IE-78C11-M (Note 5) PA-78CP14GF RA87 CC87 µ.PD78CP14L IE-78C11-M (Note 5) PA-78CP14L RA87 CC87 µ.PD78CP14R IE-78C11-M (Note 4) PA-78CP14GQ RA87 CC87 *Required Tools Notes: (1) Packages (5) No emulation probe available. Package Description (6) The µ.PD78PG11HE is a piggy-back EPROM device in a ceramic CW 64-pln plastic shrink DIP QUIP package. It accepts 2764 EPROMs. ow 64-pin ceramic shrink DIP with window E 64-pln ceramic piggyback QUIP (7) The µ.PD78CP14 EPROM/OTP devices do not have pull-up resis- GF-1B 64-pin plastic mlniflat (Resin Thickness: 2.05mm) tors on ports A, B, and C. G-36 64-pin plastic QUIP (8) The IE-78C11-M can be used by replacing the µ.PD78C10G-36 G-ABS 64-pin plastic miniflat (lnterpin Pitch: o.amm) with a µ.PD78C10AGQ-36. However, It will not be able to emulate GF-3BE 64-pin plastic mlniflat (Resin Thickness: 2.7mm) the optional pull-up resistors on ports A, B, and C. GQ-36 64-pln plastic QUIP L 68-pin PLCC (9) The µ.PD78CG14E is a piggy-back EPROM device in a ceramic R 64-pin ceramic QUIP with window QUIP package. It accepts 270256 and 27C256A EPROMS. (2) By using the specified adapter, the PG-1500 EPROM programmer (10) The following relocatable assemblers and C Compilers are can be used to program the EPROM/OTP device. available: (3) 64-pin shrink DIP adapter which plugs into the EP-7811HGQ RA87-D52 (MS-DOS®) Relocatable assemblers emulation probe supplied with each IE. RA87-VVT1 ~AX/VMS™) for 78XX series (4) The emulation probe for the 64-pin QUIP package (EP-7811 HGQ) CCMSD-1500-87 (MS-DOS) C Compilers for is supplied with the IE. CCVMS-OT16-87 ~AX/VMS) 78XX Series CCUNX-OT16-87 ~AX/UNIX™) MS-DOS Is a trademark of Microsoft Corporation. 4.2 BSD or Ultrix™) VAX, VMS and Ultrix are trademarks of Digital Equipment Corporation. UNIX Is a trademark of AT&T Bell Laboratories. 1-30 NEC µPD78XXX Series Development Tools NEC Electronics Inc. Selection Guide µ.PD78XXX Series Development Tools Selection Guide PG-1500 Relocatable Structured II Part Number Emulation EPROM/OTP Adapter Assembler Assembler C Compiler (Note 1) Emulator• Probe* Device (Note 2) (Notes 11) (Note 12) (Note 13) ,uPD78213CW IE-78210-R EP-78210CW RA78K2 ST78K2 CC782XX ,uPD78213GC-3B8 IE-78210-R EP-78210GC RA78K2 ST78K2 CC782XX ,uPD78213GJ-5BJ IE-78210-R EP-78210GJ RA78K2 ST78K2 CC782XX (Note 3) ,uPD78213GQ-36 IE-78210-R EP-78210GQ RA78K2 ST78K2 CC782XX ,uPD78213L IE-78210-R EP-78210L RA78K2 ST78K2 CC782XX ,uPD78214CW IE-78210-R EP-78210CW ,uPD78P214CW/DW PA-78P214CW RA78K2 ST78K2 CC782XX ,uPD78214GC-3B8 IE-78210-R EP-78210GC ,uPD78P214GC PA-78P214GC RA78K2 ST78K2 CC782XX ,uPD78214GJ-5BJ IE-78210-R EP-78210GJ ,uPD78P214GJ PA-78P214GJ RA78K2 ST78K2 CC782XX (Note 3) ,uPD78214GQ-36 IE-78210-R EP-78210GQ ,uPD78P214GQ PA-78P214GQ RA78K2 ST78K2 CC782XX µPD78214L IE-78210-R EP-78210L µPD78P214L PA-78P214L RA78K2 ST78K2 CC782XX µPD78P214CW IE-78210-R EP-78210CW PA-78P214CW RA78K2 ST78K2 CC782XX µPD78P214DW IE-78210-R EP-78210CW PA-78P214CW RA78K2 ST78K2 CC782XX µPD78P214GC-388 IE-78210-R EP-78210GC PA-78P214GC RA78K2 ST78K2 CC782XX µPD78P214GJ-5BJ IE-78210-R EP-78210GJ PA-78P214GJ RA78K2 ST78K2 CC782XX (Note 3) µPD78P214GQ-36 IE-78210-R EP-78210GQ PA-78P214GQ RA78K2 ST78K2 CC782XX µPD78P214L IE-78210-R EP-78210L PA·78P214L RA78K2 ST78K2 CC782XX µPD78220GJ-5BG IE-78220-R EP-78220GJ RA78K2 ST78K2 CC782XX (Note 4) µPD78220L IE-78220-R EP-78220L RA78K2 ST78K2 CC782XX µPD78224GJ-5BG IE-78220-R EP-78220GJ ,uPD78P224GJ PA-78P224GJ RA78K2 ST78K2 CC782XX (Note 4) µPD78224L IE-78220-R EP-78220L µPD78P224L PA-78P224L RA78K2 ST78K2 CC782XX µPD78P224GJ-5BG IE-78220-R EP-78220GJ PA-78P224GJ RA78K2 ST78K2 CC782XX (Note 4) µPD78P224L IE-78220-R EP-78220L PA-78P224L RA78K2 ST78K2 CC782XX µPD78310ACW IE-78310A-R (Note 5) µPD78P312ACW/DW PA·78P312CW RA78K3 ST78K3 CC78K3 (Note 7) µPD78310AGF-3BE IE-78310A·R EP-78310GF ,uPD78P312AGF-3BE PA-78P312GF RA78K3 ST78K3 CC78K3 (Note 7) µPD78310AGQ IE-78310A-R (Note 6) ,uPD78P312AGQ/RQ PA-78P312GQ RA78K3 ST78K3 CC78K3 (Note 7) µPD78310AL IE-78310A-R EP-78310L ,uPD78P312AL PA-78P312L RA78K3 ST78K3 CC78K3 (Note 7) µPD78312ACW IE-78310A-R (Note 5) ,uPD78P312ACW/DW PA-78P312CW RA78K3 ST78K3 CC78K3 (Note 7) µPD78312AGF-3BE IE-78310A-R EP-78310GF ,uPD78P312AGF-3BE PA·78P312GF RA78K3 ST78K3 CC78K3 (Note 7) * Required Tools so1n 1-31 µPD78XXX Series NEC µPD78XXX Series Development Tools Selection Guide {cont) PG-1500 Relocatable Structured Part Number Emulation EPROM/OTP Adapter Assembler Assembler C Compiler (Note 1) Emulator" Probe" Device (Note 2) (Note 11) (Note 12) (Note 13) µ.PD78312AGQ IE-78310A-R (Note 6) µPD78P312AGQ/RQ PA-78P312GQ RA78K3 ST78K3 CC78K3 (Note 7) µ.PD78312AL IE-78310A-R EP-78310L µPD78P312AL PA-78P312L RA78K3 ST78K3 CC78K3 (Note 7) µPD78P312ACW IE-78310A-R (Note 5) PA-78P312CW RA78K3 ST78K3 CC78K3 (Note 7) µ.PD78P312ADW IE-78310A-R (Note 5) PA-78P312CW RA78K3 ST78K3 CC78K3 (Note 7) µ.PD78P312AGF-3BE IE-78310A-R EP-78310GF PA-78P312GF RA78K3 ST78K3 CC78K3 (Note 7) µ.PD78P312AGQ IE-78310A-R (Note 6) PA-78P312GQ RA78K3 ST78K3 CC78K3 (Note 7) µPD78P312AL IE-78310A-R EP-78310L PA-78P312L RA78K3 ST78K3 CC78K3 (Note7) µ.PD78P312AR IE-78310A-R (Note 6) PA-78P312GQ RA78K3 ST78K3 CC78K3 (Note 7) µ.PD78320GJ-5BJ IE-78320-R (Note 8) (Note 8) (Note 8) RA78K3 ST78K3 CC78K3 (Note 7) µPD78320L IE-78320-R (Note 8) (Note 8) (Note 8) RA78K3 ST78K3 CC78K3 (Note 7) µ.PD78322GJ-5BJ IE-78320-R (Note 8) (Note 8) (Note 8) RA78K3 ST78K3 CC78K3 (Note 7) µ.PD78322L IE-78320-R (Note 8) (Note 8) (Note 8) RA78K3 ST78K3 CC78K3 (Note 7) µ.PD71 P301GF-3BE PA-71P301GF µ.PD71 P301GQ-36 PA-71 P301 GQ µ.PD71P301KA PA-71 P301 KA (Note 9) µ.PD71 P301 KB PA-71P301KB (Note 10) µ.PD71P301L PA-71P301L * Required Tools 1-32 t'tfEC µPD78XXX Series Notes: 1LPD78XXX Series Evaluation Boards Selection ( 1) Packages: Guide Package Description Part Number Design/Development Boards Evaluation Boards cw 64-pin plastic shrink DIP µPD7821X EB-78210-PC DDK-78K2 DW 64-pin ceramic shrink DIP with window GC-3B8 64-pin ceramic plastic miniflat (14mm x 14mm µPD7822X EB-78220-PC DDK-78K2 GF-3BE GJ-SBG GJ-SBJ GQ GQ-36 KA 64-pin plastic miniflat (Resin Thickness: 2.7mm) 94-pin plastic miniflat 74-pin plastic miniflat (20mm x 20mm) 64-pin plastic QUIP 64-pin plastic QUIP 44-pin ceramic LCC with window µPD7831X µPD7832X Notes: EB-78320-PC DDK-78310A II (1) The following relocatable packages are available: KB 64-pin ceramic LCC with window L 44-pin PLCC (.uPD71 P301 L) RA78K2-D52 (MS-DOS®) Relocatable assembler 68-pin PLCC (.uPD78213/214/P214L, (VAX/VMSr•) RA78K2-VVT1 for 78XX series µPD78320/322L) 84 pin PLCC (.uPD78220L, µPD78224L) RA78K3-D52 (MS-DOS) Relocatable assembler RQ 64-pin ceramic QUIP with window RA78K3-VVT1 (VAX/VMS) for 78XX series ( 2) By using the specified adapter, the PG-1500 EPROM program- mer can be used to program the EPROM/OTP device. (2) The ST78K2 structured assembler processor is provided with ( 3) The EP-78210GJ is a 68-pin PLCC to 74-pin miniflat package RA78K2. The ST78K3 structured assembler preprocessor is pro- adapter for use with the EP-78210L emulation probe. vided with RA78K3 and CC78K3. ( 4) The EP-78220GJ is a 84-pin PLCC to 94-pin miniflat package (3) The following C Compiler packages are available: adapter for use with the EP-78220L emulation probe. CCMSD-15DD-782XX (MS-DOS) For µPD783XX series ( 5) The emulation probe for the 64-pin shrink DIP package (EP- CC78K3-D52 (MS-DOS) 78310CW) is supplied with the IE. CC78K3-VVT1 0/AX!VMS) ( 6) The emulation probe for the 64-pin QUIP package (EP-78310GQ) is supplied with the IE. ( 7) There are two C Compilers for the µPD783XX devices: CC78K3 from NEC Electronics and one from Lattice Corporation. A source code debugger is included with CC78K3 package. ( 8) Please contact your NEC Sales Representative for further infor- mation. ( 9) Sockets for the µPD71P301KA (44-pin LCC package) are available from Yamaichi (IC61-0444-030). (10) Sockets for the µPD71 P301 KB (64-pin LCC package) are MOS-DOS is a trademark of Microsoft Corporation. available from NEC Electronics (EV-9200G-64) in sets of five. VAX and VMS are trademarks of Digital Equipment Corporation. 1-33 µPD78XXX Series NEC 1-34 ~EC DSP and Speech Development Tools NEC Electronics Inc. Selection Guide DSP and Speech Development Tools Selection Guide a PG-1500 Part Number Evaluation Assembler Simulator EPROM/OTP Adapter (Note 7) Emulator Board (Note 1) (Note 2) Device (Note 3) µPD7720AC EVAKIT-77208 ASM77 SIM77 µPD77P20D (Note 5) µPD7720AL EVAKIT-77208 (Note 4) ASM77 SIM77 µPD77P20D EVAKIT-77208 ASM77 SIM77 µPD77C20AC EVAKIT-77208 ASM77 SIM77 µPD77P20D (Note 5) µPD77C20AL EVAKIT-77208 (Note 4) ASM77 SIM77 µPD77C20ALK EVAKIT-77208 (Note 4) ASM77 SIM77 µPD77220L EVAKIT-77220 RA77230 SM77230 µPD77220R EVAKIT-77220 RA77230 SM772230 µPD77P220R PA-77P230R µPD77P220R EVAKIT-77220 RA77230 SM77230 PA-77P230R µPD77230AR EVAKIT-77230 DDK-77230 RA77230 SM77230 µPD77P230R PA-77P230R µPD77P230R EVAKIT-77230 DDK-77230 RA77230 SM77230 PA-77P230R µPD77C25C EVAKIT-77C25 RA77C25 µPD77P25C/D PA-77P25C µPD77C25L EVAKIT-77C25 (Note 4) RA77C25 µPD77P25L µPD77P25C EVAKIT-77C25 RA77C25 PA-77P25C µPD77P25D EVAKIT-77C25 RA77C25 PA-77P25C µPD77P25L EVAKIT-77C25 (Note 4) RA77C25 µPD7755C NV-300 System EB-7759 µPD17P56C PA-77P56C µPD7755G NV-300 System EB-7759 µPD77P56G PA-77P56C (Note 6) µPD7756C NV-300 System EB-7759 µPD77P56C PA-77P56C µPD7756G NV-300 System EB-7759 µPD77P56G PA-77P56C (Note 6) µPD77P56C NV-300 System EB-7759 PA-77P56C µPD77P56G NV-300 System EB-7759 PA-77P56C (Note 6) µPD7757C NV-300 System EB-7759 µPD7757G NV-300 System EB-7759 (Note 6) µPD7759C NV-300 System EB-7759 µPD7759GC NV-300 System EB-7759 µPD77810L IE-77810 RA77810 µPD77810R IE-77810 RA77810 50148 1-35 DSP and Speech NEC Notes: (1) The following assemblers are available: Part Number Description ASM77-D52 Assembler for 7720 (MS-DOS®) RA77C25·D52 Assembler for 77C25 (MS-DOS) RA77C25-WT1 Assembler for 77C25 NAX/VMS ™) RA77230-D52 Assembler for 77230 (MS-DOS) RA77230-WT1 Assembler for 77230 NAX/VMS) RA77230-VXT1 Assembler for 77230 NAXJUNIX ™) 4.2 BSD or Ultrix 1 ") (2) The following simulators are available: Part Number Description SIM77-D52 Simulator for 7720 (MS-DOS) SM77230-WT1 Simulator for 77230 NAX/UNIX) . SM77230·VXT1 Simulator for 77230 NAX/UNIX 4.2 BSD or Ultrix) (3) By using the specified adapter, the NEC PG-1500 EPROM pro- grammer can. be used to program the EPROM/OTP device. (4) Please check with your NEC Sales Representative on the avail- ability of a PLCC emulation probe. (5) The ~PD77P20D can be programmed using the EVAKIT-77208. (6) The EB-7759 comes with an emulation probe for only the 18-pin DIP. (7) Packages: Package Description c 18, 28, or 40-pin plastic DIP D 28-pin ceramic DIP G 24-pin plastic SOP GC 52-pln plastic miniflat L 44-or 68-pin PLCC LK 28-pin PLCC A 68-pin ceramic PGA MS-DOS is a registered trademark of Microsoft Corporation. VAX, VMS, and Ultrix are trademarks of Digital Equipment Corporation. UNIX is a trademark of AT&T Bell Laboratories. 1-36 t\'EC PG-1500 Programming Adapters NEC Electronics Inc. Selection Guide Socket Adapters and Adapter Modules Socket Adapter Adapter Module Socket Adapter Adapter Module Target Chip (Note 1) (Note 2) Target Chip (Note 1) (Note 2) Standat'd 27XXX EPROM Devices ,uPD27256 (12.5 V) ,uPD27256 (21 V) 027A Board 027A Board µPD75XXX Series Devices (cont) ,uPD75P316GF ,uPD75P328GC PA-75P308GF PA-75P328GC 04A Board 04A Board II ,uPD27C256 027A Board ,uPD75P402C (Note 3) 027A Board ,uPD27C256A 027A Board ,uPD75P402CT PA-75P402CT 027A Board ,uPD27C512 027A Board ,uPD75P402G B PA-75P402GB 027A Board ,uPD27C1000 027A Board ,uPD75P516GF PA-75P516GF 04A Board ,uPD27C1001 027A Board ,uPD75P516K PA-75P516K 04A Board ,uPD27C1024 027A Board µPD78XX Series Devices µPD75XX Series Devices ,uPD78CP14CW PA-78CP14CW 027A Board ,uPD75P54CS PA-75P54CS 04A Board ,uPD78CP14DW PA-78CP14CW 027A Board ,uPD75P54G PA-75P54CS 04A Board ,uPD78CP14GQ PA-78CP14GQ 027A Board ,uPD75P56CS PA-75P56CS 04A Board ,uPD78CP14GF PA-78CP14GF 027A Board ,uPD75P56G PA-75P56CS 04A Board ,uPD78CP14L PA-78CP14L 027A Board ,uPD75P64CS PA-75P54CS 04A Board ,uPD78CP14R PA-78CP14GQ 027A Board ,uPD75P64G PA-75P54CS 04A Board 11PD7BXXX Series Devices ,uPD75P66CS PA-75P56CS 04A Board ,uPD71 P301 GF PA-71 P301 GF 027A Board ,uPD75P66G PA-75P56CS 04A Board ,uPD71 P301 GQ PA-71 P301 GQ 027A Board µPD75XXX Series Devices ,uPD71 P301 KA PA-71 P301 KA 027A Board ,uPD75P008CU PA-75P008CU 04A Board ,uPD71 P301 KB PA-71 P301 KB 027A Board ,uPD75P008DU PA-75P008CU 04A Board ,uPD71P301L PA-71P301L 027A Board ,uPD75P008GB PA-75P008CU 04A Board ,uPD78P214CW PA-78P214CW 027A Board ,uPD75P028CW PA-75P028CW 04A Board ,uPD78P214GC PA-78P214GC 027A Board ,uPD75P028GC PA-75P028GC 04A Board ,uPD78P214GJ PA-78P214GJ 027A Board ,uPD75P108BCW PA-75P108CW 04A Board ,uPD78P214GQ PA-78P214GQ 027A Board ,uPD75P108CW PA-75P108CW 04A Board ,uPD78P214L PA-78P214L 027A Board ,uPD75P108DW PA-75P108CW 04A Board ,uPD78P224GJ PA-78P224GJ 027A Board ,uPD75P108BGF PA-75P116GF 04A Board ,uPD78P224L PA-78P224L 027A Board ,uPD75P108G PA-75P116GF 04A Board ,uPD78P312ACW PA-78P312CW 027A Board ,uPD75P116CW PA-75P108CW 04A Board ,uPD78P312ADW PA-78P312CW 027A Board ,uPD75P116GF PA-75P116GF 04A Board ,uPD78P312AGF PA-78P312GF 027A Board ,uPD75P216ACW PA-75P216ACW 04A Board ,uPD78P312AGQ PA-78P312GQ 027A Board ,uPD75P308GF PA-75P308GF 04A Board ,uPD78P312AL PA-78P312L 027A Board ,uPD75P308K PA-75P308K 04A Board ,uPD78P312AR PA-78P312GQ 027A Board 50147 1-37 PG-1500 NEC Socket Adapters and Adapter Modules (cont) Socket Adapter Adapter Module Target Chip (Note 1) (Note 2) V-S.ries Devices µPD70P322K PA-70P322L 027A Board Digital Signal Processors µPD77P56C PA-77P56C 04A Board µPD77P56G PA-77P56C 04A Board µPD77P25C PA-77P25C 027A Board µPD77P25D PA-77P25C 027A Board µPD77P230R PA-77P230R 027A Board Notes: (1) All socket adapters must be purchased separately. (2) The 27A and 04A Adapter Modules are shipped with the PG-1500. (3) The µPD75P402C does not require a programming socket adapter. It can be plugged directly into the 027A Board. 1-38 NEC DIGITAL SIGNAL PROCESSORS E Digital Signal Processors NEC Section 2 Digital Signal Processors µPD77C20A/7720A/77P20 2-1 Digital Signal Processor µPD77C25/77P25 2-25 Digital Signal Processor µPD77220 2-51 24-Bit, Fixed-Point Digital Signal Processor µPD77230/77P230 2-81 32-Bit, Floating-Point Advanced Signal Processor µPD77810 2-107 Modem Digital Signal Processor µPD7281 2-169 Image Pipelined Processor µPD9305 2-211 Memory Access and General Bus Interface for the µ.PD7281 NEC µPD77C20A/7720A/77P20 NEC Electronics Inc. DIGITAL SIGNAL PROCESSOR Description D External maskable interrupt D Four-level stack for subroutines and/or interrupt The µPD77C20A, µPD7720A, and µPD77P20-three D Multiple 1/0 capabilities signal processing interface (SPI} chips that are func- - Serial: 8 or 16-bit (480 ns/bit) tionally the same-are advanced architecture micro- - Parallel: 8 or 16-bit computers optimized for signal processing algorithms. -DMA Their speed and flexibility allow these SPls to effi- D Compatible with most µP's, including: ciently implement signal processing functions in a -µPD8080 wide range of environments and applications. -µPD8085 The 7720A SPI, a revision of the 7720, the original mask - µPD8086/88 ROM chip, uses a third less power than the 7720. - µPD780 (Z80®) D Single +5-volt power supply The 77C20A is a CMOS pin-for-pin compatible version D Extended temperature (77C20A) of the NMOS version, 7720A. This advanced architec- D NMOS technology (7720A, 77P20) ture CMOS microcomputer has power requirements 80 D Extended temperature range (7720A) percent less than the 7720A. This low-power feature Z80 is a registered trademark of Zilog Corporation. makes the 77C20A appropriate for portable applica- tions and other designs requiring low power and low heat dissipation. Applications The 77P20 is an ultraviolet erasable and electrically D Portable telecommunications equipment programmable (EPROM) version of the 7720A. Program D Digital filtering and data ROM, masked for the 7720A, are implemented D High-speed data modems in EPROM for the 77P20. The 77P20 is useful in proto- D Fast Fourier transforms (FFT) type applications or in systems where product quanti- D Speech synthesis and analysis ties are insufficient for masked ROM development. D Dual-tone multifrequency (DTMF) transmitters/receivers Since the inception of 7720 and its companion EPROM D Equalizers version, 77P20, there have been several mask revisions D Adaptive control to improve manufacturability and function. A 77P20 D Numerical processing must always be used to verify the functions of a user's system before ROM code for 77C20A or 7720A is sub- Performance Benchmarks mitted, but certain early versions of 77P20 must not be used for final verification. Refer to the section on D Second-order digital filter (biquad): 2.21 µs µPD77P20 for details. D Sin/cos of angles: 5.16 µs D µ/A law to linear conversion: 0.49 µs Features D FFT - 32-point complex: 0.7 ms D Low-power CMOS: 24 mA typical current - 64-point complex: 1.6 ms use (77C20A) D Fast instruction execution: 240 ns with 8.333-MHz Ordering Information clock Normal D 16-bit data word Max Frequency Temperature D Multi-operation instructions for fast program Part Number Package Type of Operation Range execution: multiply, accumulate, move data, adjust µPD77C20AC 28-pin plastic DIP 8.33 MHz -40 to +85°C memory pointers-all in one instruction cycle µPD77C20ALK 28-pin PLCC D Modified Harvard architecture with three separate memory areas µPD77C20AL 44-pin PLCC - Program ROM (512 x 23 bits) µPD7720AC 28-pin plastic DIP 8.33 MHz -10 to +70°C - Data ROM (510 x 13 bits) µPD7720AL 44-pin PLCC - Data RAM (128 x 16 bits) µPD77P20D 28-pin cerdip 8.196 MHz -10 to +70°c D 16 x 16-bit multiplier; 31-bit product with every instruction D Dual 16-bit accumulators 50161 2-1 µPD77C20A/7720A/77P20 NEC Pin Configurations 28-Pin PLCC 28-Pln Plastic DIP a:~ IEe 13: @ @ en @ ~ lmlz NC/Vpp/Vee [1] Vee DACK Ao l() oe:t CW') C\I T""" om C\I N C\I C\I C\I C\I T""" DRO cs cs 26 18 SCK Po RD Ao 27 17 INT P1 WR Vee 28 16 AST Do SORO D1 so NC 1 0 15 CLK DACK 2 14 GND D2 SI DRQ 3 13 D7 D3 SOEN 4 Po 12 De D4 SIEN Ds SCK ll') '° ,... co Cl) ~ ;:::: Ds INT .,.... a.,.... C\I oo ~ l() 0..000000 D1 RST 49NR-494A GND CLK Notes: [1] No connection: 11e20A, 7720A 44-Pin PLCC Must be connected for EPROM version; consult 77P20 specifications. 0 1~ 49-000905A u 0 u u oa:ci:uooUo(J)U z ~ c c z > > z c( u z Pin Identification ,.... NC ,.... 0,.... N N N N N C') "" N ll') N D (Note 2) ---·---···------- (1) Vpp=21 ±0.5V DACK pulse width too (2) For K-level parts, Vpp max= (Vee - 0.6 V) + 0.25 V 77C20A 250 ns Vpp min =(Vee - 0.6 V) - 0.25 V 7720A 250 2000 ns For all other step levels: Vpp max= Vee + 0.25 V Vpp min =Vee - 0.85 V 77P20 250 50,000 ns SCK cycle time tscv 480 DC ns Capacitance SCK pulse width tscK 230 ns Limits Test SCK rise/fall time tRscltFsc 20 ns Parameter Symbol Min Max Unit Conditions SORO delay IORQ 30 150 ns CL= 100 pF CLK,SCK C 20 pF fc = 1 MHz capacitance SOEN hold time tcso 30 ns Input pin capacitance C1N 10 pF SOEN setup time tsoc 50 ns Output pin capacitance Gour 20 pF SO delay from SCK tocK 150 ns =low SO delay from tozRa 20 300 ns (Note 2) AC Characteristics SCK before 1st bit TA= -10 to +70°c; Vee= +5 v ±5% (Note 3) Limits SO delay from SCK tozsc 20 300 ns (Note 2) Test Parameter Symbol Min Typ Max Unit Conditions SO delay for SOEN tozE 20 180 ns (Note 2) CLK cycle ti me cv 77C20A, 7720A 120 2000 ns SOEN to SO floating IHZE 20 200 ns (Note 2) 77P20 122 2000 ns SCK to SO floating tHzsc 20 300 ns (Note 2) with SORO high CLK pulse width o 60 ns (Note 4) SO delay from SCK IHZRQ 70 300 ns (Note2) CLK rise time R 10 ns (Note 1) for last bit CLK fall time F 10 ns (Note 1) SIEN, SI setup time toe 55 ns (Note 2) Add~ss setup time tAR ns SIEN, SI hold time tco 30 ns for RD Address hold time IRA ns for RD RD pulse width IRR 250 ns 2-11 µPD77C20A/7720A/77P20 NEC AC Characteristics (cont) Write Operation Limits Test Typ Ao, CS, DACK Parameter Symbol Min Max Unit Conditions Po. P1 delay top A Figure 12. Serial Input SCK SI 49-000923A Serial Timing Example change until tco after this first rising edge of SCK, as shown by case 2 in figure 8. Figure 13 shows serial timing of cascaded SPls with a common SCK. SO from the first SPI equals SI of the toRa(max) + tPHL + toc(min) :S tscv(min) second, and the first SPl's SORO inverts to become tpHL(max) :S tscv(min) - toc(min) - toRa(max) SIEN of the second. SOEN of the first SPI is always :S 480 - 55 - 150 asserted. :S 275 ns (readily achieved by 74LS14, for example) When cascading two SPls in the described configura- tion, most of the timing involved is directly copied from (2) SORO (1) is released toRa after the last useful the case of serial output with SOEN always enabled rising edge of SCK, and is inverted (inverter has (figure 13). It must be shown that the results will be tPHL delay time) to become SIEN (2), which must suitable for the serial input timing of the second SPI. remain stable tco after the rising edge of SCK. toRa(min) + tPLH(min) ::'.:: tco(min) (1) SORO (1) rises toRa after a rising edge of SCK, and tPLH(min) ::'.:: tco(min) - toRa(min) it is inverted (inverter has tPHL delay time) to :::::: 30 -30 become SIEN (2), which must be stable toe before ::'.:: O (no problem, assuming the next rising edge of SCK. It also must not causality) Note: This also shows tpHL(min):::::: Ofor the rising edge of SORO. 2-15 µPD77C20A/7720A/77P20 NEC Figure 13. Serial Timing Example SCK (1&2) SOEN-.:.~~~.:..+-~~~~~~~~~~P--+-~~-+~~~­ (1) SORQ (1) SIEN (2) S0(1) = Sl(2) 49-000924A (3) SO (1) is valid tocK after a falling edge of SCK; Use of Evakit-7720 since it becomes SI (2), it must be valid toe before The following sections describe electrical conditions the next rising edge of SCK. that are required for programming the 77P20. However, tocK(max) + toc(min) :S tscK(min) the Evakit-7720, NEC's hardware emulator develop- 150 + 55 ::; 230 ment tool for the 77C20A/7720A/77P20, meets the 205 :S 230 (this condition is electrical and timing specifications presented below. satisfied) When the Evakit-7720 is used for programming 77P20, (4) SO (1) remains valid tHZRQ after the last useful all data transfers and formatting are handled auto- rising edge of SCK; since it becomes SI (2), it must matically by Evakit's monitor program. Please refer to remain valid tco after this rising edge of SCK. the Evakit-7720(8) User's Manual for programing procedures. tHzRa(min) ~ tco(min) 70 ~ 30 (this condition is satisfied) The information presented below in the sections on Configuration, Operation, and Programming (and the Note: The above calculations may need to be various subsections) is required only for users who do adjusted for rise and fall times, since tscv and tscK are measured for midpoints of wave NOT intend to use an Evakit to program the 77P20. slopes. Cont iguration µPD77P20 UV Erasable EPROM Version Data transfer for programming and reading the internal Function ROM is partitioned into three bytes for each 23-bit wide instruction location and into two bytes for each 13-bit The 77P20 operates from a single +5-volt power supply wide data location. Partitioning of data transfer into and can accordingly be used in any 77C20A/7720A and out of the data port is shown in figure 14. masked ROM application. Figure 14. Instruction ROM Format M L s s B B j 22ji*o j19j1a j11j1s j1s j14j13j12 j11 I10 I 9 I s I1 I s I s j 4 I 3 I2 I 1 Io l 49-0009258 2-16 t\'EC µPD77C20A/7720A/77P20 Instruction ROM Operating Modes The instruction ROM data is transferred through the In order to read or write the instruction or data ROMs, data port as a high byte, middle byte, and low byte as the mode of operation of the 77P20 must be initially set. shown in figure 15. Bit 7 of the middle byte should be At the RST trailing edge, the RD, WR, and CS should be assigned a value of zero. Data is presented to the data logical zero and the DACK, A0 , and SI signals should be port in a bit-reversed format. The LSB through the MSB set to determine the mode of operation accordingly, as of an instruction ROM byte is applied to the MSB set out in table 14. through the LSB of the data port, respectively. Table 14. µPD77P20 Operation Mode Data ROM Figure 16 shows the data ROM format. The data ROM data is transferred through the data port as a low byte and a high byte as shown in figure 17. Bits 0, 1, and 2 of DACK O 0 Ao 0 SI 0 1 Write mode instruction and data ROM Read the instruction ROM E 0 Read the data ROM the low byte should be assigned a value of zero. Data is presented to the data port in corresponding order. The MSB through the LSB of a data ROM byte is applied to Once set, the 77P20 will remain in the selected mode. the MSB through the LSB of the data port, respectively. A reset is required to transfer to another mode. Initially and after each erasure, all bits of the 77P20 are Write Mode in the zero state. The individual instruction ROM and data ROM bytes Figure 15. Transfer of Instruction ROM Data are specified by control signals RD, A 0 , SI, and INT as set out in table 15. Before writing the EPROM location, Data Port 7 6 5 4 3 2 1 o the bytes should be loaded accordingly. High Byte I1s I1s I11I1a I19 I20 I21 I22 I Table 15. Write Mode Specification of ROM Bytes iiii Ao SI INT 0 1 Write instruction byte, high 0 0 Write instruction byte, middle 0 1 1 Write instruction byte, low 0 0 Write data byte, low Note: * = Set to zero as dummy data. 0 Write data byte, high 49-000926A Read Mode Figure 16. Data ROM Format The instruction ROM and data ROM bytes are specified M L by the control signals RD, A0 , SI, and INT as set out in s s table 16. Reading is accomplished by setting the B B control signals accordingly. Table 16. Read Mode Specification of ROM Bytes 49-000927A iiii Ao SI INT 0 O 0 1 Read instruction byte, high Figure 17. Transfer of Data ROM Data 0 0 Read instruction byte, middle DataPort 7 6 5 4 3 2 1 O 0 0 Read instruction byte, low 0 0 Read data byte, high and low The instruction ROM and data ROM are addressed by the 9-bit program counter and the 9-bit ROM pointer respectively. The PC is reset to OOOH and is automati- Note: * = Set to zero as dummy data. cally incremented to the end address 1FFH. The RP is 49-000928A reset to 1FFH and is automaticaly decremented to OOOH. 2-17 µPD77C20A/7720A/77P20 t\'EC Erasing 11,776 bits of instruction EPROM and also for the 6630 bits of data EPROM is 26 seconds. Data is entered by Programming can only occur when all data bits are in programming a high (1) level in the chosen bit loca- an erased or low (O} level state. Erase 77P20 pro- tions: Both instruction ROM and data ROM should be grammed data by exposing it to light with wavelengths programmed since they cannot be erased indepen- shorter than approximately 4,000 angstroms. Note that dently. Both instruction ROM and data ROM pro- constant exposure to direct sunlight or room level gramming modes are entered in the same manner. fluorescent lighting could erase the 77P20. Conse- quently, if the 77P20 will be exposed to these types of The device must be reset initially before it can be lighting conditions for long periods of time, mask its placed into the programming mode. After reset, the WR window to prevent unintentional erasure. signal and all other inputs (RD, CS/PROG, DACK, A 0 , SI, and INT) should be a TTL low (0) signal tRs prior to The recommended erasure procedure for the 77P20 is the falling edge of RST. WR is then held for tRH before exposure to ultraviolet light with wavelength of 2537 being set to a TTL high (1) level signal. The device is angstroms. The integrated dose (i.e., UV intensity x now in a programming mode and will stay in this mode, exposure time) for erasure should not be less than allowing ROM locations to be sequentially pro- 15 W·s/cm2. The erasure time is approximately 20 grammed. minutes using an ultraviolet lamp with a power rating of 12,000 µW/cm2. Programming Mode-Instruction ROM. Instruction During erasure, place the 77P20 within 1 inch of the ROM locations are sequentially programmed from lamp tubes. If the lamp tubes have filters, remove the address OOOH to address 1FFH. The location address is filters before erasure. incremented by the application of CLK for a duration of tcy. Data bytes for each location as specified by control Programming signals RD, Ao, SI, and INT (table 15) are clocked into the device by the falling edge of RD. Programming of the 77P20 is achieved with a single 50-ms TTL pulse. Total programming time for the Figure 18. Programming Mode of Instruction ROM IRPR ~I PROG~·t--------1---------------+------t------- DB0- DB7-- - - - - -. - - - - - - - - - - - Middle Low -----< IPRV High } IRD - - ---------Vpp Vpp -----Tr------------------------------- ,__~------Vee ---------Ac:i~s---------o---001H-1FFH 49-000929C 2-18 NEC µPD77C20A/7720A/77P20 After the three bytes have been loaded into the device, decremented to program the next location. Figure 19 Vpp is raised to 21 V ±0.5 V, tvs prior to CS/PROG shows programming mode of data ROM timing. transitioning to a TTL high (1) level signal. Vpp is held for the duration of tPRPR plus tPRV before returning to Read Mode. A read should be performed to verify that the Vee level. AftertPRCL the instruction ROM address the data was programmed correctly. Prior to entering can be incremented to program the next location. read mode the device must be reset. Figure 18 shows the programming mode of instruction ROM timing. Read Mode-Instruction ROM. This mode is entered by holding the WR signal at a TTL low (0) level with the El Programming Mode-Data ROM. Data ROM locations SI signal at a TTL high (1) level and all other specified are sequentially programmed from address 1 FFH to inputs (RD, CS/PROG, DACK, A0 , INT) at TTL low (0) address OOOH. The location address is decremented by levels for tcoRs prior to the falling edge of AST WR is the application of CLK for tcv- The data bytes for each then held for tRsw before being set to a TTL high (1) location as specified by control signals RD, A 0 , SI, and level. The device is now in the instruction ROM read INT are clocked into the device by the falling edge of mode and will stay in this mode until reset. RD. Instruction ROM locations are sequentially read from After the two bytes have been loaded into the device, address OOOH through 1FFH. Application of CLK for Vpp is raised to 21 V, ±0.5 V tvPR prior to CS/PROG tcv will increment the location address. The three data transitioning to a TTL high (1) level signal. Vpp is held bytes will be read as specified by the control signals for the duration of tPRPR plus tPRV before returning to RD, A 0 , SI and INT (table 16). Figure 20 shows read the Vcc level. After tPRCL the data ROM address can be mode of instruction ROM timing. Figure 19. Programming Mode of Data ROM . i--=IRST1 CLK~ ------?>------~1 RST ~------?----~~:::':~::;;;-\......l---4--.l-----4----l-----l-----------~ WR --i'>-------.. R5 DACK~:i--------l----i-----+--i------+---~---+------------- ~'>------1 Ao-----i>-------1.__---1----+--+-----+---------+------------- --i'l-------1..------1----+---.. SI ~l-------'I --t------.1 INT ~1-------1.__---1----+-JI DB0-DB7 _ _ _ _ _ _ _ _ _ _ _ _ _ - - - - Address , __ _ _ _ _ A~g~.:is---------001H-1FFH 49-000931C 2-19 µPD77C20A/7720A/77P20 NEC Figure 20. Read Mode of Instruction ROM . i--=IRST1 CLKV\ RST__, ______ _ ------11---------1 WR ------i'i------~ R5 PR~------i~------+------+--i---1-----1------+----+--------------- DACK------i).-------11-------11---+--+----+-----+-----+--------------- -------'l',___ _ _ _..._1 Ao-------'ll--------ll'-------lf---+--+----+-----+----+--------------- -------'l'l--------11r------11---+-........ 1 Sl------ii--------i -------'!).-------1 INT ----11--------11"------11---+----1 DB0-DB7 - - - - - - - - - - - - - - - - Address i-------A~~'ifs-------..---001H-1FFH 49·000931C Figure 21. Read Mode of Data ROM CS/PROG------1~-----+----+--+---+-----+-+-----+-------------- DACK ------11-------+----+-+---t...._----+-..,_---+---------------- ------1.,_--------;-------.. I Ao ------$t-------'I SI - - - f ---f1-------+.._----+---1-------+-..,_---+-------------- IRD1 INT ------11------~I ------1t-------+.._----+---tl------+--+---+-------------- IDF1 DB0-DB7 - - - - - - - - - - - - - - - '-----1----'P..-----'I -~ ~-~--c i-----A~~~'lfs------ii-.---1FEH-OOOH 49·000932C 2-20 NEC µPD77C20A/7720A/77P20 Read Mode-Data ROM. Figure 21 shows read mode of Programming Operation, data ROM timing. This mode is entered by holding the AC Characteristics WR signal at a TTL low (0) level with the Ao signal at a TA= 2s c ±5°C; Vee= 5 v ±5%; Vpp = 21 v ±0.5 v 0 TTL high (1) level and all other specified inputs (RD, Limits CS/PROG, DACK, SI, INT) at TTL low (0) levels for Test Parameter Symbol Min Typ Max Unit Conditions tcoRs prior to the falling edge of RST. WR and Ao are then held for tRsw prior to the falling edge of RST. WR CLK cycle time tcv 240 ns and Ao are then held for tRsw before being set to a TTL CLK setup time tcLR µS high (1) level and TTL low (0) level, respectively. The to RiH device is now in the data ROM read mode and will stay CLK hold time µS in this mode until it is reset. from RST ! Data ROM locations are sequentially read from address CLK hold time tPRCL 200 ns from PROG! 1FFH through OOOH. Application of CLK for tcv will decrement the location address. After the address has Control signal set-up tcoRs µS time to RST! been decremented, the low byte of the current location will be available at the data port subsequent to a tcLo WR hold time tRsw 6 µS delay. Application of RD will present the high byte tRo 1 from RST! from the falling edge of the RD pulse. RD is then Data set-up time tDRIO µS applied for tvR to complete reading of the current from R5! location. Data hold time tRD 100 ns from R5! Read Operation, AC Characteristics RD pulse width µs TA= 25°C ±5°C; Vee= 5 V ±5%; Vpp =Vee+ 0.25 V max Vpp =Vee - 0.85 V min SI, INT set-up tcoR 100 ns time from R!Jt Limits Test SI, INT hold 100 ns Parameter Symbol Min Typ Max Unit Conditions time from R5! Data access time tcLD µS RD set-uf time 100 ns from CLK to PROG Data delay time tcoD µS RD hold time 2 µS from SI, INf from PROG! Data float time tcoDF ns Vpp set-up time tvPR 2 µS from SI, INf to PROGl SI, INT pulse width tcoco µS Vpp hold time 2 µS from PROG! RD recovery time tRv1 500 ns Data access time tRD1 150 ns RST pulse width tRST1 tcv from RiH RST setup time tRs µS Data float time tDF1 10 ns PROG pulse width tpRPR 45 50 55 ms from R5t 2-21 µPD77C20A/7720A/77P20 NEC Operation Mode Pin 1 Connection The 77P20 may be utilized in an operation mode after The K mask version requires that the programming the instruction ROM and data ROM have been pro- voltage Vpp be supplied in a different manner than for grammed. Since it was first introduced in 1982, the all later versions, as shown in figure 22. A silicon 77P20 has undergone several mask revisions to junction diode of 0.6 V forward voltage (VF) should be improve manufacturability and/or function. And since used. R should be 800 to 1800 n to satisfy the Vpp and the purpose of the 77P20 is to run any program that lpp requirements. may be programmed in the masked ROM 77C20A/ In all mask versions other than K, pin 1 must be 7720A, it is important to know how to determine the connected directly to Vee- step level, and the differences between them. Development Tools Step Level For software development, assembly into object code, The markings on the µPD77P20 package consist of and debugging, an absolute assembler and simulator three lines, as follows: are available. The ASM77 Absolute Assembler and NEC JAPAN Manufacturer SIM77 Simulator for analyzing development code and 077P20D Part number 1/0 timing characteristics are available for systems nnnnXnnnn Date code supporting CP/M® and CP/M-86®, ISIS-11®, or MS-DOS® operating systems. Additionally, the ASM77 In the date code, "X" identifies the step level of the part. Absolute Assembler is offered in Fortran source code Parts marked with step level K, E, or P should not be for mini and main frame computer systems. used for final system test by customers who are plan- Once software development is complete, the code can ning to submit code for the masked ROM 77C20A/ be completely evaluated and debugged in hardware 7720A. with the Evakit-7720 Evaluation System. The Evakit On all other77P20 stepping versions, a slight functional provides true in-circuit real-time emulation of the SPI change was made, and the change is incorporated in for debugging and demonstrating your final system the 77C20A/7720A. The change allows the serial clock design. Code may be down-loaded to the Eva kit from a (SCK) to run asynchronously with CLK. Specified ver- development system via an RS232 port using the EVA sions of 77P20 (i.e. K, E, P) and all Evakit-7720s and communications program. This program is available in Evakit-7720Bs (Evaluation Systems for 77C20A/ executable form for ISIS-11 systems and many CP/M, 7720A/77P20) require that SCK run synchronously CP/M-86, and MS-DOS systems. The EVA communica- with CLK. tions source code is also available for adapting the program to other systems. Because this functional change results in a slight change in internal serial timing, it is mandatory that The Evakit also serves to program the 77P20, a full- code to be submitted for 77C20A/7720A be verified in speed EPROM version of the SPI. A demonstration customer's system using versions of 77P20 other than mask ROM chip, containing some common digital fil- those listed above (i.e. K, E, P). tering routines, including N-stage llR (biquadratic) and FIR (transversal filters), is available to test hardware Figure 22. Vpp Circuitry for K Mask Version interfaces to the SPI. CP/M and CP/M-86 are registered trademarks of Digital Research R Corp. ISIS-11 is a registered trademark of Intel Corp. MS-DOS is a registered trademark of Microsoft Corp. V PP = Vcc - (0.6 ± 0.25)V lpp Min= 0.5mA Max= 3.5mA 49·000933A 2-22 NEC µPD77C20A/7720A/77P20 Further operational details of the SPI can be found in Figure 25. Signal Processing System Using Cascaded theµPD77C20A/7720A/77P20 Signal Processing Inter- SP/s and Serial Communication face Design Manual. Operation of the SPI development tools is described in the Absolute Assembler User Manual, the Simulator Operating Manual, and Evakit- 7720 User's Manual. System Configuration Figures 23, 24, 25, and 26 show typical system applica- tions for the 77C20A/7720A/77P20 SPI. Figure 23. Spectrum Analysis System 49-000937A Sensor SPI P Product Example Figure 26. Signal Processing System Using SP/s as a Microphone Thermal .\ {. Complex Computer Peripheral Pressure Light ·..:··.....···.. : Band-limiting Freq- Filter 49-000935A Figure 24. Analog-to-Analog Digital Processing System Using a Single SP/ Analog SPI In DACK(n) 49-00093BA 49-000936A 2-23 µPD77C20A/7720A/77P20 NEC t-IEC µPD77C25/77P25 NEC Electronics Inc. Digital Signal Processor Description D All instructions execute in one instruction cycle D Drop-in compatible with TheµPD77C25 andµPD77P25 signal processing inter- µPD77C20A/7720A/77P20 face (SPI) chips are significant upgrades to theµPD7720 D 16-bit data word -the original member of NE C's family of digital signal D Multi-operation instructions for fast program processors. Designated the "SPI PLUS" (SPI+), these execution: any part, any combination, or all of the chips execute instructions twice as fast as the 77C20A/ following operations may constitute one 7720A. Additional instructions allow the SPI+ to execute common digital filter routines more efficiently and hence at more than twice the speed of a 7720 implementation. instruction that executes in 122 ns. - Load one multiplier input - Load the other multiplier input - Multiply (automatic) E In addition to doubled execution speed, the SPI+ has - Load product to output registers (automatic) four times the instruction ROM space and twice the - Add product to accumulator data ROM and RAM space of the 7720. Real savings are - Move RAM column data pointer now possible, especially where one 77C25 can do the - Move RAM row pointer work of and replace two or more 7720s. - Move data ROM pointer - Return from subroutine The external clock frequency (8.3 MHz maximum) D Modified Harvard architecture with three separate remains the same as for 77C20A/7720A while the memory areas internal instruction execution speed is doubled. For - Program ROM (2048 x 24 bits) most applications, the 77C25A/77P25 is plug-in com- - Data ROM (1024 x 16 bits) patible with the 77C20A/7720A/77P20. - Data RAM (256 x 16 bits) The feature that distinguishes digital signal processing D 16 x 16-bit multiplier; 31-bit product with every (DSP) chips from general-purpose microcomputers is instruction the on-chip multiplier, necessary for high-speed signal D Dual 16-bit accumulators processing algorithms. The SPI+ multiplier is very D External maskable interrupt sophisticated, especially for a low-cost DSP chip, D Four-level stack for subroutines and/or interrupt since both multiplier inputs can be loaded simultane- D Multiple 1/0 capabilities ously from two separate memory areas. These loading - Serial: 8 or 16-bit (244 ns/bit) operations are only two of nine operations that can - Parallel: 8 or 16-bit occur during one 122-ns instruction cycle. (On com- -OMA petitive DSP chips, such operations require separate D Compatible with most µPs, including: instructions). For a typical DSP filter application -µPD8080 involving many successive multiplications, the SPI+ -µPD8085 provides a new multiplication product for addition to a - µPD8086/88 sum of products every 122 nanoseconds. Additionally, - µPD780 (Z80®) during the same instruction, memory data pointers are - µPD78xx family manipulated, and even a return from subroutine may D One-time programmable (OTP) version available be executed. in a 28-pin plastic DIP or a 44-pin PLCC D Single +5-volt power supply The µPD77C25 is the mask ROM version and Z80 is a registered trademark of Zilog Corporation. µPD77P25D is the UVEPROM version. TheµPD77P25C/ 77P25L are the one time programmable (OTP) EPROM Applications device versions. All versions are CMOS and functionally identical. D Portable telecommunications equipment D Digital filtering Table 1 compares SPI+ chips with SPI chips. D High-speea data modems D Fast Fourier transforms (FFT) D Speech synthesis and analysis Features D Dual-tone multifrequency (DTMF) D Low-power CMOS: 25 mA typical current use transmitters/receivers (77C25) D Equalizers D Fast instruction execution: 122 ns with 8.192 MHz D Adaptive control clock D Numerical processing NECEL-001050 2-25 µPD77C25/77P25 NEC Performance Benchmarks Since the 77C25 executes an instruction in one external clock cycle (versus two cycles of the same 8.192-MHz D Second-order digital filter (biquad): 1.1 µs clock for 77C20A), the 77C25 may be substituted for a D Sin/cos of angles: 2.58 µs 77C20A (or 7720A or 77P20) in a circuit without D µ/A law to linear conversion: 0.24 µs modification of that circuit. Hardware/software that D FFT implements data transfers-both serial and parallel- - 32-point complex: 0.35 ms between the SPI+ and other devices in an existing 7720 - 64-point complex: 0.8 ms design should use the handshake protocol described more fully in the 77C25 User's Manual. Ordering Information Normal Pin Configurations Temperature Part Number Package Type ROM Range 28-Pln DIP µPD77C25C 28-pin plastic DIP Mask -40 to +85°C µPD77C25L 44-pin PLCC NCNppNcc [1) Vee µPD77P25C 28-pin plastic DIP OTP -10 to +70°C DACK Ao DRQ 3 cs µPD77P25D 28-pin ceramic DIP UV EPROM Po RD µPD77P25L 44-pin PLCC OTP P1 WR Do SORQ D1 so Table 1. Comparison of SPI+ and SP/ Chips D2 SI 03 9 50EN SPI+ SPI 04 SiEN 77C25/77P25 77C20A/77P20 05 SCK Technology CMOS/CMOS CMOS/NMOS Ds INT 07 RST Instruction cycle 122 ns 244 ns GND CLK Instruction ROM 2048 x 24 bits 512 x 23 bits Notes: [1] No connection: 77C25 Data ROM 256 x 16 bits 510 x 13 bits Must be connected for UVEPROM and OTP EPROM versions; consult Data RAM 256 x 16 bits 128 x 16 bits 77P25 specifications. 49NR-304A Fixed-point multiplier 16 bits x 16 bits 16 bits x 16 bits ...... 31 bits _,. 31 bits 44-Pln PLCC ALU 16 bit fixed point 16 bit fixed point Accumulator 2 x 16 bits 2 x 16 bits Host CPU interface 8-bit bus 8-bit bus ,... Serial interface One input and one One input and one "' : M ~ ., ~0 39 "',... ~ NC output output P1 0 38 RD 4 MHz 2 MHz Do 37 WR NC 36 SORO Temporary registers two one D1 35 so Additional instructions JDPLNO D2 34 NC D3 33 SI JDPLNF D4 32 NC Modification of RAM NC 31 SOEN column data pointer Os 30 SIEN M8-MF ., NC !i3 1'i "' ('") II) "',.... re 29 NC DMA mode Fully implemented Partially implemented "' "' "' "' N N .... u u "' .... cc u:..:: I/) I- :..:: Package 28-pin DIP 28~pin DIP z c c z z z ..J z ~ u Cl Cl u a: I/) 44-pin PLCC 44-pin PLCC 49-001645A Power supply 5V 5V Power consumption 50 mA (max) 40 mA (max) @8.192 MHz @8.192 MHz Power saving mode Yes No (when idle) 2-26 t-IEC µPD77C25/77P25 Pin Identification DRQ [OMA Request] Symbol Function This output signals that the SPI+ is requesting a data Ao Status/data register select input transfer on the data bus. CLK Single-phase master clock input INT [Interrupt] cs Chip select input Three-state 1/0 data bus A low-to-high transition on this pin executes a call instruction to location 100H if interrupts were previously DACK OMA request acknowledge input enabled. ORQ OMA request output INT RD RST Interrupt input General-purpose output control lines Read control signal input Reset input Po, P1 These pins are general-purpose output control lines. RD [Read Control Signal] E SCK Serial data 1/0 clock input This input latches data from the data or status register SI Serial data input to the data port where it is read by an external device. SIEN Serial input enable input RST [Reset] so Three-state serial data output This input initializes the SPI+ internal logic and sets SOEN Serial output enable input the PC to O. SORQ Serial data output request WR Write control signal input SCK [Serial Data 1/0 Clock] GND Ground When this input is high, a serial data bit is transferred. Vee +5 V power supply NC/Vpp/Vcc 77C25: no connection SI [Serial Data Input] 77P25: +12.5 V programming This pin inputs 8- or 16-bit serial data words from an 77P25: +5 V for normal operation external device such as an A/D converter. Pin Functions SIEN [Serial Input Enable] Ao [Status Data Register Select] This input enables the shift clock to the serial input This input selects data register for read/write (low) or register. status register for read (high). SO [Serial Data Output] CLK This three-state port outputs 8- or 16-bit data words to This is the single-phase master clock input. an external device such as a DIA converter. CS [Chip Select] SOEN [Serial Output Enable] This input enables data transfer through the data port This input enables the shift clock to the serial output with RD or WR. register. Do-D1 [Data Bus] SORQ [Serial Data Output Request] This three-state 1/0 data bus transfers data between This output specifies to an external device that the the data register or status register and the external data serial data register has been loaded and is ready for bus. output. SORO is reset when the entire 8- or 16-bit word has been transferred. DACK [OMA Request Acknowledge] WR [Write Control Signal] This input indicates to the SPI+ that the data bus is ready for a OMA transfer (DACK =CS and Ao= O). This input writes data from the data port into the data register. 2-27 µPD77C25/77P25 r-IEC GND NC/Vpp/Vee This is the connection to ground. This pin is not internally connected in the 77C25. In the 77P25, this pin inputs the programming voltage (Vpp) Vee [Power Supply] when the part is being programmed. This pin is the +5-volt power supply. This pin must be connected to Vee for proper 77P25 operation. Block Diagram 1--1 - DACK OMA I r+-- SOEN I Interface Logic so,1--SORQ !~I DRQ Instruction ROM Multiplier 2048 x 24 16x16-31 [EPROM)* so Serial 110 1--1 PC I SCK I SI I I I I I-SIEN LLI SI Stack------ , --~-­ 2 3 Do-D1 s s c z 0 Parallel Flag A A A A A v 110 1 0 A 1 FlagB s s c 0 B B B v 1 0 B Vp~----. 1 CLK~ RST- INT Vee- GND- Interrupt *µPD77P25 49·001643B Functional Description Memory The primary bus (unshaded in the block diagram) Memory is divided into three types: instruction ROM, makes a data path between all of the registers data ROM, and data RAM. The 2048 x 24-bit words of (including 1/0), memory, and the processing sections. instruction ROM are addressed by a 11-bit program This bus is referred to as the IDB (internal data bus). counter that can be modified by an external reset, The multiplier input registers Kand L can be loaded not interrupt, call, jump, or return instruction. only from the IDB but alternatively via buses (darkened The data ROM is organized in 1024 x 16-bit words that in the block diagram) directly from RAM to the K are addressed through a 10-bit ROM pointer (RP regis- register and directly from data ROM to the L register. ter). The RP may be modified simultaneously with Output from the multiplier in the M and N registers arithmetic instructions so that the next value is avail- is typically added via buses (shaded in the block able for the next instruction. The data ROM is ideal for diagram) to either accumulator A or B as part of a storing the necessary coefficients, conversion tables, multi-operation instruction. and other constants for signal and math processing. The data RAM is 256 x 16-bit words and is addressed through an 8-bit data pointer (DP register). The DP has extensive addressing features that operate simulta- neously with arithmetic instructions, eliminating addi- tional time for addressing or address modification. 2-28 NEC µPD77C25/77P25 Arithmetic Capabilities Stack One of the unique features of the SPl+'s architecture is The SPI+ contains a four-level program stack for its arithmetic facilities. With a separate multiplier, ALU, efficient program usage and interrupt handling. and multiple internal data paths, the SPI+ is capable of carrying out a multiply, an add or other arithmetic Interrupt operation, and a data move between internal registers The SPI+ supports a single-level interrupt. Upon sens- in a single instruction cycle. ing a high level on the INT terminal, a subroutine call to location 100H is executed. The El bit of the status ALU register automatically resets to 0, disabling the inter- The ALU is a 16-bit two's complement unit capable of executing 16 distinct operations on data routed via the P and Q ALU inputs. rupt facility until it is reenabled under program control. Input/Output E Accumulators [ACCA/ACCB] General Associated with the ALU are two 16-bit accumulators, The SPI+ has three communication ports as shown in each with its own set of flags, which are updated at the figure 1: two serial and one 8-bit parallel, each with its end of each arithmetic instruction. Table 2 shows the own control lines for interface handshaking. Parallel ACC A/B flag registers. In addition to zero result, sign, port operation is software-configurable to be in either carry, and overflow flags, the SPI+ incorporates polled mode or DMA mode. A general-purpose, two- auxiliary overflow and sign flags (SA1, SB1, OVA1, line output port rounds out a full complement of OVB 1). These flags enable the detection of an overflow interface capability. condition and maintain the correct sign after as many as three successive additions or subtractions. Serial 1/0 The two shift registers (SI, SO) are software-configur- Table 2. ACC AIB Flag Registers able to single- or double-byte transfers. The shift Flag A SA 1 SAO CA ZA OVA1 OVAO registers are externally clocked (SCK) to provide a Flag B SB1 SBO CB ZB OVB1 OVBO simple interface between the SPI+ and serial peripher- als such as AID and DIA converters, codecs, or other SPl+s. Figure 2 shows serial 1/0 timing Sign Register [SGN] When OVA 1 is set, the SA 1 bit will hold the corrected Figure 1. SP/ Communication Ports sign of the overflow. The SGN register will use SA1 to automatically generate saturation constants 7FFFH(+) SPI + or 8000H(-) to permit efficient limiting of a calculated value. The SGN register is not affected by arithmetic RD SO operations on accumulator B, but flags SB1, SBO, CB, WR SORQ ZB, OVB1, and OVBO are affected. cs Ao Multiplier DACK Thirty-one bit results are developed by a 16 x 16-bit DRQ two's complement multiplier in 122 ns. The result is INT General automatically latched to two 16-bit registers, Mand N, at the end of each instruction cycle. The sign bit and 15 higher bits are in Mand the 15 lower bits are in N;· the Reset Clock RST CLK J- Purpose Output Port 49M-000061 LSB in N is zero. A new product is available for use after every instruction cycle, providing significant advan- tages in maximizing processing speed for real-time signal processing. 2-29 µPD77C25/77P25 NEC Figure 2. Serial 110 Timing SCK ¢A ¢8 SORQ ----- '--------------.1>------------..1' - - - - - - - Ou~= _ _H.....lg.._hZ---<( [Note1] o >Q X,,__ __,X..____ 1---"' '-------'' _ _ ___, r- -- - [Note3) ---(Nextoal:~)----- --1 r---, I I Input Data 13·or5 14or6 15or7 Notes: [1) Data clocked out on falling edge of SCK. [2) Data clocked In on rising edge of SCK. [3) Broken line denotes consecutive sending of next data. 49-0009086 Parallel 1/0 Table 3. Parallel R/W Operation The 8-bit parallel 1/0 port may be used for transferring cs Ao WR RD Operation data or reading the SPI+ status as shown in table 3. 1 x x x No effect on internal operation; Do-D7 Data transfer is handled through a 16-bit data register are at high impedance levels. x x 1 (DR) that is software-configurable for double- or 0 Data from Do-D7 is latched to DR (Note 1) single-byte data transfers. The port is ideally suited for operating with 8080, 8085, and 8086 processor buses 0 1 Contents of DR are output to D0-D7 (Note 1) and may be used with other processors and computer 0 0 1 Illegal (SR is read only) systems. 0 Eight MSBs of SR are output to D0-D7 OMA Mode Option 0 x 0 Illegal (may not read and write simultaneously) Para I lel data transfers may be controlled (optionally) Notes: via OMA control lines DRQ and DACK. OMA mode (1) Eight MSBs or 8 LSBs of data register (DR) are used, depending allows high-speed transfers and reduced processor on DR status bit (DRS). The condition of DACK= O is equivalent overhead. When in OMA mode, DACK input resets to Ao= CS= o. DRQ output when data transfer is completed. Note: The ROM bit of the status register is affected by read/write operations in OMA mode the same as non-OMA mode. (In 7720 operation, ROM is not affected when in OMA mode.) 2-30 t\'EC µPD77C25/77P25 Status Register status. The RQM and DRS bits can only be affected by parallel data moves. The other bits can be written to The status register, shown in figure 3, is a 16-bit register (or read) by the SPI+ load immediate (LOI) or move in which the 8 most significant bits may be read by the (MOV) instructions. The El bit is automatically reset system's microprocessor for the latest parallel data 1/0 when an interrupt is serviced. Figure 3. Status Register MSB LSB 15 14 13 12 11 10 8 7 5 4 3 2 ROM USF1 USFO DRS DMA DRC soc SIC El P1 PO 49NR·305B E Table 4. Status Register Flags Temporary Registers Flag Description The SPI+ has two 16-bit temporary registers. RQM (Request for A read or write from DR to IDB sets RQM = 1. master) An external read (write) resets RQM = 0. Instruction Timing USF1 and USFO General-purpose flags which may be read To control the execution of instructions, the external (User flags 1 by an external processor for user-defined and 0) signaling 8-MHz clock is divided into phases for internal execu- tion. The various elements of the 24-bit instruction DRS (DR status) For 16-bit DR transfers (DRC = 0). DRS= 1 word are executed in a set order. Multiplication after first 8 bits have been transferred. DRS= 0 after all 16 bits have been transferred. automatically begins first. Also, data moves from source to destination before other elements of the OMA (DMA enable) OMA= O(Non-OMA transfer mode) OMA = 1 (OMA transfer mode) instruction. Data being moved on the internal data bus (IDB) is available for use in ALU operations (if P-select DRC (DR control) DRC = O(16-bit mode) field of the instruction specifies IDB). However, if the DRC = 1 (8-bit mode) accumulator specified in the ASL field is also specified SOC (SO control) SOC = O(16-bit mode) as the destination of the data move, the ALU operation SOC = 1 (8-bit mode) becomes a NOP, as the data move supersedes the ALU SIC (SI control) SIC = O(16-bit mode) operation. SIC = 1 (8-bit mode) El (Enable El= O(interrupts disabled) Pointer modifications occur at the end of the instruc- Interrupt) El = 1 (interrupts enabled) tion cycle after their values have been used for data moves. The result of multiplication is available at the P1, PO PO and P1 directly control the (Ports 0 and 1) state of output pins Po and P1 end of the instruction cycle for possible use in the next instruction. If a return is specified as part of an OP instruction, it is executed last. Instructions The SPI+ has three types of instructions: Load Imme- diate, Branch, and the multifunction OP instruction. Each type takes the form of a 24-bit word and executes in 122 ns. 2-31 µPD77C25/77P25 NEC An assembly language OP instruction may consist of The ALU functions operate on the value specified by what looks like one to six lines of assembly code, but all the P-select field (see table 5}. of these lines are assembled together into one 24-bit The "RT" indicates a 1-bit option in the instruction field instruction word. Therefore, the order of the six lines which causes a return from subroutine or interrupt makes no difference in the order of execution described service. above. However, for understanding SPI+ operation and to eliminate confusion, assembly code should be Besides the arithmetic functions, this instruction can written in the order described; that is: data move, ALU also (1} modify the RAM data pointer DP, (2} modify the operations, data pointer modifications, and then return. data ROM pointer RP, and (3} move data along the on-chip data bus from a source register to a destination OP/RT Instruction Field Specification register. The possible source and destination registers are listed in tables 10 and 11 respectively. Tables 6, 7, 8, Figure 4 illustrates the OP/RT instruction field specifi- and 9 show the ASL, DPL, DPH, and RPDCR fields, cation. This is really one instruction type which is respectively. capable of executing all ALU functions listed in table 6. Figure 4. OP/RT Instruction Field 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 R A p OP 0 0 p. ALU s DPL DPH • M D SRC OST Select L c R RT 0 1 Same as OP Instruction 49M-000058 Table 5. P-Select Field Mnemonic 020 ALU Input RAM RAM IDB 0 Internal data bus (Note 1) M M register N N register Notes: (1) Any value on the on-chip data bus. Value may be selected from any of the registers listed in table 6 source register selections. 2-32 ~EC µPD77C25/77P25 Table 6. ALU Field SAl SAO CA ZA OVAl OVAO Mnemonic 019 Die 017 015 ALU Function 881 SBD CB ZB OVBl OVBO NOP 0 0 0 0 No operation OR 1 OR x /:;, /:;, 0 AND 0 0 0 AND x /:;, 0 /:;, 0 XOR 0 Exclusive OR x /:;, /:;, 0 0 SUB 0 Subtract /:;, /:;, /:;, /:;, /:;, /:;, fJ ADD Add /:;, /:;, /:;, /:;, /:;, /:;, SBB 0 Subtract with borrow /:;, /:;, /:;, /:;, /:;, /:;, ADC Add with carry /:;, /:;, /:;, /:;, /:;, /:;, DEC Decrement ACC /:;, /:;, /:;, /:;, /:;, /:;, INC 0 0 1 Increment ACC /:;, /:;, /:;, /:;, /:;, /:;, CMP 0 Complement ACC (one's complement) x /:;, /:;, 0 SHR1 0 1-bit right shift x /:;, /:;, /:;, 0 0 SHL1 0 1-bit left shift x /:;, /:;, /:;, 0 0 SHL2 1 2-bit left shift x /:;, /:;, 0 0 SHL4 4-bit left shift x /:;, /:;, 0 0 XCHG 8-bit exchange x /:;, 0 /:;, 0 0 Notes: 6 May be affected, depending on the results - Previous status can be held O Reset x Indefinite Table 7. ASL Field Table 9. DPH Field Mnemonic 015 ACC Selection Mnemonic 012 011 010 Dg High DP Modify ACCA 0 ACCA MO 0 0 0 0 Exclusive OR of DPH (DP7-DP4) ACCB ACCB with the mask defined by the M1 0 0 0 4 bits (D12·D9) of the DPH field M2 0 0 Table 8. DPL Field M3 0 0 1 Mnemonic 014 013 Low DP Modify (DP3-DPol M4 0 0 DPNOP 0 0 No operation M5 0 0 DPINC 1 Increment DPL M6 0 DPDEC 0 Decrement DPL M7 0 1 1 DPCLR Clear DPL MB 0 0 0 M9 MA 0 MB 0 1 MC 0 MD 1 ME 0 MF 2-33 µPD77C25/77P25 NEC Table 10. RPDCR Field Jump/Call/Branch Mnemonic De RP Operation Figure 5 shows the JP instruction field specification. RPNOP 0 No operation Three types of program counter modifications ac- RPDEC Decrement RP commodated by the SPI+ are listed in table 12. All the instructions, if unconditional or if the specified condition Table 11. SRC Field is true, take their next program execution address from the next address field (NA); otherwise PC= PC+ 1. Mnemonic 07 05 05 04 Source Register NON/TRB 0 0 0 0 TRB (Note 1) Table 12. BRCH Field A 0 0 0 1 ACCA (Accumulator A) D20 Branch Instruction B 0 0 ACCB (Accumulator B) Unconditional jump TR 0 0 1 TR temporary register 0 Subroutine call DP 0 0 0 DP data pointer Conditional jump RP 0 0 1 RP ROM pointer RO 0 0 RO ROM output data Load Data [LOI] SGN 0 SGN sign register Figure 6 shows the LD instruction field specification. DR 0 0 0 DR data register The load data instruction will take the 16-bit value DRNF 0 0 1 DR no flag (Note 2) contained in the immediate data field (ID) and place it SR 0 0 SR status register in the register specified by the destination field (DST). SIM SI serial in MSB (Note 2) See table 13. SIL 0 SI serial in LSB (Note 3) K 0 K register L register MEM RAM Notes: (1) DR to IDB, RQM not set. In OMA, DRQ not set. (2) First bit in goes to MSB, last bit to LSB. (3) First bit goes to LSB, last bit to MSB (bit reversed). Figure 5. JP Instruction Field Specification 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +·I BRCH CND I NA 49M·000059 Figure 6. LD Instruction Field Specification + 23 22 21 20 19 18 .17 16 15 14 13 12 11 10 11 ID 9 8 7 6 5 4 3 2 1 49M-000060 2-34 NEC µPD77C25/77P25 Table 13. DST Field Table 14. BRCH/CND Fields Mnemonic D3 Dz Di Do Destination Register Mnemonic Dz1 Dzo Dig Die D17 Dis D15 D14 D13 Conditions @NON 0 0 0 0 No register JMP 1 0 0 0 0 0 0 0 0 No condition @A 0 0 ACCA (Accumulator A) CALL 1 0 0 No condition @B 0 0 1 ACCB (Accumulator B) JNCA 0 0 0 0 CA =0 @TR 0 1 TR temporary register JCA 0 0 1 0 CA=1 @DP 0 DP data pointer JNCB 0 0 0 0 0 CB =O @RP 0 1 RP ROM pointer JCB 0 0 1 1 0 CB= 1 @DR 0 1 0 DR data register JNZA 0 0 0 0 ZA=O @SR 0 1 1 SR status register JZA 0 0 0 0 0 ZA=1 @SOL 0 0 SO serial out LSB (Note 1) JNZB 0 0 0 0 ZB =O @SOM 0 SO serial out MSB (Note 2) JZB 0 0 1 1 0 ZB= 1 @K K (Mult) JNOVAO 0 0 0 0 0 OVAO = 0 @KLR 0 1 IDB - K, ROM - L (Note 3) JOVAO 0 0 0 1 0 OVAO = 1 @KLM 0 Hi RAM - K, IDB - L (Note 4) JNOVBO 0 0 0 0 OVBO = 0 @L 1 L register JOVBO 0 0 0 1 1 OVBO = 1 @TRB 0 TRB register JNOVA1 0 0 0 0 OVA1=0 @MEM RAM JOVA1 0 0 0 0 1 0 OVA1 1 Notes: JNOVB1 0 0 0 0 0 OVB1 0 (1) LSB is first bit out. JOVB1 0 0 1 1 1 0 OVB1=- 10 (2) MSB is first bit out. JN SAO 0 0 0 0 SAO= 0 (3) Internal data bus to K, and ROM to L register. JSAO 0 0 0 0 1 0 SAO= 1 (4) Contents of RAM address specified by DP6 = 1, is placed in K JNSBO 0 0 0 0 0 SBO=O register, IDB is placed in L (that is: 1, DP5, DP4, DP3-DPo). JSBO 0 0 0 0 SBO = 1 JNSA1 0 0 0 0 0 SA1 =0 JSA1 0 0 0 0 SA1 =1 JNSB1 0 0 SB1 =0 JSB1 0 1 1 0 SB1 =1 JD PLO 0 0 0 0 DPL =0 JDPLNO 0 0 0 0 DPL -cr= 0 JDPLF 0 0 0 1 DPL = FH JDPLNF 0 0 1 DPL -cr= FH JNSIAK 0 0 SI ACK= 0 JSIAK 0 1 0 SI ACK= 1 JN SOAK 0 0 0 SO ACK =0 JS OAK 0 0 1 SO ACK= 1 JNRQM 0 0 0 RQM =0 JRQM 0 0 RQM=1 2-35 µPD77C25/77P25 NEC Absolute Maximum Ratings DC Characteristics, Normal TA= 25°C unless otherwise specified TA =-40 to +85°C (µPD77C25), -10to +70°C {µPD77P25); Vee= 4.5 to 5.5 V Supply voltage, Vee -0.5 to +7.0 V Limits Vpp* -0.5 to 13.5 V Parameter Symbol Min Typ Max Unit Test Conditions Input voltage, V1 -0.5 to Voo +0.5 v -0.5 to Voo +13 v Output voltage, Vol 0.45 v loL = 2.0 mA VRsr* low Output Voltage, Vo -0.5 to v00 +o.s v Output voltage, VoH 0.7Voo v loH = 400µA Storage temperature, TsrG -65to150°C high *For µPD77P25 Input leakage luL -10 µA V1N = OV current, low Comment: Exposing the device to stresses above those listed in Absolute Maximum Ratings could cause permanent damage. The Input leakage luH 10 µA V1N = Voo device is not meant to be operated under conditions outside the current, high limits described in the operational sections of this specification. Output leakage -10 µA Vour = 0.47 v ILOL Exposure to absolute maximum rating conditions for extended current, low periods may affect device reliability. Output leakage ILOH 10 µA Vour = Voo current, high Recommended Operating Conditions Supply current Ice 25 50 mA fcLK = 8.192 MHz Limits (µPD77C25) 15 25 mA fcLK = 8.192 MHz; Parameter Symbol Min Typ Max Unit Test Conditions RST="1" Supply voltage Vee 4.5 5.0 5.5 v For normal 6 mA fcLK = 500 KHz; operation RST= "1" 5.75 6.0 6.25 v For writing* Supply current Ice 35 60 mA fcLK = 8.192 MHz Vpp• 4.5 5.0 5.5 v For reading and (µPD77P25) 20 35 mA fcLK = 8.192 MHz; normal operation RST="1" 12.2 12.5 12.8 v For writing lpp mA Input voltage, V1L -0.3 0.8 v low Input voltage, 2.2 DC Characteristics, Prom Mode V1H Voo TA= +20 to +30°C; Vee= 5.75 to 6.25 v high +0.3 v CLK input -0.3 0.5 v Limits V1LC voltage, low Parameter Symbol Min Typ Max Unit Test Conditions CLK input V1HC 3.5 Voo Input leakage IRST 30 µA VRST = 12.0 ± 0.5 V voltage, high +0.3 v current Input voltage 11.5 12.0 12.5 v For reading and Supply current Ice 60 mA VRST* for setting writing lpp 30 mA Prom Mode Operating Topr -40 25 85 oc Still air (µPD77C25) Capacitance temperature oc Still air (µPD77P25) -10 25 70 TA= 25°C; Vee= o v 20 25 30 oc For Prom Mode* Limits *For µPD77P25 Parameter Symbol Min Typ Max Unit Test Conditions CLK, SCK capacitance elf> 20 pf fc = 1 MHz Input capacitance C1N 20 pf Output capacitance Gour 20 pf 2-36 t-IEC µPD77C25/77P25 AC Characteristics TA= -40 to +85°C (µPD77C25), -10 to +70°C (µPD77P25); Vee= 4.5 to 5.5 v Limits Limits Parameter Symbol Min Typ Max Unit Test Conditions Parameter Symbol Min Typ Max Unit Test Conditions Clock Host Interface Switching CLK cycle time teve 120 122 2000 ns RD i - data to RD 100 ns delay time CLK pulse width Measuring at 2 V µPD77C25 tee 55 ns Rilt - data tFRD 10 65 ns float time µPD77P25 tee 60 ns CLK t - DRQ toe Ra 80 ns CLK rise time teR 10 ns Measuring at delay time 1and3 V CLK fall time teF 10 ns DACK i - DRQ toARQ 110 ns SCK cycle time tevs 240 244 ns delay time SCK high pulse tssH 100 ns CLK t - PO, P1 toeP 100 ns width delay time SCK low pulse tssL 100 ns Interrupt Reset Timing width RST setup time tsRSC 50 ns (Note 1) SCK rise time tsR 20 ns for CLK SCK fall time tsF 20 ns RST hold time tHeRS 50 ns (Note 1) for CLK Host Interface Timing AO, CS, DACK _ ts AR RST pulse width tRST 2 teve ns For system reset ns setup time for RD 3 teve ns For enter power saving state AO, CS, DACK_ tHRA ns hold time for RD INT setup time ts1Ne 50 ns (Note 1) for CLK RD pulse width twRD 120 ns INT hold time tHCIN 50 ns (Note 1) AO,CS, DACK _ tsAW 0 ns for CLK setup time for WR INT pulse width t1NT 3 teve ns AO,CS, DACK tHWA ns hold time for WR INT recovery tRINT 2 tcve ns time WR pulse width twwR 120 ns Interrupt Reset Switching Dat~etup time ts ow 100 ns for WR CLK t - reset toe Rs 100 ns state delay time Data hold time tHWD ns for WR Serial Interface Timing RD, WR recovery tRv 100 ns SIEN, SI setup tss1s 50 ns time time for SCK DACK hold time IHRQA 0.5 tevc ns SIEN, SI hold tHSSI 30 ns for DRQ time for SCK RD, WR setup tsRWC 50 ns (Note 1) SOEN setup time tssEs 50 ns time for CLK for SCK RD, WR hold time IHeRW 50 ns (Note 1) for CLK 2-37 µPD77C25/77P25 ~EC AC Characteristics (cont) UVPROM Programming Timing (Write) TA= -40 to +85°C; Vee= 4.5 to 5.5 v TA= 25 ± 5°C; Vee= 6.0 ± 0.25 V; Vpp = 12.5 ± 0.3 V; V1HR = 12.0 ± 0.5 V Limits Limits Parameter Symbol Min Typ Max Unit Test Conditions Parameter Symbol Min Typ Max Unit Test Conditions Ser/al Interface Timing (cont) Data Write (Prom Mode) SOEN hold time tHSSE 30 ns for SCK CE setup time tsRSCE 2 µS for RST CLK setup time ts cs 50 ns (Note 1) for SCK CE setup time ts AC 2 µS for address CLK hold time tHSC 50 ns (Note 1) for SCK CE setup time tsoc µs for data SCK setup time tssc 50 ns (Note 1) for CLK CE setup time tsvPc µS for Vpp SCK hold time tHcs 50 ns (Note 1) for CLK CE setup time tsvoc µS for Voo Serial Interface Switching OE setup time tsoo µS SCK t -SORO tossa 30 150 ns for data delay time Address hold tHCA µS SCK l -so tosLSO 60 ns time delay time Data hold time tHCD µS SCK i -so tHSLSO ns hold time Initial program twco 0.95 1.0 1.05 ms pulse width SCKl -so tFsso 60 ns float time Overprogram twc1* 2.85 78.75 ms pulse width Notes: Data Write Switching (Prom Mode) (1) Setup and hold requirement for asynchronous signal only guarantees recognition at next CLK. OE to output tFOD 0 130 ns float time UVPROM Programming Timing (Read) OE to output tooow 150 ns TA= 25 ± 5°C; Vee= 5.0 ± 0.5 V; Vpp =Vee; V1HR = 12.0 ± 0.5 v delay Limits *twe1=3ntweo assuming initial program pulse is applied n times. Parameter Symbol Min Typ Max Unit Test Conditions Data Read (Prom Mode) CE setup time tsRSCE 2 µS for RST OE setup time tsRSOE 2 µs for RST Data Read Switching (Prom Mode) Address to toAD 200 ns output delay CE to output to co 200 ns delay OE to output toooR 75 ns delay OE high to tFCD 0 60 ns output float Address to tHAD 0 ns output hold 2-38 t\'EC µPD77C25/77P25 Timing Waveforms Host Read Operation Input/Output Voltage Reference Levels Ao, DACK,CS~~-'I'-~~~~~~--'~'~~~~- 2.4 v 2.2 v 2.2 v Input 0.8 v 0.8 v 0.4 v 2.2 v 2.2 v Output 0.8 v 0.8 v 49M-000044 Clock Timing 49M-000046 CLK Host Write Operation SCK 49M-000045 49M-000047 2-39 µPD77C25/77P25 NEC Timing Waveforms (cont) Normal Operation #1, 8-Blt Mode Internal Timing Instruction [Note 1] [Note 2] execute timing _ _ __, RQM flag ----j \ __/ External Timing CLK Ao, cs Notes: [1] Setting RQM flag to "1" [MOV @DR, XXX or MOV XXX, DR] [2] The RQM flag is recognized as "O" from this instruction 49NR-273B Normal Operation #2, 16-Blt Mode Internal Timing Instruction~ execute timing [Note 1] x___x__x___x__x___x [Note 2] K ROM flag - -j \___r- External Timing CLK Ao, cs RD, WR Notes: [1] Setting RQM flag to "1" [MOV @DR, XXX or MOV XXX, DR] [2] The RQM flag is recognized as "0" from this Instruction 49NR-274B 2-40 t-IEC µPD77C25/77P25 Port Operation Internal Timing Instruction execute timing External Timing CLK~ ~ PO,P1 _ _ Note: (1) Setting PO or Pl [LOI @SR, Imm) 49M-000048 DMA Operation #1, 8-Bit Mode Internal Timing Instruction [N 0 ta l] (Note 2) execute timing----~ " _ __ __ , '-----.1 ""----.1 .______ ....____ _, ._____....___ ROM flag _ ___,, j \ ___/ External Timing CLK ORO RD, WR Notes: (1) Setting ROM flag to "1" [MOV @DR, XXX or MOV XXX, DR) (2) The ROM flag is recognized as "0" from this instruction 49M-000050 2-41 µPD77C25/77P25 NEC Timing Waveforms (cont) DMA Operation #2, 16-Blt Mode Internal Timing Instruction 1 execute timing _ _ __,, '"-[-N-ot_e__1__,, _ _ _ ___,, _ _ _ ___,, '"-----""' - - - - - RQM flag ---.--1 j \ ___--JI External Timing CLK DRQ Notes: [1) Setting RQM flag to "1" [MOV @DR, XXX or MOV XXX, DR] [2] The RQM flag is recognized as "O" from this instruction 49M-000049 2-42 NEC µPD77C25/77P25 Reset Operation Internal Timing NOP x x NOP NOP )(~~N_o_P__,)(_~[-OH_J __) ( SR register ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.z-~~~ External Timing CLK IHCRS J. RST IRST loo ._IOCRS PO, P1 toe Rs ORQ, SORQ ..,. r= {DCRS so .,' 49NR-275B 2-43 µPD77C25/77P25 !\'EC Timing Waveforms (cont) Interrupt Operation Internal Timing Instruction execute [Note [100H] timing _ _ _ _ _ _1) NOP__, __,, ..._ _ _ _ _ _ _ [Notes 1, 2) NOP [100H] El bit - -I \ __/ \ __ External Timing CLK INT Notes: [1] Setting El bit to "1" (LOI @SR, Imm] [2] El bit can be set to "1" from this instruction 49NR-2768 On-Chip UVEPROM Read Timing RST V1H A13·Ao V1L tOAD V1H CE VIL to co V1H OE V1L tOODR tHAD V1H 07 ·Do V1L 49NR-2828 2-44 NEC µPD77C25/77P25 On-Chip UVEPROM Write Timing RST V1H V1L ISAC 07- Do V1H V1L fl Vpp Vpp Voe tooow Voe IHCD IFOD 49NR-281B Figure 7. Serial Input Operation Serial Timing Serial Output Case 1: SOEN Asserted in Response to SORQ SCK Figure 8 shows timing for serial output when SOEN is asserted in response to SORO. If SOEN is held inactive until after SORO is asserted, and then SOEN is asserted at least tssEs before the falling edge of SCK, SO will become valid tosLso after the falling edge of SCK for use by an external device at the subsequent rising edge of SCK. Note that, although figure 8 shows SOEN being SI asserted during a different SCK pulse than the one in which SORO is asserted, it is permissible for these to occur during the same pulse of SCK as long as SOEN is still asserted tssEs before the falling edge of SCK. 2-45 µPD77C25/77P25 NEC Figure 8. Serial Output Case #1 SCK SORO tosLso so--------_, E First bit _valid 49M-000053 Serial Output Case 2: SOEN Active before SORQ Serial Output Case 3: SOEN Released in Middle is High of a Transfer Figure 9 shows output timing when SOEN is active If SOEN is released while SCK is in the middle of a before SORO is high. If SOEN is held active before transfer, as shown in figure 10, at least tHssE after the SORO is high, data will be shifted out whenever it falling edge of SCK, then the next bit will be shifted out becomes available in the serial output register (assum- tosLSO after the falling edge of SCK for use at the ing previous data is already shifted out). In this case, subsequent rising edge of SCK. SO will go inactive SORO will rise tossa after a rising edge of SCK. The tFSso after the falling edge of SCK. first SO bit occurs tosLso after the next falling edge of Note: For all its uses, SOEN must not change state SCK for use by an external device at the subsequent within tssES before or tHSSE after the falling rising edge of SCK. edge of SCK; otherwise the results will be Subsequent bits will be shifted out tosLso after sub- indeterminate. sequent falling edges of SCK for use at subsequent rising edges of SCK. The last bit to be shifted out will also follow this pattern, and will be held valid tFSso after the corresponding falling edge of SCK at which it is to be used. SORO will be held tossa after this same rising edge of SCK, and then removed. Figure 9. Serial Output Case #2 SCK SORO tFSSO 49M-000054 2-46 NEC µPD77C25/77P25 Figure 10. Serial Output Case #3 SCK so Valid Not valid tosLSO tosLSO El 49M-000055 Serial Input Serial input timing, shown in figure 11, is much simpler than serial output timing, shown in figure 12. Data bits are shifted in on the rising edge of SCK if SIEN is asserted. Both SI EN and SI must be stable at least tss1s before and tHss 1after the rising edge of SCK; otherwise the results will be indeterminate. Figure 11. Serial Input Timing Example Internal Timing Instruction execute timing SIAK f l a g - - - - - - - - - - - - - - - o J - - - - - - - - - - - - - 1 / \..._ _ _ _ _ _ _ _ __ External Timing CLK SCK tss1s tss1s tHSSI SI Notes: [1) Setting SIAK flag to "1" [MOV XXX, SI] The SIAK flag is recognized as "O" from this Instruction 49NR-277B 2-47 µPD77C25/77P25 NEC Figure 12. Serial Output Timing Example Internal Timing Instruction execute timing SOAK flag - - - - 1 j \ _ _-rJF-- - - - - External Timing CLK SCK SORQ _E•Lsa Notes: [1] Setting SOAK flag to "1" [MOY @SO, XXX,] (2) The SOAK flag is recognized as "O" from this Instruction 49NR-278B µPD77P25UVEPROMlnterlace For example, data in word address OH of the instruction ROM is equivalent to three bytes of byte addresses OH Both the instruction ROM and data ROM of the to 2H. 3H is a dummy address. Data ROM is shown in µPD77P25 are an ultraviolet-light erasable UVEPROM. figure 14. The following describes how to write to and read from the UVEPROM. Figure 13. Instruction ROM Input/Output Data Format 24 bits One word of the instruction ROM consists of 24 bits, 23 15 7 0 ~~1 while 16 bits make up one data ROM word. Data are Internal word address OH 1H 2H written to or read from these UVEPROMs. in units of . I 4H 5H I 6H bytes or 8 bits. Therefore, special addresses are assigned to the UVEPROMs. . I I 7FEH 1FF8H 1FF9H 1FFAH Figure 13 shows the address assignment. Addresses 7FFH 1FFCH 1FFDH 1FFEH OH through 1FFFH are assigned to the 2 K-word MSB instruction ROM. Theaddresses2000H through 27FFH are assigned to the 1 K-word data ROM. Since the Note: Numeric values within the boxes are byte addresses of the instruction ROM viewed from an external device instruction ROM is configured on a 1-word-for-24-bit 49NR-279A basis, one dummy byte address is provided per word. 2-48 NEC µPD77C25/77P25 Figure 14. Data ROM (6) After verifying that the data has been properly written, ae.E!_y additional pulses by setting OE to ._16bits--. "1" (clear CE to "O"). The pulse width is3X ms if the 15 7 0 number of repetitions in 3 and 4 is X. Internal word address OH 2000H 2001H 1H 2002H 2003H T.he above procedure completes writing one byte of .. . I I I .. data. If the data will not be properly written even after steps 2 to 4 have been repeated more than 25 times, the µP077C25 is defective . 3FEH 27FCH 27FDH 3FFH 27FEH 27FFH 71Jble 15. Pin Functions for Writing/ MSB Reading UVEPROM Note: Numeric values within the boxes are byte addresses of the data ROM viewed from an external device Pin Name 49NR-280A DIP Pin For Normal Pin Name Number Operation Function Erasing Ao 27 Ao Input address (viewed from - - - - - - - - - - - external device) for writing/ A1 24 WR The data in theµP077P25's UVEPROMs can be erased - - - - - - - - - - - reading UVEPROM (instruction by exposing them to a light with a wavelength shorter A2 23 SORO ROM and data ROM). than 400 nm. All data in the UVEPROMs are set to "1 s" As 22 so after the erasure. If the µP077P25 is exposed to direct A4 21 SI sunlight or fluorescent light for a long time, the data 20 SOEN As might be erased. To prevent this, the UVEPROM window must be masked with a cover or film to shield it A5 19 SIEN from the ultraviolet light. Usually, the UVEPROMs are A1 18 SCI erased when exposed to ultraviolet light with a wave- As 17 INT length of 254 nm. The total light quantity required Ag 15 CLK to completely erase the written data is 15WS/cm2 (UV intensity x erase time) that is equivalent to exposure to A10 5 P1 a UV lamp with a wavelength of 12000µW/cm2 for about A11 4 PO 15 to 20 minutes. However, a longer erasing time may A12 3 ORO be required due to such factors as the life of the UV 2 DACK A13 lamp and stains on the window of the package. The µP077P25 must be positioned within one inch away Do-07 6-13 Do-D7 Inputs/ outputs data for UVEPROM (instruction ROM from the UV lamp. and data ROM) 26 UVEPROM write strobe signal Write Mode (active low) To write data, the µP077P25 UVEPROMs must be first OE 25 RD UVEPROM read strobe signal erased as described in the preceding section. Perform (active low) the writing operation observing the following proce- Vpp Vpp Power pin for writing dures. Table 15 shows reassigned pin functions when UVEPROM; Apply +12.5 V for writing/reading UVEPROMs. writing and +5 V for reading. Vee 28 Vee Power pin; Apply +6 V for (1) Apply +12.5 V to RST (pin 16), + 6 V to Vee. and writing and +5 V for reading. +12.5 V to Vpp. This causes the UVEPROMs to enter write mode. GND 14 GND Ground pin (2) Specify the desired ROM byte address from 16 RST Sets UVEPROM write or read mode. Mode is set when address input pins Ao to A13. +12.5 Vis applied. (3) Write the data on the data bus (0 0 -0 7 ) by applying "O" to CE while OE is "1" (program mode). (4) Output the written data to the data bus (Oo-0 7 ) by applying "O" to OE while CE is "1" (program verify mode). (5) Repeat steps 2 through 4, 25 times maximum until the data is properly written to the specified address. 2-49 µPD77C25/77P25 NEC Read Mode Figure 16. Analog-to-Analog Digital Processing System Using a Single SPI+ (1) Apply +12.5 V to RST (pin 16), + 5 V to Vee. and +5.0 v to Vpp. This causes the UVEPROMs to enter read mode. (2) Specify the desired ROM byte address from the address input pins Ao to An (3) Data will be output to the data bus (Do-D 7 ) by clearing OE and CE to "O". Development Tools For software development and assembly into object code, a relocatable assembler (RA77C25) is available. This software is available to run on MS-DOS®, CP/M®, VAX™/VMX™, and VAX/UNIX™ systems. For debugging, a hardware emulator Figure 17. Signal Processing System Using Cascaded (EVAKIT-77C25) provides in-circuit, real-time emu- SPl+s and Serial Communication lation of the SPI+. Some of the features of the EVAKIT- 77C25 include: break/step emulation, symbolic de- Clock Generator bugging, and on-line assembly/disassembly of code. The EVAKIT-77C25 connects via a probe to your target system for test and demonstration of your final system Analog SPI+ SPI+ In SCK design. The EVAKIT also connects to your host development system via an RS232 port. Using Kermit I['] -~SISORQ or NEC's EVA communications program, code can be down-loaded or up-loaded between development L:rLJT+r+SiEN Band- limiting SOEiiiso Recon- struction system and EVAKIT. By connecting to a PROM Filter -= Filter programmer, the EVAKIT is also used to prepare Input µPD77P25 UVEPROMs which are intended for proto- Control typing and small volume applications. A program 49NR-310A adaptor, PA-77P25, is provided for use with the data 1/0 programmer. Code submittal for the mask ROM Figure 18. Signal Processing System Using SPl+s as µPD77C25 is accomplished by preparing a 27C256A or a Complex Computer Peripheral µPD77P25 PROM. using the same programming device. System Configuration Host Memory Figures 15, 16, 17, and 18 show typical system appli- CPU cations for the 77C25/77P25. Figure 15. Spectrum Analysis System ·o Product ~1SI DRQ1 - - -.. OMA SPI+ Controller ~ _s_o_ _.... Frequency-.- 49NR-308A ---•~SI . DRQ[n] MS-DOS is a registered trademark of Microsoft Corporation. SPI+ ____r:;:i DACK[n] CP/M is a registered trademark of Digital Research, Incorporated. ~ ...s_o_ __:t---=-------- VAX and VMX are trademarks of Digital Equipment Corporation. 49NR-311A UNIX is a trademark of AT&T Bell Laboratories. 2-50 NEC NEC Electronics Inc. µPD77220 24-Bit, Fixed-Point Digital Signal Processor Description o Architecture suitable for digital signal processing - Two built-in independent data RAMs and data The µPD77220 is a Digital Signal Processor (DSP) devel- RAM pointers oped for digital signal processing requiring high accu- - Each data RAM pointer consists of a base pointer racy. This unit processes 24-bit fixed-point data at the and index register: the base pointer performs a rate of 122 ns/instruction. ring count operation in any range The internal circuit consists of a multiplier (24 x 24 bits), - Data ROM pointer steps forward in two-step instruction ROM (2K words x 32 bits), data ROM (1 K increments (2N) in addition to normal word x 24 bits), and two independent data RAMs (256 autoincrement/autodecrement addressing words x: 24 bits each). o Flexible external interfaces o Two modes of operation: master or slave The µPD77220 has two operation modes: master and - In master mode, 4K word by 32-bit instruction slave. These modes can be set using external pins. In area master mode, an external SK-word memory can be - High-speed access to external memory added, and 4K words in the memory can be used as an Master mode: 4K words by 24 bits instruction area. In slave mode, the µPD77220 operates Slave mode: 4K words by 8 bits as an 1/0 processor for the host CPU. An external o CMOS process SK-byte data memory can be added. o 5 V single power supply o 6S-pin grid array and PLCC packages Features o Processes 24-bit fixed-point data Ordering Information - 24-bit fixed-point multiplication circuit Part Number Package 24 bits x 24 bits - 47 bits p.PD77220R 68-pin ceramic PGA -47-bit ALU with eight working registers - 47-bit barrel shifter p.PD77220L 68-pin PLCC o High-speed operation and efficient data transfer - Instruction cycle 122 ns - Three-stage pipeline processing - Dedicated data buses in the internal RAM, multiplication circuit, and ALU 50119 2-51 µPD77220 NEC Pin Configuration 68-PinPLCC IC(Note 2] PE PD 7 42 S02ST PD 6 41 S02 PD5 40 S01RQ PD 4 39 S01EN PD3 38 S01 PD 2 37 S1CK PD 1 36 Sl1EN Voo 35 VDD PD 0 34 Sl1 PC5/WR 33 RBAUD PC5/Ro 32 RT PC 4 /Cs 31 RxD PC3/A3 30 SBAUD Notes: PC2/A2 29 STINT [1] In normal operation connect the Pull Up (PU) pin to the Voo pin through a pull up resistor. PC1IA1 STEXT PCotAo TxD (2] In normal operation the Internal Connection (IC) pin must be open. 83Ml.S819B 2-52 NEC µPD77220 Pin Configuration (cont) 68-Pin Ceramic PGA Top View Bottom View 11 0 0 0 0 0 0 0 0 0 10 0 ©0 0 0 0 0 0 0 ©0 9 0 0 0 0 00 00 00 00 00 00 00 00 00 00 3 0 0 0 0 2 0©0000000©0 0 0 0 0 0 0 0 0 0 \.:· AB CDEFGH K K HGFEDC BA Mark Terminal Mnemonic Terminal Mnemonic Terminal Mnemonic Terminal Mnemonic Terminal Master Slave Terminal Master Slave Terminal Master Slave Terminal Master] Slave No. Mode Mode No. Mode Mode No. Mode Mode No. Mode Mode A2 A1 Bg D13 I/Os F 10 D23 l/01s l<4 vDD A3 Ag B10 D14 I/Os F 11 NC Ks SOEN A4 A10 B11 D1s I/Os G1 D1 Ks GND As AAX C1 A4 G2 Ds K7 WR As Ds l/Oo C2 A3 G10 D24 HRD Ks VoD A7 D10 1/02 C10 D17 l/Og G11 D2S HWR Kg X2 As D11 1103 C11 D1s 1/010 H1 Ds K10 D30 I P2 Ag D12 1/04 D1 A2 H2 D4 K11 D31 l P3 A10 D1s 1107 D2 A1 H10 D2s cs L2 Do A1 As D10 D19 11011 H 11 D27 ROM L3 SOCK B2 As D11 D20 11012 J 1 D3 L4 so B3 As E1 Ao J 2 D2 Ls SI B4 GND E2 MIS J 10 D2s Po Ls SIEN Bs Al1 E 10 D21 11013 J 11 D2g P1 L7 RESET Bs VDD E11 D22 1/014 K1 D1 Ls RD B7 Dg l/01 F1 iNT K2 SORO Lg CLKOUT Bs GND F2 NMI K3 SICK L10 X1 83ML·5981 B 2-53 11PD77220 NEC "PD77220 and p.PD77230A Comparison Table 2. Data Length Differences between pPD77220 and pPD77230A The µ.PD77220 is a 24-bit fixed-point signal processor; Item µPD77220 14PD77230A the µ.PD77230 is a 32-bit floating-point signal processo[ The two processors are generally compatible on an MAIN BUS 24 bits 32 bits object level. However, the following µ.PD77230A instruc- P,Q 47 bits 55 bits tions are not available on the µ.PD77220. PSWO, PSW1 4 bits (OVFE not present) 5 bits • ADDF, S UBF, NORM, CVT (OP field) RAMO, RAM1 24 bits 32 bits • TRNORM, RDNORM, FLTFIX, FIXMA (CNT field) IXO, IX1 9 bits RP 10 bits • SPIE, IESP (C NT field) M 47 bits 55 bits • WRBEL8, WRBL8E (C NT field) DRS 32 bits • JEVO, JEV1 (C field) Sl,SO 32 bits • TRE (DST field) LC 10 bits Also, the CMP instruction on the µ.PD77220 treats data TR 24 bits 32 bits as 47-bit fixed-point data at the time of comparison PU BUS 47 bits 55 bits (as opposed to 55-bit floating-point data on the WRO-WR7 47 bits 55 bits µ.PD77230A). SVR 7 bits Internal memory differences between the two proces- BPO, BP1 9 bits sors are shown in Table 1. Table 2 describes the differ- ROM 24 bits 32 bits ences in the data lengths between the µ.PD77220 and the µ.PD77230A. K, L 24 bits 32 bits DR 32 bits Table 1. Internal Memory Differences between AR 13 bits pPD77220 and pPD77230A STK 13 bits Memory Type l'PD77220 SR 20 bits Instruction ROM 2K words x 32 bits 2K words x 32 bits Data ROM 1K words x 24 bits 1K words x 32 bits RAMO 256 x24 bits 512 x 32 bits RAM 1 256 x 24 bits 512 x 32 bits 2-54 NEC #'PD77220 Master Mode Block Diagram SORO SOEN MPV so RAMO RAM1 fJ SOCK 256W x 24-bit 256W x 24-bit -47bits SCK SICK SI SIEN - Do-D31 DP ~ cn :::> aJ :::> ~ a.. AX Ao-A11 RB RIW CNT ~ C\I WR STK WiCK ISi ISi WRO WR4 K WR1 WRS Voo- WR2 WR6 ~ N ws _[ WR3 WR7 GND x ~ f- t ~I~ f- :::> UJ 0 en :I<:: UJ ....I (.) c: 83YL-5722B 2-55 ,iPD77220 NEC Slave Mode Block Diagram SORO P3 MPY P2 RAMO RAM1 P1 256W x 24 bits 256W x 24 bits PO -47bits ROM cs M DP Instruction ROM ROM 1KWx24-bit 2KWx32-bit Ao-A11 AP _____, RB~ WR~ WR4 WRS ~D-,­ WR6 M'S L WR7 GND- 83YL-5723B 2-56 NEC µPD77220 Master Mode Operation Slave Mode Operation 2 X1, X2 SI X1, X2 SI Clock { Clock { CLKOUT SIEN - }Serial CLKOUT SIEN }Serial Input Input SICK SICK Reset { Interrupt RESET INT NMI SOEN SOCK SORO so -- }~·' Output Reset{ Interrupt -- - RESET INT NMI so SOEN SOCK SORO - }~,., Output 13 External Memory Interface Host CPU Interface General- (- - 16 Cs HRD HWS ROM RB WR Ao-A11, AX l/Oo-11015 13 External Memory Interface Purpose { 2 8 PO, P1 Do-D31 lnpuV 2 Output P2, P3 Port 83ML·5892A 83ML·5899A Pin Functions PGA PLCC Symbol Pin Location Pin Number 1/0 Function Power Supply Voo 86 36 +5 V power supply Be sure to connect these three pins K4 66 KB 6 GND 84 40 Ground terminals Be sure to ground these three pins 88 32 K6 2 Setting Mailes M/S E2 51 Operation mode; mode cannot be changed during operation 0: Master mode 1: Slave mode Clocks X1 L 10 9 Input pins for crystal oscillator connection If an external clock Is used, connect it to the X1 pin and leave X2 open X2 K9 8 CLKOUT LS 7 0 µ.PDn220 internal system clock output. The output signal frequency is half the frequency of the crystal oscillator connected to the X1 or X2 pin 2-57 ~PD77220 NEC Pin Functions (cont) PGA PLCC Symbol Pin Location Pin Number 1/0 Function R••t and Interrupt RESET L7 3 Internal system reset signal input (low-level active) - Requires latitude of more than three system clock (CLKOUT) cycles NMT F2 53 Non-maskable Interrupt input (low-level active) - Requires latitude of more than three system clock (CLKOUT) cycles - Fall edge detection - The interrupt address is 10H INT F1 52 Maskable Interrupt Input Oow-level active) - Requires latitude of more than three system clock (CLKOUT) cycles - Fall edge detection - The Interrupt address Is 100H Serial Interfaces SOCK L3 63 1/0 Serial output data clock 1/0 - Serial data Is output synchronously when the clock to be Input or output at this pin rises - Whether the external clock Is to be Input or the Internal clock to be output depends on the status register SORQ K2 62 0 Serial output request (high-level active) - When output data Is In the SO register, set to 1 When output is terminated, set to o K5 68 Serial output enable (low-level active) - Enables serial data output from the SO pin so L4 65 0 Serial data output (3 - Serial data output Is synchronized with the leading edge of the SOCK state) signal SICK K3 64 1/0 Serial Input data clock 1/0 - Serial data Is latched Internally at the tralllng edge of the clock input to or output from this terminal - The status register determines whether to input the external clock or to output the Internal clock L6 Serial Input enable (low-level active) - Enables serial data input from the SI pin SI L5 67 Serial data input - Inputs serial data synchronously when SICK falls Note: The system clock Is an internal clock generated by CLK GEN on the basis of the clock (master clock hereafter) Input In X1. Its frequency Is half of that of the master clock. External Memory Interfaces (Master Mode Only} WR K7 4 0 Write output Oow-level active) - Write control output for external memory. If 0 is set, the output address Is valid and data Is output to data bus (DO to 031) LS 5 0 Read output Oow-level active) - Read output control for the external memory. If o is set, the output address Is valid and data Is output to data bus (DO to 031) AX A5 37 0 Highest-order memory address output - If the external instruction memory is accessed (highest-order bit PC12 of the Internal program counter is 1), O is output - If the external data memory is accessed, the value of the highest-order bit AR12 of the internal address register is output O: High-speed access area 1: Low-speed access area 2-58 NEC l'PD77220 Pin Functions (cont) PGA PLCC Symbol Pin Location Pin Number 1/0 Function External Memory Interfaces {Master Mode Only) (cont) AO - A 11 See PGA pin See PLCC pin 0 Memory address output configuration configuration (3 - Address output when the external memory Is accessed diagram diagram state) - If the external instruction memory is accessed, the value of low-order 12 bits of the Internal program counter Is output - If the external data memory is accessed, the value of low-order 12 bits of the address register is output DO- D31 See PGA pin See PLCC pin 1/0 32-bit data bus for the external memory configuration configuration (3 diagram diagram state) Host CPU Interfaces (Slave Mode Only} 'CS H10 15 Chip select input (low-level active) - If O is set, read/write from host CPU through 16-bit data bus (1/00 to 1/015) is enabled HWA G11 16 Host CPU write input (low-level active) - If O is set, 16-bit data bus (1/00 to 1/015) is ready for input (also 'CS = O) HAD G10 17 Host CPU read input (low-level active) - If O is set, 16-bit data bus (1/00 to 1/015) is ready for output (for 'CS= O) 1/00 to 1/015 See PGA pin See PLCC pin 1/0 16-bit data buses for host CPU configuration configuration (3 - Bidirectional buses that input and output data according to control diagram diagram state) signals CS", HWA, and HAD from the host CPU - 16-bit or 32-bit 1/0 data transfer format can be set in the internal status register RQM H11 14 0 Host request input - Signal that indicates a read or write request to host CPU External Data Memory Interfaces (Slave Mode Only) WR K7 4 0 Write data output (low-level active) - Write control output for the external memory. If set to 0, the output address is valid and data is output to data buses (DO to 07) LS 5 0 Read data output (low-level active) - Read control output for the external memory. If set to 0, the output address is valid and data is input through data buses (DO to 07) AX AS 37 0 Highest-order memory address output - If the external memory is accessed, the value of the highest-order bit AR12 of the Internal address register is output 0: High-speed access area 1: Low-speed access area AO -A11 See PGA pin See PLCC pin 0 Memory address output configuration configuration - Address output when the external memory is accessed. The value of diagram diagram the low-order 12 bits of the internal address resister is output from this address D0-07 See PGA pin See PLCC pin 1/0 8-bit data bus for external memory configuration configuration (3 - 1-byte, 2-byte, 3-byte, or 4-byte 1/0 data transfer format can be set in diagram diagram state) the internal status register 2-59 1£PD77220 NEC Pin Functions (cont) PGA PLCC Symbol Pin Location Pin Number 1/0 Function General-Purpose 1/0 Ports (Slave Mode Only) PO, P1 J10, J11 13, 12 General-purpose Input port - The status of these general-purpose input ports can be determined by an instruction P2, P3 K10, K11 11, 10 0 General-purpose output port - Data to be output from these general-purpose output pins can be set using an instruction; the data Is stored unless the set value Is changed Internal Functions Mnemonic Multiplier Description Multiplier Peripheral Citeuits MPV Multiplier 24-bit fixed-point data multiplier 24 bits x 24 bits ..... 47 bits K K Register MPV Input data storage register (24 bits) L L Register MPV Input data storage register (24 bits) M M Register MPV multiplication result storage register (47 bits) AW Peripheral CitCUits ALU Arithmetic Logic Unit 47-bit data logical operation circuit p P Register ALU input data storage register (47 bits) a Q Register ALU input data storage register (47 bits) EXCHANGE Data Exchanger Selects P or Q from which the fixed-point data is to be input to the barrel shifter BSHIFT Barrel Shifter Barrel shifter for fixed-point data in the P or Q register SVR Shift Value Register Shift value set register WRIC Working Register Specifies the format of data transfer between the working register and PU bus Interface Circuit WRO-WR7 Working Register (0-7) ALU operation result storage register (47 bits) PSWO Program Status Word 0 ALU operation result status register PSW1 Program Status Word 1 ALU operation result status register Data Memory Peripheral CitCUits ROM Data ROM Fixed-data storage ROM (1 kW x 24 bits) RP ROM Pointer Register specifying ROM address (10 bits) RAMO Data RAMO Data storage RAMO (256 W x 24 bits) BPO Base Pointer o Register specifying RAMO base address (9 bits) IXO Index Register 0 Register specifying RAMO index address (9 bits) RAM1 Data RAM1 Data storage RAM 1 (256 W x 24 bits) BP1 Base Pointer 1 Register specifying RAM1 base address (9 bits) IX1 Index Register 1 Register specifying RAM1 index address (9 bits) Instruction ROii Peripheral CitCUits INSTRUCTION ROM Instruction ROM Instruction storage ROM (2 kW x 32 bits) PC Program Counter Register specifying instruction ROM address (13 bits) STK Stack 8-level 13-bit stack 2-60 NEC µPD77220 Internal Functions (cont) Mnemonic Multiplier Description Instruction ROM Peripheral Citr:uits (cont) SP Stack Pointer Pointer Indicating stack address DECODER Instruction Decoder Instruction decoding circuit Parallel Interface Buses DP Data Port Master mode: - 32-bit parallel data bus for the external memory Slave mode: - 8-bit parallel data bus for the external data memory - 16-bit parallel data bus for host CPU - Read/write control signal for host CPU - General-purpose 1/0 port AP Address Port Master mode: - Address bus for the external memory Slave mode: - Address bus for the external data memory DR Data Register Master mode: - Register for interface between mode DP and internal data bus (main bus) (32 bits) Slave mode: - Register for interface between mode DP (8-bit parallel data bus for the external data memory) and main bus (32 bits) DRS Data Register for Slave Slave mode: - Register for interface between mode DP (16-bit parallel data bus for host CPU) and main bus (32 bits) AR Address Register Register specifies external data memory,address (13 bits) HOSTR/W CNT Host CPU Read/Write Slave Host CPU interface control mode circuit Control Circuit R/W CNT Read/Write Control Circuit External memory read/write control circuit Serial Input/Output Interfaces SO Serial Output Data Register Serial output data storage register (32 bits) OSFT Output Shift Register Shift register - outputs SO data serially SOC NT Serial Output Control Serial output control circuit Circuit SI Serial Input Data Register Serial input data storage register (32 bits) ISFT Input Shift Register Shift register - inputs serial data SICNT Serial Input Control Circuit Serial input control circuit Control Cin:uits CLKGEN Clock Generator Circuit for generating internal system clock and serial 1/0 clock INTCNT Interrupt Controller Internal interrupt control circuit TR Temporary Register General-purpose register (24 bits) LC Loop Counter Register which sets program loop count {10 bits) SR Status Register Register which specifies or indicates operation mode (20 bits) 2-61 ,iPD77220 NEC Absolute Maximum Ratings Capacitance TA= +25°C . TA = +25°C; Voo = 0 V Operating temperature, ToPT -10 to +70°C Parameter Symbol Max Unit Conditions Storage temperature, TsrG -65 to + 150°C Input capacitance 10 pF fc = 1 MHz Output voltage, Vo -0.5 to V00 + 0.5 V Output capacitance Cour 20 pF Input voltage, V1 -0.5 to V00 +0.5 V Power supply voltage, Voo -0.5 to +6.5 V Exposure to Absolute Maximum Ratings for extended periods may affect device reliability; exceeding the ratings could cause permanent damage. Recommended Operating Conditions Parameter Symbol Min Typ Max Unit Power supply voltage Voo 4.75 5.0 5.25 v Low-level input voltage V1L -0.3 0.8 v High-level input voltage V1H 2.2· Voo +0.3 v Low-level X1 input voltage V1LX -0.3 0.5 v High-level X1 input voltage V1HX 3.9 Voo +0.3 v Operating temperature Topr -10 +25 +70 oc DC Characteristics TA= -10to +70°C; Voo = 5V ± 5% Parameter Symbol Min Typ Max Unit Conditions Low-level output voltage Vol 0.45 v loL=2.0mA High-level output voltage VoH 0.7Voo v loH=-400 p.A Low-level input current l1L -400 p.A RESET, SICK, SOCK VIN = 0 V High-level input current l1H 400 p.A M/S V1N= Voo Low-level input leak current luL -10 p.A Except RESET, SICK, SOCK, V1N = 0 V High-level input leak current luH 10 p.A Except M/S, V1N = Voo Low-level output leak current ILOL -10 p.A Your= ov High-level output leak current ILOH 10 p.A Vour = Voo X1 input current lix1 400 p.A X1 pin, external clock input Power supply current loo 140 200 rnA fcvx = 16.384 MHz Crystal Oscillator Connection Conditions TA = -10 to +70°C; V00 = 5 V ± 5% Parameter Mnemonic Min Typ Max Unit Conditions Osclllatlon frequency fcvx 1.0 16.384 16.667 MHz See figure 1. C1, C2 capacity 15 pF 2-62 NEC µ.PD77220 Timing Requirements TA = -10 to +70°C; V00 = 5 V ± 5% Parameter Mnemonic Min Typ Max Unit Conditions X1 cycle time tcvx 60 61 1000 ns See figure 2. See figure 3; switching characteristics timing measurement voltage = X1 high pulse width txxH 25 ns 1.0 and 3.0 V X1 low pulse width txxL 25 ns X1 rise time txR 5 ns X1 fall time txF 5 ns SICK, SOCK cycle time tcvs 240 244 ns SICK, SOCK high pulse width tssH 100 ns SICK, SOCK low pulse width tssL 100 ns SICK, SOCK rise time tsR 20 ns SICK, SOCK fall time tsF 20 ns Switching Characteristics Figure2. External Clock Connection Diagram TA= -10 to +70°C; Voo = 5V ± 5%; CL= 100 pF Item Mnemonic Min Max Unit X1 t -+ RD delay time toxc 50 ns X1 X2 X1 t -+ CLKOUT hold time tHXC 0 ns SCK cycle time tcvs Btcvx ns SCK high pulse width tssH 4tcvx-65 ns External NU• SCK low pulse width tssL 4tcvx-65 ns Clock Source SCK rise time tsR 20 ns SCKfall time tsF 20 ns Note: • Use in Not Use open. X1 t-+ SCK t delay time toxs 10 120 ns 83ML·5887A Figure 1. Oscillation Circuit Diagram Figure 3. Switching Characteristics Input Wave Form 2.4 v X1 X2 2.2V 2.2V 0.4 v 0.8 v o.av Output Wave Form 2.2V 2.2V 0.8V 0.8 v 83ML·5893A 83ML·S900A 2-63 µPD77220 NEC Timing Waveforms Clock Input/Output t= 1 1 -----l 1~111=1~L~ Clock Input cvx X1 Clock Output X1 CLKOUT X1 SCK [Note 1) SICK, SOCK [Note2] Notes: [1) At output time [2) At output time (input asynchronous with X1 is possible.) 83ML·5901B 2-64 NEC 1tPD77220 External Memory Access Timing TA= -10 to +10°C; V00 = 5 V ± 5% Item Mnemonic Min Max Unit Conditions Data set time (for address) ts ADI 2tcvx-85 ns When an instruction is read Data set time (for RD .J) tsRDI tcvx-25 ns Data hold time (for RD 't) tHRDI 0 ns Data set time (for address) tsAD1 4tcvx-135 ns Applied to high-speed access area tsAD2 Stcvx-135 ns Applied to low-speed access area fJ Data set time (for DR .J.) tsRD1 Stcvx-75 ns Applied to high-speed access area tsRD2 7tcvx-75 ns Applied to low-speed access area Data hold time (for RD 't) tHRD 0 ns Switching Characteristics TA= -10 to +70°C; V00 = 5 V ± 5%; CL = 100 pF Item Mnemonic Min Max Unit Conditions X1 i _,. RD delay time toxRo 55 ns X1 i .... WR delay time toxwR 55 ns Address set time (for RD .J.) ts AR tcvx-50 ns Address hold time (for RD 't) tHRA 5 ns RD low-level width twR1 tcvx-20 ns When an instruction is read twR2 Stcvx-30 ns Applied to high-speed access area twR3 7tcvx-30 ns Applied to low-speed access area Address set time (For WR .J.) tsAw tcvx-45 ns Address hold time (for WR 1) tHWA 5 ns WR low-level width tww1 3tcvx-50 ns Applied to high-speed access area twW2 7tcvx-50 ns Applied to low-speed access area Data set time (for WR 't) tsow1 Stcvx-100 ns Applied to high-speed access area tsoW2 7tcvx-100 ns Applied to low-speed access area WR .!. _,. data delay time towo 0 ns Data float time (for WR 't) tFWo 10 50 ns RD, WR recovery time tFIV tcvx-30 ns At time of continuous operation 2-65 1£PD77220 NEC Timing Waveforms (cont) Instruction Read Operation (Master Mode Only) 2-66 NEC 11PD77220 Timing Waveforms (cont) Data Read Operation X1 CLKOUT - toxRo - _ _ _ _ _ _ twR1, 1wR2 --------1~ tsRD1, tsRD2 tsAD1' tsAD2 Do-D31 ~~~~~~~--.. [Note 1] Do-D7 [Note 2] Notes: [1] Master Mode [2] Slave Mode 83ML-5885B 2-67 p,PD77220 NEC Timing Waveforms (cont) Data Write Operation CLKOUT oxwR 1 toxwR 1SAW 1HWA 'RV ------'ww1. twW2----~ ?,~~;1 _______)>-----._-1o_w_o_-~E"~"'som ''w]--------c( [Note 2) _ _ _ _ _ _ _ _ _ __. ------ Note: [1) Master Mode [2) Slave Mode 83ML·S886B Data Read/Write Operation Read - Write Operation \~-------'~ Ri5 WR ~--------~ : ------- Write - §\ _: W R \_ _ _ _ _ _ Read Operation Ri5 ------ 83ML·S902A 2-68 NEC µ,PD77220 Host Interface Timing (Slave Mode) Switching Characteristics TA= -10 to +70°c; v00 = 5V ± 5% TA= -10 to +70°C; Voo = 5 v ± 5%; CL= 100 pF Item Mnemonic Min Unit Item Mnemonic Min Max Unit CS set time (for HRD J.) tscR 0 ns HRD J. - data delay time toHRI 100 ns CS hold time (for HRD 1) tHRC 0 ns HRD J. - data float time tFHRI 10 65 ns HRD low-level width twHRD 150 ns X1 i-+ RQM i delay time toxRH 100 ns CS set time (for HWR J.) tscw 0 ns X1 i .... RQM J. delay time toxRL 100 ns m CS hold time (for HWR 1) tHWC 0 ns HRD, HWR i-+ RQM J. to HR 2tcvx+100 ns delay time HWR low-level width twHWR 150 ns X1 i .... P2, P3 delay time toxP 100 ns Data set time (for HWR J.) tsrHw 100 ns Data hold time (for HHR 1) tHHWI 0 ns HRD, HWR recovery time tHRI/ 100 ns HRD, HWR hold time (for RQM 1) tHRH tcvx ns PO, P1 set time (for X1 1) tgpx tcvx ns PO, P1 hold time (for X1 1) tHXP tcvx ns Timing Waveforms (cont) Host Read Operation \,~R cs _fHRC 1HRV 1WHRD HRD toHRr- 1FHRI IOo-1015 -----------------------. SORO SOEN so SOCK Do·D31-DP SICK SI SIEN Voo--- M/S ,- GND __..___ Main Bus 83-003769C 2-86 NEC µPD77230/77P230 Figure 2. Slave Mode Block Diagram P3 SORO P2 P1 SOEN PO so ROM cs HWR SOCK HRD SICK El l/Oo-11015 SI Do-07 SIEN Ax - - - - - t Ao-A11 - - - - - t Ril-----r:I WR~ ¢1 ~o----r-­ ¢2 M/S L_ GND--- Main Bus 83-003770C 2-87 µPD77230/77P230 NEC Figure 3. Functional Pin Groups Instruction Set All µPD77230 instructions consist of a single 32-bit A. Master Mode word. Figure 4 shows the bit format for the three basic X1,X2 SI types of instructions. Clock { CLKOUT SIEN SICK }'"'"'"'"' OP T}'pe Instruction so This is an ALU operation instruction where 26 different }'"'"''"''"' RESET '-""'{ Interrupt INT INTM SOEN SOCK SORO operations may be specified in the upper five bits (figure 4). Pointer modifications may be specified in the CNT field. Transfers may also be specified within an OP instruction by use of the SRC and DST fields. When }b-·~·~ Ro WR all fields are specified in an OP instruction, several different tasks are performed at once. The high five bits 13 Ao-A11,Ax Interface make up the OP field, summarized in table 1. 32 Table 2 summarizes the effect on bits in the PSW Do-031 resulting from ALU operations. B. Slave Mode Clock { X1, X2 CLKOUT SI SIEN SICK }......_ Control Field [CNT] This 12-bit field contains specifications for control modes and pointer modifications. Figure 5 summarizes the bit field format, table 3 summarizes the function of RESET so CNT field groups, and table 4 summarizes the function •-•oo• { Interrupt INT SOEN of each mnemonic within the 23 groups. Table 5 shows } '""''0"'•" l INTM SOCK SORO the possible combinations of control field instructions. cs ""'c~ }~~·····~ HRo Ro P Field HWR WR Interface ROM The two-bit P field specifies the source of input to the P 13 register, which is used as an input to the ALU for Ao-A11,Ax Interface l/Oo-11015 operations requiring two operands. See table 6. General-Purpose { PO, P1 Do-07 l/OPorts P2, P3 83-0037718 Figure 4. Instruction Type Formats A. OP Type Instruction 31 27 26 15 14 13 12 10 9 5 4 OP [5] CNT [12] p [2] o [3J SRC [5] DST [5] B. Branch Type Instruction 31 28 27 15 14 10 9 5 4 B [4] NA[13] c [5] SRC [5] DST[5] c. Load Type Instruction 131 LOI [3] 29128 IM [24] T DST[5] 0 I 83-0037728 2-88 t-IEC µPD77230/77P230 Table 1. OP Field Specifications Contents of PSW ALU Mnemonic OP Field (31-27) Operation Operation OVFE c z s OVFM NOP 00000 No operation SH RAM $ $ 0 INC 00001 Increment CLR 0 0 0 0 DEC 00010 Decrement NORM (NORM.) $ 0 $ $ 0 ABS 00011 Absolute value (ROUNDING) $ $ $ $ $ NOT 00100 Not-one's complement (FLT-FIX) 0 $ $ NEG 00101 Negate-two's complement (FIX M.A.) 0 $ $ $ SHLC 00110 Shift left with carry CVT x 0 $ $ 0 SHRC 00111 Shift right with carry ADD $ $ $ ROL 01000 Rotate left SUB $ $ $ ROR 01001 Rotate right ADDC $ $ $ $ SHLM 01010 Shift left multiple SUBC $ $ $ $ SHRM 01011 Shift right multiple CMP $ $ $ $ SH RAM 01100 Shift right arithmetic multiple AND 0 $ $ CLR 01101 Clear OR 0 $ 0 NORM 01110 Normalize XOR 0 $ 0 CVT 01111 Convert floating point format ADDF $ $ $ $ $ ADD 10000 Fixed-point add SUBF $ $ $ $ $ SUB 10001 Fixed-point subtract $ Flag will be affected by result of operation. ADDC 10010 Fixed-point add with carry 0 Flag will be reset to 0. SUBC 10011 Fixed-point subtract with borrow Flag will be reset to 1. CMP 10100 Compare (floating point) * Previous condition of flag will be preserved. AND 10101 Logical AND + If the original data in the mantissa was 80---0H, OVFM = 1 after OR 10110 Logical OR operation. XOR 10111 Logical exclusive OR Figure 5. Control Field Bit Format ADDF 11000 Floating-point add J cJ SUBF 11001 Floating-point subtract 01 2 CNT [12] 1r ?r Table 2. Effects of ALU Operations on PSW Flags / / '-, / '- Contents of PSW / / '- '- ALU / / --..... '- Operation OVFE c z s OVFM i,,./ ~ NOP 26 25 24 23 22 21 20 T 19 18 1 17 16 15 INC DEC $ $ $ $ $ $ $ $ 0 0 0 0 1 1 0 0 MO 0 1 M1 EA RP MO DPO DPO l OPO DP1 DP1 FC 0 1 1 0 RP M1 OP1 FC ABS $ $ 0 $+ 0 1 1 1 RP MO M1 L FC NOT 0 $ $ 1 0 0 0 0 BASO BAS1 FC NEG $ $ $ $+ 1 0 0 0 1 RPC l L FC 1 0 0 1 0 P3 P2 l EM BM L FC SHLC $ $ $ 0 1 0 0 1 1 RW 1 l L FC SHRC $ $ $ 0 1 0 1 0 0 WT l L FC 1 0 1 0 1 NF WI L FC ROL 0 $ 0 1 0 1 1 0 FIS FD L ROR 0 $ 1 0 1 1 1 SHV 1 1 0 RPS SHLM 0 $ $ 0 1 1 1 NAL SHRM 0 $ $ 0 83-003773A 2-89 µPD77230/77P230 NEC Table 3. Control Field Function Summary Table 4. Control Field Mnemonic Summary Group Field Function Effective Operation Mnemonic .Code Interrupt EM, BM Enable and disable maskable EM, BM Field (19-17) interrupt, and control interrupt memorization. Maskable interrupt EM BM PSW FIS PSW control (select and clear) * No operation (NOP) (NOP) 000 FC Select other PSW * Clear booking flag (NOP) CLRBM 001 Data ROM RP Controls ROM pointer operation Set booking flag (NOP) SETBM 010 pointer Interrupt disabled DI (NOP) 011 RPC Specifies n value for special manipulation of ROM pointer Interrupt enabled El (NOP) 100 RPS Specifies 9 lower bits of data Interrupt enabled and clear booking flag El CLRM 101 ROM address Interrupt enabled and set booking flag El SET BM 110 Data RAMO MO Specifies RAMO addressing mode and RAM1 Use prohibited 111 M1 Specifies RAM1 addressing mode pointers * Default: interrupt disabled and clear booking flag. DPO Controls modification of base pointer 0 and index register 0 * Writing (NOP) is not necessary, just useful for remembering the available combinations and their effects. DP1 Controls modification of base pointer 1 and index register 1 FIS Field (21-19) BASEO Specifies counter length of Flag initialize and select modulo count operation of base No operation (NOP) 000 pointer 0 Specify PSW 0 for operation (default) SPCPSWO 001 BASE1 Specifies counter length of modulo count operation of base Specify PSW 1 for operation SPCPSW1 010 pointer 1 Clear PSW 0 CLRPSWO 100 Data format FD Controls conversion mode for Clear PSW 1 CLRPSW1 101 conversion floating point CVT. Clear PSW 0 and PSW 1 CLRPSW 110 WI Controls transfer format when working register is specified in FC Bit (15) DST field. Flag change operation WT Controls transfer format when (NOP) No operation working register is specified in SRC field. Exchange PSW for operation XCHPSW Normalization NF Specifies normalization, RP Field (22, 21) specification normalization with rounding, floating-point to fixed-point ROM pointer modification conversion, or digit alignment. No operation (NOP) 00 Shift SHV Controls amount of shift for Increment ROM pointer INCRP 01 specification 47-bit mantissa Decrement ROM pointer DEC RP 10 Data memory RW Specifies read/write access operation for external memory. Increment specified bit of ROM pointer INCBRP 11 (that is, add 2N) EA Increments or decrements external address register RPC Field (21-18) General- P2 Controls state of P2 pin Specify N for adding 2N to ROM pointer BITRP imm (imm)B purpose *imm (= n) is Othrough 9 P3 Controls state of P3 pin output port RPS Field (23-15) Loop counter Decrements loop counter Specify immediate ROM address SPCRA imm (imm)B Jump NAL Specifies unconditional local jump address *o:::; imm :::;511 * Effective starting with current instruction. __.., Effective starting with next instruction. 2-90 NEC µPD77230/77P230 Table 4. Control Field Mnemonic Summary (cont) Operation Mnemonic Code Operation Mnemonic Code MO Field BASEO Field (21-19) Specify RAM pointer Specify modulo count number (2N) for MCNBPO imm (imm)B incrementing base pointer 0 No change in specification (NON) 00 *imm (=n) is 1 through 7; 0 specifies ordinary count Base pointer 0 SPCBPO 01 Index register 0 SPCIXO 10 BASE1 Field (18-16) Base pointer 0 + index register 0 SPCBIO 11 Specify modulo count number (2N) for MCNBP1 imm (imm)B (default) incrementing base pointer 1 *imm (=n) is 1 through 7; 0 specifies ordinary count M1 Field FD Field Specify RAM pointer Data conversion format specification No change in specification (NON) 00 No change of specification (NON) 00 Base pointer 1 SPCBP1 01 Conversion of ASP format to IEEE SPIE 01 Index register 1 SPCIX1 10 format (default) Base pointer 1 + index register 1 SPCBl1 11 Conversion of IEEE format to ASP IESP 10 (default) format DPO Field Use prohibited 11 Pointer modification operation WI Field (18, 17) No operation (NOP) 000 Specification of transfer format when data Increment base pointer 0 INCBPO 001 is moved from IB to WR Decrement base pointer 0 DECBPO 010 No change of specification (NON) 00 Clear base pointer 0 CLRBPO 011 Transfer low 24 bits of mantissa to high BWRL24 01 24 bits Store base+ index to index register 0 STIXO 100 Ordinary transfer (default) BWRORD 10 Increment index register 0 INCIXO 101 Use prohibited 11 Decrement index register 0 DECIXO 110 Clear index register 0 CLRIXO 111 WT Field (21-19) Specification of transfer format when data DP1 Field is moved from WR to IB Pointer modification operation No change of specification (NON) 000 No operation (NOP) 000 Ordinary transfer (default) WRBORD 001 Increment base pointer 1 INCBP1 001 Low 24 bits of mantissa to high 24 WRBL24 010 Decrement base pointer 1 DECBP1 010 Low 23 bits (bit 23 = 0) to high 24 WRBL23 011 Clear base pointer 1 CLRBP1 011 Exponent part to mantissa low 8 bits WRBELB 100 Store base+ index to index register 1 STIX1 100 Mantissa low 8 bits to exponent part WRBLBE 101 Increment index register 1 INCIX1 101 Exchange high 8 bits of mantissa with WRBXCH 110 Decrement index register 1 DECIX1 110 low 8 bits of mantissa Clear index register 1 CLRIX1 111 Bit reverse entire mantissa WRBBRV 111 2-91 µPD77230/77P230 NEC Table 4. Control Field Mnemonic Summary (cont) Operation Mnemonic Code Operation Mnemonic Code NF Field (21-19) P2 Bit (20) Normalization format specification P2 pin control (slave mode only) No change of specification (NON) 000 Clear output port pin 2 CLRP2 Truncating normalization (default) TRNORM 010 Set output port pin 2 SETP2 Rounding normalization RDNORM 100 P3 Bit (21) Convert floating to fixed point FLTFIX 110 P3 pin control (slave mode only) Fixed point multiple alignment FIXMA 111 Clear output port pin 3 CLRP3 (multiple value is in SVR) Set output port pin 3 SETP3 SHV Field (21-15) L Bit (16) Set shift value to SVR Loop counter operation imm bits left shift (default) SETSVL imm O(imm)B No operation (NOP) 0 imm bits right shift SETSVR imm 1 (imm)B Decrement loop counter DEC LC *o::; imm::; 46 HAL Bit (23-15) RW Field (21, 20) Local branch; jump to imm address in JBLK imm (imm)B Operation for external data memory local block No operation (NOP) 00 *o::; imm::; 511 Read RD 01 Write WR 10 Use prohibited 11 EA Field (22, 21) Operation for external address register No operation (NOP) 00 Increment external address register INCAR 01 Decrement external address register DE CAR 10 Use prohibited 11 2-92 NEC µPD77230/77P230 Table 5. Control Field Instruction Combinations Case 1 SPCBPO SPCBP1 IN CB PO INCBP1 SPCIXO SPCIX1 DECBPO DECBP1 SPCBIO SPCBl1 CLRBPO CLRBP1 STIXO STIX1 INCIXO INCIX1 DECIXO DECIX1 CLRIXO CLRIX1 Case 2 INCAR INCBPO INCBP1 DECAR DECBPO DECBP1 CLRBPO CLRBP1 STIXO STIX1 INCIXO INCIX1 DECIXO DECIX1 CLRIXO CLRIX1 Case 3 INCRP SPCBPO INCBPO XCHPSW DECRP SPCIXO DECBPO IN CB RP SPCBIO CLRBPO STIXO INCIXO DECIXO CLRIXO Case 4 INCRP SPCBP1 INCBP1 XCHPSW DEC RP SPCIX1 DECBP1 INCBRP SPCBl1 CLRBP1 STIX1 INCIX1 DECIX1 CLRIX1 Case 5 INCRP SPCBPO SPCBP1 DEC LC XCHPSW DEC RP SPCIXO SPCIX1 IN CB RP SPCBIO SPCB11 Case 6 MCNBPO imm MCNBP1 imm XCHPSW Case 7 BITRP imm DEC LC XCHPSW Case 8 CLRP2 CLRP3 El CLRBM DEC LC XCHPSW SETP2 SETP3 DI SETBM Case 9 RD DECLC XCHPSW SR Case 10 WRBORD DEC LC XCHPSW WRBL24 WRBL23 WRBEL8 WRBL8E WR BX CH WRBBRV Case 11 TRNORM BWRL24 DECLC XCHPSW RDNORM BWRORD FLT FIX FIXMA Case 12 SPCPSWO SPIE DEC LC SPCPSW1 IESP CLRPSWO CLRPSW1 CLRPSW Case 13 SETSVL imm SETSVR imm Case 14 SPCRA imm Case 15 JBLK imm 2-93 µPD77230/77P230 NEC Table 6. P Field Specifications LOI Instruction Mnemonic PField (14, 13) Input of P Register Figure 4 shows the format of the LOI instruction type. IB 00 Internal bus The 24-bit IM (immediate) field contains the data that M 01 Multiplier output register will be loaded into the register specified by the DST field. It is also possible to load a 32-bit floating-point RAMO 10 RAM block 0 number using this instruction in conjunction with the RAM1 11 RAM block 1 TRE destination field specification. Q Field Table 8. SRC Field Specifications Mnemonic SRC Field (9-5) Selected Source Register The three-bit Q field specifies the source of input to the Q register, which is the other of two ALU input NON 00000 No source selected registers. See table 7. RP 00001 ROM pointer PSWO 00010 Program status word 0 Table 7. Q Field Specifications PSW1 00011 Program status word 1 Mnemonic QField (12-10) Register SVR 00100 SVR (shift value register) WRO 000 Working register 0 SR 00101 Status register WR1 001 Working register 1 LC 00110 Loop counter WR2 010 Working register 2 STK 00111 Top of stack WR3 011 Working register 3 M 01000 M register (multiplier output) WR4 100 Working register 4 ML 01001 Low 24 bits of M register WR5 101 Working register 5 ROM 01010 Data ROM output WR6 110 Working register 6 TR 01011 Temporary register WR7 111 Working register 7 AR 01100 External address register SI 01101 Serial input register Source Field DR 01110 Data register Table 8 lists 32 source registers that may be specified DRS 01111 Data register for slave in the source field. WRO 10000 Working register 0 Destination Field WR1 10001 Working register 1 WR2 10010 Working register 2 Table 9 lists 32 destinations that may be specified in the DST field. Note that the LKRO and KLR1 specifications WR3 10011 Working register 3 will simultaneously load, as destinations, both the K WR4 10100 Working register 4 and L registers. WR5 10101 Working register 5 WR6 10110 Working register 6 Branch Instruction WR7 10111 Working register 7 The branch instruction type is used for a jump, condi- RAMO 11000 RAM block 0 tional jump, call, or return. The format of the branch instruction is shown in figure 4. The destination address RAM1 11001 RAM block 1 of the branch is contained in the 13-bit NA field. Note BPO 11010 Base pointer 0 that the most significant bit of the NA field is used to BP1 11011 Base pointer 1 determine whether the destination address is in internal IXO 11100 Index register 0 or external instruction memory. The five-bit C field summarized in table 1O determines the nature of the IX1 11101 Index register 1 branch. K 11110 K register Note also that an SRC and DST may be included as part L 11111 L register of the branch instruction. This data transfer will take place regardless of any condition upon which a jump may be dependent. 2-94 NEC µPD77230/77P230 Table 9. DST Field Specifications Table 10. Branch Condition Summary (C Field) Mnemonic DST Field (4-0) Selected Destination Register Mnemonic CField (14-10) Jump with Condition NON 00000 No destination selected JMP 00000 Jump unconditionally RP 00001 ROM pointer CALL 00001 Subroutine call PSWO 00010 Program status word 0 RET 00010 Return from interrupt or subroutine PSW1 00011 Program status word 1 JNZRP 00011 Jump if ROM pointer not zero SVR 00100 SVR (shift value register) JZO 00100 Jump if zero flag 0 is set SR 00101 Status register JNZO 00101 Jump if zero flag 0 is reset LC 00110 Loop counter JZ1 00110 Jump if zero flag 1 is set STK 00111 Top of stack JNZ1 00111 Jump if zero flag 1 is reset LKRO 01000 L register (RAM 0 to K register) JCO 01000 Jump if carry flag 0 is set KLR1 01001 K register (RAM 1 to L register) JNCO 01001 Jump if carry flag 0 is reset TRE 01010 Exponent part of temporary register JC1 01010 Jump if carry flag 1 is set TR 01011 Temporary register JNC1 01011 Jump if carry flag 1 is reset AR 01100 External address register JSO 01100 Jump if sign flag 0 is set so 01101 Serial output register JNSO 01101 Jump if sign flag 0 is reset DR 01110 Data register JS1 01110 Jump if sign flag 1 is set DRS 01111 Data register for slave JNS1 01111 Jump if sign flag 1 is reset WRO 10000 Working register 0 JVO 10000 Jump if overflow flag 0 is set WR1 10001 Working register 1 JNVO 10001 Jump if overflow flag 0 is reset WR2 10010 Working register 2 JV1 10010 Jump if overflow flag 1 is set WR3 10011 Working register 3 JNV1 10011 Jump if overflow flag 1 is reset WR4 10100 Working register 4 JEVO 10100 Jump if exponent overflow flag 0 is set WRS 10101 Working register 5 JEV1 10101 Jump if exponent overflow flag 1 is set WR6 10110 Working register 6 JNFSI 10110 Jump if SI register is not full WR? 10111 Working register 7 JNESO 10111 Jump if SO register is not empty RAMO 11000 RAM block 0 JIPO 11000 Jump if input port 0 is on RAM1 11001 RAM block 1 JIP1 11001 Jump if input port 1 is on BPO 11010 Base pointer 0 JNZIXO 11010 Jump if index register 0 nonzero BP1 11011 Base pointer 1 JNZIX1 11011 Jump if index register 1 nonzero IXO 11100 Index register 0 JNZBPO 11100 Jump if base pointer 0 nonzero IX1 11101 Index register 1 JNZBP1 11101 Jump if base pointer 1 nonzero K 11110 K register JRDY 11110 Jump if ready is on L 11111 L register JROM 11111 Jump if request for master is on 2-95 µPD77230/77P230 NEC System Configurations Figure 8 shows a µPD77230 in a slave mode as a per- ipheral to a host processor. Note that in slave mode, the The µPD77230 may be configured in a variety of ways, µPD77230 can still be the "master" of its local bus with from simple systems to complex. Figure 6 is the the four general-purpose 1/0 pins available for use. simplest example showing the µPD77230 as a stand- alone processor performing a preset filtering function. Figure 9 shows how to cascade multiple µPD77230s to The only other devices needed are AID and DIA increase system throughput. The cascading is done by converters, which can be a single-chip combo device using only the serial ports so that the µPD77230s as shown in the figure plus necessary clock and timing themselves can be in any mode of operation desired. circuitry. Figure 7 shows the same stand-alone opera- For example, they may all be in master mode, they may tion with external memory and memory-mapped 110 to all be slaves to the same host processor, they may all be implement various control functions along with pro- slaves to different hosts, or one may be the master with cessing the signal itself. the others as slaves to it. Figure 6. Stand-Alone µPD 77230 with Codec Figure 8. Slave µPD77230 as Peripheral to Host Processor µPD77230 Clock SI SO and Timing Control Dx Analog Codec/ Input Fiiter Combo L-------Analog Output Host Data Bus (16] 83-003774A High Local and Address Bus (13] Low Figure 7. Stand-Alone µPD 77230 with Codec, ~~~~ Local Data Bus (8] µPD77230 Slave Mode External Memory, and 110 Data Clock Memory SI and Timing Control Dx Codec/ Analog Input Filter Low-Speed Combo Data Memory B3-003776A Figure 9. µPD77230s Cascaded Through Serial 110 Ports so SI µPD77230 µPD77230 Clock and SI so Timing SI Control A/D Codec Converter or Dx or D/A Codec Converter Analog Codec/ Input Filter 1----Analog Output Combo B3-003775A Analog In Analog Out 83-003777A 2-96 NEC µPD77230/77P230 Figure 10. Large System with Many Options Memory- Real Mapped World 1/0 Address and Control Bus oata Bus L--.-------,-------.------;---;----r---.----,---:r---1---:r- Analo.!!_ A/D D/A Analog Memory In Converter Converter Out Local Local Local Memory Memory Memory µPD77230 Master Mode 83-0037788 Figure 10 shows an arbitrarily large system with cas- Support Tools cading master mode and slave mode µPD77230s. In The µPD77230 has a wide variety of development and this example, the master µPD77230 might do little software support tools. Both absolute and relocatable actual signal processing. Instead, it will be an overall assemblers, with powerful pre-assembler options are system controller gathering information from inputs in available. In addition, a software simulator and in- the 1/0 block, from the slave µPD77230 1/0 ports, and circuit emulator will aid the designer in performance from its own processing of the signal. It will then evaluation and hardware integration. The software control the other µPD77230s and the system outputs of tools options are as follows: the 1/0 block. • Assembler: MS-DOS, CP/M-86, VAX VMS, VAX UNIX • Simulator: VAX VMS, VAX UNIX 2-97 µPD77230/77P230 NEC Absolute Maximum Ratings Capacitance TA= 25•c TA= 25°C; v 00 = o v Supply voltage, Voo -0.5 to +6.5 V Limits Voltage on any input pin, V1 -0.5 to Voo + 0.5 v Parameter Symbol Min Typ Max Unit Test Conditions Voltage on any output pin, Vo -0.5 to Voo + 0.5 v Input capacitance C1N 10 pF fc = 1 MHz Storage temperature, TSTG -65 to + 150 °c Output capacitance CouT 20 pF Note: Voltages are with respect to ground. Clock Timing Recommended Operating Conditions Internal Clock Limits TA= -10 to +10°c; v 00 = 5 v ±5% Parameter Symbol Min Typ Max Unit Limits Supply voltage Voo 4.75 5.0 5.25 v Parameter Symbol Min Typ Max Unit Test Conditions Low-level input V1L -0.3 0.8 v Input clock fcvx 13.3333 13.513 MHz See diagram voltage frequency below High-level input V1H 2.2 v00 + 0.3 v C1, C2 15 pF voltage capacitance Low-level X1 V1LX -0.3 0.5 v input voltage High-level X1 V1HX 3.9 Voo + 0.3 v input voltage Operating free-air TopT -10 25 70 •c dC2 temperature DC Characteristics TA= -10 to +10°c; v 00 = 5 v ±5% External Clock Limits TA= -10 to +10°c; v 00 = 5 v ±5% Parameter Symbol Min Typ Max Unit Test Conditions Limits Low-level 0.45 v loL = 2.0 mA Parameter Symbol Min Typ Max Unit Test Conditions Vol output voltage X1 cycle time tcvx 74 75 1000 ns See diagram High-level VoH 0.7V00 v loH =-400µA below; meas- X1 high pulse txxH 27 ns output voltage ured at 1.0 V width and 3.0 V Low-level l1L -400 µA V1N = OV; RESET, X1 low pulse txxL 27 ns input current SICK, SOCK width High-level l1H 400 µA V1N = Voo; M /S X1 rise time txR 10 ns input current X1 fall time txF 10 ns Low-level input luL -10 µA V1N = OV, except leak current RESET, SICK, SICK, SOCK tcvs 242 244 ns SOCK cycle time High-level input luH 10 µA V1N = Voo. SICK, SOCK high tssH 101 ns leak current except°M/S pulse width SICK, SOCK low tssL 101 ns Low-level out- ILOL -10 µA VouT = ov pulse width put leak current High-level out- ILOH SICK, SOCK tsR 20 ns 10 µA VouT = Voo rise time put leak current X1 input current l1x1 SICK, SOCK tsF 20 ns 400 µA External clock fall time input Supply current loo 200 300 mA fcvx =13.3333 Ext Clk MHz NC 2-98 t\'EC µPD77230/77P230 Clock Timing (cont) Switching TA= -10 to +10°c; v00 = 5 v ±5%; CL= 100 pF Switching TA= -10 to +70°C; v00 = 5 V ±5%; CL= 100 pF Limits Limits Parameter Symbol Min Max Unit Test Conditions Parameter Symbol Min Max Unit X1 t ..... RD toxRD 70 ns delay time X1 t ..... CLKOUT toxc 50 ns delay time X1 t -WR toxwR 70 ns delay time X1 t ..... CLKOUT tHXC 0 ns hold time Address setup tsAR tcvx-60 ns SCK cycle time SCK high pulse width SCK low pulse tcvs tssH tssL Btcvx 4tcvx - 65 4tcvx-65 ns ns ns time for RD Address hold time for RD RD pulse width tHRA twRI 5 tcvx-30 ns ns Instruction read El width twR1 3tcvx-30 ns High-speed SCK rise time 20 ns twR2 7tcvx-30 ns Low-speed tsR SCK fall time 20 ns Address setup ts AW tcvx-55 ns tsF time for WR S1 ..... SCK t delay toxs 10 120 ns time Address hold tHWA 5 ns time for WR WR pulse width tww1 3tcvx-50 ns High-speed External Memory Access Timing tww2 7tcvx-50 ns Low-speed Setup and Hold TA= -10 to +70°C; Voo = 5 V ±5% Data setup time tsow1 3tcvx-100 ns High-speed for WR Limits tsow2 7tcvx-100 ns Low-speed WR! ..... Data towo 0 ns Parameter Symbol Min Max Unit Test Conditions delay time Data setup time tsADI 2tcvx-95 ns Instruction read WR t ..... Data tFWD 10 50 ns for address float time Data setup time tsRDI 2tcvx-35 ns for RD RD, WR tRv tcvx-35 ns recovery time Data hold time tHRDI ns for RD Data setup time 4tcvx-135 ns High-speed Host Interface Timing, Slave Mode tsAD1 for Address Setup and Hold tsAD2 Btcvx-135 ns Low-speed TA= -10 to +70°C; Voo = 5 V ±5% Data setup time tsRD1 3tcvx- 75 ns High-speed for RD Limits tsRD2 Btcvx- 75 ns Low-speed Parameter Symbol Min Max Unit Data hold time tHRD 0 ns for RD CS setup time for HRD tscR 0 ns CS hold time for HRD tHRC 0 ns HRD pulse width twHRD 150 ns CS setup time for HWR ts cw 0 ns CS hold time for HWR tHWC 0 ns HWR pulse width twHWR 150 ns Data setup time for HWR ts1Hw 100 ns Data hold time for HWR tHHWI 0 ns HRD, HWR recovery time tHRV 100 ns HRD, HWR hold time for RQM tHRH tcvx ns PO, P1 setup time for X1 tspx tcvx ns PO, P1 hold time for X1 tHXP tcvx ns 2-99 µPD77230/77P230 NEC Host Interface Timing, Slave Mode (cont) Timing Measurement Points Switching Input TA= -10 to +70°C; v00 = 5 V ±5%; CL= 100 pF 2.4V 2.2V 2.2V Limits o.sv o.sv Parameter Symbol Min Max Unit 0.4V HRD I - Data delay time toHRI 100 ns HRD t - Data float time tFHRI 10 65 ns X1 t - ROM t delay time toxRH 100 ns Output X1 t - ROM l delay time toxRL 100 ns 2.2V 2.2V o.sv o.sv HRD, HWR I - ROM l to HR 2tcvx + 100 ns 49-001649A delay time X1 t - P2, P3 delay time toxP 100 ns Clock Timing Waveforms Interrupt Reset Timing Master Clock TA= -10 to +10°c; v00 = 5 V ±5% Limits Parameter Symbol Min Max Unit X1 NMI, INT pulse width t1NT 6tcvx ns NMI, INT hold time tHRNI 6tcvx ns for RESET I NMI, INT recovery time tRINT 6tcvx ns Clock Output RESET pulse width tRST 6tcvx ns Serial Interface Timing Setup and Hold TA= -10 to +10°c; v00 = 5 V ±5% Limits Parameter Symbol Min Max Unit SIEN, SI setup time for SCK I tss1s 55 ns 49-001647A SIEN, SI hold time for SCK I tHSSI 30 ns SOEN setup time for SCK t tssEs 50 ns SOEN hold time for SCK tHSSE 30 ns SIEN, SOEN recovery time tsRv tcvs ns Switching TA =-10 to +10°c; v00 = 5 v ±5%; CL= 100 pF limits Parameter Symbol Min Max Unit SCK I - SORO delay time toss a 30 150 ns SOEN 1- SO delay time tosESO 60 ns SOEN t ..... SO float time tFSESO 10 100 ns SCK t - SO delay time tosLSO 60 ns SCK t - SO hold time tHSHSO 0 ns SCK t - SO delay time tosHSO 60 ns SCK t - SO float tFSso 10 100 ns time (SORO I) 2-100 NEC µPD77230/77P230 Clock Timing Waveforms (cont) Switching --------tssH------- 14------tssL-------+1 Notes: [1] SCK is an output [2] SICK and SOCK are inputs [asynchronous with X1] 49-0016488 External Memory Access Timing Waveforms Instruction Read (Master) 49-0016528 2-101 µPD77230/77P230 t-IEC External Memory Access Timing Waveforms {cont) Data Read X1 CLKOUT toxRD-l r- toxRD--J r- A11-A0, A x - - - - - . . ____ I ____ K....------ tHRA [~ twR1,twR2 ... t tsRD1' tsRD2 tsAD1 • tsAD2 1 D31-Do [1] D7-Do [2] ------r-----<~~_,. --~~~,--- -- - -- -- -- ------ -- -- -_..... _ (,_ _ _ _ _ _ __ Notes: [1] Master mode [2] Slave mode 49-0016518 2-102 NEC µPD77230/77P230 External Memory Access Timing Waveforms (cont) Data Write X1 CLKOUT A11-Ao,AX - - - - - toxwR-1 I toxwR-1 ·----;..----u-----.......,K.------------ tsAw tHwA ii.= tww1,tww2 i.-to_w_o_,___tsow1, tsow2 Notes: [1] Master mode [2] Slave mode 49-0016508 Read-- Write \--{.~=\_ _ 49-0016568 Write ...... Read \~-{. =\~ 49-0016578 2-103 µPD77230/77P230 NEC Host Interface Timing Waveforms, Slave Mode RQM Port X1 CLKOUT \ I \ I \ I \ I RQM HRD,HWR Po,P1 I E···· ···1 .1. 1. ~ lDXP P2,P3 49-0016608 Host Read Host Write ~~ i ~:J tscR twHRD lHRC lHRV tscw _ lWHRD lHWC i lHRV HAD HWR 1015-100 fSIHW rHWI 49-001658A 1015-IOo 49-001659A 2-104 t\'EC µPD77230/77P230 Interrupt Reset Timing Waveform Reset IRINT Interrupt 49-0016618 Serial Interface Timing Waveforms Serial In tcvs t~HISIHSS~, SCK [SICK] SI 49-001662A Serial Out, Case 1 (SOEN interrupt control) tcvs SCK SOEN I ts RV I ~ tDSSQ SORQ so ~ tHSHSO Valid . .J Valid 49-0016538 2-105 µPD77230/77P230 NEC Serial Interface Timing Waveforms (cont) Serial Out, Case 2 (SOEN control: SOEN low at SCK low) SCK ~I tssEs tDSSQ I SORQ tDSESO so--------<1 jJ•osHso J tHSHSO Valid tFsso Valid 49-0016548 Serial Out, Case 3 (SOEN control: SOEN low at SCK high) SCK SORQ ·~··j f------~J' J. ___ , t--~-' tDSLSOl-i ~- 't tDSHSO tHSHSO tFsso so - - - - - - - - - - - - - . Valid 49-0016558 2-106 N'EC NEC Electronics Inc. µPD77810 Modem Digital Signal Processor Description o Modem Function Block - Built-in scrambler and descrambler The µ.PD77810 is a CMOS 16-bit signal processor de- CCITT V Series Recommendations signed for modem applications. It provides a compact Built-in hardware for the V.22, V.22bis, V.26, digital signal processing system for modulation and V.27, V.27bis, V.27ter, V.29 and V.32 demodulation and features low power consumption and - Built-in transmit and receive Plls high reliability at low cost. The µ.PD77810 consists of a (TxPLL and RxPLL) dual processor and a modem function block. The dual - Built-in synchronous/asynchronous serial processor comprises a µ.PD77C25 digital signal proces- communication interfaces (ASC, SAC, and UART) sor (DSP) and µ.COM78K/I general purpose processor - Built-in A/D and DIA converter serial interfaces (GPP). (8 or 16 bits) The µ.PD77810 is software compatible with both the o Software Compatibility µ.PD77C25 and µ.COM78K/I families. - DSP (µ.PD77C25) Compatible at assembler source program level Features Upward compatible with the µ.PD7720 at assembler source program level o Dual Processor -GPP (µ.COM78K/I) - DSP (µ.PD77C25) Compatible at assembler source program level Minimum instruction execution time o Built-in clock generator (11.0592 MHz) (181 ns with 5.5296 MHz clock) D CMOS Dedicated built-in 16-bit multiplier (31 bits) o Single +5 V power supply Instruction ROM (2048 words x 24 bits) o 68-pin PLCC Data ROM (1024 words x 16 bits) o 68-pin PGA Data RAM (256 words x 16 bits) - GPP (µ.COM78K/I) Ordering Information Minimum instruction execution time (362 ns with 5.5296 MHz clock) Part Number Package Type Memory mapped built-in peripheral hardware µPD77810L 68-pin PLCC (special function register) µPD77810R 68-pin PGA Powerful interrupt functions Non-maskable interrupt (1 type) Maskable interrupt (9 types) Internal ROM (16,384 words x 8 bits) Internal RAM (192 words x 8 bits) Control RAM (16 words x 8 bits) 50122 2-107 11PD77810 NEC Pin Configurations 68-PinPLCC ~i z 0 6 0 - ~,f- ::::> Ul a.. a: ~ z0 -zl~ 0 tn 6 ...J 0 0 o,~ ~ 0...J x xC\I C!l <0 0< <0 0< 0< 0< u.. C\I ~ u.. u.. a.. a.. a.. Ol co --_x==LSB-=r~CK 83ML-5844B Serial Output S02 S02ST S02 2-114 NEC µPD77810 Block Diagram TxD CLKt i XI r·••••'"'--"'::~f8~;;··· ·~···· ~i RxD RT I PC INT-ROM RB AUD 16Kx8 ADST ADCK SBAUD STINT ST EXT DALO L--~..1...-~~--i...~~--~I 8 -Ro/PC5 - WR/PC5 EJ DACK - Cs/PC4 L /1:-1 Ao-A3 ~ PC0-PC3 DAOT Sl1 S01 S1CK Sl1EN S01EN S01RQ ~ ~-INT -RST ADIN-----~ M -voo -GND S02ST ------~--, S02 -------:;...., DSP (µPD77C25) 83ML5820B 2-115 1£PD77810 NEC ,iPD77810 Functional Units Figure 1 shows an overview of the µ.PD77810. Figure 2 shows the functional pin groups of the µ.PD77810. The µ.PD77810 contains the following functional units: DSP FUNCTIONAL DESCRIPTION • DSP (µ.PD77C25) Figure 3 is the block diagram of the DSP. The DSP • GPP (µ.COM78K/I) consists of the following: • Modem Function Block • Multiplier -Timers: WDTMR and TMR • ALU Peripheral - Control RAM - Scrambler and Descrambler • Data Memory with Data ROM and RAM - UART, SAC, and ASC • Instruction ROM - Phase-Locked Loops: TxPLL and RxPLL - Interface to A/D and D/A • Parallel Interface -Serial 1/0 • Serial Interface - Parallel 1/0 • G-bus Interface Figure 1. Overview of the µPD77B10 TxD UART, TMRA CLKO SAC,ASC TMRB Clock Generator XO WDTMR X1 GPP INT PortB PB0-PB7 511 S01 S1CK Serial Sl1EN S01EN Interface PortE 1-- PE S01RQ DSP ~PF0-PD2 - AST -voo S02ST -GND ADIN S02 83ML·5975B 2-116 NEC 11PD77810 Figure 2. Functional Pin Groups of the µPD77810 DSP Internal Functions 11 .0592 MHz +5 V Instruction ROM. The instruction ROM is a 2048 word x 24 bit mask programmable ROM that stores programs. Its addressing is generated by the Program Counter X1 X2 Voo (PC). PA0-PA7 CLKO Clock Out AST Program Counter [PC]. The program counter is an PB0-PB7 INT 11-bit binary counter that addresses the instruction ROM. The PC is incremented during every instruction PE TxD fetch cycle and instructions are read from the ROM PF0-PF2 STEXT sequentially. When a jump or subroutine call instruction Parallel STINT is executed, the contents of the address field (NA field) Port PCo-PCe SBAUD of the instruction are transferred to the PC. When a return instruction is executed, the contents of the stack PD0-PD7 RxD Receive Data register are transferred to the PC and when a interrupt is RT Interface Ao-A3 RBAUD } Control issued, the fixed address 100H is transferred.During a cs reset, the PC is set to the start address OOOH. RiS Stack. The 4 x 11 bit stack memory stores the return WR address when a subroutine call instruction is executed ADIN or an interrupt is issued. It has a four-level last-inf irst-out ADST (LIFO) memory. When a return instruction is executed, ~} ADCK Sl1 the return address is read from the stack memory to the S02 S01 PC. S02ST Sl1EN Serial 1/0 DAOT S01EN Port RAM. The 256 word x 16 bit RAM stores data. Its address DALO S01RQ is set by the data pointer (DP). Data is transferred DACK GND S1CK between the RAM and internal data bus and also to the AW P input. Data at the RAM address specified as DPs = 1 can be directly output to the K register. 83ML-5B46A Data Pointer [DP]. The 8-bit data pointer specifies the Differences Between the ,iPD77810 and ,iPD7720 RAM address. The DP is connected to the low-order and ,iPD77C25 Families. eight bits of the internal data bus and is transferred to and from other registers via the bus. The DSP was designed on the basis of the µPD7720 and µPD77C25 16-bit signal processor families, allowing the µPD77810 to be compatible with these families at the assembler source program level. Table 1 lists the differ- ences between the µPD77810 and the µPD7720 and µPD77C25 families. 2-117 ,iPD77810 NEC Figure 3. DSP Block Diagram Instruction Data Multiplier ROM RAM 16X16~1 2048 x24 256,x 16 INT ADST Stack 11 bits x 4 levels G-Bus s s c z v0 v0 Data FLAG A A A A A A A ROM 1 0 1024x16 1 0 s s c z v0 v0 FLAGB B B B B B 8 CLK - 1 0 1 0 RST- FF63H 83ML-5834B Table 1. Differences Between the µPD77810 and the µPD7720 and µPD77C25 Families Member 11PD7720 11PD77C25 11PD77810 DSP Memory Instruction ROM 512 x 23 bits 204S x 24 bits 2048 x 24 bits Data ROM 510 x 13 bits 1024 x 16 bits 1024 x 16 bits RAM 12S x 16 bits 256 x 16 bits 256 x 16 bits Registers PC 9 bits 11 bits 11 bits STACK 9 bits x 4 levels 11 bits x 4 levels 11 bits x 4 levels RP 9 bits 10 bits 10 bits RO 13 bits 16 bits 16 bits DP 7 bits S bits S bits Additional register TRB TRB Instruction length 23 bits 24 bits 24 bits (DPHJ'M field, 3 bits) (DPHJ'M field, 4 bits) (DPHJ'M field, 4 bits) Additional instruction JDPLNO JDPLNO JDPLNF JDPLNF MS-MF MS-MF (DP modified) (DP modified) 2-118 NEC 1£PD77810 Table 1. Differences Between the µPD77810 and the µPD7720 and µPD77C25 Families (cont) Member 14PD77C25 OMA mode Available Available Unavailable Operation clock 8.192 MHz 8.192 MHz 5.5296 MHz (instruction cycle) (244 ns) (122 ns) (181 ns) Other • SR (status register) bits o and 1 have been changed to RxPLL decremental data setting port output. • SR (status register) bit 11 has been changed to USFO. The high-order four bits (D PH) of DP can be modified by K and L Registers. The K and L registers are 16-bit exclusive OR of four bits of the DPH/M field in an registers that store the multiplier and multiplicand that instruction. are to be input to the multiplier: The K register also inputs RAM output data and the L register inputs data ROM The low-order four bits (D PL) of DP are assigned to an output data. Immediately after input data is set in the K increment/decrement counter: The DP increments, dec- and L registers, it is input to the multiplier for processing. rements, or clears D PL field of an instruction. Mand N Registers. The Mand N registers are multiplier Data ROM. The 1024 word x 16 bits mask ROM stores output registers. Of the multiplier result , the signed bit fixed data; for example, digital filter coefficients and and the high-order 15 bits are output to the M register data used to decode µ.-law or A-law compressed non- and the low-order 15 bits are output to the high-order of linear data. The data ROM address is set by the RP the N register: Bit Oof the N register is set to O. The M and register: ROM data is output to the internal data bus via N register output is connected to the ALU P input. the RO register: ALU, AccA and Ace B. The ALU is a 16-bit arithmetic Addresses O and 1 that were not accessible to the and logical unit, which performs the following opera- µ.PD7720 family user are available for the µ.PD77810. tions for its P and Q data inputs: ROM Pointer [RP]. The ROM pointer specifies the data -OR ROM address. RP consists of a 10-bit decrement counter: -AND It can transfer data to and from the low-order ten bits of - XOR (Exel usive OR) the internal data. The RP register can be decremented by -SUB the RPDCR bit of an instruction. -ADD - Shift [AccA. AccB only] ROM Output Buffer [RO]. The ROM output buffer (RO) - 1's complement [AccA• AccB only] is a 16-bit register that stores the ROM output data. RO data is output to the internal data bus or directly output P input: RAM, internal data bus, M register, N register, to the L register: shift register, OOOOH Q input: AccA. AccB Multiplier. The parallel multiplier using the Second Or- der Booth algorithms multiplies 16-bit data of two's AccA and AccB are 16-bit registers that store the result compliments notation. The result is a sign bit plus 30 bits of the ALU operation. It can also input data from the of data. The sign bit plus the low-order 15 bits are output internal data bus. The ASL bit of an instruction specifies to the M register and the lower-order 15 bits without the whether the ALU output is input to AccA or AccB. sign bit are output to the high-order of the N register. Bit Register data can be output to the internal data bus or to O of the N register is set to 0. The multiplier inputs data the shift register together with the ALU Q input. from the Kand L registers. 2-119 ,iPD77810 NEC Shift. The shift register shifts 16-bits of data that is input Table 2. Rags Changed by Results of AW from AccA and AccB. One-bit right shifting, left $hifting Operations on one-, two, and four bit basis, and 8-bit replacement SA1/ SAO/ CA/ ZA/ OVA1/ OVAO/ are available. Mnemonic SB1 SBO CB ZB OVB1 OVBO Flag A and Flag B Registers. Flag A is a register used to NOP • • • • • • store flags generated when AccA is selected. Similarly, OR x $ 0 $ 0 0 flag B is the register which stores flags when AccB is AND x $ 0 $ 0 0 selected. Table 2 shows the flags changed by the results of ALU operations. The flag A and flag B register contain XOR x $ 0 $ 0 0 flag bits as shown below. SUB $ $ $ $ $ $ ADD $ $ $ $ $ $ FLAGAI~s_A_1__.__s_A_o_,___c_A__.__ZA __~o_v._~_1~j---ov._~~ol SBB $ $ $ $ $ $ ADC $ $ FLAGsl~s_s_1__.__s_so~...__c_s__..__z_s__._o_v_s_1~j---ov_s~ol $ $ $ $ DEC $ $ $ $ $ $ CA and CB [Carry]: CA and CB are flags that store the INC $ $ $ $ $ $ carries that occur from the results of an operation. The CMP x $ 0 $ 0 0 operations are SUB, ADD, SB B, ADC, DEC, and INC. SHR1 x $ $ $ 0 0 ZA and ZB [Zero]: When data to be stored in the Ace is SHL1 x $ $ $ 0 0 o after an operation, excluding NOP, a 1 is set in the ZA SHL2 x $ 0 $ 0 0 or ZB flag. SHL4 x $ 0 $ 0 0 SAO and SBO [Sign O]: SAO and SBO store the MSB of the XCHG x $ 0 $ 0 0 data to be stored in Acc. when an operation excluding NOP is executed. Symbols: $ = The flag is changed by the result of operation. OVAO and OVBO [Overflow O]: OVAO and OVBO store the •= The flag remains unchanged. exclusive ORed results of carries that occur in ALU bits O= Flag is reset. 15 and 14 when SUB, ADD, SBB, ADC, DEC, or INC is X = Undefined executed. Temporary Register [TR and TRB].TR and TRB are OVA1 and OVB1 [Overflow 1]: OVA1 and OVB1 flags are 16-bit general-purpose registers that can be used to designed for effective overflow processing from the latch data temporarily. · results of up to three operations. The operations are Sign Register [SGN].The SGN register stores 8000H SUB, ADD, SB B, ADC, DEC, and INC. when the SA1 flag is O and 7FFFH when it is 1. If an SA1 and SB1 [Sign1]: SA1 and SB1 are used in conjunc- overflow occurs, overflow correction can be performed tion with OVA 1 and OVB 1 flags. The flags are designed with only one instruction. for effective overflow processing and indicate the direc- Status Register [SR].The SR register stores interface tion in which the overflow occurred. information for the GPP. Internally, it is handled as a 16-bit register. Of the 16 bits of data, eight bits can be read by the GPP by specifying the SFR address FF62H or FF6H. 2-120 NEC µ,PD77810 The SR register consists of 16-bits as shown below. to the internal data bus with an instruction. Serial data MSB LSB can be handled from either the LSB or MSB. IRQM I USF2 I USF1 I DRS I USFO I DRC soc SIC I Serial Output Register [SO]. The SO register loads parallel data to be output from the internal data bus, MSB LSB converts to serial data, and outputs to an external unit. I El 0 0 0 0 0 RF1 RFO I Serial data can be handled from the either the LSB or MSB. It is output at the rising edge of the ADCK serial RFO and RF 1: RFO and RF 1 correspond to output ports clock. RFO and RF 1. The values set in the bits are output Interrupt. An interrupt is accepted with an instruction directly to the ports. from the GPP, when interrupt is enabled (El bit of SR Bits RFO and RF1 specify the value to be set in the register = 1). Program control jumps to the interrupt decrementer in RxPLL of the modem function block. address 100H and executes an interrupt process. El [Enable Interrupt]: The El bit specifies whether an Reset [RST]. RST initializes the following by SFR interrupt request input to the INT pin is enabled. INTDSPO (0) of the GPP: o =Disabled •PC 1 = Enabled • Flags A and B SIC [SI Control]: The SIC bit specifies the length of serial data to be input to the ADIN AID conversion input pin. • SR register O = Serial input data is 16 bits • ADSI ASK flag and SO ACK flag 1 = Serial input data is 8 bits SOC [SO Control]: The SOC bit specifies the length of DSP Instructions serial data to be output to the SO serial output pin. All DSP instructions consist of a single 24-bit word. Four o = Serial output data is 16 bits types of instructions are available and are distinguished 1 = Serial output data is 8 bits by the OP code which are the highest two bits of an DRC [DR Control]: The DRC bit sets the DR register instruction. configuration for GPP as eight or 16 bits. •OP instruction: Normal operations and transfer O = The DR register is treated as a 16-bit register 1 = The DR register is treated as a 8-bit register. • RT instruction: Return instruction DRS [DR Status]: The DRS bit indicates the DR register • JP instruction: Jump instructions including transfer status. unconditional jump, conditional O = End of data transfer jump, and subroutine call 1 = Data is being transferred • LD instruction: Immediate data load instruction See table 3 for DSP instruction codes. When DRC = 1, the DRS bit is always set to O. OP Instruction. The OP instruction has the following USFO, USF1, and USF2 [User's Flag]: USFO, USF1, and functions: USF2 are flag bits which can be used freely. They are used as a status bit in an interface with an external unit. • Performs operations specified by six fields and two bits. Request for Master [ROM]: ROM is a flag bit used to transfer data between the DR register and GPP. • Increments the current address set in the program counter by one. Data Register [DR]. DR is a 16-bit register used to transfer data to and from the GPP. One of its sides is 23 22 21 20 19 16 connected to the 8-bit bus and reads or writes data from I o 0 P-Select ALU an external unit in two operations. Internally, it transfers 13 12 8 15 14 9 data in one operation (16 bits). When the DR register is defined as an 8-bit register by the DRC bit, only the low-order eight bits of DR can be transferred. 'ASL DPL DPHIM D~RI 7 4 3 0 Serial Input Register [SI]. The SI register inputs serial data from an external unit. Serial data is input to DSP I SAC I DST I ADSI from the ADIN pin at the rising edge of the ADCK serial clock, converted to parallel data by SI, and output 2-121 µPD77810 NEC P-SELECT Field: The P~SELECT field selects ALU P JP Instruction. The JP instruction includes three func- input. See table 4 for P-SELECT field specifications. tions, such as unconditional jump, conditional jump, and subroutine call. ALU Field: The ALU field specifies an ALU operation. See table 5 for ALU field specifications. 23 . 22 21 12 11 2 1 0 ASL [Ace Selection] Bit: The ASL bit specifies whether I 10 I BRCH NA AccA or AccB is selected to the ALU input/output. See table 6 for ASL bit specifications. BACH (Branch) Field: The BRCH field selects the instruc- tion to be executed from unconditional jump, conditional DPL Field: The DPL field specifies the operation of the low- jump, and subroutine call. See table 12 for BACH field order four bits of the data pointer. The changed DPL is valid specifications. from the next instruction. See table 7 for DPL field specifi- cations. NA (Next Address) Field: The NA field specifies the ad- dress of the jump destination. See table 13 for NA field DPH/MP [DPH Modify] Field: The DPH/M field modifies the specifications. high-order four bits of the data pointer. The OP instruction performs exclusive OR of DPH four bits with the value in the LD Instruction. The LD instruction transfers imediate data field for each bit. The modified DPH value is valid from the to the specified register. next instruction. See table 8 for DPH/M field specifications. 23 22 21 6 5 4 3 0 RPDCR [RP Decrement] Bit: The RPDCR bit specifies I 11 I ID DST whether RP data is decremented or not decremented. The decremented value is valid from the next instruction. See ID (Immediate Data) Field: The 16-bit ID field sets im- table 9 for RPDCR bit specifications. mediate data. Immediate data is transferred to the register SRC [Source] Field: The SCR field specifies the register specified in the DST field. See table 14 for ID field specifi- that outputs data to the internal data bus. See table 10 for cations. SCR field specifications. DST (Destination) Field: The DST field specifies the regis- DST [Destination] Field: The DST field specifies the reg- ter where data in the ID field is transferred. The DST field is ister that inputs data from the internal data bus. This is the same as that of the OP instruction. See table 11 for DST source data from the register specified in the SRC field. field specifications. See table 11 for DST field specifications. Table 3. DSP Instruction Codes RT Instruction. The RT instruction has the following OP Field functions: Instruction 23 22 Meaning • Performs operations specified by six fields and two bits, OP 0 0 Operation and transfer similar to the OP instruction. Therefore, RT has the RT 0 Return same function as that of the OP instruction. JP 0 Jump • Sets the program counter as the stacked return ad- LD Immediate data loading dress. See table 4 through table 11 for RT instruction specifications. Table 4. P-Select Field Specifications 23 22 21 20 19 16 P-Select Field 01 P-Select ALU Mnemonic 21 20 ALU-P Input* 15 14 13 12 9 8 RAM 0 0 RAM ASL DPL DPH/M IRPDCRI IDB 0 Internal data bus I 7 4 3 0 M 0 Mregister N Nregister SCR DST Note: * The input is valid when the ALU field specifies an instruction other than Shift, INC Acc. DEC Acc. and Complement Ace· 2-122 NEC µ,PD77810 Tables. ALU Field Specifications ALU Field Mnemonic 19 18 17 16 Operation NOP 0 0 0 0 No operation OR 0 0 0 OR (Acc).-.(Acc) V (P) AND 0 0 0 AND (Acc).-.(Acc) V (P) XOR 0 0 Exclusive OR (Acc)-(Acc)¥(P) SUB 0 0 0 Subtract (Acc)-(Acc) - (P) ADD SBB ADC DEC 0 0 0 0 0 0 0 0 Add Subtract with borrow Add with carry Decrement Ace (Acc).-.(Acc) + (P) (Acc)-(Acc) - (P) - (C) (Ace).-.(Acc) + (P) + (C) -- + 1 CMP 0 0 Complement Ace (1 's complement) (Ace>- SHR1 0 1-bitR-shift SHL1 0 0 1-bitL-shift SHL2 0 2-bitL-shift SHL4 0 4-bitL-shift XCHG 8-bit exchange Symbols: P = Input selected in the P-Select field; C = Carry flag not selected by the ASL bit. Table 6. ASL Bit Specifications TableB. DPHI M Field Specifications Mnemonic ASLBit15 Ace Selection DPH/MField ACCA 0 Mnemonic 12 11 10 9 Exclusive OR ACCB AceB MO 0 0 0 0 (DP7DPsDPsDP4)-V-(O 0 0 0) M1 0 0 0 (DP7DPsDPsDP4)-V-(O 0 0 1) Table 7. DPL Field Specifications M2 0 0 0 (DP7 DPs DPs DP4) -V-(0 0 1 0) DPLField M3 0 0 (DP7 DPs DPs DP4) -V- (0 0 1 1) Mnemonic 14 13 Operation M4 0 0 0 (DP7DPsDPsDP4)-V-(O 1 0 0) DPNOP 0 0 No operation MS 0 0 (DP7DPsDPsDP4)-V-(O 1 0 1) DPINC 0 Increment DPL M6 0 0 (DP7 DPs DPs DP4)-V-(O 1 1 0) DPDEC 0 Decrement DPL M7 0 (DP7 DPs DPs DP4) -V-(0 1 1 1) DPCLR ClearDPL MS 0 0 0 (DP7 DPs DPs DP4)-V-(1 0 0 0) M9 0 0 (DP7 DPsDPsDP4)-V-(1 0 0 1) MA 0 0 (DP7 DPs DPs DP4) -V- (1 0 1 0) MB 0 (DP7 DPs DPs DP4) -V- (1 0 1 1) MC 0 0 (DP7 DPs DPs DP4)-V-(1 1 0 0) MD 0 (DP7DPsDPsDP4)-V-(1 1 0 1) ME 0 (DP7 DPs DP5 DP4) -V- (1 1 1 0) MF (DP7 DPs DPs DP4)-V-(1 1 1 1) 2-123 ,iPD77810 NEC Table 9. RPDCR Bit Specifications Table 11. DST Field Specifications Mnemonic RPDCRBit8 Operation DST Field RP NOP 0 No operation Mnemonic 3 2 0 Destination Register RPDEC Decrement RP @ NON 0 0 0 0 No register @ A 0 0 0 Ace A (accumulator A) Table 10. SCR Field Specifications @ B 0 0 0 Ace B (accumulator B) SRCField @ TR 0 0 TR (temporary register) Mnemonic 7 6 5 4 Source Register @ DP 0 0 0 DP (data pointer) NON, TRB (Note 1) 0 0 0 0 TRB @ RP 0 0 RP register A 0 0 0 Ace A @ DR 0 0 DR register B 0 0 0 AceB @ SR 0 SR register TR 0 0 TR @ SOL 0 0 0 SO register serial out LSB (Note 1) DP 0 0 0 DP @ SOM 0 0 SO register serial out MSB (Note 2) RP 0 0 RP register @ K 0 0 Kregister RO 0 0 RO register @ KLR 0 KLR(Note3) SGN 0 SGN register @ KLM 0 0 KLM(Note4) DR 0 0 0 DR register @ L 0 Lregister DRNF 0 0 DR register (Note 2) @ TRB 0 TRB register SR 0 0 SR register @ MEM RAM SIM 0 ADSI register (Note 3) Notes: SIL 0 0 ADSI register (Note 4) (1) For 16-bit serial data, serial data is output from the LSB of the inter- nal data bus sequentially. K 0 Kregister (2) For 16-bit data, serial data is output from the MSB of the internal data L 0 Lregister bus sequentially. (3) The K register stores data on the internal data bus and the L register MEM RAM stores the RO register (ROM) output. Notes: (4) The L register stores data on the internal data bus and the K register (1) TRB register data is output to the internal data bus even when NON stores RAM data specified by DP6 = 1 (DP7 , 1, DP5 , DP4 , DP3 , DP2 , is specified. DP1 , and DP0 ). (2) DR register data is output to the internal data bus but the ROM flag is not set. (3) For 16-bit data, the first serial input data is output to the highest bit (MSB) and the last is output to the lowest bit (LSB). (4) For 16-bit data, the first serial input data is output to the LSB of the internal data bus and the last is output to the MSB. 2-124 NEC p.PD77810 Table 12. BRCH Field Specifications BRCH Field* Mnemonic 21 Conditions JMP 0 0 0 0 0 0 0 0 Unconditional CALL 0 0 0 0 0 0 0 Unconditional JNCA 0 0 0 0 0 0 0 0 CA = 0 JCA 0 0 0 0 0 0 0 CA = 1 JNCB 0 0 0 0 0 0 0 CB = 0 JCB 0 0 0 0 0 0 CB = 1 JNZA 0 0 0 0 0 0 0 ZA = 0 JZA 0 0 0 0 0 0 ZA= 1 JNZB 0 0 0 0 0 0 ZB = 0 JZB 0 0 0 0 0 ZB= 1 JNOVAO 0 0 0 0 0 0 0 OVAO = 0 JOVAO 0 0 0 0 0 0 OVAO = 1 JNOVBO 0 0 0 0 0 0 OVBO = 0 JOVBO 0 0 0 0 0 OVBO = 1 JNOVA1 0 0 0 0 0 0 OVA1 = 0 JOVA1 0 0 0 0 0 OVA1 = 1 JNOVB1 0 0 0 0 0 OVB1 =O JOVB1 0 0 0 0 OVB1 = 1 JNSAO 0 0 0 0 0 0 0 SAO= 0 JSAO 0 0 0 0 0 0 SAO = 1 JNSBO 0 0 0 0 0 0 SBO = 0 JSBO 0 0 0 0 0 SBO = 1 JNSA1 0 0 0 0 0 0 SA1 = 0 JSA1 0 0 0 0 0 SA1 = 1 JNSB1 0 0 0 0 0 SB1 = 0 JSB1 0 0 0 0 SB1 = 1 JDPLO 0 0 0 0 0 0 DPL = 0 JDPLNO 0 0 0 0 0 DPul 0 JDPLF 0 0 0 0 0 DPL = F(HEX) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- JD PL NF 0 0 0 0 DPL;l F (HEX) JNSIAK 0 0 0 0 0 SI ACK= 0 JSIAK 0 0 0 0 SI ACK = 1 JNSOAK 0 0 0 0 0 SOACK=O JSOAK 0 0 0 0 SO ACK = 1 JNRQM 0 0 0 0 RQM = 0 JRQM 0 0 0 RQM = 1 Note: * The BRCH field values not listed in this table are prohibited. 2-125 ,iPD77810 NEC Table 13. NA Field Specifications Memory Map NA Field The general purpose processor (GPP) has a 64 K byte 12 11 10 9 8 7 6 5 4 3 2 Jump Address address space (16-bit address). Figure 5 shows memory 0 0 0 0 0 0 0 0 0 0 0 AddressO mapping of the GPP. 0 0 0 0 0 0 0 0 0 0 Address1 The GPP address space consists of the following: 0 0 0 0 0 0 0 0 0 0 Address2 • 16,384 byte internal program memory (INT-ROM) space. • 192 byte internal data memory (INT-RAM) space. Address2047 • 256 byte special function register (SFR) space. Table 14. ID Field Specifications Internal Program Memory Space [INT-ROM]. A 16,384 ID Field word x 8-bit mask programmable ROM occupies an area 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 HEX of addresses from OOOOH to 3FFFH. The ROM can be used 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0000 for storing programs and data. The internal program mem- ory space is allocated as follows: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0001 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0002 Vector Table Area: The 22 bytes from OOOOH to 0015H holds vectors for reset and interrupts. The low-order eight bits of a 14-bit address are stored in an even-numbered 1 1 1 1 1 1 1 1 1 1 1 FFFF address and the high order six bits are stored in an odd- numbered address. See table 15 for the interrupt-vector GPP FUNCTIONAL DESCRIPTION address. Figure 4 is the block diagram of the GPP. Figure 4. GPP Block Diagram C-RAM 16 XS 8 83ML·5821A 2-126 t-IEC #'PD77810 Figure 5. GPP Memory Mapping Address \ \ \ OOOOH \ \ '------- - \ OOOOH RESET 0002H NMIWD 0004H Interrupt Vector 0015H Address Table Area INT-ROM (Program Memory 0040H CALLT Instruction * Space) 16384 x 8 Bits * Table Area 64 XB Bits 007FH OOBOH Program Area 07FFH OBOOH '::~ * ->- CALLF Instruction ->- OFFFHB 3FFFH 1000H 4000H FE3FH No Built-In Memory Space 1\,, \ __~~~~_T ... ________T_ Program Area FE40H \ \ \ \ INT-RAM \ \ (Data Memory Space) 192x 8 Bits ~---------------- FE40H Data Memory Area FEFFH 160 x 8 Bits FF OOH FEOFH General -Purpose SFR \ Register Group FEE OH ______ \ (Special Function Register Area) '\ \\ FEFFH (4 Banks) 32 x 8 Bits 256x 8 Bits \ ',, ---- ___..._ \ \... __, FFFFH '---------------- ' FF90H C-RAM Area \,~::_g~~----16_x_a_B_it_s_ __. 83ML·5822B 2-127 1£PD77810 tt/EC Table 15. Interrupt Vector Address Interrupt Source Interrupt Vector Address Flag Name Condition OOOOH Reset(RESET) input 0002H NMIWD Watch dog timer 0004H IST STINT rising edge 0006H IRT RT rising edge 0008H llU Data was input to URTI, or a break signal was detected. OOOAH IOU Data was input to URTO OOOCH IFIFO Data was read from FIFO, orfour levels of FIFO data were output. OOOEH IAT TMRAisO 0010H IBT TMRBisO 0012H 181 Data is inputto 811 0014H INT Interrupt (INT) input CALLT Instruction Table Area: A 64-byte area from 0040H When the RESET signal is input, the PC is initialized with to 007FH stores a one-byte call instruction (CALLT) sub- the data at addresses OOOOH and 0001 H in INT-ROM; the routine entry address. data at address OOOOH are placed in the low-order eight bits of the PC, and the low-order six bits of the data at CALLF Instruction Entry Area: An area from 0800H to 0001 H are placed in the high-order six bits of the PC. See OFFFH stores a two-byte call instruction (CALLF) which Figure 6. calls a subroutine directly. Figure 6. Program Counter Configuration Internal Data Memory Space (INT-RAM). A memory area from FE40H to FEFFH is allocated to a 192-byte RAM. In the RAM's 32-byte area from FEEOH to FEFFH a four- Pc Ipc 13lpc 12IPc 11IPc 101Pc91 Pc a I bank general-purpose register group is mapped. Data p~ memory is also used as stack memory. Special Function Register (SFR) Space. A 61-byte area within a 256-byte area from FFOOH to FFFFH stores a spe- cial function register (SFR) of on-chip peripheral hardware. I PC PC 1 I PC s I PC s I Pc 41 PC 31 Pc 2I PC 1I Pc oI The addresses not mapped with SFR are not accessible. PCL C-RAM is also mapped within the SFR space. Note that it is possible for C-RAM to be externally accessible. See 1/0 port and C-RAM. Program Status Word [PSW]. The program status word is C-RAM which is able to write externally in the slave mode, an 8-bit register consisting of flags. See Figure 7. It can be is also allocated in the SFR space. read or written on an eight-bit basis. The flags area is operated by bit operation instructions. The PSW data is Registers saved into a stack area when an interrupt request is issued or a PUSH instruction is executed and is restored with a Program Counter [PC]. The program counter is a 14-bit RETI or POP instruction. binary counter containing address information of the next program to be executed. It is incremented automatically When RESET is input, all flags are cleared and PSW is set depending on the number of bytes of the instruction to be to 02H. fetched. When a branch instruction is executed, immediate data or the contents of a register is set in the counter. 2-128 NEC #'PD77810 Figure 7. Program Status Word Configuration Auxiliary Carry Flag [AC]: The auxiliary carry flag is set to 1 when a bit 3 carry occurs at the end of an operation or when 7 6 5 4 3 2 0 a bit 3 borrow occurs. Otherwise it is reset to 0. The AC flag Pswl,__1E_,__z_....IR_B_s~1l_A_c_l~R-BS_o~l_o_....__~c_v~ is used when a BCD correct instruction is executed. Zero Flag [Z]: The zero flag is set to 1 when the result of an operation is 0. If the result of an operation is not 0, the Z flag Note: Bit 2 and Bit 1 must be set as follows: is reset to 0. The Z flag can be tested with a conditional Bit 2 = 0 branch instruction. Bit 1 = 1 Interrupt Request Enable Flag [IE]: The interrupt request Carry Flag [CY]: The carry flag (CY) stores overflow or underflow when arithmetic instructions are executed. The flag stores the value shifted out when a shift rotate instruc- tion is executed and performs as a bit accumulator when a enable flag controls whether a CPU interrupt request (maskable vector interrupt) is accepted. When the flag is set to 0, the processor is set to the DI state and all inter- rupts except a non-maskable interrupt (watch dog timer El interrupt) are disabled. When the flag is set to 1, the pro- bit operation instruction is executed. cessor is set to the El state and interrupt requests are con- Register Bank Select Flags [RBS 0 and RBS 1]: RBS 0 and trolled by the interrupt mask flag for each interrupt request. RBS 1 are used to select one of the four register banks. See The .El flag is set to 1 when an El instruction is executed table 16. and reset to O when a DI instruction is executed or an inter- rupt is accepted. Table 16. Register Bank Selection Stack Pointer [SP]. The stack pointer is an 8-bit register RBS0 Register Bank used to retain the low-order eight bits of the return address 0 0 Register bank O in a stack area (LIFO form). The high-order eight bits of an address in this area are always FEH. The stack memory is 0 Register bank 1 allocated to any area in data memory (FE40H to FEFFH). 0 Register bank 2 When the SP value is set SP data is not stored from OOH to Register bank 3 3FH. SP data is decremented when a write (save) opera- tion is performed to stack memory and incremented when data is read (restored) from stack memory. SP is accessi- Figure 8. Stack Pointer Configuration ble with a dedicated instruction. SP data is not acted upon when RESET is input. RESET must initialize the SP before 7 6 5 4 3 2 1 0 a subroutine call. See Figures 8, 9, and 10. I SP I SP 71 SP s I SP s I SP 41 SP 31 SP 2 SP 1 I SP o I Figure 9. Data Saved to the Stack Memory PUSH Instruction CALL, CALLF, and Interrupt CALLT Instructions Stack Memory Stack Memory Stack Memory •• •• SP 2 Low order of SP 2 PC7-PCO PC7-PCO register pair High order of ! ! SP 1 register pair SP 1 00 I PC 13 - PC 8 00 II PC 13 - PC 8 I SP_.. SP_.. PSW 2-129 11PD77810 t-IEC Figure 10. Data Restored From the Stack Memory POP Instruction RET Instruction RETI Instruction Stack Memory Stack Memory Stack Memory SP_. Low order of SP_. SP_. PC7-PCO PC7-PCO register pair '' SP+ 1 High order of register pair ' SP+ 1 00 T I PC 13 - PC 8 '' SP+ 1 00 T I PC 13 - PC 8 ' I I SP+2 SP+2 SP+2 PSW ' SP+3 General-Purpose Registers. General-purpose registers Table 17. Relationship Between Functional Names are mapped to special addresses in the INT-RAM (FEEOH and Absolute Names to FEFFH). The registers consist of four bank registers; Functional Name Absolute Name each having eight 8-bit registers (X, A, C, B, E, D, L, and H). The actual register bank in operation is determined by x RO RBSO and RBS1 of PSW. A R1 Normally, general-purpose registers are operated on an c R2 eight-bit basis. These can also be operated on a 16-bit B R3 basis as a pair of 8-bit registers (AX, BC, DE, and HL).See E R4 Figure 11. D RS Registers have functional names (X, A, C, B, E, D, L, H, AX, L R6 BC, DE, and HL) as well as absolute. names (RO to R7 and H R7 RPO to RP3). See table 17 for the relationship between AX RPO functional names and absolute names. BC RP1 The general-purpose register area is accessible by DE RP2 specifying a normal data memory address. It does not have to be used as a register area. HL RP3 The GPP has four register banks and the user can use different register banks for efficient programming of normal and interrupt operations. 2-130 ttiEC µPD77810 Figure 11. General-Purpose Register Configuration S-bit Register 16-bit Register Processing Pair Processing FEE OH A EIH B E3H X EOH C E2H t Register Bank 3 AX BC EOH E2H D (RBS 1, o = 11) DE El ESH E E4H E4H H A E7H L E6H t ··············+·············· HL ESH E9H X ESH AX ESH B C EAH Register Bank 2 BC EBH EAH (RBS 1, 0 = 10) D EDH E ECH DE ECH H A EHF L EEH t ··············+·············· HL AX EEH F1H X FOH FOH B C F2H BC F3H Register Bank 1 F2H E (RBS 1, o = 01) DE D F5H F4H F4H H A F7H F9H L F6H X FSH ..............t .............. HL AX F6H FSH B C FAH Register Bank O BC FBH FAH (RBS 1, 0 = 00) D FDH E FCH DE FCH FEFFH H FFH L FEH t .............................. HL FEH Special Function Register [SFR] The special function registers are assigned to special func- Note that only addresses assigned for the SFR are access- tions like the built-in peripheral hardware mode register ible. If an address not assigned for the SFR is accessed, and control registers. They are mapped to 61 bytes in the the processor may malfunction. 256-byte area from FFOOH to FFFFH. Table 18 lists the SFRs. SFRs are instruction operands which can be used for transfer instructions, bit operation instructions, and arith- metic instructions. 2-131 ,iPD77810 NEC Table 18. Special Function Register (SFR) List Status Functional Area SFRName Mnemonic R/W at Reset Address Port Port mode register (PTMR) PTMR R/W 3FH FF28H (8-bits) Port C mode register (PCMR) PCMR 7FH FF29H (8-bits) Port D mode register (PDMR) PDMR FFH FF2AH (8-bits) Port A (PORTA) (Note 1) PA OOH FF2CH (8-bits) Port B (PORTB) (Note 1) PB OOH FF2DH (8-bits) Port C (PORTC) (Note 1) PC OOH FF2EH (low-order7-bits) Port D (PORTO) (Note 1) PD OOH FF2FH (8-bits) Port E (PORTE) PE R OH FF57H (low-order 1-bit) Port F (PO RTF) PF R/W OH FFSCH (low-order3-bits) Interrupt Interrupt requestflag register (IFO) IFO R/W OOH FFEOH (16-bits) OOH FFE1H Interrupt mask register (MKO) MKO FFH FFE4H (16-bits) FFH FF ESH DSP interrupt register (INTDSP) (Note 8) INTDSP OH FF64H (low-order2-bits) Scrambler /descrambler Mode register (SCRMR) SCRMR R/W OOH FF40H (8-bits) Scrambler port (SCR) (Note 3) SCR Undefined FF41H(low-order1-bit) Descrambler port (DSC) (Note 3) DSC FF42H (low-order 1-bit) Scrambler control register (SCAM) SCAM OH FF65H (low-order4-bits) Descrambler control register (DSCM) DSCM OH FF66H (low-order3-bits) Transmit PLL/receive PLL PPL mode register 1 (PLLMR1) PLLMR1 R/W OOH FF44H (8-bits) PPL mode register 2 (PLLMR2) PLLMR2 33H FF7EH (8-bits) SBAUD, RBAUD status register (BAUDSR) BAUDSR R OH FF45H (low-order2-bits) Serial communication Synchronous/ asynchron.ous mode register (ASMA) ASMA R/W OOH FF49H (8-bits) interfaceASC, SAC, UART UART mode register (URTMR) URTMR OOH FF4AH (low-order 7-bits) UART status register (URTSR) (Note 4) URTSR R OH FF4BH (low-order4-bits) ASC register (ASCR) ASCR Undefined FF4CH (8-bits) SAC register (SACR) SACR R/W FF4DH (8-bits) URO register (URO) URO FF3EH (8-bits) URI register (URI) URI R FF3FH (8-bits) A/D, DIA interface D/A mode register (DAMA) DAMA R/W OOH FF4EH (low-order6-bits) FIFO read address (FFRA) FFRW OH FF4FH (high-order3-bits) FIFO write address (FFWA) FFRW OH FF4FH (low-order3-bits) FIFO (FIFO) (Note 5) FIFO Undefined FF54H (16-bits) FF55H Seriall/O Status register (S1 SR) S1SR R OH FF56H (2-bits) Serialinputport1 (Sl1) Sl1 R/W OOOOH FF58H (16-bits) FF59H Serial output port 1 (S01) S01 OOOOH FFSAH (16-bits) FFSBH Timer Timer mode register (TMMR) (Note 6) TMMR R/W OOH FFSDH (8-bits) Timer A (TMRA) TMRA FFH FFSEH (8-bits) Watch dog timer control register (WDMSR) (Note 7) WDMSR OOH FF6DH (8-bits) 2-132 NEC ~PD77810 Table 18. Special Function Register (SFR) List (cont) Status Functional Area SFRName Mnemonic R/W at Reset Address DSP interface Data register (DR) (Note 2) DR R/W Undefined FF60H (16-bits) FF61H Status register (SR) SR R OOH FF62H (8-bits) FF63H C-RAM Control RAM (C-RAM) R/W Undefined FF90H (8-bits) FF9FH (8-bits) Notes: (1) Write operation is invalid when the register is used as an input port. interrupt mask register [MKO]. The interrupt source state (2) The DSP status (RQM flag) is changed by a Read/Write signal. can be checked by the interrupt request flag register [IFO]. (3) The shift register of the scrambler/descrambler is shifted one bit by a Write signal to the SCA and DSC. Maskable vector interrupt operations are explained below. (4) URTSR is reset after it is read. The interrupt enable state indicates that the IE bit of PSW is (5) The FFWA write address is incremented by a Write signal to the FIFO. 1 and the corresponding bit of the interrupt mask register (6) This register is reset to 0 by TMRA. MKO isO. (7) The write operation is performed with special instructions (MOV WDMSR, #byte). • When an interrupt source is detected, the correspond- (8) INTDSP is reset six clocks after it is set to 1. ing bit of IFO is set. (9) The 16-bit SFR registers must be accessed one byte at a time. For high byte access the symbol H is appended to the SFR mnemonic • When interrupt processing starts, the corresponding bit and for the low byte access the symbol L is used. of IFO is reset. Interrupt Functions • When an interrupt source is detected while interrupt is enabled, interrupt processing starts. The GPP has one non-maskable interrupt and nine mask- able vector interrupts. • If two or more interrupt sources are detected, priority is given to the lowest interrupt vector address. The vector interrupt saves status information (PC and PSW information) of the program being executed. The • If an interrupt request is detected during interrupt pro- status information is stored in memory specified by the cessing, it is nested when interrupt is enabled. stack pointer when an interrupt request is accepted. Then The GPP has a total of ten interrupt request sources; nine data is stored at the address of the interrupt request (vector maskable interrupts and one non-maskable interrupt. Of table address) in the PC as vector address information and the ten sources the maskable interrupt request sources are starts the interrupt service program. Control is returned listed in table 19. from the interrupt service program by transferring the pro- gram counter value and status information from stack Table 20 lists the interrupt vector table addresses. Table 21 memory to the PC and PSW with the RETI instruction. lists the IFO and MKO SFR addresses. Maskable Vector Interrupt. Maskable vector interrupt processing indicates when an interrupt is enabled by the Table 19. Maskable Interrupt Request Sources Interrupt Source Interrupt Signal Condition TxPLL IST STINT rising edge PxPLL IRT RT rising edge TIMRA IAT TimerTMRA is set to 0 TIMRB IBT TimerTMRBissettoO FIFO IFIFO Data was read from FIFO. Or, four levels of FIFO data were output from FIFO. Sl1 IS1 Data was inputto Sl1 UART llU Data was input to URTI. Or, a break signal was detected. IOU URTO data was output External INT External interrupt 2-133 p.PD77810 NEC Table20. Interrupt Vector Table Address Interrupt Vector Default IFO MKO Request Type Table Address Priorities Interrupt Request Signal Corresponding Bit Corresponding Bit Maskable 0004H IST 0 0 0006H 2 IRT 0008H 3 llU 2 2 OOOAH 4 IOU 3 3 OOOCH 5 IFIFO 4 4 OOOEH 6 IAT 5 5 0010H 7 IBT 6 6 0012H 8 181 7 7 0014H 9 INT 8 8 Non-maskable 0002H 0 Watch dog timer interrupt Table 21. IFO and MKO, SFR Addresses Interrupt Mask Register [MKO]: The interrupt mask register Mnemonic SFR Address Function is a 16-bit register. It sets even if interrupt is enabled when an interrupt source flag is set. See table 20 for interrupt IFO FFEO, FFE1 H Interrupt request flag register (16-bits) source flags. The flags of the MKO are set to O to enable MKO FFE4, FFESH Interrupt mask register (16-bits) interrupt and set to 1 to disable interrupt. The low-order seven bits are always 1. Flags are initialized Interrupt Request Flag Register [FO]: The interrupt request to 1 when RST is input. flag register is a 16-bit register. It consists of the interrupt source flags listed in table 20. The flags in the interrupt Vector Interrupt Processing: The vector interrupt process- request flag register are set when a corresponding inter- ing sequence is shown in Figure 12. It is automatically rupt source is detected and reset when it is processed. executed internally. The latency in the interrupt process Flags are reset to 0 when RST is input. The low-order routine gaining control is 18 clocks (approximately 3.3 µs). seven bits are always O. Figure 12. Vector Interrupt Operation +- Execution of instruction when an interrupt source is detected. : RETI Program Program Execution Interrupt Process Routine Execution 1 Execution I Automatic Saving 14--18 Clocks_, Se Reset Interrupt Request Flag (IFO) Interrupt Request Detected 83ML-5823B 2-134 NEC µ,PD77810 Non-Maskable Interrupt. The processor has a watch dog Register Addressing: Addresses a general-purpose regis- timer interrupt function as a non-maskable interrupt. This ter mapped at a specific address in data memory. The interrupt is executed immediately when a source is detected. general-purpose register in the register bank specified by Interrupt execution does not affect the IE flag of PSW. RBSO and RBS1 flags in the PSW is registered. Interrupt to the DSP. The GPP has reset and interrupt Coding example follows: functions to the DSP. These functions are specified by the XCH A, r 2-bit INTDSP register. INTDSP is initialized to O when Reset is input. See table 22 and table 23. To specify the C register as r, code as follows: XCH A, C El Table 22. INTDSP Function INTDSP Function Short and Direct Addressing: Addresses an area from FE40H to FEFFH in the internal data memory and an area INTDSP When INTDSP is set to 1 an interrupt request is issued to (bit 1) the DSP. After being issued INTDSP resets automatically. from FFOOH to FF1 FH in the SFR. To access 16-bit data, 2-byte data specified by continuous even-numbered and INTDSO When INTDSO is a 1, DSP is reset (bitO) odd-numbered addresses is specified. Coding example follows: Table 23. INTDSP SFR Address ADDC saddr, A Mnemonic SFRAddress Function To specify address FESOH as saddr, code as follows: INTDSP FF64H DSP reset/interrupt request register ADDC OFESOH, A Addressing SFR Addressing: Addresses a special function register (SFR) mapped to the SFR area (FFOOH to FFFH). GPP addressing includes the following: Coding example follows: • Data memory addressing MOV A, sfr • Instruction addressing To specify the PTMR register as sfr, code as follows: Data Memory Addressing. Figure 13 shows the data mem- ory map, SFR memory map, and applicable addressing. MOV A, PTMR Figure 13. Data Memory Map and Addressing ~ ~ R1, FE40H Internal RAM Indirect Short and Addressing Direct ([D],[E], [E+]), Addressing Stack l FEEOH FEFFH ---------- General Purpose Register Group Register Addressing AdT"' Register Indirect Addressing FFOOH FF1FH t ~ ([HL]), Indexed FF20H t---------- + Addressing SFR Addressing SFRArea FFFFH + Note: Register indirect addressing (HL) and indexed addressing, addresses the built-in ROM. These are applicable to the read table data. 83ML·5824B 2-135 ,iPD77810 NEC Register Indirect Addressing: Addresses data memory Relative addressing is applicable for the BR S addr 14 indirectly by the contents of the register stored in the instruction and a branch instruction. operand. The register in the register bank specified by the Immediate Addressing: Immediate data in an instruction RBSO and RBS1 flags in the PSW is specified. Only when word is transferred to the PC and program control branches the E register is specified with the MOV instruction are the to the address set in the PC. contents of the register automatically incremented by one after the instruction is executed. In this case, the operand is Immediate addressing is applicable for the CALL laddr14, coded as [E + ]. Register indirect addressing using the HL BR laddr14, and CALLF laddr11 instructions. For the register pair can address the overall space including the CALLF laddr11 instruction, program control branches to internal ROM. the fixed area of the low-order 2-bit address. Coding example follows: Table Indirect Addressing: The contents of a specific loca- tion table (branch destination address) addressed by SUB A, [r4] immediate data of the low-order five bits of an instruction To specify the E register a r4, code as follows: code are transferred to the PC and program control branches to the address set in PC. SUB A, [E] Table indirect addressing is applicable for the CALLT Indexed Addressing: Addresses data as the result of an [addr5] instruction. addition of 16-bit immediate data and 8-bit register data. The 8-bit register is in the register bank specified by the Register Addressing: The contents of a register pair (RP3 RBSO and RBS1 flags of the PSW. This technique can to RPO) specified by an instruction word is transferred to address the overall space including the internal ROM. the PC and program control branches to the address set in PC. Register addressing is applicable for the BR rp Coding example follows: instruction. MOV A, word [r1] To specify FEAOH as word and the B register as r1 , code INSTRUCTION SET as follows: Tables 24 through 27 and figure 14 define the operands, symbols, and codes that appear in table 28. Table 28 MOV A, OFEAOH [B] lists the instruction encodings and shows all the legiti- Stack Indirect Addressing: Addresses internal memory mate combinations of operands. The instruction set data (FE40H to FEFFH) indirectly by the contents of the terminology is as follows: stack pointer (SP). Operands and Coding Requirements: In the operand field This technique is applicable when executing PUSH and of an instruction, operands are accepted according to their POP instructions, save or restore operations by interrupt value. An operand having two or more values can have processing, and subroutine call and return. only one selected. Uppercase letters and symbols like+, #, !, $, /, and [ ] are keywords and must be written as they Coding example follows: are presented. The symbols have the following meanings: PUSH rp + Automatic increment To specify the DE register pair as rp, code as follows: # Immediate data Absolute address PUSH DE $ Relative address Instruction Addressing. The instruction address is deter- I Bit reverse mined by the program counter (PC) value. Normally, the [ ] Indirect addressing PC is automatically incremented by one (for one byte) For immediate data, write an appropriate numeric value or depending on the number of bytes to be fetched every time label. When a label is used, it must be defined elsewhere. an instruction is executed. If a branch instruction is exe- cuted, branch destination information is set in the PC by The clock column symbols are as follows: distinct addressing, as shown below: • n in the clock column of a shift rotate instruction indicates Relative Addressing: The first address of a subsequent the number of bits to be shifted. instruction is added by 8-bit immediate data (displacement • The value enclosed in ( ) in the clock column of a con- value: jdisp) of an instruction code and transferred to the ditional branch instruction indicates the number of PC. Then program control branches to the address set in clocks when program control does not branch. the PC. The displacement value is handled as signed two's complements (-128 to + 128) and bit 7 is used as a sign bit. 2-136 NEC 11PD77810 • When accessing SFR by register indirect addressing Table25. Abbreviations (cont) ([HL]) and indexed addressing (word [r1]), the number Identifier Description of clocks is set to the one shown after a slash (/) in the RPOtoRP3 Register pair 0 to register pair 3 (absolute names) column. PC Program counter • If the result of word +r1 overflows in indexed address- SP Stack pointer ing, the number of clocks is increased to the value enclosed in ( ). PSW Program status word CY Carry flag Table 24. Operand Values El AC Auxiliary carry flag Operand Value z Zero flag r X (RO), A (R1 ), C (R2), B (R3), E (R4), D (R5), L (R6), H (R7) Register bank select flag RBSOtoRBS1 r1 A,B r2 B,C IE Interrupt request enable flag r3 D,E,E+ Watch dog timer control register WDMSR r4 D,E rp AX (RPO), BC (RP1 ), DE (RP2), HL (RP3) () Memory data indicated by the address in ( ) or register data sfr Special function register abbreviation (see table 16) sfrp Special function register abbreviation (16-bit operable xxH Hexadecimal number register, see table 16) High-order and low-order 8-bits of 16-bit register pair XH,XL saddr FE40H to FE1 FH immediate data or label saddrp FE40H to FE1 FH immediate data (bit 0 = 0) or label (for 16-bit data) Table 26. Flag Symbols !addr14 OOOOH to 3FFFH immediate data or label: immediate Symbol Description addressing (Blank) Flag not affected $addr13 OOOOH to 1 FFFH immediate data or label: relative addressing O Data was cleared to 0 addr11 800H to FFFH immediate data or label Data was set to 1 addr5 40H to 7EH immediate data (bit 0 = 0) or label x Data was set or cleared according to the result of operation word 16-bit immediate data or label byte 8-bit immediate data or label R The previous saved value was restored bit 3-bit immediate data or label n 3-bit immediate data (Oto 7) Table 27. Instruction Code Field Identifiers RBn RBOtoRB3 Identifier Description Note: Bn Immediate data corresponding to bits r and rp can be coded with a functional name (X, A, C, B, E, D, L, H, AX, BC, DE, and HL) as well as an absolute name (RO to R7 and RPO to RP3). Nn Immediate data corresponding ton Data 8-bit immediate data corresponding to bytes Table 25. Abbreviations Low/high/byte 16-bit immediate data corresponding to words Identifier Description Saddr-offset Low-order 8-bit offset data of 16-bit address cor- A A register (8-bit accumulator) responding to saddr X Xregister Sfr-offset Low-order 8-bit offset data of 16-bit address of special function register (sfr) B Bregister Low /high offset 16-bit offset data corresponding to words in c Cregister indexed addressing D Dregister Low/high addr 16-bit immediate data corresponding to addr 14 E Eregister jdisp Signed two's complements of the difference be- H Hregister tween the first address of the following instruction and the branch destination address (8-bits) L Lregister fa Low-order 11-bits of immediate data correspond- ROtoR7 Register Oto register 7 (absolute names) ing to addr 11 AX Register pair AX (16-bit accumulator) ta Low-order 5-bits of immediate data corresponding BC Register pair BC to (addr5 x 1/2) DE Register pair DE HL Register pair HL 2-137 µPD77810 NEC Figure 14. Operand Register Selection Codes r r1 r2 R2 R1 Ro Rs Register Ro Register Register Rs Rs R4 0 A 0 c 0 0 0 RO x 1 B 1 B 0 0 1 R1 A 0 1 0 R2 c r3 r4 0 1 1 R3 B R1 Ro Register R1 1 0 0 R4 E 0 0 E ~ Register ~ 1 0 1 R5 D 0 1 E+ R4 1 1 0 R6 L 1 0 D 0 E 1 1 1 R7 H 1 D rp P1 Po P2 P1 Register-Pair Ps P5 0 0 RPO /J\)( 0 1 RP1 BC 1 0 RP2 DE 1 1 RP3 HL Example of Machine Code and Operands: When both the To specify the first operand as A register and the second first and second operands are arranged as registers or operand as L register, code as follows: register pairs in the operand field, the instruction code is MOV A, L structured as follows: In this case, the instruction code is set as shown below. Of a register byte, the high-order four bits are used to specify the second operand and the tow~order four bits are used to specify the first operand. Instruction Code MOV r, r MSB Instruction 0 I 0 I 1 0 I 0 I 1 0 I0 Code MSB LSB 1 ,__o__......,._...._ _._..,.o__.__o_........,o__,__32_._..., ,....... Code Specifies LSB A Register ' - - - - - - - - - - - Code Specifies 83ML-6142A L Register 83ML-6141A 2-138 t-IEC 11PD77810 Table 28. Instruction Encodings Instruction Code Flags Mnemonic Operand 81/83 82/84 Bytes Clocks Operation ZACCY 8-Bit Data Transfer Instructions MOV r, #byte 1011 1A2R1Ro Data 2 2 r +-byte saddr, #byte 0011 1010 Saddr-offset 3 3 (saddr) +- byte --- Data sfr, #byte (Note 1) 0010 1011 Sfr-offset 3 5 sfr +-byte r, r A,r A, saddr Data 0010 0100 1101 OR2 R1Ro 0010 0000 ORaR5 R4 OR2R1 Ro Saddr-offset 2 2 2 2 2 r +- r A+- r A+- (saddr) FJ saddr,A 0010 0010 Saddr-offset 2 3 (saddr) +-A A,sfr 0001 0000 Sfr-offset 2 4 A+- sfr sfr,A 0001 0010 Sfr-offset 2 5 sfr +-A A, [r3] (Note 2) 0111 11R1Ro 5/6 A +- (FEOOH + r3) r3 =40H-FFH [r3], A (Note 2) 0111 10R1Ro 5/6 (FEOOH + r3) +- A r3 =40H-FFH A,[HL] 0101 1101 517 A+- (HL) [HL],A 0101 0101 517 (HL) +-A A,word[r1] 0000 1010 OOR 5 1 0000 4 7(8)/ A+- (word+ r1) 9(10) Low offset High offset word[r1],A 0000 1010 10R5 1 0000 4 7(8)/ (word+ r1) +-A 9(10) Low offset High offset PSW,#byte 0010 1011 1111 1110 3 5 PSW +-byte x x x Data PSW,A 0001 0010 1111 1110 2 5 PSW +-A x x x A,PSW 0001 0000 1111 1110 2 4 A+- PSW XCH A,r 1101 1R2R1Ro 4 A+-+ r A,saddr 0010 0001 Saddr-offset 2 4 A +-+ (saddr) A,sfr 0000 0001 0010 0001 3 10 A+-+ sfr Sfr-offset A,[r4] 0111 1R211 8 A+-+ (FEOOH + r4) r4 = 40H-FFH Notes: (1) When sfr is coded as WDMSR, MOV is used as another dedicated instruction. In this case, the numbers of bytes and clocks are different from MOV (see CPU control instruction). (2) When r3 is coded as E +, the E register is automatically incremented by one after the instruction is executed and the number of clocks is setto6. 2-139 µ,PD77810 NEC Table28. Instruction Encodings (cont) Instruction Code Flags Mnemonic Operand 81/83 82/84 Bytes Clocks Operation ZACCV 16-Bit Data Transfer Instructions MOVW rp,#word 0110 OP2P10 Low byte 3 3 rp +-word High byte saddrp, #word 0000 1100 Saddr-offset 4 4 (saddrp + 1) (saddrp) +- word Low byte High byte sfrp,#word 0000 1011 Sfr-offset 4 8 sfrp +-word Low byte High byte rp,rp 0010 0100 OP6 P50 1P2P10 2 4 rp +- rp AX,saddrp 0001 1100 Saddr-offset 2 6 AX+- (saddrp + 1)(saddrp) saddrp,AX 0001 1010 Saddr-offset 2 5 (saddrp + 1) (saddrp) +- AX AX,sfrp 0001 0001 Sfr-offset 2 10 AX+- sfrp sfrp,AX 0001 0011 Sfr-offset 2 9 sfrp +-AX 8-Bit Operation Instructions ADD A, #byte 1010 1000 Data 2 2 A, CY +- A + byte x x x saddr, #byte 0110 1000 Saddr-offset 3 3 (saddr), CY +- (saddr) + byte x x x Data sfr, #byte 0000 0001 0110 1000 4 9 sfr, CY+- sfr +byte x x x Sfr-offset Data r,r 1000 1000 ORsf\R4 OR2R1 Ro 2 3 r,CY +- r+ r x x x A,saddr 1001 1000 Saddr-offset 2 3 A, CY +- A + (saddr) x x x A,sfr 0000 0001 1001 1000 3 7 A, CY +- A + sfr x x x Sfr-offset A,[r4] 0001 0110 011R4 1000 2 7 A, CY +- A+ (FEOOH + r4) x x x r4=40H-FFH A,[HL] 0001 0110 0101 1000 2 8/10 A, CY +- A + (HL) x x x ADDC A,#byte 1010 1001 Data 2 2 A, CY +- A + byte + CY x x x saddr, #byte 0110 1001 Saddr-offset 3 3 (saddr), CY +- (saddr) +byte+ CY x x x Data sfr,#byte 0000 0001 0110 1001 4 9 sfr, CY +- sfr + byte + CY x x x Sfr-offset Data r, r 1000 1001 OR6 R5R4 OR2R1 Ro 2 3 r,CY +-r+ r+ CY x x x A,saddr 1001 1001 Saddr-offset 2 3 A, CY +- A + (saddr) + CY x x x A,sfr 0000 0001 1001 1001 3 7 A, CY +- A + sfr + CY x x x Sfr-offset A,[r4] 0001 0110 011R4 1001 2 7 A, CY +- A+ (FEOOH + r4) +CY x x x r4=40H-FFH A,[HL] 0001 0110 0101 1001 2 8/10 A, CY +- A+ (HL) + CY x x x 2-140 NEC l'PD77810 Table28. Instruction Encodings (cont) Instruction Code Flags Mnemonic Operand 81/83 82/84 Bytes Clocks Operation ZACCY 8-Bit Operation Instructions (cont) SUB A, #byte 1010 1010 Data 2 2 A, CY +-A-byte x x x saddr, #byte 0110 1010 --- Saddr-offset 3 3 (saddr}, CY+- (saddr) - byte x x x Data sfr, #byte 0000 0001 0110 1010 4 9 sfr, CY+- sfr-byte x x x r,r A,saddr A,sfr Sfr-offset 1000 1010 1001 1010 0000 0001 Data ORsRsfti OR2R1 Ro Saddr-offset 1001 1010 2 2 3 3 r, CY+- r-r A, CY +- A- (saddr) A, CY +-A-sfr x x x x x x x x x El 3 7 Sfr-offset A,[r4] 0001 0110 011fti 1010 2 7 A, CY+- A-(FEOOH + r4) x x x r4=40H-FFH A,[HL] 0001 0110 0101 1010 2 8/10 A, CY+- A-(HL) x x x SUBC A, #byte 1010 1011 Data 2 2 A, CY+- A-byte-CY x x x saddr, #byte 0110 1011 Saddr-offset 3 3 (saddr}, CY+- (saddr}-byte-CY x x x Data sfr, #byte 0000 0001 0110 1011 4 9 sfr, CY+- sfr-byte-CY x x x Sfr-offset Data r, r 1000 1011 OR5R5R4 OR2R1 Ro 2 3 r, CY+- r-r-CY x x x A,saddr 1001 1011 Saddr-offset 2 3 A, CY+- A-(saddr)-CY x x x A, sfr 0000 0001 1001 1011 3 7 A, CY+- A-sfr-CY x x x Sfr-offset A,[r4] 0001 0110 011A,i 1011 2 7 A, CY+- A-(FEOOH + r4)-CY x x x r4=40H-FFH A,[HL] 0001 0110 0101 1011 2 8/10 A, CY+- A-(HL)-CY x x x AND A,#byte 1010 1100 Data 2 2 A +-AA byte x saddr, #byte 0110 1100 Saddr-offset 3 3 (saddr) +- (saddr)Abyte x Data sfr, #byte 0000 0001 0110 1110 4 9 sfr +- sfr A byte x Sfr-offset Data r,r 1000 1100 ORsR5R4 OR2R1 Ro 2 3 r +- rAr x A,saddr 1001 1100 Saddr-offset 2 3 A+- AA (saddr) x A,sfr 0000 0001 1001 1100 3 7 A +-AAsfr x Sfr-offset A,[r4] 0001 0110 011R4 1100 2 7 A +-AA(FEOOH + r4) r4= 40H-FFH x A,[HL] 0001 0110 0101 1100 2 8/10 A +-AA(HL) ,.iPD77810 NEC Table28. Instruction Encodings (cont) Instruction Code Flags Mnemonic Operand 81/83 82/84 Bytes Clocks Operation ZACCY 8-Blt Operation Instructions (cont) OR A, #byte 1010 1110 Data 2 2 A+- AV byte x saddr, #byte 0110 1110 --- Saddr-offset 3 3 (saddr) +- (saddr) V byte x Data sfr, #byte 0000 0001 0110 1110 4 9 sfr +- sfr V byte x Sfr-offset Data r,r 1000 1110 OR5R5R4 OR2R1 Ro 2 3 r +- rVr x A,saddr 1001 1110 Saddr-offset 2 3 A +- AV (saddr) x A,sfr 0000 0001 1001 1110 3 7 A+-AVsfr x Sfr-offset A,[r4] 0001 0110 011~ 1110 2 7 A +- AV (FEOOH + r4) r4= 40H-FFH x A,[HL] 0001 0110 0101 1110 2 8/10 A +-AV(HL) x XOR A,#byte 1010 1101 Data 2 2 A +-AlJ.byte x saddr, #byte 0110 1101 Saddr-offset 3 3 (saddr) +- (saddr)-Y-byte x Data sfr, #byte 0000 0001 0110 1101 4 9 sfr +- sfr¥byte v Sfr-offset Data r, r 1000 1101 ORsRs~ OR2R1 Ro 2 3 r +- r.l/r x A,saddr 1001 1101 Saddr-offset 2 3 A+- A-V-(saddr) x A,sfr 0000 0001 1001 1101 3 7 A +-AV-sfr x Sfr-offset A,[r4] 0001 0110 011R4 1101 2 7 A +- AV-(FEOOH + r4) r4=40H-FFH x A,[HL] 0001 0110 0101 1101 2 8/10 A +-A-V-(HL) x CMP A,#byte 1010 1111 Data 2 2 A-byte x x x saddr, #byte 0110 1111 Saddr-offset 3 3 (saddr)-byte x x x Data sfr, #byte 0000 0001 0110 1111 4 7 sfr-byte x x x Sfr-offset Data r,r 1000 1111 ORsRs~ OR2R1 Ro 2 3 r-r x x x A,saddr 1001 1111 Saddr-offset 2 3 A-(saddr) x x x A,sfr 0000 0001 1001 1111 3 7 A-sfr x x x Sfr-offset A,[r4] 0001 0110 011R4 1111 2 7 A-(FEOOH + r4) r4=40H-FFH x x x A,[HL] 0001 0110 0101 1111 2 8/10 A-(HL) x x x 16-Blt Operation Instructions ADDW AX,#word 0010 1101 Low byte 3 4 AX, CY +- AX+ word x x x High byte AX,rp 1000 1000 0000 1P2P10 2 6 AX, CY +- AX + rp x x x AX,saddrp 0001 1101 Saddr-offset 2 7 AX, CY+- AX+ (saddrp + 1) (saddrp) x x x AX,sfrp 0000 0001 0001 1101 3 13 AX, CY +- AX + sfrp x x x Sfr-offset 2-142 NEC µPD77810 Table28. Instruction Encodings (cont) Instruction Code Flags Mnemonic Operand 81/83 82/84 Bytes Clocks Operation ZACCY 16-Bit Operation Instructions (cont) SUBW AX,#word 0010 1110 Low byte 3 4 AX, CY +- AX-word x x x High byte AX,rp 1000 1010 0000 1P2P10 2 6 AX, CY +- AX- rp x x x CMPW AX,saddrp AX,sfrp AX,#word 0001 1110 0000 0001 Sfr-offset 0010 1111 Saddr-offset 0001 1110 Low byte 2 3 3 7 13 3 AX, CY +- AX-(saddrp + 1) (saddrp) AX, CY +- AX- sfrp AX-word x x x x x x x x x g High byte AX,rp 1000 1111 0000 1P2P10 2 5 AX-rp x x x AX,saddrp 0001 1111 Saddr-offset 2 6 AX-(saddrp+ 1)(saddrp) x x x AX,sfrp 0000 0001 0001 1111 3 12 AX-sfrp x x x Sfr-offset Multiplication/ Division Instructions MULUW 0000 0101 0000 OR2R1Ro 2 43 AX (high-order 16 bits), r (low-order8bits) +- AXxr DIVUW 0000 0101 0001 1R2R1 Ro 2 71 AX (dividend), r (remainder) +- AX + r Increment and Decrement Instructions INC 1100 OR2R1 Ro 2 r +- r + 1 x x saddr 0010 0110 Saddr-offset 2 2 (saddr) +- (saddr) + 1 x x DEC . 1100 1R2R1Ro 2 r +- r-1 x x saddr 0010 0111 Saddr-offset 2 2 (saddr) +-(saddr)-1 x x INCW rp 0100 01P1Po 3 rp+-rp+1 DECW rp 0100 11P1Po 3 rp +- rp-1 Shift Rotate Instructions ROA r, n 0011 0000 01N2N1 NoR2R1Ro 2 3+2n (CY, r7 +- r0, rm-1 +- rm)xntimes x n=0-7 AOL r,n 0011 0001 01N2N1 NoR2R1Ro 2 3+2n (CY, ro +- r7, rm+1 +-rm) xntimes x n=0-7 RORC r, n 0011 0000 OON2N1 NoR2R1Ro 2 3+2n (CY+- ro. r7 +-CY, rm-1 +-rm) x xntimes n = 0-7 ROLC r, n 0011 0001 OON2N1 NoR2R1Ro 2 3+2n (CY+- r7, ro +-CY, rm+1 +-rm) x xntimes n = 0-7 SHA r,n 0011 0000 10N2N1 NoR2R1Ro 2 3+2n (CY+- r0, r7 +- 0, rm-1 +-rm) x0 x xntimes n = 0-7 SHL r,n 0011 0001 10N2N1 NoR2R1Ro 2 3+2n (CY+- r7, r0 +- 0, rm+1 +-rm) x0 x xntimes n = 0-7 SHAW rp,n 0011 0000 11N2N1 NoP2P10 2 3+3n (CY+- rpo, rp1 5 +- 0, rPm-1 +-rpm) x 0 x xntimes n = 0-7 SHLW rp,n 0011 0001 11N2N1 NoP2P10 2 3+3n (CY +- rp 15, rp +- 0, rpm+ 1 +- rpm) x 0 x xntimes n = 0-7 ROR4 [r4] 0000 0101 1000 10R10 2 22 A3-0 +- (FEOO + r4)3.o, (FEOO + r4)7.4 +- A3-0· (FEOO + r4)3.o +- (FEOO + r4)7.4 ROL4 [r4] 0000 0101 1001 10R11 2 23 A3-0 +- (FEOO + r4)7.4, (FEOO + r4)3.o +- A3-0· (FEOO + r4)7.4 +- (FEOO + r4)3.o 2-143 µPD77810 NEC Table 28. Instruction Encodings (cont) Instruction Code Flags Mnemonic Operand 81/83 82/84 Bytes Clocks Operation ZACCY BCD Correct Instructions ADJ BA 0000 1110 3 Decimal adjust accumulator after addition x x x ADJ BS 0000 1111 3 Decimal adjust accumulator after subtract x x x Bit Operation Instructions MOV1 CY, saddr. bit 0000 1000 - -- 0000 OB2B1 Bo 3 5 CY +- (saddr. bit) x Saddr-offset CY,sfr.bit 0000 1000 0000 1~B1Bo 3 7 CY +- sfr.bit x Sfr-offset CY, A.bit 0000 0011 0000 1B2B1 Bo 2 5 CY +-A.bit x CY,X.bit 0000 0011 0000 O~B1Bo 2 5 CY+- X.bit x CY,PSW.bit 0000 0010 0000 O~B1Bo 2 5 CY +- PSW. bit x saddr. bit, CY 0000 1000 0001 O~B1Bo 3 8 (saddr. bit) +-CY Saddr-offset sfr.bit,CY 0000 1000 0001 1B2B1Bo 3 12 sfr. bit +- CY - -- Sfr-offset A. bit, CY 0000 0011 0001 1B2B1Bo 2 8 A.bit+- CY X,bit,CY 0000 0011 0001 08281 Bo 2 8 X.bit +-CY PSW.bit,CY 0000 0010 0001 OB2B1 Bo 2 7 PSW.bit +-CY x x AND1 CY, saddr. bit 0000 1000 0010 O~B1Bo 3 5 CY +- CY I\ (saddr. bit) x Saddr-offset CY, /saddr. bit 0000 1000 - -- 0011 08281 Bo 3 5 CY+- CY /\(saddr. bit) x Saddr-offset CY,sfr.bit 0000 1000 0010 18281 Bo 3 7 CY+- CY /\sfr. bit x Sfr-offset CY,/sfr.bit 0000 1000 0011 18281 Bo 3 7 CY+- CY /\sfr. bit x Sfr-offset CY, A.bit 0000 0011 0010 1~B1Bo 2 5 CY +- CY I\ A. bit x CY,/A.bit 0000 0011 0011 18281 Bo 2 5 CY +- CY I\ A. bit x CY,X.bit 0000 0011 0010 O~B1Bo 2 5 CY +- CY/\ X. bit x CY,/X.bit 0000 0011 0011 O~B1Bo 2 5 CY +- CY/\ X. bit x CY,PSW.bit 0000 0010 0010 OB2B1 Bo 2 5 CY +- CY/\ PSW. bit x CY, /PSW. bit 0000 0010 0011 OB2B1 Bo 2 5 CY +- CY I\ PSW. bit x 2-144 NEC µPD77810 Table28. Instruction Encodings (cont) Instruction Code Flags Mnemonic Operand 81/83 82/84 Bytes Clocks Operation ZACCY Bit Operation Instructions (cont) OR1 CY, saddr. bit 0000 1000 0100 08281 Bo 3 5 CY +- CY V (saddr. bit) x Saddr-offset CY, /saddr. bit 0000 1000 --- 0101 08281 Bo 3 5 CY+- CYV(saddr.bit) x Saddr-offset CY,sfr.bit CY,/sfr.bit 0000 1000 --- Sfr-otfset 0000 1000 --- Saddr-offset 0100 1~B1Bo 0101 1B2B1Bo 3 3 7 7 CY+- CYVsfr. bit CY +- CY V sfr. bit x x El CY, A.bit 0000 0011 0100 1~B1Bo 2 5 CY+- CYV A. bit x CY,/A.bit 0000 0011 0101 1~B1Bo 2 5 CY+- CYVA. bit x CY,X.bit 0000 0011 0100 O~B1Bo 2 5 CY +- CY V X. bit x CY, IX.bit 0000 0011 0101 O~B1Bo 2 5 CY+- CYVX.bit x CY,PSW.bit 0000 0010 0100 08281 Bo 2 5 CY+- CYVPSW.bit x CY, /PSW. bit 0000 0010 0101 O~B1Bo 2 5 CY +- CY V PSW. bit x XOR1 CY, saddr. bit 0000 1000 0110 08281 Bo 3 5 CY +- CY.Y(saddr, bit) x Saddr-offset CY,sfr.bit 0000 1000 --- 0110 18281 Bo 3 7 CY +- CY.Ysfr. bit x Sfr-offset CY, A.bit 0000 0011 0110 1~B1Bo 2 5 CY+- CY¥A. bit x CY,X.bit 0000 0011 0110 O~B1Bo 2 5 CY+- CY.YX. bit x CY,PSW.bit 0000 0010 0110 08281 Bo 2 5 CY+- CY¥PSW.bit x SET1 saddr.bit 1011 0828180 Saddr-offset 2 3 (saddr. bit) +- 1 sfr. bit 0000 1000 1000 18281 Bo 3 10 sfr. bit+- 1 --- Sfr-otfset A.bit 0000 0011 1000 18281 Bo 2 6 A. bit+- 1 X.bit 0000 0011 1000 O~B1Bo 2 6 x. bit+- 1 PSW.bit 0000 0010 1000 08281 Bo 2 5 PSW.bit +-1 x x x CLR1 saddr. bit 1010 OB2B1Bo Saddr-otfset 2 3 (saddr. bit)+- O sfr. bit 0000 1000 1001 1B2B1Bo 3 10 sfr. bit+- o Sfr-offset A.bit 0000 0011 1001 1~8180 2 6 A. bit+- 0 X.bit 0000 0011 1001 O~B1Bo 2 6 X. bit+- 0 PSW.bit 0000 0010 1001 0828180 2 5 PSW.bit +-0 x x x NOT1 saddr. bit 0000 1000 0111 1828180 3 6 (saddr. bit) +- (saddr. bit) --- Saddr-offset sfr. bit 0000 1000 0111 1~B1Bo 3 10 sfr. bit+- sfr. bit Sfr-offset A.bit 0000 0011 0111 1~8180 2 6 A. bit +- illt X.bit 0000 0011 0111 O~B1Bo 2 6 x. bit +- '5f.bTt PSW.bit 0000 0010 0111 0~81Bo 2 5 PSW. bit +- PSWtilt x x x 2-145 l'PD77810 NEC Table28. Instruction Encodings (cont) Instruction Code Flags Mnemonic Operand 81/83 82/84 Bytes Clocks Operation ZACCY Bit Operation Instructions (cont) SET1 CY 0100 0001 2 CY +-1 CLR1 CY 0100 0000 2 CY +-0 0 NOT1 CY 0100 0010 2 CY +-CY x Call Return Instructions CALL laddr14 0010 1000 Low addr 3 9 (SP-1) (SP-2) +- PC+ 3, --- High addr PC+- addr14, SP+- SP-2 CALLF laddr11 1001 0 +- fa 2 9 (SP-1) (SP-2) +-PC+ 2, PC12-11 +- 01, PC 10 _0 +- laddr11, SP +- SP- 2 CALLT [addr5] 111 +-ta-+ 12 (SP-1 )(SP-2) +- PC+ 1, PCH +- (addr5 + 1), PCL +- (addr5), SP+- SP-2 RET 0101 0110 8 PCL +- (SP), PCH +- (SP+ 1), SP+- SP+ 2 RETI 0101 0111 10 PCL +- (SP), PCH +- (SP+ 1), R R R PSW +- (SP + 2), SP +- SP + 3 Stack Operation Instructions PUSH rp 0011 11P1Po 7 (SP-1) +- rpH, (SP-2) +- rpl, SP+- SP-2 PSW 0100 1001 3 (SP-1) +- PSW,SP +- SP-1 POP rp 0011 01P1Po 8 rpL +- (SP), rpH +- (SP + 1), SP +- SP + 2 PSW 0100 1000 4 PSW +- (SP), SP +- SP + 1 R R R MOV SP.#byte 0010 1011 1111 1100 3 5 SP+- byte Data SP.A 0001 0010 1111 1100 2 5 SP +-A A.SP 0001 0000 1111 1100 2 4 A+- SP Unconditional Branch Instructions BR laddr14 0010 1100 Lowaddr 3 5 PC +- laddr14 --- High addr rp 0000 0101 0100 1P2P10 2 5 PCH +- rpH, PCL +- rpL $addr14 0001 0100 jdisp 2 4 PC +- $addr14 Conditional Branch Instructions BC $addr14 1000 0011 jdisp 2 4(2) PC +- $addr14 if CY= 1 BL BNC $addr14 1000 0010 jdisp 2 4(2) PC +- $addr14 if CY= 0 BNL BZ $addr14 1000 0001 jdisp 2 4(2) PC +- $addr14 if Z = 1 BE BNZ $addr14 1000 0000 jdisp 2 4(2) PC +- $addr14 if Z = O BNE 2-146 t-IEC µ,PD77810 Table28. Instruction Encodings (cont) Instruction Code Flags Mnemonic Operand 81/83 82/84 Bytes Clocks Operation ZACCY Conditional Branch Instructions (cont) BT saddr. bit, $addr14 0111 OB2B1 Bo Saddr-offset 3 6(4) PC ~ $addr 14 if (saddr. bit) = 1 jdisp sfr. bit, $addr14 0000 1000 1011 1B2B1Bo 4 9(7) PC ~ $addr14 if sfr. bit= 1 Sfr-offset jdisp A. bit, $addr14 0000 0011 1011 1B2B1Bo 3 7(5) PC ~ $addr14 if A. bit = 1 jdisp X. bit, $addr14 0000 0011 1011 OB2B1Bo 3 7(5) PC ~ $addr14 if X. bit = 1 jdisp PSW, bit, $addr14 0000 0010 1011 O~B1Bo 3 7(5) PC ~ $addr14 if PSW. bit= 1 jdisp BF saddr. bit, $addr14 0000 1000 1010 OB2B1Bo 4 7(5) PC ~ $addr14 if (saddr. bit) = 0 Saddr-offset jdisp sfr. bit, $addr14 0000 1000 1010 1B2B1 Bo 4 9(7) PC ~ $addr14 if sfr. bit= O Sfr-offset jdisp A. bit, $addr14 0000 0011 1010 1B2B1Bo 3 7(5) PC ~ $addr14 if A. bit = 0 jdisp X. bit, $addr14 0000 0011 1010 O~B1Bo 3 7(5) PC ~ $addr14 if X. bit = 0 jdisp PSW. bit, $addr14 0000 0010 1010 OB2B1Bo 3 7(5) PC ~ $addr14 if PSW. bit= 0 jdisp BTCLR saddr. bit, $addr14 0000 0011 1101 OB2B1 Bo 4 9(5) PC ~ $addr14 if (saddr. bit) = 1 then reset (saddr. bit) Saddr-offset jdisp sfr. bit, $addr14 0000 1000 1101 1B2B1 Bo 4 13(7) PC ~ $addr14 if sfr. bit= 1 then reset sfr. bit Sfr-offset jdisp A. bit, $addr14 0000 0011 1101 1B2B1Bo 3 9(5) PC ~ $addr14 if A. bit = 1 then reset A. bit jdisp X. bit, $addr14 0000 0011 1101 OB2B1Bo 3 9(5) PC ~ $addr14 if X. bit = 1 then reset X. bit jdisp PSW. bit, $addr14 0000 0010 1101 OB2B1 Bo 3 8(5) PC ~ $addr14 if PSW. bit = 1 x x x then reset PSW. bit jdisp DBNZ r2,$addr14 0011 001Ro jdisp 2 5(3) r2 ~ r2-1, then PC~ addr14ifr2 = O saddr, $addr14 0011 1011 Saddr-offset 3 6(4) saddr ~ saddr-1, then PC ~ $addr14 ifsaddro00 jdisp CPU Control Instructions MOV WDMSR, #byte 0000 1001 0110 1101 4 12 WDMSR ~byte Data Data SEL RBn 0000 0101 1010 10N1No 2 2 RBS1-0 ~ n n= 0-3 NOP 0000 0000 2 No operation El 0100 1011 2 IE ~ 1 (enable interrupt) DI 0100 1010 2 IE ~ 0 (disable interrupt) 2-147 l'PD77810 NEC MODEM FUNCTION BLOCK FUNCTIONAL Port C (PC0 to PC6): Port C is a general-purpose 1/0 port DESCRIPTION when PCMR bit 7 = O and consists of a 7-bit register. Its SFR address is FF2EH. It is used as an input port when the For a general overview of the modem function block units, processor is reset and OOH is the initial value of the internal see Figure 1. · buffer. 1/0 is selectable on a bit basis as a general-purpose 1/0 port. It is determined by the seven bits in the PCMR re- Parallel 1/0 Port and C-RAM gister (bits O through 6). General. The modem function block, ports A, B, and D are Port C functions as bus control when PCMR bit 7 = 1. In 8-bit general-purpose 1/0 ports. Port C is a 7-bit general- this mode, the port inputs C-RAM addresses and Read/ purpose 1/0 port. These ports are selectively set to be Write signals from the host computer. See table 30. used as an input or output port by the internal program using three mode registers PTMR, PCMR, and PDMR. Table 30. Port C Functions Port D has a data bus function for transferring data to and Pin Symbol Pin Symbol from an external unit. The processor has an internal as a Port as a Bus Function as a Bus C-RAM used as a 16-byte buffer to transfer data to and PC0 -PC3 Ao-A3 C-RAM address input from an external unit. PC 4 cs Chip select input Port Eis a one-bit input port and port Fis a 3-bit output PC 5 RD Read strobe input from host computer port. See table 29. PC 6 WR Write strobe input from host computer Table 29. Parallel 110 Ports and C-RAM SFR Addresses and Descriptions Port D (PDo to PD7 ): Port Dis a general-purpose 1/0 when Unit SFRAddress Description PCMR bit 7 = O and consists of an 8-bit register. Its SFR address is FF2FH. It is used as an input port when the pro- PTMR FF28H Ports A, B, TxD, and Rxd mode registers cessor is reset and OOH is the initial value of the internal PCMR FF29H Port C mode register buffer. 1/0 is selectable on a bit basis as a general-purpose PDMR FF2AH Port D mode register 1/0 port. It is determined by eight bits (PDMR bit O through Port A FF2CH 8-bitgeneral-purpose 1/0 port PDMR bit 7) in the PDMR register. See table 33. PortB FF2DH 8-bitgeneral-purpose 110 port Port D functions as a data bus when PCMR bit 7 = 1. In this Porte FF2EH 7-bit general-purpose 1/0 port mode, port C is used as an address and control bus for an 16-byte data bus of C-RAM and its address is specified by Porto FF2FH 8-bitgeneral-purpose 1/0 port Ao through A3 of port C. PortE FF57H 1-bit general-purpose input port Ports A through D are all selected as input ports when the PortF FFSCH 3-bit general-purpose output port processor is initialized or reset. The ports when selected as C-RAM FF90H Memory used to transfer data to and from an input or output ports, can be either written or read. When toFF9FH external unit used as an output port, the following applies: • Write - GPP data will be written to the external port. Functions. Port A (PAo to PA7 ): Port A is a general- purpose 1/0 port consisting of an 8-bit register. Its SFR • Read - the most recent data written to the port from the address is FF2CH. It is used as an input port when the GPP will be read back to the GPP. processor is reset and OOH is the initial value of the internal When used as an input port, the following applies: buffer. Bits 4 and 5 of the PTMR (PTMR4 and PTMRs) determines whether each of two 4-bit groups are input or • Write-GPP data will be written to the external port. output. • Read - the external data that is input to the port is read Port B (PBo to PB7 ): Port B is a general-purpose 1/0 port into the GPP. consisting of an 8-bit register. Its SFR address is FF2DH. It Port E (PE): Port Eis a general-purpose input port consist- is used as an input port when the processor is reset and ing of a 1-bit register. Its SFR address is FF57H. The input OOH is the initial value of the internal buffer. Bits O through value can be read from bit O of the G-bus. The remaining 3 of the PTMR (PTMR0 through PTMR3) determines bits 1 through 7, contain O's. No data can be written to whether each of three 2-bit groups are input or output. port E. 2-148 NEC #£PD77810 Port F (PF0 to PF2): Port Fis ageneral-purposeoutput port Table33. PDMR Functions consisting of a 3-bit register. Its SFR address is FF5CH. PDMR Value Function The internal register is set as OH when the processor is Bitn 0 PDn is an output port (valid when PCMR reset. n=0-7 bit7=0) Bits O through 2 of the G-bus are output bits. The port can PDn is an input port (valid when PCMR also be read. Bits 3 through 7 contain O's. bit?=O) Port Mode Register (PTMR): The PTMR consists of an 8-bit register. It selects the mode of ports A and Band the Control RAM (C-RAM): C-RAM is a 16-byte by 8-bit mem- RxD and TxD pins. Its address is FF28H and is 3FH when ory. It is mapped as SFR addresses FF90H through the processor is initialized and reset. See table 31. FF9FH. Table 34 shows the relationship between C-RAM and SFR addresses, when PC0 to PC3 of port C are used Table31. PTMR Functions as an address bus. PTMR Value Function Table 34. C-RAM SFR Address Mapping Bit7 0 RxD is an output port and TxD is an input port External Address (PCa-PC0) RxD and TxD are not used as a port A3 A2 A1 AO (HEX) SFRAddress Bit6 Not used 0 0 0 0 (OH) FF90H Bit5 0 PA4 to PA7 (high-order four bits) are output ports 0 0 0 (1H) FF91H PA4 to PA7 (high-order four bits) are input ports Bit4 0 PA0 to PA3 (low-order four bits) are output ports 0 (EH) FF9EH PA0 to PA3 (low-order four bits) are input ports (FH) FF9FH Bit3 0 PB 7 and PB6 are output ports PB 7 and PB6 are input ports Addresses 7H and FH (C-RAM memory external ad- Bit2 0 PB5 and PB 4 are output ports dresses) store information indicating the C-RAM status. PB 5 and PB4 are input ports 7H indicates the status of OH to 6H and FH indicates the Bit1 0 PB 3 and PB 2 are output ports status of 8H to EH. See table 35. PB3 and PB 2 are input ports Table 35. C-RAM Status Functions BitO 0 PB 1 and PB0 are output ports 7H Memory Bit Function FH Memory Bit Function PB 1 and PB0 are input ports Bit O OH memory status Bit 0 SH memory status Bit1 1H memory status Bit1 9H memory status Port C Mode Register (PCMR): The PCMR consists of an 8-bit register. Its address is F29H and is 7FH when the pro- cessor is reset. See table 32. Bit6 SH memory status Bit6 EH memory status Bit7 0 Bit7 0 Table 32. PCMR Functions PCMR Value Function The state of a memory status bit, indicates the following: Bit7 0 Ports C and D are set as a port O = No write or read request is issued by the Ports C and D are set as a bus µPD77810. Bitn 0 PCn is an output port (valid when PCMR 1 = A write or read request is issued by the µPD77810. n=0-6 bit?=O) Each status bit is set to 1 by a GPP transfer instruction, but PCn is an input port (valid when PCMR cannot be set to Oby a GPP transfer instruction. When an bit7=0) external host computer accesses OH to 6H and 8H to EH, the corresponding status bit is set to O. All bits are set to O Port D Mode Register (PDMR): The PDMR consists of an when the processor is reset. 8-bit register. It selects port D in the input or output mode. Its SFR address is FF29H and is FFH when the processor A read access to the C-RAM can be performed by the GPP is reset. See table 33. and an external host computer simultaneously, but simul- taneous write access is denied. 2-149 µPD77810 t\'EC Scrambler (SCR) and Descrambler (DSC) Control Registers (SCAM and DSCM). Table 38 shows the functions of the 4-bit SCRM and the 3-bit DSCM. Both the scrambler (SCR) and descrambler (DSC) consist of a polynomial counter, a protection circuit, and an Table 38. SCRM and DSCM Functions SCRMR used to set the mode. Registers SCR and DSC are one-bit registers corresponding to the LSB of the data Bit Name Functi.on bus. They also have a 4-bit SCRM register and 3-bit 4-8/t SCRM Functions DSCM register as a control register. See table 36. 3 SCAM.INT Initial data loading (when the bit changes from Oto1) Table 36. Scrambler and Descrambler SFR Addesses 2 SCRM.CLR Scrambler clear (when the bit is 1) and Descriptions SCRM.STT Scrambler protection circuit start (when the bit Unit SFRAddress Description changes from Oto 1) SCRMR FF40H Mode register 0 SCAM.AST Scrambler protection circuit reset (when the SCA FF41H Scrambler port bitis1) DSC FF42H Descrambler port 3-Blt DSCM Functions SCAM FF65H Scrambler control register 2 DSCM.CLR Descrambler clear (when the bit is 1) DSCM FF66H Descrambler control register DSCM.STT Descrambler protection circuit start (when the bit changes from Oto 1) 0 DSCM.RST Descrambler protection circuit reset (when the Mode Register (SCRMR). The SCRMR is an 8-bit regis- bitis1) ter. Each bit (bit 7 = MSB and bit O = LSB) specifies the multiplexer mode as shown in Figures 15 and 16. Bits 7 through 2 are shared by the SCR and DSC. Bit 1 is used TxPLL and RxPLL only by DSC and bit 0 is used only by the SCR. Table 37 The transmitting phase-locked loop (TxPLL) and the re- shows the relationship between the SCRMR bit patterns ceiving phase-locked loop (RxPLL) consist of a group of and CCITT V series recommendations. counters, including some that are only partially resettable, a preset controller, and a PLL mode register (PLLMR) to Table 37. SCRMR Functions setthe mode. See Figure 17. The TxPLLadjuststhe phase Bits to the external bit rate clock. RxPLL adjusts it to the phase CCITT Generating Recommendation 7 6 5 4 3 2 1 0 Function detected internally. The AID and DIA precisions (bit length) are set by the SR register (see DSP internal functions) and V.22, V.22bis 0 0 0 0 0 0 - - 1 +X-14+X-17(Note1) DAMR register (see AID and DIA interface) in DSP. V.27 0 0 - - 1 + x-s + x-1(Note2) Table 39 lists the clocks used by TxPLL and RxPLL. V.27bis, V.27ter 1 0 - - 1 + x-s + x-1(Note3) V.29 1 1 0 0 1 + x-10 + x-23 Table 39. TxPLL and RxPLL Clocks V.26/V.32call 1 1 1 0 1 + X-18 + X-23 : SCA Pin Symbol Clock Function 1 + x-s + X-23 : DSC ADST AID sampling clock V.26/V.32 answer 1 1 0 1 + x-s + X-23 : SCR 1 + x-10 + X-23 : DSC ADCK A/D data serial clock Notes: RT Received data bit rate clock (1 in asynchronous mode) (1) The processor has a protection circuit (conforming to Recommenda- RBAUD Received data baud rate clock tion V.22) that reverses the next scrambler input, when 1 is output continuously to the scrambler 64 times. DALO D/A data load strobe clock (2) The processor has a protection circuit (conforming to Recommenda- D/A data serial clock tion V.27) that protects repeated patterns of 1, 2, 3, 4, 6, 9, and 12 in bits 2 through 6. Example of 45 bits of transmitted bit strings follows: STINT Transmited data bit rate clock (1 in asynchronous mode) 32 SBAUD Transmitted data baud rate clock P (x) = I a (i) xi (i=O) ST16 16-time clock of transmitted bit rate used in ASC block Where, a (i) = 0 or 1 RT16 16-time clock of received bit rate used in SAC block a (i) = a (i + 9) or a (i + 12) Bit data is inverted before transmission. (3) The processor has a protection circuit (conforming to V.27bis and V.27ter Recommendations) that protects repeat patterns of 1, 2; 3, 4, 6, 8, 9, and 12 in bits 2 through 6. 2-150 NEC l'PD77810 Figure 15. SCR Block Diagram Parallel Load INT: SCAM [3] CLA: SCAM (2] GBUS 0 0 1 1 1 1 0 I. f Zero Clear Save + + + + + + + - Initial Load (LSB) SFA (Shift register, 23 bits) Exe;v bit 5 6 7 8 g 12 1417 1823 SCAMA (1] FFCK ·v.21 = V.27N.27bisN.27ter 83ML-5825B TxPLL. TxPLL is a PLL whose theory of operation is based In Figure 18, CMP is a phase comparator that outputs the on a frequency divider with an adjustable ratio. The incre- phase of STEXT or RT at the rising edge of SBAUD. CNT menter (INCR) shown in Figure 18 is incremented by one at is an incremental/decremental counter. It is incremented an input clock rate of 5.5296 MHz. When INCR reaches the or decremented by one according to the CMP output. number 6 it inputs either 0, 1, or 2 as determined by the When CMP reaches +3 or more, it issues a TFO set signal; 2-bit FLIP/FLOP (TFO and TF1). Table 40 shows the TFO when -3 or less, it issues a TF1 set signal. TFO and TF1 are and TF1 values. updated every time an SBAUD is generated. TFO and TF1 select the multiplexer output and change the timing for the Table 40. TFO/ RFO and TF1 I RF1 Values INCR division ratio to 2400 Hz/9600 Hz, selectable by TFO/RFO TF1/RF1 Data to be Loaded in INCR PLLMR. 0 0 1 (1/6) At the rising edge of STINT, an interrupt signal IST is 0 2(1/5) output. 0 0(1/7) RxPLL. RxPLL is a PLL whose theory of operation is Inhibited based on a frequency divider with an adjustable ratio. 2-151 l'PD77810 NEC Figure 16. DSC Block Diagram CLR: OSCM [2] GBUS f ZeroClear Save (LSB) DSC Port 1---------1 F/F SFR (Shift register, 23 bits) [FF42H] bit 5 6 7 9 12 14 17 18 23 FFCK *V.27 = V.27N.27bisN.27ter 83ML·5826B In Figure 19, INCR is an incrementerthat is incremented by Mode Register PLLMR1: The PLLMR1 mode register is an an input clock rate of 5.5296 MHz. When INCR reaches the 8-bit register. Each bit (bit O = LSB) specifies the multi- number 6, it inputs 0, 1, or 2 at the next increment. Data to plexer mode. PLLMR1 specifies whether the SBAUD and be loaded is determined by the 2-bit FLIP /FLOP (RFO and RBAUD pins are used as a baud rate clock output pin or RF1 ). Table 40 shows the RFO and RF1 values. input port (PG 0 and PG 1). PLLMR1 also performs as an input register when the pins are used as input ports. RFO and RF1 are set or reset with a DSP instruction (write instruction to the SR register). These bits select the multi- Bit 7 (MSB) of the PLLMR1 controls TFO and TF1 of TxPLL plexer output and change the timing for the INCR division and bit 6 controls RFO and RF1 of RxPLL. Bits 5 and 4 ratio to 2400 Hz/9600 Hz, selectable by PLLMR. At the specify the clock source of the transmitting PLL and bit 3 rising edge of RTINT, an interrupt signal IRT is output. specifies the mode of the SBAUD and RBAUD pins. Bits 1 and Oenables the SBAUD and RBAUD pins, when the pins Mode Registers. Table 41 shows the PLLMR1, PLLMR2, are used as input ports. Figure 17 shows the PLLMR1 and BAUDSR register SFR addresses. functions. The PLLMR1 register uses the SFR address of FF44H. Table 41. PLLMR1, PLLMR2, and BAUDSR Register PLLMR1 bits 2 through 7 are set to 0, and bits O and 1 are SFR Addresses set to an undefined value when the processor is reset. Unit SFR Address Description When PLLMR1 is read immediately after it is written an PLLMR1 FF44H PLL mode register 1 (8 bits) incorrect value may occur in bits 6 and 7. PLLMR2 FF7EH PLLmoderegister2(8bits) BAUDSR FF45H SBAUD and RBAUD status register (2 bits) (low-order2bits) 2-152 NEC 1£PD77810 Figure 17. PLLMR1 Functions PLLMR1 PLLMR1 Bit? TFO and TF1 Update Cycle Bit Transmitter Clock 0 2400 Hz 5 4 1 9600 Hz 0 0 Internal Clock (STINT) (Self Run) 0 1 External Clock (STEXT) PLLMR1 1 0 Slave Clock (RT) BH RFO and RF1 Update Cycle 1 1 Inhibited 0 2400 Hz 1 9600 Hz PLLMR1 Bit3 SBAUD and RBAUD Pin Mode 0 Input Port 1 Baud Rate Clock Output PLLMR1 Bit Function 1 SBAUD Pin Input Bit 0 RBAUD Pin Input Bit Note: (1) A Frequency Rate of 2400 Hz cannot be used for the update cycle clock in phase control of the Tx PLL. Mode Register PLLMR2: The PLLMR2 mode register is an SBAUD and RBAUD Status Register BAUDSR: The 8-bit register. Each bit selects a multiplexer mode. The BAUDSR is a 2-bit read-only register that indicates the high-order four bits of PLLMR2 select the transmit (TxPLL) SBAUD and RBAUD status. Bit 1 indicates the SBAUD clock rate and the low-order four bits select the receive status and bit 0 indicates the RBAUD status 1 or 0. (RxPLL) clock rate. The BAUDSR register has an SFR address of FF45H. The Table 42 lists the PLLMR2 functions. The PLLMR2 register SFR address is set as OH when the processor is reset. In has an SFR address of FF7EH. The SFR address is 33H read mode, bits 2 through 7 output Os. when the processor is reset. 2-153 µPD77810 NEC Table42. PLLMR2 Functions Bits Bits 7 6 5 4 SBAUD(Hz) STINT(Hz) ST16(Hz) 3 2 1 0 RBAUD(Hz) RT(Hz) RT16(Hz) 0 0 0 0 300 300 4800 0 0 0 0 300 300 4800 0 1 0 0 600 600 9600 0 1 0 0 600 600 9600 0 0 0 1 600 1200 19200 0 0 0 1 600 1200 19200 0 0 1 1 600 2400 38400 0 0 1 1 600 2400 38400 0 0 1 0 1200 1200 19200 0 0 1 0 1200 1200 19200 0 1 1 0 1200 2400 38400 0 1 1 0 1200 2400 38400 0 1 1 1 1600 4800 76800 0 1 1 1 1600 4800 76800 1 0 0 0 2400 2400 38400 1 0 0 0 2400 2400 38400 1 0 0 1 2400 4800 76800 1 0 0 1 2400 4800 76800 1 0 1 1 2400 9600 153600 1 0 1 1 2400 9600 153600 1 0 0 2400 7200 115200 1 0 1 0 2400 7200 115200 1 1 1 0 2400 14400 230400 1 1 1 0 2400 14400 230400 1 1 1 1 2400 19200 307200 1 1 1 1 2400 19200 307200 Note: (1) There is a possibility that erroneous data could occur if the GPP is allowed to write and read data to the PLLMR2 simultaneously. ASC, SAC, and UART Table 43. ASC, SAC, UART Register SFR Addresses This circuit provides a serial interface asynchronously Unit SFR Address Description with the DTE. The circuit consists of an asynchronous-to- ASMA FF49H Asynchronous/synchronous mode register synchronous converter (ASC), and synchronous-to- URTMR FF4AH UART mode register asynchronous converter (SAC), and a universal asyn- (low-order? bits) chronous receiver transmitter (UART) (URTI for input and URTSR FF4BH UART status register URTO for output). (low-order 4 bits) The mode of the ASC and SAC is selected by the ASMR ASCR FF4CH ASC register mode register. In synchronous mode, the serial clock is RT SACR FF4DH SAC register and ST. The mode and control of UART is selected by the URO FF3EH URO register URTMR mode register and its status is retained in the URI FF3FH URI register URTSR register. This circuit is invalid when PTMR bit 7 = o. The RxD pin is The asynchronous/synchronous mode register (ASMR) is used a an output port and the TxD pin is used a an input an 8-bit register. It inputs ASC serial data and URTI serial port. The LSB of SACR is input to RxD and TxD outputs data, selects the RxD pin output signal, selects the charac- data to the MSB of ASCR. ter length and signaling rate range, sets a loop from RxD to Table 43 lists the SFR addresses of the ASC, SAC, and TxD, and selects aynchronous or synchronous mode. The UART register. Figure 20 shows the block diagram of the register contains OOH when the processor is reset. Figure 21 ASC, SAC, and UART. lists the ASMR functions. 2-154 NEC ,iPD77810 Figure 18. TxPLL Block Diagram STEXT DACK CNT : DALO 5.5296 MHz PLLMR2 1600 Hz INC ROUT 7200 Hz STINT o•---1 300 Hz 1200 Hz 600 Hz 2400 Hz 4800 Hz 83ML·5827B 2-155 1£PD77810 NEC Figure 19. RxPLL Block Diagram G-Bus IPL~11 MPX ADST 5.5296 MHz 1600 Hz INC ROUT 7200 Hz RT ~ N N N N 300 Hz 1200 Hz ~ ::c ..x ~ ~ 600 Hz 2400 Hz co cs PC2 s Line DACK TDB DR PC3 CD PC4 DALO WRITE AIN RCV RING Cl PC5 MODE P~o 1------~, PT PB4 OT (ALE) (WR) LT PD0-PD7 PCs PB7 GT 8 bits LED Indicator Audio Mode Switch Monitor Note: • Under development 83ML·5980B 2-168 t-IEC µPD7281 IMAGE PIPELINED NEC Electronics Inc. PROCESSOR Description Pin Configuration The NEC µPD7281 Image Pipelined Processor is a high-speed digital signal processor specifically Vee designed for digital image processing such as RESET IACK restoration, enhancement, compression, and pattern IREQ OREO recognition. The µPD7281 employs token-based data- 10815 00815 fl flow and pipelined architecture to achieve a very high 10814 00814 throughput rate. A high-speed on-chip multiplier 10813 speeds calculations. More than one µPD7281 can 10812 10811 easily be cascaded with a minimum amount of interface hardware to increase the throughput rate even further. The µPD7281 is designed to be used as a peripheral processor for minicomputers or microcomputers, thereby relieving the host processor from the burden of time-intensive computations. The µPD7281 has a very powerful instruction set designed specifically for digital image processing algorithms. The Image Pipelined Processor can also be used as either a general purpose digital signal processor or a numeric processor. Features 49-000064A D Token-based data-flow architecture D Internal pipelined ring architecture D Powerful instruction set for image processing Performance Benchmarks D 17 x 17-bit (including sign bits) fast multiplier: Operation 1 µPD7281 3µPD7281s Note 200 ns Rotation 1.5 sec 0.6 sec 512 x 512 binary image D High-speed data 110 handling - Asynchronous two-wire handshaking protocols 1/2 Shrinking 80 ms 30 ms 512 x 512 binary image - Separate data input and output pins Smoothing 1.1 sec 0.4 sec 512 x 512 binary image D Easy multiple-processor configuration 3x3 Convolution 3.0 sec 1.1 sec 512 x 512 grey scale image D Rewritable program stores 64-stage FIR D On-chip memories: 50µs 18µs 17-bit fixed point Filter - Link Table (LT): 128 x 16 bits cos(x) 40µs 15µs 33-bit fixed point - Function Table (FT): 64 x 40 bits - Data Memory (OM): 512 x 18 bits - Data Queue (DQ): 32 x 60 bits Ordering Information - Generator Queue (GQ): 16 x 60 bits Part Number Package Type - Output Queue (OQ): 8 x 32 bits µPD7281D 40-pin ceramic DIP D NMOS technology D Single +5 V power supply D 40-pin DIP Applications D Digital image restoration D Digital image enhancement D Pattern recognition D Digital image data compression D Radar and sonar processing D Fast Fourier Transforms (FFT} D Digital filtering D Speech processing D Numeric processing 2-169 NECEL-000076 µPD7281 NEC Pin Identification Architecture At The µPD7281 utilizes a token-based, data-flow No. Signal 1/0 RESET Description architecture. This novel architecture not only provides RESET In System Reset: A low signal on multiprocessing capability without complex external this pin initializes µPD7281. hardware, but also offers high computational efficiency During the reset, a 4-bit module within each processor. Taking advantage of the multi- number should be placed on IDB15 - IDB12- processing capability of data-flow architecture, almost any processing speed requirements can be satisfied by 2 IACK Out High Input Acknowledge: This using as many µPD7281s as needed in the system. acknowledge signal is output by the µPD7281 to notify the Within each µPD7281, the data-flow architecture external data source that a 16- provides high computational efficiency through bit data transfer has been concurrent operations. For example, while the completed. Processing Unit (or ALU) spends its time for actual 3 IREQ In Input Request: This input computations only, the internal memory address signal requests a data transfer calculations, internal memory read and write from an external device to operations and input/output operations are all being µPD7281. done concurrently. Furthermore, in contrast to 4-19 IDB15 - IDBo In 16-bit input data bus: 32-bit conventional von Neumann processors, a data-flow input data tokens are input to processor doesn't fetch instructions, perform the Input Controller as two 16- bit words. subroutine stack operations or do data transfers between registers. Therefore, it does not spend the 20 GND Power ground time required for these operations. 21 CLK In System clock input (10 MHz: target spec) The µPD7281 also utilizes an internally pipelined architecture. As shown in the block diagram, a circular 22-37 ODB15 · ODBo Out High 16-bit output data bus: 32-bit Impedance output data tokens are output pipeline is formed by five functional blocks: the Link by the Output Controller as Table (LT), the Function Table (FT), the Data Memory two 16-bit words. (DM), the Queue (Q), and the Processing Unit (PU). A 38 OREO Out High Output Request: This signal token entered through the Input Controller (IC) is informs an external device that passed on to the Link Table to be processed around the a 16-bit data word is ready to pipelined ring as many times as needed. When a token be transferred out of µPD7281. is finished being processed, it is queued into Output 39 OACK In Output Acknowledge: This Queue (OQ) and then output via the Output Controller acknowledge signal input by (OC). the external data destination notifies µPD7281 that a 16-bit data transfer may occur. 40 Vee +5 V power supply 2-170 NEC µPD7281 Block Diagram 32 IC: Input Controller. Controls input data tokens and determines whether or not an input data token should be sent to the circular pipeline for processing. OC: Output Controller. Controls output data tokens. LT: Link Table f128 words x 16 bits]. Stores instruction parameters FT: Function Table !64 words x 40 bits]. Stores instruction parameters OM: Data Memory j512 words x 18 bits). Stores constants or temporary data. 0: Queue [ 48 words x 60 bits). FIFO queue. Data Ou~ue: 32 words x 60 bits Generator Queue: 16 words x 60 bits. PU: Processing Unit. Executes logical, arithmetic and bit operations 00: Oulpul Queue [8 words x 32 bils/. FIFO queue for the oulpul tokens. AG/FC: Address Generator and Flow Controller. Generates addresses for DM and controls the flow of tokens. RC: Refresh Controller. Generates refresh tokens tor internal DRAMs 49-0001328 Absolute Maximum Ratings Capacitance TA= +25°C TA= +25°C Supply voltage, Voo -0.5 V to +7.0 V Limits Test Input voltage, V1 -0.5 V to +7.0 V Parameter Symbol Min Max Unit Conditions Output voltage, Vo -0.5 V to +7.0 V CLK capacitance CK 20 pF fc = 1 MHz Operating temperature, Topn (2 mis air flow) Input capacitance C1 10 pF (All other pins atO V) Operating temperature, TOPT2 (No air flow) 0°C to +45°C Output capacitance Co 20 pF Storage temperature, TSTG -65°C to +150°C 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. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. '>-171 µPD7281 NEC DC Characteristics AC Characteristics {cont) TA= 0°c to +10°c, v00 = 5 v ±10% TA= 0°c to +10°C, v00 = 5 v ±10% limits Test limits Test Parameter Symbol Min Typ Max Unit Conditions Parameter Symbol Min Typ Max Unit Conditions Input low V1u -0.5 0.7 v IREO fall time t1aF 10 ns voltage 1 Data set up time ts10 40 ns (RESET, IDB1s-o) (before IREO up) Input high V1H1 2.0 Voo +0.5 v Data hold time 0 ns voltage 1 tHID (after IREQ up) (RESET, IDB1s-o) OREO delay time 1 tooaH 15 35 ns Input low V1L2 -0.5 0.45 v (from OACK down) voltage 2 (IREO, OACK, CLK) OREO delay time 1 tooaL 15 45 ns (from OACK up) Input high V1H2 3.5 Voo + o.5 v ~~ Min time between too A 15 ns (IREO, OACK, CLK) transitions on OREO and OACK Output low Vol 0.45 v loL = 2.0 mA voltage OACK rise time toAR 10 ns Output high VoH 2.4 v loH = -400µA OACK fall time to AF 10 ns voltage Data access time tooo 25 ns Input leakage lu ±10 µA o v ::s V1 ::s Voo (after OREO down) current Data float time tFOo 10 35 ns Output leakage ILO ±10 µA ov ::s Vo ::s Voo (after OREO up) current Pre RESET tRVRST tcLK ns Supply current loo 320 500 mA high time RESET low time twRST 6tcLK ns AC Characteristics TA= 0°c to +70°C, v00 = 5 V ±10% Module number to MO 2tcLK ns data setup time Limits Test (after RESET down) Parameter Symbol Min Typ Max Unit Conditions Module number 0 ns tHMD CLK cycle time tcLK 100 500 ns Measured at data hold time 2V (after RESET up) CLK pulse width twKH 40 ns Reset delay toRST (1 /2)tcLK ns high from CLK down CLK pulse width twKL 40 ns Notes: low (1) "Down"= on falling edge CLK rise time tKR 10 ns (2) "Up"= on rising edge (3) Output load capacitance: IACK, OREO= 50 pF; ODB 15_0 = CLK fall time tKF 10 ns 100 pF IACK delay time 1 tolAL1 20 50 ns (from IREO down) (Note 1) IACK~time1 tolAH1 20 55 ns (from IREO up) (Note 2) IACK d~ time 2 to1AL2 20 70 ns (from IREO down) IACK delay time 2 to1AH2 20 70 ns (from IREO up) Min time between tHIQ 15 ns transitions on IREO and IACK IREO rise time t1aR 10 ns 2-172 NEC µPD7281 Timing Waveforms AC Test Input Voltage AC Test Output Voltage RESET, IDB 2.0 0.8 > Test Points< 2.0 0.8 OREO, IACK, 008 > Test Points < 2.4 0.45 83-001866A 3.5 CLK, IREQ, OACK >Test Points< 0.45 Module Number and RESET Timing 83-001865A Clock Timing El CLK toRsr-J 1- 83-001867A CLK JULrL 83-001868A Input Handshake Timing t1QA -- l1QF ---IDIAH1- -IDIAL2- -IDIAH2- 10815-IDBo -------•s10- --•s10----- 83-001869A Output Handshake Timing -•oooH- -IDOQL- -•oooH- -toooL- - .__tOAF 00815-0DBo - - - - -•coo- -•Foo- --•coo- --•Foo- 83-0018708 µPD7281 tt¥EC Functional Description shown in figure 1. Each µPD7281 must be assigned a Module Number (MN) during reset. Figure 2 shows the As shown in the block diagram, the µPD7281 consists timing diagram for assigning the module number. of 10 functional blocks. Before any processing occurs, the host processor down-loads the object code into When any token enters a µPD7281, regardless of the the Link Table and the Function Table of the µPD7281 total number of µPD7281 s used in the system, the by using specially formatted input tokens. At this time, Input Controller of that µPD7281 discerns whether or constants may also be sent to the Data Memory to be not the entering token is to be processed by checking stored. The contents of the Link Table and the Function the Module Number (MN) field of the token. If the Table are closely related to a computational graph. Module Number is not the same as the Module Number When a computational process is represented assigned during reset, the token is passed to the graphically, it usually forms a directed data-flow graph. Output Controller so that it can be sent out via the In such a graph, the arcs (or edges, links, etc.) Output Data Bus. However, if the token has the same represent the entries in the Link Table and the nodes Module Number, then the Input Controller strips off represent the entries in the Function Table. An arc the MN field and sends the remaining part of the token between any two nodes has a data value, called a "token", to the Link Table for processing. and is identified by a corresponding entry in the Link Once a token enters the circular pipeline by accessing Table. A node in the directed data-flow graph signifies the Link Table, it requires seven pipeline clock cycles an operation, and the type of operation is logged into for the token to fully circulate around the ring. One the Function Table along with the identification infor- pipeline clock cycle is needed for the Link Table, the mation about the outgoing arc. Function Table, or the Data Memory to process an A minimal amount of interface hardware is required to incoming token, and two pipeline clock cycles are configure µPD7281s in a multiprocessor system. As needed for the Queue or the Processing Unit to many as 14 µPD7281 s can be cascaded together, as process a token. The Queue requires one pipeline Figure 1. Connecting Multiple µPD7281s O"''"' Handshake { OAC• IACK OACK OAC<} Handshake Ooo• Lines OREO IREQ OREO IREQ Lines .- - ODB1s IDB1s ODB1s IDB1s • • • ODB14 IDB14 ODB14 IDB14 • • • Output Data Bus I- Input Data Bus OD Bo IDBo OD Bo IDBo --J Chip #N-1 Chip #N Chip #N+1 <190001408 Figure 2. Timing Diagram for Assigning Module Numbers During RESET RESET~ High Impedance MNR(4): IDB, 5 - IDB12 'From external hardware 49-000065A 2-174 NEC µPD7281 clock cycle to write and one cycle to read. Similarly, in figure 3. A data token flowing within the circular the Processing Unit requires one pipeline clock cycle pipeline must have at least a 7-bit Identifier (ID) field to execute and one clock cycle to output the result. In and an 18-bit data field. The ID field is used as an other words, both the Processing Unit and the Queue address to access the Link Table memory. When a are made of two-stage pipelines. Therefore, when token accesses the LT memory, the ID field of the seven tokens exist simultaneously in the circular token is replaced by a new ID (shown as ID' in figure 3) pipeline, the pipeline is full and full parallel processing previously stored in the LT memory. As a result, every is achieved. time a data token accesses LT memory, its ID field is When a data token flows through each functional renewed. The data field of a token consists of a control El block in a given µPD7281, the format of the token bit, a sign bit and a 16-bit data. A token may have up to changes significantly. The actual transitions of a token two data fields, as well as other fields (OP code, control, format through different functional blocks are shown etc.) if necessary. Figure 3. Token Formats and Transitions 1 16 1/0 Token [32) I MN H ID CTLF DATA LT Contents 11 l\_,,.,,,I 16 1 2 LTToken[28] iui ID CTLF DATA FTA ID' IJ:I FTRC 16 DATA FT Contents 14 16 10 FTL FTR FTT 12 1 1 16 DM Token [54) U ID' or ID" SEL DM Address PUF FTL [Lower 12 bits) c s DATA ~Internal Use [Specifies RD, WR, or REFRESH] ~1 -1 ------16-D_M_C~o_nt_en_ts_~ '---------------------512x1e~jc~ls~l~-----D-AT_A_ _ _ _~ 12 1 1 16 1 1 16 Q Token [61) u ID' or ID" SEL PUF FTL [Lower 12 bits) DATAe SA Se A Ce 12 1 1 16 1 1 16 PU Token (60) u ID' or ID" SEL PUF FTL[Lower 12 bits) DATAe SA Se CA Ce 2 1 12 1 1 16 1 1 16 ID' or ID" SEL FTL [Lower 12 bits] DATAe 0 Q Token [59) PUF SA Se CA Ce 1/0 Token Input or Output Token SEL SELection field LT Token A token accessing the Link Table FTRC Function Table Righi field Control bit FT Token A token accessing the Function Table FTL Function Table Left field DM Token A token accessing the Data Memory FTR Function Table Right field Q Token A token accessing the Queue FTT Function Table Temporary field PU Token A token accessing the Processing Unit PUF Processing Unit Flags OQ Token A token accessing the Output Queue c Control bit for a 16-bil data CA Control bit for a 16-bil data from A side MN Modula Number Ce Control bit for a 16-bll data from e side ID Identifier for an input or output token s Sign-bit for a 16-bit data ID' Identifier tor a token which exits LT for the first time SA Sign-bit for a 16-bil data from A side ID" Identifier tor a token which exits LT for the second lime Se Sign-bit for a 16-bit data from e side CTLF Control field DATAA 16-bit data from A side DATA 16-bit data field DATAe 16-bit data from e side FTA Function Table Address 49-0001338 2-175 µPD7281 NEC Input Controller [IC] consist of a 6-bit Function Table Address (FTA), a 7-bit A 32-bit token is entered into a µPD7281 in two 16-bit ID, a 1-bit Function Table Right Field Control (FTRC), halves using a two-signal request/acknowledge hand- and a 2-bit Selection (SEL) field. When a token shake method, as shown in figure 4. The input/output accesses LT memory, its ID field is replaced by the new token format is shown in figure 7. After a token is ID field contained in the memory location being accepted by the IC, the MN field of the token is accessed. Therefore, every time a token accesses LT compared to the Module Number of µPD7281 which memory, it is given a new ID. The FTA field is used to was assigned at reset. If the Module Number of the access FT memory locations. The FTRC bit and the accepted token is not the same, the IC passes the SEL field are used to specify the type of instruction. By token directly to the Output Controller. If the MN field of using specially formatted tokens, the contents of the the accepted token is the same, then the IC strips off LT can either be set during a program download or be the Module Number and sends the remaining part of read during a diagnosis. the token to the Link Table. The IC also monitors the Function Table [FT] status of the Processing Unit. If it is busy, the IC delays The FT is a 64 x 40-bit dynamic RAM. As for the case of accepting another token until it is no longer busy. The the Link Table, the contents can either be set during a IC also accepts the refresh tokens from the Refresh program download or be read during a diagnosis by Controller (RC) and sends them to the Link Table. using specially formatted tokens. Each FT memory location consists of a 14-bit Function Figure 4. Handshake Timing Waveforms Table Left field (FTL), a 16-bit Function Table Right field (FTR), and a 10-bit Function Table Temporary field (FTT). These fields contain control information IREQ for different types of instructions. Address Generator and Flow Controller [AG/FC] IACK The AG/FC generates the addresses to access the Data Memory (DM) and controls the writing of data to and the reading of data from the Data Memory. AG/FC IDBo· IDB1s determines whether the incoming token contains a Input Token Timing 49-000069A one-operand instruction or a two-operand instruction. One-operand instruction tokens can be sent directly to the Queue. However, if the token contains a two- operand instruction, then both operands must be available before they can be sent to the Queue. For a OREO two-operand instruction, the token which arrives at the Data Memory first is temporarily stored until the second operand token arrives. When the second OACK operand token exits the Function Table, the AG/FC generates the Data Memory address which contains ODBo· ODB1s High the first operand. Then, the second operand token and *target spec Output Token Timing 49-000070A the first operand data read out from the Data Memory are sent to the Queue together. Data Memory [OM] Output Controller [OC] The DM is a512x18-bit dynamic RAM which is used to The OC outputs 32-bit tokens in two 16-bit halves queue the first operand for a two-operand instruction using a two-signal request/acknowledge handshake until the second operand arrives. DM can also be used method, as shown in figure 4. The types of tokens as a temporary memory or as a buffer memory for 1/0 output by the OC are as follows: output data tokens data. from the Output Queue, error status data tokens Queue [Q] generated internally by OC, DUMP tokens, and passing data tokens from the Input Controller. The Q is a Fl FO memory configured with a 48 x 60-bit dynamic RAM. The Q is used to temporarily store the Link Table [LT] Processing Unit-bound and the Output Queue-bound The LT is a 128 x 16-bit dynamic RAM. The ID field of tokens. The Q is further divided into two different FIFO an incoming LT token is used to access the LT memories: a 32 x 60-bit Data Queue (DQ) and a 16 x memory. The contents of an LT memory location 60-bit Generator Queue (GQ). The DQ is used for the 2-176 t\'EC µPD7281 PU, OUT and AG/FC instructions. The DQ temporarily Queue and the Input Controller to prevent them from stores the PU and AG/FC tokens before they are sent releasing any more tokens. to the Processing Unit for processing. The DQ also Refresh Controller [RC] temporarily stores the Output Queue tokens before they are sent to the Output Queue. The GQ is used for The RC automatically generates refresh tokens for the Generate (GE) instructions only. The DQ will not dynamic RAMs used in the circular pipeline, i.e. the LT, output tokens to the Output Queue if it is full, and the FT, OM, and Q. Each RC token, generated periodically, DQ or GQ will not output tokens to the Processing Unit is sent to the Input Controller and is propagated if the Processing Unit is busy. through the LT, FT, DM and Q, in that order. The RC tokens are deleted after reaching the Q. In order to control the number of tokens in the circular pipeline to prevent Q overflow, the Q is further restricted Operation Modes by the following two situation rules: when the DQ has There are three different modes in which the µPD7281 eight or more tokens stored, the read from the GQ is can operate: Normal, Test, and Break (see figure 5). inhibited, and when the DQ has fewer than eight tokens After an external hardware reset, the µPD7281 is in the stored, the read from the GQ has a higher priority than Normal mode of operation. The µPD7281 can enter the the read from the DQ. Since instructions stored in the Test mode for program debugging by inputting a GQ generate tokens, restricting the number of GQ SETBRK token (see figure 6) while the processor is in tokens is important in order to keep the Q from the Normal mode. If an overflow occurs in the Data overflowing. In case the internal processing speed is Queue or the Generator Queue, the processor enters slower than the rate of incoming data tokens, the DQ into the Break mode so that the internal contents of the posseses a potential overflow condition. To prevent processor can be examined; see table 1. Table 2 overflow, the processor is put into restrict/inhibit mode describes the effects of software and hardware resets. when the DQ reaches a level greater than 23. Table 1. DUMPD Output Token Format Output Queue [OQ] MN z ID CTLF DATA (16-bit field) The OQ isa first-in first-out (FIFO) memory configured 0000 0 0000 000 0111 xxxxx(5) GQ Size(5 bits) DQ Size(6 bits) in an 8 x 32-bit static RAM. The OQ is used to 0000 0000 001 0111 xxxx(4) u(1) ID(?) CTLF(4) temporarily store the output data tokens from the Data Queue so that they can be output by the Output 0000 0 0000 010 0111 DATA(16) Controller via the output data bus. When OQ is full, it 0000 0 0000 011 0111 xxx (3) u(1) ID(?) x(1) Cs, Ss. CA, SA sends a signal to the Data Queue to delay accepting 0000 0 0000100 0111 xx(2) FTL (Lower 12 bits) xx(2) further tokens. 0000 0 0000 101 0111 DATAA(16) Processing Unit [PU] 0000 0 0000110 0111 DATAs(16) The PU executes two types of instructions: PU and GE. 0000 0 0000111 0111 xxxxxxxxx(9) ID(?) PU instructions include logical, arithmetic (add, subtract x: Don't care u: Unused and multiply), barrel-shift, compare, data-exchange, bit-manipulation, bit-checking, data-conversion, double- Table 2. Effects of Reset Operation precision adjust, and other operations. The control Hardware Reset Software Reset information for a PU instruction is contained in the MN µPD7281 reads in MN No Change Function Table Left field of the PU token. The GE instructions are used to generate a new token, multiple High/Low Word Flip-flop Reset No Change copies of a token, or block copies of a token. They can Input Inhibit Control Reset (No constraint) No Change also be used to set the Control field (CTLF) of a token LT Break State Reset Reset and to generate external memory addresses. If the Internal Operation Stopped Stopped current PU operation cannot be completed within a pipeline clock cycle, the PU sends a signal to the DQ, GQ, and OQ Pointers Set to 0 Set to 0 2-177 µPD7281 NEC Figure 5. µPD7281 Operation Modes Normal Mode Run and PRGM DOWNLOAD Test Mode Break Mode Outputs Error Token Program Debugging Mode Queue Overflow May Use DUMP Sets Break Condition CBRK Token to Examine Contents Break Condition 49-000066A Figure 6. SETBRK (Set Break Condition) and SETMD (Set Mode) Token Formats SETBRK Token Format 15 12 11 10 43 MN ID COUNT 1 = Timer Count O = Event Count Event Count: Breaks after the ID Link Table entry has been accessed a specified number of times. Timer Count: Breaks after a specified number of internal pipeline clock cycles. 49-000067A SETMD [Set Mode] Token Format 15 12 11 10 0 15 14 13 12 11 4 3 I MN I I0 ID 1 I ojo I I I Refresh Count I llRSD ...-----~---------------~--' ~---,.------' ~~--.~~~ " " " " Input Control O O = No Input Restriction O 1 = Input Inhibited = 1 O Input Restricted 1 1 = Not Allowed Refresh C o u n t - - - - - - - - - - - - - - - - - - - ' To generate refresh cycles [2ms min] for LT, FT, OM and Q. Refresh. Counter must be adjusted for different external clock frequencies. Default Value = OAH [for 10MHz external clock] llRSD [Input Inhibit Register Set Data]------------------~ Every n•• pipeline clock cycle, the Input inhibit Is released, were n = [llRSD] x 8 49-0001346 2-178 NEC µPD7281 Input/Output Tokens Table and the Function Table using SETL T, SETFTR, The only way any external device can communicate SETFTL and SETFTT input tokens. The contents of the with theµPD7281 is by using the 1/0 tokens (see figure Function Table and the Link Table can also be read 7). Both the in put and the output tokens have the same using RDL T, RDFTR, RDFTL and RDFTT tokens. In format so that a token may flow through a series of order to write or read a value to and from the Data multiple processors without a format change. A 32-bit Memory, a program must be down-loaded and ex- 1/0 token is divided into upper and lower 16-bit words ecuted. Once object code is down-loaded into the and input to or output from the µPD7281 a 16-bit word µPD7281, data tokens are input to the processor, at a time. Object code is down-loaded into the Link thereby initiating the processing. For a description of the input and output tokens, see tables 3 and 4. Figure 7. Input/Output Token Format ----High Word---------if4--------Low Word-------.! ID Data MN: Module Number Z: Always Zero ID: Identifier CTLF: Control Field 49-000068A Table 3. Input Token Format Input Token High Word (16) Low Word (16) Remarks MN (4) Z (1) ID (7) CTLF (4) DATA (16) 15 12 11 10 4 3 0 15 0 SETLT MN 0 LT address 1100 Data to be set in LT Set LT SETFTR MN FT address 1 10 1 Data to be set in FTR Set FT Right Field SETFTL MN 0 FT address 11 10 Data to be set in FTL Set FT Left Field SETFTT MN FT address 1111 Data to be set in FTT Set FT Temporary Field RDLT MN LT address 1000 Read LT RDFTR MN FT address 1001 Read FT Right Field RDFTL MN FT address 1010 Read FT Left Field RDFTT MN 0 FT address 10 1 1 Read FT Temporary Field CR ES ET MN 0100 Command Reset SETMD MN 0101 Mode set data Set Operation Mode SETBRK MN ID 0110 M (1) Count (15) Set Break Condition DUMP MN xxxx(4) DUMP (3) 0 1 1 1 Dump CBRK 0000 0 0100 Command Break VAN 1111 Vanish Data PASS MN* 0 Pass Data EXEC MN ID 00cs Data Normal Execution Data *When MN is not the current module number x: Don't care 2-179 µPD7281 t-rEC Table 4. Output Token Format Output Token Upper-Order Word (16) lower-Order Word (16) Remarks MN(4) Z(1) ID (7) CTLF (4) DATA (16) 15 12 11 10 4 3 0 15 0 LTRDD 0000 0 LT address 1000 Data read from LT FT Read Data FTRRDD 0000 0 FT address 1001 Data read from FTR FT Right Field Read Data FTLRDD 0000 0 FT address 1010 Data read from FTL FT Left Field Read Data FTTRDD 0000 0 FT address 1011 Data read from FTT FT Temporary Field Read Data PASSD MN 0 ID CTLFD Data Pass Data ERR 0000 0 0 0 0 0 0 0 0 0100 MN(4)MODE(4) 0 0 0 STATUS(5) Error Data DUMPD 0000 0 0 0 0 0 DUMP(3) 0111 Dump data Dumped Data OUTD MN ID 0 0 cs Data Output Data Instruction Set Summary Tables 5 through 8 summarize the instruction set. Table 5. AG/FC Instructions Table 6. PU Instructions (cont) Mnemonic Instruction Mnemonic Instruction QUEUE Queue MUL Multiply RD CY CS Read cyclic short NOP No operation RDCYCL Read cyclic long AD DSC Add and shift count WRCYCS Write cyclic short SUBSC Subtract and shift count WRCYCL Write cyclic long MULSC Multiply and shift count RDWR Read/Write Data Memory NOPSC NOP and shift count RDIDX Read Data Memory with index INC Increment PICKUP Pickup data stream DEC Decrement COUNT Count data stream SHR Shift right CON VO Convolve SHL Shift left CNTGE Count generation SHRBRV Shift right with bit reverse DIVCYC Divide cyclic SHLBRV Shift left with bit reverse DIV Divide CMPNOM Compare and normalize DIST Distribute CMP Compare SAVE Save ID CMPXCH Compare and exchange CUT Cut data stream GET1 Get one bit SET1 Set one bit Table6. PU Instructions CLR1 Clear one bit Mnemonic Instruction ANDMSK Mask a word with logical AND OR Logical OR ORMSK Mask a word with logical OR AND Logical AND CVT2AB Convert 2's complement to sign-magnitude XOR Logical EXCLUSIVE-OR CVTAB2 Convert sign-magnitude to 2's complement AND NOT Logical INVERT an operand then AND: (A•B) ADJL Adjust long (for double precision numbers) NOT Invert ACC Accumulate ADD Add COPYC Copy control bit SUB Subtract 2-180 tt/EC µPD7281 Table 7. GE Instructions AG/FC Instructions Mnemonic Instruction There are 16 AG/FC instructions (see table 10). They COPYBK Copy block can be grouped into three types: Address Generator (AG), Flow Controller (FC), and AG/FC type. COPYM Copy multiple SETCTL Set control field AG type: RDCYCS, RDCYCL, WRCYCS, WRCYCL, RDWR, RDIDX Table 8. OUT Instructions FC type: PICKUP, COUNT, CUT, DIVCYC, DIV, DIST, Mnemonic Instruction CONVO, SAVE, CNTGE OUT1 Output 1 token AG/FC type: QUEUE OUT2 Output 2 tokens A 4-bit OP code in the Function Table right field specifies the instruction to be executed. There are four different types of instructions which can be specified by the SEL field of an FT token. See table 9. 15 14 13 12 10 9 8 7 6 1 0 Table 9. SEL Field of an FT Token FTR I OP code Iwith Instruction~aries F i e l d L - - - - - - - - - ' - ·- - - - - - - - - - - - - ' · I SEL Type Description 49-000071A 11 AG/FC Executes instructions specified by the Function Table Right field while monitoring the Function Table Temporary field. QUEUE 01 PU Performs arithmetic, logical, barrel-shift, bit- For a two-operand instruction, a QUEUE instruction is manipulation, data-conversion, etc. used to temporarily store the first operand token in the 10 GE Generates a block or multiple new tokens from a token. Data Memory until the second operand token arrives. Sets the control field of a token. Increments or The maximum Queue size is 16. See figure 8. decrements the data field of a token. 00 OUT Outputs data tokens from the circular pipeline to the Output Queue after the tokens are finished being processed. Figure 8. QUEUE Instruction - - - - - - - - - FTR -----------'"~---- FTT - - - - - - - - - j 15 1211 43 0 9 8 7 43 0 0 OM Base (x 21) QUEUE Size A1e:w1R: Read Counter Write Counter I I 49·000319A cj)2 cj)1 QUEUE ADD

CS, or when S/F = 1, C - C+1, CUT 0 1 1 1 (4) (8) F (8) token not deleted ····-····· -- ---------------·-···········--· --- - -------- .. ···············----------- ·- ----------------····· 1 S/F - 0, C - 0, token deleted Count Divide Counter Counter 0 When C::::; CS, C - C + 1; when C> CS, distribute, DIVCYC 1 0 1 0 (4) Size Size (2) (4) (4) ...... .....Q.:-::.Q.±.\_g_=Q:..'!.'.~~-~-g-~-~~-~-Q.:-::.~.... (4) (4) 1 C - C + DATA, token deleted s 0 When S/F=O and C::::; CS, C- C+1; when S/F = 0 DIV 1 0 1 1 (4) Count Size I (1) Counter and C> CS, or when S/ F = 1, distribute, C - C + 1; .......... .... ----------------··· .. ········----····· -----------·---··· ····-· ........... (8) F (8) 1 S/F - 0, C - 0, token deleted t. ID 0 ID - (ID + t.ID) modulo t.ID size -········· .... ----------------·············· ............ ------------···-·- ······················--- DIST 0 0 1 0 (8) Size (6) t.10 1 When t.ID ,.= t.ID size, ID-(ID+t.ID) modulo t.ID size, (4) (4) t.ID - t.ID + 1. When t.ID = t.ID size, t.ID - 0 Count Size Counterl When CS,.= C, ID - ID+ C (modulo 2), C - C + 1; CON VO 1 1 1 1 (4) (2) (8) (7) (1) when CS = C, ID - ID + 2, C- 0 ID Stack Register 0 IDSR - Lower 8-bit of DATA SAVE 0 1 1 0 (12) (2) ----·-·--- -········------- ----··-·---··························-- --------------·-----········-············----- (8) (IDSR) 1 ID -IDSR Count w Counter 0 When dead, ID - ID+ 2; when wait, if C =CS, C - 0, CNTGE 1 1 1 0 (4) Size I (1) (8) W/D = O; when wait, if C ,.=CS, C - C + 1 - --- ----·-················-- ----------···---------------······ ............ -----------·----------·---········------ (8) D 1 When dead, initialization; when wait, delete token 2-193 µPD7281 NEC PU Instructions XCH [Exchange]: This bit controls the exchange operation. Operands will be exchanged just before the 13 12 11 10 9 8 7 6 54 3 2 1 0 two tokens enter the QUEUE when XCH = 1. OP I OUT [Output]: There are four different PU output token formats. The two OUT bits specify the output F/L: Full/Left token format. See table 11. XCH: Exchange OUT:Output Table 11. OUT Bits BRC: Branch Control First Output Second Output CNOP: C-Bit NOP PNZ: Positive, Negative, or Zero OUT Bits No. of Outputs ID DATA, C, S ID DATA, C,S OP: Op code 00 ID x1 49-000109A 01 ID y2 PU instructions (see table 20) are stored in the Function 10 2 ID x ID+ 1 x Table Left field of the Function Table memory. The bits 11 2 ID x ID+ 1 y 0 through 11 are used as control information for the Notes: 1. This is the 18-bit result of the operation output to the X Processing Unit. The bits 12 and 13 are deleted before side. It includes the Cx and Sx bits. the token arrives at the Processing Unit. Two operands 2. This is the 18-bit result of the operation output to the Y side. It includes the Cy and Sy bits. from the A and B sides are operated on by the Processing Unit and the result is output to the X and Y BRC [Branch Control]: The BRC bit controls the flow sides (see figure 19). of the PU output data token. The output data token may be output to either the ID token stream or the Figure 19. The Processing Unit ID+ 1 token stream. When the BRC bit is set to 1 and the C bit of the PU output data token is also 1, the output A side B side data token is sent to the ID+ 1 token stream. But when the BRC bit is set to 1 and the C bit of the output data token is 0, the token is sent to the ID token stream. Therefore, using the BRC bit implements a conditional branch on C. CNOP Bit: This bit informs the Processing Unit whether or not the incoming token should be processed. If the CNOP bit is set, and the CA bit is not equal to the C 8 bit, then the token passes through the Processing Unit with no operation performed. See table 12. PU Table 12. CNOP Bit Ca PU Operation 0 Processing specified by the OP code is 16 performed. 0 Token passes through the Processing Unit as Cy Sy DATAy NOP. Cx Sx DATAx 49-000110A Token passes through the Processing Unit as NOP. Bit Assignments Processing specified by the OP code is performed. F/L [Full/Left]: F/L bit = O indicates that the PU instruction is a one-operand instruction, and only the PNZ [Positive, Negative, Zero] Field: The PNZ field is Function Table Left field is meaningful. F/L bit = 1 used to testthe resulting condition of the PU operation. indicates that the PU instruction is a two-operand If the resulting condition matches the condition set by instruction, and both the Function Table Left field and the PNZ field, then the C bit of the output data token is the Function Table Right field are meaningful. Therefore, set to 1. See table 13. when F/L bit = 1, the PU instruction is used in conjunction with an AG/FC instruction. 2-194 NEC µPD7281 Table 13. PNZ Field OP Code Field: This 5-bit OP code field specifies the PU Assembler operations to be performed. See table 14 P N z Condition Cx Cy Description Table 14. OP Code Field O O 0 No condition set CA Cs Instruction Mnemonic Opcode 0 1 Result of operation = 0 1 1 EQ True Logical OR 00000 -----------------------------------------------------------············ Result of operation ¥- 0 0 0 False AND 00001 0 Result of operation< 0 1 LT True XOR 00010 -------------------------------------------------------.················ Result of operation 2: 0 0 0 False ANDNOT 00011 1 Result of operation::::; 0 LE True NOT 01100 Result of operation > 0 False Arithmetic ADD 11000 -------------------·------------------------------------ 0 Result of operation> 0 GT True ADDSC 11100 Result of operation::::; 0 False SUB 11001 1 Result of operation 2: 0 GE True SUBSC 11101 Result of operation < 0 0 False MUL 11010 O Result of operation¥- 0 NE True MULSC 11110 Result of operation = 0 False NOP 11011 ------------------------------------------ ---------- 1 Overflow generated OVF True NOPSC 11111 No overflow generated False INC 01010 ···----------------------------.------········· DEC 01011 Shift SHL 00100 SHLBRV 00101 -----·································· SHR 00110 SHRBRV 00111 Compare CMPNOM 01000 CMP 01001 CMPXCH 10001 Bit manipulation GET1 10101 SET1 10110 -- ............................... CLR1 10111 Bit check ANDMSK 01101 ORMSK 10000 Data conversion CVT2AB 01110 CVTAB2 01111 Double precision adjust ADJL 10100 Accumulative addition ACC 10010 C bit copy COPYC 10011 2-195 µPD7281 t\'EC Logical Instructions the number of zeros as DATAy (see table 15). These These instructions perform 16-bit logical operations instructions are provided for easy floating point on DATAA and DATA 8 . Usually there are no changes processing. in C and S bits between the input token and the output AD DSC, SUBSC, NOPSC: These instructions perform token, however C bits can be affected by PNZ condition addition, subtraction, or no operation. The number of when specified. preceding zeros in DATAx of the result is output as OR, AND, XOR: These instructions perform 16-bit DATAy. If an overflow or an underflow occurs as a result logical OR, AND, and XOR operations using input data of an operation, DATAy contains+ 0001 H (Sy= 0) or tokens from the A and B sides of the Processing Unit. -0001 H (Sy = 1), respectively. The 16 bit result is output to the X side. MULSC: This instruction performs a normal multi- ANDNOT: This instruction first complements DATAA plication operation using the two 17-bit data. The and then performs logical AND operation with DATA 8 . upper order 16-bit data and its sign bit are output as The 16-bit result is output to the X side. DATAx and Sx, but the lower 16-bit data is not output as DATAy. Instead, the number of preceding zeros in NOT: This is a one-operand instruction which requires DATAx are counted and output as DATAy. The Sy bit is 16-bitdata input from the A side only. The B side input always zero. is ignored. This instruction complements the 16-bit input data from the A side. The 16-bit result is output to Table 15. Shift Count Operation the X side. DATAx After Operation SC Output (Y) Arithmetic Instructions 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Sy Y Data These instructions perform 17-bit (including the sign 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 H 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 F H bit) arithmetic operations on DATAA and DATA9. When 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 x 0 0 0 0 E H a PNZ condition is specified, the C bits of output data, 0 0 0 0 0 0 0 0 0 0 0 0 0 1 x x 0 0 0 0 DH Cx and Cy, reflect the setting. However, if no PNZ 0 0 0 0 0 0 0 0 0 0 0 0 1 x x x 0 0 0 0 C H condition is specified (i.e., PNZ = 000), then Cx - CA 0 0 0 0 0 0 0 0 0 0 0 1 x x x x 0 0 0 0 BH and Cy -Cs. 0 0 0 0 0 0 0 0 0 0 1 x x x x x 0 0 0 0 A H 0 0 0 0 0 0 0 0 0 1 x x x x x x 0 0 0 0 9 H ADD, SUB: These instructions perform addition or 0 0 0 0 0 0 0 0 1 x x x x x x x 0 0 0 0 8 H subtraction on DATAA and DATAs along with the sign 0 0 0 0 0 0 0 1 x x x x x x x x 0 0 0 0 7 H bits, SA and S8 . The result is output to the X side. 0 0 0 0 0 0 1 x x x x x x x x x 0 0 0 0 6 H 0 0 0 0 0 1 x x x x x x x x x x 0 0 0 0 5 H DATAy is normally OOOOH. However, if an overflow 0 0 0 0 1 x x x x x x x x x x x 0 0 0 0 4 H occurs, then DATAy is equal to +0001 H (Sy= 0). If an 0 0 0 1 x x x x x x x x x x x x 0 0 0 0 3 H underflow occcurs, then the DATAy is equal to-0001 H 0 0 1 x x x x x x x x x x x x x 0 0 0 0 2 H (Sy= 1). 0 1 x x x x x x x x x x x x x x 0 0 0 0 1 H 1 x x x x x x x x x x x x x x x 0 0 0 0 0 H* MUL: This instruction multiplies DATAA and DATA 8 . Notes: *When an overflow or underflow has occurred The correct sign bit for the product is determined from x don't care SA and S8 . The 33-bit result including a sign bit is output as two 17-bit words, Sx and DATAx, followed by Increment and Decrement Instructions Sy and DATAy. DATAx is the upper 16-bit word and INC, DEC: These instructions increment or decrement DATAy is the lower 16-bit word. Sx holds the resulting the 17-bit data from the A side (SA and DATAA), and sign bit, and Sy is a mere duplicate of Sx. outputs the result to X side as Sx and DATAx. The Sy NOP: This instruction performs no operation on the and DATAy are normally zero. However, if an overflow input token. The input data from A and B sides are or an underflow occurs, then the Y side outputs+ 0001 H output to the X and Y sides, respectively, without any (Sy = 0) or - 0001 H (Sy = 1), respectively. change in their contents. If any control other than the Shift Instructions OP code (such as PNZ control, BRC control, etc.) has SHR [Shift Right], SHL [Shift Left]: SHR or SHL been specified, the output complies with the control. instructions perform a barrel-shifting operation on the Shift Count Instructions 16-bit data, DATAA. The actual number of shifts and These four Shift Count (SC) instructions first perform the direction is further specified by the lower five bits the normal operations, then count the number of of DATA 8 and S 8 , respectively. See figure 20 for leading zeros in DATAx of the result, and finally output detailed operation explanations. 2-196 t\'EC µPD7281 Figure 20. SHR and SHL Right Shift [SHA execution] Left Shift [SHL execution] Lowers bits Lower 5 bits Se of DATAe DATAx DATAy Se of DATAe DATAx DAT Av !No. of shifts] [No. of shifts] 0 00000 .__l_ _ _A_1s_A_14_ ... A_1_A_o_ __, 0... 0 0 00000 A,5A14 ... A1 Ao 0 ... 0 o 00001 LloLl_ _ _A_1_5A_14_.._.A_1_ __, l~I 0... 0 0 00001 A,4 ... Ao 0 ... 0 l~I 0 00010 I0 0 I A,5 ... A2 I~~ I 0 ... 0 0 00010 lo o 0 ... 0 0 00011 I 0... 0 I A,5 ... A3 ~ 0... 0 0 0 0 0 11 I o... o 0... 0 o oo1oo ... o~_ _ _A_1_s._ .__I_o_ .. A_4_ __JI A3... A0 I o ... o 0 00100 A,, ... Ao 0... 0 0 ... 0 o o o 1o1 J o... o A,5 ... A5 =1 A4 ... Ao I o ... o 0 00101 A,o ... Ao 0 ... 0 0... 0 0 0 0 11 0 0 ... 0 As ... Ao 0 ... 0 0 001 10 Ag ... Ao 0 ... 0 0 ... 0 0 0 0 111 0... 0 As ... Ao 0 ... 0 o o o 111 __ ~CA0A_o_~ A_ 8 ._ .. _ _o_ ..._o_ 0... 0 0 01000 0 ... 0 0... 0 0 01000 0 ... 0 0... 0 A,5 ... As 0 0 100 1 0 ... 0 L , __ _ _ _ _ . _ _ _ _ _ _ _ , A,5 ... A9 A9 ... Ao . _ __ _ _ _ ~-------' 0... 0 0 010 01 ___ ___ .____ As ... Ao .__ 0... 0 ___. 0 0 101 0 .___ _o_.._.o_ _~l_A_1_s._ .. A_10~ c:=_A ..._A_o_~_ _ __9_ .. o~ o._ o o 1o1 o _A_5_..._Ao_l_ _ _o_.._.o_ _ o... o I A,5 ... As 0 01011 ..._o_ _ _l~A-15_.._.A~11 .___ _o_ ..._Ao_ _~_o_ A1_0_ .___ _ .. _.o~ o o 1 o 11 .__J 4.._.A_o~l_ _ _ _A_ .. o_ _~ o._ 0 ... 0 A,5 ... A5 0 0 1100 .___ _ _ .. o_ _ _~IA_15_·~~12 o._ .. A_o_ _~_o_ .___ _A_,_,._ ... o~ o 01100 ~IA_3._.. A_o~l_ _ _o_..._o_ _~ 0 0 1101 o...o 1~.·~31 I o... o I o o11o1 IA2'Aol o ... o I o.. o I 0 0111 0 o ... o IMI jo oj o o111o /~~I o ... o lo ol 0 01111 o... o Ifs! A,4 ... Ao 0 01111 @ 0 ... 0 0 1 xx xx o...o I .. _.A_1A_o_ _~I .___ _ _A_1s_ 0 1 xx xx 0 ... 0 1 00000 .______o._.. o_ _ _~I 1 ooooo J A15 A14 ... A1A0 0... 0 1 00001 A,4 ... Ao joj 1 00001 lol A,5A14 ... A1 1~1 0... 0 1 0001 0 1 0001 0 0 ... 0 o ol - 1 00011 I o... o I 1 00011 o... o I 0 ... 0 1 00100 A,, ... Ao 0... 0 1 0 0 100 0... 0 A,5 ... A4 ~A-3._.. A_o~l_ _ _o_.._·~ 1 oo1o1 A,o ... Ao o... o 0 ... 0 I A,5 ... A11I 1 00101 o... o A15... A5 _I A4 ... A0 I o ... o I 1 00110 Ag ... Ao 0... 0 1 0 0 11 0 0 ... 0 A,5 ... As j ..._Ao~_ _ _ .__A_5_ o._ .. o_ __, 1 00111 ~ 1 o ... o 1 00111 __ .. o_~_ _ o._ A1_5._ .. A_7_ _1 .. A_o___,~_o_.._.o_ .___A_s._ ___, 1 o1ooo Ar ... Ao I o... o 1 0100 0 1 01001 As ... Ao 0... 0 01001 0... 0 A,5 ... A9 A9 ... Ao 0... 0 1 o1o1o A5... A0 o... o 0... 0 A,5 ... As 1 0 101 0 0 ... 0 I A,5 ...A10 Ag ... Ao 0... 0 1 o1o11 I A4... A0 I o ... o 0 ... 0 A,5 ... A5 0 1011 0 ... 0 I A,5 ... A11 I A10 ... Ao 0 ... 0 1 o11oo I A3... Ao I o... o 0 11 0 0 0... 0 IA1s-·A12I A,, ... Ao 0... 0 1 01101 jA2llol 0... 0 o 11 o 1 r====o. . o l~s·~3 1 1 o111o 1~~1 o... o o111o o... o ~1,~1 1 o 1111 I~ o ... o o 1111 o ...o rJ A,4 ... Ao 101 1 1 xx xx 0 ... 0 1 1 xxxx o...o I 49-000137C 49-00013BC 2-197 µPD7281 NEC SHRBRV [Shift Right with Bit Reverse], SHLBRV Figure 21. Bit Reversal Operations In SHRBRV and [Shift Left with Bit Reverse]: SHRBRV or SH LB RV first SHLB RV reverses the order of the bits in DATAA and then MSB LSB performs a normal SHR or SHL operation, respectively. See figure 21. Compare Instructions LSB The Compare instructions (see table 16) are different A 15 After from other PU instructions in that PNZ conditions '--~~~~~~~~~~~--' must be specified along with the instructions. When a 49·000318A compare instruction is used along with a specified PNZ field, the Processing Unit performs a subtract operation. This subtract operation produces a set of Table 17. PNZ Field Conditions for Compare PNZ flags, which are compared against the PNZ field Instructions specified by the instruction. When these two PNZ True/ fields coincide, the specified PNZ conditions are said P NZ Condition False Function Mnemonic to be true. When they do not coincide, the specified 0 0 1 SA DATAA = Ss DATAs True Equal EQ PNZ conditions are said to be false (see table 17). The SA DATAA ~ Ss DATAs False Not equal output data from the Processing Unit differs signifi- cantly depending on the PNZ conditions. The following 0 1 0 SA DATAA < Ss DATAs True Less than LT three instructions compare the 17-bit data (SA and SA DATAA 2: Ss DATAs False Greater or equal DATAA) from the A side against the 17-bit data (S 8 and 0 1 1 SA DATAA ~ Ss DATAs True Less or equal LE ------------------··············································· ----------------------········ DATAs) from the B side. SA DATAA > Ss DATAs False Greater than CMPNOM [Compare and normalize]: If the specified 1 0 0 SA DATAA > Ss DATAs True Greater than GT PNZ conditions are false, then the control bits, sign SA DATAA ~ Ss DATAs False Less or equal bits and data for both the X and Y sides are set to zero. If the PNZ conditions are true, then Cx and Cy are set 1 0 1 SA DATAA 2: Ss DATAs True Greater or equal GE to one, Sx and Sx are set to zero, DATAx is set to SA DATAA < Ss DATAs False Less than 0001 H, and DATAy is set to OOOOH. 1 1 0 SA DATAA ~ Ss DATAs True Not equal NE CMP [Compare]: This instruction outputs the 17-bit SA DATAA = Ss DATAs False Equal data words from the A and B sides to the X and Y sides Note: The significance of the PNZ bits when Compare instructions without any change in their contents. It only alters the are executed differs from that of other instructions. Here, the control bits. If the specified PNZ conditions are true, use of PNZ = 111 or 000 is prohibited. then Cx and Cy are set to one. If the PNZ conditions are false, then Cx is set to one and Cy is set to zero. CMPXCH [Compare and exchange]: If the specified PNZ conditions are true, then both the input data from the A side and B side are unchanged and output to the X side and Y side, respectively, including their sign bits and the control bits. However, if the PNZ conditions are false, then the input data from the A side is exchanged with the input data from the B side, in- cluding the control and sign bits. Table 16. Compare Instructions Input Output Mnemonic Notes C4 S4 OATA4 Ce Se DATAe Cx sx DATAx Cy Sy DATAy CA SA A Cs Ss B 0 0 OOOOH 0 0 OOOOH When PNZ is False CMPNOM ------------------------------------------------------------------------------------ ------------------------------------------------------------- --·-··-···············-···-·····-···········--··········------------------------·-····· CA SA A Cs Ss B 1 0 0001 H 1 0 OOOOH When PNZ is true CA SA A Cs Ss B 0 SA A 0 Ss B When PNZ is false CMP ------------------------- -------------------------- ··-·····-····---------··· ··-··--···-·········--·· ·····-·····-··--·······-····-··-· -------····---------------------··-----------·······-······------····- --------··-·-·-·······- CA SA A Cs Ss B SA A Ss B When PNZ is true CA SA A Cs Ss B CA SA A Cs Ss B When PNZ is true CM PX CH --------------·········-···--------··-----·-·····-···-··-··----. ········-·---------------- ··········-····-···-···· ··-·········-················· ···········-·--------------·-·········---- ------·-···---·-····--------··· CA SA A Cs Ss B Cs Ss A CA Ss A When PNZ is false 2-198 t\'EC µPD7281 Bit Manipulation Instructions of DATAA are ANDed together to set or reset the GET1 [Get one bit]: This instruction is used to read a control bits, Cx and Cy. If the result of the AND particular bitfrom DATAA (see table 18). A bit of DATAA operation is 1, then both the Cx and Cy are set to 1. If specified by the lower 4 bits of DATAs is output as the the result of the operation is 0, then the both Cx and Cy least significant bit of DATAx. All other bits of DATAx are set to 0. The rest of the output data fields are the are set to zero. DATAy is also set to zero. The control following: Sx--SA, Sy--Ss, DATAx--DATAA, DATAy-- bits and the sign bits of DATAx and DATAy are as DATAs. follows: Cx +- CA, Cy +- Cs, Sx +-SA, Sy+- 0. ORMSK [Mask a word with logical OR]: This instruction SET1 [Set one bit]: This instruction is used to set a tests certain bits in DATAA. The bits in DATAA to be particular bit of DATAA. The bit of DATAA to be set is tested are first masked with a bit pattern in DATAs. specified by the lower 4 bits of DATAs. After the bit is Only those bits in DAT~ corresponding to the one bits set, the 16-bit result is output as DATAx. DATAy is of DATAs are considered. Then only those masked bits always output as zero. The control bits and the sign bits of DATAA are ORed together to set or reset the control of DATAx and DATAy are as follows: Cx --CA, Cy -- Cs, bits, Cx and Cy. If the result of the OR operation is 1, then both Cx and Cy are set to 1. If the result of the Sx -- SA, Sy -- 0. operation is 0, then the both Cx and Cy are set to O. The CLR1 [Clear one bit]: This instruction is used to reset a rest of the output data fields arethe following: Sx --SA, particular bit of DATAA. The bit of DATAA to be reset is Sy -- Ss, DATAx -- DATAA, DATAy -- DATAs. specified by the lower 4 bits of DATAs. After the bit is reset (cleared), the 16-bit resu It is output as DATAx. Data Conversion Instructions DATAy is always output as zero. The control bits and CVT2AB [Convert two's complement to sign-magnitude]: the sign bits of DATAx and DATAy are as follows: Cx -- This instruction converts a 16-bit number in two's CA, Cy+- Cs, Sx +- SA, Sy+- 0. complement form to a 17-bit number in sign-magnitude form. The sign of the two's complement number is Table 18. Bit Addressing output as the Sx bit. DATAe Bit CVTAB2 [Convert sign-magnitude to two's comple- 3 2 1 D DATAA Bit Position ment]: This instruction converts a 17-bit number 0 0 in sign-magnitude form to a 16-bit number in two's 0 complement form. This operation has the potential danger of an overflow or an underflow. If an overflow or 0 an underflow occurs, the Cx bit is set to 1. 1 3 Double Precision Adjustment Instruction 0 0 4 ADJL [Adjust long]: This instruction is used to adjust a double precision number, in which the sign bits of the 6 upper and lower words are different. This situation may 1 1 7 occur after a double precision arithmetic operation. The examples in table 19 illustrate the adjustments of 0 0 8 double precision numbers. 0 0 9 0 10 Table 19. Double Precision Adjustment Examples 0 11 Input/Output Sign Data 12 Input High (A data) 0 1234H 13 Low (B data) 0 5678H Output High (X data) 0 1234H 14 Low (Y data) 0 5678H 15 Input High (A data) 0 1234H Low (B data) 1 5678H Bit Check Instructions Output High (X data) 0 1233H Low (Y data) 0 A988H ANDMSK [MaskawordwithlogicalAND]:This instruc- tion tests certain bits in DATAA. The bits in DAT~ to be Input High (A data) 1 1234H Low (B data) 0 5678H tested are first masked with a bit pattern in DATA 8 . High (X data) Output 1 1233H Only those bits in DATAA corresponding to the one bits Low (Y data) 1 A988H of DATAs are considered. Then only those masked bits 2-199 µPD7281 ~EC Accumulative Addition Instruction Figure 22. A CC Instruction ACC [Accumulate]: This instruction (see figure 22) performs cumulative additions of incoming tokens' data fields. The incoming tokens are classified into type 1 and type 2 tokens. A type 1 token is deleted after the ACC operation, but a type 2 token is not. Moreover, a type 2 token reads the contents of the ACC register, which contains the accumulated sum of tokens. When a type 2 token reads the contents of the ACC register, the ID field of the token is unchanged. However, if an No OutgoingTokens overflow has occurred prior to the arrival of a type 2 49-000111A token, the ID field is incremented by one. Only the following three tokens qualify as type 2 tokens. 1. If the ACC instruction is used along with RDCYCS instruction, and the token's FTRC bit = 1, and the· Buffer Size and Read Counter of RDCYCS instruction are equal. 2. If the ACC instruction is used along with RDCYCL instruction, and the token's FTRC bit = 1, and the Buffer size and Read Counter of RDCYCL instruction COUNT are equal. 1 - - - - - - - t CS= n ACC 3. If the ACC instruction is used along with COUNT instruction, and the token's FTRC bit = 0, and the Count Size and Counter of COUNT instruction are 1, 1...-lf an overflow occurs equal. n Sum= I [DATAA]j C Bit Copy Instruction 1=1 COPYC [Copy control bit]: This instruction copies the ID 10+1 control bit of the A side and outputs it as Cy. 49-000112A Cx +- CA, Sx +- SA, DATAx +- DATAA, Cy +- CA, Sy..__ Ss, DATAy ..__ DATA9. 2-200 NEC µPD7281 Table 20. PU Instruction (Sheet 1of3) Input Output Mnemonic OP Code SA DATAA Ca Sa DATAa Cx Sx DATAx Cy SY DATAy Notes Logical Operations OR 00000 CA SA A Cs Ss B Cx SA A OR B Cy 0 OOOOH ~~~~~~~~~~~~~~~~~~~~~~~~~~~- AND 00001 CA SA A Cs Ss B Cx SA A AND B Cy 0 OOOOH ~~~~~~~~~~~~~~~~~~~~~~~~~~~- XOR 0 00 10 CA SA A Cs Ss B Cx SA A XOR B Cy 0 OOOOH ~~~~~~~~~~~~~~~~~~~~~~~~~~~- AND NOT 00011 CA SA A ~~~~~~~~~~~~~~~~~~~~~~~~~~~- Cs Ss B Cx SA AAND B Cy 0 OOOOH NOT 0 1100 CA SA A Cx SA A Cy 0 OOOOH Arithmetic Operations A B Cx A+ B Cy 0 0 A B Cx A - B Cy 0 OOOOH When A;::::: B, Sx = 0 ----------------·---------------------------------------- ------------------------------------------------------------------------- ADD 1100 0 Cx B-A Cy 1 OOOOH When A < B, Sx = 1 A 0 B Cx B-A Cy 0 OOOOH When A< B, Sx = 0 ------------------------------------------------------- -------·-------------------- ------------------------ Cx A- B Cy OOOOH When A ;::::: B, Sx = 1 A Cs 1 B Cx A+ B Cy A Cs 0 B Cx A+ B Cy Ss No. of shifts t A B Cx A - B Cy Ss When A;::::: B, Sx = 0 ---------------------- ---------------------------------· ------------------------·····--------------------------------- Cx B - A Cy Ss No. of When A < B, Sx = 1 ADDSC 11100 shifts t A 0 B Cx B-A Cy Ss When A < B, Sx = 0 ---------------------- ---------------------------- ------------------------------------------------------------------------------ Cx A - B Cy Ss No. of When A;::::: B, Sx = 1 shifts t A Cs B Cx A+ B Cy Ss No. of shiftst 0 A Cs 0 B Cx A- B Cy 0 OOOOH When A> B, Sx = 0 Cx B-A Cy 1 OOOOH When A < B, Sx = 1 SUB 1100 1 0 A B Cx A+ B Cy 0 A 0 B Cx A+ B Cy A B Cx B - A Cy 0 OOOOH When A< B, Sx = 0 --------------------- ------------------------------------ ----------------------------------------------------------------------- Cx A - B Cy OOOOH When A;::::: B, Sx = 1 0 A Cs 0 B Cx A- B Cy Ss No. of When A;::::: B, Sx = 0 shifts t Cx B- A Cy Ss No. of When A < B, Sx = 1 shifts t 0 A B Cx A+ B Cy Ss No. of SUBSC 11101 shifts t A Cs 0 B Cx A+ B Cy Ss No. of shifts t A B Cx 0 B- A Cy Ss No. of When A < B, Sx = 0 shifts t Cx A- B Cy Ss No of When A;::::: B, Sx = 1 shifts t MUL 1101 0 CA A B Cx Sx Ax B Cy Sx Ax B Sx = SA OR Ss High Low (logical OR) MULSC 111 10 CA A B Cx Sx Ax B Cy Ss No. of Sx = SA OR Ss High shifts t (logical OR) 2-201 µPD7281 t-IEC Table 20. PU Instruction (Sheet 2 of 3) Input Output Mnemonic OP code CA Se DATAe Cx Sx DATAx Cy SY DATAy Notes Arithmetic Operations NOP 11011 CA A Cs Ss B Cx A Cy Ss B NOPSC 11111 CA A Cs B Cx A Cy Ss No. of shifts t A Cx 0 A+ 1 Cy INC 0 10 10 CA A Cx 1 Cy OOOOH When A = 0, Sx = 0 Cx 1 A- 1 Cy 1 OOOOH When A ;::::: 1, Sx = 1 DEC 0 1011 A Cx 0 A- 1 Cy 0 OOOOH When A ;::::: 0, Sx = 0 --------------------------------- ---------------------------------- ------------------------------------------------------ Cx Cy OOOOH When A = 0, Sx = 1 A Cx A+ 1 Cy Shift SHL Cs No. of Cx SA Shift A Cy Shift A shifts left left Cs No. of Cx SA Shift A Cy Shift A shifts right right SHLBRV 00101 CA SA A Cs No. of Cx SA Reverse Cy Reverse shifts A and A and shift shift left left A Cs No. of Cx SA Reverse Cy Reverse shifts A and A and shift shift right right SHR A Cs o No. of Cx SA Shift A Cy Shift A shifts right right A Cs No. of Cx SA Shift A Cy Shift A shifts left left SHRBRV 00111 CA SA A Cs No. of Cx SA Reverse Cy Reverse shifts A and A and shift shift right right A Cs No. of Cx SA Reverse Cy Reverse shifts A and A and shift shift left left Comparison CMPNOM 01000 Cs B 0 0 OOOOH 0 0 OOOOH When PNZ is false ------------------------------ ----------------------- Cs B 0 0001H 0 OOOOH When PNZ is true CMP 0 100 1 Cs B A Ss B When PNZ is false Cs B A Ss B When PNZ is true CMPXCH 10001 CA SA A Cs Ss B A Cs Ss B When PNZ is true CA SA A B B A When PNZ is false Accumulative Addition ACC A B Cx Sx Used as a pair with AG & FC instruction COUNT C Bit Copy COPYC 10011 CA SA A Cs Ss B A B 2-202 NEC µPD7281 Table20. PU Instruction (Sheet 3 of 3) Input Output Mnemonic OP code CA S4 DATA4 Ce Se DATAe Cx Sx DATAx Cy SY DATAy Notes Bit Operations GET1 10101 CA SA A Cs Ss Bit Cx SA OOOOH Cy 0 OOOOH When the bit specified position by the lower 4 bits of DATAs is 0 -----------------·------ -------------------------- -------------------------------------- CA SA A Cs Ss Bit Cx SA 0001H Cy 0 OOOOH When the bit position specified by the lower SET1 1011 0 CA SA A Cs Ss Bit position Cx SA A bit in DATA A is set Cy 0 OOOOH 4 bits of DATAs is 1 Bit specification by the lower 4 bits of DATAs B CLR1 10111 CA SA A Cs Ss Bit Cx SA A bit in Cy OOOOH Bit specification by position DATAAis the lower 4 bits of cleared DATAs Bit Check ANDMSK 0 1101 CA SA A Cs Ss B 0 SA A Ss B If ANDMSK = 0 ---------------------- CA SA A Cs Ss B SA A Ss B If ANDMSK = 1 ORMSK 100 0 0 CA SA A Cs Ss B SA A Ss B If ORMSK = 0 ------------- ----------------- ---------------------- CA SA A Cs Ss B SA A Ss B If ORMSK = 1 Data Conversion CVT2AB 0 111 0 CA SA A Cs Ss B Cx Sx Conver- Cy 0 OOOOH Absolute value ted A -twos data complement CVTAB2 0 1111 CA SA A Cs Ss B Cx Sx Conver- Cy OOOOH Twos complement ted A - absolute data value Adjustment of Double Precision Numbers ADJL 10100 CA 0 A Cs 1 B Cx A-1 Cy OOOOH-B A#OAND B#O ------------ ------------- ---------------------- ------------------------ --------------------- CA 1 A Cs 0 B Cx A-1 Cy OOOOH-B A >60 AND B >60 CA 0 A Cs 1 OOOOH Cx A Cy OOOOH ------------ ------------- ----------------------- CA 0 OOOOH Cs 1 B Cx OOOOH Cy B B#O CA A Cs 0 OOOOH Cx A Cy OOOOH -------------- ------------- ------------------------------ --------------------- CA 1 OOOOH Cs 0 B Cx 0 OOOOH Cy B B#O CA 0 A Cs 0 B Cx 0 A Cy B ------------------------ CA A Cs B Cx A Cy B Notes:* If an overflow occurs as the result of A+ B, DATAy = 0001 H and if no overflow, DATAy = OOOOH. t This indicates the number of consecutive zeros from the MSB of DAT Ax. This number is used to calculate the number of shifts to be performed by subsequent processing. 2-?03 µPD7281 NEC GE Instructions GS [Generation Size]: These four bits determine the number of copies of a token to be made. A minimum of FTL Format 2 and a maximum of 17 copies can be made using a GE instruction. GS CTLFD [Control Field]: This field is used with Set 49-000113A Control Field (SETCTL} instruction. The data in CTLFD field further specifies the types of operations to be Bit Assignments performed by the SETCTL instruction. F/L [Full/Left]: F/L bit = O indicates that the GE COPYBK [Copy Block] instruction is used alone, whereas F/L bit= 1 indicates COPYBK is used to duplicate a block of tokens from a that the GE instruction is used in conjunction with an single token. These duplicated tokens have exactly the AG/FC instruction. same ID as the original token except the token copied XCH [Exchange]: XCH bit= 1 indicates that the data last which has the original token's ID plus one. The from A side and B side are to be exchanged before the number of tokens to be generated is specified by the two data tokens enter the Queue. GS field, and the COPYBK instruction generates exactly GS + 2 tokens. The data fields of the tokens OP [OP code]: These two bits select an operation to being duplicated can also be incremented or be performed. See table 21. decremented in a systematic manner. The incremental (or decremental) step value is contained in DATA 8 . Table 21. OP Bits The tokens generated are sent to the Link Table. The OP Operation series of LT tokens output by the instruction is shown 00 COPYBK (Copy block) in figure 23. 01 COPYM (Copy multiple) COPYBK FTL Format 11 SETCTL (Set control field) 49-000114A Figure 23. COPYBK Instruction Output [ COPYBK JGs 4 w l ID ID+ 1 49-0001151\ [DATAx]i = DATAA + [DATAe) xi [for I= 0, 1; 2, ··-·GS+ 1) u ID [7] CTLF [4] DATA [6] ID I 0 CA Sx I DATAA 11=0 ID I 0 CA Sx I DATAA + DATAe I1=1 LT Tokens ID !o 0 CA Sx I DATAA +GS x DATAe Ii=GS ID+1 I 0 CA Sx I DATAA +[GS+ 1] x DATAe Ii=GS+1 490001398 2-204 t\'EC µPD7281 COPYM [Copy Multiple] generated tokens are sent to the Link Table as LT COPYM is used to generate multiple tokens from a tokens. The series of LT tokens output by the CO PYM single token. Each generated token has a different ID instruction is shown in figure 24. value. The number of tokens generated from the original token is GS+ 2. The data field of the tokens COPYM FTL Format being generated can also be incremented or decre- mented in a systematic manner. The incremental (or decremental) step value is contained in DATA 8 . The GS T 49-000116A Figure 24. COPYM Instruction Output Tokens GS= 2 49-000117A U ID [7] CTLF [4] DATA [16] .__o__,_J~~~1-D~~~~~---'-~-o_o~CA~Sx~--'-~~~D-A_TA_A~~~~~~~~-..J'i=O .__o_,_J~~~1-D_t_1~~~~---'-~0~0~CA~Sx~--'-~~~D-A_TA_A_•_D_A_T_Ae~~~~~~-''i~1 LT Tokens ~l_o_._~~~1_D_t_G_s~~~~--"-~o-o~c-A_sx~-'-~~~D-A_T_AA_+~GS_x~D-AT_A_e~~~~--''i=GS .__o_._l~~~1-D_t_G_s_t_1~~~--'-~o-o~c-A_sx~-'-~~~D-A_T_AA_+~[G_s_+_1_1x_D_A_T_Ae~~~--''i=GS+1 [IDouTL =[ID 1NJ + i [DATAx];= DATAA +[DATA 8 •i] for i=O, 1, 2, .. GS+i. •:multiplication 49-000118A 2-205 µPD7281 tttfEC SETCTL [Set Control Field] OUT Instructions SETCTL FTL Format OUT FTL Format 102 MN 49-000119A 49-000120A SETCTL is used to read and rewrite the contents of the Bit Assignments Link Table and the Function Table. Since it can change F/L [Full/Left]: F/L bit = O indicates that the OUT the contents of the Link Table and the Function Table, instruction is to be used alone. F/L bit = 1 indicates this instruction can be used to write a self-modifying that the OUT instruction is to be used in conjunction code. The type of operation to be performed is further with an AG/FC instruction. specified by the contents of CTLFD field, as shown in table 22. XCH [Exchange]: If XCH bit= 1, the output data tokens from the A side are exchanged with those from the B Table 22. SETCTL Instruction Control Field side before they go to the Output Queue. If XCH bit= 0, Operation no exchange operation is performed. CTLFD Operation OP [OP Code]: This bit is used to further specify the O C S Normal data. Operation is exactly the same as COPYM. OUT instruction. If OP= 0, then OUT1 instruction is O 0 The data field of this token is used to set a location in performed, whereas if OP = 1, OUT2 instruction is the Link Table memory (C and S bits are not included.) performed. After the data is set, the token is deleted. 102 [Second ID]: This field is used only by the OUT2 1 1 The data field of this token is used to set a location in instruction. I 02 is the ID of the second output data the Function Table Right field. After the data is set, the token is deleted. token. 1 1 The lower 14 bits of the data field of this token are used MN [Module Number]: This field indicates the to set a location in the Function Table Left field (higher destination module of the output data token. bits are ignored.} After the data is set, the token is deleted. OUT1 1 1 The lower 10 bits of the data field of this token are used OUT1 FTL Format to set a location in the Function Table Temporary field (higher bits are ignored.) After the data is set, the token is deleted. MN This token reads the LT address indicated by the ID ·t90001-11A field and outputs the contents. This instruction outputs a 32-bit data token via the 0 This token reads the Function Table Right field address indicated by the ID field and outputs the contents. Output Data Bus (ODB). Since the size of the ODB is 16 bits, a 32-bit output data token is divided into two 0 This token reads the Function Table Left field address 16-bit words and output one 16-bit word at a time. The indicated by the ID field and outputs the contents. format of an output data token is shown in figure 24. O This token reads the Function Table Temporary field address indicated by the ID field and outputs the contents. o These tokens should not be generated by the Processing O 1 Unit. They are operating-mode-related tokens. 0 0 0 1 Note: The set or write operation is performed at the address indicated by the ID field of the token. 2-206 ttiEC µPD7281 Figure 25. OUT1 Output Token Format - - - - - - - H i g h W o r d - - - - - - - - - - - - - - - Low W o r d - - - - - - - + ! 4 3 MN ID' MN: Determined by the lower 4 bits of FTL contents ID': 7-blt ID comes from the contents of LT referenced by the OUT1 Instruction CA, SA: Control bit and sign bit of DATAA DATAA: 16-blt output data El 49-000121A OUT2 This instruction outputs two 32-bit data tokens via OUT2 FTL Format ODB. Since the ODB is 16 bits wide, each 32-bit token 43 0 is divided into two 16-bit words and output one 16-bit word at a time. This instruction is useful when a double ID2 I MN I 49-000123A precision number is to be output. The formats of two output data tokens are shown in figure 25. Figure 26. OUT2 Output Tokens Format <+-------High Word---·-------------Low Word--------+ 15 12 11 10 4 3 2 1 0 15 I MN j of ID' j 0 0 Heall 15 ) 12 11 10 Same Module Numbers 4 3 2 1 0 15 i I MN I ID2 DATAa lo\ : o o Heall Note: First and second tokens must have the same module numbers MN: Determined by the lower lour bits of the FTL contents. ID': 7-bit ID coming from the contents of the Link Table referenced by the OUT2 instruction. 102: 7-bit ID comes from the FTL field of the OUT2 instruction. CA, SA: Control bit and sign bit of DATAA- DATAA: First 16-bit output data. cs. ss: Control bit and sign bit of DATAB. DATA9: Second 16-bit output data. 49-000122A 2-207 µPD7281 t-IEC Figure 27. Data-Flow Graph Explanation Merge [Two streams of tokens are merged together] PICKUP 49-000124A Input/Output '" ' ~•mo" " ' ,..4 DIV 5 -An Input token with FTRC bit = 1 FTRC = 1 token stream marker CS=2 "-1D + 1 Token Stream ID Token Stream/ 49-000125A 2-208 tttfEC µPD7281 Figure 27. Data-Flow Graph Explanation (cont) DUST [Incoming tokens are deleted) '- El y Side Output Marker ./' "-....... 49-000127A X Side Output Token Y Side Output Token 49-000126A Exchange cp!DATA2) cD!DATA1] .. QUEUE XCH =O SUB cp DATA3 = DATA1 - DATA2 DATA3 = DATA2 - DATA1 49-000128J 49-000129A Conditional Operation Branch Queue two tokens. Subtract and test PNZ conditions. If TRUE, the result is output ~--.1.___ _ _ _ ___.a__....:t=.o=.,ID + 1 stream. QUEUE QUEUE If the control bits of Token 1 1----------------1 and Token 2 are the same, ID SUB: GT ID+ 1 49-000130A ~-----T OR _____ 1 logical OR operation I is performed. J 49-000131A 2-209 µPD7281 t-IEC 2-210 NEC µPD9305 MEMORY ACCESS AND GENERAL BUS INTERFACE NEC Electronics Inc. FOR THE µPD7281 PRELIMINARY INFORMATION Description Ordering Information The NEC µPD9305 memory access and general bus in- Part Number Package Type terface chip (MAGIC) is a peripheral LSI support device for the µPD7281 image pipelined processor (Im PP). The µPD9305R 132-pin ceramic grid array µPD7281 is a data flow architecture processor that supports high speed image and signal processing ap- Pin Configuration plications. The µPD9305 chip can support from one to Bottom View eight µPD7281s and also interfaces to both 8-bit and 16- bit host processors. @@@@@@@@@@@)@@@ The µ.PD9305's powerful interface capabilities allow it to @~@@@@@@@@@@@@ support basic interface operations, object program load, @@S@@@>@l@@@~S@@ read/write/modify operations on image memory, and multiple µ.PD7281 image memory accesses. @@9 @)@@ @@@) @@@ Since the µ.PD7281 lmPP does not use direct addressing, @l @@ the memories in a µ.PD7281 processor system can be seen as processing modules with unique module Orientation Pin S@@ numbers. These separate modules must output memory @@@ \ @@@ access tokens containing their own unique address, @@@ @@@ data, and control signals. The modules must perform @@@ @)@@ the necessary processing, and then output the result of the access as another memory access token. To do this, e@e @@@0 the multiple µ.PD7281 modules require external circuitry 0@8S@@@>@l@@@B@@ to process the memory access tokens that they output. In @@@@@@@@@@@@0@ addition, this same circuitry is required to organize the @@@@@000@00000 data output from the memory into token format. Circuitry is also needed between the host processor DGND and the µ.PD7281 s to organize the data from the host Qv 00 (+5V) 49-0012778 into token format and to return the data output from the µ.PD7281s into the form required by the host pro- Pin Identification cessor. Finally, tokens may have to be returned to other µ.PD7281 s in token form for further processing. No. Symbol Function CLK Clock input The µ.PD9305 simplifies the above operations by keeping the data in the most convenient form. The µ.PD9305 2-4 D10,D12. Bidirectional data bus bits replaces approximately 80 medium/small scale integrated D15 devices with a single integrated circuit. 5 OACK Output acknowledge input 6 OREO Output request output Features 7 IDB14 Input data bus bit D High performance image memory interface 8 ODB14 Output data bus bit D Reduces external circuits required for lmPP system 9 IDB11 Input data bus bit D Simplifies host interface D Up to 24-bit image memory addressing 10, 11 ODB11. Output data bus bits ODB8 D Up to 18-bit image memory data D Register file for memory access 12 IDB 9 Input data bus bit D Refresh control of image memory 13 ODB5 Output data bus bit D Functions with separate DMA controller 14 ID Ba Input data bus bit D Single + 5 V power supply 15 ODB4 Output data bus bit D CMOS technology for lower power consumption 16 IDB7 Input data bus bit 17 ODB2 Output data bus bit NECEL-000515 2-211 µPD9305 t-IEC Pin Identification {Cont) Pin lndentification {Cont) No. Symbol Function No. Symbol Function 18 IOB5 Input data bus bit 69,70 IMA23,IMA21 Image memory address output bits 19 MN2 Module number output 71 IDB1 Input data bus bit 20 IOB4 Input data bus bit 72-74 IMA17.IMA14, Image memory address 21 IMA22 Image memory address IMA13 output bits output bit 75 GND Ground 22 IDB2 Input data bus bit 76,77 IMAg,IMAa Image memory address 23, 24 IMA1a. Image memory address output bits IMA15 output bits 78 IN BUSY Input to lmPP busy output 25 IDBo Input data bus bit 79, 80 IMA4,IMA1 Image memory address 26-28 IMA12-IMA10 Image memory address output bits output bits 81 IM017 Bidirectional image memory 29 SOLBSY Self object load busy output data bus bit 30 CPURQ CPU request output 82 DMAAK2 OMA I 2 acknowledge input 31 DMAAEN OMA address enable input 83 DMARQ2 DMA/ 2 request output 32-34 IMA5,IMA2. Image memory address 84, 85 IMD12.IMD11 Bidirectional image memory IMAo output bits data bus bits 35 DMAAK1 DMA I 1 acknowledge input 86 Voo +5 V power supply 36 DMARQ1 DMA I 1 request output 87,88 IM05,IM05 Bidirectional image memory 37 IMD13 Bidirectional image memory data bus bits data bus bit 89 A1 Address select input 38 IMAK Image memory 90 IMDo Bidirectional image memory acknowledge input data bus bit 39-42 IMD10-IM07 Bidirectional image memory 91 IMRF Image memory refresh data bus bits output 43 Ao Address select input 92 Do Bidirectional data bus bit 44,45 IM03,IMD1 Bidirectional image memory 93 RD Read input data bus bits 94-96 04,05,07 Bidirectional data bus bits 46 IMWR Image memory write output 97 GND Ground 47 WR Write input 98 013 Bidirectional data bus bit 48,49 02.Ds Bidirectional data bus bits 99 IPPRST Image pipelined processor 50 cs Chip select input reset output 51,52 Da.Dg Bidirectional data bus bits 100 IDB15 Input data bus bit 53 GND Ground 101 ODB15 Output data bus bit 54,55 D11.D14 Bidirectional data bus bits 102 IDB12 Input data bus bit 56 IREQ Input request input 103,104 ODB12.0DB9 Output data bus bits 57 IACK Input acknowledge output 105,106 GND Ground 58 IDB13 Input data bus bit 107 ODBo Output data bus bit 59 ODB13 Output data bus bit 108,109 MN3,MN0 Module number output bits 60 IDB10 Input data bus bit 110 IOB3 Input data bus bit 61-63 ODB10.0DB7, Output data bus bits 111-113 IMA20.IMA19, Image memory address OOB5 IMA15 outputs . 64 Voo +5 V power supply 114 Voo +5 V power supply 65,66 OOB3,0DB1 Output data bus bits 115 GND Ground 67 IDB5 Input data bus bit 116-118 IMA7,IMA5, Image memory address 68 MN1 Module number output bit IMA3 outputs 2-212 NEC µPD9305 Pin Identification (Cont) Table 1. µPD9305 Pins by Function No. Symbol Function 1/0 Signal No. 119 RESET Reset input CLK 120-122 IMD15-IMD14 Bidirectional image memory RESET 119 data bus bits Status 123,124 GND Ground ERR 129 125,126 IMD4,IMD2 Bidirectional image memory data bus bits 0 SOLBSY 29 El 127 IMRD Image memory read output CPURQ 30 128 GND Ground IN BUSY 78 129 ERR Error output Host Interface 130,131 D1,D3 Bidirectional data bus bits WR 47 132 Voo +5 V power supply RD 93 cs 50 Pin Functions Ao 43 Table 1 shows the µPD9305 pins in their particular func- A1 89 tional groups. The paragraphs that follow table 1 describe Do 92 the operation of the pins in each group. D1 130 All unused input or output pins should be pulled up to D2 48 Voo or down to GND through a 2K-3K ohm resistor. D3 131 D4 94 D5 49 Ds 95 D7 96 110 Da 51 Dg 52 D10 2 D11 54 D12 3 D13 98 D14 55 D15 4 OMA DMARQ1 36 0 DMARQ2 83 DMAAK1 35 DMAAK2 82 DMAAEN 31 2-213 µPD9305 NEC Table 1. µPD9305 Pins by Function (Cont) Table 1. µPD9305 Pins by Function (Cont) 1/0 Signal No. 1/0 Signal No. µP07281 Interface Image Memory Interface MNo 109 IMAK 38 MN1 68 IMRO 127 0 MN 2 19 0 IMWR 46 MN3 108 IMRF 91 0 OREO 6 IMOo 90 DACK 5 IM01 45 IREQ 56 IM02 126 IACK 57 IM03 44 0 IPPRST 99 IM04 125 0080 107 IM05 88 0081 66 IM05 87 0082 17 IM07 42 0083 65 1/0 IMOa 41 0084 15 IMOg 40 0085 13 IM010 39 0085 63 IM011 85 0 0087 62 IM012 84 008a 11 IM013 37 0089 104 IM014 122 00810 61 IM015 121 00811 10 IM015 120 00812 103 IM017 81 00813 59 00814 8 00815 101 1080 25 1081 71 1082 22 1083 110 1084 20 1085 67 1085 18 1087 16 ID8a 11 ID8g 12 10810 60 10811 9 10812 102 10814 7 10815 100 2-214 t-IEC µPD9305 Table 1. µPD9305 Pins by Function (Cont) Status Signal Pin Functions 1/0 Signal No. CPURQ (CPU Request) Image Memory Interface CPURQ indicates to the host processor that the µPD9305 IMAo 34 is ready to transfer a token to the host. IMA1 80 IMA2 33 INBUSY (Input Busy) IMA3 118 INBUSY indicates that tokens are being input to the first IMA4 79 lmPP from the µPD9305. IMAs 32 117 SOLBSY (Self Object Load Busy) IMAs IMA7 116 SOLBSY indicates that a self object load is being executed. IMAs 77 IMAg 76 ERR (Error) IMA10 28 ERROR indicates that. an error was output from the 0 IMA11 27 lmPPs, the host has read an invalid output token, or that IMA12 26 the host has input a token while INBUSY was active. IMA13 74 Host Interface Signal Pin Functions IMA14 73 IMA1s 24 RD (Read) IMA15 113 RD reads the contents of the internal registers specified IMA17 72 by A1 and Ao. IMA1s 23 IMA19 112 WR (Write) IMA20 111 WR writes an input from the data bus to the internal IMA21 70 register specified by A1 and Ao. IMA22 21 CS (Chip Select) IMA23 69 CS enables the RD or WR control signals. CLK (Clock) A 0 , A1 (Address) CLK is the single phase master clock input. The µPD9305 Ao and A1 select the internal register for a read or write clock frequency can be independent of lmPP clock operation. frequency. D0-D 15 (Data Bus) RESET (Reset) The contents of the internal registers are read from or RESET initializes the µPD9305. A reset places OREO, written to via data bus bits D0-D15. IACK, the token 1/0 flip-flop, and IM access request signals at an inactive level. RESET resets the refresh DMA Signal Pin Functions address counter, refresh timer counter, and mode register to 0. RESET must be held low for a minimum of four DMAAEN (Direct Memory Access Address Enable) µPD9305 or µPD7281 clock cycles, whichever is slower. DMAAEN is used to indicate to the µPD9305 that an V00 (Power) external DMA controller is putting OMA addresses on the address bus. During a OMA operation, OMA addresses V 00 is the single + 5 volt power supply. (system memory addresses) are input to Ao and A1. However, these addresses have no meaning for the GND (Ground) µPD9305 and might alter register contents. For this GND is the ground signal. reason, the µPD9305 operates as if Ao and A1 are both reset to O when DMAAEN is active (high). 2-215 µPD9305 NEC DMARQ1 (Direct Memory Access Request 1) IPPRST (Image Pipelined Processor Reset) DMARQ1 issues a request to an external DMA controller IPPRST resets the lmPPs during RESET or a command to transfer data from the host system memory to the reset. µPD9305. ODB0-0DB 15 (Output Data Bus) DMARQ2 (Direct Memory Access Request 2) ODB 0-0DB 15 transfer tokens from the µPD9305 to the DMARQ2 issues a request to an external DMA controller first lmPP. to transfer data from the µPD9305 to the host system memory. IDB0-IDB 15 (Input Data Bus) IDB0-IDB 15 transfer tokens between the output of the last DMAAK1 (Direct Memory Access Acknowledge 1) lmPP and the µPD9305. DMAAK1 is issued by the external DMA controller to indi- cate to the µPD9305 that DMARQ1 has been received. Image Memory Interface Signal Pin Functions DMAAK2 (Direct Memory Access Acknowledge 2) IMRD (Image Memory Read) DMAAK2 is issued by the external DMA controller to indi- cate to the µPD9305 that DMARQ2 has been received. IMRD requests a read of the contents of the image memory addressed by IMA0-IMA23. µPD7281 Interface Signal Pin Functions IMWR (Image Memory Write) MN 0-MN 3 (Module Number) IMWR requests a write to the image memory location ad- MN 0-MN 3 specify the module number of one lmPP. Dur- dressed by IMA0-IMA23. ing a reset, one module number is output via MNo-MN 3, the other via IDB 12-IDB 15. MN 0-MN 3 are three-state pins. IMRF (Image Memory Refresh) IMRF indicates an image memory refresh cycle. OREQ (Output Request) OREO signals to the first lmPP that the µPD9305 is ready IMAK (Image Memory Acknowledge) to transfer half a token. IMAK indicates to the µPD9305 that an image memory read, write or refresh has been completed. OACK (Output Acknowledge) OACK signals to the µPD9305 that a half token has been IMA0-IMA 23 (Image Memory Address) accepted by the first lmPP. IMAo-IMA23 supplies the image memory address for a read or write operation or for DRAM refresh (IMA0-IMA9 IREQ (Input Request) only). IREQ signals from the last lmPP that a half token is ready to be transferred from the lmPP to the µPD9305. IMD 0-IMD 17 (Image Memory Data) IMD0-IMD 17 is the bidirectional data bus for transferring IACK (Input Acknowledge) data to and from the image memory. IACK indicates to the last lmPP that the µPD9305 has accepted the half token. 2-216 NEC µPD9305 µPD9305 Block Diagram IMD17-0 IMA2J-16 IMA1s-o --------, I I I I CLK--t-- 1 RESET~ I Voo~ I GND~ I I I I I IMRD I IMWR I IMRF I I DMAAEN-~i----_-_-_- - - - - - -1 cs--1--- I I A1-0--+---- I IREQ WR --+--->-I I IACK RD--r--t.~~~~ I '-------___,~ERR I L-----------r_. CPURQ -----, Output Token : DMAROl Control I '-----+---- DMAAK1 I .____ _.......__.. DMARQ2 I '---------'I'-- DMAAK2 I I I I µPD7281 I I Output Bus Interface I I I_ - - - - _J ODB1s-O OREO DACK INBUSY 49-001278C Functional Description µPD7281 Input Bus Interface The µPD9305 has the following functional units: After the last lmPP outputs a token, the input bus inter- • µPD7281 input bus interface face determines whether the token should be an output • µPD7281 output bus interface token to the host CPU, to the image memory, or to the • System bus interface output bus interface block. The high order 16 bits of the • Image memory bus interface token output from the last lmPP are latched into in the -Register file high word register (HWA) and then decoded by the input -R/M/W control token decoder to determine the token type. -Self object load control -Image memory refresh control 2-217 µPD9305 t\'EC µ,PD7281 Output Bus Interface The image memory bus interface also performs read/ modify/write functions with the R/M/W control logic and The output bus interface logic transmits tokens through provides a register file. the multiplexer (MUX) to the first lmPP. The transmitted tokens come from the system bus interface, the µPD7281 Register File. The register file is used for storing write input bus interface, or the image memory bus inter- high addresses (WHAR/four 8-bit registers), write data face. The output bus interface uses a priority control (WDR/four 18-bit registers), and read high addresses mechanism to prevent collisions between the tokens (RHAR/four 8-bit registers). coming from the different blocks. System Bus Interface Read/Modify/Write (R/M/W) Control. The R/M/W con- trol reads a word from the image memory, performs a The system bus interface receives a token from the host logical operation (AND, OR, or XOR) between it and the CPU for the lmPPs, sends it to the output register contents of a write data register (WDR), and then writes (OUTR), and signals the output bus interface. Conversely, it back to a location referenced by the WHAR (the same it sends a token, which is output from the last lmPP, lower 16-bit address, but a different upper eight bits). through the input register (INR) to the host CPU accord- ing to instructions from the host CPU. The host CPU can Self Object Load (SOL). The self object load control set input or output modes (MODER register), read the loads lmPP object programs stored in image memory into status register (STATUSR), set image memory refresh the lmPPs. When the SOL is given a starting address, timing (RFTMR register), and set module numbers (MNR) the SOL control automatically generates the appropriate for two "'PD7281 s. addresses to read the image memory. Image Memory Bus Interface Image Memory Refresh Control. The µPD9305 gen- erates a 10-bit address and the timing for refreshing The image memory bus interface accepts the following dynamic image memories. The timing is set by the five types of tokens: RFTMR register. Figure 1 shows the input/output token format and table 2 Token Description shows how the image memory access tokens function. WHA Write high address WLA Write low address Figure 1. Input/output Token Format WO Write data 1---HighWord---1+---LowWord---. RHA Read high address 15 12 1110 43 0 15 RLA Read low address MN Iz I ID Data 49-001279A Tokens have a 16-bit data value, so the address is transferred in two tokens to form the 24-bit image memory address. The lower 16-bits of the image memory address are latched in the lower address register. 2-218 tt/EC µPD9305 Table 2. Image Memory Access Tokens< 1J MN z ID CTLF Data Function Operation 0001 MN' ID' Image memory read low address Image memory read (RHAR1 reference) R 111 Image memory read Read high address register (RHAR1) set s high address (Note 2) 0010 MN' ID' Image memory read low address Image memory read (RHAR2 reference) R 111 Image memory read Read high address register (RHAR2) set s high address (Note 2) 0011 MN' ID' Image memory read low address Image memory read (RHAR3 reference) R 111 Image memory read Read high address register (RHAR3) set s high address (Note 2} 0100 MN' ID' Image memory read low address Image memory read (RHAR4 reference) R 111 Image memory read Read high address register (RHAR4) set s high address (Note 2) 00000 DIR Image memory write low address Image memory write (referencing WHAR w and WDR selected by DIR) 001- - DIR Image memory write Set write high address register s high address (WHAR) selected by DIR 0101 010- - DIR - - C,S Image memory write data register Set write data register (WDR) s selected by DIR 011- - DIR Image memory read Set read high address register s high address (RHAR) selected by DIR 1 0 0 MASK DIR Read/write low address Read/modify/write RW 10 1- - DIR Read/write low address Read I modify I write (write CS bits RW selects mask) 00- - - DIR Load starting low address Self object load R 0110 01- - - DIR Load starting low address Self object load MN of output token R is SOLMN) 1- - - - - - - - - - - - - - - SOLMN Set SOLMN for self object load s Notes: (1) The following definitions refer to the above table: MN: Module number Z: Always 0 ID: Identifier CTLF: Control field ID': ID used for next circulation MN': MN used for next circulation (MN ¥- 111) DIR: Specifies registers for memory image access MASK: Specifies the modify mode -: Do not care S: Set R: Read W:Write (2) When RHASEL of the mode register is 1, the tokens become image memory read (request) tokens Table 3 shows module number (MN) values and the five token types (refer to figure 12). The five token types are: (1) Output request data to the host (2) Image memory access data (3) OMA request data (4) Pass data (5) Delete data 2-219 µPD9305 NEC Table 3. MN Values and Token Types Token Type MN ID Function Abbreviation (1) 0000 x xx xxxx µ.PD7281 output data to host CPU (2) 0001 MN' ID' Image memory read1 (RHAR1 IMR x xx xx x x select) 111 xx xx RHAR1 set (Note 2) 0010 MN' ID' Image memory read2 (RHAR2 xx x xx xx select) 111 xxxx RHAR2 set (Note 2) 0011 MN' ID' Image memory read3 (RHAR3 select) 111 xxxx RHAR3 set (Note 2) 0100 MN' ID' Image memory read4 (RHAR4 select) 11 1 xxxx RHAR4 set (Note 2) 0101 0 0 0 0 0 DIR Image memory write IMW 0 0 1 x x DIR High address set for write IMWHA (selected register file is DIR +1) 0 1 0 x x DIR Write data set (selected IMWD register file is DIR +1) 0 1 1 x x DIR High address set for read IMREA (selected register file is DIR +1) 1 0 0 Mask DIR Read/modify/write1 RMW1 1 0 1 x x DIR Read I modify I write2 (mask RMW2 selected by CS bits of image memory write data) (3) 0 101 110xxxx OMA1 (host - µPD7281) DMA1 111xxxx DMA2 {µ.PD7281 - host) DMA2 (2) 0110 0 0 x x x DIR Self object load1 SOL1 0 1 x x x DIR Self object load2 (rewrite MN) SOL2 1xxxxxx MN set for self object load SOLMN (4) 0111 µPD7281 module number (when PASS RHASEL=1) 1000 1001 1010 µ.PD7281 module numbers 1100 1101 1110 (5) 1111 Deleted VANISH Notes: (1) The following definitions refer to the above table: MN: Module number ID: Identifier MN': MN used for next circulation (MN ;ii. 111) ID': ID used for next circulation (2) When RHASEL of the mode register is 1, the tokens become image memory read tokens. 2-220 NEC µPD9305 Absolute Maximum Ratings AC Characteristics TA = 25°C TA = 0°C to + 70°C, V00 = 5 V ± 100/o Power supply voltage, V00 -0.5 V to 7.0 V Clock Timing Input voltage, V1 -0.5 V to 7.0 V Limits Output current, 10 10mA Test Parameter Symbol Min Max Unit Conditions Operating temperature, TOPT 0°C to 70°C CLK cycle time tcvK 80 ns Storage temperature, Tsrn -65°C to 150°C Clock pulse twKH 30 ns *Comment: Exposing the device to stresses above those listed in width high absolute maximum ratings could cause permanent damage. Do not operate the device under conditions outside the limits described in Clock pulse twKL 30 ns the operational sections of this specification. Exposure to absolute width low maximum rating conditions for extended periods may affect device Clock rise tKR 10 ns reliability. time Clock fall tKF 10 ns Capacitance time TA = 25°C Limits Test Input Timing Parameter Symbol Min Max Unit Conditions Limits Input 10 pF Test C1 capacitance Parameter Symbol Min Max Unit Conditions fc = 1 MHz Output Co 15 pF Unmeasured Input rise t1R 0 10 µS capacitance pins are time at 0 V. Input fall t1F 0 10 µS In put/ output C10 15 pF capacitance time DC Characteristics RESET Timing TA = 0°C to + 70°C, V00 = 5 V ± 100/o Limits Test Limits Parameter Symbol Min Max Unit Conditions Test Parameter Symbol Min Typ Max Unit Conditions RESET pulse tRST ns µPD9305 only fcYK Input V1L -0.5 0.8 v width low RESET setup toRSPRL 40 ns voltage time to IPPRST Input V1H 2.0 V00 +0.5 v IPPRST hold time toRSPRH 50 ns high after RESET t voltage IPPRST setup to toMN 60 ns Output Vol 0.4 v loL = 2 mA MN0-MN3 low voltage MNo-MN 3 float tFMN 50 ns time after Output VoH Voo v loL = -400 µA IPPRST t high -0.4 voltage IPPRST low toPROO 60 ns until OBD15-0BD12 Input lu ±10 µA O::sV1::sV 00 active leakage current OBD 15-0BD12float tFPROO 50 ns time after IPPRST t Output ILO ±10 µA O::sV1::sV00 leakage current Supply loo 10 100 mA 10 MHz current 2-221 µPD9305 NEC Host CPU - µPD9305 Read/Write Timing 1/0 Request/Acknowledge Timing Limits Limits Test Test Parameter Symbol Min Max Unit Conditions Parameter Symbol Min Max Unit Conditions Address s~p tsARW 20 ns IREQ I setup to1QIALI 15 60 ns to WR I, RD l time to IACK I Address hold tHRWA 20 ns IACK I tolAIOHI 10 ns time after WR I , setup time to RD I IREQ I CS setup to WR I tscRw 0 ns IREQ I to1QIAHI 20 70 ns RD I setup time to CS hold time IACK I tHRWC 0 ns after WR I, IACK t tDIAIQL 10 ns RD I setup to IREO + WR, RD pulse twRWL 100 ns ID bus~ ts101a 20 ns width time to IREQ I RD setup to to RD 80 ns ID bus hold tHIOID 10 ns data time from Data float time IREQ I tFRo 30 ns after RD I OREO I tooaoAL 10 ns Data setup to setup time to ts ow 20 ns WRt OACK I Data hold after OACK I tooAOQH 20 70 ns tHWD 20 ns WR! ~timeto I OREO I setup tooOOAH 10 ns OMA Request Timing( 1> time to OACK I Limits OACK I setup tooAOQL 15 60 ns Test Parameter Symbol Min Max Unit Conditions time to OREO I DMARQ I 20 ns OREO I tooaoo 10 ns tooaoA setup time to setup time to ODB valid DMAAK l ODB float time tFQQOD 10 ns DMARQ t tooAoa 50 ns after OREO 1 time from DMAAK t Note: DMARQ t tRvoa 50 ns Pull-up resistors required on µPD9305 IDB15 -IDBo to meet tHIQID time from timing. DMAAK t DMAAEN I tsoERW 30 ns setup time to (iID,WR) I DMAAEN tHRWDE 30 ns hold time after (RD.WR) I DMAAK ~ setup tsoARW 0 ns time to (RD.WR) l DMAAK hold time tHRWDA 0 ns after (RD.WR) I DMAAK pulse twoAL tcvK ns width Note: (1) DMAAK = DMAAK1 or DMAAK2 DMARQ = DMARQ1 or DMARQ2 2-222 NEC µPD9305 Image Memory Read, Write, Refresh Timing SOLBSY Timing Limits Limits Test Test Parameter Symbol Min Max Unit Conditions Parameter Symbol Min Max Unit Conditions IMA(1l t active toKMARF 100 ns IM refresh SOLBSY delay tDIASB 30 ns time from CLK + time from IACK t IMA active time toKMAMC 60 ns IM read or IM SOLBSY delay toKSB 60 ns from CLK t write time from CLK I IMA float time tFMCMA 10 ns from IMC t CPURQ Timing IMC recovery time tRVMC 1.5tcvK ns Limits Test IMC t delay time toKMCH 35 ns Parameter Symbol Min Max Unit Conditions from CLK t CPURQ delay time trnAPQ 30 ns IMC +delay time toKMCL 40 ns from CLK t from IACK I CPURQ delay time toPRQ 60 ns IMAK recovery time tRVMK 1.5tcvK ns from RD I IMAK setup time tsMKK 10 ns to CLK t IMAK hold time ns INBUSY Timing tHMCMK from IMC t Limits Test IMO setup time ts MOK 20 ns Image memory Parameter Symbol Min Max Unit Conditions to CLK t read timing INBUSY I delay tow1s 70 ns IM Dhold time tHMRMD 0 ns Image memory time from WR t from IMRD t read timing INBUSY I IM Ddelay time toKMD 30 ns Image memory delay time from tooa1s 40 ns from CLK t write timing OREO I IM Dfloat time tFMWMD 20 ns Image memory from IMWR t write timing ERR Timing Note: Limits (1) IMA = IMA23·IMA0 Test (2) IMC + IMRD, IMWR or IMRF Parameter Symbol Min Max Unit Conditions (3) To maximize IM access time use IMAK = IMC. Then IM cycle time will be 3.kcyK ERR t delay tDIAE 30 ns Error token time from iACK t output ERR I delay towE 60 ns INBUSY = 1 time from WR I ERR I delay toRE 60 ns CPURQ = 0 time from RD INBUSY hold tHWIB 10 ns time from WR I CPURQ ~tup tsPOR 10 ns time to RD I Note: All unused input or output pins should be pulled up to V00 or down to GND through a 2K-3K ohm resistor. 2-223 µPD9305 t\'EC Timing Waveforms RESET Timing Clock Timing i.-------IRST------...i IWKL loRSPRL loRSPRH CLK 49-001262A Input Timing Input 49-001276A 49-001275A Host CPU - µPD9305 Write Timing A,-Ao - f - t s A - R W - - - - - - - - - I H R - W A = r tscRw "\I ~----IWRWL----~ IF Ots-Do 49-0012738 Host CPU - µPD9305 Read Timing A,-Ao-i-ISARW-----.,_=t Ots-Do 49-0012748 2-224 NEC µPD9305 DMA 1 Request Timing DMAAEN tooaoA --1+--- loDADQ twoAL D-ls-Do 49-0012718 DMA2 Request Timing tooADO tooaoA------ twoAL DMAAEN - - - - - - - " ' I tsoARW 015-Do --------------1 49-0012728 110 Request! Acknowledge Timing ~------~~------- 49-0012598 2-225 µPD9305 t'tlEC 110 Data Bus Handshake Timing 49-0012588 Image Memory Read Timing IMA ISMKK IM0,1-0------ - - - - < (_ __ 83-0039238 Image Memory Write Timing 83-0039248 2-226 t-IEC µPD9305 Image Memory Refresh Timing IMA IMRF CLK -_j+---IRVMK-~ IMAK "--------J 83-0039258 JM Command Timing 49-0012618 SOLBSY Timing IACK~=~---- SOLBSY J f\---- IMRD CLK 49-0012688 2-227 µPD9305 t\'EC CPURQ Timing 49-0012679 INBUSY Timing INBUSY 49-0012669 ERR Timing, Error from lmPP \_/ ERR Timing, INBUSY ERR \---5- 49-0012638 INBUSY \ ,.,. :~ __t_~_~,~----;------------- 49-0012648 2-228 NEC µPD9305 ERR Timing, CPU Request CPURQ ' ~POR (A1 =Ao=O) Ri5 -------' I ERR '"') 49-0012658 µPD9305 Operation Table 4. 110 Ports Table 4 shows how the µPD9305 uses signals CS, RD, WR, and A 1 , Ao to read or write to 1/0 ports. cs RD WR A1 Ao Internal 1/0 Ports 0 0 0 0 Read lmPP input data register (from lmPP) 0 0 0 Read status register 0 0 0 Command RESET; data read has no meaning 0 0 1 1 Not used 0 0 0 0 Write lmPP output data register (to lmPP) 0 0 0 1 Write mode register 0 0 0 Write module number register 0 0 Write refresh timing register Figure 2 shows the status register format. Figure 2. Status Register Format [ SOLBSY I IPPERR I CPU RO I INBUSY I DMAR01 I DMAR01 I INERR I OUTERR J Li OUTERR[1] 1 µPD7281 input data register (INR) is read while CPURO = 0 (incl. during OMA) 0 RESET INERR[1] 1 µPD7281 output data register is written to when INBUSY = 1 (incl. during OMA) 0 RESET DMARQ2 1 DMA2 token [3] (MN = 5, ID = 7xH) input from the µP07281 0 DMAAK2 + RO = 0 or RESET DMAR01 1 OMA1 token [3] (MN = 5, ID = 6xH) is input from the µPD7281 0 OMAAK1 + WR = 0 or RESET INBUSY 1 Output token (OUTR) is being input to the µPD7281 0 µP~input of the token complete, or RESET CPUR0[2] 1 MN = Otoken is input from the µPD7281 0 Host read of the µPD7281 input token completed (INR) or RESET IPPERR [1,2] 1 Error token is input from the µPD7281 0 RESET SOLBSY 1 SOL1 or SOL2 token [ 4] is input from the µPD7281 0 SOL terminates or RESET Notes: [1] IPPERR. INERR and OUTERR are ORed and output to the ERR pin. [2] When IPPERR becomes '1". CPURQ also becomes '1" at the same time. [3] Refer to µPD9305 User"s Manual. Section 6. OMA Request Function [4] Refer to µPD9305 User"s Manual. Section 5. Image Memory/µPD7281 Interfacing 49-0012808 2-229 µPD9305 t\'EC Figure 3 shows the mode register format. Figure 3. Mode Register Format [ RHASEL I RFINH I HALFIN IHALFOUTI 8BITIN I BBITOUT I CSSEL l CRESETJ l CRESET CSSEL 0 1 0 No operation Command reset Image memory read data C,S bits are '00' 1 Image memory read data C,S bits are ·cs· 8BITOUT 0 16-bit external data bus ...... 1 8-bit external data bus 8BITIN 0 16-bit external data bus 1 8-bit external data bus HALFOUT 0 High/low 32-bit output 1 Low 16 bits output (high 16 bils ignored) HALFIN 0 High/low 32-bit input ~ 1 Low 16 bits input (high 16 bits fixed) RFINH 0 IMRF output 1 IMRF not output RHASEL 0 Read high address valid for MN = 1 to 4 tokens 1 Read high address invalid for MN 1= to 4 tokens (becomes read operation) Note: All bits of the mode register default to 0 when an external reset is applied. 49-001281A Figures 4-20 graphically show /LPD9305 operation. For a Figure 5. Setting Read Method for detailed description of /LPD9305 operation, refer to the Output Data µPD9305 User's Manual. Figure 4. Setting Write Method for Mode Output data read-out sequence Input Data 7H B A 16-bit 16-bit I L Use example T F ~ _! L l Mode 1----- 8 H Input data write sequence u u I 0 T 0 T HH I HL I I LH I LL I 16-bit 16-bit B A I L r l r l Use example 1(1] 16-bitCPU T I F I I HH I HL I I LH I LL I 0 0 I © ® normal use N N 16-bitCPU [1] 16-bitC PU 0 1 © image memory read 0 0 I © I I ® I normal use 8-bit c p u [2] Scanner 1 0 I® I© I © I® normal use 0 1 Fixed data I © I ------> µPD7281 ---->Image memory 1 1 ® I © 8-bitCPU image memory read 8-bitCPU 1 0 I® I© I I© I® I normal use Note: (1] Circled numbers indicate order in which data is written 8-bit C P U memory 49-001284A 1 1 I® I© I Fixed data ------> µPD7281 ---->Image memory Notes: [1] Circled numbers indicate order in which data is written (2] Fixed data should be defined beforehand 49-001283A 2-230 NEC µPD9305 Figure 6. Setting Fixed (16-Bit) Data Figure 7. MN Register For 16-bit CPUs Set the mode: 8BITIN = 0 HALFIN = 0 µPD7281 #1111 µPD7281 #2 Write the 16-bit data (H) to Note: [1] Bits 7-4 are output on the output data bus be set in the output data register (OUTR) (Low data 49-0012B7A is not written) Figure 8. Refresh Timing Register Set the mode: 8BITIN = 0 7111 6 HALFIN = 1 Ix Ix Note: Each lime the 16-bit low data is written to the output data register, the 16-bit high data set by the above procedure will be input with it to the µPD7281. Refresh Cycle (RC)l'I Notes: [1) X = don't care For 8-bit CPUs [2) The actual refresh cycle is (RC+ 1) x 8 CLK, RC = Oto 63 Set the mode: 49-0012BBA 8BITIN = 1 HALFIN = 0 Write, in two 8-bit opera- tions, the 16-bit data (H) be set in the output data register (OUTR) (Low data is not written) Set the mode: 8BITIN = 1 HALFIN = 1 49-001285A 2-231 µPD9305 NEC Figure 9. Input Timing(Host to µPD9305 to µPD7281) [1] OUTR HL register -----< OUTR HH register t Latched OUTR LL register OUTR LH register [2] BUSRQ ODB - - - - - - - - - - - - - - - - - - - - - - ' ( High Data x Low Data = Notes: [1] E'ZLZil Output enable [2] Internal signal 3. BBIN = 1, HALFIN = 0 49-0012898 2-232 NEC µPD9305 Figure 10. Output Timing (µPD7281 to µPD9305 to Host) INR HL register (8) ~ INR ·g. HH register (8) a: ~ 0 :l INR c. c: LL register (8) Latched INR LH register (8) Latched CPURQ IDB ~f--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Notes: [1] 122222) = Output enable 2. 8BITOUT = 1. HALFOUT = 0 49-0012858 Figure 11. Output to µPD7281, Control Data Paths Note: (1) Data from host (2) Data from last Im PP (3) Image memory read data (4) Self object load data 49-0012828 2-233 µPD9305 t-IEC Figure 12. µPD7281, Input Control Data Flow . WDR1(18) WHAR1(8) RHAR1(8) WDR2(18) WHAR2(8) RHAR2(8) WDR3(18) WHAR3(8) RHAR3(8) WDR4(18) WHAR4(8) (Note1) (4) (3) 1 (4) Note: (1) Refer to Table 3 for token type definitions 49-0012908 2-234 t'tfEC µPD9305 Figure 13. Image Memory Read Timing (Without Refresh Request) 108(16) Memory Access Request Internal Flag - - - - - - - - - - - - - ' CLK IMRD IMA(24) 49-0012918 2-235 µPD9305 NEC Figure 14. Image Memory Write Timing (Without Refresh Request) IDB(16) Memory Access Request Internal Flag------------ CLK IMWR IMA(24) IMD(18) ( ( ( ( ( ( ( <( ( ( <( ( ( ( ( ( ( < Image Me~~ry Data ))))))) 49·001292C 2-236 NEC µPD9305 Figure 15. Image Memory Access Request Priority Control Memory Access Request Token Memory Access ~ Request Internal j Flag--------------' Memory Refresh Request Internal Flag - - - - - - - - - - ' CLK IMRD OR IMWR-----------~-----11----_.._....__ _,__~-------' IMRF 49-0012938 2-237 µPD9305 t-IEC Figure 16. Read Data -- µPD7281 Output Timing (Single Output) IDB(16) Memory Access Request Internal Flag CLK IMRD IMD(18) ------------------~'----J)>--------------- 49-001294C 2-238 ~EC µPD9305 Figure 17. Read Data -- µPD7281 Output Timing (Continuous Output) Memory Access Request Internal Flag _ _ _ __ CLK Refresh Request Internal Flag IMRF IMRD Refresh Read 1 Read2 Read 3 49-001299C 2-239 µPD9305 ttiEC Figure 18. Self Object Load Timing SOL Start Request Token L Internal Flag Showing SOL CLK IMRD OR~~--v-v OACK v-v · 0_ -x_r Notes: [1] When OACK is not returned, the µPD9305 can retain up to two tokens. (H2)-L2 and H3-L3 tokens~ IMRD will not become active until the token is output. 2. If a refresh request is generated during execution of self object load, refresh is given priority. 49·001300C Figure 19. Refresh Timing CLK IMA9-0 Internal Flag Showing Refresh Request IMRF When no Other Request 49-0012958 2-240 NEC µPD9305 Figure 20. Read/Modify/Write Timing Internal Flag Showing R/M/W Request------------ CLK IMRD EJ IMWR 49-0012976 Table 5 shows the differences between command and Figure 21 shows a typical system configuration using the external resets. µPD9305 with several lmPPs. Table 5. Command and External Reset Differences Item RESET Commmand Reset 1/0 data counter; Tokens in the µPD9305; Cleared Cleared image memory access requests (except refresh); OREO, IACK; DMA request Refresh timer; refresh request; refresh Default No change address; mode register values IPPRST pin O(active) 0 (active) Figure 21. Typical System Configuration Image Memory "'" m ~w ~ "'"m E i en ·f ': ~' ,~ r------1 EJ'-- : I I DMAC . . - - __ .J I I L-- - ___ J µPD7281 µPD7281 µPD7281 #2 #3 #4 49-0012966 2-241 µPD9305 NEC 2-242 NEC SPEECH PROCESSORS Speech Processors NEC Section 3 Speech Processors 11PD7730/77C30 3-1 ADPCM Speech Encoder/Decoder 11PD7755/56/P56/57 3-15 ADPCM Speech Synthesizers 11PD7759 3-21 ADPCM Speech Synthesizer NEC NEC Electronics Inc. ,iPD7730/77C30 ADPCM Speech Encoder/Decoder Description When the µPD7730/77C30 operates in the sample 4-bit encode mode, it never outputs the value OOH. However, The µPD7730/77C30 is a large scale integration (LSI) when it is in the sample 4-bit decode mode, it can accept single-chip digital signal processor, which compresses OOH as an input value and interpret it the same as an and decompresses digitized speech signals. It is a input value of 88H. speech encoder/decoder that converts pulse code mod- ulated audio to and from adaptive differential pulse code The µPD7730/77C30 performs as a intelligent peripheral modulation (ADPCM). The µPD7730/77C30 encodes device and is controlled and programmed from the host pulse coded modulation (PCM) data into AD PCM data, processor. The µPD7730/77C30 offers toll quality (equiv- and decodes AD PCM data into PCM data. The µPD7730/ alent quality to 56 kb/s µ-law PCM) speech meeting the 77C30 is ideal for office automation applications, such CCITT recommendations G.712. as voice store and forward systems, and for various telecommunication applications. It reduces voice trans- Features mission bandwidth and voice storage requirements by o Half-duplex AD PCM encoder or decoder half (from 64 kb/s to 32 kb/s). Its robust ADPCM algo- o Compression data rate rithm makes it well qualified for transmission applica- - 32 kb/s/8 kHz sampling/4-bit data tions and the fact that it compresses speech by half - 24 kb/s/8 kHz sampling/3-bit data makes it suitable for store and forward applications. o Byte data (2x AD PCM data) handling The µ.PD7730 and µPD77C30 are functionally identical, o Robust adaptation scheme for quantizer and but the power requirement for the CMOS µPD77C30 is predictors lower than that of the NMOS µPD7730. Both devices are o Selectable functions housed in plastic DIP; the temperature range of the low - Encoder /decoder operating mode power NMOS device is -10 to + 70°C and the CMOS - AD PCM data length 3 or 4 bit device is -40 to + 85°C. - A/D and D/A conversion µ-law or linear o Presentable voice detection threshold The maximum clock (CLI<) frequency for the µ,PD7730/ o Standard microprocessor interface to the host CPU 77C30 is 8.33 MHz, which corresponds to a CLK cycle o Easy interface to PCM combo time of 120 ns. o Toll quality speech at 32 kb/s (meets CCITT The µPD7730/77C30 accepts PCM data through its serial recommendations G. 712) interface. The serial interface can be connected directly o Single +5 V power supply to a single-chip coder/decoder (CODEC) for digital µ-law o Low power CMOS technology (µ.PD77C30) PCM input/output or to a general purpose A/D or D/A NMOS technology (µPD7730) converter for linear PCM code. This programmable serial o Clock frequency 8.192 MHz maximum interface supports both 8-bit logarithmic (µ-law) and o 28-pin plastic DIP 16-bit linear formats. The µ,PD7730/77C30 interfaces to o 44-pin PLCC the host CPU through a standard microprocessor bus interface. Ordering Information Part Number Type Package If a clock frequency of 8.33 MHz is used to encode PCM data, then the µPD7730/77C30 requires 116 µ.s to process µPDnaoc NMOS 28-pin plastic DIP (600 miQ each sample, thus limiting the sampling frequency to µPDnC30C CMOS 28-pin plastic DIP (600 miO 8.59 kHz. This implies that if the sample frequency is 8.0 µPDnC30L CMOS 44-pin PLCC kHz and the CLK is 8.33 MHz, then the internal algorithm will take approximately 93% of the time between sam- ples. Serial data being shifted in or out has the full time between samples to accomplish the transfer of the data. This is because there is an internal buffer that is separate from the shift register and the serial input is internally read at the rising edge of the sample clock, while the next value is starting to be shifted in. 50162 3-1 1tPD7730/77C30 NEC Pin Configuration Pin Identification (cont) Symbol 1/0 Function 28-Pin Plastic DIP DET Out Signal detect This output is asserted when the input audio signal level exceeds the threshold NC Voo level specified. PU Ao DRO Out Data request: This output requests data IC cs transfer between the µ.PD7730/77C30 and host DRQ Ro CPU. In encoder mode, and ADPCM data read DET WR is requested. In decoder mode, and ADPCM Do SORO data write is requested. (DRO will not work D1 so unless encoder or.decoder mode is specified.) D2 SI The data request status can also be checked D3 SOEN by polling the ROM bit of the status register. D4 SIEN In Read signal: This input controls data transfer D5 SCK from the µ.PD7730/77C30 to the host CPU. Ds SMPL D7 RST WR In Write signal: This input controls data transfer GND CLK from the host CPU to the µ.PD7730mC30. 4l1TS-401A AID-DIA Interface SCK In Serial clock: This input provides timing for 44-PinPLCC transfer of serial data to/from the AID and D/A converter. 0101~ 00 lzlz g 0 - 0 ~ !:!:! 0 ZCI:;;:.l/J(J}Zl/JZl/Jl/JZ SI In In Serial input: Serial data input. Serial input enable: This input enables data transfer on the SI pin. If not used, tie to SQEN, STEN must be asserted for the µ.PD7730mC30 NC 28 SCK to recognize an operation command. cs 27 SMPL so Out Serial output: Serial data output. Ao 26 NC NC 25 RST In Serial output enable: This input enables data Vee 24 CLK transfer on the SO pin. If not used, tie to STEN. Vee 23 NC SORO Out Serial output request: This output indicates that NC 22 GND serial request output data is ready for transfer PU 21 GND at the SO pin. IC 20 D7 DRO 19 Ds Circuit Control NC 18 NC CLK In Clock: 8.192 MHz TTL clock input. GND In Ground. IC Internal connection: This pin is connected internally and should be left open. 49TB·405A NC No connection: This pin is not connected. PU Pull up: Pull this pin up to V00 . Pin Identification RST In Reset: A high input to this pin initializes the Symbol 1/0 Function µ.PD7730mC30. Host System Interface SMPL In Sample: This input determines the rate at which Address O (register select): This input selects the µ.PD7730mC30 processes ADPCM data. Ao In This rate must equal the sampling clock of the internal registers. A high input selects the status register. A low input selects the data AID and D/A converter. SMPL must be active for register. the µ.PD7730mC30 to recognize an operation command. DrDo 1/0 Data Bus: This three-state bidirectional data bus interfaces with the host CPU data bus. Voo In +5-volt power supply. cs In Chip select: This input enables the RD and WR signals. 3-2 NEC µPD7730/77C30 Absolute Maximum Ratings DC Characteristics TA= 25°C TA = -10 to +70°C; V00 = +5 v :!:5% Supply voltage, Voo Parameter Symbol Min Typ Max Unit Conditions 7730 -0.5 V to +7.0 V Input voltage V1l low 77C30 -0.5 V to +7.0 V Input voltage, V1 7730 -0.5 0.8 v 7730 -0.5 V to +7.0 V 77C30 -0.3 0.8 v Input voltage V1H 77C30 -0.5 V to Voo + 0.5 V high Output voltage, Vo 7730 2.0 Vee v 7730 -0.5 V to +7.0 V +0.5 77C30 -0.5 V to V00 +0.5 V 77C30 2.2 Vee v +0.3 Operating temperature, ToPT CLK input Vol 7730 -10 to +70°C voltage low 77C30 -40 to +85°C 7730 -0.5 0.45 v Storage temperature, TsTG 77C30 -0.3 0.45 v 7730 -65 to + 15D°C CLK input VoH 77C30 -65 to + 150°C voltage high Exposure to Absolute Maximum Ratings for extended periods may 7730 3.5 Vee v affect device reliability; exceeding the ratings could cause perma- +0.5 nent damage 77C30 3.5 Vee v +0.3 Capacitance Output voltage Vol 0.45 v lol = 2.0 mA TA= 25°C, V00 = OV low Parameter Symbol Min Typ Max Unit Conditions Output VoH 2.4 v loH = -400 p.A CLK, SCK c; 20 pF voltage high capacitance Input leakage lul -10 p.A v, = ov Input capacitance C1 10 pF fc = 1 MHz current high Output capacitance Co 20 pF Input leakage luH 10 p.A V1 = Voo current high Output leakage llOl -10 µ.A Vo= 0.47V current low Output leakage llOH 10 p.A Vo= Voo current high Supply current loo 7730 180 280 mA 77C30 24 40 mA 3-3 11PD7730/77C30 NEC AC Characteristics AC Characteristics (cont} TA= -1oto +10°C; v00 = +5 v ±5% TA= -10 to +10°C; V00 = +5 v ±5% Parameter Symbol Min Typ Max Unit Conditions Parameter Symbol Min Typ Max Unit Conditions CLK cycle time 4>cv SO delay time tocK 150 ns 7730 122 2000 ns SO delay time for toZRQ 20 300 ns SORO 77C30 120 2000 ns SO delay time for tozsc 20 300 ns CLK pulse width 4>o 60 ns SCK CLK rise time 4>r 10 ns (Note 1) SO delay time for tozE 20 180 ns CLKfalltime 4>t 10 ns (Note 1) 50EN Ao, CS set tAR 0 ns SO float time for tHZE 20 200 ns time for RD SOEN Ao, CS hold tRA 0 ns SO float time for tHZSC 20 300 ns time for RD SCK RD pulse width tRR 250 ns SO float time for tHZRQ 70 300 ns SORO Ao, CS set tAW 0 ns time for WR Notes: Ao, CS hold twA 0 ns (1) AC timing measuring point voltage = 1.0 V and 3.0 V. time for WR WR pulse width tww 250 ns Data set time for tow 150 ns WR Data hold time for two 0 ns WR RD, WR recovering tRV 250 ns time S CK cycle time tscv 480 DC ns S CK pulse time tscK 230 ns S CK rise time trsc 20 ns SCKfall time trsc 20 ns SOEN set time tsoc 50 tscv ns forSCK -30 SOEN hold time tcso 30 tscv ns for SCK -50 SIEN, SI set time toe 55 tscv ns for SCK -30 SIEN, SI hold time tco 30 tscv ns forSCK -55 SIEN, S0EN pulse tHs 122 4>cv width high AST pulse width tRST 4 4>cv SMPL pulse width tsMPL 8 4>cv Delay time tox -1 0 µ.s between SM PL and Sim (SOEN) Data access time tRo 150 ns CL= 100 pF for 'RD Data float time for toF 10 100 ns Q = 100 pF RD SORO delay toRQ 30 150 ns CL=50pF 3-4 NEC ,iPD7730/77C30 Timing Waveforms Reset Clock CLK Sample Read Operation SMPL m 49-0006868 Read/Write Cycle Timing Write Operation 49-000724A I ~=~ ~-IRv---------<1J .. AC Waveform Measurement Points (except CU<) 2.4V 2.av 2.aV a.45 v a.av a.av 49-000685A 3-5 1-tPD7730/77C30 NEC Timing Waveforms (cont) Serial Input/Output Timing trsc t1sc tcso ts~ tsoc SOEN SIEN SI Note: In SO, the data output at the rising edge is valid, while data output at other times is invalid. Therefore, the most critical data set·up and hold times are: Set-up lime = tscK - tocK Hold time = IHZRO 83-003663C Serial Input Timing Serial Output Timing 49·000688A 49·000689A 3-6 NEC µPD7730/77C30 Block Diagram The µPD7730/77C30 has serial interfaces that can con- nect directly to a single-chip PCM CODEC. It interfaces easily to a host CPU through its parallel bus. With its standard microprocessor bus interface, the µPD7730/ 77C30 can be viewed as a complex peripheral circuit. Figure 2 shows a typical system configuration. Figure 1. Algorithm Block Diagram Encoder Mode Decoder Mode AO: Adaptive Quantizer AQ- 1 : Adaptive Inverse Quantizer FUNCTIONAL DESCRIPTION FP: Fixed Predictor AP: Adaptive Predictor The µPD7730/77C30 has the following functional units: <19·CXX>tllll'A • A/D-D/A interface Figure 2. Typical System Configuration • PCM/ADPCM encoder/decoder • Controller 70108, 8088, 7800, 8085A Memory • Data register CPU's • Status register • Host CPU interface Address ~...;......;'--.;..._.;..--"-----.;_.;____..:......:...--1 ~---~ Bus'---,--,,.-.,--;------.,--;-----:--,--,,..---,---~ The ADPCM method is a medium bandwidth coding technique that represents speech waveforms. The spe- cific AD PCM used employs a robust adaptation scheme JJll D;:\~--------T Ull 11 __. ________ j .___I--'-D""------'I ~' for a quantizer and predictor to withstand transmission bit errors. Figure 1 shows the block diagram of the algorithm. The algorithm uses a backward adaptive I_I_____ quantizer and a fixed predictor so it never generates unstable poles in a decoder transfer function. This ap- D0-D7 RD WR cs Ao proach guarantees the stability of the decoder even with Saci~~e-------SMPL transmission errors. µPD7730n7C30 The µPD7730/77C30 can operate in either encoder or Analog Input- PCM SI decoder mode, and can only be set to one of the two CODEC modes at a time; it cannot handle simultaneous encod- or Analo AID-DIA ing and decoding. In encoder mode, the µPD7730/77C30 Output accepts either linear or µ-law PCM data from its serial 49TB-406A voice interface, encodes it to ADPCM data format, and passes the AD PCM data through the parallel data bus to the host system. In decoder mode, the µPD7730/77C30 receives ADPCM data from the host CPU, decodes it to either linear or µ-law format, and sends it to the output port of the serial interface. 3-7 µ,PD7730/77C30 NEC OPERATIONAL DESCRIPTION Two different approaches can be used for servicing ADPCM 1/0 requests by the µ.PD7730/77C30. The first Host CPU lnterf ace approach is for the host CPU to repeatedly poll the In order to transfer AD PCM data, commands, and status, status register until ROM = 1 is found. The second the µ.PD7730/77C30 interfaces with the host CPU via approach is for the DRO pin to go high forcing an D0-D 7 and through control lines CS, Ao WR, and RD. CS interrupt of the host CPU. In either case the host CPU enables RD and WR. Ao selects either the data or status then reads the data register to capture the AD PCM data. register: A low input to Ao selects the data register: This read/write register handles both commands and AD PCM Status Register data transfer: A high input to Ao selects the status Figure 5 shows the format of the status register: register, a read-only register that the CPU reads to determine the state of the µ.PD7730/77C30. Operation Command Parallel 1/0 Operation Following a power-on reset, the host CPU polls the ROM bit in the status register: When the ROM bit is set, the Table 1 shows the status of the CS, Ao WR, and RD pins host CPU can send an operation command to the data during parallel 1/0 operation. Figures 3 and 4 are timing register, as shown in figure 6. diagrams that show the read and write operations for the host CPU interface with the µ.PD7730/77C30. Table 1. Control Une States The ROM bit in the status register and the DRO pin are CS Ao WR RD Function the principal handshake signals. Their characteristics X X X No effects on internal operation. follow. x x 1 Do-07 are high impedance. RQM characteristics: 0 0 0 1 Data from Oo-07 is latched to the data register. - The µ.PD7730/77C30 requests a data transfer to or 0 0 O Contents of the data register are output to from a host CPU by setting the ROM signal to a Do-07. high level. 0 0 1 Illegal operation. -After AD PCM data has transferred, the ROM goes 0 0 Contents of the status register are output to low at the rising edge of WR or RD pulse. Do-07. - After the threshold data has transferred, ROM goes low at the second rising edge of the WR X = don't care. pulse. - Reading the status register via the data bus does not reset ROM. DRQ characteristics: - Except during initialization, the µ.PD7730/77C30 DRO signal is high, when the status register bit ROM is set to indicate that an AD PCM data transfer to or from the host CPU is required. - DRQ goes low after each encoding or decoding operation is completed. - Because DRO remains low throughout initialization it cannot be used for handshaking during initialization. - The DRQ signal may be connected to an interrupt pin of a host CPU. 3-8 NEC µPD7730/77C30 Figure 3. ADPCM Data Read Timing DAO ROM _j \...______ RD Ao_/ \ _ _ _ _ __ 49TB-470B Figure 4. ADPCM Data Write Timing DAO_/ \___ ROM_) \ _____ RD \___/ Ao_/ \ _ _ _ _ __ D o - D 1 - - - D - - <_ _ _,)>----------- WR \_j 49TB·469B 3-9 µPD7730/77C30 NEC Figure 5. Status Register Format MSB lRaMI o JoErJoRsJ 0 I I DRC SOLI SIL LSB ~ L"",_,., .,. Data Length) SOL (Serial Output 0 1 0 PCM input data is 16-bit (linear) PCM input data is 8-bit (wlaw) PCM output data is 16-bit (linear) Data Length) 1 PCM output data is 8-bit (ii-law) 1 DRC(Data 0 Second byte transferred Register Control) 1 First byte transferred DRS (Data 0 Data register is 16-bit (for threshold data) Register Status) 1 Data register is 8-bit (for all other data) DET(Speech 0 Silence interval Detect) 1 Speech detected ROM (Request 0 No request for data transfer for Master) 1 Data transfer on the parallel bus requested Note: '·DRS indicates the status of data transfers when the Data register is configured as 16-bit (DRC O). 49·0006908 Figure 6. Operation Command MSB LSB I 07 I 06 I I I I I I I OS 0 0 0 0 0 L J l 07 D6 DS Mode PCM data format ADPCMdata length/sample (bits) 1 1 1 µ-law 8-bit 4 CODEC 1 0 1 (MSBlirst) 3 Encoder 16-bit 1 1 0 4 A/D-D/A 1 0 0 (LSBfirst) 3 0 1 1 µ·law8-bit 4 0 0 1 Decoder j.,~~Ef;st) 3 0 1 0 Linear 4 A/D·D/A 0 0 0 (LSBfirst) 3 490006918 Power-on and Reset Initialization and Threshold Data The µ.PD7730/77C30 operates on a single-phase, 50-50 See figure 7 for the initialization sequence for the en- duty cycle clock at 8 MHz. At power-on, asserting the coder mode. See figure 8 for the initialization sequence RST pin for at least 3 clock cycles initializes the device, for the decoder mode. During initialization signal SMPL making it ready for an operation command from the host is ignored, but the SCK and SIEN signals must be active. CPU. After the µ.PD7730/77C30 receives the command, it This is because the µ.PD7730/77C30 internal code stays in the specified operational mode until the next checks that the serial data is being transferred in before hardware reset (high level on RST). Thus, to change the it accepts the mode byte. Also, it is of no consequence µ.PD7730/77C30 into different modes, reset it before whether or not serial input data is valid during initializa- writing an operation command. tion. This is true whether the µ.PD7730/77C30 is placed in encoder or decoder mode. 3-10 NEC µPD7730/77C30 A hardware reset must be issued before a mode byte can When the µ.PD7730/77C30 first enters the decoder mode be sent, even when the µ,PD7730/77C30 is being pow- the ROM bit is already set and the first byte of data sent ered up. Also, to change modes (e.g., encoder to decoder to the µ.PD7730/77C30 wi II not be decoded properly. To mode), a hardware reset signal must be issued. In eit~er avoid losing the first speech sample, a dummy first byte of the above cases, the reset signal must be held active of AD PCM should be sent. for a minimum of 3 CLK cycles to guarantee that the If the operation command places the µ,PD7730/77C30 in mode byte will be accepted. As explained below, the encoder mode, the next two bytes sent to the data ROM bit of the status register should be used for data register are the threshold data. The ROM bit establishes transfer handshaking, especially during initialization. the data transfer signaling. In decoder mode, no thresh- The status register at a CLK frequency of 8.192 MHz is old data is expected. The threshold data sets the level of not valid until 190 µ,s after the trailing edge of the reset the audio signal at which the DET pin is asserted. Figure pulse, and should not be read until after that time 9 shows the format for the threshold data. Figure 10 interval. shows how to determine the threshold data. The DRQ signal does not always follow the state of the The µ.PD7730/77C30 asserts DET when the serial input RQM bit in the status register. In particular, the DRQ audio signal exceeds the threshold level specified by the signal remains low throughout initialization. Ther~fore, it threshold data. Many silent segments exist in normal is essential during initialization to use the ROM bit of the speech signals; memory storage can be used more status register for handshaking. The DRQ signal. is i~­ efficiently if these segments are omitted. The host CPU tended for interrupting the host CPU so that 1t will can perform silent segment compression by using DET. transfer AD PCM data after initialization. The ORO signal The energy levels of 16 previous audio samples deter- remains high until the encoding or decoding operation of mine the state of DET. Thus DET changes at a 2 ms (16 x the µ.PD7730/77C30 is complete. The RQM bit, in con- trast, is intended for data transfer handshaking and is a kHz sampling) time frame. Bit 5 of the status register reflects the state of DET. reset after each data port transfer is complete. 3-11 1tPD7730/77C30 NEC Figure 7. Encoder Mode Initialization Sequence Figure B. Decoder Mode Initialization Sequence Start Start Assert RESET Pin for at Assert RESET Pin for at least 3 CLK Cycles least 3 CLK Cycles Wait190µs Wait190µs Read Status Register Read Status Register [Ao=1) [Ao=1] N Write EOH [Encoder Mode] Write GOH [Decoder Mode] to Data Register to Data Register [Ao= OJ [Ao= O] Read Status Register Read Status Register [DRC Bit=O) [DRC Bit= 1) N N Write 2 Bytes of Threshold Device Initialized in Decoder Mode Data to Data Register Start Writing Data into Data Do Not Poll DAO between Bytes Register from Host CPU Send Low Byte, then High Byte Use ROM or DAO Pin for Handshaking 49TB·408A Read Status Register N Device Initialized in Encoder Mode Start Reading Encoded Data from Data Register Use ROM or DAO Pin for Handshaking 4!1TB-407A 3-12 NEC µ,PD7730/77C30 Figure 9. Threshold Data again. (Note that the DRO pin will not work until the µ.PD7730/77C30 is placed in encoder or decoder mode.) Threshold Data M~ ~B The AD PCM data transfer is acknowledged by the ROM I I I I- - - --1 I I 0 D14 D13 D2 01 DO bit in the status register. The ROM Bit is set when transfer to the host is requested for ADPCM data, and is reset SIGN-----15bits------. when the host read/write is complete. Note: The µPD7730/77C30 receives the lower 8 bits of this data before It receives the higher 8 bits. Serial PCM Interface 49·000693A The serial PCM interface can be connected directly to a CODEC. SMPL, SCK, SIEN, SI, SORO, SOENS, and SO Figure 10. Typical Relationship Between Input control the PCM interface. Level and Threshold Value SMPL is the sampling clock input. This signal must equal T the frequency of the sampling clock of the CODEC or the DET=1 ~ A/D-D/A interface. SMPL is asserted after the completion ~ of serial data transfers. Thus SMPL signals the µ.PD7730/ -10 _.1.--1 77C30 firmware to initiate processing of the next byte of ~ ~ VP" ADPCM data. SMPL is rising-edge triggered, but must be held high for at least 8 clock cycles. Since it is g! _20 .3 L DET=0 --+---+---+---+---+---i edge-triggered, SMPL does not need to be released until the next sampling cycle. l'°7 < SCK determines the timing of the serial input and output. When the µ.PD7730/77C30 has data to send to the serial -40---t---+---+---+---+---+--+-----1---1~ interface, SORO goes high. The data is then clocked out ~~-~-~-~-~-~-...__.....____. ~ to the SO pin serially at the falling edge of SCK, to be 0 100 200 300 400 500 600 700 800 900 valid for the next rising edge. When serial data is ready to Threshold Value [Hexadecimal] be sent to the µ.PD7730/77C30 SIEN is asserted exter- Conditions: nally, and data at the SI pin is clocked in at the rising [1] Input= Sinusoidal Wave [1 kHz] [2] Input Level is measured at the analog input of CODEC [gain = OdB] edge of SCK. Figure 12 illustrates an example of the serial interface using a combined filter and CODEC (COMBO) chip, the ADPCM Data µ.PD9514. This chip provides both the low pass filtering In encoder mode, the µ.PD7730/77C30 generates one function and the conversion from an analog signal to ADPCM sample (3 or 4 bits long) for each PCM sample digital PCM µ.-law representation. The timing controller input (8 or 16 bits long). In decoder mode, the reverse provides the proper timing relationship between the operation is performed: the µ.PD7730/77C30 generates COMBO and the µ.PD7730/77C30. one PCM sample for each AD PCM sample input. To allow efficient data transfer to and from the host CPU, two ADPCM samples are packed into one byte and trans- ferred at the rate of 1 byte per every 2 samples. Figure 11 illustrates the ADPCM data formats for 3 bits/sample and 4 bits/samples. The DRQ pin initiates AD PCM data transfer. In encoder mode, this pin is asserted when AD PCM data in the data register is ready to be read by the CPU. This pin is cleared after the host CPU reads the data, and is reasserted when the next byte of ADPCM data becomes available. In decoder mode, this pin serves as the data request to the host for the next byte of AD PCM data to be sent to the data register. After the host CPU writes the AD PCM data, this pin is cleared. The host CPU cannot send another byte to the µ.PD7730/77C30 until this pin is set 3-13 µPD7730/77C30 NEC Figure 11. ADPC/11 Data Format ADPCM data length = 4 bits MSB LSB 07 06 05 04 03 02 01 DO Trailing Data Preceding Data ADPCM data length = 3 bits MSB LSB 07 06 05 o 1 03 02 01 I o Trailing Data Preceding Data 49-000692A Figure 12. Serial Interface Using a COMBO Timing Controller r- - - ----------1 I +5V 74LS74 74LS164 I I I 16,3~~~Hz I 74LS74 I 10 I I 2MHz I L_ -----, +5V I L 24 +5 v Voo PON Analog 21 14 17 AIN+ CLKx SMPL Input 22 13 20 AIN- CLK4 SOEN 19 SIEN 18 SCK 15 FSx 15 L-------------------'-"< CLK FSA 11 Analog Dx 16 21 SI Output DR 10 22 so Filter/CODEC [COMBO] µPD7730/77C30 ~1P095140 49-0016648 3-14 NEC NEC Electronics Inc. µ,PD7755/56/P56/57 ADPCM Speech Synthesizers Description Ordering Information Part Number Package Type ROM (bits) The µ.PD7755, µ.PD7756, and µ.PD7757 are speech syn- thesis LSI devices that utilize the adaptive differential µ.PD7755C 18-pin plastic DIP 96K pulse coded modulation (ADPCM) coding method to (A, C outline) produce high-quality, natural speech synthesis. By com- µ.PD7755G 24-pin plastic SOP bining phoneme classification with the AD PCM method, µ.PD7756C 18-pin plastic DIP 256K the device achieves a compressed bit rate that can (A, C outline) synthesize sound effects and melodies in addition to µ.PD7756G 24-pin plastic SOP 256K (OTP) speech sound. A built-in speech data ROM allows syn- µ.PD77P56CR 20-pin plastic DIP 256K thesis of messages up to 4 seconds (µ.PD7755), 12 seconds (µ.PD7756), or 24 seconds (µ.PD7757) long. A wide range of operating voltages, a compact package, and a standby function permit application to the µ.PD7755/56/57 in a variety of speech synthesis systems, µ.PD77P56G µ.PD7757C µ.PD7757G 24-pin plastic SOP 18-pin plastic DIP (SA outline) 24-pin plastic SOP 256K (OTP) 512K IJ including battery-driven systems. The µ.PD77P56 is one-time programmable (OTP) version of the µ.PD7756. Pin Configurations 18-Pin Plastic DIP Features o High quality speech synthesis using AD PCM 13 method 12 o Low bit rates (BK to 32K b/s) using a combination of 11 AD PCM and phoneme methods lo o D/A converter with 9-bit resolution, unipolar current ST waveform output AVO cs BUSY 7 X1 o Built-in speech data ROM RESET 11 X2 - µPD7755: 96K bits GND Voo - µPD7756/P56: 256K bits 49TB-505A -µPD7757: 512K bits o Standby function o Current consumption in standby mode: 1 µ.A typ 20-Pin Plastic DIP (Voo = 3 V) o Circuit to eliminate popcorn noise when entering or l3/D3 releasing standby mode l2iD2 o Wide operating voltage range: 2.7 to 5.5 V l1iD1 o CMOS technology loiDo D 18-pin plastic DIP or 24-pin plastic SOP ST CS/MD3 D One-time programmable (OTP) version of µPD7756 BUSY/MDo X1 available in a 20-pin plastic DIP or a 24-pin plastic RESET/MD1 X2 SOP GND Voo NC 11 Vpp 49TB-504A 50116 3-15 ,iPD7755/56/P56/57 NEC 24-Pin Plastic SOP ST (Start) Setting the ST input low while CS is low will start speech Voo 1 GND synthesis of the message in the speech ROM locations X2 RESET/(MD1) addressed by the contents of 10-1 7• If the device is in X1 BUSY/(MDo) NC 4 21 NC standby mode, standby mode will be released. CSt(MDsl s AVO 8T REF/(MD2) BUSY (Busy) NC NC NC 8 l7/(D7) BUSY outputs the status of the µPD7755/56/57. It goes lot(Dol NC low during speech decode and output operations. When l1/(D1) lst(Dsl ST is received, BUSY goes low. While BUSY is low, l2/(D2) l5/(D5) another ST will not be accepted. In standby mode, BUSY l3/(D3) 14'(04) becomes high impedance. This is an active low output. Note: ( ) =Additions for the µPD77P56 AVO (Analog Voice Output) 49TB·503A AVO output synthesized speech from the D/A converter: Pin Identification This is a unipolar sink-load current. Symbol Name RESET (Reset) Message select code input REF DIA converter reference current input The RESET input initializes the chip. Use RESET follow- AVO Analog voice output ing power-up to abort speech synthesis or to release standby mode. RESET must remain low at least 12 Busy output oscillator clocks. At power-up or when recovering from Reset input standby mode, RESET must remain low at least 12 more GND Ground clocks after clock oscillation stabilizes. Voo Power X2,X1 Clock X1, X2 (Clock) Chip select input Pins X1 and X2 should be connected to a 640 MHz Start input ceramic oscillator. In standby mode, X1 goes low, and X2 goes high. PROM 1/0 data bus MD0-MD3 Operation mode selection input for PROM REF (D/A Converter Reference Current) Vpp 12.5 V PROM voltage application REF inputs the sink-load current that controls the D/A NC No connection converter output. REF should be connected to V00 via a resistor: In standby mode, REF becomes high imped- Pin Functions ance. 10-11 (Message Select Code) Do-Di (Data Bus) 10-1 7 input the message number ofthe message to be Eight-bit input/output data bus for PROM, when pro- synthesized. The inputs are latched at the rising edge of gramming and verifying data. the ST input. Unused pins should be grounded. In standby mode, these pins should be set high or low. If MDo·MD3 (Mode Select Input) they are biased at or near typical CMOS switch input, Operation mode selection inputs for PROM, when pro- they will drain excess current. gramming and verifying data. cs (Chip Select) Vpp (PROM Power) When the CS input goes low, ST is enabled. 12.5 V high voltage application pin, for programming and verifying data to PROM. 3-16 NEC µ,PD7755/56/P56/57 GND (Ground) The µ.DP7755/56/57 can operate with a wide range of supply voltage: 2. 7 to 5.5 V. It also has a standby Ground. function; it goes to a standby mode when it has been idle (that is, when CS , ST, or RESET have not been asserted) Voo (Power) for more than 3 seconds. The µ.DP7755/56/57 will auto- + 5 V power supply. matically release from standby mode when CS and ST are asserted again, or when RESET is asserted. NC (No Connection) The µ.DP7755/56/57 has a very simple message selection interface. A µ.DP7755/56/57 can store a maximum of 256 These pins are not connected. different messages and up to 12 (µ.DP7755), 12 (µ.DP7756), or 24 (µ.DP7757) seconds of speech. The Operation Description message is selected by using the input pins 10-1 7 . The The clock pins should be connected to a ceramic oscil- input selection is latched at the rising edge of ST when lator at 640 MHz. CS is asserted. When ST is asserted, BUSY will go low until the selected audio speech output is completed. The RESET input pin is used to initialize the While BUSY is low, a new ST will not be accepted. µ.PD7755/56/57. To reset, assert the pin for a minimum of The µ.DP7755/56/57 has an internal D/A converter that is 12 oscillator clock cycles. a unipolar, current-output type with 9-bit resolution. The output current of the D/A can be controlled by the voltage applied at the REF pin. Block Diagram ST---- Message PROM Control Speech 10-l7/(Do-D7) Select Input Circuit for Latch Circuit Data Memory µPD77P56 only Vpp - - - VoD - - - GND ~--- REF/(MD2) CS/(MD3)- System ADPCM DIA RESET/(MD1) - Controller Decoder Converter AVO BUSV/(MDO) Note: ( ) = Additions for the µPD77P56 49NR-4988 3-17 #'PD7755/56/P56/57 NEC Absolute· Maximum Ratings Capacitance TA= 25°C TA= 25°C Supply voltage, Voo -0.3 to +7.0 V Parameter Symbol Min Typ Max Unit Conditions Input voltage, V1 -0.3 to V00 +0.3 V Input capacitance C1 10 pF fc = 1 MHz Output voltage, Vo -0.3 to V00 +0.3 V Output capacitance Co 20 pF PROM Power voltage, Vpp -0.3 to + 13.5 V PROM output current, lo 50mA (AVO pin only) Operating temperature,ToPT -10to +10°C Storage temperature, TSTG -40 to + 125 °C Exposure to Absolute Maximum Ratings for extended periods may affect device reliability; exceeding the ratings could cause permanent damage. DC Characteristics TA = -10 to + 70 °C; Voo = 2.7 to 5.5 V; fosc = 640 MHz (µPD77P56 TA = -40 to +85°C) Parameter Symbol Min Typ Max Unit Conditions Input voltage high V1H 0.7Voo Voo v Common to lo·l7, Si' 'OS", RESET Input voltage low V1L 0 0.3Voo v Common to 10-1 7, Si', 'OS", RESET Output voltage high VoH Voo-0.5 Voo v BUSY. loH = -100 p.A Output voltage low Vol 0 0.5 v BUSY. loL = 200 p.A Input leakage current lu 3 p.A Common to lo·l7, Si', REF 'OS". OV :s V1N :s Voo Output leakage current ILo 3 µA BUSY. OV :s Vo :s Voo in standby mode Supply current 1001 0.8 2 mA 2.1 v :s v00 :s 5.5 v 1002 1 20 µA 2.7 V :s v00 :s 5.5 V in standby mode 1003 250 600 µA 2.7 v :s V00 :s 3.3 V 1004 1 10 p.A 2.7 V :s v00 :s 3.3 Vin standby mode Reference input high IAEF1 140 250 440 p.A Voo = 2.7V, RAEF= 0 0 current area (1) IAEF2 500 760 1200 µA Voo = 5.5 v, RAEF = 0 0 Reference input low IAEF3 21 30 39 µA Voo = 2.7 v, RAEF = 50 kO current area (1) IAEF4 68 78 88 µA Voo = 5.5 v, RAEF = 50 kO DIA converter output IAvo 32 34 36 IAEF 2. 7 v :S Voo :S 5.5 v. vAVO = 2.0 v, DIA Input = 1FFH current (1) DIA converter output ILA ±5 µA OV s VAVO s Voo in standby mode leakage current Notes: (1) See figure 1. 3-18 NEC l'PD7755/56/P56/57 AC Characteristics TA = -10 to +70 °C; Voo = 2.7 to 5.5 V; fosc = 640 MHz (14PD77P56 TA= -10 to +85°C) Parameter Symbol Min Typ Max Unit Conditions RESET pulse width tRST 18.5 p.S ST set-up time tRS 12.5 p.S ST pulse width tcc1 2 p.S 2.7V s Voo s 5.5V tcc2 350 ns 4.5 V s V00 s 5.5 V Data set time tow1 2 p.s 2.7V s v00 s 5.5 V toW2 350 ns 4.5V s Voo s 5.5V Data hold time two 0 ns 'O"S set-up time tcs 0 ns 'O"S hold time tsc 0 ns CLK frequency fosc 630 640 650 kHz BUSY output time ts so 6.25 10 p.S Operation mode (from ST and/or 'O"S) tsss 4 80 ms Standby mode, including oscillation start time (Note 1) BUSY set time tss 6.25 10 p.S Standby mode Speech output start time tsso 2.1 2.2 ms Operation mode (from BO'S?) tsss 2.1 2.2 ms Standby mode DIA converter set-up time to A 46.5 47 ms Entering/releasing standby mode BUSY float time tsF 15 p.S From end of speech output BUSY output stop time 1RB 9.5 f.'S For RESET J. Standby transition time tsTB 2.9 3 p.S From end of speech output Notes: (1) Ceramic resonators: Kyocera Corp. KBR-640B (C1 = C2 = 150 pF). Murata Mfg. Co. Ltd. CSB640P (C1 = C2 = 220 pF). See figure 2. Figure 1. Measuring Diagram for IREFand IAvo Figure 2. External Oscillator Yoo REF AVO 83-003839A 49-000661A 3-19 p,PD7755/56/P56/57 NEC Timing waveforms AC waveform Measurement Points Operating lfode {ST Input Pulse llode) ~ ~ 49TB-412A Standby lfode BUSY _'seo=i 1FFH--~h' J 0 - r., r AVO 100H- OOOH- 1 Speech Output I 49-000663A Operating lfode {ST Input Hold Low lfode) Resetlfode 10-11 [1] RESET tseo ts so AVO--------< ----- 83-003361A 49TB-432A 3-20 NEC NEC Electronics Inc. µPD7759 ADPCM Speech Synthesizer Description Pin Configurations The µ.PD7759 is a speech synthesis LS I with an external 40-Pin Plastic DIP ROM that utilizes the adaptive differential pulse coded modulation (AD PCM) coding method to produce high- quality, natural speech synthesis. By combining pho- ASD5 Voo ASDs ASD4 neme classification with the AD PCM method, the device ASD7 ASD3 achieves a compressed bit rate that can synthesize lo ASD2 sound effects and melodies in addition to speech sound. 11 AS~ The µ.PD7759 can directly address up to 1M bits of 12 ASDo 13 As external data ROM, or the host CPU can control the ~ A7 speech data transfer. The µ.PD7759 is also suitable for 15 A5 applications requiring small production quantities or ~ As long synthesized messages, and for emulating the 17 A4 µ.PD7755/56/57. AEN/WR A3 SAA A2 DRQ A1 Features ALE Ao REF CS o High-quality speech synthesis using ADPCM AVO X2 method BUSY X1 o Low bit-rates (8 to 32 kb/s) realized by combined RESET ST use of AD PCM and phoneme methods GND MD o 4, 5, 6, or 8 MHz sampling frequency 49TB-490A o D/A converter with 9-bit resolution, unipolar current waveform output 52-Pin Plastic lliniflat Package o Up to 1M bits addressing for external data ROM o Synthesizing time: 50 sec. typ 0 o Standby function (.)@ CIO r-. CO Ul (.) v (') C\I 0 (.) ~ o Circuit to eliminate popcorn noise when entering or Z<<<<