GENERAL INSTRUMENT CP1600/ 1610 MIGROPROGESSOR DATA MANUAL Microelectronics Division General Instrument Corporation GENERAL INSTRUMENT CP 1600/1610 MICROPROCESSOR DATA MANUAL ARCHITECTURE INSTRUCTION SET SYSTEM IMPLEMENTATION ELECTRICAL SPECIFICATIONS SUPPORT TABLE OF CONTENTS— PAGE 2 NOVEMBER 1982 ©Copyright 1982 GENERAL INSTRUMENT CORPORATION The information in this publication, including schematics, is suggestive only. Generai instrument Corporation does not warrant, rights of third parties. » 1. INTRODUCTION Table of 1.1 DESCrIPTION 2... Lecce ee eee ee eee eee ene en eees 5 Contents 1.2 FeEatureS... ccc ce cee e ee eee eee eee eee eee eeee 5 2. ARCHITECTURE 2.1 Basic Functional BIOCKS........... cece cee eee eee eee etna 6 2.2 Pin ASSIGNMENtS....... cece ce ce ee eee een ene nee t 2.3 PIN FUNCTIONS 2.2... ccc ccc cee eee eee eee eee teen eeee 8 2.3.1 Data BUS... ccc eee nee eee een eee eeeees 8 2.3.2 BUS Control... . 0. ccc eee eee eee eee e eee 8 2.3.3 Processor Control... ... cece cc eee ee eee cena 11 2.3.4 Power SupplieS/CIOCKS ....... cc ee cee eee eee 11 2.4 Processor TIMING ....... ccc cece eee eee eee eee eee eee eens 12 2.5 State TIMING ....... cc cee eee ee ee eee eee eee eens 14 2.5.1 Initialization SEQUENCE... ... LL ee ee ee eens 16 2.5.2 Fetch SEQUENCE... ... cece eee eee eee eee teen tenes 16 2.5.3 Address SEQUENCE ...... cece ce eee eee eee tent eeee 16 2.5.4 Execute SEQUENCE ..... ce eee ee eee eee eee 17 2.5.5 Bus Request SEQUENCE ..... eee cee eee eens 17 2.5.6 Interrupt SEQUENCE ... 1... ee cee eee eens 17 2.6 Timing DiagraMsS ........ cece eee eee eee e eens 18 3. INSTRUCTION SET 3.1 General Instruction Format .......... 2 cee cee ee ene eee 31 3.1.1 Instruction Overview ........ cece eee eee eee ees 31 3.1.2 Symbolic Notation .... 2... . ccc cee ee eee eens 32 3.1.3 Operation of Status BitS ...... ce eee ee eee eee 32 3.2 Internal Reference Instructions ......... 0. cece eee ee eee 33 3.2.1 Register to Register ........ cece cee ee eee cee eens 33 3.2.2 Single Register... ..... ccc ee eee eee eens 33 3.2.3 Register Shift 2.0... cc cee eee eens 33 3.2.4 Internal Control 2... 0... cee ee tenes 34 3.2.5 Jump/Jump and Save Return ....... cece eee eee eee eee 34 3.3 External Reference InstructionS.......... cee eee eee eee 35 3.3.1 Data Access INStructiOnS..... 0... ccc cece eee eee eee 35 3.3.2 Conditional Branch InstructiOnS............. 0. eee eens 36 3.3.3 External Reference Addressing Modes..............-0-- 36 3.3.4 Double Byte Data ....... cee cee ee eee ees 37 3.4 Program ExampleS......... cc ccc cece eee een e en eee 38 3.4.1 Loop or Iteration Control ...... 0... cece eee ee eens 38 3.4.2 Table ACCESS 1... ccc ccc eee eee eee tenn een neees 39 3.4.3 Transfer via an Indexed Dispatch Table ................ 40 3.4.4 Evaluate Variables and Transfer.............. ce cece eens 40 3.4.5 Arithmetic Operations .......... cece eee eee eens 40 3.4.6 Stack OperationS .......... cece cee eee eee ees 40 3.4.7 Interrupt ProCeSSINg ........ cee cece ee eee ee eens 41 3.4.8 Subroutines... 2... cece eee eee eee eens 42 3.4.9 BEXT Instruction (Polling) ......... cece ee ee eee eee 44 3.5 Instruction Set (Summary LIStiNg) ........ 2. eee eee eee eee eee 45 3.6 Instruction Set (Detailed Listing) ........... cece eee ee eee eee 46 3.6.1 Register to Register ......... cece eee eee eee 46 3.6.2 Single Register. ........ ccc cee eee eens 47 3.6.3 Register Shift ..... 2... cc eee eee ee eee 47 3.6.4 Control ....... cece eee ee eee oe eee eee ee eee eee 48 3.6.5 JUMP... cece ccc cece ee ee eee eee eee nee neee 48 3.6.6 BrancheS ........ ccc eee eee eee eee nena 49 3.6.7. Direct Addressed Data—Memory ............. cee e eee 50 3.6.8 Immediate Data—Register.......... ccc eee ee eee 51 36.9 Indirect Addressed Data—Register...............0 0 ee 51 3.6.10 Immediate Double Byte Data—Register ............... 52 > 3.6.11 Indirect Addressed Double Byte Data—Register ....... 53 3.6.12 Symbolic Notation........... 0... ccc cece eee eee 53 4. SYSTEM IMPLEMENTATION 4.1 Bus Structure... ... ccc cece cece e eee eeneneaes 54 4.2 CIOCKS 2... ccc ccc cc cece cece cece ee eeeneeeueues 56 4.3 External Sense Logic ........ 0... 0c c ccc cece eee cece en eees 57 4.4 Start/Stop-Halt Functions............ 0... ccc cece eee eee eee ee 58 4.5 Interrupt System.... 0... cece ccc cece eee cece neces 59 4.6 Basic Input/Output PortsS......... 0... ccc cece ce cee cee eeaes 60 4.7 Simple Communication Interface ......... 0... cee eee eee ee 61 9. ELECTRICAL SPECIFICATIONS 9.1 Maximum RatingS.......... 0... cc ccc cece cece eee eee eee eenee 62 9.2 Standard Conditions ........ 0.0... ccc ccc eee cece ence anes 62 9.3 DC Characteristics. ..... 0.0... ccc ccc cece eee eet e ee eens 62 9.4 AC Characteristics ....... 0.0... ccc ccc ccc ccc ec ee een ee ee eee 63 9.5 Capacitance .... ccc cee eee eee teen ee eee teenenes 64 5.6 Timing Diagram References ........... 0.00. cece cee eee ee ees 65 9./ Package OutlineS ........ 0... ccc ccc cee cece eee e cence 68 / Fig. 1 CP1600 Internal Block Diagram ............ 0... cece eee eee 6 List of Fig. 2 CP1600 Pin Assignments .............. 0... cece cee eee eeeae 7 liustrations Fig.3 Bidirectional Bus Timing ...0.........cccceccceecceeeeeeees 12 Fig.4 Pipeline Timing .......... 0... ccc ccc cee eee cece nee eeeeanes 13 Fig. 5 Microinstruction Format .......... 0... cece cece cee eee nees 13 Fig.6 Bus Control Signals .......... 0... ccc cece cc eee cee e een ees 14 Fig. 7 Simplified State Flow Diagram ........... 0... ccc ee eee ees 15 Fig. 8 Initialization Sequence ......... 0... cece cece cee ee aes 19 Fig.9 = Instruction Fetch......... 0.0.0. ccc cece cece nent neeees 20 Fig. 10a Instruction Fetch and Data Access (Direct) ................. 21 Fig. 10b Instruction Fetch and Data Access (Indirect) ............... 22 Fig. 11 Write Sequence .......... 0... cece cee cece e eee eneens 23 Fig. 12a Branch Sequence ........... 0... ccc ccc cee eee eee eeeeeeaes 24 Fig. 12b External Condition Test Sequence ........... 000. cccee cece. 25 Fig. 13 TCl Instruction Timing ......... 0.0... cc cece ce ee eee eens 29 Fig. 14 PCIT Timing ......... 0... ccc ccc ccc cece cece een neeeneaues 26 Fig. 15 Interrupt Sequence.......... 0.0 cece ec ec ete ee neens Qf Fig. 16 BUSRQ/BUSAK Sequence ............ 0c. cee cee cece eeee 28 Fig. 17 BDRDY Timing ............. 00. ccc ccc cee ee cee eee eeaees 29 Fig. 18 Simple System Implementation .......... 0.0... cece ee eee 54 Fig. 19 Advanced System Implementation .................0.0eeaee 55 Fig. 20 Typical Clock Generation Circuit .......... 0... ccc eee 56 Fig. 21 16 Mutually Exclusive Branch Tests ................0cceeeee of Fig. 22 4 Test Conditions with Multiple “AND” Capability........ ... OF Fig. 23 CP1600 Operational Mode Control/Indication............... 58 Fig. 24 Nested Interrupt Structure.......... 0.00. ee cece eee 59 Fig. 25a I/O Port—Example 1.......... 0... ccc cee cece ene neee 60 Fig. 25b I/O Port—Example 2. . . . 0... ccc cee cee cen ee ee anes 60 Fig. 25c I/O Port—Example 3. . . . 0... 0c cc cece cece ene e ne eneas 60 Fig. 26 UAR/T Interface ......... 0... cece cece eee neees 61 Fig. 27 Clock and Bus Timing.......... 0.0... cece cece cee eee ees 65 Fig. 28 Master Sync Timing........... 0. cc eee eee cee e ene enees 65 Fig. 29. Bus Acknowledge Timing ............ 0c. cece eee cee nee eee 66 Fig. 30 Interrupt Timing ....................00. Lecce tence eee eee 66 Fig. 31. External Branch Timing ........... 0... ccc eee e eens 67 Fig. 32 40 Lead Dual In-line Packages ........... 0... e cece eee eee 68 . 1 INTRODUCTION 1.1 The CP1600/CP 1610 are compatible members of the Series 1600 Micro- processor products family. Each is a complete, 16-bit, single chip, high Description speed MOS-LSI Microprocessor. The Series 1600 family is fabricated with General Instrument’s N-Channel lon-Implant GIANT II process, insuring high performance with proven reliability and production his- tory. All members of the Series 1600 family are fully compatible with the CP1600/CP 1610. The Microprocessor has been designed for high speed data process- ing and real time applications. Typical applications include pro- grammable TV games, home computer systems/home information centers, programmable calculator systems, peripheral controllers, process controllers, intelligent terminals and instruments, data acquisition and digital communications processors, numerical con- trol systems and many general purpose mini-computer applications. The Microprocessor can readily support a variety of peripheral equipment such as TTY, CRT display, tape reader/punch, A/D &D/A converter, keyboard, cassette tape, floppy disk, and RS-232C data communication lines. The CP1600/CP 1610 utilize third generation minicomputer architecture with eight general purpose registers to achieve a versatile, sophisticated microcomputer system. The 16-bit word enables fast and efficient pro- cessing of alphanumeric or byte oriented data. The 16-bit address capa- bility permits access to 65,536 words in any combination of program memory, data memory, or peripheral devices. This single address space concept, combined with a powerful instruction set, provides an efficient solution to microcomputer and many minicomputer-based product requirements. 1.2 8 program accessible 16-bit general purpose registers OOOO 86 basic instructions Features 4 addressing modes: direct, immediate, indirect, relative Conditional branching on status word and 16 external conditions Unlimited interrupt nesting and priority resolution OOOOOO0O0 16-bit logic and 2’s complement arithmetic Status word: carry, overflow, sign, zero Direct memory access (DMA) for high speed data transfer 64K memory using single address TTL compatible/simple bus structure CP1600: 600ns cycle time, 3.3 MHz 2-phase clock CP1610: 1us cycle time, 2 MHz 2-phase clock ARCHITECTURE The CP1600 is a general register oriented, central processing unit utilizing eight 16-bit registers. These registers may be used as accumulators or as addressing pointers to locations external to the CPU. R7 and R6 have special characteristics which distinguish them from the other registers. R7 serves as the program counter (PC) and points to the next instruction to be executed. R6 serves as a stack pointer (SP) which points to the next available location in the “last-in, first-out” stack maintained anywhere in main memory. A basic internal block diagram of the CP1600 showing major 2.1 subsystems and data flow is shown in Figure 1. It is noted that all data Basic transfers within the machine are performed on 16-bit words pro- cessed in two 8-bit bytes. Internally, the architectural effect of this Functional byte serial technique is to organize all data paths as 8 bits in width. In communicating with external devices, however, the CPU transfers 16 Blocks bits in parallel. The major logic blocks through which all data flow are the Arithmetic Logic Unit (ALU), Shifter, Register Array, and the Internal 16-bit Bus. Vec Vee GND Q1 << a Q2 f—————_—— MSYNC | f , EBCAO EBCAT INSTRUCTION ARITHMETIC PROCESSOR J EBCA2 OECD DE ROM Oe CONTROL EBCA3 EBCI | HM STPST HALT STATE STATUS . pcit TIMING OSHIFTER ROM s|z}ovic TC BORDY INTR J INTRM BUSRO MAIN DECODE WRITE PORT CONTROL OM EXTERNAL J R1 16 BIT R2 BUS BCI R3 «o —> —~ <—_> BIDIRECTIONAL 00-DI5 sca fe BUS CONTROL R4 8 BUFFERS BDIR R5 x (SP) RE (PC) R7 The ALU is the primary data processing element of the CPU. It accepts two data words each 8 bits wide from the internal 16-bit bus and produces an 8-bit resultant. The ALU passes the resultant to the Shifter which is also 8 bits wide. The Shifter can transfer data to the register array transparently or can skew data one bit position right or left. The Shifter in combination with the ALU can effect changes in the four status bits which monitor CARRY OUT from the most significant bit of the resultant, ARITH- METIC OVERFLOW, SIGN DETECT, and ZERO DETECT. The Register Array is comprised of the eight 16-bit registers with one 8-bit write port and two 8-bit read ports. The write port can direct data to any one of the eight registers and then either to that register’s lower or upper 8-bit byte. The read ports can simultaneously output to the internal bus any two byte combination, be they from the same register, different registers, left or right byte. The Internal 16-bit Bidirectional Bus is the primary link for all information transfers between the CPU and the external world. Communications between the internal bus and the external bus are governed by the bus control signals BC1, BC2 and BDIR. 2 2 The CP1600 is supplied in a 40 lead dual in-line package with the pin , assignments as shown in Fig. 2. Pin Assignments Top View EBCICe1 ~ «ao Port MSYNC 2 39] GND BC1 (3 38 1 BC2 014 37 62 BDIR C5 36) Vop (+12V) D15 C6 351] Vss (—3V) D147 34 Vec (+5V) D13 (4) 8 33[0 BDRDY p12 O19 32[0 STPST D11 (J 10 31[(] BUSRQ D10 (11 30 (0 HALT D9 (12 29{] BUSAK D8 (13 28{7 INTR Do O14 271 INTRM D1 J 15 26(10 TCI D7 (J 16 25 L] EBCAO D6 (J 17 241) EBCA1 D5 (J 18 23] EBCA2 D4 (19 221 EBCA3 D3 20 2110 D2. . 2.3 2.3.1 DATA BUS DO-D15 (input/output/high impedance): pins 6-21 Pin Functions Data 0-15 These 16 signals comprise the 16-bit bidirectional bus used by the CPU to send both data and addresses to the external subsystems and receive data and instructions from the external subsystems, i.e., memory, printers, keyboards, displays, A/D and D/A converters, magnetic tape, cassettes, and other peripherals of various types. All operations on the bus involve 16-bit transfers of either data, address or instruction words. 2.3.2 BUS CONTROL BDIR (output): pin 5 Bus DIRection This signal indicates the direction of the 16-bit bidirectional bus at the CPU. A logic “1” (High) indicates that DO-D15 are ouputting to the bus. A logic “0” (Low) indicates that DO-D15 are either inputting from the bus or are in a high impedance state. BC2, BC1 (output): pins 4, 3 Bus Control 2, 1 These signals in conjunction with BDIR are used to control all external bus operations. In simple systems, they can be used directly as control signals while in more elaborate ones they can be decoded in a single 3 to 8 decoder to provide all eight external bus control functions listed below: cc 5 ¢) O BUS ama a CONTROL FUNCTION 0 O 0 NACT NO ACTION. This signal indicates the CPU is not using the bus. DO-D15 are in the high impedance state. 0 0 1 ADAR ADDRESSED DATA TO ADDRESS REGIS- TER. This signal causes the addressed contents of memory to be gated onto the bus » and strobed into the address register. It is activated during all instructions which speci- fy direct addressing. DO-D15 are in the high impedance state. 0 1 0 IAB INTERRUPT ADDRESS TO BUS. This signal which occurs during the INTERRUPT SE- QUENCE of the CPU, serves to gate the starting address of the interrupt service rou- tine for the acknowledged interrupting de- vice onto the bus. DO-D15 are in an input mode. The CPU will input this starting address into the PC to commence execution of the service routine. IAB also occurs during the power-up initialization sequence to input the starting address of the main program to the PC. Nee e es eee cc 5© 8 6 BUS | © @ CONTROL FUNCTION 011 DTB DATA TO BUS. This signal is used to gate data from memory or any peripheral device onto the bus. Data in this sense can mean instructions, addresses, or data. DO-D15 are In an input mode. 1 O O BAR BUS TO ADDRESS REGISTER. This signal is used to load the contents of the bus into the external address register. DO-D15 are in an Output mode. 1 O 1 DW DATA WRITE. This signal is functionally identical to DWS except that it occurs one machine cycle time prior to DWS. It is used for extended write operation purposes. DO- D15 are in an output mode. 1 1 =O DWS DATAWRITE STROBE. This signal is used as a write enable for memory or any periph- eral device. DO-D15 are in an output mode. 1 1 14 INTAK INTERRUPT ACKNOWLEDGE. This signal denotes CPU acceptance of an interrupt and is used by the interrupting devices to resolve priority. The INTERRUPT SEQUENCE of the internal CPU state timing logic commences with this acknowledgement. Further details of the interrupt service are given in Section 2.5.6. DO-D15 are in an output mode. BUSRQ (input): pin 31 BUS ReQuest This signal is low active and causes the CPU to relinquish all control of the bus to allow other devices to carry out direct bus transfer operations. The CPU grants use of the bus only after the completion of an interruptable instruction (refer to the instruction listings for those instructions which are interruptable and those which are not). The CPU signifies release of the bus by causing BUSAK to go low and the CPU_will remain in this condition until the external device releases BUSRQ. BUSAK (output): pin 29 BUS AcKnowledge This is a low active signal used to inform external devices that the bus has been released by the CPU in response to the BUSRQ signal. BDRDY (input): pin 33 Bus Data ReaDY This signal is used to make the CPU “wait” and resynchronize itself to peripheral subsystems that cannot respond to requests for reads and writes at full CPU speed. This is intended primarily for synchroniza- tion to slow speed memories. The duration of the “wait” period must be less than 40 microseconds to preserve the dynamic state of the CPU. a 2.3 INTR, INTRM (inputs): pins 28, 27 INTerrupt Request Pin Functions INTerrupt Request Maskable These two signals are low active signals that request the CPU to (cont.) honor an interrupt at the completion of any interruptable instruction under the following conditions. a) INTR is always honored by the CPU and hence is the highest priority interrupt request line. b) INTRM is honored by the CPU only if the internal CPU interrupt flip-flop, INTFF, is set. This flip-flop is controlled via the EIS and DIS instructions and several others that have similar capability as described in the instruction set. The CPU will enter the INTERRUPT SEQUENCE if either INTR is active or if INTRM is active and INTFF is set. During this sequence, the CPU will store the PC onto the top of the memory stack and resolve interrupt device priority by enabling INTAK. This is followed by inputting the starting address of the interrupt service routine from the appropriate interrupting device into the PC by enabling IAB. The next instruction is fetched from the location pointed to by the new PC and execution of the service routine begins from that point. PCIT (input/output): pin 40 Program Counter Inhibit/Trap This pin provides two functions. a) As an input, this signal is a low active signal that prevents the incrementation of the program counter (R7) during the fetch phase of all instructions. Care should be used when utilizing this function during multiword instructions. b) As an output, this signal will generate a low active pulse during the execution of the SIN (Software INterrupt) instruction. Properly used, this signal can be returned to the CPU by the interfacing hardware as an interrupt request on either of the INTR or INTRM input pins. The interrupt will be acknowledged at the end of the SIN instruction. These functions will not interact with each other under normal operation. The Timing Diagrams in Section 2.6 will precisely de- scribe the timing of each function. TCI (output): pin 26 Terminate Current Interrupt This high active pulse signal is generated via the TCI instruction to terminate the highest priority interrupt presently in service. . 2.3.3 PROCESSOR CONTROL EBCAO, EBCA1, EBCA2, EBCA3 (outputs): pins 25-22 External Branch Condition Address 0, 1, 2, 3, These lines are the buffered outputs from the 4 least significant bits of the instruction register (bits 0-3) and are used to externally select one of sixteen digital states to be sampled by the CPU during the execution of the BEXT (Branch on EXTernal) instruction. EBCI (input): pin 1 External Branch Condition In This is the return signal of the 1 of 16 selection made by EBCA 0, 1, 2, 3. It is high active such that a logic “1” (High) would test as true and cause the branch to occur as part of the BEXT instruction. A logic “0” would not allow a branch to occur. MSYNC (input): pin 2 Master SYNC This signal is used to synchronize the internal clock generator logic to the main $1, @2 clock phases. Synchronization is achieved by remaining active (low) for at least ten milliseconds after power is applied to the CPU and becoming inactive (high) on any rising edge of a @1 clock. That $1 clock corresponds to an internal TS3. This signal also disables the interrupt system. STPST (input): pin 32 SToP STart This is an edge-triggered signal used to control the running condi- tion of the CPU. If the CPU is presently running, the negative transition of STPST will cause the CPU to stop but only after the completion of an interruptable instruction. The CPU will generate a high active HALT signal acknowledging the stopped mode. The next negative transition of STPST will cause the CPU to return to the run mode. The HALT output will then return to a logic “0” (Low) condition. HALT (output): pin 30 This is a high active signal indicating that the CPU is in the stopped mode. This mode can occur by either the toggle action from the STPST input or by the execution of a HALT instruction by the CPU. 2.3.4 POWER SUPPLIES/CLOCKS Vpp: pin 36 Nominal +12 Volt power supply input to the CPU. Vec: pin 34 Nominal +5 Volt power supply input to the CPU. Ves: pin 35 Nominal —3 Volt power supply input to the CPU. GND: pin 39 Ground reference. @1, G2 (inputs): pins 38, 37 These signals supply the high-level, high-speed, non-overlapping two phase clocks to the CPU. 11 The sequential operation of the CPU is governed by an internal State 2.4 Timing ROM. This network generates next addresses to the Main Processor Decode and Control ROM. Register contents It maps these addresses from the and makes next address decisions Instruction Timing based on conditions in the machine and/or the present microinstruc- tion. The Main Decode and Control ROM generates 21-bit micro- instructions during each processor cycle. These microinstructions are grouped into various Fetch states. Address states, Execute states, Wait states, states which control the Interrupt and Bus Request Sequences, and others. Each micro state time is defined as four internal time slots—TS1, TS2, TS3, TS4—as generated by the Clock Generator from the external non-overlapping clocks. See Figure 3. If the CPU is driven by a 3.3 MHz, two-phase clock system as shown, then the duration of each micro state is 600 nanoseconds. The State Timing ROM operates in parallel with the data processing logic thus keeping the Control ROM synchronous with the data flow operations. Thus, during any internal state time, the Control ROM and the Instruction Register Decode ROM are dictating the data processing functions in the ALU, Shifter, and the Register Array. 1 CYCLE ————— . 1 TS _1. 182 1. 7TS3 _ 4. 1S4 7 _ VITTTTY , 7 ) : BOTR | CHANGING }¥————— VALID-——=\\(=-—— vati0--—=\ \ BC1, 2 WAAAY \ \ | | \ \ | | | | | | | | | | | | | Te ICTR wy vot agiicu (YVAN 00-15 Preys TATE IppiveANAAUN ESTABLISH AN (BUS DIREC. Val 1p = ESTABLISH DRIVE uN BUS DIREC. A yyy yyy — vatiop ; 4 —— EEE o—a= eee TO BUS | output] | | | | | | CPU pt Ld ee ee e 00-15 We VALID — ee VALID -_ | BUS TO CPU (IN PUT) 12 The CP1600 achieves high internal processing speed through the use of microinstruction overlapping and data pipelining (Fig. 4). During each 600 nanosecond cycle, a 21-bit control word is executed while the next address decision is made and the new control word accessed. In addition, the Register/ALU data loop is pipelined so that two sets of byte pairs are being processed during each cycle. Before the result of an ALU operation is complete and returned to the Registers, the next operation on new data has already started. In order to achieve this “data streaming” effect, the microinstruction word of the processor is divided into three major fields (Fig. 5). The first controls the top of the pipe which includes the READ PORTS and front end of the ALU logic. The second controls the bottom of the pipe which includes the lookahead carry network, the final part of the ALU logic and shifter, and the rewrite to the registers. The third field controls the selection of the next control state. 1 2 3 4 1 2 3 4 DECODE SOURCE & DEST. READ ADDRESSES READ REGISTERS START PROCESSING ON PROPAGATE PROPAGATE NEXT SET OF BUS CONTROL SELECT LOGIC DATA BYTES NETWORKS INPUT DATA VALID OR STROBE BUS OUTPUT DATA _ BUFFERS (IF OUTPUT) PROPAGATE PERFORM FINISH CARRY | GENERATE SHIFT GENERATE | GENERATION FINAL DECODE FIRST SUM WRITE PORT PARTIAL SUM ADDRESS& & CONDITIONAL START CARRY REWRITE WRITE REG 1 | 2 | 3 4 1 | 2 | 3 4 | CONTROL VALID | | CONTROL VALID | T | NEXT STATE DECISION | | NEXT STATE DECISION | | MAIN CONTROL ROM ACCESS] J MAIN CONTROL ROM:ACCESS | | TOP OF PIPE BOTTOM OF PIPE NEXT ADDRESS 13 . Although it is not necessary for the user to understand the exact 2.5 sequencing through the internal microcoded states, itis importanto State Timing understand the general state flow and how it relates to the execution of instructions and their interaction with the various interfacing signals like BDRDY, BUSRQ, INTR and others. A basic state flow diagram is shown in Fig. 7. Illustrations of the exact timing during each of these sequences is given in the Timing Diagrams in Section 2.6. There are six major state sequences through which the CPU passes: Initialization, Fetch, Address, Execute, Bus Request, and Interrupt sequences. Each of the sequences consist of one or more micro states (indicated by rectangular blocks). However, the decoded bus control signal in parentheses indicates only the primary bus function to be performed during that functional operation. Recall that each microcode state has its own unique pattern of bus control signals (BDIR, BC2, BC1). For example, in the first fetch state illustrated in Fig. 7, the bus controls signals will be decoding BAR. Inthe next, they decode NACT, and, in the next, they decode DTB. Fig. 6summarizes these decoded functions. BDIR BC2 BC1 Signal Decoded Function Oo ee) oO NACT No ACTion, DO-D15 = high impedance 0 0 1 ADAR Address Data to Address Register, DO-D15 = high impedance 0 1 0 IAB Interrupt Address to Bus, DO-D15 = Input 0 1 1 DTB Data To Bus, DO-D15 = Input 1 0 0 BAR Bus to Address Register 1 0 1 DW Data Write 1 1 0 DWS Data Write Strobe 1 1 1 INTAK INTerrupt AcKnowledge 14 INPUT STARTING (IAB) INITIALIZATION STARTING PC SEQUENCE (IAB) home JIL — OUTPUT CURRENT PC (BAR) BDRDY = 0 WAIT (NACT) FETCH BDRDY = 1 J SEQUENCE BDRDY = 1 BDRDY = 0 INPUT INSTRUCTION INTERNAL (DTB) EXTERNAL REFERENCE REFERENCE INSTRUCTION INSTRUCTION jl W OUTPUT EFFECTIVE ADDRESS (BAR) BDRDY =0 WAIT (NACT) ADDRESS BDRDY = 1 SEQUENCE BDRDY = 1 BDRDY =0 INPUT EXTERNAL DATA (DTB) y —— ¥ Jt — EXECUTE EXECUTE UN- INSTRUCTION SEQUENCE INTERRUPTABLE INTERRUPTABLE INSTRUCTION T INSTRUCTION BUS YES REQUEST OUTPUT BUSAK BUSRQ = 0 (NACT) BUS REQUEST SEQUENCE NO J BUSRQ = 1 BUSRQ=1 BUSRQ =0 NO j| INTR + INTRM @ INTFF = ONQEQUEST YES INTR + INTRM e INTFF = 1 OUTPUT WRITE INTERRUPT CURRENT PC SEQUENCE (DW & DWS) ! INPUT DEVICE PC (IAB) y 15 . 2.5 2.5.1 INITIALIZATION SEQUENCE When power is first applied to the CPU, the MSYNC signal must be at State Timing an active (low) level. This will force the CPU to an inactive state in (cont.) which DO-D15 are in a high impedance state with the bus control signals issuing NACT. All other signals are in their inactive state and the interrupt system is disabled. All eight internal registers and the status bits contain arbitrary, undefined data. When MSYNC goes inactive (high), the bus control signals issue |AB, and the CPU inputs from the bus into the PC the starting address of the main program. Note that the initialization address can be defined by the user at any desired bus address or can be the default address resulting from the logical state of the non-driven bus. 2.5.2 FETCH SEQUENCE The Instruction Fetch sequence will be entered after the initialization of the CPU, or after the execution of the previous instruction and the resolution of pertinent bus and interrupt requests. During the first microstate, the bus control signals issue BAR. During this state, the CPU will output the current contents of the PC onto the bus. BAR will strobe this data from the bus into the address register to fetch the instruction pointed to by the PC. Internally, the CPU increments PC and returns it to R7. Beginning in the next micro state, the CPU will sample the BDRDY input line. If BDRDY is at a logic “1” level, the CPU will proceed to the next state where the fetched instruction will be inputted into the CPU via the signal DTB. If BDRDY is at a logic “0” level, the CPU will enter a WAIT state and remain in this state until BDRDY is brought to a logic “1” level. This WAIT state cannot be of indefinite duration; it must last no longer than 40 microseconds in order to preserve the dynamic characteristics of the CPU during this fetch sequence. The bus control signals will change to NACT throughout the WAIT state. External systems will need to utilize this WAIT state when their access times cannot meet the CPU speed requirements. As long as the CPU is in the WAIT state, it will sample the BDRDY line every microcycle (every 600 nanoseconds if the clock input is 3.3 MHz). Once BDRDY is high, the CPU will issue the DTB bus signal. The - external system presently addressed will gate data (in this instance the fetched instruction word) onto the bus. The instruction will be inputted to the CPU and loaded into its instruction register. 2.5.3 ADDRESS SEQUENCE The Address Sequence will only be entered if the instruction just fetched is of an External Reference type. The distinctions between external and internal reference types will be made clearer in Section 3 “Instruction Set”. Basically, External Reference instructions need to retrieve external data to complete execution of the instruction. For example, those instructions which specify the contents of a register to be the address of an operand are all of external reference type. Internal Reference instructions process operands already held within the registers of the CPU. The Address Sequence is very similar to the Fetch Sequence. The CPU will begin by issuing BAR and outputting some computed effective address on the bus. The particular instruction will determine 16 sa how the effective address is computed. The effective address will be gated into the address register. The CPU will then sample BDRDY exactly as before. Again, if a WAIT state is entered, its duration must be less than 40 microseconds. Once BDRDY has been resolved, the CPU will issue a DTB which will gate the retrieved data onto the bus. The CPU inputs this data which will be used as an operand in executing the instruction. NOTE: This sequence becomes slightly more complex if the instruction specifies direct addressing. The CPU will issue BAR, sample BDRDY, then issue ADAR to readdress memory, sample BDRDY again, and finally issue DTB. 2.5.4 EXECUTE SEQUENCE After the data operands have been obtained, the CPU will execute the instruction. Execution can take as few as two microcode states or aS Many as six for the most complex instructions. Different types of bus control signals are activated according to instruction type. Examples are shown in the folllowing table. Instruction Class # of Micro States Bus Control Signals External Reference Input Group 2 DTB, NACT Move Out 3 DW, DWS, then NACT Double Byte Data 3 BAR, NACT, and then DTB Internal Reference Register-Register 2 NACT Shift 2or4 2 or 4 NACT 2.5.5 BUS REQUEST SEQUENCE If there are no Bus Requests or Interrupt Requests following the execution of the present instruction, the CPU will return to the Fetch Sequence and fetch the next instruction from memory. If some external device has activated the BUSRQ input line (by pulling it low) prior to the completion of the execution of the current interruptable instruction, the CPU will honor the Bus Request by causing the output signal BUSAK to go low. The CPU will enter a WAIT state and remain in this state until BUSRQ is brought toa logic “1” level. This WAIT state can be of indefinite duration. BUSAK will be low for as long as the CPU is in this state and the CPU will not use the bus; the bus control signals will be issuing NACT. All other signals will be in their inactive state. The BUSRQ input signal can be activated asynchronously with respect to the CPU clocks. The CP1600 digitally synchronizes BUSRQ during every TS1 time. 2.5.6 INTERRUPT SEQUENCE The CPU will enter its Interrupt Sequence after all bus requests have been resolved and either of the following conditions have been met: a) The INTR input signal has been activated, i.e., it has been pulled to a logic “0” level in sufficient time for the CPU to recognize the input as a valid interrupt request; or, b) The INTRM input signal has been similarly activated AND the internal interrupt flip-flop, INTFF, is set (enabled). 17 2.0 Once an interrupt request has been accepted by the CPU, the CPU performs the following functions automatically: State Timing 1. The first micro state will issue the bus control signal INTAK. The presence of this signal denotes acceptance by the CPU of the (cont.) interrupt request and can be used by the peripheral devices to resolve interrupt priority. During this state, the CPU will output the current contents of Register 6, the Stack Pointer, to the Address Register in preparation for saving the program counter on the Stack. . The CPU will then output the PC as data to be stored and issue bus signals DW and DWS to write the Program Counter into the location pointed to by the Stack Pointer. Thatis, the CPU will store the PC into the top of the STACK. The Stack Pointer will be incremented after this store operation. Finally, the CPU will issue bus signal IAB which will bring the starting address of the interrupt service routine into the program counter. The CPU will then return to the Fetch Sequence and execution continues in normal fashion from the new PC supplied by the interrupting device. Again, in a manner similar to that of the BUSRQ line, the CPU samples the INTR and INTRM inputs every TS1 time. In addition, the CPU will honor Bus Requests before it will honor Interrupt Requests. The functional operation and relative timing of all CP1600 sequences 2.6 are shown in the following diagrams. These include: Timing Initialization S@QUENCE ..... eee ee eee Fig. 8 Instruction Fetch ........ 0. eee eee eee ee eee Fig. 9 Diagrams Instruction Fetch & Data Access .......... Figs. 10a, 10b Write SEQUENCE ...... cece ec eee eee eens Fig. 11 Branch S€qQuence ........cece ee eee eee teens Fig. 12a External Condition Test Sequence.............. Fig. 12b TCI Instruction TIMING .......... cee eee eee eee Fig. 13 PCIT TIMING ....... cece eee ee eee eee eens Fig. 14 Interrupt SEQUENCE... .. eee eee eee eee Fig. 15 BUSRQ/BUSAK Sequence...........0. eee eees Fig. 16 BDRDY Timing ........... eee ee eee ee eee eee Fig. 17 18 START HERE 1 ot 4 ee ITSTS2ITS3ITS4ITS1ITS2ITS3TS4ITS1ITS2'TS3'TS4iTS1!TS2'TS3!TS4iTS1'TS2!TS3'TS4TS1!TS2! TS3ITS4ITS1!TS2'TS3 oy $2 | BCI = $f f | | BC2 j i | / \ , 61 BDIR it ! [Vy ——{ tus —_——— ! 4 j MSYNC i T BUS CONTROL 4 NACT ZZ, NACT V7 BAR 4 L tL 4 DO-DIS is FLOAT xX xX FLOAT AGED AW ‘ <——_- LEGEND : ‘ D0-D15 BUS INPUT STARTING OUTPUT STARTING \\\\ CHANGING DIRECTION PROGRAM COUNTER PROGRAM COUNTER |-—_> FIRST READ HERE ' ' { ' ' 1 \ 1 | \ ! t \ t l ' ITSUTS2 ITS3ITS4 751 TS2TS3ITS4 TSI 'TS2,TS3'TS4 'TS1 {TS2 S38) wm IVINNNNVNNII BCT / \ T Oc BC2 ows [ \__, BDIR _ | \ we BUSCONTROL , (44 BAR (HA NACT (J dDiB YH NACT | =a f v DO-D15. FLOAT WAX FLOAT. «XXX FLOAT <—> <> OUTPUT INPUT PROGRAM COUNTER FETCHED INSTRUCTION SERENA C GU r S DI P RECTION ITSHHTS2ITS3'TSAITSHITS2ITS3TS4TStITS2ITS3ITSAITS 1'TSATSATS4ITSITS2TSHTSAITSITSATSATSAITSNTS2TSAITSAITSITS2ITS3ITSAITSITSTSHTSATSA} 61 $2 BC1 = [Xe fo fT", Lo BDIR _f \ [\ 4 BUS CONTROL { [7A BAR [7._NACT 7A DIB 17. NACT [7 BAR [7A NACT 7-1 ADAR LZ _NACT 17. DIB ZA p0-D15 FLOAT\W\\X XX _Fioat XX FLOAT = \\\\X KV FLOAT =X (KSLA XX eta 3 <_—— <_ <__— <_ <> OUTPUT INPUT OUTPUT DRIVEN BY INPUT PROGRAM COUNTER FETCHED INSTRUCTION EFFECTIVE ADDRESS EXTERNAL MEMORY FETCHED OPERAND LEGEND: \' D0-D15 BUS A CHANGING DIRECTION ' 1 { ' t ‘ \ ' 1 { TSHTS2ITSSITSAITSTITS2ITS3ITSAITSIITS2ITS3'TSATS1ITS2ITS3ITSAITSIITS2ITS3ITS4'TSHTS2TS3'TS4'TSHTS2ITS3TS4TS 1782 ' a “= lS TT, CG s —p Gr fT BDIR __/ \ [ \ L BUS CONTROL rt “PZ BAR YZ NACT 7. IBC BAR 7_NACT V7], DO-D15 ’FLOAT\\ AX FLOAT XOX FLOAT = (AKA SFLOAT. «(XX FLOAT J c——_> <> <—_—_> <> OUTPUT INPUT OUTPUT INPUT PROGRAM COUNTER FETCHED INSTRUCTION : EFFECTIVE ADDRESS FETCHED OPERAND LEGEND: AY CHANGING DIRECTION ITSIITS2ITS3!T SATS ITSAITS3ITS4ITSHTS2ITS3'TSAITS 1TS2TS3ITS4'TStTS2TS3'TS4'TS ITS2TSITSAITS 1TS2ITS3ITS4ITS HTS2TS3ITSAITS WTS2TSGITSA t ' ' t 1 ' 61 “- 4 BC2 fo N fo oe on 7 fr" L, od BUS control ' V7 BAR (7H NACI. (DIB WY NACT YY BAR YY NACT WHA OW Yiows | NACT_ ( DO-DIS FLOAT OX FLOAT XK FLOAT «=—Eo§ WAX X\_FLOAT. AA yFLoar <—> <> <—> < > OUTPUT INPUT OUTPUT OUTPUT DATA PROGRAM COUNTER FETCHED INSTRUCTION EFFECTIVE ADDRESS LEGEND: \’ DO0-D15 BUS A CHANGING DIRECTION | | | | | | {TS1)782)TS3)TS4 {TS1) TS2,TS3)TS4)TS1 TS2)TS3!784 81) 182 783) TS4)TS1 82 1783) TS4)TS1) 182 '783)T34 81) 182 783} T$4)TS1, 182 1783) 14l81 782 1783) 134/15: TS2 183) TS4 181) 12) TS3 BC1 / \ / \ m 2 BC2 C - / \ / \ - BDIR / \ / \ / \ STATE TIMING IF sh | )f CONDITION ConTno, LEAL BAR_ V4 _NACT MJ oTB wy NACT YY Bar MA nact WH orn BY nact WF Nnact Ws Bank WA N-cTS| IS TRUE. ¢ ON L ) C \ ~ ~N ~ . <_—_—_P <-> —_—_—_P <<>> ——— P OUTPUT INPUT BRANCH OUTPUT PC+1 INPUT OUTPUT MODIFIED PROGRAM COUNTER — INSTRUCTION TO FETCH DISPLACEMENT PROGRAM COUNTER (PC) DISPLACEMENT VC BC1 / \ ) ( Ok BC2 ) | \ C ) Of BDIR / \ / \ | \ = STATE TIMING IF CONDITION BUS bp 7 —1{ IS FALSE CONTROL ZA BAR By NAcCT YY ois YW nact WJ sank (YJ Nactr VA NACT (J BAR A _) NS - —) 00-15) WX K XX WK __ XK SK XK ‘ 7 —_—__» +> <~<——_» a ‘ OUTPUT INPUT BRANCH OUTPUT PC+1 OUTPUT PC+2 PROGRAM COUNTER — INSTRUCTION TO FETCH TO FETCH (PC) DISPLACEMENT NEXT INSTRUCTION LEGEND: XN CHANGING DIRECTIO N ITSAITS2ITS3ITSAITSHTS2!TS3:TS4ITS1ITS2ITS3ITSATS1!TS2ITS3ITS4'TS1ITSATS3ITSAITSHTS2TS3! 1 ! ' ' ! t ! ! ! ! i t 1 NANNANANANPADNSPS 21NANNANANANNPSL, BC1 / \ sce [—"*". | BDIR / \ / ~\ ~— toe ‘a Go HS) XXXXXXK _ UNDEFINED XXXKXX WKY i { STABLE AS LONG AS ADDRESS IS STABLE —f J | — “Al —~| | _ EBC] — DON'T CARE =f XS DON'T CARE —=— tS 7 VALID INPUT THROUGHOUT TSI BUS CONTROL [7 BAR [74 NACT [7 DIB. ~7 NACI [74 BAR PA D0-D15 FLOAT WX XN Fuoat XX FLOAT WK NS <—_— <> <— > LEGEND: \\\\Y DO-D15 BUS OUTPUT INPUT OUTPUT PC+1 TO \ CHANGING DIRECTION PROGRAM COUNTER BEXT INSTRUCTION FETCH DISPLACEMENT Fig. 12b EXTE h on external instruction) 7 ITSAITS2ITSHITSAITSHITSZITSBITSAITS 1ITS2ITS3ITS4ITS1'TS2ITS3ITS4ITS1ITS2ITS3ITS4ITSHTS2TS3'TS4ITStTS2ITS3ITS4'TS HTS2: 1 t ' t ! | § ! t { I ' ' ! ! ! ( j © ADNAN ANAANAANNANMNNLG 92 BCI — / \ 7, 9¢ BC2 — / \ — BDIR_/ \ / — a on oS tw— try TCl eT F£ Ss BUS CONTROL 174. BAR PZ _NACT [7] DIB. 7A NACT VY BAR YA NACT 4 DIB) YY D0-D15 FLOAT WK FLOAT. = XX FLOAT =» \\X Xs FLOAT. = «XX FLOAT <> <> <> OUTPUT INPUT OUTPUT INCREMENTED INPUT PROGRAM COUNTER TCl INSTRUCTION PROGRAM COUNTER NEXT INSTRUCTION TESENS NY chawaine Dinecrion ! 1 ot ! t ! ! ! | | 1 | | \ 1 I 1 ot | ' { | | ! { ! 1 11S1 152! TS3ITS4! TS1 FTSZITSSITS4ITS1 HTS2tTS3 ITSAUTST PS2iTS3! TS4 1S! 182, TSS TSAITS1 S273 184! TS1 TS2'TS3 ts4 TS1 TS2'TS3 TS4 | TS1 TS ' 1 1 g1 $2 BC1 / \ BC2 / \ A BDIR _/ (\ 2 PCIT ° f Le (INPUT) \ (OUTPUT) > 7 kF cee eee eee ee + Ns ee ed EXTERNAL WORLD PULLS PCIT TO LOGIC “0” OUTPUT PULSE TO PREVENT INCREMENTATION OF PROGRAM COUNTER FROM CPU AS A DURING INSTRUCTION FETCH. IT IS RECOMMENDED RESULT OF SIN THAT PCIT BE PULLED DOWN ONLY WHEN THE CPU INSTRUCTION. IS IN THE STOPPED CONDITION. RETURNING TO INCREMENTATION OF PC ALSO WILL BE DONE WHEN THE CPU IS IN THE STOP CONDITION. BUSCONTROL._ J BAR [%4 NACT WY dB YA NACT UA BAR WY fF D0-D15 FLOAT WYK DN FLOAT xX. FLOAT WX X\ a <— > <> <— > OUTPUT INPUT OUTPUT PROGRAM COUNTER FETCHED INSTRUCTION PROGRAM COUNTER ‘ DO0- S ae \Y\’\ CHANGING DIRECTION Fig. 14 PCIT TIMING ITS UTSAITSITSAI TSHITSAITSITS4 ITSHITSATS3! Tsai TSIITSCITSaTSA! St} TS2ITSaITSAITSH TSa TSITSAITSTTS2ITS3! TS4i TSHTS2ITSGITSAITS1 TS2ITSBHTSAITS1! TS2ITSGTS4TS ' ' ' { { t 1 1 | B1 $2 BCTJ \f \ 8d BC2 / \ [Vf NN BDIR | \ | BUS CONTROL WZ INTAK PAA nactT A DW VA ows WH NACI [YA Li Z| NACT VZA__BAR 4 p0-015 , FLOAT WX XN FLOAT MK X\ FLOAT =X OX FLOAT WX —_—> > —p <_ << OUTPUT WRITE CURRENT INPUT STARTING ADDRESS OUTPUT STACK POINTER PROGRAM COUNTER OF SERVICE ROUTINE INTO PROGRAM COUNTER ONTO MEMORY STACK PROGRAM COUNTER TO FETCH FIRST INSTRUCTION OF SERVICE ROUTINE LEGEND: \\\\ CHANGING DIRECTION ITS1!TS2!TS3'TS4ITS1!TS2ITS3'TSAITS1!TS2!TS3!TS4ITS1} pot ft 4 fr o¢ ft 4 ' TSI ITSIITS2TS3ITS4' | { ! { aMAMAN NANANNNNNNS 2 NVNYVNANS NINN NNANSIS, BCI -—------.- -— 4 jf = i ----7 \ fFo------ —— —f- —| ff. J/—-—-—-—-—- —__-y END OF CURRENT — pe INTERRUPTABLE 8 BC2 a a INSTRUCTION a 7 a ——SfR -' if }— ————- _—_y sim’ 7 Tes iN —----- —-4pR -' if J--—---tL—4 ; CPU SAMPLES BUSRO / 6c BUSRO rrr [DURING TSI fm J AAAS ff —f}— Liii,/ 4 tau ml tay —— BUSAK f if}— | / SL. IF BUS CONTROL {7 a[TT ~ NAT ™~—S—CSC“‘“C;(S;SCSC*CS™S 4 pp —ti‘<‘< *dLt*é‘C;té~™S = FLOAT > AX xX ee Sf — _ <— BUSROQ CHANGES OUTPUT ASYNCHRONOUSLY PROGRAM COUNTER W/R TO CPU TO RECOMMENCE MAIN PROGRAM PEBEND! AY CHANGING DIRECTION i7 BUS DATA READY (BDRDY) TIMING rot ge! t foots Fn ne GO 'TSHTS2:TS3ITS4i TSH TS2ITS3ITSAITSTITSZTS3ITSAITSI TS2ITSBITSAITS TSUTSATS3TS4TSUTSATSSTSATSUTS2 TS3T SA TSHTS2ITS3ITSAITSTSATS3TSA TS1 ' \ ! I 1 ( I i ' oe -VINANIINSN SVIVS PVTNANNANNSSS \ANANNANNINDS BC1 | \ t BC2 i —_ Ly J Lf O€ BDIR / \ / \ ~ & 3 }-— \ CPU SAMPLES BDRDY FOR DELAY \ of BDRDY NACT VA DB YH V44 BAR WA NACT YA. orB OY BUS CONTROL [74 BAR WY . : 005 f- WK x xX WX AN XX <> <-> _ <—~ OUTPUT INPUT OUTPUT INPUT ADDRESS INSTRUCTION OR ADDRESS INSTRUCTION OR DATA OPERAND DATA OPERAND LEGEND - \ D0-D15 BUS WN CHANGING DIRECTION . 3 INSTRUCTION SET 3.1 The basic instruction word format for the CP1600 microprocessor consists of 10 bits located in the low order bit positions of a 16-bit General processor word. The high order 6 bits of every 16-bit word supplied to the CP1600 as an instruction word are ignored by the internal Instruction microcontrol logic. This results in a compact, highly efficient 10-bit instruction word that can be implemented directly in a single 10-bit Format wide ROM instead of dual 8-bit wide ROMs for those systems requiring the ultimate in ROM bit efficiency. The 8 internal working registers, all data operands, displacement constants, and arithmetic and logical operations are implemented to full 16-bit significance providing the performance, flexibility, and efficiency of 16-bit opera- tion. The 10-bit instruction word is divided into 3 functional fields to which most instructions conform. 15 - - - - 10],978 7 615 4 872 1 =O Don’t Care* OP Code F1 F2 “This field is not implemented by the microcontrol logic in the CP1600. The most significant 4 bits of the CP1600 instruction word is the Operational Field which provides 16 basic operations. The 16 operations are evenly divided into 2 groups of 8 operations each: the External Reference group and the Internal Reference group. 3.1.1 INSTRUCTION OVERVIEW All Series 1600 symbolic instructions are expressed as statements containing an operator (OP Code) and in most cases one or two operands (Source/Address Mode and Destination). In general, the first three characters of an operator mnemonic represent the oper- ing mode, such as ADD@ for ADD indirect. The following description of instructions depicts both the symbolic format and also the binary translation. The timing, status register change, and instruction description is also shown. 31 . 3.1 3.1.2 SYMBOLIC NOTATION General Address Modes: R ‘blank’ - register - direct address Instruction 7 - immediate data indirect address Format Functions: + Q - addition (cont.) - subtraction - inclusive OR A TOS tsi - exclusive OR - AND contents of - is replaced by optional operand Status: - Sign bit ONO - Zero bit - Carry bit - OVerflow bit OWN< Operands: 0NO 1 Source Register own - Destination Register MMM_~ - Register Address Mode RR - Register (0-3) n - Number of Shifts S - Sign of Address Displacement EEEE ~- External Condition Code (0-15) DA - Destination Address SA - Source Address I-I - Immediate data word P-P - Address displacement for Branch 3.1.3 OPERATION OF STATUS BITS During arithmetic and logical operations in the CPU, the ALU Status Bits are used to monitor and record four characteristics of the resultant data. These bits are Carry (C) out of the ALU, arithmetic OVerflow (OV) from the ALU, Zero (Z) result from the output of the Shifter, and Sign (S) detect from the output of the Shifter. These bits operate in the following manner: C - set if the result of an ADD, SUB, or CMP instruction producesa carry; cleared otherwise (SUB and CMP are performed by addition of two’s complement of the subtrahend operand). OV - set if the result of an ADD, SUB, or CMP instruction produces arithmetic overflow (two’s complement notation); cleared otherwise (SUB and CMP are performed by addition of two’s complement of the subtrahend operand). Logically defined as the exclusive OR of the carry out of the two most significant bits of the arithmetic operation. set if the result of an operation produces an all zero result; cleared otherwise. , set if the result of an operation contains a “one” in the high order bit position (bit 15); cleared otherwise. Any value with bit 15 of a register set will be considered negative in arithmetic operations. 32 3.2 The Internal Reference instructions, which have a zero in the high order bit position of the Operation Field, process data already held Internal within the 8 working registers of the CP1600. These instructions are grouped into register to register, single register, register shift, Reference internal control, and jump instructions. The basic formats are Instructions depicted in the following paragraphs. 3.2.1 REGISTER TO REGISTER 15 - - - - 10/9/8 7 675 4 3]/2 1 =O Don’t Care O| OPCode |S S S|]|D D OD OP CODE OPERATION 000 (See 3.2.2, Single Register Operations) 001 (See 3.2.3, Register Shift Operations) 010 MOVe Register (MOVR) O11 ADD Register (ADDR) 100 SUBtract Register (SUBR) 101 CoMPare Register (CMPR) 110 logical AND Register (ANDR) 111 eXclusive OR Register (XORR) 3.2.2 SINGLE REGISTER 15 - - - - 101/918 7 6/5 4 3]/2 1 O Don’t Care 01/0 0 0] OPCode |D D OD OP CODE OPERATION 000 (See 3.2.4, Internal Control Operations) 001 INCrement Register (INCR) 010 DECrement Register (DECR) 011 COMplement Register (COMR) 100 NEGate (2’s complement) Register (NEGR) 101 ADd Carry bit Register (ADCR) 110 * Get Status WorD register (GSWD) 111 Restore Status WorD register (RSWD) *The GSWD instruction can use only RO, R1, R2, or R3 as register specifications for true Get Status Word operation. Use of R4 or R5 results in a NOP instruction. Use of R6 or R7 results in a NOP internal to the CP1600 and causes a pulse to be outputted on the PCIT pin. This can be used to cause an interrupt to form a Software Interrupt (SIN) or Trap instruction. 3.2.3 REGISTER SHIFT 15 - - - - 107/918 7 6/5 4 372 1 @O Don’t Care O7;0 O 1] OPCode |N D OD OP CODE OPERATION 000 SWAP 8-bit bytes (SWAP) 001 Shift Logical Left (SLL) 010 Rotate Left thru Carry (RLC) 011 Shift Logical Left thru Carry (SLLC) 100 Shift Logical Right (SLR) 101 Shift Arithmetic Right (SAR) 110 Rotate Right thru Carry (RRC) 111 Shift Arithmetic Right thru Carry (SARC) N=0O: 1 position shift N=1: 2 position shift NOTE: Shifts can only be performed on Registers RO-R3. 33 3.2 3.2.4 INTERNAL CONTROL 15 - - - - 103/918 7 6/5 4 3]2 1 O Internal Don’t Care 0O;/0 0 Of0 OO | OP Code Reference OP CODE OPERATION Instructions 000 001 *HaLT Set Double Byte Data (HLT) (SDBD) (cont.) 010 Enable Interrupt System (EIS) 011 Disable Interrupt System (DIS) 100 (See 3.2.5, Jump/Jump and Save Return Operations) 101 Terminate Current Interrupt (TCI) 110 CLeaR Carry Bit (CLRC) 111 SET Carry Bit (SETC) * Halt after next interruptable instruction is executed. 3.2.5 JUMP/JUMP AND SAVE RETURN 15 - - - - 10/918 7 615 4 3]2 1 =O PC Don’t Care 07;0 0 0;0 0 0;1 0 OQ PC+1 Don’t Care B BIA A A A A AID E PC+2 Don’t Care A AA AA A A A AA PC+3 OPERATION BB DE _ 00 — (J) 11. Jump < 01 Enable interrupt (JE) 10 Disable interrupt (JD) 00 — (JSR) #11 Jump and 01 Enable interrupt (JSRE) Save Return 10 Disable interrupt (JSRD) The instructions in the jump group occupy three consecutive | memory locations and are used to perform direct jumps and subroutine calls. In addition the interrupt system can be either enabled or disabled by bits 0-1 of the second word of the instruction. On direct jumps the return address is not saved. The destination address is formed by using bits 2-7 of the second word as bits 10-15 of the jump address and using bits 0-9 of the third word as bits 0-9 of the jump address. On subroutine jumps, the return address (PC+3) is saved in register 4,5, or 6. This register designation is formed by using bits 8-9 of the second word (field BB) and adding 4. Note if BB=3, the designated register becomes 7 (the PC) which is the jump instruction. By using one of the Jump and Save instructions, the linkage to a subroutine is accomplished with the return address saved in register 1BB. Thisisa very efficient means of obtaining subroutine linkage (see 3.4.8 for examples). 34 3.3 The External Reference instructions, which have a one in the high order bit position of the Operation Field, route data into or out of the External CP1600 to externally located bus addresses. Since a single address bus structure is utilized in the CP1600 architecture, both memory and Reference peripheral devices reside in the same Address Space. Only the Instructions system address allocation, as defined memory from I/O devices; therefore, no special input/output instruc- by the user, differentiates tions are required and any External Reference instruction can access memory or peripheral devices. The CP1600 utilizes a full 16-bit addressing structure which provides access to 65,536 unique locations. 3.3.1 DATA ACCESS INSTRUCTIONS The format for 7 of the 8 External Reference instructions is shown below. 15 - - - - 107;9]8 7 64,5 4 372 #1 #0 Don’t Care 1 OP Code Mode D D OD OP CODE OPERATION MODE 001 MoVe Out (MVO) 000 —_ Direct address in next 010 MoVe In (MVI) memory location 011 ADD (ADD) 001 — Indirect address thru R1 100 SUBtract (SUB) 010 — Indirect address thru R2 101 CoMPare (CMP) O11 — Indirect address thru R3 110 logical AND (AND) 100 — Indirect address thru R4, 111. eXclusive OR (XOR) R4+1—R4 101 — Indirect address thru R85, R5+1—-R5 110 — _~ Stack thru R6; Post Increment if Output; Pre- Decrement if Input 111 — Immediate data in next memory location Any of the 7 operations can be used with any of the 8 modes. These instructions use the lower 3 bits of the word as the register designator. This register is the source of data for output operations and the destination for data on input operations. The Mode Field of the instruction specifies the addressing mode to be used to access the Address Space. Mode 0 indicates that the contents of the next memory location is to be used directly as an external address. Modes 1, 2 and 3 indicate that registers 1, 2 and 3 respectively contain the external address. Modes 4and 5 indicate indirect addressing through registers 4 and 5 with the contents of the register automatically incremented after use as the address; i.e., post increment. Mode 6 indicates stack operations, i.e., indirect through register 6 with the contents of the register post incremented for output operations (push) and pre-decremented for input operations (pull). The Stack is maintained by register 6 and expands upward in external memory from low address to high address. Mode 7 indicates that the next memory location holds data to be used directly; i.e., immediate data. 35 . 3.3.2 CONDITIONAL BRANCH INSTRUCTIONS 3.3 The eighth instruction in the External Reference group is the External Conditional Branch type which has the format: Reference 15 - - - - 10{9]8 7 6/5 4 3/2 1 0 Instructions PC PC+1]P P Don’t Care P P PP 1,0 PPP O Oj} PP + | 1/E| Condition Code PRP PR ~?P PRP ?P (cont.) This instruction tests any one of 32 conditions and causes a branch in the program if the test has a true result. The 32 conditions are evenly divided into 2 groups of 16 each. The Internal Condition Codes (Bit 4=0) comprise various tests on the state of the status register bits of the ALU while the External Condition Codes (Bit 4=1) comprise 16 tests on external digital status signals of the user’s choice. In case of a false result, the program continues to the next sequential instruction. When the appropriate conditions are true, the instruction transfers program control to the specified destination. The actual destination address is determined by adding or subtracting the address displacement contained in the second word of the instruc- tion (P-P) to the program counter. If the destination direction bit of the instruction (+) is zero, then the displacement is added to PC+2. If it is one, then the displacement is one’s complemented and then added to PC+2. 3.3.3 EXTERNAL REFERENCE ADDRESSING MODES All of the instructions in the external reference group require that data be accessed from the external Address Space of the processor. The detailed sequence for each of the various addressing modes follows. The effective address (EA) is used to access the first operand. The second operand is always contained in an internal CPU register with the result of the operation replaced in this same register. Note that the program counter (R7) is incremented before the Operation Code is performed; thus, if the destination register (DDD) specified by the instruction is R7, the incremented program counter is modified creating the effect of a branch in the program sequence. Direct Address (Mode=000) PC Don't Care | 1{ OPCode}]0 0 O|D D.D PC+1 [A A A AA AAA AAAAAAAA PC—PC+2 EA~AAAAAAAAAAAAAAAA Immediate Data (Mode=111) PC Don't Care | 1] OPCode}1 1 1{/D D D pc+i1 |I I I I I IT I I 212 %¢«21%232i%i1idi=+41 PC—PC+2 EA-—PC+1 36 Indirect Address (Mode=001 to 110) PC | Don't Care | 1] OPCode|M M MID D D MMM=001, 010, 011 MMM=100, 101 PC—PC+1 EA—(MMM) EA—(MMM) (MMM)—(MMM)-+1 MMM=110 for MVO only MMM=110 for non-MVO PC—PC+1 PC—PC+1 EA—(MMM) (MMM)—(MMM)-1 (MMM)—(MMM)-+1 EA—(MMM) 3.3.4 DOUBLE BYTE DATA In order to utilize an efficient 10-bit instruction ROM and also reference 16-bit data from the same memory area, a Double Byte Data feature is available on the CP1600. When a Set Double Byte Data (SDBD) instruction precedes an external reference instruction other than MVO, two words of memory are accessed. The least significant data byte is obtained from the low order eight bits of the first word and the most significant data byte is obtained from the low order eight bits of the second word. These bytes are then combined by the processor to form a 16-bit data word. Double byte data may be accessed via indirect addressing modes 4, 5and 7. If modes 1, 2and3 are used only one word is accessed with both bytes of data obtained from the lower eight bits of the same word. Modes 0 and 6 are not supported in the double byte data operation. Immediate Double Byte Data PC-1 Don’t Care 010 0 01/0 0 O]0 o 1 {* PC Don’t Care 1 OP Code | 1 1 1]D O PC+1 Don’t Care L LE LE LC LIL LoL PC+2 Don’t Care U U U U UJU UU PC—PC+3 * SDBD instruction EAL—(PC+1) EAu--(PC+2) NOTE: The assembler will automatically generate the SDBD instruction preceding the external reference instruction when the constant specified by the assembly language statement exceeds the mem- ory word size specified. If the user specifies the SDBD, then the data word will always be generated to fill two bytes. Indirect Addressed Double Byte Data PC—1 Don't Care 070 0 O/|0 0 0]0 0 14% PC Don't Care 1 | OPCode |M M M{D OD _ OD PC—PC+1 * SDBD instruction If MMM=1, 2, 3 If MMM=4, 5 EAL—(MMM) EAL—(MMM) EAu—(MMM) (MMM)—(MMM)-+1 EAy-(MMM) (MMM)—(MMM)-+1 37 . 3 4 The following examples demonstrate common program coding " techniques for use on the CP1600. These include loop control, array Program addressing, table look-up, use of the stack, reentrant interrupt E | service, subroutine calls, and other miscellaneous ideas. All are in- Xamp ES tended to be useful examples but in many cases are designed to show the use of particular instructions as opposed to minimizing code or optimizing speed of execution. 3.4.1 LOOP OR ITERATION CONTROL Counting down using a general register: MVII n, R3 ‘ set loop count LOOP DECR R3 ‘ decrement count BNZE LOOP ‘if not zero, continue loop ‘ loop complete Counting up using a general register: CLRR- R2 - zero count LOOP INCR R2 ‘ increment count CMPI nn, R2 ‘ compare to limit BNEQ LOOP - if not equal, continue loop ‘ loop complete Counting down using a storage cell: MVII n, RO ‘ set loop count LOOP MVO RO, CNTR ‘ store count MVI CNTR, RO _ : fetch count DECR RO - decrement count BNZE LOOP - if not zero, continue loop ; loop complete 38 Loop control by address limiter: MVII ADDR, R85 __ ; Set starting address LOOP ADD@_ R85, RO ; fetch data, increment pointer CMPI ADDR-+n, R5 ; compare for final address BNEQ LOOP ; if not equal, continue loop ; loop complete 3.4.2 TABLE ACCESS Sequential ascending access: MVII n, R3 ; set count MVII TBL, R4 ; set table base address LOOP MVI@_ R4, RO ; fetch table item & increment address DECR R28 ; decrement count BNZE LOOP ; continue until all items accessed ; complete Sequential descending access: MVII n, R3 ; set count MVII TBL+n, R2- ; set table end address LOOP MVI@_ R2, RO ; fetch table item DECR R2 ; decrement table address DECR RB ; decrement count BNZE LOOP ; continue until all items accessed ; complete | Random access; ie, TBL (I): MVI +I, RI - fetch index ADDI TBL-1, R1 ; compute table pointer MVI@ R11, RO : fetch table item 39 3 4 3.4.3 TRANSFER VIA AN INDEXED DISPATCH TABLE (1s One or two position ~ @ | SLR Shift Logical Right 6 O° = shift capability. Two position = > | SAR Shift Arithmetic Right 6 2 o SWAP not supported. Ss a |} RRC Rotate Right thru Carry 6 oa o SARC Shift Arithmetic Right thru Carry 6 < ) 2 HLT HaLT 4 @ | SDBD Set Double Byte Data 4 Must precede external reference ° 2 EIS Enable Interrupt System 4 to double byte data © 8] Os Disable Interrupt System 4 3 = ]TCl Terminate Current Interrupt 4 Not interruptable £ } CLRC CLeaR Carry to zero 4 SETC SET Carry to one 4 ald Jump 12 5 | JE Jump, Enable, interrupt 12 eS JD Jump, Disable interrupt 12 32] JSR Jump, Save Return 12 ° 2 JSRE Jump, Save Return & Enable 12 eee 6 ™ 1 JSRD Jump, Save Return & Disable interrupt 12 B unconditional Branch g* x NOPP No OPeration 7* = Two words wn BC (BLGE) Branch on Carry 7 & C=1 © | BNC (BLLT) Branch on No Carry 7 ® C=0 8 BOV Branch on OVerflow 7 © Ov=1 -< = | BNOV Branch on No OVerflow 7 = OV=0 5 2 w £ | BPL Branch on PLus 7 S=0 ee ® 5 | § | 8M Branch on Minus 7 8 S=1 cs - | § | BZE (BEQ) Branch on ZEro or EQual 7 s Z=1 eo S oO BNZE (BNEQ) | Branch if Not ZEro or Not EQual 7 5 Z=0 eo = | 3 | BLT Branch if Less Than 7 2 SVOV=1 oF o | 6 | BGE Branch if Greater than or Equal 7 ® S¥OV=0 at =} = | Ble Branch if Less than or Equal 7 = ZV(S¥OV)=1 26 O S | BGT _ | Branch if Greater Than 7 2 ZV(SV¥OV)=0 o Zz O | BUSC Branch if Sign#Carry 7 > CVvS=1 Tz BESC Branch if Sign=Carry 7 nu Cv¥S=0 Lu BEXT Branch if External condition is True 7 5 4 LSB of instruction are decoded o < select 1 of 16 external conditions. z Dir. | Imm. | Indir. | Stack é O MVO MoVe Out 11 9 9 9 Not interruptable E Ss «OY PSHR PUSH Register to stack — — — 9 PSHR=MVO@RE. Not interruptable WW MVI MoVe In 10 8 8 11 PULR PULI from stack to Register — _ — 11 PULR=MVI@RE6. eo | ADD ADD 10 8 8 11 @ -g,| SUB SUBtract 10 8 8 11 Eo} cmp CoMPare 10 8 8 11 | Result not saved = o | AND logical AND 10 8 8 11 <=} xor eXclusive OR 10 8 8 11 1 MICROCYCLE=2 CLOCK CYCLES 45 19S UO1}DNASUy a GJ a 6 CD QO = = oe 2) i mm £2. = ©) 3.6.1 REGISTER TO REGISTER Mnemonic Operand | Cycles Instruction Description Status Change MOVR SSS, DDD 6/7* | X XXX XxXO0 010 SSS DDD |MOVe contents of Register SSS to register DDD. S,Z TSTR SSS 6/7* * 0 010 SSS_ SSS |TeST contents of Register SSS. S,Z JR SSS 7 0 010 SSS 111 |Jump to address in Register SSS (move address to Register 7). | S, Z OP S, Z, C, OV ADDR SSS, DDD 6 O O11 SSS DDD |ADD contents of Register SSS to contents of register DDD. Results to DDD. SUBR SSS, DDD 6 0 100 SSS _ DDD |SUBtract contents of Register SSS from contents of register S, Z, C, OV DDD. Results to DDD. CMPR SSS, DDD 6 O 101 SSS DDD | CoMPare Register SSS with register DDD by subtraction. S, Z, C, OV Results not stored. ANDR SSS, DDD 6 0 110 SSS _ DDD |logical AND contents of Register SSS with contents of register | S, Z DDD. Results to DDD. XORR SSS, DDD 6 O 111 SSS DDD |eXclusive OR contents of Register SSS with contents of S,Z register DDD. Results to DDD. CLRR DDD 6 O 111 DDD DDD |CLeaR Register to zero. S,Z *7 Cycles if DDD=6 or 7. **7 Cycles if SSS=6 or 7. 3.6.2 SINGLE REGISTER Mnemonic Operand Cycles Instruction Description Status Change INCR DDD 6 X XXX XXO0 O00 001 DDD | INCrement contents of Register DDD. Results to DDD. S,Z DECR DDD 6 0 000 010 £#DDD | DECrement contents of Register DDD. Results to DDD. S,Z COMR DDD 6 O O00 011 DDD | one’s COMplement contents of Register DDD. Results to DDD. | S, Z NEGR DDD 6 O 000 100 - £4DDD| two’s complement contents of Register DDD. Results to DDD. S, Z,C, OV ADCR DDD 6 O O00 101 DDD | ADd Carry bit to contents of Register DDD. Results to DDD. S, Z,C, OV GSWD DD 6 0 000 110 ODD |} Get Status WorD in register DD. Bits 0-3, 8-11 set to 0. Bits 4, 12=C;5, 13=OV:6, 14=Z;7, 15=S. NOP 6 O O00 110 10X | No Operation. SIN 6 O O00 110 11X | Software Interrupt; pulse to PCIT pin. RSWD SSS 6 O O00 111 SSS _ | Restore Status WorD from register SSS; Bit 4 to C, Bit 5 to OV, | S, Z, C, OV Bit 6 to Z, Bit 7 to S. 3.6.3 REGISTER SHIFT Executable only with Registers 0, 1, 2, 3. Shifts are not interruptable. LV Mnemonic Operand | Cycles Instruction Description Status Change SWAP RR<,n> 6 X XXX XXO 001 000 NRR | N=0, SWAP bytes of register RR. S equals Bit 7 of results of S,Z SWAP. 8 N=1, not supported. S,Z SLL RR<,n> 6 O O01 001 NRR | N=0. Shift Logical Left one bit. Zero to low bit. S,Z 8 N=1, Shift Logical Left two bits. Zero to low 2 bits. S,Z RLC RR<,n> 6 O O01 010 NRR |} N=0O, Rotate Left one bit using C as bit 16. S,2Z,C 8 N=1, Rotate Left two bits using C as bit 17 and OV as bit 16. S, Z, C, OV SLLC RR<,n> 6 O O01 011 NRR_ | N=0, Shift Logical Left one bit using C as bit 16. Zero to low bit. S,Z,C 8 N=1, Shift Logical Left two bits using C as bit 17, OV as bit 16. | S, Z, C, OV Zero to low 2 bits. SLR RR<,n> 6 O 001 100 NRR {| N=0, Shift Logical Right one bit. Zero to high bit. S,Z 8 N=1, Shift Logical Right two bits. Zero to high two bits. S,Z SAR RR<,n> 6 O O01 101 NRR N=0, Shift Arithmetic Right one bit. Sign bit copied to high bit. | S, Z 8 N=1, Shift Arithmetic Right two bits. Sign bit copied to high 2 |S, Z bits. RRC RR<,n> 6 O O01 110 ©NRR_ | N=0, Rotate right one bit using C as bit 16. S,Z,C 8 N=1, Rotate right two bits using C as bit 16 and OV as bit 17. S, Z, C, OV SARC RR<,n> 6 O 001 1114 NRR |} N=0, Shift Arithmetic Right one bit, thru C. Sign bit copied to S,Z,C high bit. 8 N=1, Shift Arithmetic right two bits, thru OV and C. Sign bit S, Z, C, OV copied to high 2 bits. NOTE: n=1 or 2 (places). = SS —_ Oo -= nL SS = ane OE 2a &= Sa ss No ee we ied Ds So) 3.6.4 CONTROL Mnemonic Operand Cycles Instruction Description Status Change HLT 4 X XXX xXXO 000 O00 OOO | HaLT after next interruptable instruction is executed. Resume on start. SDBD 4 0 000 000 O01 | Set Double Byte Data for the next instruction which must be an external reference instruction. EIS 4 0 000 000 £010 | Enable Interrupt System. Not Interruptable. DIS 4 0 000 000 £011 | Disable Interrupt System. Not Interruptable. TCI 4 0 000 O00 £101 | Terminate Current Interrupt. Not Interruptable. CLRC 4 0 000 000 #110 | CLeaR Carry to zero. Not Interruptable. C SETC 4 0 000 O00 £111 #| SET Carry to one. Not Interruptable. C 3.6.5 JUMP Mnemonic Operand Cycles Instruction Description Status Change J DA 12 X XXX XXO0 000 000 £100 | Jump to address. Program counter is set to 16 bits of A’s. SL X XXX XX1 1AA AAA AOO X XXX XXA AAA AAA AAA JE DA 12 0 000 000 £4100 | Jump to address. Enable interrupt system. Program counter is 1 1AA AAA AOQ1 set to 16 bits of A’s. A AAA AAA AAA JD DA 12 0 000 000 #44100 | Jump to address. Disable interrupt system. Program counter is 1 1AA AAA A110 set to 16 bits of A’s. | A AAA AAA AAA JSR BB, DA 12 0 000 000 #4100 | Jump and Save Return address (PC+3) in register designated by B BAA AAA AQO 1BB. Program counter is set to 16 bits of A’s. BB#11. A AAA AAA AAA JSRE BB, DA 12 0 000 000 £4100 | Jump and Save Return and Enable interrupt system. Return B BAA AAA AQO1 (PC+3) is saved in register 1BB. Program counter is set to A AAA AAA AAA 16 bits of A’s. BB11. JSRD BB, DA 12 0 000 000 £44100 | Jump and Save Return and Disable interrupt system. Return B BAA AAA A110 (PC+3) is saved in register 1BB. Program counter is set to A AAA AAA AAA 16 bits of A’s. BB¥11. NOTE: Bits 2-7 of the second word form bits 10-15 of the Destination Address. Bits 0-9 of the third word form bits 0-9 of the Destination Address. 3.6.6 BRANCHES The Branch instructions are Program Counter Relative, i.e., the Effective Address=PC +Displacement. P-P is the Displacement and S is 0 for +, 1 for —. For a forward branch an addition is performed. For a backward branch a one’s complement subtraction is performed. Computation performed on PC+2. Mnemonic Operand | Cycles Instruction Description Status Change B DA 9 X XXX XX1 000 S00 OOO | Branch unconditional. Program Counter Relative (+1025 to —1024) P PPP PPP PPP PPP_~ PPP NOPP 7 1 000 S01 000 | No OPeration, two words P PPP PPP PPP PPP_ PPP BC (BLGE) DA 7/9 1 000 S00 O01 | Branch on Carry (Branch if Logical Greater Than or P PPP PPP PPP PPP_~ PPP Equal). C=1. BNC (BLLT) DA 7/9 1 000 S01 001 | Branch on No Carry (Branch if Logical Less Than). C=0 P PPP PPP PPP PPP_~ PPP BOV DA 7/9 1 000 S00 O10 | Branch on OVerflow. OV=1 P PPP PPP PPP PPP_- PPP BNOV DA 7/9 1 000 S01 010 | Branch on No OVerflow. OV=0 P PPP PPP PPP PPP_~ PPP BPL DA 7/9 1 000 S00 O11 | Branch on PLus. S=0O P PPP PPP PPP PPP_ PPP 6Y BMI DA 7/9 1 000 SO1 011 | Branch on Minus. S=1 P PPP PPP PPP PPP_~ PPP BZE (BEQ) DA 7/9 1 000 S00 - 100 | Branch on ZEro (Branch if EQual). Z=1 P PPP PPP PPP PPP_- PPP BNZE (BNEQ) |DA 7/9 1 000 £4S01 100 | Branch on No ZEro (Branch if Not EQual). Z=0 P PPP PPP PPP PPP_- PPP BLT DA 7/9 1 000 S00 101 | Branch if Less Than. S¥OV+1 P PPP PPP PPP PPP PPP BGE DA 7/9 1 000 S01 101 | Branch if Greater than or Equal. SVOV=0 P PPP PPP PPP PPP-~ PPP BLE DA 7/9 1 000 S00 110 | Branch if Less than or Equal. ZV (SYVOV)=1 P PPP PPP PPP PPP_- PPP BGT DA 7/9 1 000 S01 110 | Branch if Greater Than. ZV (SWOV)=0 P PPP PPP PPP PPP_~ PPP BUSC DA 7/9 1 000 SOO 111 | Branch if Unequal Sign and Carry CVS=1 P PPP PPP PPP PPP_- PPP BESC DA 7/9 1 000 S01 111 | Branch if Equal Sign and Carry CVS=0 P PPP PPP PPP PPP_- PPP BEXT DA, EEEE 7/9 1 000 S1E_- EEE | Branch if EXternal condition is True. Field EEEE is externally P PPP PPP PPP PPP PPP decoded to select 1 of 16 conditions. Response is tested for true condition. NOTE: 7/9=7 Cycles if test condition is not true, 9 cycles if true. |eee | SS —_ Oo -= a S = eo oS ©. —- Tee eo i 8 35 Ho erro OD ee ie So) 3.6.7 DIRECT ADDRESSED DATA—MEMORY Operand | Cycles Instruction Description Status Change Mnemonic MVO SSS, DA 11 X XXX XX1 001 000 #£4SSS MoVe Out data from register SSS to address A-A. Not A AAA AAA AAA’ AAA AAA interruptable. MVI SA, DDD 10 : 1 010 000 DDD | MoVe In data from address A-A to register DDD. A AAA AAA AAA AAA AAA ADD SA, DDD 10 1 011 000 DDD ADD data from address A-A to register DDD. Results to DDD. S, Z, C, OV A AAA AAA AAA’ AAA AAA OS SUBtract data from address A-A from register DDD. S, Z, C, OV SUB SA, DDD 10 1 100 000 DDD | A AAA AAA AAA’ AAA AAA Results to DDD. CMP SA, SSS 10 1 101 000 SSS CoMPare data from address A-A with register SSS by subtraction.| S, Z, C, OV A AAA AAA AAA’ AAA AAA Results not stored. AND SA, DDD 10 1 110 000 # DDD | logical AND data from address A-A with register DDD. S,Z A AAA AAA AAA’ AAA AAA Results to DDD. XOR SA, DDD 10 1 111 000 DDD | eXclusive OR data from address A-A with register DDD. S,Z A AAA AAA AAA’ AAA AAA Results to DDD. 3.6.8 IMMEDIATE DATA—REGISTER Mnemonic Operand Cycles Instruction Description Status Change MVOI SSS, [-I 9 X XXX XX1 001 111 SSS MoVe Out Immediate data from register SSS to PC+1 (field). I III III III III III Not interruptable. MVII I-I, DDD 8 1 010 111 DDD MoVe In Immediate data to register DDD from PC+1 (field). I III III III III III ADDI I-I, DDD 8 1 011 111 DDD Add Immediate data to contents of register DDD. S, Z, C, OV I III III III III III Resultsto DDD. SUBI I-I, DDD 8 1 100 111 DDD SUBtract Immediate data from contents of register DDD. S, Z, C, OV I III III III III III Resultsto DDD. CMPI I-I, SSS 8 1 101 111 SSS CoMPare Immediate data from contents of register SSS by S, Z, C, OV I III III III III III subtraction. Results not stored. ANDI I-I, DDD 8 1 110 111 DDD logical AND Immediate data with contents of register DDD. S,Z I III III III III III Results to DDD. XORI I-I, DDD 8 1 111 111 DDD eXclusive OR Immediate data with contents of register DDD. S,Z I III III III III III Results to DDD. 3.6.9 INDIRECT ADDRESSED DATA—REGISTER MMM Source data is located at the address contained in Register R1-R6. MMM=4, 5: post-increment R4 or R65. MMM=6: MVO instruction—post-increment R6. PUSH data from Register SSS to the Stack. LS Other instructions—pre-decrement R. PULL data from the Stack to be used as the first operand. Mnemonic Operand | Cycles Instruction Description Status Change MVO@ SSS, MMM 9 X XXX XX1 001 MMM _ SSS | MoVe Out data from register SSS to the address in register MMM. Note: SSS=MMM=4, 5, 6 or 7 not supported. Not interruptable. PSHR SSS 9 1 O01 110 SSS | PuSH data from Register SSS to the stack. Not interruptable. MVI@ MMM, DDD] 8/11 1 010 MMM DODD | MoVe In data from the address in register MMM to register DDD. PULR DDD 11 1 010 110 DDD |PULI data from the stack to Register DDD. ADD@ ~|MMM, DDD] 8/11 1 011 MMM DDD |ADD data located at the address in register MMM to contents of | S, Z, C, OV register DDD. Results to DDD. SUB@ MMM, DDD] 8/11 1 100 MMM _- DDD | SUBtract data located at the address in register MMM from contents] S, Z, C, OV of register DDD. Results to DDD. CMP@ MMM, DDD} 8/11 1 101 MMM SSS _ |CoMPare data located at the address in register MMM with contents} S, Z, C, OV of register SSS by subtraction. Results not stored. AND@ MMM,DDD | 8/11 1 110 MMM _- DDD }logical AND contents of register DDD with data located at the S,Z address in register MMM. Results to DDD. XOR@ MMM, DDD] 8/11 1 111 MMM DDD |eXclusive OR contents of register DDD with data located at the S,Z address in register MMM. Results to DDD. NOTE: 8/11=11 Cycles if MMM=6, 8 Cycles otherwise. ("}U09) [Buns pajiejag) 19S uO oNASUT 9'€ 3.6.10 IMMEDIATE DOUBLE BYTE DATA—REGISTER NOTE: The SDBD command is provided by the assembler when the immediate data is greater than the specified memory width and requires two bytes. Mnemonic Operand | Cycles Instruction Description Status Change SDBD X XXX XXO0 000 000 001 | MoVe In Immediate double byte data to register DDD. MVII I-I, DDD 14 X XWXXX XX1 010 1141 DDD X MXX XXX XLELL LLL Lee X XXX XXX XUU UUU UUU SDBD O 000 000 001 ADD Immediate double byte data to contents of register DDD. S, Z, C, OV oS ADDI I-I, DDD 14 1 011 111 DDD Results to DDD. LL LLL LLL UU UUU UUU SDBD 0 000 000 001 SUBtract Immediate double byte data from contents of register | S, Z, C, OV SUBI I-I, DDD 14 1 100 111 DDD DDD. Results to DDD. LL LLL LLL UU UUU UUU SDBD 0 000 000 001 CoMPare Immediate double byte data with contents of register | S, ZC, OV CMPI I-I, SSS 14 1 101 111 SSS SSS by subtraction. Results not stored. LL LLL LLL UU UUU UUU SDBD 0 O00 000 O01 logical AND Immediate double byte data with contents of register | S, Z ANDI I-I, DDD 14 1 110 #1141 DDD DDD. Results to register DDD. LL LLL LLL UU UUU UUU SDBD 0 000 000 O01 eXclusive OR Immediate double byte data with contents of S,Z XORI I-I, DDD 14 1 111 111 DDD register DDD. Results to register DDD. LL LLL LLL UU UUU UUU NOTE: I-I=UUUUUUUULLLLLLLL; L-L indicates low byte of literal; U-U indicates upper byte. 3.6.11 INDIRECT ADDRESSED DOUBLE BYTE DATA—REGISTER NOTE: The SDBD instruction is normally supplied by the assembler as required to properly generate machine code. Mnemonic Operand Cycles Instruction Description Status Change SDBD X XXX XXO0 000 000 - £001 MoVe In double byte data from the address in register MMM to MVI@ MMM, DDD 14 X XXX XX 010 MMM DDD register DDD. SDBD 0 000 000 001 ADD double byte data located at the address in register MMM to S, Z, C, OV ADD@ MMM, DDD 14 1 O11 MMM DDD contents of register DDD. Results to DDD. SDBD 0 000 000. 001 in register MMM SUBtract double byte data located at the address S, Z,C OV SUB@ MMM, DDD 14 1 100 MMM DDD from contents of register DDD. Results to DDD. SDBD 0 000 000 001 CoMPare double byte data located at the address in register S, Z, C, OV CMP@ MMM, DDD 14 1 101 MMM SSS MMM with contents of register SSS by subtraction. Results not stored. SDBD O 000 000 £4001 logical AND double byte data located at the address in register S,Z AND@ MMM, DDD 14 1 110 MMM DDD MMM with contents of register DDD. Results to DDD. SDBD 0 000 O00 4001 eXclusive OR double byte data located at the address in register S,Z XOR@ MMM, DDD 14 1 111 MMM DDD MMM with contents of register DDD. Results to DDD. 3.6.12 SYMBOLIC NOTATION— The following symbolic notation is used in all CP1600 instruction documentation. Address Functions: + - addition MMM - Register Address Mode Modes: R - register — - subtraction 000 - direct address in location following instruction. ‘blank’ - direct address V - inclusive OR 001 - indirect address for Register 1 eG I - immediate data v¥ - exclusive OR 010 - indirect address for Register 2 @ - indirect address \ - AND 011 - indirect address for Register 3 Operands: SSS - Source Register 0 . "s replaced by ot ; nee ee rees ct meter . po ee DDD - Destination Register ~~ - optional operand 0 - Indirect address for egister 5, pos incremen MMM_ - Register Address Mode - indirect address for Register 6, post increment RR - Register (0-3) Status: S - Sian bit for MVO only; indirect address for Register 6, N - Number of Shifts (0=1, 1=2) " Cary bit a, bre Oe foe ese ons except MG S - Sign of Address Displacement | ov - Overtlow bit indirec ac ress or egister , pos Increment. EEEE - External Condition Code (0-15) (Immediate data in location following instruc- DA - Destination Address tion.) SA - Source Address I-I - Immediate data word P-P - Address displacement for Branch OO 4 SYSTEM IMPLEMENTATION a The CP1600 is a single chip, 16-bit MOS-LSI microprocessor array with many advance features enabling its use as the heart of a high performance microcomputer-based system. As such, it must be configured to meet both the processing and economic requirements of its end product environment. The following sections discuss a number of ways to configure the CP1600 microprocessor into a working system. 4 T The bus structure of the CP1600 microprocessor array is based ona =" single 16-bit bidirectional bus used to output both dataand addresses Bus Structure and input instructions, data, and interrupt addresses. However, in a microcomputer based product there are a number of different approaches to implementing the total system bus structure around the single bidirectional bus of the CP1600. In small systems with only a few memory chips, limited peripheral interfacing, and minimal expansion capability, the CP1600 bus can be used directly without buffering. To accommodate the unbuffered, single bus approach, many of the General Instrument ROM and RAM products contain internal address and chip select registers to trap and hold memory addresses from the CP1600 bus. This reduces parts count significantly in these small systems. In addition, a convenient and cost-saving technique in these small systems is to utilize the upper bits of the 16-bit address as direct chip select signals. This creates a non-contiguous memory allocation but eliminates the need for full binary decoding of the upper part of the address field. Because the CP1600 provides a full 16-bit address, there is plenty of address space available to accommodate this technique in small systems. CONTROL BUS [ > ADDR MEMORY 1/O 4 CP1600 ~ LATCH MATRIX BUFFERS | DATA/ADDRESS BUS ) 54 In systems with larger memories, more sophisticated peripheral interfacing, and extensive modularity and expandability, the CP1600 is best utilized with bipolar buffering of the bidirectional bus. Many standard multiple-sourced TTL parts are presently available for this purpose and provide the system designer with anumber of important configuration options. ; Voo Voc Vee x MSYNC +12V. +#5V.— -3V 2 > 74150 o Qa:g | | | a —___ z ny “ ~ —»J 01 EBC! -—__._,O >>, HIN ——j 02 xa Fost Feige Qw ——————f0 INTR EBCAO So ke—“2 6 F——5 >| INTRM EBCAI 22 FO +o Fo os5 CPI600 (*? EBCA3 p——— OE p——— —e ? ”n ( BUS BC <> 0 < | contro BC2 BDIR 74145 BUSRQ OMA 00.15 BUSAK CONTROL <— ROM <_— t BIDIRECTIONAL , BUS DRiveRS | 8726 Sy <> ADDRESS RAM << REGISTER <— Dy, ADDRESS& CONTROL BUS 74175 J 16-BIT BIDIRECTIONAL BUS \_ 95 4 2 The CP1600 requires a two phase non-overlapping high level clock " system for proper operation. Internally, the @1/@2 clocks are used to Clocks senerate the four internal time slots TS1, TS2, TS3, TS4, which make up each microcycle. In addition, the power-on/master clear se- quence requires that MSYNC go high at the rising edge of a #1 clock phase (TS3). The following example is a typical clock generation circuit: LOAD C MCLR ——@—O S/L J of 74195 K ft OSC. QA QB ac apd > MH0026 Se p1 _ lo MSYNC TS1 TS2 TS3 TS4 56 * 43 The Branch on EXTernal condition (BEXT) instruction of the CP1600 allows up to 16 external digital signals to be sampled by the program External Sense with a program branch occurring if the test is true. The four lower bits of the Instruction Register (IR) are presented at pins EBCAO-3 and Logic the CPU samples EBCI to determine if the branch should occur. Two simple examples of the implementation of this function are shown below. EBCI TST1 TST2 CP1600 74150 BRANCH EBCAO CONDITIONS to EBCA3 TST16 TST1 TST2 EBCI TST3 CP1600 TST4 EBCAO to EBCA3 o/ 4 4 Most systems incorporating a microprocessor require some sort of " start/stop mechanism and a simple indication of the present oper- Start/Stop and ational mode; i.e., running or stopped. The CP1600 has an internal Halt START/STOP FLIP-FLOP to provide these functions totally on-chip. The STPST pin is a negative edge trigger to the toggle input of this flip-flop so that alternate pulses cause transitions between the RUN and STOP modes of the CPU. This input also has an internal debounce circuit so that a momentary switch can be directly connected to the CPU to perform the START/STOP function. The HALT output from the CPU is simply the indication of the RUN/STOP condition of the processor. Because the CPU stops only after the completion of an instruction, the HALT signal is generated from a logical combination of the START/STOP FLIP-FLOP and the microcontrol sequencing logic. It represents the true state of the operational mode of the CP1600. MSYNC CP1600 RUN Q f aTpay STPST STOP/START T DEBOUNCE ot TOGGLE SWITCH lo Y HLT (instruction) RUN LAMP \ HALT iw FROM MICRO-ROM | Lo 98 45 The interrupt system of the CP1600 microprocessor is based on a generalized multi-line/multi-level configuration which can be used to Interrupt implement interrupt structures ranging in complexity from simple “polled” priority networks to sophisticated fully reentrant nested System Priority structures. In addition, interrupts can be identified in groups or individually as the system performance demands. The CP1600 provides five signals to control the interrupt system. These signals include two request lines, INTR and INTRM, two bus control signals, INTAK and IAB, and an interrupt termination signal, TCI. In the simplest case, each device can request interrupt service on the INTRM line with a fixed interrupt address vector being generated during the IAB signal. The software service program can then disable the INTRM line and “poll” via BEXT instructions to determine the highest priority device requiring service. At the completion of the appropriate service, the INTRM line can be reenabled by the EIS command. In a more sophisticated interrupt system, the INTAK acknowledge signal can be used to find the highest priority interrupting device viaa daisy-chain network. Acknowledgement of the highest priority device masks out all lower priority devices allowing only higher priority devices to generate interrupts and break into device service already in progress. These nested interrupts can be terminated in reverse order by the TCI pulse with the use of a simple daisy-chain network between the ACK FF in each device. All of the interrupt system signals are discussed fully in Section 2.3.2 and a simple example of a nested interrupt structure is shown below. INTRM DEVICE INTERRUPT LOGIC a IPRI INTAK SAG e—O MSKI | CP1600 [ | —MSKO = i a S - oc) 6a 1c 4 DEVICE INTERRUPT | REQUEST 09 4 6 The most fundamental input/output structure of any digital proces- . . sor is the simple program-controlled I/O PORT. These interfaces are Basic Input/ composed of output holding registers and input transfer gates with all peripheral device control performed by software programming. Output Ports ( DATA BUS ‘ 7403/7438 DM8098, etc. ADDR. DEC DTB DATA INPUTS / DATA BUS 7» ADDR. DEC ri /\ DTB —o / a ANY SYSTEM C Ye 74173 .er SYNC CLOCK | ~~ | | DATA INPUTS C DATA BUS » “A —— —————————————O @e@e@ ADDR. DEC » TS 74173 O—— OUTPUT b——@ ENABLE TTT} DATA OUTPUTS r 60 eee 4 7 The following example shows a low cost, byte buffered communi- . . cations interface utilizing a Universal Asynchronous Receiver/ Simple Transmitter (UAR/T). This interface allows data rates of 60k Baud to = = be easily handled with very few components. Because the UAR’/T is Communications internally double buffered in both the receiver and transmitter sections, the CP1600 program has a full 170 usec to process Interface characters. DATA BUS .) < > DATA IN DATA OUT AnNnR REO ADDR ADDR. <<) > DS RDE pr AY-3-1014A DAV UAR/T OUT a we SO TBMT DAV Sl ww | IN RS232 RS232 CP1600 al ~~, EBCIK-0 | EBCAO 74150 t EBCA3 61 i. a ELECTRICAL SPECIFICATIONS Vpp, Vcc, GND and all other input/output voltages 5.1 with respect tO Veg ...... ccc cee eee eee eee eee —0.3V to +18.0V Maximum Storage Temperature ........... 2. eee ee ee eee —55°C to +150°C Operating Temperature ............. 2c eee eee ee eee 0°C to +70°C Ratings Exceeding these ratings could cause permanent damage to these devices. Functional operation at these conditions is not implied—operating conditions are specified in the following paragraphs. CP1600: CP1610: 5.2 Vpop=+12V+5% Vpp=1t+11V+5% Standard Vec=t+5V+5% Vec=t+5V£5% Ves—=—3V+10% Ves—=—3V410% Conditions Ta=0°C to +70°C Ta=0°C to +70°C 53 Characteristic Sym | Min Typ* Max | Units Conditions DG Clock High Inputs Vinc 10.4 — Vop V Characteristics Low Input Current: Vitc | O Ic — — — 0.6 V 1S | MA | Vie= (Vpp —1) V Logic Inputs Low Vin 0 — 0.65 V High (All Lines except BDRDY) Vin | 2.4 — Vec V High (Bus Data Ready Line See Note) Vine | 3.0 — Vec V Logic Outputs. High Von 2.4 — Vec V Ion=100UA Low (Data Bus Lines DO-D15)} Vor | — — 0.5 V IoL=1.6MA Low (Bus Control Lines BC1, BC2, BDIR) Vor | — — 0.45] V IoL=2.0MA Low (All Others) Vor | — — 0.45; V IoL=1.6mMA Power Supply Current Vop Supply Ipp — 70 110 mA Vcc Supply Toc — 12 25 mA Ves Supply Tes — 0.2 2 mA “Typical values are at +25°C and nominal voltages. 62 a 5 4 CP1600: 1 TTL load, 25 pF. AC Characteristic Sym | Min Typ™ Max | Units Conditions = = Clock Pulse Inputs, ¢1 or @2 Characteristics vise wiath tor, tee | 1201 — | — | ns Skew (#1, @2 delay) tie, tor | O _— — ns Fig. 27 Clock Period tcy 03}, — 2.0 | ws Rise & Fall Times tr, ty —{|— 15 ns Master SYNC: Delay from @ tus — — 30 ns | Fig. 28 DO-D15 Bus Signals Output delay from @1: (float to output) tBo — — 120] ns Output delay from @2: (Output to float) ter — | 50 — ns Input setup time before 1 tei 0 — — ns Input hold time after @1 tae 10 | — — NS |} Fig. 27 Bus Control Signals BC1, BC2, BDIR Output delay from $1 toc — — 120 | ns J Skew pe —|— 30 | ns BUSAK Output delay from 1] teu — | 150 — ns_ | Fig. 29 TCI Output delay from $1 tro — | 200 — ns ! Fig. 30 TCI Pulse Width tw | — | 300} —| ns 9: EBCA output delay from BEXT input toe — — 150 ns ; EBCA waittimeforEBClinput] ta — | — | 400] ns Fig. 31 “Typical values are at +25°C and nominal voltages. NOTE: The Bus Data ReaDY (BDRDY) line is sampled during time period TSI after a BAR or ADAR bus control signal. BDRDY must go low requesting a wait state 50 ns before the end of TS1 and remain low for 50 ns minimum. BDRDY may gohigh asynchronously. In response to DBRDY, the CPU will extend bus cycles by adding additional microcycles up to a maximum of 40 psec duration. 63 . 5.4 CP1610: 1 TTL load, 100 pF. AG Characteristic Sym | Min | Typ* | Max] Units Conditions 7 - Clock Pulse Inputs, ¢1 or ¢2 GharacteristicS euse wiatn tystyo| 200} — | —] ns Skew (#1, @2 delay) tio, tor 0 — — ns . (cont.) Clock Period tcy 0.5 _ 2.0] us Fig. 27 Rise & Fall Times tr, t, — — 15 | ns Master SYNC: Delay from @ tus — — 30 ns Fig. 28 DO-D15 Bus Signals Output delay from $1 (float to output) tso | — — |100] ns |) Output delay from $2 (Output to float) tar — 50 — ns Input setup time before ¢1 ter 0 — — ns | Fig. 27 Input hold time after ¢1 tee 10 — — ns Bus Control Signals BC1, BC2, BDIR Output delay from #1 toc — — 100} ns |, Skew — — — 30 ns BUSAK Output delay from @1| teu — 150 — ns | Fig. 29 TCI Output delay from #1 tro — 200 — ns Fia. 30 TCI Pulse Width tw | — | 300 | — ] ns 9: EBCA output delay from BEXT input toe — — 150] ns EBCA wait timeforEBClinput| ta | — | — |400] ns } Fig. 31 *Typical values are at +25°C and nominal voltages. NOTE: The Bus Data ReaDY (BDRDY) line is sampled during time period TSI after a BAR or ADAR bus control signal. BDRDY must go low requesting a wait state 50 ns before the end of TS1 and remain low for 50ns minimum. BDRDY may go high asynchronously. In response to BDRDY, the CPU will extend bus cycles by adding additional microcycles up to a maximum of 40 usec duration. 55 Characteristic Sym Min | Typ | Max | Units Conditions Capacitance 22 coc *:.Input capacitance Co1, Coo} — 20 | 30 | pF Ta= 125°C, nominal power DO-D15 — — 8 15 pF supplies, All Other — — 5 10 | pF {J te=teo=120ns. 64 5.6 Timing Diagram References Iu CYCLE | [RR TSI TS2 TS3 TS4 BB TS| BR TS2 T$3 Bt TS4 FRTS! FA TS2 FH TS3 FH TS4 FH TS! ae toy —Y { ! | {I | \ $2 1 i \ | | | " { | ny Lge Met , ! ! t od be tet, oy I | | | I | | | | | ! t | | | | = toc rr | : ! ~too to '' —__ ! \ BCI, BC2, ! ! BOIR 1 : r '! = ' bao ~ ot tg 'me t BI =| / bo “1 'e2 t : 2.2V l ‘ DO -DI5 \ ! x \j I i L \: 0.8V | i bese —________ se b> BUS BUS BUS INPUT CHANGING FROM OUTPUT CHANGING FROM INSTRUCTION FLOAT MODE TO VALID OUTPUT MODE TO OR DATA OUTPUT MODE FLOAT MODE OPERAND MAST VES oe Vig START HERE ! ! ' 1 1 t t ' ' ! t ' ' t ! ' 1 t ' ' ' ! ' ' , ‘ ' I ITSUTS2TS3ITS4HTS1NTS2ITS3ITS4'TS1 ITS2'TS3,TS41TS1 TS2\TS3}TS4ITS11TS2!TS3'TS41TS11TS2; TS3}TS4\TS1 iTS2\TS3! 6 AARANAAAAARAAAPAAAPADL & PLACA APR PAPLPLALP PS | | BCI r Sf ms? | | | BC2 | / \ a df 4 | | , BDIR if [fo Vy —— F Ins MSYNC ; i iT BUS CONTROL 4 NACT 7 ina. NACT ZA BAR q f tf 00-015 | | FLOAT xX X_ FLOAT WX Xt <-> <—> ND: ; - INPUT STARTING OUTPUT STARTING LEGEND \\\ OP Nsitte DIRECTION PROGRAM COUNTER PROGRAM COUNTER |» FIRST READ HERE 65 ITS ITStITS2'TS3iTS4' ITSIITS2ITS3'TSAITSI'TS2ITS3'TSAITS1ITS2ITS3ITS4ITS1! ' ' { ' ' t | ! ' ' ( t 6 DAARANNANAMNMMNMNNIS SG eVLNNDUANSINSUNNNNNP BC1 fFo------| - — 4 fh a ----- mm) fo----- Lp sf J------ 4 END OF CURRENT ~~ LLe L _ INTERRUPTABLE __ aco? a INSTRUCTION l \ fe —--—----- --—fF -' +f f-— j-—-—-—-—- uy _—e ow = os ow oe Lees | ommes fe -—- BDIR ae i o\ —------ —-afhe-' fp J--—---\—4 CPU SAMPLES BUSRO ——— BUSRQ TTar DURING TSI ¢ 4f HH TTTTT —F a ty = teu he n it | , BUSAK ‘ a . F f——b — — — CC 4 BUS CONTROL ,~—--L Le NAT. 4 f--4----- 4h -- 00-015 we ep mee eo of _ <— FLOAT NGA _ <> OUTPUT ASYNCHRONOUSLY PROGRAM COUNTER W/R TO CPU MAIN PROGRAM (OR STACK POINTER TO SERVICE INTERRUPT) LEGEND: \\\\y CHANGING DIRECT ION RUPT TIMING ITS HHTS2ITSBITSAITS THTS2ITS3'TSAITSITS2ITS3ITS4ITS 1'TS2ITS3'TSA'TS1!TS2S3'TS4ITS1iTS2TS3ITS4'TSHTS2ITS3ITS4!TS ITS2! ' I ' ' { ' { ! ' ' ' { 1 ' ' ' 1 A NANIANIANNAPANADNSL, [ \ BC2 BDIR / \ TCl Tr BUSCONTROL [7 BAR WAN ACL V7 0B. YA NACT YH YA DBA bo-Dis FLOAT WWWX AN FLOAT X MX FLOAT YK X\ FLOAT X X FLOAT <> <_ <_ OUTPUT INPUT OUTPUT INCREMENTED INPUT PROGRAM COUNTER TCI INSTRUCTION NEXT INSTRUCTION LEGEND: ANY . GHaNGING DO0- DIRECTION 66 ITS1MTS2ITS3'TS4ITS1ITS2!TS3'TSAITS !TS2ITS3ITSATS1!TS2ITS3ITS4'TS1!TS2ITS3'TSAITStITS2"TS3} I ! t ' ' ' ' ' { ' ' 1 ' 1 ANAANANANAAPPS 21 DNANNANNANADNSL, a me | oR Ss \ / \ ~— toe hr TY XXXXKXK J UNDEFINED XXXXXXKXXK 5 ' STABLE AS LONG AS ADDRESS IS STABLE ——j | L_—— t Al 1 | EBC — DON'T CARE DONT CARE —— - kK» VALID INPUT THROUGHOUT TSI BUS CONTROL [%4 BAR P44 NACT [7 DIB. by NnACcT BAR PY 0-015 FLOAT WX XY roa XX FLOAT WX <—~_ <_ <—_—~> \Y DO-D15 BUS OUTPUT INPUT OUTPUT PC+1 TO CHANGING DIRECTION PROGRAM COUNTER BEXT INSTRUCTION FETCH DISPLACEMENT 67 5.7 Package Outlines Fig. 32 40 LEAD DUAL IN pee $40 540 040" eee INDEX POINT sor!” AT 130 i 120 .063 “ 020 MIN O12 TYP 0°-90° .OS7 100 TYP 140 609 PLASTIC JOC) fo oe) a) a) Be qs UuUuU UU eo oD tl ot lo ta ld dU INDEX POINT 2.025 1.975 180 MAX — ta BASE PLANE YT POEM 100 TYP. _w|[. 920 OIG TYP CERAMIC 68 NOTES 69 NOTES 70 NOTES 71 NOTES 72 } MicroelectronicWORLDWIDE i ae ae at at s Division/General Instrument Corporation SALES OFFICES } | / / NORTH AMERICA EUROPE UNITED STATES: EUROPEAN SALES HEADQUARTERS: MICROELECTRONICS DIVISION GENERAL INSTRUMENT MICROELECTRONICS LTD. NORTHEAST—600 West John Street Times House, Ruislip, Middlesex, HA4 8LE Hicksville, New York 11802 Tel: (08956), 35700, Telex: 23272 Tel: 516-733-3107, TWX: 510-221-1866 NORTHERN EUROPEAN SALES OFFICE: 20th Century Plaza Times House, Ruislip, Middlesex, HA4 8LE Daniel Webster Highway Tel: (08956), 35700, Telex: 23272 Merrimack, New Hampshire 03054 Sandhamnsgatan 67 Tel: 603-424-3303, TWX: 710-366-0676 S-115 28, Stockholm 858 Welsh Road Tel: (08) 67 99 25, Telex: 17779 Maple Glen, Pennsylvania 19002 Tel: 215-643-5326 SOUTHERN EUROPEAN SALES OFFICE: 5-7 Rue De L’Amiral Courbet SOUTHEAST—7901 4th Street. N., Suite 208 94160 Saint Mande, Paris St. Petersburg, Florida 33702 Tel: (1) 365 72 50, Telex: 213073 Tel: 813-577-4024, TWX: 810-863-0398 Piazza Novelli, 8 1616 Forest Drive 20129 Milano Annapolis, Maryland 21403 Tel: (02) 720914, Telex: 843-320348 Tel: 301-269-6250, TWX: 710-867-8566 4921C Professional Court CENTRAL EUROPEAN SALES OFFICE: Raleigh, North Carolina 27609 GENERAL INSTRUMENT DEUTSCHLAND GmbH Tel: 919-876-7380 Nordendstrasse 3, 8000 Munchen 40 SOUTH CENTRAL—5520 LBJ Frwy., Suite 330 Tel: (089)27 24 049, Telex: 528054 Dallas, Texas 75240 6070 Langen Bei Frankfurt A Main Tel: 214-934-1654, TWX: 910-860-9259 Wilhelm-Leuschner Platz 8, Postf. 1167 Tel: (6103) 23 051, Telex: 415000 CENTRAL—4524 S. Michigan Street South Bend, Indiana 46614 Tel: 219-291-0585, TWX: 810-299-2518 9820 West 85th Street, Suite 102 ASIA Indianapolis, Indiana 46278 HONG KONG: Tel: 317-872-7740, TWX: 810-341-3145 GENERAL INSTRUMENT HONG KONG LTD. 2355 S. Arlington Hts. Road, Suite 408 139 Connaught Road Central, 3/F, San-Toi Building Arlington Heights, Illinois 60005 Tel: (5) 434360, Telex: 84606 Tel: 312-981-0040, TWX: 910-687-0254 JAPAN: 32969 Hamilton Court, Suite 210 GENERAL INSTRUMENT INTERNATIONAL CORP. Farmington Hills, Michigan 48018 Fukide Bldg. 8th Floor, 1-13 Toranomon 4-Chome Tel: 313-391-4070 Minato-ku, Tokyo 105 Tel: (03) 437-0281, Telex: 2423413 SOUTHWEST—201 Standard Street TAIWAN: El Segundo, California 90245 Tel: 213-322-7745, TWX: 910-348-6296 GENERAL INSTRUMENT MICROELECTRONICS TAIWAN NORTHWEST—3080 Olcott Street, Suite 230C 77 Pao Chiao Road, Hsin Tien Santa Clara, California 95051 Taipei, Taiwan Tel: 408-496-0844, TWX: 910-379-0010 Tel: (02) 914-6234, Telex: 785-3111 Nene MANUFACTURING FACILITIES U.S.A.—Hicksville, New York ¢ Chandler, Arizona e EUROPE—Glenrothes, Scotland e AS|IA— Kaohsiung, Taiwan APPLICATIONS CENTERS U.S.A.—Hicksville, New York @ Chandler, Arizona ¢ Los Angeles, California EUROPE—Glenrothes, Scotland ¢ London, England e Paris, France ¢ Munich, Germany ASIA— Kaohsiung, Taiwan e Tokyo, Japan ¢ Hong Kong nl ©CP 11823 Printed in U.S.A.