MOS Microprocessor Data Manual 1983 Signetics Signetics reserves the right to make changes in the products contained in this book in order to improve design or performance and to supply the best possible products. Signetics also assumes no responsibility for the use of any circuits described herein, conveys no license under any patent or other right, and makes no representations that the circuits are free from patent infringement. Applica· tions for any integrated circuits contained in this publication are for Illustration purposes only and Signetics makes no representation or warranty that such applications will be suitable for the use specified without further testing or modification. Reproduction of any portion hereof without the prior written con· sent of Signetics is prohibited. © Copyright 1983 Signetics Corporation ii Signetics MICROPROCESSOR DIVISION JANUARY 1983 CONTENTS Product Status Definitions ......................................................................................... iv Section 1 - Data Communications SCN2651 Programmable Communications Interface (PCI) ....................................... 1·1 SCN2652/SCN68652 Multi·Protocol Communications Controller(MPCC) .................................... 1·15 SCN26531SCN68653 Polynomial Generator Checker (PGC) ................................................ 1·33 SCN2661/SCN68661 Enhanced Programmable Communications Interface (EPCI) ............................ 1·51 SCN2681 Series Dual Asynchronous Receiver/Transmitter (DUART) .................................... 1·68 Section 2 - Video Display CRT Chip Set Comparison Features ............................................................................. 2·1 SCN2670 Display Character and Graphic Generator (DCGG) ...................................... 2·3 SCN2671 Programmable Keyboard and Communications Controller (PKCC) ....................... 2·16 SCN2672 Programmable Video Timing Controller (PVTC) ....................................... 2·37 SCB2673 Video Attributes Controller (VAC) ................................................... 2·58 SCN2674 Advanced Video Display Controller(AVDC) ........................................... 2·69 SCB2675 Color/Monochrome Attributes Controller (CMAC) ..................................... 2·97 Section 3 - Single Chip Microcomputers SCN80 Series Single Chip 8·Bit Microcomputer .................................................... 3·1 'SCC80 Series CMOS Single Chip 8·Bit Microcomputer ............................................. 3·16 SCN8031/SCN8051 Single Chip 8·Bit Microcomputer ................................................... 3·17 'SCC80C311SCC80C51 CMOS Single Chip 8·Bit Microcomputer ............................................. 3·24 Section 4 - SCN68000 16·Blt Family SCN68000 Series 16·Bit Microprocessor ......... '" ................................................. 4·1 'SCN68008 16·Bit Microprocessor with 8·Bit Bus ............................................... 4·50 SCN68120/SCN68121 Intelligent Peripheral Controller .................................................... 4·52 SCN68230 Parallel Interface/Timer .......................................................... 4·100 SCB68430 Direct Memory Access Interface (DMAI) ............................................ 4·130 'SCN68451 Memory Management Unit. ....................................................... 4·151 'SCN68454 Intelligent Multiple Disk Controller (1M DC) .......................................... 4·152 'SCN68459 Disk Phase Locked Loop (DPLL) ................................................... 4·153 'SCN68562 Dual Universal Serial Communications Controller .................................... 4·154 SCN68681 Dual Asynchronous Receiver/Transmitter (DUART) ................................... 4·156 Section 5 - Video Games 'SCN2621/SCN2622 Universal Sync Generator (USG) ..................................................... 5·1 'SCN2638 Programmable Video Interface (PVI) .................................................. 5·2 'SCN2637 Universal Video Interface (UVI) ...................................................... 5·3 'SCN2650A Microprocessor ................................................................... 5·5 Section 6 - Application Notes App Note M22 Interface Techniques for the 2651 PCI ................................................ 6·1 App Note M24·A Using the 2651 PCI with BISYNC ..................................................... 6·7 App Note M26 Application Techniques for the 2651 PCI .............................................. 6·9 App Note 400 Using the 2653 Polynomial Generator and Checker .................................... 6·11 App Note 401 Using the 2670/71/72173 CRT Terminal Chip Set ....................................... 6·27 App Note 402 2661 Operating Mode Switching Procedures .......................................... 6·43 App Note 403 2670/71/72/73 CRT Set Application Briefs ............................................ 6-44 Section 7 - Mlcrosystems SMDEV10000 S68000 User Work Station (UWS) .................................................... 7·1 SMSFT1000 S68000 Cross Software Macro Assembler ............................................. 7·4 SMSFT1600 568000 Cross Software PASCAL Cross Complier ....................................... 7·6 Section 8 - Appendices General Information .......................................................................................... 8·1 Package Outlines ............................................................................................ 8·2 Sales Offices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8·7 'PRODUCT BRIEF, contact your Signetics sales offices for complete information. Signetics iii MICROPROCESSOR DIVISION JANUARY 1983 PRODUCT STATUS DEFINITIONS/PART NUMBERING SYSTEM DEFINITION OF TERMS Data Sheet Identification Product Status Definition Formative or This data sheet contains the design In Design specifications for product develop· ment. Specifications may change in any manner without notice. Advance Information Sampling or This data sheet contains advance Pre·Production information and specifications are subject to change without notice. 'm'Ie'Ii".i" First Production This data sheet contains preliminary data and supplementary data will be published at a later date. Signetics reserves the right to makechangesat any time without notice in orderto im· prove design and supply the best possible product. No Full This data sheet contains final Identification Production specifications. Signetics reserves Noted the right to make changes at any time without notice in order to im· prove design and supply the best possible product. PART NUMBERING SYSTEM Exampla: SCN2661AC1N28 s C N 2 A C tLIt T T .._ ..,.J 1 Identifier - Always se Basic Part Number 2621 A 8031A Pin Count 14,18,24,28,40, atc. 2822A 8035A Process/Power Variation 2638A 8039A Package N = N-Channel 2637A 8040A I=Ceramlc C=C-MOS 2850A 8048A N=Plastic B=Blpolar 2851C 8049A 2852A 8050A L------Tlmlng Variation 2853A 8061A S•• appropriate data sheet 2661A 8OC35 2661B 80C39 2661C 8OC4O L-------Tamparatura 2870A 8OC48 C=ODC to +70 0 C 2670B 8OC49 (Commercial) 2671A 80C50 2872A 66000 A= _40°C to +85 D C 2873A 66120 (Automotive) 26738 66121 M == - 55°C to + 125°C 26748 66230 (Mllltlry) 28758 66430 p= -20°C to +70 0 C 2675C 86681 (Philips) 2881A iv Signetics Section 1 Data Communications Signetics I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 DESCRIPTION OTHER FEATURES PIN CONFIGURATION The Signetics SCN2651 PCI is a universal synchronous/asynchronous data commu- nications controller chip designed for mi- • Internal or external baud rate clock • 16 internal rates-SO to 19,200 baud • Double buffered transm ilter and re- D1 1 crocomputer systems. It interfaces direct- celver DO ly to the Signetics SCN2650 microproces- • Full or hall duplex operation vcc sor and may be used in a polled or inter- • Fully compatible with 26S0 CPU RiC rupt driven system environment. The • TTL compatible Inputs and outputs SCN2651 accepts programmed instruc- • Single SV power supply i5TR tions from the microprocessor and sup- • No system clock required m ports many serial data communication • 28-pin dual in-line package iiSii disciplines, synchronous and asyn- chronous, in the full or half-duplex mode. BRCLK The PCI serializes parallel data characters APPLICATIONS TxD received from the microprocessor for • Intelligent terminals transmission. Simultaneously, it can • Network processors 1'iCEMi'fiiSCHG receive serial data and convert it into • Front end processors parallel data characters for input to the • Remote data concentrators i5Co microcomputer. • Computer to computer links • Serial peripherals TxRDv The SCN2651 contains a baud rate genera· tor which can be programmed to either TOP VIEW accept an external clock or to generate in- ternal transmit or receive clocks. Sixteen different baud rates can be selected under PIN DESIGNATION program control when operating in the in- ternal clock mode. PIN NO. SYMBOL NAME AND FUNCTION TYPE The PCI is constructed using Signetics 27,28.1.2. 5-8 Do-D7 8-bit data bus I/O n-channel silicon gate depletion load tech· 21 RESET Reset I nology and is packaged in a 28-pln DIP. 12.10 Ao-A1 Internal register select lines I 13 RIW Read or write command I FEATURES 11 CE Chip enable input I • Synchronous operation 22 DSR Data set ready I S to S-blt characters 24 DTR Data terminal ready 0 Single or double SYN operation 23 RTS Request to send 0 Internal character synchronization 17 CTS Clear to send I Transparent or non-transparent mode 16 DCD Data carrier detected I Automatic SYN or DLE-SYN insertion 18 TxEMT/DSCHG Transmitter empty or data set change 0 SYN or DLE stripping 9 TxC Transmitter clock 1/0 Odd, even, or no parity 25 RxC Receiver clock 1/0 Local or remote maintenance loop 19 TxD Transm itter data 0 3 RxD Receiver data I back mode Baud rate: dc to 1M bps (1X clock) 15 TxRDY Transmitter ready 0 14 RxRDY Receiver ready 0 • Asynchronous operation 20 BRCLK Baud rate generator clock I S to 8-blt characters 26 Vee +5V supply I 1,1 1/2 or 2 stop bits 4 GND Ground I Odd, even, or no parity Parity, overrun and framing error de- tection Line break detection and generation ORDERING CODE False start bit detection Vcc=SV±S% Automatic serial echo mode MILITARY PACKAGES COMMERCIAL AUTOMOTIVE Local or remote maintenance loop back mode O·C to +70·C -40·C to +8S·C -SS·C to +12S·C Baud rate: dc to 1M bps (1 X clock) Ceramic DIP SCN2651 CC1128 SCN2651CA1128 SCN2651CM1128 dc to 62.SK bps (16X clock) Plastic DIP SCN2651 CCI N28 Contact Factory Not Available dc to 1S.62SK bps (64X clock) 5ignefics 1·1 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 Table 1 BAUD RATE GENERATOR CHARACTERISTICS CRYSTAL FREQUENCY=5.0688MHz THEORETICAL ACTUAL BAUD FREQUENCY FREQUENCY PERCENT RATE 16X CLOCK 16X CLOCK ERROR DIVISOR 50 0.8 KHz 0.8 KHz -- 6336 75 1.2 1.2 -- 4224 110 1.76 1.76 -- 2880 134.5 2.152 2.1523 0.016 2355 150 2.4 2.4 -- 2112 300 4.8 4.8 -- 1056 600 9.6 9.6 -- 528 1200 19.2 19.2 -- 264 -- 1800 2000 2400 28.8 32.0 38.4 28.8 32.081 38.4 0.253 -- . 176 158 132 3600 57.6 57.6 -- 88 4800 76.8 76.8 -- 66 7200 115.2 115.2 -- 44 9600 153.6 153.6 -- 33 19200' 307.2 316.8 3.125 16 NOTE *Error at 19200 can be reduced to zero by using crystal frequency 4.9152MHz 16X clock Is used In asynchronous mode. In synchronous mode, clock multiplier is 1X. Table 2 CPU· RELATED SIGNALS PIN NAME PIN NO. INPUT/O.UTPUT FUNCTION Vee 26 I +5V supply input GNO 4 I Ground RESET 21 I A high on this input performs a master reset on the SCN2651. This signal asyn- chronously terminates any device activity and clears the Mode, Command and Status registers. The device assumes the idle state and remains there until ini- tialized with the appropriate control words. A,-Ao 10,12 I Address lines used to select internal PCI registers. RIW 13 I Read command when low, write command when high. CE 11 I Chip enable command. When low, indicates that control and data lines to the PCI are valid and that the operation specified by the RIW, A, and Ao inputs should be performed. When high, places the 00-07 lines in the tri-state condition. 07-00 8,7,6,5, 1/0 8-bit, three-state data bus used to transfer commands, data and status between PCI 2,1,28,27 and the CPU. Do is the least significant bit; 07 the most significant bit. TxROY 15 0 This output Is the complement of Status Register bit SRO. When low, it indicates that the Transmit Oata Holding Register (THR) is ready to accept a data character from the CPU. It goes high when the data character is loaded. This output is valid only when the transmitter is enabled. It is an open drain output which can be used as an interrupt to the CPU. RxROY 14 0 This output is the complement of Status Register bit SR1. When low, it indicates that the Receive Data Holding Register (RHR) has a character ready for input to the CPU. It goes high when the RHR is read by the CPU, and also when the receiver is disabled. It is an open drain output which can be used as an interrupt to the CPU. TxEMT10SCHG 18 0 This output is the complement of Status Register bitSR2. When low, it indicates that the transmitter has completed serialization of the last character loaded by the CPU, or that a change of state of the OSR or OCD inputs has occurred. This output goes high when the Status Register is read by the CPU, if the TxEMT condition does not exist. Otherwise, the THR must be loaded by the CPU for this lineto go high. It is an open drain output which can be used as an interrupt to the CPU. 1·2 Signefics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PC I) SCN2651 BLOCK DIAGRAM 1 SYN/DLE CONTROL DATA BUS 00- 0 7 SYN 1 REGISTER SYN 2 REGISTER OLE REGISTER (21) OPERATION CONTROL RESET (12) AO MODE REGISTER 1 (10) A1 RIW (13) MODE REGISTER 2 COMMAND REGISTER _ r-- TRANSMITTER 10-.;...(1...;5)_.... TxiiiiY I-- CE (11) STATUS REGISTER '-_-'-_..JI\. : ) I TRANSMIT DATA HOLDING REGISTER I ,----,.---,V I TRANSMIT SHIFT REGISTER I r(=-19.:..:)_.... TxD (20) BRCLK (9) (25) BAUD RATE GENERATOR AND CLOCK CONTROL --f-- - I-- J RECEIVER f 10--'-(1...;4)'-.... liXiiiW DSR DCD CTs (22) (16) (17) _ MODEM a .-----.---f I RECEIVE DATA HOLDING REGISTER I - (3) RxD (23) CONTROL RTS (24) (26) DTR ....1 - - - - Vcc (4) TxErii'1 (18) _aND iiSciffi BLOCK DIAGRAM Timing Modem Control The PCI consists of six major sections. The PCI contains a Baud Rate Generator The modem control section provides inter- These are the transmitter, receiver, timing, (BRG) which is programmable to accept ex- facing for three input signals and three out- operation control, modem control and ternal transmit or receive clocks or to divide put signals used for "handshaking" and sta- SYN/DLE control. These sections commu- an external clock to perform data commun i- tus indication between the CPU and a nicate with each other via an internal data cations. The unit can generate 16 common- modem. bus and an internal control bus. The internal ly used baud rates, anyone of which can be data bus interfaces to the microprocessor selected for full duplex operation. See Table SYN/DLE Control data bus vi.a a data bus buffer. 1. This section contains control circuitry and Receiver three 8-bit registers storing the SYN1, Operation Control SYN2, and DLE characters provided by the The Receiver accepts serial data on the RxD This functional block stores configuration CPU. These registers are used in the syn- pin, converts this serial input to parallel for- and operation commands from the CPU and chronous mode of operation to provide the mat, checks for bits or characters that are generates appropriate signals to various in- characters required for synchronization, unique to the communication technique ternal sections to control the overall device and sends an "assembled" character to the idle fill and data transparency. operation. It contains read and write circuits CPU. to permit communications with the micro- INTERFACE SIGNALS processor via the data bus and contains Transmitter The PCI interface signals can be grouped Mode Registers 1 and 2, the Command Reg- The Transmitter accepts parallel data from into two types: the CPU-related signals ister, and the Status Register. Details of reg- the CPU, converts itto a serial bit stream, in- (shown in Table 2), which interface the 2651 ister addressing and protocol are presented serts the appropriate characters or bits to the microprocessor system, and the in the PCI Programming section of this data (based on the communication technique) device-related signals (shown in Table 3), sheet. and outputs a composite serial stream of which are used to interface to the communi- data on the TxD output pin. cations device or system. Signetics 1·3 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 Table 3 DEVICE·RELATED SIGNALS PIN NAME PIN NO. INPUT/OUTPUT FUNCTION BRCLK 20 I 5.0688MHz clock input to the internal baud rate generator. Not required if external receiver and transmitter clocks are used. 25 I/O Receiver clock. If external receiver clock is programmed, this input controls the rate at which the character is to be received. Its frequency is 1X, 16X or 64X the baud rate, as programmed by Mode Register 1. Data is sampled on the rising edge oflhe clock. If internal receiver clock is programmed, this pin becomes an output at 1X the pro- grammed baud rate. * 9 I/O Transmitter clock. If exiernal transmitter clock is programmed, this input controls the rate at which the character is transmitted. Its frequency is 1X, 16X or 64X the baud rate, as programmed by Mode Register 1. The transmitted data changes on the falling edge of the clock. If internal transmitter clock is programmed, this pin be- comes an output at 1X the programmed baud rate. * RxD 3 I Serial data input to the receiver. "Mark" is high, "Space" is low. TxD 19 0 Serial data output from the transmitter. "Mark" is high, "Space" is low. Held in Mark condition when the transmitter is disabled. DSR 22 I General purpose input which can be used for Data Set Ready or Ring Indicator con- dition. Its complement appears as Status Register bit SRl. Causes a low output on TxEMT/DSCHG when its state changes. DCD 16 I Data Carrier Detect input. Must be low in order for the receiver to operate. Its com- plement appears as Status Register bit SR6. Causes a low output on TxEMT/DSCHG when its state changes. CTS 17 I Clear to Send input. Must be low in order for the transmitter to operate. If it goes high during transmission, the character in the Transmit Shift Register will be transmitted before termination. DTR 24 0 General purpose output which is the complement of Command Register bit CR1. Normally used to indicate Data Terminal Ready. RTS 23 0 General purpose output which is the complement of Command Register bit CR5. Normally used to indicate Request to Send. NOTE "RX'C and "f"XC outputs have short circuit protection max. CL 100pf OPERATION assumed and the receiver continues to sam- the hunt mode is terminated and character The functional operation of the SCN2651 ple the input line at one bit time intervals assembly mode begins. If single SYN opera- is programmed by a set of control words until the proper number of data bits, the par- tion is programmed, the SYN DETECT sta- supplied by the CPU. These control words ity bit, and the stop bitls) have been assem- tus bit is set. If double SYN operation is specify items such as synchronous or bled. The data is then transferred to the Re- programmed, the first character assembled asynchronous mode, baud rate, number of ceive Data Holding Register, the RxRDY bit after SYN1 must be SYN2 in order for the bits per character, etc. The programming in the status register is set, and the RxRDY SYN DETECT bit to be set. Otherwise, the procedure is described in the PCI Pro- output is asserted. If the character length is PCI returns to the hunt mode. INote thatthe gramming section of this data sheet. less than 8 bits, the high order unused bits in- sequence SYN1-SYN1-SYN2 will not the Holding Register are set to zero. The achieve synchronization!. When synchroni- After programming, the PCI is ready to per- Parity Error, Framing Error, and Overrun zation has been achieved, the PCI continues form the desired communications func- Error status bits are strobed into the status to assemble characters and transfer them to tions. The receiver performs serial to paral- register on the positive going edge of RxC the Holding Register, setting the RxRDY lel conversion of data received from a corresponding to the received character status bit and asserting the RxRDY output modem or equivalent device. The transmit- boundary. If a break condition is detected each time a character is transferred. The PE ter converts parallel data received from the IRxD is low for the entire character as well as and OE status bits are set as appropriate. CPU to a serial bit stream. These actions are the stop bit lsI), only one character consist- Further receipt of the appropriate SYN se- accomplished within the framework specifi- ing of all zeroslwith the FE status bit set) will quence sets the SYN DETECT status bit. If ed by the control words. be transferred to the Holding Register. The the SYN stripping mode is commanded, RxD input must return to a high condition SYN characters are not transferred, to the Receiver before a search for the next start bit begins. Holding Register. Note that the SYN charac- The SCN2651 is conditioned to receive data ters used to establish initial synchronization when the DCD input is low and the RxEN bit When the PCI is initialized into the synchro- are not tran'sferred to the Holding Register in the command register is true. In the nous mode, the receiver first enters the hunt in any case. asynchronous mode, the receiver looks for mode on a 0 to 1 transition of RxEN ICR2!. In a high to low transition of the start bit on the this mode, as data is snifted into the Receiv- Transmitter RxD input line. If a transition is detected, the er Shift Register a bit at a time, the contents The PCI is conditioned to transmit data state of the RxD line is sampled again after a of the reg ister are compared to the contents when the CTS input is low and the TxEN delay of one-half of a bit time. If RxD is now of the SYN1 register. Iflhe two are not equal, command register bit is set. The SCN2651 high, the search for a valid start bit is begun the next bit is shifted in and the comparison indicates to the CPU that it can accept a again. If RxD is still low, a valid start bit is is repeated. When the two registers match, character for transmission by setting the 1·4 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 TxRDY status bit and asserting the TxRoY INITIAL RESET output. When the CPU writes a character into the Transmit Data Holding Register, these conditions are negated. Data is trans- 1 ferred from the Holding Register to the Transmit Shift Register when it is idle or has completed transmission of the previ- ous character. The TxRDY conditions are Mode Register 1 must be written before 2 can be written. Mode Register 2 then asserted again. Thus, one full charac- need not be programmed if external ter time of buffering is provided. clocks are used. In the asynchronous mode, the transmitter automatically sends a start bit followed by the programmed number of data bits, the least significant bit being sent first. It then appends an optional odd or even parity bit NOTE and the programmed number of stop bits. If, SVNl Register must be written following transmission of the data bits, a before SYN2 can be written, and new character is not available in the Trans- SYN2 before OLE can be written. mit Holding Register, the TxD output re- mains in the marking (high) condition and the TxEMTJDSCHG output and its corre- sponding status bit are asserted. Trans- mission resumes when the CPU loads a new character into the Holding Register. The transmitter can be forced to output a contin- uous low (BREAK) condition by setting the Send Break command bit high. In the synchronous mode, when the SCN2651 is initially conditioned to trans- mit, the TxD output remains high and the TxRDY condition is asserted until the first character to be transmitted (usually a SYN character) is loaded by the CPU. Subse- quent to this, a continuous stream of char- acters is transmitted. No extra bits (other than parity, if commanded) are generated by the PCI unless the CPU fails to send a new character to the PCI by the time the transmitter has completed sending the previous character. Since synchronous communication does not allow gaps between characters, the PCI asserts TxEMT and automatically "fills" the gap by transmitting SYN1s, SYN1-SYN2 doublets, or DLE-SYN1 doublets, depend- ing on the state of MR16 and MR17. Normal transmission of the message resumes when a new character is available in the Transmit Figure 1. 2651 Initialization Flow Chart Data Holding Register. If the SEND DLE bit in the command register is true, the DLE character is automatically transmitted prior Table 4 2651 REGISTER ADDRESSING to transmission of the message character in THR. CE A1 Ao R/w FUNCTION PCI PROGRAMMING Prior to initiating data communications, the 1 X X X Tri-state data bus SCN2651 operational mode must be pro- 0 0 0 0 Read receive holding register grammed by performing write operations to 0 0 0 1 Write transmit holding register the mode and command registers. In addi- 0 0 1 0 Read status reg ister tion, if synchronous operation is pro- 0 0 1 1 Write SYN1JSYN2JDLE registers grammed, the appropriate SYNJDLE regis- 0 1 0 0 Read mode registers 1/2 ters must be loaded. The PCI can be 0 1 0 1 Write mode registers 1/2 reconfigured at any time during program 0 1 1 0 Read command register execution. However, if the change has an 0 1 1 1 Write command register effect on the reception of a character the NOTE receiver should be disabled. Alternatively if See AC Characteristics section for timing requirements. Signetics 1·5 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 the change is made 1112 RxC periods after 1 and 2 define the general operational In asychronous mode, MR17 and MR16 RxRDY goes active it will affect the next characteristics of the PCI, while the Com· select character framing of 1, 1.5, or 2 stop character assembly. A flowchart of the in- mand Register controls the operation with· bits. (If 1X baud rate is programmed, 1.5 stop itialization process appears in Figure 1. In this basic frame·work. The PCI indicates bits defaults to 1 stop bits on transmit>' In iis status in the Status Register. these synchronous mode, MR17 controls the The internal registers of the PCI are ac- registers are cleared when a RESET input is number of SYN characters used to establish cessed by applying specific signals to the applied. synchronization and for character fill when CE, AIW, A1 and Ao inputs. The conditions the transmitter is idle. SYN1 alone is used if necessary to address each register are Mode Register 1 (MR1) MR17 = 1, and SYN1-SYN2 is used when shown in Table 4. Table 5 illustrates Mode Register 1. Bits MR17 = O. If the transparent mode is speci- The SYN1, SYN2, and DLE registers are MR11 and MR10 select the communication fied by MR16, DLE-SYN1 is used for char- accessed by performing write operations format and baud rate multiplier. 00 specifies acter fill and SYN Detect, but the normal with the conditions A1 =0, Ao= 1, andRIW= synchronous mode and 1X multiplier. 1X, synchronization sequence is used. Also 1. The first operation loads the SYN1 regis- 16X, and 64X multipliers are programmable DLEstripping and OLE Detect (with MR14= ter. The next loads the SYN2 register, and for asynchronous format. However, the 0> are enabled. the third loads the DLE register. Reading or multiplier in asynchronous format applies loading the mode registers is done in a only if the external clock input option is Mode Register 2 (MR2) similar manner. The first write (or read) selected by MR24 or MR25. Table 6 illustrates Mode Register 2. MR23, operation addresses Mode Register 1, and a MR22, MR21, and MR20 control the fre- subsequent operation addresses Mode Reg- MR13 and MR12 select a character length of quency of the internal baud rate generator ister 2. If more than the required number of 5, 6, 7, or 8 bits. The character length does (BRG>' Sixteen rates are selectable. When accesses are made, the internal sequencer not include the parity bit, if programmed, driven by a 5.0688 MHz input at the BRCLK recycles to point at the first register. The and does not include the start and stop bits input (pin 20>, the BRG output has zero error pointers are reset to SYN1 Register and in asynchronous mode. except at 134.5, 2000, and 19,200 baud, Mode Register 1 by a RESET input or by MR14 controls parity generation. If enabled, which have errors of +0.016%, +0.235%, and performing a "Read Command Register" +3.125% respectively. a parity bit is added to the transmitted operation, but are unaffected by any other character and the receiver performs a parity MR25 and MR24 select either the BRG or the read or write operation. check on incoming data. MR15 selects odd external inputs TxC and RxC as the clock The SCN2651 register formats are summar· or even parity when parity is enabled by source for the transmitter and receiver, ized in Tables 5, 6, 7 and 8. Mode Registers MR14. respectively. If the BRG clock is selected, Table 5 MODE REGISTER 1 (MR1) MRt7 I MR16 MR15 MR14 MR13 I MR12 MR11 I MR10 ParHy Type Parity Control Character Length Mode and Baud Rate Factor ASYNCH: STOP BIT LENGTH 00 = INVALID O=ODD 0= DISABLED 00 = 5 BITS 00 = SYNCHRONOUS IX RATE 01 = 1 STOP BIT 1 = EVEN 1 = ENABLED 01 =6 BITS 01 = ASYNCHRONOUS IX RATE 10 = 11/2 STOP BITS 10=7 BITS 10 = ASYNCHRONOUS 16X RATE 11 = 2 STOP BITS 11 =8 BITS 11 = ASYNCHRONOUS 64X RATE SYNCH: NUMBER SYNCH: TRANS- OF SYN CHAR PARENCY CONTROL o = DOUBLE SYN O=NORMAL 1 = SINGLE SYN 1 = TRANSPARENT NOTE Baud rate factor In asynchronous applies only if external clock is selected. Factor is 16X if internal clock is selected. Mode must be selected (MRll, MR10) in any case. Table 6 MODE REGISTER 2 (MR2) MR27 I MR26 MR25 Transmitter MR24 Receiver MR23 I MR22 I MR21 I MR20 Baud Rate Selection Clock Clock 0= EXTERNAL 0= EXTERNAL 0000 = 50 BAU D 1000 = 1800 BAUD NOT USED 1 = INTERNAL 1 = INTERNAL 0001 = 75 1001 = 2000 0010 = 110 1010 = 2400 0011 = 134.5 1011 =3600 0100 = 150 1100 = 4800 0101 = 300 1101 = 7200 0110 = 600 1110 = 9600 0111 = 1200 1111 = 19,200 1-6 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 the baud rate factor in asynchronous mode sub-mode is determined by CR7 and CR6. SYN Detect status bits (SR3 and SRS). is 16X regardless of the factor selected by CR7-CR6 = 00 is the normal mode, with the MRll and MR1O. In addition, the corre- sponding clock pin provides an output at lX transmitter and receiver operating inde- pendently in accordance with the Mode and Two diagnostic sub-modes can also be configured. In Local Loop Back mode (CR7-CR6 = 101, the following loops are 1 the baud rate. Status Register instructions. connected internally: In asynchronous mode, CR7-CR6 = 01 Command Register (CR) places the PCI in the Automatic Echo mode. 1. The transmitter output is connected to the Table 7 illustrates Command Register. Bits Clocked, regenerated received data is auto- receiver input. CRO (TxENI and CR2 (RxENI enable or matically directed to the TxD line while 2. DTR is connected to DCD and RTS is connect- disable the transmitter and receiver respec- normal receiver operation continues. The ed to CTS. tively. A 0 to 1 transition of CR2 forces start 3. The receiver is clocked by the transmit clock. receiver must be enabled (CR2 = 1I, but the bit search (async mode) or hunt mode (sync 4. The DTR, RTS and TxD outputs are held high. transmitter need not be enabled. CPU to model on the second RxC rising edge. Dis- 5. The CTS, DCD, DSR and RxD inputs are ig- receiver communications continues nor- nored. abling the receiver causes RxRDY to go mally, but the CPU to transmitter link is high (inactivel. If the transmitter is disabled, disabled. Only the first character of a break Additional requirements to operate in the it will complete the transmission of the condition is echoed. The TxD output will go Local Loop Back mode are that CRO (TxEN), character in the Transmit Shift Register (if high until the next valid start is detected. CRl IOTR), and CR5 (RTS) must be set to 1. any) prior to terminating operation. The TxD The following conditions are true while in CR2 (RxEN) is ignored by the PCI. output will then remain in the marking state Automatic Echo mode: The second diagnostic mode is the Remote (highl while the TxRDY and TxEMT will go 1. Data assembled by the receiver is automatically Loop Back mode (CR7-CR6 = 11). In this high (inactive). If the receiver is disabled, it placed in the Transmit Holding Register and mode: will terminate operation immediately. Any retransmitted by the transmitter on the TxD character being assembled will be neglect- output. 1. Data assembled by the receiver is automatically 2. The transmitter is clocked by the receive clock. ed. placed in the Transmii Holding Register and 3. TxRDY output = 1. retransmitted by the transmitter on the TxD Bits CRl (DTR) and CRS (RTSI control the 4. The TxEMT/DSCHG pin will reflect only the output. DTR and RTS outputs. Data at the outputs is data set change condition. 2. The transmitter is clocked by the receive clock. the logical complement of the register data. 5. The TxEN command (CRO> is ignored. 3. No data is sent to the local CPU, but the error In synchronous mode, CR7-CR6 = 01 status conditions (PE, OE, FE) are set. In asynchronous mode, setting CR3 will places the PCI in the Automatic SYN/DLE 4. The RxRDY, TxRDY, and TxEMT/DSCHG out- force and hold the TxD output low (spacing puts are held high. Stripping mode. The exact action taken condition) at the end of the current transmit- 5. CRI (TxENI is ignored. depends on the setting of bits MR17 and 6. All other signals operate normally. ted character. Normal operation resumes MR16: when CR3 is cleared. The TxD line will go high for a least one bit time before begin- 1. In the non-transparent, single SYN mode Status Register ning transmission of the next character in (MR17-MRI6 = 10>, characters in the data The data contained in the Status Register stream matching SYNI are not transferred to (as shown in Table 8) indicate receiver and the Transmit Data Holding Register. In syn- the Receive Data Holding Register (RHR!. transmitter conditions and modem/data set chronous mode, setting CR3 causes the 2. In the non-transparent, double SYN mode transmission of the DLE register contents status. (MRI7-MRI6 = 00>, characters in the data prior to sending the character in the Trans- stream matching SYN1, or SYN2 if immediately SRO is the Transmitter Ready (TxRDY) sta- mit Data Holding Register. CR3 should be preceded by SYN1, are not transferred to the tus bit. It, and its corresponding output, are reset in response to the next TxRDY. RHR. However, onlythefirstSYNl of an SYN1- valid only when the transmitter is enabled. If SYNI pair is stripped. equal to 0, it indicates that the Transmit Setting CR4 causes the error flags in the 3. In transparent mode (MRI6 =1), characters in Data Holding Register has been loaded by Status Register (SR3, SR4, and SRS) to be the data stream matching OLE, or SYNI if cleared. This is a one time command. There the CPU and the data has not been trans- immediately preceded by OLE, are not trans- ferred to the Transmit Shift Register. If set is no internal latch for this bit. ferred to the RHA. However, only the first OLE equal to 1, it indicates that the Holding of a OLE-OLE pair is stripped. The PCI can operate in one of four sub- Register is ready to accept data from the modes within each major mode (synchro- Note that Automatic Stripping mode does CPU. This bit is initially set when the Trans- nous or asynchronousl. The operational not affect the setting of the DLE Detect and mitter is enabled by CRO, unless a character Table 7 COMMAND REGISTER (CR) CR7 I CR6 CRS Request to CR4 CR3 Receive CR2 CRI Data Terminal CRD Transmit Operallng Mode Reset Error Ready Control (TxEN) Send Control (RxEN) ASYNCH: 00 = NORMAL OPERATION 0= NORMAL FORCE BREAK 01 = ASYNCH: AUTOMATIC 0= FORCE RTS 1 = RESET O=NORMAL 0= DISABLE a = FORCE DTR 0= DISABLE ECHO MODE OUTPUT HIGH ERROR FLAG 1 = FORCE 1 = ENABLE OUTPUT HIGH 1 = ENABLE SYNCH: SYN AND/OR 1 = FORCERTs IN STATUS REG BREAK 1 = FORCE DTR OLE STRIPPING MODE OUTPUT LOW (FE,OE, OUTPUT LOW 10 = LOCAL LOOP BACK PE/DLE DETECT) SYNCH: 11 = REMOTE LOOP BACK SEND OLE 0= NORMAL 1 = SEND OLE MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 Table 8 STATUS REGISTER (SR) SR7 SR6 SRS SR4 SR3 SR2 SR1 SRO Data Set Data Carrier FE/SYN Detect Overrrun PE/DLE Detect TxEMT/DSCHG RxRDY TxRDY Ready Detect O=DSR INPUT 0= DCD INPUT ASYNCH: 0= NORMAL 0= NORMAL 0= RECEIVE 0= TRANSMIT IS HIGH IS HIGH 0= NORMAL 1 = OVERRUN ASYNCH: 1 = CHANGE HOLDING REG HOLDING 1 = DSR INPUT 1 =DCD INPUT 1 = FRAMING ERROR 0= NORMAL IN DSROR EMPTY REG BUSY IS LOW IS LOW ERROR 1 = PARITY DCD,OR 1 = RECEIVE 1 = TRANSMIT ERROR TRANSMIT HOLDING REG HOLDING SYNCH: SHIFT REGIS- HAS DATA REG EMPTY O=NORMAL SYNCH: TER IS 1 =SYN CHAR 0= NORMAL EMPTY DETECTED 1 = PARITY ERROR OR DLECHAR RECEIVED has previously been loaded into the Holding ister. Note that in synchronous mode this bit when the receiver is disabled and by the Register. It is not set when the Automatic will be set even though the appropriate "fill" Reset Error command, CR4. Echo or Remote· Loop Back modes are character is transmitted. TxEMT will not go In asynchronous mode, bit SRS signifies programmed. When this bit is set, the active until at least one character has been that the received character was not framed TxRDY output pin is low. In the Automatic transmitted. It is cleared by loading the by the programmed number of stop bits. (If Echo and Remote Loop Back modes, the Transmit Data Holding Register. The 1.S stop bits are programmed, only the first output is held high. DSCHG condition is enabled when TxEN=l stop bit is checked,) If RHR = 0 when SRS = 1 or RxEN=l. It is cleared when the Status a break condition is present. In synchro- SR1, the Receiver Ready (RxRDY) status bit, Register is read by the CPU. When SR2 is nous non-transparent mode (MR16 = 0), it indicates the condition of the Receive Data set, the TxEMT/DSCHG output is low. indicates receipt of the SYN1 .character is Holding Register. If set, it indicates that a single SYN mode or the SYN1-SYN2 pair in character has been loaded into the Holding SR3, when set, indicates a received parity double SYN mode. In synchronous trans- Registerfrom the Receive Shift Register and error when parity is enabled by MR14. In parent mode (MR16 = 1), this bit is set upon is ready to be read by the CPU. If equal to synchronous transparent mode (MR16 = 1), detection of the initial synchronizing char- zero, there is no new character in the Hold- with parity disabled, it indicates that a char- acters (SYNl or SYN1-SYN2) and, after ing Register. This bit is cleared when the acter matching the DLE Register has been synchronization has been achieved, when a CPU reads the Receive Data Holding Regis- received. However, only the first OLE of two DLE-SYN1 pair is received. The bit is reset ter or when the receiver is disabled by CR2. successive DLEs will set SR3. This bit is when the receiver is disabled, when the When set, the RxRDY output is low. cleared when the receiver is disabled and by Reset Error command is given in asynchro- the Reset Error command, CR4. nous mode, and when the Status Register is The TxEMT/DSCHG bit, SR2, when set, read by the CPU in the synchronous mode. indicates either a change of state olthe DSR The Overrun Error status bit, SR4, indicates or DCD inputs or that the Transmit Shift that the previous character loaded into the SR6 and SR7 reflect the conditions of the Register has completed transmission of a Receive Holding Register was not read by DCD and DSR inputs respectively. A low character and no new character has been the CPU at the time a new received charac- input sets its corresponding status bit and a loaded into the Transmit Data Holding Reg- ter was transferred into it. This bit is cleared high input clears it. DC ELECTRICAL CHARACTERISTICS4,S,6 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Input voltage V VIL Low 0.8 VIH High 2.0 Output voltage V VOL Low IOL = 1.6mA 0.4 VOH High IOH = -100"A 2.4 ilL Input leakage current VIN = 0 to S.2SV -10 10 "A Tristate Output leakage current "A ILH Data bus high Vo = 4.0V -10 10 ILL Data bus low Vo = O.4SV -10 10 Icc Power supply current 1S0 mA 1·8 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PC I) SCN2651 ABSOLUTE MAXIMUM RATINGS' PARAMETEr Operating ambient temperature 2 RATING Note 4 UNIT °C 1 Storage temperatUfe -65 to +150 °C All voltages with respect to ground 3 -0.5 to +6.0 V AC ELECTRICAL CHARACTERISTICS4 ,5,6 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Pulse width ns tRES Reset 1000 tCE Chip enable 300 Setup and hold time ns tAS Address setup 20 tAH Address hold 20 tcs RIW control setup 20 tCH RIW control hold 20 tDS Data setup for write 225 tOH Data hold for write 0 tRXS Rx data setup 300 tRxH Rx data hold 350 tOD Data delay time for read CL - 100pF 250 ns tOF Data bus floating time for read CL = 100pF 150 ns tCEo CE to CE delay 700 ns Input clock frequency MHz fBRG Baud rate generator 1.0 5.0688 5.0738 fR/T'o TxC or RxC dc 1.0 Clock width ns tBRH 9 Baud rate high 70 tBRL9 Baud rate low 70 tR/TH TxC or RxC high 500 tR/TL'O TxC or RxC low 500 tTxO TxD delay from falling edge of TxC CL = 100pF 650 ns Ircs Skew between TxD changing and falling CL = l00pF 0 ns edge of TxC outputS NOTES 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the operation section of this specification is not implied. 2. For operating at elevated temperatures, the device must be derated based on +150°C maximum junction temperature. 3. This product includes circuitry specifically designed forthe protection of its internal devices from the damaging effects of excessive static charge. Nonetheless, it is suggested that conventional precau- tions be taken to avoid applying any voltages larger than the rated maxima. 4. Parameters are valid over operating temperature range unless otherwise specified. See order- ing code table for applicable temperature range and operating supply range. 5. All voltage measurements are referenced to ground. All time measurements are at the 50% level for inputs (except tSRH and TSRL) and at O.BV and 2.0V for outputs. Input levels for testing are 0.45V and 2.4V 6. Typical values are at + 25°C, typical supply voltages and typical processing parameters. 7. TxRDY, RxRDY and TxEMT/DSCHG outputs are open drain. 8. Parameter applies when internal transmitter clock is used. 9. Under test conditions of 5.0688MHz 'SRG. tSRH and tSAL measured at V,H and V,L respectively. 10. tRfT and tR/TL shown for all modes except local loopback. For local loop back mode 'R/T=O.7MHz and tRITL=700ns min. Signetics 1·9 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 CAPACITANCE TA = 25°C, Vee = OV LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Capacitance pF C'N Input 20 tc = 1MHz COUT Output Unmeasured pins tied 20 to ground C,IO Input/Output 20 TIMING DIAGRAMS RESET CLOCK -IBRH- _IBRL- I-IRlTH- - I R I T L - RESET - t = I R E S - r - - - - - - - - - - - BRCLK, TXC, RxC.-J -lIIBRG- -1IfRiT TRANSMIT RECEIVE 1 BIT TIME (1,16, OR 64 CLOCK PERIOOS)-f, TXc (IN Pun ~I,----------+~I TxO tTxD ITCS TxC (OUTPUn 1·10 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PC I) SCN2651 TIMING DIAGRAMS (Cont'd) TxRDY, TxEMT (Shown for S-bit characters, no parity, 2 stop bits [in asynchronous mode [ ) 1 TxC(IX) T,D " w TxEN. c 0 IE II) :::> 0 z TiiiDv 0 0: % .. TiEiii (,) z II) CEFOR WRITE OFTHR a DATA' DATA 2 DATA 3 DATA 4 _D_AI' I' C IAI"21314l51B C_D_A I TxD I C I A I DATA 3 DATA 4 I I I gw TxEN IE II) :::> o ~ "Tx'Ao"Y :z: (,) z ~ TxEMT CEFOR WRITE F THR DATA, DATA 2 DATA 3 DATA 4 NOTES A = Start bit B = Stop bit 1 C = Stop bit 2 D = TxD marking condition TxEMT goes low at the beginning of the last data bit, or, if parity is enabled. at the beginning ofthe parity bit. READ AND WRITE CE---". Signetics 1·11 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 TIMING DIAGRAMS (Cont'd) RxRDY (Shown for 5-bit characters, no parity, 2 stop bits I in asynchronous mode J ) RxC 1 I 2 I 3 I 4 11 2 I 3 I 4 I 51 1 I 2 I 3 I 4 I 5 1 I 2 I 3 I 4 I 5 1 I 2 I 3 I 4 I ~ 1 I 2 : 3 I 4 I 15 DATA 3 DATA 4 51 51 RxD SYNl DATAl DATA 2 DATA 5 1 ! II IGNORED w RxEN 0 . 0 :I! :::> 0 SYNDET STATUS BIT z 0 II: :z: u . z >- RxRDY I CeFOR READ U READ READ READ READ READ READ STATUS STATUS RHR RHR RHR RHR (DATA 1) (ilATA2) (DATA. 3) (DATA 3) 21314151BIC All 2 I 3 I 4 I 51 B I C I - I D 1 - A l l I 2 I 3 I 4 I 51 B I RxD DATAl . 1_ DATA 2 _ I _ DATA 3 _ w o o ~ RxEN :::> oz o II: :z: u z ~ STATUS OVERRUN BIT --------------------~--~------------------------~~ CEFOR READ READ READ RHR RHR (DATA 1) (DATA 3) NOTES A = Start bit B = Stop bit 1 C "" Stop bit 2 D = TxD marking condition 1·12 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 TYPICAL APPLICATIONS ASYNCHRONOUS INTERFACE TO CRT TERMINAL 1 S.0688MHz -----1 BRCLK 1.... OSCILLATOR CRT TERMINAL ASYNCHRONOUS INTERFACE TO TELEPHONE LINES PHONE LINE ASYNC INTERFACE MODEM 5.0688MHz OSCILLATOR TELEPHONE LINE Signetics 1·13 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE COMMUNICATIONS INTERFACE (PCI) SCN2651 TYPICAL APPLICATIONS (Cont'dl SYNCHRONOUS INTERFACE TO TERMINAL OR PERIPHERAL DEVICE \ ADDRESS BUS \ I CONTROL BUS \ I I DATA BUS \ .JU~ RxD SCN2651 TxD SYNCHRONOUS RiC TERMINAL OR PERIPHERAL TxC DEVICE SYNCHRONOUS INTERFACE TO TELEPHONE LINES PHONE LINE INTERFACE SYNC MODEM t TELEPHONE LINE Manufacturer reserves the right to make design and process changes and improvements. 1·14 Signe1ics MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 DESCRIPTION comparison for BCP-BOP PIN CONFIGURATION The SCN2652/68652 Multi-Protocol Commu- Idle transmission of SYNC/FLAG or nications Controller (MPCC) is a monolithic MARK for BCP-BOP MM n-channel MaS LSI circuit that formats, transmits and receives synchronous serial data while supporting bit-oriented or byte • Automatic detection and generation 01 special BOP control sequences, i.e., FLAG, ABORT, GA TxC Txsa 1 control protocols. The chip is TTL compat- • Zero insertion and deletion lor BOP TxE ible, operates from a single +5V supply, • Short character detection lor last BOP data character TxU and can interface to a processor with an 8 or l6·bit bidirectional data bus. • SYNC generation, detection, and strip- TxBE ping lor BCP TxA FEATURES • Maintenance Mode for sell-testing • DC to 1Mbps or 2Mbps data rate RESET • TTL compatible • Bit-oriented protocols (BOP): SOLC, VCC AOCCP, HOLC • Single +5V supply DB08 • Byte-control protocols (BCP): DDCMP, APPLICATIONS BISYNC (external CRC) • Intelligent terminals DBOl • Programmable operation • Line controllers DB10 DB02 8 or IS-bit tri-state data bus • Network processors 0811 DB03 Error control-CRC or VRC or none • Front end communications Character length-l to 8 bits lor BOP DB12 DB04 • Remote data concentrators or 5 to 8 bits lor BCP • Communication test equipment DB13 DB05 SYNC or secondary station address • Computer to computer links DB14 DB08 ORDERING CODE DB15 DB07 Vcc=5V±5% ii/w DBEN PACKAGES COMMERCIAL AUTOMOTIVE MILITARY A2 BYTE D·C to + 7D·C - 4D·C to + 85·C -55·Cto +125·C Al AO lMHz SCN2652AC114D SCN2652AA 1140 SCN2652AM1l40 Ceramic DIP TOP VIEW 2MHz SCN2652AC2l40 SCN2652AA2l40 SCN2652AM2140 NOTE 1MHz SCN2652AC1 N40 Contact Factory Not Available 00 is least signtficant bIt, highest number (that is. Plastic DIP DB 15, A2) is most signIficant bit. 2M Hz SCN2652AC2N40 Contact Factory Not Available NOTE: SCN68652 is identical to SCN2652. Order using part numbers shown above. BLOCK DIAGRAM - r- ---16 BITS--- _88IT5_ -Vee PARAMETER CONTROL PARAMETER DATA -GND OB15~~ BUS SYNC/ADDRESS PCSAR CONTROL PCR DBOO REGISTER REGISTER BUFFER - 16,.. 1 1t 1 RECEIVER JI TRANSMITTER OATAlST ATUS RDSR DATAISTATUS TDSR REGISTER REGISTER RESET MM _INTERNAL 16 BUS 16 A2-AO- BYTE_ READ/ "- R/W_WRITE LOGIC CE- DBEN- AND CONTROL ....... I RECEIVER LOGIC AND CONTROL TRANSMITTER LOGIC AND CONTROL Jj II 1L SlF RxE RxA RxDA JCTL RxSA TxE TxA TxBE TxU Signetics 1·15 MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION DB15-DBOO 17-10 1/0 Data Bus: DB07-DBOO contain bidirectional data while DB15-DB08 contain control and status 24-31 information to or from the processor. Corresponding bits of the high and low order bytes can be WIRE OR'ed onto an 8-bit bus. The data bus is floating if either CE or DBEN are low. A2-AO 19-21 I Address Bus: A2-AO select internal registers. The four 16-bit registers can be addressed on a word or byte basis. See Register Address· section. BYTE 22 I Byte: Single byte (8 bit) data bus transfers are specified when this input is high. A low level specifies 16 bit data bus transfers. CE 1 I Chip Enable: A high input permits a data bus operation when DBEN is activated. "R/W 18 I Read/Write: "R/W controls the direction of data bus transfer. When high, the data is to be loaded into the addressed register. A low input causes the contents of the addressed register to be presented on the data bus. DBEN 23 I Data Bus Enable: After A2-AO, CE, BYTE and R/W are set up, DBEN may be strobed. During a read, the 3-state data bus (DB) is enabled with information for the processor. During a write, the stable data is loaded into the addressed register and TxBE will be reset if TDSR was addressed. RESET 33 I Reset: A high level initializes all internal registers (to zero) and timing. MM 40 I Maintenance Mode: MM internally gates TxSO back to RxSI and TxC to RxC for off line diag- nostic purposes. The RxC and RxSI inputs are disabled and TxSO is high when MM is asserted. RxE 8 I Receiver Enable: A high level input permits the processing of RxSI data. A low level disables the receiver logic and initializes all receiver registers and timing. RxA 5 a Receiver Active: RxA is asserted when the first data character of a message is ready for the processor. In the BOP mode this character is the address. The received address must match the secondary station address if the MPCC is a secondary station. In BCP mode, if strip-SYNC (PCSAR13) is set, the first non-SYNC character is the first data character; if strip-SYNC is zero, the character following the second SYNC is the first data character. In the BOP mode, the closing FLAG resets RxA. In the BCP mode, RxA is reset by a low level at RxE. RxDN 6 a Receiver Data Available: RxDA is asserted when an assembled character is in RDSRL and is ready to be presented to the processor. This output is reset when RDSRL is read. RxC 2 I Receiver Clock: RxC (1 X) provides timing for the receiver logic. The positive going edge shifts serial data into the RxSR from RxSI. S/F 4 a SYNC/FLAG: S/F is asserted for one RxC clock time when a SYNC or FLAG.character is detected. RxSN 7 0 Receiver Status Available: RxSA is asserted when there is a zero to one transition of any bit in RDSRH except for RSOM. It is cleared when RDSRH is read. RxSI 3 I Receiver Serial Input: RxSI is the received serial data. Mark = '1', space = '0'. TxE 37 I Transmitter Enable: A high level input enables the transmitter data path between TDSRL and TxSO. At the end of a message, a low level input causes TxSO = 1 (mark) and TxA = 0 after the closing FLAG !BOP) or last character (BCP) is output on TxSO. TxA 34 0 Transmitter Active: TxA is asserted after TSOM (TDSRs) is set and TxE is raised. This output will reset when TxE is low and the closing FLAG (BOP) or last character !BCP) has been output on TxSO. TxBE' 35 a Transmitter Buffer Empty: TxBE is asserted when the TDSR is ready to be loaded with new control informal-ion or data. The processor should respond by loading the TDSR which resets TxBE. TxU' 36 a Transmitter Underrun:TxU is asserted during a transmit sequence when the service ofTxBE has been delayed for one character time. This indicates the processor is not keeping up with the transmitter. Line fill depends on PCSAR11. TxU is reset by REsET or setting of TSOM (TDSRs), synchronized by the falling edge of TxC. TxC 39 I Transmitter Clock: TxC (lX) provides timing for the transmitter logic. The positive going edge shifts data out of the TxSR to TxSO. TxSO 38 a Transmitter Serial Output. TxSO is the transmitted serial data. Mark = '1', space = '0'. Vee 32 I +SV: Power supply. GND 9 I Ground: OV reference ground. "Indicates possible interrupt signal. 1·16 Signetics MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 Table 1 GLOSSARY REGISTERS NO. OF BITS DESCRIPTION' 1 Addressable PCSAR Parameter Control Sync/Address Register 16 PCSARH and PCR contain parameters common to PCR Parameter Control Register 8 the receiver and transmitter. PCSARL contains a programmable SYNC character (BCP) or secondary station address (BOP), RDSR Receive Data/Status Register 16 RDSRH contains receiver status information. RDSRL = RxDB contains the received assembled character. TDSR Transmit Data/Status Register 16 TDSRH contains transmitter command and status information. TDSRL = TxDB contains the character to be transmitted. Internal CCSR Control Character Sh if! Reg ister 8 These registers are used for character assembly HSR Holding Shift Register 16 (CCSR, HSR, RxSR), disassembly (TxSR), and CRC RxSR Receiver Shift Register 8 accumulation/generation (RxCRC, TxCRC)' TxSR Transm itter Sh if! Reg ister 8 RxCRC Receiver CRC Accumulation Register 16 TxCRC Transmitter CRC Generation Register 16 NOTE *H = High byte - bits 15-8 l == Low byte - bits 7-0 Table 2 ERROR CONTROL Table 3 SPECIAL CHARACTERS CHARACTER DESCRIPTION OPERATION BIT PATTERN FUNCTION FCS Frame Check Sequence is BOP transmitted/received as 16 FLAG 01111110 Frame message bits following the last data ABORT 11111111 generation Terminate communication character of a BOP message. 01111111 detection The divisor is usually CRC- GA 01111111 Terminate loop mode repeater CCITT (Xl. + X'2 + X5 + 1) with function dividend preset to 1's but can Address (PCSARL1' Secondary station address be otherwise determined by BCP ECM. The inverted remainder SYNC (PCSARL) or (TxDB)2 Character synchronization is transmitted as the FCS. generation NOTES BCC Block Check Character is 1. (c:a<:) refers to contents of ~ transmitted/received as two 2. For IDLE = 0 or 1 respectively successive characters fol- lowing the last data character 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 of a BCP message. The poly- nomial is CRC-16(X16+X15+ X2 + 1) or CRC-CCITT with dividend preset to O's (as PCSAR I APA 15 I PROTO I SS/GA I SAM I IDLE 14 13 12 11 I 10 ECM 9 8 I S/AR I specified by ECM). The true remainder is transmitted as PCR I TxCL ~XCLEIRXCLEI RxCL I the BCC. 15 14 13 12 11 10 9 8 FUNCTIONAL DESCRIPTION The MPCC can be functionally partitioned RDSR I RERR 15 I 14 A B 13 C 12 I ROR 11 I RAB/ GA 10 I REOM I RSOM I 9 8 RxDB I into receiver logic, transmitter logic, regis- ters that can be read or loaded by the pro- cessor, and data bus control circuitry. The TDSR I TERR I NOT DEFINED I I TGA TABORT I I ITEOM TSOM TxOB 1 register bit formats are shown in figure 1 NOTE while the receiver and transmitter data Refer to Register Formats for mneumonics and description. paths are depicted in figures 2 and 3. Figure 1. Short Form Register Bil Formals Signetics 1·17 MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 BCP.CiiC TO RDSRL RxSI MM ~F~------------;---------+ CRC·16=O BCP COMPARATOR CRC·CCIT = FOBS RESET-----r----~--., RxE RxA RxOA NOTES RxSA 1. Detected in SYNC FF and 7 MS bits of CCSR. 2. In BOP mode, a minimum of two data characters RxC must be received to turn the receiver active. Figure 2. MPCC Receiver DBta Path f~~::' OR PCSARL (SYNC) RESET . r--------~I TxE TxA TRANS· MITTER TxSR(S) L.:J - TxSO CONTROL 1 BIT TxBE LOGIC DELAY TxU BOP M ZERO U INSERTION ZERO TxCRC ACC (16) x LOGIC INSERTION CRC·16 OR CRC·CCITT CONTROL BCP PARITY GENERATION T.e CONTROL CHARACTER GENERATOR NOTES FLAG ABORT GA 1. TxCAC selected if TEOM = 1 and the last data character has been shifted out of TxSR. 2. In BCP, parity selected will be generated after each character is shifted out of TxSR. Figure 3. MPCC Transmitter Data Path 1·18 Signetics MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 RECEIVER OPERATION General After initializing the parameter control re- gisters (PCSAR and PCR), the RxE input PROCESSOR 1 must be set high to enable the receiver data path. The serial data on the RxSI is syn- chronized and shifted into an 8-bit Control Character Shift Register (CCSR) on the MADE EVERY] [ *TESTAxC TIME rising edge of RxC. A comparison between i CCSR contents and the FLAG (BOP) or SYNC (BCP) character is made until a match ~! s:.! -~ is found. At that time, the S/F output is asserted for one RxC time and the IS-bit FOR Holding Shift Register (HSR) is enabled. The BIT TIME receiver then operates as described below. ---- BOP Operation (1) gx~~~~J'~ A flow chart of receiver operation in BOP SUBSEQUENT mode appears in figure 4. Zero deletion CHARACTERS (after five ones are received) is implemented on the received serial data so that a data character will not be interpreted as a FLAG, ABORT, or GA. Bits following the FLAG are shifted through the CCSR, HSR, and into the Receiver Shift Register (RxSR). A char- acter will be assembled in the RxSR and transferred to the RDSRL for presentation to the processor. At that time the RxDA output START OF will be asserted and the processor must take MESSAGE the character no later than one RxC time RAA=1 ., .------t======~I---=--------~ after the next character is assembled in the CH RxSR. If not, an overrun (RDSR11 = 1) will occur and succeeding characters will be lost. RxDA.' - - - - - ' The first character following the FLAG is the s~~ RxDB) secondary station address. If the MPCC is a secondary station (PCSAR12 = 1), the con- tents of RxSR are compared with the add- ress stored in PCSARL. A match indicates the forthcoming message is intended forthe ,- ----- ...... (P:.fo~DR~~~1s YES ... station; the RxA output is asserted, the RDSA~Ov::?:i~R_=~ FLAG character is loaded into RDSRL, RxDA is ~ IN ceSR* >-::N"'O------------------' asserted and the Receive Start of Message bit (RSOM) is set. No match indicates that S/F., FOR OtER"" REOM=1~~~~ YES- END__________________ L.::=--= ? OF M .....E ~ another station is being addressed and the receiver searches for the next FLAG. Figure 4. BOP Receive If the MPCC is a primary station (PCSAR12 = 01, no secondary address check is made; RxA is asserted and RSOM is set once the first non-FLAG character has been loaded before, RxDA is asserted each time a char- length will be changed on the next receiver into RDSRL and RxDA has been asserted. acter has been transferred into RDSRL and character boundary. A received residual Extended address field can be supported by is cleared when RDSRL is read by the pro- (short) character will be transferred into software if PCSAR12 = O. cessor. RDSRH should only be read when RxDB after the previous character in RxDB RxSA is asserted. This occurs on a zero to has been read, i.e. there will not be an over· When the 8 bits following the address char- one transition of any bit in RDSRH except run. In general the last two characters are acter have been loaded into RDSRL and for RSOM. RxSA and all bits in RDSRH protected from overrun. RxDA has been asserted, RSOM will be except RSOM are cleared when RDSRH is cleared. The processor should read this 8- read. The. processor should check RDSRg_ The CRC-CCITT, ii specified by PCSARs- bit character and interpret it as the Control 15 each time RxSA is asserted. If RDSRg is 10, is accumulated in RxCRC on each char- field. set, then RDSR12-15 should be examined. acter following the FLAG. When the closing Received serial data that follows is read and Receiver character length may be changed FLAG is detected in the CCSR, the received interpreted as the Information field by the dynamically in response to RxDA: read the CRC is in the 16-bit HSR. At that time, the processor. It will be assembled into charac- character in RxDB and write the new char- Receive End of Message bit (REOM) will be ter lengths as specified oy PCRS-10. As acter length into RxCl. The character set; RxSA and RxDA will be asserted. The Signetics 1·19 MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 processor should read the last data charac- ter in RDSRL and the receiver status in PROCESSOR RDSR9-15. If RDSR'5 = 1, there has been a transmission error; the accumulated CRC- CCITT is incorrect. If RDSR'2-'4 .. 0, the last data character is not of prescribed length. Neither the received CRC nor clos- ing FLAG are presented to the processor. The processor may drop RxE or leave it active at the end of the received message. BCP Operation The operation of the receiver in BCP mode SIF_1 FOR ONE FlxC BrrnME is shown in figure 5. The receiver initially searches for two successive SYNC charac- ters, of length specified by PCRs-,e, that match the contents of PCSARL. The next non-SYNC character or next SYNC charac- ter, if stripping is not specified (PCSAR '3 = 0), causes RxA to be asserted and enables ~=1 ••- - - - - - - - - - - the receiver data path. Once enabled, all characters are assembled in RxSR and loaded into RDSRL. RxDA is active when a character is available in RDSRL. RxSA is active on a 0 to 1 transition of any bit in RDSRH. The signals are cleared when RxDA=1 (pROCESSOR SHOULD RDSRL or RDSRH are read respectively. READ RxDB) If CRC-16 error control is specified by PCSARs-l0, the processor must determine the last character received prior to the CRC field. When that character is loaded into RDSRL and RxDA is asserted, the received ..... _1 CRC will be in CCSR and HSRL. To check (pROCESSOR SHOULD READ AND EXAMINE for a transmission error, the processor must RDSRH - ROVRN, RERR (IF VRC SPECIFIEDt read the receiver status (RDSRH) and exa- mine RDSR,5. This bit will be set for one character time if an error free message has RxE=O WHEN LAST been received. If RDSR'5 = 0, the CRC-16 is CHARACTER HAS BEEN SERVICED in error. The state of RDSR15 in BCP CRC mode does not set RxSA. Note that this bit NOTES should be examined only at the end of a 1. Test made every Rxe time. 2. Test made on Rx character boundary. message. The accumulated CRC will in- clude all characters starting with the first Figure 5. BCP Receive non-SYNC character if PCSAR'3 = 1, or the character after the opening two SYNC's if PCSAR'3 = O. This necessitates external CRC generation/checking when supporting TRANSMITTER OPERATION sage. TSOM should be cleared at the same IBM's BISYNC. This can be accomplished General time TDSRL is loaded (16-bit data bus) or using the Signetics 2653 Polynomial Gen- immedi!\tely thereafter (8-bit data bus!. After the parameter control registers erator/Checker. See Typical Applications. FLAGs are sent as long as TSOM = 1. For (PCSAR and PCR) have been initialized, counting the number of FLAGs, the proces- TxSO Is held at mark until TSOM (TDSRa) is If VRC had been selected for error control, sor should reassert TSOM in response to set and TxE is raised. Then, transmitter parity (odd or even) is regenerated on each the assertion of TxBE. operation depends on protocol mode. character and checked when the parity bit is received. A discrepancy causes RDSR'5 to All succeeding characters are loaded into be set and RxSA to be asserted. This must BOP Operation TDSRL by the processor when TxBE = 1. be sensed by the processor. The received Transmitter operation for BOP is shown in Each character is serialized in TxSR and parity bit is stripped before the character is figure 6. A FLAG is sent after the processor transmitted on TxSO. Internal zero insertion presented to the processor. sets the Transmit Start of Message bit logic stuffs a "0" into the serial bit stream (TSOM) and raises TxE. The FLAG is used to after five successive "1 s" are sent. This When the processor has read the last char- synchronize the message that follows. TxA insures a data character will not match a acter of the message, it should drop RxE will also be asserted. When TxBE Is asserted FLAG, ABORT, or GA reserved control which disables the receiver logic and initial- by the MPCC, the processor should load character. As each character is transmitted, izes all receiver registers and timing. TDSRL with the first character of the mes- the Frame Check Sequence (FCS) is gener- 1·20 Signetics MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 ated as specified by Error Control Mode (PCSARe-lOl. The FCS should be the CRC- PROCESSOR INITIALIZE PClAR, PCR, TDSAH CCITT polynomial (X16 + X12+ X5+ 1) preset to 1s. If an underrun occurs (processor is 1 not keeping up with the transmitter), TxU and TERR (TDSR15) will be asserted with ABORT or FLAG used as the TxSO line fill depending on the state of IDLE (PCSARlll. T~x~:~ - - - - - The processor must set TSOM to reset the underrun condition. To retransmit the mes- sage, the processor should proceed with the TxBE .. 1 normal start of message sequence. PROCESSOR SHOULD LOAD TxDBANDTSOM_O) 'IL...______ A residual character of 1 to 7 bits may be transmitted at the end of the Information field. In response to TxBE, write the residual fROCESSOA MAY character length into TxCL and load TxDB ETZ:~I~~- with the residual character. Dynamic altera- TxSQ_.oORT=11111111IF IDLE .. O FLAG_Q1111110IF IDLE ... 1 tion of character length should be done in exactly the same sequence. The character length will be changed on the next transmit character boundary. After the last data character has been ON UNDERRUN: TxU_1, TERR ... 1 loaded into TDSRL and sent to TxSR (TxBE (PROCESSOR SHOULD SETTSOM) = 1), the processor should set TEaM (TDSRg). The MPCC will finish transmitting the last character followed by the FCS and the closing FLAG. The processor should TxlE.1 (pROCESSOR SHOULD clear TEaM and drop TxE when the next LOAD TxDB WITH NEXT DATA CHAR) TxBE is asserted. This corresponds to the start of closing FLAG transmission. When TxE has been dropped, TxA will be low 11/2 NO bit times after the last bit of the closing FLAG has been transmitted. TxSO will be marked after the closing FLAG has been transmitted. If TxE and TEaM are high, the transmitter continues to send FLAGs. The processor may initiate the next message by resetting TEaM and setting TSOM, or by loading TDSRL with a data character and then sim- ply resetting TEaM (without setting TSOMl. (PROCESSOR SHOULD RESET TEOM AND SET TSCM OR DROP TJCE) BCP Operation Transmitter operation for BCP mode is shown in figure 7. TxA will be asserted after TSOM = 1 and TxE is raised. At that time SYNC characters are sent from PCSARL or TDSRL (IDLE =0 or 1) as long as TSOM =1. NO TxBE is asserted at the start oftransmission TxA_O of the first SYNC character. For counting the number of SYNC's, the processorshould reassert TSOM in response to the assertion * GA will be transmitted If TGA Is sel together with TEOM of TxBE. When TSOM = 0 transmission is from TDSRL, which must be loaded with characters from the processor each time Figure 6. BOP Transmit TxBE is asserted. If this loading is delayed for more than one character time, an under- run results: TxU and TERR are asserted and the TxSO line fill depend on IDLE (PCSAR11). The processor must set TSOM Signetics 1·21 MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 The default value for all registers is zero. This corresponds to BOP, primary station PROCESSOR mode, 8-bit character length, FCS = CRC- CCITT preset to 1s. TSOM.1 For BOP mode the character length register T_E=1 (PCR) may be set to the desired values '''''=1 _----__ .~-==-----------.--{ during system initialization. The address and control fields will automatically be 8- Tx8E=1 ----I bits. If a residual character is to be transmit- ted, TxCL.should be changed to the residual character length prior to transmission of that character. DATA BUS CONTROL The processor must set up the MPCC regis- la8E_1 ter address (A2-AO>, chip enable (CE), byte (PROCESSOR SHOULD LOAD TxDB) select (BYTE), and read/write (RIW) inputs before each data bus transfer operation. During a read operation (RIW = 0>, the leading edge of OBEN will initiate an MPCC read cycle. The addressed register will place its contents on the data bus. If BYTE = TxU_1, TERR=1 (pROCESSOR SHOULD 1, the 8-bit byte is placed on OB15-08 or SETTSOM_1) TRANSMIT ACCUMULATED DB07-00 depending on the H/L status ofthe Cc,.~: ::~I~~gJ~D~~ register addressed. Unused bits in ROSRL are zero. If BYTE = 0, all 16 bits (OB15-00> Tx8E=1 IPROCESSOR SHOULD contain MPCC information. The trailing CLEAR TEOM AND DROPTxE) edge of DBEN will reset RxOA and/or RxSA TxSO = SYNC OR TxOB DEPENDING ON IDLE BIT if ROSRL or ROSRH is addressed respec- @ - -•• tively. OBEN acts as the enable and strobe so that the MPCC will not begin its internal read """_0 - - - - - 1 cycle until DBEN is asserted. Figure 7. BCP Transmit Ouring a write operation (RIW = 1), data must be stable on OB15-08 and/or OB07-00 prior to the leading edge of OBEN. The and retransmit the message to recover. This LRC or CRC, TEaM should be set only if stable data is strobed into the addressed is not compatible with IBM's BISYNC, so SYNC's are tequired at the end of the register by OBEN. TxBE will be cleared if the that the user must not underrun when sup- message block. addressed register was TDSRH or TOSRL. porting that protocol. Special Case CRC-16, if specified by PCSAR8-10, is gen- The capability to transmit 16 spaces is pro- erated on each character transmitted from vided for line turnaround in half duplex TOSRL when TSOM = O. The processor mode or for a control recovery situation. must set TEOM = 1 after the last data char- This is achieved by setting TSOM and acter has been sent to TxSR (TxBE = 1>' The TEaM, clearing TEaM when TxBE = 1, and MPCC will finish transmitting the last data proceeding as required. character and the CRC-16 field before send- ing SYNC characters which are transmitted as long as TEaM = 1. If SYNCs are not PROGRAMMING desired after CRC-16 transmission, the pro- Prior to initiating data transmission or re- cessor should clear TEaM and lower TxE ception, PCSAR and PCR must be loaded when the TxBE corresponding to the start of with control information from the proces- CRC-16 transmission is asserted, When sor. The contents of these registers (see TEOM = 0, the line is marked and a new Register Format section) will configure the message may be iniated by setting TSOM MPCC forthe user's specific data communi- and raising TxE, cation environment. These registers should be loaded during power-on initialization If VRC is specified, it is generated on each and after a reset operation. They can be data character and the data character changed at any time that the respective length must not exceed 7 bits. For software transmitter or receiver is disabled. 1·22 Signetics MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 Table 4 MPCC REGISTER ADDRESSING BYTE = 0 A2 A1 16-BIT DATA BUS = DB15 - DBOO AD REGISTER 1 0 0 X RDSR 0 1 X TDSR 1 0 X PCSAR 1 1 X PCR" BYTE = 1 6-BIT DATA BUS = DB7_0 or DB15-8** 0 0 0 RDSRl 0 0 1 RDSRH 0 1 0 TDSRl 0 1 1 TDSRH 1 0 0 PCSARl 1 0 1 PCSARH 1 1 0 PCRl" 1 1 1 PCRH NOTES * peR lower byte does not exist. It will be all "O"s when read. ** Corresponding high and low order pins must be tied together. Table 5 PARAMETER CONTROL REGISTER (PCR)-(R/W) BIT NAME MODE FUNCTION 00-07 Not Defined 08-10 RxCl BOP/BCP Receiver Character length is loaded by the processor when RxClE = O. The character length is valid after transmission of single byte address and control fields have been received. 10 9 8 Char. length !blts! 0 0 0 8 0 0 1 1 0 1 0 2 0 1 1 3 1 0 0 4 1 0 1 5 1 1 0 6 1 1 1 7 11 RxClE BOP/BCP Receiver Character length Enable should be zero when the processor loads RxCL. The remaining bits of PCR are not affected during loading. Always 0 when read. 12 TxClE BOP/BCP Transmitter Character length Enable should be zero when the processor loads TxCL. The remaining bits of PCR are not affected during loading. Always 0 when read. 13-15 TxCL BOP/BCP Transmitter Character Length is loaded by the processor when TxCLE = O. Character bit length specification format is identical to RxCL. It is valid after transmission of single byte address and control fields. Signetics 1-23 MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 Table 6 PARAMETER CONTROL SYNC/ADDRESS REGISTER (PCSAR)·(RIW) BIT NAME MODE FUNCTION 00-07 S/AR BOP SYNC/ADDRESS Register. Contains the secondary station address if the MPCC is a secondary station. The contents of this register is compared with the first received non- FLAG character to determine if the message is meant for this station. BCP SYNC character is loaded into this register by the processor. It is used for receive and transmit bit synchronization with bit length specified by RxCl and TxCL. 08-10 ECM BOP/BCP Error Control Mode 10 9 8 Suggested Mode Char. length CRC-CCITT preset to 1's 0 0 0 BOP 1-8 CRC-CCITT preset to O's 0 0 1 BCP 8 Not used 0 1 0 --- CRC-16 preset to O's 0 1 1 BCP 8 VRC odd 1 0 0 BCP 5-7 VRC even 1 0 1 BCP 5-7 Not used 1 1 0 --- No error control 1 1 1 BCP/BOP 5-8 ECM should be loaded by the processor during initialization or when both data paths are idle. 11 IDLE Determines line fill character to be used if transmitter underrun occurs ITxU asserted and TERR set) and transmission of special characters for BOP/BCP. BOP IDLE = 0, transmit ABORT characters during underrun and when TABORT = 1. IDLE = 1, transmit FLAG characters during underrun and when TABORT = 1. BCP IDLE = 0 transmit initial SYNC characters and underrun line fill characters from the S/AR. IDLE = 1 transmit 'initial SYNC characters from TxDB and marks TxSO during under- run. 12 SAM BOP Secondary Address Mode = 1 if the MPCC is a secondary station. This facilitates automatic recognition of the received secondary station address. When transmitting, the processor must load the secondllry address into TxDB. SAM = 0 inhibits the received secondary address comparison which serves to activate the receiver after the first non-FLAG character has been received. 13 SS/GA Strip SYNC/Go Ahead. Operation depends on mode. BOP SS/GA =1 is used for loop mode only and enables GA detection. When a GA is detected as a closing character, REOM and RAB/GA will be set and the processor should terminate the repeater function. SS/GA =0 is the normal mode which enables ABORT detection. It causes the receiver to terminate the frame upon detection of an ABORT or FLAG. BCP SS/GA = 1, causes the receiver to strip SYNC's immediately following the first two SYNC's detected. SYNC's in the middle of a message will not be stripped. SS/GA = 0, presents any SYNC's after the initial two SYNC's to the processor. 14 PROTO Determines MPCC Protocol mode BOP PROTO = 0 BCP PROTO = 1 15 APA BOP All Parties Address. If this bit is set, the receiver data path is enabled by an address field of '11111111' as well as the normal secondary station address. Table 7 TRANSMIT DATA/STATUS REGISTER (TDSR) (R/W except TDSR 15) BIT NAME MODE FUNCTION 00-07 TxDB BOP/BCP Transmit Data Buffer. Contains processor loaded characters to be serialized in TxSR and transmitted on TxSO. 08 TSOM Transmitter Start of Message. Set by the processor to initiate message transmission provided TxE = 1. BOP TSOM = 1 generates FLAGs. When TSOM = 0 transmission is from TxDB and FCS generation (if specified) begins. FCS, as specified by PCSAR._ 10, should be CRC- CCITT preset to 1'so BCP TSOM = 1 generates SYNCs from PCSARL or transmits from TxDB for IDLE = 0 or 1 respectively. When TSOM = 0 transmission is from TxDB and CRC generation lif specified) begins. 1·24 Signetics MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 Table 7 TRANSMIT DATA/STATUS REGISTER (TDSR) (RIW except TDSR 15) (Continued) BIT 09 NAME TEOM MODE FUNCTION Transmit End of Message. Used to terminate a transmitted message. 1 BOP TEOM = 1 causes the FCS and the closing FLAG to be transmitted following the transmission of the data character in TxSR. FLAGs are transmitted until TEOM = O. ABORT or GA are transmitted if TABORT or TGA are set when TEOM = 1. BCP TEOM = 1 causes CRC-16 to be transmitted (if selected) followed by SYNCs from PCSARL or TxDB (IDLE = 0 or 1,. Clearing TEOM prior to the end of CRC-16 transmission (when TxBE = 1) causes TxSO to be marked following the CRC-16. TxE must be dropped before a new message can be initiated. If CRC is not selected, TEOM should not be set. 10 TABORT BOP Transmitter Abort = 1 will cause ABORT or FLAG to be sent (IDLE = 0 or 1) after the current character is transmitted. (ABORT = 11111111) 11 TGA BOP Transmit Go Ahead (GA) instead of FLAG when TEOM = 1. This facilitates repeater termination in loop mode. (GA = 01111111) 12-14 Not Defined Transmitter Error = 1 indicates the TxDB has not been loaded in time (one character 15 TERR Read time -112 TxC period after TxBE is asserted) to maintain continuous transmission. TxU only will be asserted to inform the processor of this condition. TERR is cleared by setting TSOM. See timing diagram. BOP ABORT's or FLAG's are sent as fill characters (IDLE = 0 or 1) BCP SYNC's or MARK's are sent as fill characters (IDLE = 0 or 1), For IDLE = 1 the last character before underrun is not valid. Table 8 RECEIVER DATA/STATUS REGISTER (RDSR)·(Read Only) BIT NAME MODE FUNCTION 00-07 RxDB BOP/BCP Receiver Data Buffer. Contains assembled characters from the RxSR. If VRC is specified, the parity bit is stripped. OS RSOM BOP Receiver Start of Message = 1 when a FLAG followed by a non-FLAG has been received and the latter character matches the secondary station address if SAM = 1. RxA will be asserted when RSOM = 1. RSOM resets itself after one character time and has no effect on RxSA. 09 REOM BOP Receiver End of Message = 1 when the closing FLAG is detected and the last data character is loaded into RxDB or when an ABORTIGA character is received. REOM is cleared on reading RDSRH, reset operation, or dropping of RxE. 10 RAB/GA BOP Received ABORT or GA character = 1 when the receiver senses an ABORT character if SS/GA = 0 or a GA character if SS/GA = 1. RAB/GA is cleared on reading RDSRH, reset operation, or dropping of RxE. A received ABORT does not set RxDA. 11 ROR BOP/BCP Receiver Overrun = 1 indicates the processor has not read last character in the RxDB within one character time +1/2 RxC period after RxDA is asserted. Subsequent char- acters will be 10st.RORisclearedon readingRDSRH,resetoperation,ordroppingof RxE. 12-14 ABC BOP Assembled Bit Count. Specifies the numberof bits in the last received data character of a message and should be examined by the processor when REOM = 1 (RxDA and RxSA asserted). ABC = 0 indicates the message was terminated (by a FLAG or GA) on a character boundary as specified by PCRS-10. Otherwise, ABC = number of bits in the last data character. ABC is cleared when RDSRH is read, reset operation, or dropping RxE. The residual character is right justified in RDSRL. 15 RERR BOP/BCP Receiver Error indicator should be examined by the processor when REOM 1 inBOP, or when the processor determines the last data character of the message in BCP with CRC or when RxSA is set in BCP with VRC. CRC-CCITT preset to 1's/O's as specified by PCSARs-1O: RERR = 1 indicates FCS error (CRC '" FOBS/", 0) RERR = 0 indicates FCS received correctly (CRC = FOB 1=0) CRC-16 preset to O's on S-bit data characters specified by PSCARs-1o: RERR = 1 indicates CRC-16 received correctly (CRC = 0). RERR = 0 indicates CRC-16 error (CRC '" 0) VRC specified by PCSARs-1Q: RERR = 1 indicates VRC error RERR = 0 indicates VRC is correct Signetics 1·25 MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 ABSOLUTE MAXIMUM RATINGS1 PARAMETER RATING UNIT TA Operating ambient temperature2 Note 4 °C T STG Storage temperature -65 to +150 °C Input or output voltages with respect to GND3 -0.3 to +15 V Vcc With respect to GND -0.3 to+7 V DC ELECTRICAL CHARACTERISTICS4,5 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Input voltage V Vil Low 0.8 VIH High 2.0 Output voltage V VOL Low IOl = 1.6mA 0.4 VOH High IOH = -100/LA 2.4 Icc Power supply current Vcc - 5.25V, TA - O°C 150 mA Leakage current /LA III Input VIN = 0 to 5.25V 10 IOl Output VOUT = 0 to 5.25V 10 Capacitance pF CIN Input VIN = OV, f = 1MHz 20 COUT Output VOUT = OV, f = 1MHz 20 AC ELECTRICAL CHARACTERISTICS4 ,5,6 1MHz Clock Version 2M Hz Clock Version PARAMETER UNIT Min Typ Max Min Typ Max Setup and hold time ns tACS Address/control setup 50 50 tACH Address/control hold 0 0 tos Data bus setup (write) 50 50 tOH Data bus hold (write) 0 0 tRXS Receiver serial data setup 150 150 tRxH Receive serial data hold 150 150 Pulse width ns tRES RESET 250 250 tOBEN DBEN 250 m7 200 m7 Delay time ns too Data bus (read) 200 170 ITxo Transmit serial data 325 250 tOBENO DBEN to DBEN delay 200 200 tOF Data bus float time (read) 150 150 ns f Clock (RxC, TxC) frequency 1.0 2.0 MHz tClK1 Clock high (MM - OJ 340 165 ns tClK1 Clock high (MM = 1) 490 240 tClKO Clock low 490 240 1·26 Signetics MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 NOTES 1. Stresses above those listed under "Absolute Maximum Ratings" may cause 4. Parameters are valid over operating temperature range unless otherwise specified. permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the operation sections of this specification is not implied. See ordering code table for applicable temperature range and operating supply range. 5. All voltage measurements are referenced to ground. All time measurements areat 1 2. For operating at elevated temperatures the device must be derated based on +15QoC o.av or 2.0V. Input voltage levels for testing are O.4V and 2.4V. maximum junction temperature. 6. Output load CL =100pF. 3. This product includes circuitry specifically designed for the protection of its internal 7. m =TxC low and applies to writing to TDSRH only. devices from the damaging effects of excessive static charge. Nonetheless, it is suggested that conventional precautions be taken to avoid applying any voltages larger than the rated maxima. TIMING DIAGRAMS RESET READ AND WRITE DATA BUS OBEN IOBEN- AO-A2 -------"'x ::.=..--------.::,: -~----------- IACS---ti-J'" -'ACH ------------ -~---------- CE'RIWi~'.... BYTE 'ACS NOT I-'ACH 0 0 -0 15 - (READ) FLOATING Jl VALID A VALID A FLOATING -'OO-t I-'OF 00- 0 15 (WRITE) 'OS-t - - A -~'OH CLOCK 1------1/1-----·1 TxC TxSO X l ----+---JI~----------_r-------------- I-TxO-1 I I RxC *,-------- 1 - IClKO-I-IClK1- I I I 1-'Rxs-I_'RxH-l RxSI ~! I I Signetics 1·27 MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 TIMING DIAGRAMS (Cont'd) TRANSMIT-START OF MESSAGE TxC ---------8 T x C ' - - - - - - - - ; f - - - . J SYNC/FLAG' 1ST CHAR TxBE LOAD 'st CHAR RESET TSOM LOAD 2nd CHAR ~ DBEN TxE -_.... TxA -----_.... 1, SYNC may be 5 to 8 bits and will contain parity bit as specified. 1s1 CHAR 2. TxA goes high relative to TxC rising edge after TSOM has been set and TxE has been raised. 3. TxBE goes low relative to DB EN falling edge on the first write transfer into TOSR.1t is reasserted 1 TxC time before the first bit of the transmitted SYNC/FLAG. TxBE then goes low relative to DBEN falling edge when writing into TDSRH andlor TDSRL. It is reasserted on the rising edge of the TxC that corresponds to the transmission afthe last bit of each character, except in eop mode when the CRC isto be sent as the next character (see Transmit Timing-End of Message), TRANSMIT-END OF BOP MESSAGE TxSO NEXT TO LAST CHAR LAST CHAR CRC MARK LOAD LAST CHAR SETTEOM RESET TEOM I ~ DBEN I--------r----- T.A6------------------------------------------------------~,,-------- \I NOTES 4. TxBE goes low relative to the falling edge of DB EN corresponding to loading TDSRH/L. It goes high one TxC before character transmission begins and also when TxA has been dropped. 5. TxE can be dropped before resetting TEOM if TxBE (corresponding to the closing FLAGI is high. Alternatively TxE can remain high and a new message initiated. 6. TxA goes low after TxE has been dropped and 1 1/2 TxC's after the last bit of the closing FLAG has been transmitted. 1-28 Signetics MICROPROCESSOR DIVISION JANUARY 1963 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 TIMING DIAGRAMS (Cont'dJ TRANSMIT TIMING-END OF BCP MESSAGE 1 TxSO NEXT TO LAST CHAR LAST CHAR MARK ----------~--------~----------~ TXBE~ LOAD LAST CHAR SET TEOM RESET TEOM DBEN J . . . ____---In'L.________...Jnl...__________ TxE 1------------------------ TxA NOTES 1---------- 7. When 2652 generated CRC is not required, TEOM should only be set if SYNCs are to follow the message block. In that case, TxE should be dropped in response to TxBE (which corresponds to the start of transmission of the last character), When CRC is required, TxE must be dropped before CRC transmission is complete. Otherwise, the contents of TxDB will be shifted out on TxSO. This facilitates transmission of con- tiguous messages. TRANSMIT UNDER RUN TXU!.-J ____________~~SETTSOM DBEN:.. IL- NOTES 8. TxU goes active relative to TxC falling edge if TxBE has not been serviced after n-1/2 = TxC times (where n transmit character length). TxU is reset on the TxC falling edge following assertion of the TSOM command. 9. An underrun will occur at the next character boundary if TEOM is reset and the transmitter remains enabled, unless the TSOM command is asserted or a character is loaded into the TxDB. Signetics 1-29 MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 TIMING DIAGRAMS (Cont'dl RECEIVE-START OF MESSAGE RxA 1st CHAR READY TO BE READ -rf-----., 2nd CHAR READY TO BE READ -r----., DB EN SlF" --~I ,--, I~ ____________________________ ~ _____ RxE J NOTES 9. RxA goes high relative to falling edge of Rxe when RxE is high and: a. A data character following two SYNC's is in RxDB (BCP model b. Character following FLAG is in AxDS (BOP primary station model c. Character following FLAG is in RxDB and character matches the secondary station address or Art Parties Address (BOP secondary station mode). 10. RxDA goes high on Axe falling edge when a character in RxDB is ready to be read. It comes up before RxSA and goes low on'the falling edge of DBEN when RxDB is read. 11. S/F goes high relative to rising edge of Axe anytime a SYNC (BCP) or FLAG (BOP) is detected. RECEIVE END OF MESSAGE RxC RxDA --.........It..... DBEN (S-BIT) - - - - - - - - - ' SlF ~~ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ RxE'3 1--------------------------------- RxAt4 1------------, NOTES 12. At the end of a BOP message, RxSA goes high when FLAG detection (S/F= 1) forces REOM to be set. Processor should read the last data character (ROSRL) and status (ROSRH) which resets RxOA and RxSA respectively. For BCP end of message, RxSA may not be set and SI F = O. The processor should read the last data character and status. 13. RxE must be dropped forBCPwith non-contiguous messages. It may be left on at the end of a BOP message (see BOP Receive Operationl. 14. RxA is reset relative to the falling edge of Rxe after the closing FLAG of a BOP message IREOM = 1 and RxSA active;) or when AxE is dropped. 1·30 Signetics MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 TYPICAL APPLICATIONS 2652 MPCC MICROPROCESSOR INTERFACE 1 I RESET rl 1- jL-_....,,......_--, TS BUFFER ~-"~ L...::::JI'OR DATA BUS STATUS I_-T:..:X:.:C'-----B--I LR RxC -"7R'I- 1----'---1L:;,J LR DBO~ DB7 8·BIT SYNCHRO· MPCC NOUS ,"P SCN2652 MODEM ADDRESS CONTROL A2-AO, iilw DBEN CE I-_Tc.:X.:.SO"--I-§}--- t.? ._- RxSI ~ ~ 1-----Il:::J LR .. MODEM CONTROL LOGIC IIRxE TxE 1~______-4~D~C~D__~C_T_S________________~ IRTS' CTS, DTR,DSR, DCD NOTES 1. Possible ~p interrupt requests are: RxDA, RxSA, TxBE, TxU. 2. Other 2652 status signals and possible uses are: S/F line: idle indicator, frame delimiter. RxA handshake on AxE, line turn around control TxA handshake on TxE, line turn around control. 3. Une Drivers/Receivers (LD/lR) convert EIA to TTL voltages and vice-versa 4. RTS should be dropped after the CRC (BCP) or FLAG (BOP) has been transmitted. This forces eTS low and TxE low. 5. Corresponding high and low order bits of DB must be OR tied. DMA/PROCESSOR INTERFACE DATA BUS 8 OR 16 BITS ~ l WORD COUNT I RDREQ RxDA a DB15-DBOO RxA s DATA BUS } DATA BUS I ADDRESS PTR I RxE TO PROfESSOR I RIW CONTROL I RxSA WRREQ TxBE TxA PROCESSOR (P) TxE AND SCN2652 I-- RxDA iilW TxU SUPPORT LOGIC: DMA MEMORY 1. INITIALIZES I--TXBE CONTROLLER SIF SCN2652 A2-AO 2. SETSIRESETS TSOM, TEOM SCN2652 BYTE 3. RESPONDS ADDRESS AND RESET iilw TO RxSA CONTROL CE MM DBEN _ ADDRESS, ADDRESS, iilW, ADDRESS, RIW CONTROLS RxC TxC RxSI TxSO CONTROL CE, RIW t I I 1 t> MODEM OR DCE SYSTEM ADDRESS AND CONTROL BUS For non-DMA operation, TxBE and RxDA are sent to the processor which then loads or reads data characters as required. Signetics 1·31 MICROPROCESSOR DIVISION JANUARY 1983 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER SCN2652/SCN68652 TYPICAL APPLICATIONS (Cont'd) CHANNEL INTERFACE COMPUTER COMPUTER OR MPCC MPCC OR TERMINAL SCN2652 SCN2652 TERMINAL RxSI TxSO No Modem-DC Baseband Transmission 265212653 INTERFACE TYPICAL PROTOCOLS: BISYNC, DDCMP, SDLC, HDLC INTERRUPTS TxBE TxU RxDA Rx5A U DB7-DBO II _ _ TxD MPCC SCN2652 A2 -RxD A1 AO _TxC ii/w _RxC DBEN CE DB7-DBO CPU .Q, ....y CEO PGC SCN2653 A1 ii/w AO CE1 f t 5V iNT (OPEN DRAIN) I 1·32 Signetics MICROPROCESSOR DIVISION JANUARY 1983 POLYNOMIAL GENERATOR CHECKER (PGC) SCN2653/SCN68653 DESCRIPTION SCN2661 Enhanced Programmable Commu· PIN CONFIGURATION The Signetics SCN2653/68653 Polynomial Generator Checker (PGC) is a polynomial generator checker/character comparator nications Interface (EPCI). When used in BISYNC modes with the SCN2661, software requirements are minimized by the SCN2653- 1 SCN2661 control character comparisons, CEO circuit that complements a receiver/trans- character sequence comparisons, and auto· eEl mitter (R/T or USART/USRT/UART) in the matic OLE insertion/detection. support of character oriented data link con- R/W trols. Table 1 defines many of the more Other bus oriented R/Ts can be interfaced AO commonly used PGC terms and abbrevi· to the PGC with a minimum of external cir- ations. cuitry. See figure 1 for a typical system con- Parallel data characters transferred be- figuration. tween the CPU and R /T are monitored by This NMOS LSI circuit is TTL compatible. the PGC which performs block check char- operates from a single + 5V supply and is TOP VIEW acter (BCC) and parity (VRC) genera- contained in a 16 pin dual in line package. tion/checking, single character detection, and two character sequence detection. FEATURES Since the PGC operates on parallel charac- • Parallel Block Check Character APPLICATIONS ters, the data transmission format may be accumulation / checking: CRC-16, • Character oriented data link control: serial (synchronous or asynchronous) or CRC-12, LRC-8 -dedicated to one USART /USRT parallel. • BISYNC normal and transparent modes -multiplexed among several There are four modes of BCC accumUlation • Automatic or single character accumu- USART /USRTs and each mode can select one of three poly· lation modes • Automated BISYNC with 2661 (minimal nomials to compute the BCC. In the BISYNC • Character detection - up to 128 charac- software intervention) normal and transparent modes, the PGC de- ters • BCC and VRC generation/detection on termines which characters are to be accu- • Two character sequence detection; ex- a block of memory or peripheral data mulated and which characters are to be ex- amples: DLE-STX, ACK 0, ACK 1, • Programmable character array compa- cluded from the accumulation. The block WACK, RVI, DISC, WBT rator terminating characters and the initiation and • 6, 7, or 8-bit characters terminetion of BISYNC transparent text can • VRC generation/checking on data bus be detected and an interrupt generated. The • Four maskable interrupt conditions BLOCK DIAGRAM single interrupt output represents the inclu- • Four classes of characters The PGC consists of six major sections. sive OR of four maskable status conditions. • Internal power-on reset These are the operation control, character • Maximum character accumulation rate class array, OLE ROM, character register, In the automatic accumulation mode, all of 500 kHz (4 Mbps) BCC and parity generators, and BCC regis- characters are accumulated while the single • Directly compatible with Signetics ters. These sections communicate with accumulate mode requires a specific accu- SCN2651, SCN2652 and SCN2661 each other via an internal data bus and an mulation command for each character to be • No system clock required internal control bus. The internal data bus accumulated. • TTL compatible inputs and outputs interfaces to the CPU data bus via a data Character accumulation control and charac- • Single 5V supply bus buffer. ter comparisons are facilitated by a charac- • 16-pln dual In line package ter class array which places each of 128 characters into one of four character ORDERING CODE classes. The four classes are normal, SYN/BISYNC not included, block terminat- COMMERCIAL RANGES PACKAGES ing character (BTC)/search character (SC), Vcc=5V ±5%, TA=O·Cto +70·C and secondary search character (SSC). Ceramic DIP SCN2653AC4116 Additional PGC applications include off-line Plastic DIP SCN2653AC4N16 R/T operation where the BCC is generated NOTE: on data not sent to the R/T, BCC mUltiplex- SCN68653 Is Identical to SCN2653. Order using part numbers shown above. ing by sharing the PGC among several R/Ts and reading/writing the partial BCC accu- mulation on a character by character basis, VRC generation / checking on characters appearing on a bidirectional data bus, and programmable character comparisons or searches. PGC operation is half duplex (either receive or transmit, one way or two way alternate). Full duplex (two way simultaneous) is achieved by using two PGCs. The device is directly com- patible with the Signetics SCN2651 Program- mable Communications Interface (PCI) and Signetics 1·33 MICROPROCESSOR DIVISION JANUARY 1983 POLYNOMIAL GENERATOR CHECKER. (PGC) SCN2653/SCN68653 BLOCK DIAGRAM ~ I ~ I DO-D7 <- DATA BUS BUFFER CHARACTER REGISTER DATA BUS L I + r-- I .( lIB OPERATION CONTROL DLE @ DETECT BCCANDVRC . R f=-- z GENERATION UNIT AU ... MODE REGISTER -~ ...rnZ 1 • r- ~181 •z'" COMMAND REGISTER 1 STATUS REGISTER n 0 z iI0 r- ~. ~ d 0 . r- C c I ~EC/XMT TxD -rl DATAD~ ADDRESS, DATA, iilw, CEO _RxD CPU CE1 PGC l- INT ONE PGC IS TIME·SHARED BY THREE RITa. THE CPU READS AND RESTORES THE PARTIAL BCC REMAINDER FOR EACH SERIAL CHANNEL. Figure 10. PGC Services Multiple Receivers/Transmitters 1·46 Signetics MICROPROCESSOR DIVISION JANUARY 1983 POLYNOMIAL GENERATOR CHECKER (PGC) SCN2653/SCN68653 1 Tx HOLDING REGISTER AVAILABLE RE~~~~'II~~~:J~~i~~~CC CHANNELl BCC AND CHANNEL POINTER. MODE DATA READ MODE REGISTER AND BCC.1 AND STORE IN SAVE AREA. MODE R~(lISTER YES Figure 11. Multiplexed PGC - Transmit to R/T Rx HOLDING REGISTER READY NO READ BCC. 1 AND STORE IN BCC SAVE AREA SPECIFIED BY CHANNEL POINTER. READ MODE REGISTER AND STORE IN SAVE AREA. YES Figure 12. Multiplexed PGC - Receiver from R/T 5ignetics 1·47 MICROPROCESSOR DIVISION JANUARY 1983 POLYNOMIAL GENERATOR CHECKER (PGC) SCN2653/SCN68653 INT CEI I 1 AO,A1,illw poc 1- r-- H PERIPHERAL DEVICE I- CPU DATA BUS 8/ / H I ~ SLAVE CPU - lilW MEMORY I- APPLICATIONS I NCLUDE CHARACTER ARRAY MA,MC COMPARISIONS, VRC AND/OR BCC CHECKS ON THE DATA B US. NOTE • CPU Initiallz•• DMA controller for .ach block trenef.' of chit•• - DMA' CONTROLLER ,~ '!:EO. I Figure 13. PGC Data Bus Monitoring with DMA Transfers ABSOLUTE MAXIMUM RATINGS1 PARAMETER RATING UNIT Operating ambient temperature2 Oto +70 ·C Storage temperature ·65 to +150 ·C All voltages with respect to ground3 ·0.5 to +6.0 V NOTES 1. Str••a8a above thoa.lilted under "Absolute Maximum Rating." may cause permanent damage to the device. This is a stre88 rating only and functional operation of the device at the•• or al any other condition above tho•• indicated In the operation sections of this specification Is not implied. 2. For operating at elevated temperatures the device must be derated based on + 150°C maximum Junction tamperatur•. 3. This product include. circuitry specifically designed for the protection of its internal device. from the damaging effecta of excessive static charge. However. It is suggest- ed that conventional precautions be taken to avoid applying any voltages larger than the rated maxima. 1·48 Signetics MICROPROCESSOR DIVISION JANUARY 1983 POLYNOMIAL GENERATOR CHECKER (PGC) SCN2653/SCN68653 DC ELECTRICAL CHARACTERISTICS TA = o·C to 70·C, vcc = 5.0V ± 5% PARAMETER TEST CONDITIONS Min LIMITS Typ Max UNIT 1 Input voltage V VIL Low 0.8 VIH High 2.0 Output voltage V VOL Low IOL = 2.2mA 0.25 0.45 VOH High IOH = -400/LA 2.4 2.8 IlL Input load current VIN = a to 5.5V 10 /LA Output leakage current /LA ILO Data bus VOUT = 4.0V 10 ILO Open drain VOUT = 4.0V 10 ICC Power supply current 45 75 mA AC CHARACTERISTICS TA = a· to +70·C, VCC = 5V ± 5%',2,3 LIMITS PARAMETER UNIT Min Max tCE Chip enable pulse width 250 ns tCEO Chip enable period 0 1750 ns tCEC 4 Chip enable period C 1750 ns tAS Address setup 10 ns tAH Address hold 10 ns tcs Control setup 10 ns tCH Control hold 10 ns tOS5 Data setup 150 ns tOH Data hold 10 ns tOOB Data delay time for read 200 ns tOF 6 Data bus floating time for read 100 ns tlNTL7 Interrupt low delay 1600 ns tlNTH7 Interrupt high delay 600 ns NOTES 1. Parameters are valid over operating temperature range unless otherwise specified. 2. All voltage measurements are referenced to ground. All lime measurements are at 50% level for inputs and at the O.SV or 2.0V level for outputs. Input levels for testing are O.45V and 2.4V. 3. Typical values are at +25°C. typical supply voltages and typical processing param- eters. = 4. IeEe eOOns during PGC Initialization when no Bee accumulation is in progress. = 5. lOS SOns whenever CEO Is used. 6. Test conditions: CL = 150 pF. 7. INT is an open drain output. 5ignetics 1·49 MICROPROCESSOR DIVISION JANUARY 1983 POLYNOMIAL GENERATOR CHECKER (PGC) SCN2653/SCN68653 ICE---i+--------ICED----------i AO,A1 iilw DO-D7 (WRITE) DO-D7 BUS FLOATING ,(READ) I-----IINTL----~'-----------+-'l IINTH Figure 14. PGC Timing 1·50 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 DESCRIPTION Transparent or non·transparent mode PIN CONFIGURATIONS The Signetics SCN2661 EPCI is a universal synchronous/asynchronous data commu- nications controller chip that is an Transparent mode OLE stuffing (Tx) and detection (Rx) Automatic SYN or DLE-SYN insertion D1 1 enhanced version of the SCN2651. It inter- SYN, OLE and DLE·SYN stripping DO faces easily to all 8-bit and 16-bit micro- ,Odd, even, or no parity vcc processors and may be used in a polled or Local or remote maintenance loop back RxC/BKDET interrupt driven system environment. The mode SCN2661 accepts programmed instruc- Baud rate: dc to 1M bps (1X clock) DTR tions from the microprocessor while sup- • Asynchronous operation RTS porting many serial data communications 5 to 8-blt characters plus parity DSR disciplines- synchronous and asynchro- " 1 % or 2 stop bits transmitted nous-in the full or half-duplex mode. Odd, even, or no parity Special support for BISYNC is provided. Parity, overrun and framing error BRCLK The EPCI serializes parallel data charac- detection A1 TxD Line break detection and generation ters received from the microprocessor for f'i'E'M'f1'i5"S'C'i1G False start bit detection transmission. Simultaneously, it can Automatic serial echo mode (echoplex,) CTS receive serial data and convert it into Local or remote maintenance loop back parallel data characters for input to the R/W DCD mode microcomputer. ifiRDV TxROY Baud rate: dc to 1M bps (1X clock) The SCN2661 contains a baud rate genera- dc to 62.5K bps (16X clock) TOP VIEW tor which can be programmed to either dc to 15.625K bps (64X clock) 28·PIN accept an external clock or to generate in- ternal transmit or receive clocks. Sixteen OTHER FEATURES different baud rates can be selected under • Internal or external baud rate clock program control when operating in the in- • 3 baud rate sets ternal clock mode. Each version of the • 16 internal rates for each set D2 EPCI (A, B, C) has a different set of baud • Double buffered transmitter and D1 rates. receiver The EPCI is available in two packages: a DO • Dynamic character length switching 28-pin (0.6" wide) DI P and a 24-pin (0.4" • Full or half duplex operation vcc wide) DIP. The following are the differ- • TTL compatible inputs and outputs Rxc/BKDET ences between the 24-pin and the 28-pin • RxC and TxC pins are short circuit pro- versions: tected m 1. The 24-pin version provides a single in- • Single 5V power SUpply RESET terrupt output (INTR) instead of the • No system clock required BRCLK three interrupt outputs (RxRDY, TxRDY, TxEMT/DSCHG) supplied on the 28-pin APPLICATIONS TxD version. INTR will be asserted (low) • Intelligent terminals CE Cf!i when one or more of the status bits • Network processors AO DCD SRO, SRl or SR2 is a logic one. • Front 'end processors R/w INTR • Remote data concentrators 2. Two modem interface pins, the DTR • Computer to computer links TOP VIEW output and the DSR input, are elimi- • Serial peripherals 24-PIN nated in the 24-pin version. Because of • BISYNC adaptors this, status bit SR7 should be ignored and the setting of status bit SR2 due to ORDERING CODE a data set change (DSCHG) can be caused only by a change of the DCD in· Vcc= 5V:!: 5% put. Since the DTR' output is elimi- COMMERCIAL AUTOMOTIVE MILITARY nated, command register bit CRl does PACKAGES O·C 10 +70·C - 40·C 10 + 85·C - 55·C to +125·C not perform any function, although it remains writable and readable. Ceramic DIP SCN2661 ACl128 SCN2661AAl128 SCN2661AMl128 28·Pin SCN2661 BCl128 SCN2661BAl128 SCN2661 BMl128 Other than the above, the functional oper- 0.6" Wide SCN2661 CCl128 SCN2661 CA 1128 SCN2661CMl128 ation, DC electrical characteristics, and AC electrical characteristics of the 24-pin Plastic DIP SCN2661AC1N28 version are identical to the 28-pin version. 28·Pin SCN2661 BCl N28 Contact Factory Not Available 0.6" Wide SCN2661CC1N28 FEATURES Plastic DIP SCN2661ACl N24 • Synchronous operation 24-Pin SCN2661 BCl N24 Contact Factory Not Available 5 to 8-bit characters plus parity 0.4" Wide SCN2661 CCl N24 Single or double SYN operation NOTES Internal or external character 1. See table 1 for baud rates. Specify SCN2661A, B, or C depending on baud rate selected. synchronization 2. The SCN68661 Is identical to the SCN2661. Order using part numbers above. Signetics 1·51 MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 BLOCK DIAGRAM DATA BUS DO-D7 DATA BUS BUFFER ) SNE/DLE CDNTROL SYN I REGISTER t SYN 2 REGISTER DLE REGISTER K= OPERATION CONTROL RESET • AO • MODE REGISTER I AI RIW • • MODE REGISTER 2 COMMAND REGISTER r-- - --- I TRANSMITTER I TxRDY' + BE • STATUS REGISTER ) I TRANSMIT DATA HOLDING REGiSTER TRANSMIT SHIFT REGISTER I TxD BRCLK • - 1- - - BAUD RATE t TxClSYNC • . • GENERATOR AND • RxCIBKDET • CLOCK CONTROL r-- --- I RECEIVER RECEIVE DATA I RxRDY" + -- HOLDING REGISTER DSR + • l RECEIVE J RxD ~ SHIFT REGISTER DCD • CTS RTS • MODEM CONTROL DTR + TXRDY~ RxRDY. IN TxEMT/* + TxEMT DSCHO DSCHG NOTE * Open drain output pin. + 28-pin only ++ 24-pin only BLOCK DIAGRAM Table 1 BAUD RATE GENERATOR CHARACTERISTICS The EPCI consists of six major sections. SCN2661A (BRCLK = 4.9152MHz) These are the transmitter, receiver, timing, operation control, modem control and ACTUAL SYN IDLE control. These sections communi- BAUD FREQUENCY PERCENT cate with each other via an internal data bus MR23-20 RATE 16X CLOCK ERROR DIVISOR and an internal control bus. The internal data 0000 50 0.8kHz - 6144 bus interfaces to the microprocessor data 0001 75 1.2 - 4096 bus via a data bus buffer. 0010 110 1.7598 -0.01 2793 0011 134.5 2.152 - 2284 Operation Control 0100 150 2.4 - 2048 This functional block stores configuration 0101 200 3.2 - 1536 and operation commands from the CPU and 0110 300 4.8 - 1024 generates appropriate signals to various in- 0111 600 9.6 - 512 ternal sections to control the overall device 1000 1050 16.8329 0.196 292 operation. It contains read and write circuits 1001 1200 19.2 - 256 to permit communications with the 1010 1800 28.7438 -0.19 171 microprocessor via the data bus and con- 1011 2000 31.9168 -0.26 154 tains mode registers 1 and 2, the command 1100 2400 38.4 - 128 register, and the status register. Details of 1101 4800 76.8 - 64 register addressing and protocol are pre- 1.110 9600 153.6 - 32 sented in the EPCI programming section of 1111 19200 307.2 - 16 this data sheet. 1·52 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 Timing Table 1 BAUD RATE GENERATOR CHARACTERISTICS (Conl'd) The EPCI contains a baud rate generator (BRG) which is programmable to accept ex- ternal transmit or receive clocks or to divide SCN2661 B (BRCLK 4.9152MHz) = ACTUAL 1 an external clock to perform data communi- BAUD FREQUENCY PERCENT cations_ The unit can generate 16 commonly MR23-20 RATE 16XCLOCK ERROR DIVISOR used baud ratas. anyone of which can be 0000 45.5 0.7279kHz 0.005 6752 selected for full duplex operation_ See 0001 50 0.8 - 6144 table 1. 0010 75 1.2 - 4096 0011 110 1.7598 -0.01 2793 Receiver 0100 134.5 2.152 - 2284 The receiver accepts serial data on the RxD 0101 150 2.4 - 2048 pin. converts this serial input to parallel for- 0110 300 4.8 - 1024 mat. checks for bits or characters that are 0111 600 9.6 - 512 unique to the communication technique and 1000 1200 19.2 - 256 sends an "assembled" character to the 1001 1800 28.7438 -0.19 171 CPU. 1010 2000 31.9168 -0.26 154 1011 2400 38.4 - 128 Transmitter 1100 4800 76.8 - 64 The transmitter accepts parallel data from 1101 9600 153.6 - 32 the CPU. converts it to a serial bit stream. 1110 19200 307.2 - 16 inserts the appropriate characters or bits 1111 38400 614.4 - 8 (based on the communication technique) and outputs a composite serial stream of data on the TxD output pin. SCN2661C (BRCLK =5.0688MHz) Modem Control ACTUAL BAUD FREQUENCY PERCENT The modem control section provides inter- MR23-20 RATE 16X CLOCK ERROR DIVISOR facing for three input signals and three out- put signals used for "handshaking" and sta- 0000 50 0.8kHz - 6336 tus indication between the CPU and a 0001 75 1.2 - 4224 modem. 0010 110 1.76 - 2880 0011 134.5 2.1523 0.016 2355 SYN/DLE Control 0100 150 2.4 - 2112 This section contains control circuitry and 0101 300 4.8 - 1056 three 8-bit registers storing the SYN 1. 0110 600 9.6 - 528 SYN2. and OLE characters providad by the 0111 1200 19.2 - 264 CPU. These registers are used in the syn- 1000 1800 28.8 - 176 chronous mode of operation to provide the 1001 2000 32.081 0.253 158 characters required for synchronization. idle 1010 2400 38.4 - 132 fill and data transparency. 1011 3600 57.6 - 88 1100 4800 76.8 - 66 1101 7200 115.2 - 44 1110 9600 153.6 - 33 1111 19200 318-8 3.125 16 NOTE l6X clock is used in asynchronous mode. In synchronous mode, cJock multiplier is 'X and BRG can be used only for TxC. Signetics 1·53 MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 Table 2 CPU-RELATED SIGNALS OPERATION INPUT/ The functional operation of the 2661 is pro· 24· 28· grammed by a set of control words supplied PIN NAME PIN PIN OUTPUT FUNCTION by the CPU. These control words specify RESET X X I A high on this input performs a master Items such as synchronous or asynchronous reset on the 2661. This signal asynchro· mode, baud rate, number of. bits per charac· ter, etc. The programming procedure is de- nously terminates any device activity and scribed in the EPCI programming section of clears the mode, command and status reg· the data sheet. isters. The device assumes the idle state and remains there until initialized with the After programming, the EPCI is ready to per- appropriate control words. form the desired communications functions. Al- AO X X I Address lines used to select internal EPCI The receiver performs serial to parallel con- registers. version of data received from a modem or R/W X X I Read command when low, write command equivalent device. The transmitter converts when high. perallel data received from the CPU to a serial bit stream. These actions are accom· CE X X I Chip enable command. When low, indi- plished within the framework specified by cates that control and data lines to the the control words. EPCI are valid and that the operation specified by the R/W, A1 and AO inputs should be performed. When high, places Receiver The 2661 is conditioned to receive data the 00-07 lines in the three-state condi- when the OCO input is low and the RxEN bit tion. in the command register is true. In the asyn- 07- 0 0 X X 1/0 8-bit, three-state data bus used to transfer chronous mode, the receiver looks for a high commands, data and status between EPCI to low (mark to space) transition of the start and the CPU. 00 is the least significant bit; bit on the RxO input line. If a transition is 07 the most significant bit. detected, the state of the RxO line is sam- TxROY X 0 This output is the complement of status pled again after a delay of one· half of a bit register bit SRO. When low, it indicates time. If RxO is now high, the search for a that the transmit data holding register valid start bit is begun again. If RxO is still (THR) is ready to accept a data character low, a valid start bit is assumed and the from the CPU. It goes high when the data receiver continues to sample the input line character is loaded. This output is valid at one bit time intervals until the proper num· only when the transmitter is enabled. It is ber of data bits, the parity bit, and one stop an open drain output which can be used as bit have been assembled. The data are then an interrupt to the CPU. transferred to the receive data holding reg- ister, the RxROY bit in the status register is RxROY X 0 This output is the complement of status set, and the RxROY output is asserted. If the register bit SR 1. When low, it indicates character length is less than 8 bits, the high that the receive data holding register order unused bitl! in the holding register are (RHR) has a character ready for input to set to zero. The parity error, framing error, the CPU. It goes high when the RHR is read and overrun error status bits are strobed by the CPU, and also when the receiver is into the status register on the positive gOing disabled. It is an open drain output which edge of RxC corresponding to the received can be used as an interrupt to the CPU. character boundary. If the stop bit is TxEMTI present, the receiver will immediately begin OSCHG X 0 This output is the complement of status its search for the next start bit. If the stop bit register bit SR2. When low, it indicates is. absent (framing error), the receiver will that the transmitter has completed serial- interpret a space as a start bit if it persists ization of the last character loaded by the into the next bit time interval. If a break con· CPU, or that a change of state of the OSR dition is detected (RxO is low for the entire or OCO inputs has occurred. This output character as well as the stop bit), only one goes high when the status register is read character consisting of all zeros (with the by the CPU, if the TxEMT condition does FE status bit SR5 set) will be transferred to not exist. Otherwise, the THR must be the holding register. The RxO input must reo loaded by the CPU forthis line to go high. It turn to a high condition before a search for is an open drain output which can be used the next start bit begins. as an interrupt to the CPU. Pin 25 can be programmed to be a break INTR X 0 This is an active low output which is the detect output by appropriate selting of wire·OR of the TxROY, RxROY, and TxEMTI MR27-MR24. If so, a detected break will OSCHG outputs on the 28-pin version. See cause that pin to go high. When RxO returns above. to mark for one RxC time, pin 25 will go low. Refer to the break detection timing diagram. 1·54 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 Table 3 DEVICE-RELATED SIGNALS 24· 28· INPUT/ 1 When the EPCI is initialized into the synchro· ~~~~~ nous mode, the receiver first enters the hunt a mode on a to 1 transition of RxEN(CR2). In PIN NAME PIN PIN OUTPUT FUNCTION this mode, as data are shifted into the reo ~~~~~ ceiver shift register a bit at a time, the con· BRCLK x x Clock input to the internal baud rate gener· tents of the register are compared to the ator (see table 1). Not required if external contents of the SYN 1 register. If the two are receiver and transmitter clocks are used. not equal, the next bit is shifted in and the RxC/BKDET x x 1/0 Receiver clock. If external receiver clock comparison is repeated. When the two reg· is programmed, this input controls the rate isters match, the hunt mode is terminated at which the character is to be received. and character assembly mode begins. If sin· Its frequency is 1X, 16X or 64X the baud gle SYN operation is programmed, the SYN rate, as programmed by mode register 1. DETECT status bit is set. If double SYN op· Data are sampled on the rising edge of the eration is programmed, the first character clock. If internal receiver clock is pro· assembled after SYN 1 must be SYN2 in or· grammed, this pin can be a lXI 16X clock der for the SYN DETECT bit to be set. Other· or a break detect output pin. wise, the EPGI returns to the hunt mode. TxC/XSYNC x x 1/0 Transmitter clock. If external transmitter (Note that the sequence SYN I·SYN I·SYN2 clock is programmed, this input controls will not achieve synchronization.) When syn· the rate at which the character is transmit· chronization has been achieved, the EPCI ted. Its frequency is 1X, 16X or 64X the continues to assemble characters and baud rate, as programmed by mode regis· transfer them to the holding register, setting ter 1. The transmitted data changes on the the RxRDY status bit and asserting the falling edge of the clock. If internal trans· RxRDY output each time a character is mitter clock is programmed, this pin can transferred. The PE and OE status bits are be a 1X I 16X clock output or an external set as appropriate. Further receipt of the jam synchronization input. appropriate SYN sequence sets the SYN RxD x x Serial data input to the receiver. "Mark" is DETECT status bit. If the SYN stripping high, "space" is low. mode is commanded, SYN characters are TxD x x o Serial data output from the transmitter. not transferred to the holding register. Note "Mark" is high, "space" is low. Held in that the SYN characters used to establish mark condition when the transmitter is dis· initial synchronization are not transferred to abled. the holding register in any case. x General purpose input which can be used External jam synchronization can be for data set ready or ring indicator condi· achieved via pin 9 by appropriate setting of tion. Its complement appears as status MR27·MR24. When pin 9 is an XSYNC input, register bit SR7. Causes a low output on the internal SYN1, SYN1·SYN2, and DLE· TxEMT I DSCHG when its state changes if SYN 1 detection is disabled. Each positive CR2 or CRO = 1. going signal on XSYNC will cause the reo x x Data carrier detect input. Must be low in ceiver to establish synchronization on the order for the receiver to operate. Its com· rising edge of the next RxC pulse. Character plement appears as status register bit assembly will start with the RxD input at this SR6. Causes a low output on edge. XSYNC may be lowered on the next TxEMT I DSCHG when its state changes if rising edge of RxC. This external synchroni· CR2 or CRO = 1. If DCD goes high while zation will cause the SYN DETECT status bit receiving, the RxC is internally inhibited. to be set until the status register is read. Refer to XSYNC timing diagram. x x Clear to send input. Must be low in order for the transmitter to operate. If it goes Transmitter high during transmission, the character in The EPCI is conditioned to transmit data the transmit shift register will be transmit· when the CTS input is low and the TxEN ted before termination. command register bit is set. The 2661 indio x o General purpose output which is the com· cates to the CPU that it can accept a char· plement of command register bit CR 1. Nor· acter for transmission by setting the TxRDY mally used to indicate data terminal ready. status bit and asserting the TxRDY output. x x o General purpose output which is the com· When the CPU writes a character into the plement of command register bit CR5. Nor· transmit data holding register, these condi· mally used to indicate request to send. If tions are negated. Data are transferred from the transmit shift register is not empty the holding register to the transmit shift reg· when CR5 is reset (1 to 0), then RTS will ister when it is idle or has completed trans· go high one TxC time after the last serial mission of the previous character. The bit is transmitted. TxRDY conditions are then asserted again. Thus, one full character. time of buffering is provided. Signetics 1-55 MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 In the asynchronous mode, the transmitter Table 4 2661 REGISTER ADDRESSING automatically sends a start bit followed by the programmed numbar of data bits, the CE A1 AO R/W FUNCTION least significant bit being sent first. It then 1 X X X Three-state data bus appends an optional odd or even parity bit 0 0 0 0 Read receive holding register and the programmed number of stop bits. II, 0 0 0 1 Write transmit holding register following transmission of the data bits, a 0 0 1 0 Read status register new character is not available in the, trans· 0 0 1 1 Write SYN 11 SYN21 OLE registers mit holding register, the TxO output remains 0 1 0 0 Read mode registers % in the marking (high) condition and the 0 1 0 1 Write mode registers % TxEMT I OSCHG output and its correspond· 0 1 1 0 Read command register ing status bit are asserted. Transmission 0 1 1 1 Write command register resumes when the CPU loads a new charac· NOTE ter into the holding register. The transmitter See AC characteristics section for timing requirements. can be forced to output a continuous low (BREAK) condition by selting the send break command bit (CR3) high. INITIAL RESET In the synchronous mode, when the 2661 is initially conditioned to transmit, the TxO out· put remains high and the TxROY condition is asserted until the first character to be trans· mitted (usually a SYN character) is loaded NOTE by 'the CPU. Subsequent to this, a continu- Mode register 1 must be written before 2 can be written. Mode register 2 need ous stream of characters is transmitted. No not be programmed if external clocks extra bits (other than parity, if commanded) are used. are generated by the EPCI unless the CPU fails to send a new character to the EPCI by the time the transmitter has completed sending the previous character. Since syn- chronous communication does not allow gaps between characters, the EPCI asserts TxEMT and automatically "fills" the gap by transmitting SYNls, SYNI-SYN2 doublets, or OLE-SYN 1 doublets, depending on the state of MR 16 and MR 17. Normal transmis- sion of the message resumes when a new character is available in the transmit data holding register. II the SEND OLE bit in the command register is true, the OLE character is automatically transmitted prior to trans- mission of the message character in the THR. EPCI PROGRAMMING Prior to initiating data communications, the 2661 operational mode must be pro- grammed by performing write operations to the mode and command registers. Inaddi- tion, if synchronous operation is pro- grammed, the appropriate SYN/OLE regis- ters must be loaded. The EPCI can be reconfigured at any time during program ex- ecution. A flowchart of the intialization proc- ess appears in figure 1. The internal registers of the EPCI are accessed by epplying specific signals to the CE, Filw, A 1 and AO inputs. The conditions necessary to sddress each register are shown In table 4. The SYN1, SYN2, and OLE registers are accessed by performing write operations Figure 1. 2661 Inltlslization Flow Chart with the conditions Al = 0, AO = I, and 1·56 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 R / W = 1. The first operation loads the SYN 1 register. The next loads the SYN2 register, and the third loads the OLE regis- acter and the receiver performs a parity check on incoming data. MR 15 selects odd or even parity when parity is enabled by To effect 88sembly I disassembly of the next ~~F~. received/transmitted character, MR12-15 must be changed within n bit times of the 1 ter. Reading or loading the mode registers is MR14. active going state of RxRDY /TxROY. Trans- ~~~~ done in a similar manner. The first write (or parent and non-transparent mode changes read) operation addresses mode register " In asynchronous mode, MR17 and MR16 se- (MR 16) must occur within n-l bit times of the and a subsequent operation addresses lect character framing of " 1.5, or 2 stop character to be allected when the receiver mode register 2. If more than the required bits. (If 1X baud rate is programmed, 1.5 or transmitter is active. (n = smaller of the number of accesses are made, the internal stop bits defaults to 1 stop bits on transmit.) new and old character lengths.) sequencer recycles to point at the first reg- In synchronous mode, MR 17 controls the ister. The pointers are reset to SYN 1 regis- number of SYN characters used to establish Mode Register 2 (MR2) ter and mode register 1 by a RESET input or synchronization and for character fill when Table 6 illustrates mode register 2. MR23, by performing a read command register op- the transmitter is idle. SYN 1 alone is used if MR22, MR21 and MR20 control the frequen- eration, but are unaffected by any other read MR17 = 1, and SYNI-SYN2 is used when cy of the internal baud rate generator (BRG). or write operation. MR 17 = O. If the transparent mode is speci- Sixteen rates are selectable for each EPCI The 2661 register formats are summarized fied by MR 16, DLE-SYN 1 is used for charac- version (-1, -2, -3). Version 1 and 2 speci- in tables 5, 6, 7 and 8. Mode registers 1 and ter fill and SYN detect, but the normal syn- fy a 4.9152 MHz TTL input at BRCLK (pin 2 define the general operational character- chronization sequence is used to establish 20); version 3 specifies a 5.0688 MHz input istics of the EPCI, while the command regis- character sync. When transmitting, a OLE which is identical to the Signetics 2651. ter controls the operation within this basic character in the transmit holding register will MR23-20 are don't cares if external clocks framework. The EPCI indicates its status in cause a second OLE character to be trans- are selected (MR25-MR24 = 0). The individ- the status register. These registers are mitted. This OLE stuffing eliminates the soft- ual rates are given in table 1. cleared when a RESET input is applied. ware OLE compare and stuff on each trans- parent mode data character. If the send OLE MR24-MR27 select the receive and transmit Mode Register 1 (MR1) command (CR3) is active when a OLE is clock source (either the BRG or an external loaded into THR, only one additional OLE will input) and the function at pins 9 and 25. Re- Table 5 illustrates Mode Register 1. Bits be transmitted. Also, OLE stripping and OLE fer to table 6. MR 11 and MR 10 select the communication format and baud rate multiplier. 00 specifies detect (with MR14 = 0) are enabled. synchronous mode and 1X multiplier. 1X, 16X, and 64X multipliers are programmable The bits in the mode register affecting char- Command Register (CR) for asynchronous format. However, the mul- acter assembly and disassembly (MR 12- Table 7 illustrates the command register. tiplier in asynchronous format applies only if MR 16) can be changed dynamically (during Bits CRO (TxEN) and CR2 (RxEN) enable or the external clock input option is selected active receive/transmit operation). The disable the transmitter and receiver respec- by MR24 or MR25. character mode register affects both the tively. A 0 to 1 transition of CR2 forces start transmitter and receiver; therefore in syn- bit search (a sync mode) or hunt mode (sync MR13 and MR12 select a character length of mode) on the second RxC riSing edge. Dis- chronous mode, changes should be made 5, 6, 7 or 8 bits. The character length does not only in half duplex mode (RxEN = 1 or abling the receiver causes RxROY to go include the parity bit, jf programmed, and TxEN = 1, but not both simultaneously = 1). high (inactive). "the transmitter is disabled, does not include the start and stop bits in In asynchronous mode, character changes it will complete the transmission of the char- asynchronous mode. should be made when RxEN and TxEN=O or acter in the transmit shift register (if any) MR 14 controls parity generation. If enabled, when TxEN = 1 and the transmitter is mark- prior to terminating operation. The TxO out- a parity bit is added to the transmitted char- ing in half duplex mode (RxEN = 0). put will then remain in the marking state Table 5 MODE REGISTER 1 (MR 1) MR17 MR16 MR15 MR14 MR13 MR12 MR11 MR10 Character Mode and Baud Sync/Async Parity Type Parity Control Length Rate Factor Async: Stop Bit Length 00 = Invalid 0= Odd 0= Disabled 00 = 5 bits 00 = Synchronous 1X rate 01 = 1 stop bit 1 = Even 1 = Enabled 01 = 6 bits 01 = Asynchronous 1X rate 10 = 1% stop bits 10 = 7 bits 10 = Asynchronous 16X rate 11 = 2 stop bits 11 = 8 bits 11 = Asynchronous 64X rate Sync: Sync: Number of Transparency SYN char Control 0= Double 0= Normal SYN 1 = Transparent 1 = Single SYN NOTE Baud rate factor in asynchronous applies only if external clock is selected. Factor is 16X if internal clock is selected. Mode must be selected (MR11, MR10) in any case. Signetics 1·57 MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 Table 6 MODE REGISTER 2 (MR2) MR27-MR24 MR23-MR20 TxC RxC Pin 9 Pin 25 TxC RxC Pin 9 Pin 25 M.oda Baud Rata Salactlon 0000 E E TxC RxC 1000 E E XSYNC' RxC/TxC sync 0001 E I TxC lX 1001 E I TxC BKDET async 0010 I E lX RxC 1010 I E XSYNC' RxC sync 0011 I I lX lX 1011 I I lX BKDET async Saa baud ratas in table 1 0100 E E TxC RxC 1100 E E XSYNC' RxC/TxC sync 0101 E I TxC 16X 1101 E I TxC BKDET async 0110 I E leX FlxC 1110 I E XSYNC' RxC sync 0111 I I 16X 16X 1111 I I 16X BKDET async NOTES 1. When pin 9 is programmed 88 XSYNC input, SYN1, SYN1·SYN2, and DLE-SVN1 datec· tion Ie dls.bled. = E External clock I ... Internal clock (BRG) 1X and 18X ara clock outputs Table 7 COMMAND REGISTER (CR) CR7 CR6 CR5 CR4 CR3 CR2 CRI CRO Recel.e Tranamlt Requeat Control Data Terminal Control Operating Mode To Send R••et Error Sync/Aaync (RxEN) R.ady (TxEN) 00 = Normal operation 0= Force RTS 0= Normal A.ync: 01 = Async: output high 1 :iii Reset Force break Automatic one clock time error flags 0'· Normal 0= Disable 0= Force OTR 0= Disable echo mode after TxSR in status register 1 = Force break 1 = Enable output high 1 = Enable Sync: SYN and I or serialization (FE, OE, PEiDLE 1 = Force OTR OLE stripping mode detect.) output low 1 - Force ATS 10 = Local loop back output low (Not applicable In 11 '= Remote loop back 24-pln version.) Sync: Send DLE 0= Normal 1 = Send DLE Table 8 STATUS REGISTER (SR) SR7 SR6 SRS SR4 SR3 SR2 SRI SRO Data Set Data Carrier Ready Detect FE/SYN Detect Overrun PE/DLE Detect TxEMT I DSCHG RxRDY TxRDY 0= OSR input 0= OCO input Aaync: 0= Normal Aaync: is high is high 0= Normal 1 = Overrun 0= Normal 0= Normal 0= Receive a = Transmit 1 = OSR input 1 = i5Cli input 1 = Framing Error 1 = Parity error 1= Change In DSR holding holding is low is low Error (28-pln version only), register empty register busy or I5C5; or transmit 1 = Receive 1 = Transmit shift register Is empty holding register holding register has data empty Sync: Sync: (Should be ignored in a = Normal a = Normal 24·pln version.) 1 = SYN "1 = Parity error or detected OLE received (high) while TiiRI5Y and rxEMf will go high In asynchronous mode, setting CR3 will data holding register. Since this is a one (inactive). II the receiver Is disabled, it will lorce and hold the TxD output low (spacing time command, CR3 does not have to be terminate operation Immediately. Any char- condition) at the end of the current transmit- reaet by software. CR3 should be set .when acter being aa8embled will be neglecled. A ted character. Normal operation reaumes entering and exiting transparent mode and o to 1 transition 01 CR2 will Initiate start bit when CR3 Is cleared. The TxD line will go lor all OLE-non-OLE character sequences. search (async) or hunt mode (sync). high lor at least one bit time before begin- ning transmls.lon 01 the next character in Bits CR1 (28-pln only) (DTR) and CR5 (RTS) the transmit data holding reg later. In ayn- Setting CR4 causes the error flags in the control the DTR and RTS outputs. Data at the chronoua mode, setting CR3 causes the status register (SR3, SR4, and SR5) to be outputs are the logical complement of the tranamlaslon 01 the OLE reg later contenta cleared. This Is a one time command. There Is register data. prior to sending the character In the transmit no internal latch for this bit. 1·58 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 Table 9 SCN2661 EPCI vs SCN2651 PCI are not transferred to the RHA. However, FEATURE EPCI PCI only the first OLE of a OLE-OLE pair III stripped. 1 1. MR2 Bit 6,7 Control pin 9, 25 Not used Note that automatic stripping mode does not 2. OLE detect-SR3 SR3 = a for OLE-OLE, SR3 = 1 for OLE-OLE, affect the setting of the OLE detect and SYN OLE-SYNC 1 OLE-SYNC 1 detect status bits (SR3 and SR5). 3. Reset of SR3, OLE Second character after Receiver disable, or CR4 = 1 Two diagnostic sub-modes can also be detect OLE, or receiver disable, configured. In local loop back mode (CR7- or CR4 = 1 CR6 = 10), the following loops are connect- 4. Send OLE-CR3 One time command Reset via CR3 on next TxROY ed internally: 5. OLE stuffing in Automatic OLE stuffing when None 1. The transmitter output is connected to transparent mode OLE is loaded except if the receiver input. CR3 = 1 2. OTR is connected to OCO and RTS is con- 6. SYNC 1 stripping All SYNCI First SYNCI of pair nected to CTS. in double sync 3. The receiver is clocked by the transmit non-transparent clock. mode 4. The OTR, RTS and TxO outputs are held 7. Baud rate Three One high. versions 5. The CTS, OCO, OSR and RxO inputs are 8. Terminate ASYNC Aeset CA5 in response to ignored. Reset CRO when TxEMT transmission TxAOY changing from 1 to 0 goes from 1 to O. Then reset Additional requirements to operate in the lo- (drop RTS) CR5 when TxEMT goes from cal loop back mode are that CRO (TxEN), a to 1 CR 1 (OTR), and CR5 (RTS) must be set to 1. 9. Break detect Pin 25' FE and null character CR2 (RxEN) is ignored by the EPCI. 10. Stop bit searched One Two The second diagnostic mode is the remote 11. External jam sync Pin 9' No loop back mode (CR7-CR6 = 11). In this 12. Oata bus timing Improved over 2651 - mode: 13. Oata bus drivers Sink 2.2mA Sink 1.6mA 1. Oata assembled by the receiver are Source 400"A Source 1OO"A automatically placed in the transmit hold- NOTES ing register and retransmitted by the 1. Internal BRG used tor Rxe. transmitter on the TxO output. 2. Internal BRG used tor TxC. 2. The transmitter is clocked by the receive clock. When CA5 (RTS) is set, the RTS pin is forced 1. Oata assembled by the receiver are 3. No data are sent to the local CPU, but the low. A 1 to 0 transition of CA5 will cause ATS automatically placed in the transmit hold- error status conditions (PE, FE) are set. to go high (inactive) one TxC time after the ing register and retransmitted by the 4. The RxROY, TxROY, and TxEMT IOSCHG last serial bit has been transmitted (if the transmitter on the TxO output. outputs are held high. transmit shift register was not empty). 2. The transmitter is clocked by the receive 5. CR 1 (TxEN) is ignored. clock. 6. All other signals operate normally. The EPCI can operate in one of four sub- 3. TxROY output = 1. modes within each major mode (synchro- 4. The TxEMT I OSCHG pin will reflect only nous or asynchronous). The operational Status Register the data set change condition. sub-mode is determined by CR7 and CR6. The data contained in the status register (as 5. The TxEN command (CRO) is ignored. CR7-CR6 = 00 is the normal mode, with the shown in table 8) indicate receiver and transmitter and receiver operating indepen- In synchronous mode, CR7-CR6 = 01 places transmitter conditions and modem I data set dently in accordance with the mode and sta- the EPCI in the automatic SYN/OLE strip- status. tus register instructions. ping mode. The exact action taken depends SRO IS the transmitter ready (TxROY) status on the setting of bits MR17 and MRI6: In asynchronous mode, CR7-CR6 = 01 bit. It. and its corresponding output, are valid places the EPCI in the automatic echo 1. In the non-transparent, single SYN mode only when the transmitter is enabled. If equal mode. Clocked, regenerated received data (MR17-MRI6 = 10), characters in the to 0, it indicates that the transmit data hold- are automatically directed to the TxO line data stream matching SYN 1 are not ing register has been loaded by the CPU and while normal receiver operation continues. transferred to the receive data holding the data has not been transferred to the The receiver must be enabled (CR2 = I), but register (RHR). transmit shift register. If set equal to I, it the transmitter need not be enabled. CPU to 2. In the non-transparent, double SYN mode indicates that the holding register is ready receiver communications continues normal- (MR17-MRI6 = 00), characters in the to accept data from the CPU. This bit is ly, but the CPU to transmitter link is dis- data stream matching SYN I, or SYN2 if initially set when the transmitter is enabled abled. Only the first character of a break immediately preceded by SYN I, are not by CRO, unless a character has previously condition is echoed. The TxO output will go transferred to the RHR. been loaded into the holding register. It is high until the next valid start is detected. 3. In transparent mode (MRI6 = I), charac- not set when the automatic echo or remote The following conditions are true while in ters in the data stream matching OLE, or loopback modes are programmed. When automatic echo mode: SYN 1 if immediately preceded by OLE, this bit is set, the TxROY output pin is low. In Signetics 1·59 MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 the automatic echo and remote loop back cleared by loading the transmit data holding when the receiver is disabled or by the reset modes, the output is held high. register. The DSCHG condition is enabled error command, CR4. when TxEN = 1 or RxEN .; 1. It is cleared SR1, the receiver ready (RxRDY) status bit, In asynchronous mode, bit SR5 signifies that when the status register is read by the indicates the condition of the receive data the received character was not framed by a CPU. If the status register is read twice and holding register. If set, it indicates that a stop bit, i.e., only the first stop bit is SR2 = 1 while SR6 and SR7 remain un- character has been loaded into the holding checked. If RHR = 0 when SR5 = 1, a break changed, then a TxEMT condition exists. register from the receive shift register and is condition is present. In synchronous non- When SR2 is set, the TxEMT I DSCHG output ready to be read by the CPU. If equal to transparent mode (MR16 = 0), it indicates is low. zero, there is no new character in the hold- receipt of the SYN 1 character in single SYN ing register. This bit is cleared when the SR3, when set, indicates a received parity mode or the SYN 1-SYN2 pair in double SYN CPU reads the receive data holding register error when parity is enabled by MR 14. In mode. In synchronous transparent mode or when the receiver is disabled by CR2. synchronous transperent mode (MR16 = 1), (MR 16 = 1), this bit is set upon detection of When set, the RxRDY output is low. with parity disabled, it indicates that a char- the initial synchronizing characters (SYN 1 acter matching DLE register was received or SYN 1-SYN2) and, after synchronization The TxEMT/DSCHG bit, SR2, when set, indi- and the present character is neither SYN 1 has been achieved, when a DLE-SYNl pair cates either a change of state of the DSR nor DLE. This bit is cleared when the next is received. The bit is reset when the receiv- (28-pin only) or DCD inputs (when CR2 or character following the above sequence is er is disabled, when the reset error com- CRO= 1) orthat the transmit shift register has loaded into RHR, when the receiver is dis- mand is given in asynchronous mode, or completed transmission of a character and abled, or by a reset error command, CR4. when the status register is read by the CPU no new character has been loaded into the in the synchronous mode. transmit data holding register. Note that in The overrun error ststus bit, SR4, indicates synchronous mode this bit will be set even that the previous character loaded into the SR6 and SR7 (28-pin only) reflect the condi- though the appropriate "fill" character is receive holding register was not read by the tions 01 the DCD and DSR inputs respective- transmitted. TxEMT will not go active until at CPU at the time a new received character ly. A low input sets its corresponding status least one character has been transmitted. It is was transferred into it. This bit is cleared bit, and a high input clears it. ABSOLUTE MAXIMUM RATINGS 1 PARAMETER RATING UNIT Operating ambient temperature 2 Note 4 °c Storage temperature -65 to +150 °C All voltages with respect to ground 3 -0.5 to +6.0 V DC ELECTRICAL CHARACTERISTICS 4 ,5,6 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Input voltage V VIL Low 0.8 VIH High 2.0 Output voltage V VOL Low IOL = 2.2mA 0.4 VOH 7 High IOH = -400/LA 2.4 IlL Input leakage current VIN = 0 to 5.5 V 10 /LA 3-state output leakage current /LA ILH Data bus high Vo = 4.0V 10 ILL Data bus low Vo = 0.45V 10 ICC Power supply current 150 mA CAPACITANCE TA = 25°C, VCC = OV LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Capacitance pF CIN Input 20 COUT Output Ic = lMHz 20 CliO Input I Output Unmeasured pins tied to ground 20 Notes on following page. 1·60 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 AC ELECTRICAL CHARACTERISTICS 4•5•6 PARAMETER TEST CONDITIONS Min Typ Max UNIT 1 I i Pulse width ns tRES Reset 1000 tCE Chip enable 250 Setup and hold time ns tAS Address setup 10 tAH Address hold 10 tcs R/W control setup 10 tCH R/W control hold 10 tDS Data setup for write 150 tDH Data hold for write 0 tRXS Rx data setup 300 tRXH Rx data hold 350 too Data delay time for read Cl = 150pF 200 ns tDF Data bus floating time for read Cl = 150pF 100 tCED CE to CE delay 600 Input clock frequency MHz fBRG Baud rate generator (2661A.B) 1.0 4.9152 4.9202 fBRG Baud rate generator (2661C) 1.0 5.0688 5.0738 fRIT 10 TxC or RxC dc 1.0 Clock width ns tBRH" Baud rate high (2661A,B) 75 tBRH" Baud rate high (2661C) 70 tBRl" Baud rate low (2661A.B) 75 tBRl" Baud rate low (2661C) 70 tR/TH TxC or RxC high 480 tRITl 10 TxC or RxC low 480 tTXD TxD delay from falling edge of TxC Cl = 150pF 650 ns tTCS Skew between TxD changing and falling edge of TxC output 8 Cl = 150pF 0 NOTES 1. Stresses above those listed under Absolute Maximum Ratings may cause perma- nent damage to the device, This is a stress rating only and functional operation of the device at these or at any other condition above those indicated In the opera- tion section of this specification is not implied. 2. For operating at elevated temperatures, the device must be derated based on + 150 D C maximum Junction temperature. 3, This product includes circuitry specifically designed for the protection of Its inter- nal devices from the damaging effects of excessive static charge. Nonetheless,lt is suggested that conventional precautions be taken to avoid applying any volt- ages larger than the rated maxima. 4. Parameters are valid over operating temperature range unless otherwise speci- fied. See ordering code table for applicable temperature range and operating sup- ply range. 5. All voltage measurements are referenced to ground. All time measurements are at the 50% level for inputs (except teAH and tBRl) and at 0.8V and 2.0V for outputs. Input levels swing between 0.4V and 2.4V, with a transition time of 20ns maximum. 6. Typical values are at + 20°C, typical supply voltages and typical processing parameters. 7. INTR, TxRDY, 'RXFii5Y and TXEMT/DSCHG outputs are open drain. 8. Parameter applies when internal transmitter clock is used. 9. Undertes1 conditions of 5.0688MHz fBRG (2661 C) and 4.9152MHz fBRG (2661A,B), leRH and teRl measured at V,H and V,l respectively. 10. In asynchronous local loopback mode, using 1X clock, the following parameters apply: fR/T = O.83M Hz max. tRIll = 700ns min. Signetics 1·61 MICROPROCE~SOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 TIMING DIAGRAMS RESET CLOCK -TBRH- - t B R L - REm-1_IRES_~----- -tRlTH- - I R l T L - BRCLK, TxC, RxC ---J -1/fBRG- L- -l11RIT TRANSMIT RECEIVE _ 1 BIT TIME _ (1,18, OR 84 CLOCK PERIODS) TiC (INPUT) TxD TxC---'" (OUTPUT) READ AND WRITE C E - -....... ~---ICE~::::~~~~:::L_ 1·62 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 TIMING DIAGRAMS (Cont'd) TxRDY, TxEMT (Shown for 5-bit characters, no parity, 2 stop bits [in asynchronous model) 1 TxD w c TxEN c :IE en ::> oz o l: a: u ~ TxEMT en CEFOR WRITE OF THR DATA 1 DATA 2 DATA 3 DATA 4 _D_AI112131415IB C AI112 1 3 1 4 1 5 B c A11121314:51B C_D_A~ TxD I DATA 1 I DATA 2 1 I. DATA 3 : . 1 DATA 4 I I g TXEN~ :IE I en ::> TxRDY I ~ :MT ) CEFORlf- WRITE OFTHA DATA 1 DATA 2 DATA 3 DATA 4 NOTES A = Start bit B = Stop bit 1 C = Stop bit 2 o = TxD marking condition TxEMT goes low at the beginning of the last data bit, or, if parity IS enabled, at the beginnmg of the parity bit. Signetics 1·63 MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 TIMING DIAGRAMS (Cont'd) EXTERNAL SYNCHRONIZATION WITH XSYNC 1XRxC les --1 1- = = les XSYNC SETUP TIME 300n. IH = XSYNC HOLD TIME = ONE RxC XSYNC I I I I I - ---j IH I I RxD v CHARACTER ASSEMBLY BREAK DETECTION TIMING Rx CHARACTER = 5 BITS, NO PARITY II I I LOOK FOR START BIT= LOW (IF RxD IS HIGH, LOOK FOR HIGH TO LOW TRANSITION) RxD I FALS~ START BIT CHECK MADE (RxD LOW) I I MISSING STOP BIT DETECTED, SET FE BIT. 0 ___ RHR, ACTIVATE RxRDY. SET BKDET PIN RxD INPUT -RxSR UNTIL A MARK TO SPACE TRANSITION OCCURS. NOTE * If the atop bit is present, the start bIt search will commence immediately. 1-64 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 TIMING DIAGRAMS (Cont'd) RxRDY (Shown for 5-bit characters, no parity, 2 stops bits [in asynchronous mode] ) 1 w o o ::I!: RxEN III ::> ~ SYNDET ~ STATUS:..;B:;.;IT.:-_ _ _ _ _ _ _--' ~ u z ~ RxRDY r------,I rl----- CEFOR---' 1 - READ U U READ READ REAO RHR READ RHR READ RHR READRHR STATUS STATUS (DATA 1) (DATA 2) (DATA 3) (DATA 3) w o o RxEN :IE '"o ::> IL __, _.......;>-__..... I Z oa: L-----------------~r-~>-----~ .iii~ S~A~~~R_"~~~- _________________ ~----~------------------------------------~ CEFOR.------------------------~~ ~~----------------------------------~~---, v~----- READ READ RHR READ RHR (DATA 11 (DATA 3) NOTES A = Start bit B = Stop bit 1 C = SlOp bit 2 o = TxD marking condition Only one stop bit is detected. Signetics 1·65 MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 TYPICAL APPLICATIONS ASYNCHRONOUS. INTERFACE TO CRT TERMINAL ADDRESS BUS CONTROL BUS DATA BUS r------,I • R.D • I EIATOTTL SCN2661 T.D BRClK I CONVERT (OPT) IL ______ J I I BAUD RATE CLOCK i9J) CRT OSCILLATOR TERMINAL ASYNCHRONOUS INTERFACE TO TELEPHONE LINES PHONE ASYNC LINE MODEM INTERFACE BAUD RATE CLOCK OSCILLATOR TELEPHONE LINE 1·66 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE SCN2661 168661 TYPICAL APPLICATIONS (Cont'd) SYNCHRONOUS INTERFACE TO TERMINAL OR PERIPHERAL DEVICE 1 ADDRESS BUS \ I CONTROL BUS \ I I DATA BUS \ Ju~ RxD TxD SYNCHRONOUS RXc TERMINAL OR SCN2661 PERIPHERAL TxC DEVICE SYNCHRONOUS INTERFACE TO TELEPHONE LINES PHONE LINE INTERFACE SYNC MODEM TELEPHONE LINE Signetics 1·67 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'mil,,''''.'ij DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SCN2681 Dual Universal • Dual full·duplex asynchronous receiver/ Asynchronous Receiver/Transmitter transmlter (DUART) is a single chip MOS·LSI com· • Quadruple buffered receiver data regis· VCC munications device that provides two in· ters IP4 dependent full·duplex asynchronous • Programmable data format IP5 receiverltransmitter channels in a single -5 to 8 data bits plus parity IP6 package. It interfaces directly with micro· -Odd, even, no parity or force parity processors and may be used in a polled or IP2 -1,1.5 or 2 stop bits programmable in CEN Interrupt driven system. 1/16 bit increments The operating mode and data format of • Programmable baud rate for each r. each channel can be programmed inde· X2 ceiver and transmlter selectable from: pendently. Additionally, each receiver and -18 fixed rates: 50 to 36.4K baud transmitter can select its operating speed -One user defined rate derived from RXOB as one of eighteen fixed baud rates, a 16x programmable timer/counter clock derived from a programmable - External 1x or 16x clock OPI counterltimer, or an external 1x or 16x • Parity, framing, and overrun error detec· OP3 clock. The baud rate generator and tlon OP5 counterltimer can operate directly from a crystal or from external clock inputs. The • False start bit detection OP7 OPS ability to independently program the • Line break detection and generation 01 00 operating speed of the receiver and trans· • Programmable channel mode 03 02 mitter make the DUART particularly attrac· -Normal (full duplex) 05 04 tive for dual·speed channel applications -Automatic echo 07 06 such as clustered terminal systems. -Localloopback - Remote loopback GNO Each receiver is quadruply buffered to minimize the potential of receiver overrun • Multl·functlon programmable 16·blt or to reduce interrupt overhead in inter· counter/timer rupt driven systems. In addition, a flow • Multi·function 7·bit input port VCC control capability is provided to disable a - Can serve as clock or control Inputs IP2 remote DUART transmitter when the buf· -Change of state detection on four CEN fer of the receiving device is full. inputs RESET Also provided on the SCN2681 are a multi· • Multi·functlon 8·blt output port X2 purpose 7·bit input port and a multipur· -Individual bit set/reset capability Xl/ClK pose 8·bit output port. These can be used -Outputs can be programmed to be RXOA as general purpose I/O ports or can be status/interrupt signals assigned specific functions (such as clock • Versatile Interrupt system inputs or status/interrupt outputs) under -Single interrupt output with eight OPO program control. maskable Interrupting conditions 01 DO The SCN2681 is available in three package -Output port can be configured to pro- 02 versions to satisfy various system require· vide a total of up to six separate wire· 05 04 ments: 40·pin and 28·pin, both 0.6" wide OR'able interrupt outputs 07 06 DIPs, and a compact 24·pin, 0.4" wide, • Maximum data transfer: 1X - 1MB/sec, INTRN DIP. 16X - 125KB/sec • Automatic wake·up mode for multidrop applications AO • Start·end break Interrupt/status Vcc • Detects break which originates in the CEh middle of a character • On·chip crystal oscillator Xl/ClK • TIL compatible RXOA • Single + 5V power supply TXOA ORDERING CODE 00 Vcc=5V ±5%, TA=0'Ct070'C 02 PACKAGES 24 Pin1 28 Pln 2 40 Pin 2 05 04 06 Ceramic DIP Not available SCN2681AC1128 SCN2681 AC1140 Plastic DIP SCN2681AC1 N24 SCN2681AC1 N28 SCN2681AC1 N40 INTRN 1400 mil wide DIP TOP VIEWS 2600 mil wide DIP 1·68 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm""lut-"t BLOCK DIAGRAM 1 r-.... 8/ 00-07 ;J BUS BUFFER CHANNEL A f;= .-- TRANSMIT HOLDING REG TxDA TRANSMIT SHIFT REGISTER RON . OPERATION CONTROL f-- t-- RECEIVE WRN • HOLDING REG CEN • I ADDRESS DECODE I f--- (3) RECEIVE • RxDA .I I 4/ AO-A3 ~ SHIFT REG RESET R/W CONTROL INTERRUPT EiBCRA SRA CONTROL 1- ~ TxDB INTRN CHANNEL B B8 ISR I---- t-- (AS ABOVE) • RxDB INPUT PORT c: a: ,,1- z CHANGE OF .... STATE 71 TIMING z Sf DETECTORS (4) IPO-IPS I 0 ;:: u I BAUD RATE GENERATOR I I---- t-- Elli3 ACR I CLOCK SELECTORS OUTPUT PORT '-- I COUNTERI TIMER I FUNCTION SELECT 8 .I LOGIC OPO-OP7 ~ X1/CLK X2 .. XTAL OSC I V- OPR r-;;s;;;- I~ . Vee ~ CTUR . ·GND ~ Signetics 1·69 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'W""IIe1.'" PIN DESIGNATION APPLICABLE MNEMONIC TYPE NAME AND FUNCTION 40 28 24 DO-D7 X X X 110 Data Bus: Bidirectional3-state data bus used to transfer commands, data and status between the OUART and the CPU. 00 is the least significant bit. CEN X X X I Chip Enable: Active low input signal. When low, data transfers between the CPU and the OUART are enabled on 00-07 as controlled by the WRN, RON and AO-A3 inputs. When high, places the 00-07 lines in the 3-state condition. WRN X X X I Write Strobe: When low and CEN is also low, the contents of the data bus is loaded into the addressed register. The transfer occurs on the rising edge of the signal. RON X X X I Read Strobe: When low and CEN is also low, causes the contents of the addressed register to be presented on the data bus. The read cycle begins on the falling edge of RON. AO-A3 X X X I Address Inputs: Select the OUART internal registers and ports for read/write operations. RESET X X X I Reset: A high level clears internal registers (SRA, SRB, IMR, ISR, OPR, OPCR), puts OPO-OP7 in the high state, stops the counterltimer, and puts channels A and B in the inactive state, with the TxOA and TxOB outputs in the mark (high) state. INTRN X X X 0 Interrupt Request: Active low, open drain, output which signals the CPU that one or more of the eight maskable interrupting conditions are true. X1/CLK X X X I Crystal 1: Crystal or external clock input. A crystal or clock of the specified limits must be supplied at all times. When a crystal is used, a capaCitor must be connected from this pin to ground (see figure 5). X2 X X 0 Crystal 2: Connection for other side of the crystal. Should be connected to ground if a ,crystal is not used. When a crystal is used, a capaCitor must be connected from this pin to ground (see figure 5). RxOA X X X I Channel A Receiver Serial Data Input: The least significant bit is received first. 'Mark' is high, 'space' is low. RxOB X X X I Channel B Receiver Serial Data Input: The least significant bit is received first. 'Mark' is high, 'space' is low. TxOA X X X 0 Channel A Transmitter Serial Data Output: The least significant bit is transmitted first. This output is held in the 'mark' condition when the transmitter is disabled, idle, or when operat- ing in local loopback mode. 'Mark' is high, 'space' is low. TxOB X X X 0 Channel B Transmitter Serial Data Output: The least significant bit is transmitted first. This output is held in the 'mark' condition when the transmitter is disabled, idle, or when operat- ing in local loopback mode. 'Mark' is high, 'space' is low. OPO X X 0 Output 0: General purpose output, or channel A request to send (RTSAN, active low). Can be deactivated on receive or transmit. OP1 X X 0 Output 1: General purpose output, or channel B request to send (RTSBN, active low). Can be deactivated on receive or transmit. OP2 X 0 Output 2: General purpose output, or channel A transmitter 1X or 16X clock output, or chan- nel A receiver 1X clock output. OP3 X 0 Output 3: General purpose output, or open drain, active low counterltimer output, or channel B transmitter 1X clock output, or channel B receiver 1X clock output. OP4 X 0 Output 4: General purpose output, or channel A open drain, active low, RxROYA/FFULLA out- put. OP5 X 0 Output 5: General purpose output, or channel B open drain, active low, RxROYB/FFULLB out- put. OP6 X 0 Output 6: General purpose output, or channel A open drain, active low, TxRDYA output. OP7 X 0 Output 7: General purpose output, or channel B open drain, active low, TxRDYB output. IPO X I Input 0: General purpose input, or channel A clear to send active low input (CTSAN). IP1 X I Input 1: General purpose input, or channel B clear to send active low input (CTSBN). IP2 X X I Input 2: General purpose input, or counterltimer external clock input. IP3 X I Input 3: General purpose input, or channel A transmitter external clock input (TxCA). When the external clock is used by the transmitter, the transmitted data is clocked on the falling edge of the clock. 1-70 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm",,'n'-", PIN DESIGNATION (Continued) MNEMONIC APPLICABLE 40 28 24 TYPE NAME AND FUNCTION 1 IP4 X I Input 4: General purpose input, or channel A receiver external clock input (RxCA). When the external clock is used by the receiver, the received data is sampled on the rising edge of the clock. IP5 X I Input 5: General purpose input, or channel B transmitter external clock input (TxCB). When the external clock is used by the transmitter, the transmitted data is clocked on the falling edge of the clock. IP6 X I Input 6: General purpose input or channel B receiver external clock input (RxCB). When the external clock is used by the receiver, the received data is sampled on the rising edge of the clock. Vcc X X X I Power Supply: + 5V supply input GND X X X I Ground BLOCK DIAGRAM Timing Circuits Communications Channels The 2681 DUART consists of the following The timing block consists of a crystal A and B eight major sections: data bus buffer, oscillator, a baud rate generator, a pro- Each communications channel of the 2681 operation control, interrupt control, tim- grammable 16-bit counterltimer, and four comprises a full duplex asynchronous re- ing, communications channels A and B, in- clock selectors. The crystal oscillator ceiverltransmitter (UART). The operating put port and output port. Refer to the operates directly from a 3.6864MHz crys- frequency for each receiver and transmit- block diagram. tal connected across the Xl/ClK and X2 ter can be selected independently from inputs. If an external clock of the appropri- the baud rate generator, the counter timer, Data Bus Buffer ate frequency is available, it may be con- or from an external input. The data bus buffer provides the interface nected to Xl/ClK. The clock serves as the basic timing reference for the baud rate The transmitter accepts parallel data from between the external and internal data the CPU, converts it to a serial bit stream, busses. It is controlled by the operation generator (BRG), the counterltimer, and other internal circuits. A clock signal inserts the appropriate start, stop, and op- control block to allow read and write tional parity bits and outputs a composite within the limits specified in the specifica- operations to take place between the con- serial stream of data on the TxO output tions section of this data sheet must trolling CPU and the DUART. pin. The receiver accepts serial data on always be supplied to the OUART. the RxO pin, converts this serial input to Operation Control The baud rate generator operates from the parallel format, checks for start bit, stop The operation control logic receives oscillator or external clock input and is bit, parity bit (if any), or break condition operation commands from the CPU and capable of generating 18 commonly used and sends an assembled character to the generates appropriate signals to internal data communications baud rates ranging CPU. sections to control device operation. It from 50 to 38.4K baud. The clock outputs contains address decoding and read and from the BRG are at 16X the actual baud rate. The counterltimer can be used as a Input Port write circuits to permit communications with the microprocessor via the data bus timer to produce a 16X clock for any other The inputs to this unlatched 7-bit port can baud rate by counting down the crystal be read by the CPU by performing a read buffer. clock or an external clock. The four clock operation at address 0 16, A high input re- selectors allow the independent selection, sults in a logic 1 while a low input results Interrupt Control for each receiver and transmitter, of any of in a logic O. 0 7 will always be read as a A single active low interrupt output these baud rates or an external timing sig- logic 1. The pins of this port can also serve (INTRN) Is provided which is activated nal. as auxiliary inputs to certain portions of upon the occurence of any of eight inter- the OUART logic. nal events. Associated with the interrupt The counter/timer (CfT) can be program- system are the interrupt mask register med to use one of several timing sources as its input. The output of the CfT is avail- Four change-of-state detectors are pro- (IMR) and the interrupt status register able to the clock selectors and can also be vided which are associated with inputs (ISR). The IMR may be programmed to IP3, IP2, IP1, and IPO. A high-to-Iow or low- select only certain conditions to cause programmed to be output at OP3. In the counter mode, the contents of the CfT can to-high transition of these inputs lasting I NTRN to be asserted. The ISR can be read longer than 25-50l's will set the corre- by the CPU to determine all currently ac- be read by the CPU and it can be stopped and started under program control. In the sponding bit In the input port will change tive interrupting conditions. register. The bits are cleared when the timer mode, the CfT acts as a program- Outputs OP3-0P7 can be programmed to mable divider. register is read by the CPU. Any change of provide discrete interrupt outputs for the state can also be programmed to generate transmitters, receivers, and counterltimer. an Interrupt to the CPU. Signetics 1-71 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm",,'''i_'', Output Port low condition by issuing a send break strobed.into the SR at the received charac· command. ter boundary, before the RxRDY status bit The 8·bit multi·purpose output port can be The transmitter can be reset through a is set. If a break condition is detected used as a general purpose output port, in software command. If it is reset, operation (RxD is low for the entire character in· which case the outputs are the comple· ceases immediately and the transmitter cluding the stop bit), a character con· ments of the output port register (OPR). must be enabled through the command sisting of all zeros will be loaded into the OPR[n]= 1 results in OP[n] = low and vice· register before resuming operation. If CTS RHR and the received break bit in the SR versa. Bits of the OPR can be individually operation Is en;l.bled, the CTSN input must is set to 1. The RxD input must return to a set and reset. A bit is set by performing a be low In order for the character to be high condition for at least one·half bit time write operation at address E16 with the ac· transmitted. if It goes high in the middle of before a search for the next start bit companying data specifying the bits to be a transmission, the character In the shift begins. set (1 = set, 0 = no change). Likewise, a bit is reset by a write at address F16 with the register is transmitted and TxDA then reo The RHR consists of a first·in·first·out accompanying data specifying the bits to mains in the marking state until CTSN (FIFO) stack with a capacity of three char· be reset (1 = reset, 0 = no change). goes low. The transmitter can also control . acters. Data is loaded from the receive the deactivation of the RTSN output. If shift register into the topmost empty posi· Outputs can be also individually assigned tion of the FIFO. The RxRDY bit in the programmed, the RTSN output will be reo specific functions by appropriate pro· status register is set whenever one or set one b.it time after the character In the gramming of the channel A mode registers more characters are available to be read, transmit shift register and transmit hold· (MR1A, MR2A), the channel B mode regis· and a FFULL status bit is set if all three ing register (if any) are completely trans· ters (MR1B, MR2B), and the output port stack positions are filled with data. Either configuration register (OPCR). mitted, if the transmitter has been dis· abled. of these bits can be selected to cause an interrupt. A read of the RHR outputs the data at the top of the FIFO. After the read OPERATION Receiver cycle, the data FIFO and its associated The 2681 is conditioned to receive· data status bits (see below) are 'popped' thus Transmitter when enabled through the command reg· emptying a FIFO position for new data. ister. The receiver looks for a high to low In addition to the data word, three status The 2681 is conditioned to transmit data (mark to space) transition of the start bit bits (parity error, framing error, and reo when the transmitter is enabled through on the RxD input pin. If a transition is de- ceived break) are also appended to each the command register. The 2681 indicates tected, the state of the RxD pin is sampled data character in the FIFO (overrun is not). to the CPU that it is ready to accept a character by setting the TxRDY bit in the each 16X clock for 7·112 clocks (16X clock Status can be provided in two ways, as status register. This condition can be pro· mode) or at the next rising edge of the bit programmed by the error mode control bit time clock (1X clock mode). If RxD is in the mode register. In the 'character' grammed to generate an interrupt request sampled high, the start bit is invalid and mode, status is provided on a character· at OP6 or OP7 and INTRN. When a charac· the search for a valid start bit· begins by·character basis: the status applies only ter Is loaded into the transmit holding reg· again. If RxD is still low, a valid start bit is to the character at the top of the FI FO. In ister (THR), the above conditions are negated. Data is transferred from the hold· assumed and the receiver continues to the 'block' mode, the status provided in ing register to the transmit shift register sample the input at one bit time intervals the SR for these three bits is the logical at the theoretical center of the bit, until OR of the status for all characters coming when it is idle or has completed transmis· the proper number of data bits and the to the top of the FIFO since the last 'reset sion of the previous character. The TxRDY parity bit (If any) have been assembled, error' command was issued. In either conditions are then asserted again which means one full character time of buffering and one stop bit has been detected . The mode reading the SR does not affect the is provided. Characters cannot be loaded least siglficant bit Is received first. The FIFO. The FIFO is 'popped' only when the into the THR while the transmitter is dis· data is then transferred to the receive RHR is read. Therefore the status register holding register (RHR) and the RxRDY bit should be read prior to reading the FIFO. abled. in the SR is set to a 1. This condition can If the FIFO Is full when a new character is The transmitter converts the parallel data be programmed to generate an interrupt at received, that character is held in the reo from the CPU to a serial bit stream on the OP4 or OP5 and INTRN. If the character ceive shift register until a FIFO position is TxD output pin. It automatically sends a length is less than eight bits, the most available. If an additional character is reo start bit followed by the programmed significant unused bits in the RHR are set ceived while this state exits, the contents number of data bits, an optional parity bit, to zero. of the FIFO are not affected: the character and the programmed number of stop bits. After the stop bit Is detected, the receiver previously in the shiftreglster is lost and The least significant bit is sent first. Fol· will immediately look for the next start bit. the overrun error status bit (SR[4]) will be lowing the transmission of the stop bits, if However, if a non·zero character was re- set upon receipt of the start bit of the new a new character is not available in the ceived without a stop bit (framing error) (overruning) character. . THR, the TxD output remains high and the TxEMT bit in the status register (SR) will and RxD remains low for one half of the bit The receiver can control the deactivation be set to 1. Transmission resumes and the period after the stop bit was sampled, of RTS. If programmed to operate in this TxEMT bit is cleared when the CPU loads a then the receiver operates as if a new·start mode, the RTSN output will be negated new character into the THR. If the trans· bit transition had been detected at that when a valid start bit was received and the point (one-half bit time after the stop bit FIFO is full. When a FIFO position be· mitter is disabled, it continues operating until the character currently being trans· was sampled). comes available, the RTSN output will be mitted is completely sent out. The trans· The parity error, framing error, overrun er· re-asserted automatically. This feature mitter can be forced to send a continuous ror and received break state (if any) are can be used to prevent an overrun, in the 1-72 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES ':net"""".,,, receiver, by connecting the RTSN output ate normally whether or not the receiver is MR1A - Channel A Mode to the CTSN input of the transmitting device. enabled. Register 1 MRIA is accessed when the channel A MR 1 If the receiver is disabled, the FIFO char· pointer pOints to MRI. The pOinter is set acters can be read. However, no additional PROGRAMMING to MRI by RESET or by a 'set pointer' com- characters can be received until the re- The operation of the DUART is program- mand applied via CRA. After reading or ceiver is enabled again. If the receiver is med by writing control words into the ap- writing MR1A, the pOinter will point to reset, the FI FO and all of the receiver propriate registers. Operational feedback MR2A. status, and the corresponding output is provided via status registers which can ports and interrupt are reset. No addi- be read by the CPU. The addressing of the MR1A[7] - Channel A Receiver Request- tional characters can be received until the registers is described in table 1. to-Send Control - This bit controls the receiver is enabled again. The contents of certain control registers deactivation of the RTSAN output (OPO) by Multidrop Mode are initialized to zero on RESET. Care the receiver. This output is normally should be exercised if the contents of a asserted by setting OPR[O] and negated by The DUART is equipped with a wake up resetting OPR[O]. MR1A[7] = 1 causes mode used for multidrop applications. register are changed during operation, since certain changes may cause opera- RTSAN to be negated upon receipt of a This mode is selected by programming valid start bit if the channel A FIFO is full. bits MR1A[4:3] or MR1B[4:3] to '11' for tional problems. For example, changing the number of bits per character while the However, OPR[O] is not reset and RTSAN channels A and B respectively. In this will be asserted again when an empty mode of operation, a 'master' station transmitter is active may cause the trans- mission of an incorrect character. In gen- FIFO position is available. This feature transmits an address character followed can be used for flow control to prevent by data characters for the addressed eral, the contents of the MR, the CSR, and the OPCR should only be changed while overrun in the receiver by using the 'slave' station. The slave stations, with RTSAN output signal to control the CTSN receivers that are normally disabled, ex- the receiver(s) and transmitter(s) are not enabled, and certai n changes to the ACR input of the transmitting device. amine the received data stream and 'wake- up' the CPU (by setting RxRDY) only upon should only be made while the CIT is stopped. MR1A[6] - Channel A Receiver Interrupt receipt of an address character. The CPU Select - This bit selects either the chan- compares the received address to its sta- Mode registers 1 and 2 of each channel are nel A receiver ready status (RXRDY) or the tion address and enables the receiver if it accessed via independent auxiliary point- channel A FIFO full status (FFULL) to be wishes to receive the subsequent data ers. The pointer is set to MRlx by RESET used for CPU interrupts. It also causes the characters. Upon receipt of another ad- or by issuing a 'reset pointer' command selected bit to be output on OP4 if it is dress character, the CPU may disable the via the corresponding command register. programmed as an interrupt output via the receiver to initiate the process again. Any read or write of the mode register OPCR. A transmitted character consists of a start while the pointer is at MRlx switches the bit, the programmed number of data bits, pointer to MR2x. The pointer then remains MR1A[5] - Channel A Error Mode Select an addressldata (AID) bit, and the pro- at MR2x, so that subsequent accesses are - This bit selects the operating mode of grammed number of stop bits. The polarity always to MR2x unless the pOinter is reset the three FIFOed status bits (FE, PE, re- of the transmitted AID bit is selected by to MRlx as described above. ceived break) for channel A. In the 'charac· the CPU by programming bit MR1A[2]1 Mode, command, clock select, and status ter' mode, status is provided on a charac- MR1B[2]. MR1A[2]/MRl B[2] = 0 transmits a registers are duplicated for each channel ter-by-character basis: the status applies zero in the AID bit position, which iden- to provide total independent operation only to the character at the top of the tifies the corresponding data bits as data, and control. Refer to table 2 for register bit FIFO. In the 'block' mode, the status pro- while MR1A[2]/MRlB[2]= 1 transmits a descriptions. vided in the SR for these bits is the ac- one in the AID bit position, which identi- fies the corresponding data bits as an ad- Table 1 2681 REGISTER ADDRESSING dress. The CPU should program the mode A3 A2 AI AO READ (RON = 0) WRITE (WRN = 0) register prior to loading the corresponding data bits into the THR. 0 0 0 0 Mode Register A (MR1A, MR2A) Mode Register A (MR1A, MR2A) 0 0 0 1 Status Register A (SRA) Clock Select Reg. A (CSRA) In this mode, the receiver continuously 0 0 1 0 * Reserved * Command Register A (CRA) looks at the received data stream, whether 0 0 1 1 RX Holding Register A (RHRA) TX Holding Register A (THRA) it is enabled or disabled. If disabled, it 0 1 0 0 Input Port Change Reg. (IPCR) Aux. Control Register (ACR) sets the RxRDY status bit and loads the 0 1 0 1 Interrupt Status Reg. (ISR) Interrupt Mask Reg. (IMR) character into the RHR FIFO if the re- 0 1 1 0 CounterlTimer Upper (CTU) CIT Upper Register (CTUR) ceived AID bit is a one (address tag), but 0 1 1 1 CounterlTimer Lower (CTL) CIT Lower Register (CTLR) discards the received character if the 1 0 0 0 Mode Register B (MR1B, MR2B) Mode Register B (MR1B, MR2B) received AID bit is a zero (data tag). If 1 0 0 1 Status Register B (SRB) Clock Select Reg. B (CSRB) enabled, all received characters are trans- 1 0 1 0 * Reserved * Command Register B (CRB) ferred to the CPU via the RHR. In either 1 0 1 1 RX Holding Register B (RHRB) TX Holding Register B (THRB) case, the data bits are loaded into the data 1 1 0 0 * Reserved * 'Reserved* FIFO while the AID bit is loaded into the 1 1 0 1 Input Port Output Port Conf. Reg. (OPCR) status FIFO position normally used for 1 1 1 0 Start Counter Command Set Output Port Bits Command parity error (SRA[5] or SRB[5]). Framing error, overrun error, and break detect oper- 1 1 1 1 Stop Counter Command Reset Output Port Bits Command Signetics 1-73 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm"..n".!" Table 2 REGISTER BIT FORMATS BIT7 BIT6 BITS BIT4 BIT3 BIT2 BIT1 BITO RX RTS RXINT ERROR PARITY PARITY MODE BITS PER CHAR. CONTROL SELECT MODE TYPE MR1A O=,no 0= RXRDY 0= char 00= with parity 0= even 00=5 MR1B 1 = yes 1 = FFULL 1 = block 01 = lorce parity 1 =odd 01=6 10 = no parity 10= 7 11 = multi·drop mode 11 =8 BIT7 BIT6 BITS BIT4 BIT3 BIT2 Bin BITO Tx RTS CTS CHANNEL MODE STOP BIT LENGTH" CONTROL ENABLE Tx MR2A 00= Normal O=no O=no 0=0.563 4=0.813 8= 1.563 C= 1.813 MR2B 01 = Auto echo 1 = yes 1 =yes 1 = 0.625 5=0.875 9= 1.625 0= 1.875 10= Local loop 2=0.688 6=0.938 A= 1.688 E= 1.938 11 = Remote loop 3=0.750 7= 1.000 B= 1.750 F=2.000 ~Add 0.5 to values shown for 0-7.f channel IS programmed for 5 bltsfchar. BIT7 BIT6 BITS BIT4 BIT3 BIT2 BIT1 BITO RECEIVER CLOCK SELECT TRANSMITTER CLOCK SELECT CSRA CSRB See text See text BIT7 BIT6 BITS BIT4 BIT3 BIT2 BIT1 BITO MISCELLANEOUS COMMANDS DISABLE Tx ENABLE Tx DISABLE Rx ENABLE Rx CRA not used- CRB must be 0 See text 0= no O=no O=no O=no 1 = yes 1 = yes 1 = yes 1=yes BIT7 BIT6 BITS BIT4 BIT3 BIT2 BIT1 BITO RECEIVED FRAMING PARITY OVERRUN TxEMT TxRDY FFULL RxRDY BREAK ERROR ERROR ERROR SRA O=no O=no O=no 0= no O=no O=no O=no 0= no SRB 1 = yes 1 = yes . 1 =yes 1 = yes 1 = yes 1 =yes 1 = yes 1 =yes -These status bits are appended to the correspondmg data character In the receive FIFO. A read of the status register provides these bits (7:5) from the top of the FIFO together with bits 4:0. These bits are cleared by a 'reset error status' command. In character mode they are discarded when the corresponding data character is read from the FIFO. BIT7 BIT6 BITS BIT4 BIT3 BIT2 BIT1 BITO OP7 OP6 OP5 OP4 OP3 OP2 0=OPR[7j 0=OPR[6j 0=OPR[5j 0=OPR[4j OO=OPR[3j 00=OPR[2j OPCR 1 = TxRDYB 1 = TxRDYA 1= RxRDYI 1 = RxRDYI 01 = CIT OUTPUT 01 = TxCA (16X) FFULLB FFULLA 10 = TxCB (1X) 10=TxCA(1X) 11 = RxCB (1X) 11 = RxCA (1X) BIT7 BIT6 BITS BIT4 BIT3 BIT2 Bin BITO BRG SET COUNTERITIMER DELTA DELTA DELTA DELTA SELECT MODE AND SOURCE IP31NT IP21NT IP11NT IPO INT ACR 0=set1 See table 4 0=011 O=of! 0=011 O=of! 1 = set2 1 =on 1=on 1=on 1 =on BIT7 BIT6 BITS BIT4 BIT3 BIT2 81T1 BITO DELTA DELTA DELTA DELTA IP3 IP2 IP1 IPO IPCR IP3 IP2 IP1 IPO 0= no 0= no O=no O=no O=low O=low O=low 0= low 1 =yes 1 = yes 1 =yes 1 = yes 1 = high 1 = high 1 =high 1 = high 1·74 Signefics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'W""""-'" Table 2 REGISTER BIT FORMATS (Continued) BIT7 INPUT BITS DELTA BITS RxRDYI BIT4 BIT3 COUNTER BIT2 DELTA BIT1 RxRDYI BITO 1 PORT TxRDYB TxRDYA BREAK B FFULLB READY BREAK A FFULLA ISR CHANGE 0= no 0= no 0= no 0= no O=no 0= no O=no 0= no 1 = yes 1 = yes 1 = yes 1 = yes 1 = yes 1 = yes 1 =yes 1 =yes BIT7 BITS BITS BIT4 BIT3 BIT2 BIT1 BITO IN. PORT DELTA RxRDYI COUNTER DELTA RxRDYI TxRDYB TxRDYA CHANGE BREAK B FFULLB READY BREAK A FFULLA INT INT IMR INT INT INT INT INT INT O=off 0= off O=off 0= off O=off O=off 0= off 0= off 1 =on 1=on 1=on 1=on 1=on 1=on 1 =on 1 =on CTUR CTLR cumulation (logical OR) of the status for MR2A - Channel A Mode 6. Character framing is checked, but the all characters coming to the top of the Register 2 stop bits are retransmitted as received. FIFO since the last 'reset error' command 7. A received break is echoed as received for channel A was issued. MR2A is accessed when the channel A MR until the next valid start bit is detected. pointer points to MR2, which occurs after any access to MR1A. Accesses to MR2A 8. CPU to receiver communication contino MR1AI4:3] - Channel A Parity Mode do not change the pointer. ues normally, but the CPU to transmit· Select - If 'with parity' or 'force parity' is ter link is disabled. selected, a parity bit is added to the trans- Two diagnostic modes can also be config- mitted character and the receiver per- MR2A[7:S) - Channel A Mode Select - Each channel of the DUART can operate in ured. MR2A[7:6] = 10 selects local loop· forms a parity check on incoming data. back mode. In this mode: MR1A[4:3]= 11 selects channel A to oper- one of four modes. MR2A[7:6] = 00 is the ate in the special multidrop mode de· normal mode, with the transmitter and reo 1. The transmitter output is internally scribed in the Operation section. ceiver operating independently. MR2A[7:6] connected to the receiver input. = 01 places the channel in the automatic 2. The transmit clock is used for the reo echo mode, which automatically retrans· ceiver. MR1AI2) - Channel A Parity Type Select mits the received data. The following con· - This bit selects the parity type (odd or ditions are true while in automatic echo 3. The TxDA output is held high. even) if the 'with parity' mode is program· mode: 4. The RxDA input is ignored. med by MR1A[4:3], and the polarity of the 5. The transmitter must be enabled, but 1. Received data is reclocked and retrans- forced parity bit if the 'force parity' mode the receiver need not be enabled. mitted on the TxDA output. is programmed. It has no effect if the 'no 6. CPU to transmitter and receiver com· parity' mode is programmed. In the special 2. The receive clock is used for the trans· munications continue normally. multidrop mode it selects the polarity of mitter. the AID bit. 3. The receiver must be enabled, but the The second diagnostic mode is the remote transmitter need not be enabled. loopback mode, selected by M R2A[7:6] = 11. In this mode: MR1AI1:0)-ChanneIABitsperCharacter 4. The channel A TxRDY and TxEMT Select - This field selects the number of status bits are inactive. 1. Received data is relocked and retrans· data bits per character to be transmitted 5. The received parity is checked, but is mitted on the TxDA output. and received. The character length does not regenerated for transmission, I.e., 2. The receive clock is used for the trans· not include the start, parity, and stop bits. transmitted parity bit is as received. mitter. Signetics 1·75 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm""liel.iti 3. Received data is not sent to the local (I PO) each time it Is ready to send a charac· Baud Rate CPU, and the error status conditions ter. If IPO is asserted (low), the character is CLOCK = 3.6864MHz are inactive. transmitted. If it is negated (high), the CSRA[7:4) ACR[7) = 0 ACR[7) = 1 4. The received parity is not checked and TxDA output remains in the marking state and the transmission is delayed until 0 000 50 75 is not regenerated for transmission, 0 o 0 1 110 110 i.e., transmitted parity bit is as' reo CTSAN goes low. Changes in CTSAN ceived. while a character is being transmitted do 0 o 1 0 134.5 134.5 not affect the transmission of that charac- 0 o 1 1 200 150 5. The receiver must be enabled, 0 1 0 0 300 300 ter. 6. Character framing is not checked, and 0 0 1 600 600 the stop bits are retransmitted as reo MR2A[3:0) - Channel A Stop Bit Length 0 1 1 0 1,200 1,200 ceived. Select - This field programs the length of 0 1 1 1 1,050 2,000 7. A received break is echoed as received the stop bit appended to the transmitted 0 0 0 2,400 2,400 until the next valid start bit is detected. character. Stop bit lengths of 9/16 to 1 and 0 0 1 4,800 4,800 1-9/16 to 2 bits, in increments of 1/16 bit, 0 1 0 7,200 1,800 The user must exercise care when switch· can be programmed for character lengths 0 1 1 9,600 9,600 ing into and out of the various modes. The of 6, 7, and 8 bits. For a character length of 1 0 0 38.4K 19.2K selected mode will be activated immedi· 5 bits, 1-1/16 to 2 stop bits can be pro· 1 0 1 Timer Timer ately upon mode selection, even if this oc· grammed in increments of 1/16 bit. The re- 0 IP4-16X IP4-16X curs in the middle of a received or trans· ceiver only checks for a 'mark' condition IP4-1X IP4-1X mitted character. Likewise, if a mode is de· at the center of the first stop bit position The receiver clock is always a 16X clock selected, the device will switch out of the (one bit time after the last data bit, or after except for CSRA[7:4] = 1111. mode immediately. An exception to this is the parity bit if parity is enabled) in all switching out of autoecho or remote loop· cases. CSRA[3:0) - Channel A Transmitter Clock back modes: if the de·selection occurs Select - This field selects the baud rate If an external 1X clock is used for the just after the receiver has sampled the clock for the channel A transmitter. The transmitter, MR2A[3] = 0 selects one stop stop bit (indicated in autoecho by asser· field definition is as per CSRA[7:4] except bit and MR2A[3]= 1 selects two stop bits tion of RxRDY), and the transmitter is as follOWS: to be transmitted. enabled, the transmitter will remain in Baud Rate autoecho. mode until the entire stop bit MR1B - Channel B Mode CSRA(3:0) ACR[7) = 0 ACR[7) = 1 has been retransmitted. Register 1 1 1 1 0 IP3-16X IP3-16X MR2A[S) - Channel A Transmitter R. MR1B is accessed when the channel B MR 1 1 1 1 IP3-1X IP3-1X quest·to·Send Control - This bit controls pointer points to MR1. The pointer is set The transmitter clock is always a 16X the deactivation of the RTSAN output to MR1 by RESET or by a 'set pointer' com· clock except for CSRA[3:0] = 1111. (OPO) by the transmitter. This output is mand applied via CRB. After reading or normally asserted by setting OPR[O] and writing MR1B, the pointer will point to CSRB - Channel B Clock Select MR2B. negated by resetting OPR[O]. MR2A[5]= 1 Register causes OPR[O] to be reset au10matically The bit definitions for this register are one bit time after the characters in the identical to the bit definitions for MR1A, CSRB[7:4) - Channel B Receiver Clock channel A transmit shift register and in except that all control actions apply to the Select - This field selects the baud rate the THR, if any, are completely transmit· clock for the channel B receiver. The field channel B receiver and transmitter and the ted, including the programmed number of corresponding inputs and outputs. definition is as per CSRA[7:4] except as stop bits, if the transmitter is not enabled. follows: This feature can be used to automatically MR2B - Channel B Mode Baud Rate terminate the transmission of a message Register 2 CSRB[7:4) ACR[7) = 0 ACR[7) = 1 as follows: MR2B is accessed when the channel B MR 1 1 1 0 IP6-16X IP6-16X 1. Program auto· reset mode: MR2A[5]= 1. pointer points to MR2, which occurs after 1 1 1 1 IP6-1X 1P6-1X 2. Enable transmitter. any access to MR1B. Accesses to MR2B The receiver clock is always a 16X clock 3. Assert RTSAN: OPR[O]= 1. do not change the pOinter. except for CSRB[7:4]= 11.11. 4. Send message. The bit definitions for this register are CSRB[3:0) - Channel B Transmitter Clock 5. Disable transmitter after the last char- identical to the bit definitions for MR2A, Select - This field selects the baud rate acter is loaded into the channel A THR. except that all control actions apply to the clock for the channel B transmitter. The 6. The last character will be transmitted channel B receiver and transmitter and the field definition is as per CSRA[7:4] except and OPR[O] will be reset one bit time corresponding inputs and outputs. as follows: after the last stop bit, causing RTSAN CSRA - Channel A Clock Select Baud Rate to be negated. Register CSRB[3:0) ACR[7) = 0 ACR[7) = 1 MR2A[4) - Channel A Clear·ta-Send Con- CSRA[7:41 - Channel A Receiver Clock 1 1 1 0 IP5-16X IP5-16X trol - If this bit is 0, CTSAN has no effect Select - This field selects the baud rate 1 1 1 1 IP5-1X IP5-1X on the transmitter. If this bit is a 1, the clock for the channel A receiver as fol- The transmitter clock is always a 16X transmitter checks the state of CTSAN lows: clock except for CSRB[3:0]= 1111. 1-76 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm",,11"·'d CRA - Channel A Command times. TXDA will remain high for When this bit is set, the channel A 'change one bit time before the next in break' bit in the ISR (ISR[2]) is set. ISR[2) Register CRA is a register used to supply com- character, if any, is transmitted. is also set when the end of the break con- dition, as defined above, is detected. 1 mands to channel A. Multiple commands CRA[3) - Disable Channel A Transmitter can be specified in a single write to CRA The break detect circuitry can detect - This command terminates transmitter breaks that originate in the middle of a as long as the commands are non-conflict- operation and resets the TxRDY and ing, e.g., the 'enable transmitter' and received character. However, if a break TxEMT status bits. However, if a character begins in the middle of a character, it must 'reset transmitter' commands cannot be is being transmitted or if a character is in specified in a single command word. persist until at least the end of the next the THR when the transmitter is disabled, character time in order for It to be de- the transmission of the character(s) is CRA[6:4) - Channel A Miscellaneous tected. completed before assuming the inactive Commands - The encoded value of this state. SRA[6] - Channel A Framing Error -This field may be used to specify a single com- mand as follows: bit, when set, indicates that a stop bit was CRA[2) - Enable Channel A Transmitter not detected when the corresponding data CRA[6:4) COMMAND - Enables operation of the channel A character in the FIFO was received. The transmitter. The TxRDY status bit will be stop bit check is made in the middle of the o0 0 No command. asserted. first stop bit position. o0 1 Reset MR pointer. Causes the channel A MR pointer to point to CRA[1) - Disable Channel A Receiver - SRA[S] - Channel A Parity Error - This MR1. This command terminates operation of bit is set when the 'with parity' or 'force o10 Reset receiver. Resets the chan- the receiver immediately - a character parity' mode is programmed and the corre- nel A receiver as if a hardware being received will be lost. The command sponding character in the FIFO was re- reset had been applied. The re- has no effect on the receiver status bits or ceived with incorrect parity. ceiver is disabled and the FIFO any other control registers. If the special In the special multidrop mode the parity is flushed. multidrop mode is programmed, the re- error bit stores the received AID bit. o1 1 Reset transmitter. Resets the ceiver operates even if it is disabled. See channel A transmitter as if a Operation section. SRAI4) - Channel A Overrun Error - This hardware reset had been ap- bit, when set, indicates that one or more plied. CRA[O] - Enable Channel A Receiver - characters in the received data stream Enables operation of the channel A re- have been lost. It is set upon receipt of a 1 0 0 Reset error status. Clears the ceiver. If not in the special wakeup mode, new character when the FIFO is full and a channel A Received Break, Par- this also forces the receiver into the character is already in the receive shift ity Error, Framing Error, and search for start-bit state. register waiting for an empty FIFO posi- Overrun Error bits in the status register (SRA[7:4]). Used in char- tion. When this occurs, the character in acter mode to clear OE status CRB - Channel B Command the receive shift register (and its break (although RB, PE, and FE bits Register detect, parity error and framing error will also be cleared) and in block status, if any) is lost. CRB is a register used to supply com- mode to clear all error status mands to channel B. Multiple commands This bit is cleared by a 'reset error status' after a block of data has been can be specified in a Single write to CRB command. received. as long as the commands are non-conflict- 1 0 1 Reset channel A break change ing, e.g., the 'enable transmitter' and SRA[3] - Channel A Transmitter Empty interrupt. Causes the channel A 'reset transmitter' commands cannot be (TxEMTA) - This bit will be set when the break detect change bit in the in- specified in a Single command word. channel A transmitter underruns, i.e., both terrupt status register (ISR[2]) to the transmit holding register (THR) and The bit definitions for this register are the transmit shift register are empty. It is be cleared to zero. identical to the bit definitions for CRA, ex- set after transmission of the last stop bit 1 1 0 Start break. Forces the TXDA cept that all control actions apply to the output low (spacing). If the of a character if no character is in the THR channel B receiver and transmitter and the awaiting transmission. It is reset when the transmitter is empty the start of corresponding inputs and outputs. THR is loaded by the CPU or when the the break condition will be de- layed up to two bit times. If the transmitter is disabled. transmitter is active the break SRA - Channel A Status SRA[2) - Channel A Transmitter Ready begins when~ransmission of the Register (TxRDYA) - This bit, when set, indicates character is completed. If a char- SRA[7) - Channel A Received Break - that the THR is empty and ready to be acter is in the THR, the start of This bit indicates that an all zero character loaded with a character. This bit is cleared the break will be delayed until of the programmed length has been re- when the THR is loaded by the CPU and is that character, or any others ceived without a stop bit. Only a single set when the character is transferred to loaded subsequently are trans- FIFO position is occupied when a break is the transmit shift register. TxRDY is reset mitted. The transmitter must be received: further entries to the FIFO are in- when the transmitter is disabled and is set enabled for this command to be hibited until the RxDA line returns to the when the transmitter is first enabled, viz., accepted. marking state for at least one-half a bit characters loaded into the THR while the 1 1 1 Stop Break. the TXDA line will time (two successive edges of the internal transmitter is disabled will not be trans· go high (marking) within two bit or external 1x clock). mitted. Signetics 1-77 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm""II".i" SRAI1] - Channel A FIFO Full (FFULLA) OPCRI4) - OP4 Output Select - This bit OPCRI1:0) - OP2 Output Select - This - This bit is set when a character is trans- programs the OP4 output to provide one of field programs the OP2 output to provide ferred from the receive shift register to the the following: one of the following: receive FIFO and the transfer causes the - The complement of OPR[4] - The complement of OPR[2]. FIFO to become full, i.e., all three FIFO - The channel A receiver interrupt out- - The 16X clock for the channel A trans- positions are occupied. It is reset when put, which is the complement of ISR[1]. mitter. This is the clock selected by the CPU reads the RHR. If a character is When in this mode OP4 acts as an open CSAA[3:01, and will be a 1X clock if waiting in the receive shift register be- cause the FIFO is full, FFULL will not be collector output. Note that this output = CSRA[3:0] 1111. is not masked by the contents of the - The 1X clock for the channel A trans- reset when the CPU reads the AHR. IMR. mitter, which is the clock that shifts the SRAIO] - Channel A Receiver Ready transmitted data. If data is not being OPCRI3:2] - OP3 Output Select - This (RxRDY.A) - This bit indicates that a char- transmitted, a free running 1X clock is field programs the OP3 output to provide acter has been received and is waiting in output. one of the following: the FIFO to be read by the CPU. It is set - The 1X clock for the channel A receiver, when the character is transferred from the - The complement of OPR[3] which is the clock that samples the receive shift register to the FIFO and reset - The counter/timer output, in which received data. If data is not being re- when the CPU reads the RHR, if after this case OP3 acts as an open collector out- ceived, a free running 1X clock is out- read there are no more characters still in put. In the timer mode, this output is a put. the FIFO. square wave at the programmed fre- quency. In the counter mode, the out- SRB - Channel B Status Register put remains high until terminal count is ACR - Auxiliary Control Register reached, at which time it goes low. The The bit definitions for this register are output returns to the high state when ACRI7] - Baud Rate Generator Set Select identical to the bit definitions for SRA, ex- the counter is stopped by a stop - This bit selects one of two sets of baud cept that all status applies to the channel counter command. Note that this out- rates to be generated by the BRG: B receiver and transmitter and the corre- put is not masked by the contents of sponding inputs and outputs. Set 1: 50, 110, 134.5, 200, 300, 600, 1.05K, the IMR. 1.2K, 2.4K, 4.8K, 7.2K, 9.6K, and OPCR - Output Port Configur· - The 1X clock for the channel B trans- mitter, which is the clock that shifts the 38.4K baud. ation Register Set 2: 75, 110, 134.5, 150, 300, 600, 1.2K, transmitted data. If data is not being OPCRI7] - OP7 Output Sel"ct - This bit transmitted, a free running 1X clock is 1.8K, 2.0K, 2.4K, 4.8K, 9.6K, and programs the OP7 output to provide one of output. 19.2K baud. the following: - The 1X clock for the channel B receiver, The selected set of rates is available for - The complement of OPR(7) which is the ciock that samples the use by the channel A and B receivers and - The channel B transmitter interrupt received data. If data is not being re- transmitters as described in CSRA and output, which is the complement of ceived, a free running 1X clock is out- CSRB. Baud rate generator characteristics TxRDYB. When in this mode OP7 acts put. are given in table 3. as an open collector output. Note that this output is not masked by the con- tents of the IMR. Table 3 BAUD RATE GENERATOR CHARACTERISTICS CRYSTAL OR CLOCK = 3.6864MHz OPCRI6] - OP6 Output Select - This bit programs the OP6 output to provide one of NOMINAL RATE (BAUD) ACTUAL 16XCLOCK(KHz) ERROR (PERCENn the followng: 50 0.8 0 - The complement of OPR[6] 75 1.2 0 110 1.759 -0.069 - The channel A transmitter interrupt 134.5 2.153 0.059 output, which is the complement of 150 2.4 0 TxRDYA. When in this mode OP6 acts 200 3.2 0 as an open collector output. Note that 300 4.8 0 this output is not masked by the con- 600 9.6 0 tents of the IMR. 1050 16.756 -0.260 OPCRIS] - OPS Output Select - This bit 1200 19.2 0 programs the OP5 output to provide one of 1800 28.8 0 the following: 2000 32.056 0.175 2400 38.4 0 - The complement of OPR[5] 4800 76.8 0 - The channel B receiver interrupt out- 7200 115.2 0 put, which is the complement of ISR[5]. 9600 153.6 0 When in this mode OP5 acts as an open 19.2K 307.2 0 collector output. Note that this output 38.4K 614.4 0 is not masked by the contents of the NOTE: IMR. Duty cycle of 1SX clock is ·50% ± 1 %. 1-78 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'mn"lIrI.',j ACR[6:4]-CounterlTlmer Mode and Clock Table 4 ACR (6:4J FIELD DEFINITION Source Select - This field selects the operating mode of the counter/timer and its clock source as shown in table 4. ACR[6:4) 000 MODE Counter External (I P2) CLOCK SOURCE 1 001 Counter TXCA - 1X clock of channel A transmitter ACR[3:0] - IP3, IP2, IPi, IPO Change 01 State Interrupt Enable - This field selects 010 Counter TXCB - 1X clock of channel B transmitter which bits of the Input Port Change regis- 011 Counter Crystal or external clock (X1/ClK) divided by 16 ter (IPCR) cause the input change bit in 1 o0 Timer External (I P2) the interrupt status register (ISR[7]) to be 1 o1 Timer External (IP2) divided by 16 set. If a bit is in the 'on' state, the setting Crystal or external clock (X1/ClK) 11 0 Timer of the corresponding bit in the IPCR will also result in the setting of ISR[7), which 111 Timer Crystal or external clock (XlIClK) divided by 16 results in the generation of an interrupt output if IMR[7)= 1. If a bit is in the 'off' state, the setting of that bit in the IPCR has no effect on ISR[7). ISR[6] - Channel B Change In Break - ISR(2) - Channel A Change in Break - This bit, when set, indicates that the chan- This bit, when set, indicates that the chan- IPCR - Input Port Change nel B receiver has detected the beginning nel A receiver has detected the beginning Register or the end of a received break. It is reset or the end of a received break. It is reset when the CPU issues a channel B 'reset when the CPU issues a channel A 'reset IPCR[7:4) - IP3, IP2, IPi, IPO Change 01 break change interrupt' command. break change interrupt' command. State - These bits are set when a change of state, as defined in the I nput Port sec- ISR[1] - Channel A Receiver Ready or tion of this data sheet, occurs at the re- ISR(5) - Channel B Receiver Ready or FIFO Full - The function of this bit is pro- FIFO Full - The function of this bit is pro- spective input pins. They are cleared when grammed by MR1 B[6). If programmed as grammed by MR1A[6). If programmed as the IPCR is read by the CPU. A read of the receiver ready, it i nd icates that a character receiver ready, it indicates that a character IPCR also clears ISR[7), the input change has been received in channel A and is bit in the interrupt status register. has been received in channel B and is waiting in the FIFO to be read by the CPU. waiting in the FI FO to be read by the CPU. The setting of these bits can be program- It is set when the character is transferred It is set when the character is transferred med to generate an interrupt to the CPU. from the receive shift register to the FIFO from the receive shift register to the FI FO and reset when the CPU reads the RHR. If and reset when the CPU reads the RHR. If IPCR[3:0) - IP3,IP2,IPi,IPO Current State after this read there are more characters after this read there are more characters - These bits provide the current state of still in the FIFO the bit will be set again still in the FIFO the bit will be set again the respective inputs. The information is after the FIFO is 'popped'. If programmed after the FIFO is 'popped'. If programmed unlatched and reflects the state of the in- as FIFO full, it is set when a character is as FIFO full, it is set when a character is put pins at the time the IPCR is read. transferred from the receive holding regis- transferred from the receive holding regis- ter to the receive FIFO and the transfer ter to the receive FIFO and the transfer ISR - Interrupt Status Register causes the channel B FIFO to become full, causes the channel A FIFO to become full, i.e., all three FIFO positions are occupied. i.e., all three FIFO positions are occupied. This register provides the status of all It is reset when the CPU reads the RHR. If It is reset when the CPU reads the RHR. If potential interrupt sources. The contents a character is waiting in the receive shift a character is waiting in the receive shift of this register are masked by the interrupt register because the FIFO is full, the bit register because the FIFO is full, the bit mask register (IMR). If a bit in the ISR is a '1' and the corresponding bit in the IMR is will be set again when the waiting charac- will be set again when the waiting charac- also a '1', the INTRN output will be as- ter is loaded into the FIFO. ter is loaded into the FIFO. serted. If the corresponding bit in the IMR is a zero, the state of the bit in the ISR has ISR[O) - Channel A Transmitter Ready - ISR[4] - Channel B Transmitter Ready - This bit is a duplicate of TxRDYA (SRA[2). no effect on the INTRN output. Note that This bit is a duplicate of TxRDYB (SRB[2]). the IMR does not mask the reading of the ISR - the true status will be provided regardless of the contents of the IMR. The ISR[3]- Counter Ready - In the counter IMR - Interrupt Mask Register contents of this register are initialized to mode, this bit is set when the counter The programming of this register selects 00 16 when the DUART is reset. reaches terminal count and is reset when which bits in the ISR cause an interrupt the counter is stopped by a stop counter output. If a bit in the ISR is a '1' and the command. corresponding bit in the IMR is also a '1', ISR(7) - Input Port Change Status - This bit is a '1' when a change of state has In the timer mode, this bit is set once each the INTRN output will be asserted. If the occurred at the IPO, IP1, IP2, or IP3 inputs cycle of the generated square wave (every corresponding bit in the IMR is a zero, the and that event has been selected to cause other time that the counterltimer reaches state of the bit in the ISR has no effect on an interrupt by the programming of zero count). The bit is reset by a stop the INTRN output. Note that the IMR does ACR[3:0). The bit is cleared when the CPU counter command. The command, how- not mask the programmable interrupt out- reads the I PCR. ever, does not stop the counterltimer. puts OP3-0P7 or the reading of the ISR. Signetics 1·79 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'W""lIeI·"t CTUR and CTLR - CounterlTimer current timing cycle and to begin a new and ISR(3) is cleared when the counter is Registers cycle USing the values in CTUR and CTlA. stopped by a stop counter command. The The counter ready status bit (lSR[3]) is set CPU may change the values of CTUR and The CTUR and CTlR hold the eight MSBs once each cycle of the square wave. The CTlR at any time, but the new count be- and eight lSBs respectively of the value to bit is reset by a stop counter command comes effective only on the next start be used by the counter/timer in either the (read with A3-AO= 1111). The command, counter command. If new values have not counter or timer modes of operation. The however, does not stop the CIT. The gen- been loaded, the previous count values minimum value which may be loaded Into erated square wave is output on OP3 if it is are preserved and used for the next count the CTUR/CTlR registers Is 0002 18' Note programmed to be the CIT output. cycle. that these registers are wrlte·only and can· In the counter mode, the CIT counts down In the counter mode, the current value of not be read by the CPU. the number of pulses loaded into CTUR the upper and lower a bits of the counter In the timer (programmable divider) mode, and CTlR by the CPU. Counting begins (CTU, CTl) may be read by the CPU. It is the CIT generates a square wave with a upon receipt of a start counter command. recommended that the counter be stop- period of twice the value (in clock periods) Upon reaching terminal count (0000 18), the ped when reading to prevent potential pro· of the CTUR and CTlA. If the value in counter ready interrupt bit (ISR[3]) is set. blems which may occur if a carry from the CTUR or CTlR is changed, the current The counter continues counting past the lower a-bits to the upper a-bits occurs bet· half·period will not be affected, but subse· terminal count until stopped by the CPU. If ween the times that both halves of the quent half periods will be. In this mode the OP3 is programmed to be the output of the counter are read. However, note that a CIT runs continuously. Receipt of a start CIT, the output remains high until terminal subsequent start counter command will counter command (read with A3-AO = count is reached, at which time it goes cause the counter to begin a new count 1110) causes the counter to terminate the low. The output returns to the high state cycle using the values in CTUR and CTlR. ABSOLUTE MAXIMUM RATINGS 1 PARAMETER RATING UNIT Operating ambient temperature2 o to + 70 'c Storage temperature -65 to + 150 'c All voltages with respect to ground 3 -0.5 to +6.0 V NOTES: 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those,indlcated in the operation section of this specification is not implied. 2. For operating at elevated temperatures, the device must be derated based on + 150°C maximum junction temperature, 3. This product includes circuitry specifically designed for the protection of its internal devices from damaging ef· fects of excessive static charge. Nonetheless, it is suggested that conventional precautions be taken to avoid ap· plying any voltages larger than the rated maxima. DC ELECTRICAL CHARACTERISTICS TA=O'Cto +70'C, Vcc =5.0V :1:5%4,5.6 LIMITS PARAMETER TEST CON DITIONS UNIT Min Typ Max VIL Input low voltage o.a V VIH Input high voltage (except X1/ClK) 2.0 V VIH Input high voltage (X1/ClK) 4.0 V VOL Output low voltage IOL=2.4mA OA V VOH Output high voltage (except o.c. outputs) 10H= -4001tA 2.4 V IlL Input leakage current VIN=Oto Vcc -10 10 itA ILL Data bus 3-state leakage current Vo=OtoV cc -10 10 itA loc Open collector output leakage current Vo=OtoV cc -10 10 itA Icc Power supply current 150 mA NOTES: 4. Parameters are valid over specified temperature range. S. AU voltage measurements are referenced to ground (GND). For testing, ali input signals SWing between 0.4V and 2.4V with a transition time of 20ns maximum. All time measure· ments are referenced at input voltages of 0.8V and 2.0V and output voltages of 0.8V and 2.0V as appropriate. 6. Typical values are at + 2SoC, typical supply voltages, and typical processing parameters. 1·80 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm""II,ie'ij AC ELECTRICAL CHARACTERISTICS T A= O·C to + 70·C, Vcc =5.0V ± 5%4,5.6.7 PARAMETER Min TENTATIVE LIMITS Typ Max UNIT 1 Reset Timing (figure 1) t RES RESET pulse width 1.0 I"S Bus Timing (figure 2)8 t AS AO-A3 setup time to RON, WRN low 10 ns tAH AO-A3 hold time from RON, WRN high 0 ns tcs CEN setup time to RON, WRN low 0 ns tCH CEN hold time from RON, WRN high 0 ns tRW WRN, RON pulse width 225 ns too Data valid after RON low 175 ns tOF Data bus floating after RON high 100 ns tos Data setup time before WRN high 100 ns tOH Data hold time after WRN high 20 ns tRwo High time between READs and/or WRITEs 9.1o 200 ns Port Timing (figure 3)8 tps Port input setup time before RON low 0 ns tpH Port input hold time after RON high 0 ns tpo Port output valid after WRN high 400 ns Interrupt Timing (figure 4) tlR INTRN (or OP3-0P7 when used as interrupts) high from: Read RHR (RXRDY/FFUll interrupt) 300 ns Write THR (TXRDY interrupt) 300 ns Reset command (delta break interrupt) 300 ns Stop CIT command (counter interrupt) 300 ns Read IPCR (input port change interrupt) 300 ns Write IMR (clear of interrupt mask bit) 300 ns Clock Timing (figure 5) tClK Xl/ClK high or low time 100 ns fClK Xl/ClK frequency 2.0 3.6864 4.0 MHz t CTC CTClK (IP2) high or low time 100 ns f CTC CTClK (IP2) frequency 0 4.0 MHz tRX RxC high or low time 220 ns f RX RxC frequency (16X) 0 2.0 MHz (lX) 0 1.0 MHz tTX TxC high or low time 220 ns f TX TxC frequency (16X) 0 2.0 MHz (lX) 0 1.0 MHz Transmitter Timing (figure 6) t TXD TxD output delay from TxC low 350 ns t TCS TxC output skew from TxD output data 0 150 ns Receiver Timing (figure 7) t RXS RxD data setup time to RXC high 240 ns t RXH RxD data hold time from RXC high 200 ns NOTES: 4. Parameters are valid over specified temperature range. 5. All vOltage measurements are referenced to ground (GND). Fortesting, all input signals swing between O.4V and 2.4V with a transition time of 20n5 maximum. All time measure- ments are referenced at input voltages of a.BV and 2.0V and output voltages of a.BV and 2.0V as appropriate. 6. Typical values are at + 2SoC, typical supply voltages, and typical processing parameters. 7. Test condition for outputs: CL =150pF, except interrupt outputs. Test condition for interrupt outputs: CL = 50pF, RL = 2.7K ohm to Vee. 8. Timing is Illustrated and referenced to theWRN and RDN inputs. The device may also be operated with CEN as the 'strobing' input. In this case, all timing specifications apply referenced to the falling and riSing edges of CEN. 9. If eEN is used as the 'strobing' input, this parameter defines the minimum high time between one eEN and the next. 10. Consecutive write operations to the same command register require at least three edges of the X1 clock between writes. Signetics 1·81 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'am'''·II''e''i RESET A ~~ -J[. lRES~' Figure 1. Reset Timing --X'---_------'I '----__ -.f AO-A3 ----J lAS CEN RON 00-07 (READ) FLOAT WRN 00-07 (WRITE) _ _ _ _ _ _ _ ~ t ...J11. 'DS VALID -' xr--------- 'D " ~_ _ _ _ _ _ _ __ Figure 2. Bus Timing 1·82 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm"llo".iN 1 ""'---:J ,~.~'- 1 { ..~ WRN\ OPO·OP7 OLD DATA NEW DATA Figure 3. Port Timing ~:\ WRN INTRN OR OP3·0P7 {')- Figure 4. Interrupt Timing teLK -- Cl: 10-15pF + (STRAY < 5pF) C2: 0-5pF+(STRAY < 5pF) to.. ,I lK CLOCK TO OTHER XlIClK =[ -I tCTC I., IT> --- ..... 74LS04 CHIPS aT CTCLK RxC Xl --- TxC teLK l- Ei ~ 2881 teTe - I •• IT. C2f 3.68B4MHz X2 Figure 5. Clock Timing CRYSTAL SERIES RESISTANCE SHOULD BE LESS THAN 180 OHMS. Signetics 1·83 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'm""iiel_", (INTxCPUn -{ (10~~~~~~~KS)-t TxO ~'"l ~ (IXOT~;pun-------l""~----I------L- Figure 6. Transmit I X RxC INPUT) \ A \'---_ RXO--[~·-1 ~ ~")-- Figure 7. Receive TxO TRANSMITTER ENABLED TxRDY (SR2) WRN CTSN1 IIPOI _ _ _ _.J I I ~~ n 10POI l " L - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - " [olpRIOI=' OPR(O)= 1 NOTES 1. TIMING SHOWN FOR MR2(4) = 1. 2. TIM·NG SHOWN FOR MR2(S) 1. = Figure 8. Transmitter Timing 1·84 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN2681 SERIES 'w""""·,,, RxD 1 RECEIVER ENABLED RxRDY (SRO) _ _ _ _ _ _---' FFUL (SR1) _ _ _ _ _ _ _ _ _ _ -+__________ ...1 RxRDY/--------, FFULL (OP5)2 RDN OVERRUN RESET BY COMMAND (SR~ ----------------------r---~~ RTS1 - - - - , (OPOI ' -_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _.....J OPR(01=1 NOTES 1. TIMING SHOWN FOR MR1(7)= 1. 2. SHOWN FOR OPCR(4) = 1 AND MR(6)=0. FigurB 9. Receiver Timing MASTER STATION TxD BIT9 BIT9 I-.+-_DO--,-:°;JI L'\-\'______ ---1; 8 BIT9 IADD#2! 11 cr-- ,r-- I I I TRANSMITTER~~ ENABLED I I TxRDY ' I \--\---;)---1'lL....::>,-------II\ (SR21 . _ _ _ _ _ _ _ _-\' . i , . _____________ WRN - , ,- MR1(4-31=11 ADD#1 MR1(21=0 DO MR1(21 = 1 ADD#2 MR1(21=1 PERIPHERAL STATION BIT9 BIT 9 BITS BITS BIT9 RxD - - - - , I 101 DO 101:: \~ I """'"II-, :.:-=---, ----------1;-----1 IADDM2!11: I I 10 1 rl-I- ~ ~~~E~~~~ : : L R~;~~ .------_~~: ;~ RDN/WRNLJ -V- l.rl.r MR1(4-31=11 ADD#1 ST~S...£ATA ~ ST~US..!~.ATA DO ADD#2 Figure 10. Wake Up Mode Signetics 1-85 Section 2 Video Display Signetics MICROPROCESSOR DIVISION JANUARY 1983 CRT CHIP SET COMPARISON FEATURES FEATURES 2672 2674 System Configurations ··· ··· Row buffer mode Transparent mode Shared mode Independent mode Clock interleaving mode ·· ·· 2 Screen format ·· ··· 1 to 256 characters per row 1 to 16 lines per row 1 to 128 rows per screen Vertical synchronization · Programmable front porch Programmable sync width · ··· Programmable back porch Horizontal synchronization · Programmable front porch Programmable sync width ·· ·· Programmable back porch Interlace capability · · Non-i nterlace Interlace ·· ·· Composite sync Cursor RS170 compatible · · ··· ··· Readable Writable Incrementable Programmable size and blink 16K addressing limit ··· ·· 4MHz maximum character clock rate Smooth scrolling · · ··· Bidirectional Automatic Programmable scroll region Split screen · ··· Screen start reg ister 1 Screen start register 2 Multiple splits Automatic split · · Light pen register AC line lock (external sync) · ·· Bit mapped graphics hardware support Double height rows Tops Bottoms ·· Both Double width rows control output · ·· Dynamic RAM refresh · · Signetics 2·1 MICROPROCESSOR DIVISION JANUARY 1983 CRT CHIP SET COMPARISON FEATURES FEATURES 2673 2675 Attributes ··· ··· Reverse video Blank Blink Highlight Light pen strike·thru ·· · Underline Two general purpose · ·· ·· Eight foreground colors Eight background colors Monochrome gray levels 3 4 Dot width control Double width ·· Field oriented Character oriented ·· · Background intensity Programmable Composite blank ·· ·· Automatic 25MHz video dot rate (See note 1) · ·· Programmable dot stretching Compatible with 2672, 2674 and 2670 · ·· Programmable character clock 6 to 12 dots See note 2 NOTES: 1. For faster dot rates, consult factory. 2. Two versions of dots per character: SCB2675B possible dots are 7, 8, 9, 10. SCB2675C possible dots are 6, 8, 9, 10. 2·2 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SCN2670 DESCRIPTION FEATURES PIN CONFIGURATION The Signetics Display Character and • 128 10X9 matrix characters Graphics Generator (DCGG) is a mask- 256 graphic characters programmable 11,648-bit line select char- • Optional thin graphics for forms Vcc acter generator. It contains 128 10X9 char- • Character and line address latches LA1 acters placed in a 1OX 16 matrix, and has • Internal descend logic the capability of shilling certain characters, such as i, y, g, p and q, that normally extend • 200nsec and 300nsec character select access time versions • Control character output inhibit logic LA2 LA3 2 below the baseline. Character shilling, pre- DO • Static operation-no clocks required viously requiring additional external circuit- 01 • Single 5V power supply ry, is now accomplished internally by the • TTL compatible inputs and outputs 02 DCGG; effectively, the 9 active lines are lowered within the matrix to compensate for 03 the character's position. 04 Seven bits of an 8-bit address code are CA8 05 used to select 1 of the 128 available charac- 08 ters. The eighth bit functions as a chip en- GM 07 able signal. Each character is defined by a pattern of logic Is and Os stored in a 10X9 SCO 08 matrix. When a specific 4-bit binary line ad- GNO 09 dress code is applied, a word of 10 parallel TOP VIEW bits appears at the output. The lines can be sequentially selected, providing a 9-word sequence of 10 parallel bits per word for each character selected by the address in- ORDERING CODE puts. As the line address inputs are sequen- Vcc=5V ::!: 5%, TA = O°C 10 70·C tially addressed, the device will automati- PACKAGES cally place the 10X9 character in 1 of 2 pre- I CA =200ns I CA =300ns programmed positions on the 18-line matrix Ceramic DIP SCN2670'C2128 SCN2670'C3128 with the positions defined by the 4-line ad- Plastic DIP SCN2670'C2N28 SCN2670'C3N28 dress inputs. One or more of the 10 parallel NOTE outputs can be used as control signals to Substitute letter corresponding to standard font for' *' in part number for standard parts. See back of data sheet. Con- selectively enable functions such as half- tact sales office for custom ROM patterns. dot shill, color selection, etc. The 2670 DCGG includes latches to store BLOCK DIAGRAM the character address and line address data. A control input to inhibit character data output for certain groups of characters SCO------------------------------, -4-- Vee is also provided. The 2670 also includes a GM - - - - - - - - - - - - - - - - - - , graphics capability, wherein the 8-bit char- CAO-CA7 , - - - - - - - - - - , acter code is translated direclly into 256 possible user programmable graphic pat- terns. Thus, the DCGG can generate data for 384 distinct patterns, of which 128 are de- fined by the mask programmable ROM. See figure 1 for a typical applications display. READ ONLY MEMORY (128.91) ::> DO-DB LAO-LA3 LSTROBE - - - - - - -.... Signetics 2-3 MICROPROCESSOR DIVISION JANUARY 1983 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SCN2670 PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION CAO·CA7 3·6,8·11 I Character Address: Eight bit code specifies the character or graphic pattern for which matrix data is to be supplied. In character mode (GM=O), CAO thru CA6 select one of the 128 ROM- defined characters and CA7 is a chip enable. The outputs are active when CA7= 1 and are tri- stated when CA7=0. In graphics mode (GM=l), the outputs are active and CAO thru CA7 select one of 256 possible graphic patterns to be output. CSTROBE 7 I Character Strobe: Used to store the character address (CAO thru CAl) and graphics mode (GM) inputs into the character latch. Data is latched on the negative going edge of CSTROBE. GM 12 I Graphics Mode: GM=O (low) selects character mode; GM= 1 (high) selects graphics mode. LAO-LA3 1,25-27 I Line Address: In character mode, selects one of the 16 lines of matrix data for the selected character to appear at the 10 outputs. LAO is the LSB and LA3 is the MSB. The input codes which cause each of the nine lines of character data to be output are specified as part of the programming data for both non-shifted and shifted fonts. Cycling through the nine specified counts at the LAO thru LA3 inputs cause successive lines of data to be output on DO thru 09. The 7 non-specified codes for both non-shifted and shifted characters cause blanks (logic zeros) to be output. In graphics mode, the line address gates the latched graphics data directly to the outputs. LSTROBE 2 I Line Strobe: Used to store the line address data (LAO thru LA3) in the line address latch. Data is latched on the negative going edge of LSTROBE. SCD 13 I Selected Character Disable: In character mode, a high level at this input causes all outputs (regardless of line address) to be blanks (zeros) for characters for which CA6 and CA5 are both o. A low level input selects normal operation. Inoperative in the graphics mode. 09-00 15-24 0 Data Outputs: Provide the data for the specified character and line. VCC 28 I +5V power supply. GND 14 I Ground. P:3.f" t No. A L CP1Z]4 E CX9009 s A~JIJ-2AI Figure 1. Typical Application 2·4 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SCN2670 FUNCTIONAL DESCRIPTION of the 126 character fonts stored in the ROM graphics symbols and an example where The OCGG consists of nine major sections. section of the OCGG. (CA7 thru CAO) = H'85'. The outputs from line and character oodes are strobed into the graphics logic go to the line select the line and character latches. The oharac- Read Only Memory multiplexers. The multiplexers route the The 11 ,646-bit ROM stores the fonts for the graphic symbol data to the outputs when ter latoh outputs are presented to the three 128 matrix-defined characters. The data for GM = 1. sources of data; the ROM through an ad- dress decoder, the graphics logic, and the output inhibit control. The output inhibit con- each charaoter consists of 91 bits. Ninety bits represent the 10X9 matrix and one bit specifies whether the character data is out- Thin Graphic. Option 2 trol (together with the SCO input) sup- As a customer speoified option, 16 of the put at the normal (unshifted) lines or at the possible graphic codes (H'80' to H'8F') may presses the ROM data for selected charac- descended (shifted) lines. The 90 data bit ter codes. The outputs from the line latch be used to generate the special graphic outputs are supplied to the line select characters illustrated in figure 3. For each of drive the line address translation ROM multiplexers. The descend control bit is an these cheracters, the vertical component which maps the character ROM data onto 9 input to the line address translation ROM. appears on· the 04 output. The horizontal of 16 line positions. Finally, the line select multiplexers route the ROM or graphics data Graphic. Logic component occurs on LH which is specified to the output drivers on DO through 09. When the GM input is zero (low), the OCGG by the oustomer. The vertical components operates in the character mode. When it is specified by CAO and CA2 are output for line Character Latch one (high), it operates in the graphica mode. addresses zero thru LH and LH thru fifteen, The character latch is a 9-bit edge triggered In graphics mode, output data is generated respectively. latch used to store the character address by the graphics logic instead of the ROM. The graphics logic maps the latched char- Line Select Multiplexer. (CAO thru CAn and graphics mode (GM) The ten line select multiplexers select ROM inputs. The data is stored on the falling edge acter address (CAO thru CAn to the outputs data as speoified by the line address trans- of CSTROBE. Seven latohed addresses (DO thru 09) as a function of line address (LAO thru LA3). For any particular line ad- lation ROM when GM=O, or graphics data (CAO thru CA6) are inputs to the ROM char- dress value, two of the CA bits are output: when GM= 1. The inputs to each mUltiplexer acter address decoder. In character mode CAO, CA2, CA4 or CA8 is output on DO thru are the nine line outputs from the ROM, an (GM=O), CA7 operates as a chip enable. 04 and CAl, CA3, CA5 or CA7 is output on output from the graphios logic and a logic The output drivers are enabled when CA7= 1 05 thru 09. The outputs are paired: When zero (ground). and are tri-stated when CA7=0. In graphics mode (GM= 1), the output drivers are always CAO is output on DO thru 04, CA 1 is output Output Driver. enabled and the CAO thru CA 7 outputs of the on 05 thru 09 and likewise for CA2-CA3, Ten output drivers with 3-state oapability Istch are used to generate graphic symbols. CA4-CA5 and CA6-CA7. serve as buffers between the line select A ROM within the graphics logic allows the multiplexers and external logic. The 3-state Character Addre•• Decoder specific line numbers for which each pair of control input to these drivers is supplied this oircuit decodes the 7-bit character ad- bits is output to be specified by the custom- from the CA7 latch when GM=O. When dress from the character latch to select one er. Figure 2 illustrates the general format for GM=l, the outputs are always active. LINE ADDRESS LINE I LF=O- 0- 1- CAO CAl GROUP 1 1- 2- 2- 3- I 3- 4- CA2 CA3 GROUP 2 4- 5- 5- I 8- 8- 7- GROUP 3 7- I--I--+-+-+- 8- CM CA5 8- I--I--+-+-+- I 8- 8- 10- CA6 CA7 GROUP 4 lO- LL=ll- ll- 1-00-04-1-05-09-1 I I I 8QSa!~!~!! GROUP LINE ADDRESSES ARE SPECIFIED BY THE CUSTOMER EXAMPLE: CA7-CAD= H'65' GROUP 1 SPECIFIED FOR LINES 0,1,2 GROUP 2 SPECIFIED FOR LINES 3, 4, 5 GROUP 3 SPEOIFIED FOR LINES 8, 7, B GROUP 4 SPECIFIED FOR LINES 9, 10, 11 SPACE SPECIFIED FOR LINES 12, 13, 14, 15 Figure 2. Graphics Symbols - General Format Signetics 2·5 MICROPROCESSOR DIVISION JANUARY 1983 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SCN2670 Output Inhibit Control The output inhibit control logic operates only GENERAL FORMAT 10 x 16 CHARACTER BLOCK if GM-O. It cauaea the output of the line select multiplexers to be logic zero if the SCD Input Is high and CA6 and CAS cif the latched character address are 00. If the SCD Input is low, normal operation occurs. (this festure is useful In ASCII coded sppli- cations to selectively disable character generation for non-displayable characters such as line feed, carriage return, etc.) Line Address Latch The line address latch is a 4-bit latch used to store the line address (LAO-LA3). The data is stored on the negative edge of the LSTROBE input. Line Address Translation ROM Thia 32X 10 ROM translates the S-blt code conSisting of the 4 outputs from the line ad- dress latch and the descend control bit from the ROM into a 1-of-l0 code for the line select multiplexers. Programming informa- tion provided by the customer specifies the address which selects each line of ROM data for both shifted and non-shifted char- actera. Thus, there are nine line addresses which select ROM data for unshifted char- acters and nine addresses for shifted char- acters. These combinations are usually specified by the customer in either ascend· ing or descending order. For the remaining 14 codes (7 each for unshifted snd shifted chsrscters), the trsnslstion ROM forces ze- 00 04 09 ros at the outputs of the line select multiplexers. THIN GRAPHIC FONTS FOR CA7 - CAO = HEX 80-H EX 8F This circuitry only operstes if GM=O. When GM= 1, the line select multiplexers sre forced to select the outputs from the grsph· ics logic. Figure 4 shows an exampla of data outputs 80 81 82 83 where the customer has specified line 14 as the first line for unshifted characters, line 11 as the first line for shifted characters and line address combinations in descending order. 84 85 86 87 CUSTOM PATTERN PROGRAMMING INSTRUCTIONS A computer-aided technique utilizing punched computer cards is employed to specify a custom version of the 2670. This technique requires that the customer supply 86 89 8A 88 Signetics with a deck of standard SO-column computer cards describing the data to be stored in the ROM array, the programmable line address translation ROM, thin graphics option, and the graphics line font translation ROM. 5JBJEdtE 8C 80 8E 8F Figure 3. Special Graphic Characters 2-6 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SCN2670 LINE ~~ X 15 ~>< 1413 ~ l"oi"---- SHIFT REGISTER XTAL1/B RCLK t xTAL2 r RECEIVER INTER'i!uPTS RECEIVE HOLDING REGISTER TIMING RECEIVE CONTROLS SHIFT REGISTER RxD Signetics 2·19 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 the code in the KDR Is tranaferred to the KHR and the KRDY status bit ia set (KSRO). KRET N·Key Rollover With Latched Keys: This mode is the same as regular N·key KR2-KRO )I DIGITAL MULTIPLEXER 8 ROWS I rollover, except that the keys which are assigned to row 0 of the keyboard matrix PKCC (KR2·KRO = 000) produce a code both when depressed and when released. The - codes are independent of the states of the Inputs at SHIFT and CONTROL. If one ~ 10F16 16 KC3-KCO DECODE COLUMNS or more of the latched keys are de· pressed when the keyboard is enabled - CONTACT (after a keyboard reset), the corre· sponding codes will be sent out as the KEYBOARD keys are scanned and debounced. Note MATRIX that simultaneous letched keys will not set KERR (KSR1) and that latched keys will not be auto·repeat and will not be Figure 1. Contact Keyboard Interface affected by the REPEAT input. Two·Key Rollover: The first key code Is loaded into the KDR immediately and the second code Is loeded only after the first key Is released. Simultaneous keys will ANALOG set KERR (KSR1). If three or more keys DETECTOR remain closed at any given time, the KRET KERR bit will also be set. All keys must HYs KDRES ~ then be released before the next KRET will be processed. Two·Key Inhibit: All keys must be reo KR2-KRO )f ANALOG MULTIPLEXER I leased between keystrokes; otherwise, KERR (KSR1) will be set. PKCC 8 ROWS Bit KMR4 specifies the key encoding mode. Each key is assigned four a·bit codes, cor· responding to the states of the SHIFT and roo-- CONTROL inputs. If the encoded mode Is KCLK programmed, the row / column address of KC3-KCO 10F16 DECODE '--- 16 COLUMNS h- CAPACITIVE KEYBOARD the detected key is used to load one of the four key codes into the KDR. See table 2 for key code assignments. If the non·encoded mode is programmed, the row/column ad· dress is loaded directly into the KDR with MATRIX the following format: Figure 2. Capacitive Keyboard Interface KDR Keyboard Mode Register Operating modes are selected by program· ming the keyboard mode register (KMR), whose format is illustrated in figure 3. Bit KMR7 is used for testing the device. For normal operation, this bit should always be Bits KMR6·KMR5 select the rollover modes for keyboard processing: N-key Rollover: In this mode, the code corresponding to each key depression ia loaded into the KDR ss soon as that key is debounced, independent of the reo lease of other keys. Two or more clo· o-LL KC3, KC2, KC1, KCO "0" for momentary keys "1" for latched keys release "0" for latched keys depress written to a O. sures occurring within one scan cycle are considered to be simultaneous, which will set keyboard error in the key· board status register (KSR 1). As soon as the keyboard holding register is empty, 2·20 Signetics MICROPROCESSOR DIVISION PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 Table 2 STANDARD KEY CODES (HEX) ROW (KR2-KRO) COLUMN (KC3-KCO) 0 1 2 3 4 S 6 7 EO CO IB ESC 09 HT IF US IA SUB 30 0 2B + 0 FO DO IB ESC 09 HT IF US IA SUB 30 0 3B ; EO CO IB ESC 09 o HT IF US 5A Z 30 0 2B +; 1 FO EI FI DO CI 01 IB 21 31 ESC I 1 09 11 11 o HT DCI DCI IF 01 01 US SOH SOH 7A 18 18 , CAN CAN 30 3D 20 0 - - 3B 2A 3A 0 : 2 EI FI CI 01 21 31 I 1 51 71 D q 41 81 A a 58 78 X x 3D 20 0_ = 2A 3A 0 : E2 C2 22 17 ETB 13 DC3 03 ETX IE AS IF US 2 F2 02 32 " 2 17 ETB 13 DC3 03 ETX IE AS IF US E2 C2 22 57 W 53 S 43 C 7E 7F • DEL "2 '" F2 02 32 77 w 73 s 63 c 5E + 5F 0 - E3 C3 23 # 05 END 04 EDT 16 SYN IC FS IB ESC 3 F3 03 33 3 05 END 04 EDT 16 SYN IC FS IB ESC E3 C3 23 # 45 E 44 0 56 V 7C : 7B { F3 03 33 3 65 e 64 d 76 v 5C \ 58 [ E4 C4 2. $ 12 DC2 06 ACK 02 STX 08 BS 10 GS 4 F4 04 34 4 12 DC2 06 ACK 02 STX 08 BS 10 GS E. C4 24 $ 52 A 46 F 42 B 08 o BS o BS 70 I F4 04 34 4 72 r 66 f 62 b 08 50 1 E5 C5 25 % I. DC4 07 BEL DE SO 10 OLE 08 BS 5 F5 05 35 5 I. DC4 07 BEL DE SO 10 OLE 08 BS E5 C5 25 % 54 T 47 G 4E N 50 P 08 BS F5 05 35 5 74 t 67 9 6E 70 p 08 o BS " E6 C6 26 & 19 EM 08 BS 00 CA 00 NUL 09 HT 6 F6 06 36 6 19 EM 08 BS 00 CA 00 NUL 09 HT E6 C6 26 & 59 Y 48 H 40 M 60 09 o HT F6 06 36 6 79 y 68 h 60 m 40 @ 09 o HT 7 E7 F7 C7 07 27 37 7 15 15 NAK NAK OA OA LF LF 3C 2C < 7F 7F DEL DEL 20 20 SP SP E7 F7 C7 07 27 37 7 55 75 U 4A 6A J j 3C 2C < 7F 7F DEL DEL 20 20 o SP o SP " 8 E8 F8 C8 08 28 38 ( 8 09 09 HT HT DB DB VT VT 3E 2E > OA OA LF LF DB DB VT VT E8 C8 28 ( 49 I 4B K 3E > OA LF DB o VT F8 08 38 8 69 I 6B k 2E OA LF DB o VT E9 C9 29 ) OF SI DC FF 3F ? 00 CA OA LF 9 F9 09 39 9 OF SI DC FF 2F / 00 CA OA LF E9 C9 29 ) 4F 0 4C L 3F ? 00 CA OA o LF F9 09 39 9 6F 0 8C I 2F / 00 CA OA o LF EA CA 37 7 34 4 31 1 30 0 AD A6 A FA EA DA CA 37 37 7 7 34 34 •• 31 31 1 1 30 30 0 0 BO AD B6 A6 FA DA 37 7 34 4 31 1 30 0 BO B6 EB CB 38 8 35 5 32 2 2E AI A7 B FB DB 38 8 35 5 32 2 2E BI B7 EB CB 38 8 35 5 32 2 2E AI A7 FB DB 38 8 35 5 32 2 2E BI B7 EC CC 39 9 36 6 33 3 BF A2 A8 C FC DC 39 9 36 6 33 3 AF B2 B8 EC CC 39 9 36 6 33 3 9F A2 A8 FC DC 39 9 36 6 33 3 8F B2 B8 ED CD 90 93 82 95 A3 A9 0 FD DO 90 93 82 95 B3 B9 ED CD 90 93 82 0 95 A3 0 A9 0 FD DO 90 93 82 0 95 B3 0 B9 0 EE CE 91 80 84 81 A4 AA E FE DE 91 80 84 81 B4 BA EE CE 91 80 0 84 81 0 A4 0 AA 0 FE DE 91 80 0 84 81 0 B. BA 0 EF CF 92 94 83 96 A5 AB F FF OF 92 94 83 96 B5 BB EF CF 92 94 83 0 96 A5 0 AB 0 FF OF 92 94 83 0 96 B5 0 BB 0 I ~"""t: (Pin 13 = 0) XX XX .. yyy yyy I SHIFT (Pin 12 = 0) ~ Thl. row contain. tho latchod keys when that mode is selected I XX XX yyy yyy ~ ~ Latched key code fo r relesse Latched key code for depres (KMR6_ KMRS = 00). Kay cod•• in hox ~ lL--______ tV . ASCII equivalent (if any) Indicates Auto-Repeat keys Signetics 2·21 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 T I I I I I I I I I KMR 7 6 5 4 3 2 1 0 ~ ~ 'o"m,'o 1 = Enable L Tone select 0= 1kHz 0= Disable 1 = 2kHz Rollover modes Key 00 = N·key with MATRIX SCAN latched keys KMR2 KMR1 SIZE TIME 01 = N-Key 0 0 128 10ms 10 = Two key 0 1 128 2.5ms 11 = Two key 1 0 80 6Ams inhibit 1 1 80 1.6ms a = Encoded Auto repeat keyboard 0= Disable 1 = Non encoded 1 = Enable keyboard Figure 3. Keyboard Mode Register Format Bit KMR3 enables the auto-repeat mode. In sample. The status bits are the comple- interrupt and is cleared by the reset com- this mode, if a key that is programmed for ments of the input levels. mand with 02 = 1. auto-repeat is depressed for longer than KSR5 reflects the state of the internal shift Keyboard error (KSR 1) is set when the oper- one-half second, the key code will be load- lock flag which is controlled by the ator depresses more keys than are allowed ed into the KDR approximately 15 times per set! reset shift lock commands. in the selected rollover mode, or when keys second until that key is released. Only the are depressed simultaneously (within one non-control key codes will auto-repeat, i.e. KSR3 indicates that the keyboard controller scan cycle). This bit can be specified (by CONTROL = 1. Table 2 specifies the auto- is enabled. It is controlled by the set! clear IMR3) to generate an interrupt and is repeat keys. keyboard enable command. cleared by the reset command with 01 = 1. KMR2 and KMR 1 select the key matrix size Keyboard overrun (KSR2) is set when both Keyboard data ready (KSRO) is set when and debounce time (scan rate). The key- the KHR and KDR are full and a third key is the key code or address is transferred from board row outputs (KR2, KR1, KRO) always validated. The original content of the KHR is the KOR to the KHR. This bit can be speci- scan from 0 to 7. The column outputs (KC3, preserved and the content of the KDR is fied (by IMR2) to generate an interrupt. It is KC2, KC 1, KCO) scan from 0 to 15 for a 128 overwritten with the new key code. This bit cleared when the CPU reads the KHR. key mstrix and from 0 to 9 for an 80 key can be specified (by IMR 1) to generate an matrix. KMRO selects between a 1kHz and 2kHz fre- quency to be output on the TONE pin in re- sponse to a ring tone command. KSR 7 I I 6 5 4 3 2 11 I I a LKRDY CONTROL~~ ~ Keyboard Status Register The keyboard status register (KSR) pro- I vides operational feedback to the CPU. Its format is illustrated in figure 4. SHIFT- LKERR KSR7, 6 and 4 reflect the state of the inputs KOVR SHIFT LOCK at the corresponding pins. CONTROL and SHIFT are latched at the time the key is REPEAT ------------------~ '-------------- Keyboard Enabled accepted. As the verified codes are loaded into the KDR, the corresponding states of CONTROL and SHIFT are loaded into the Figure 4. Keyboard Status Register Format KSR. REPEAT is updated on every matrix 2·22 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 Communications Controller sent first. Following the transmission of the affect assembly of a received character, the The communications controller section of stop bits, if a new character is not available CMR must be updated within n -1 bit times the PKCC comprises a full duplex asynchro- in the transmit holding register (TxHR), the of the receipt of that character's start bit. To nous receiver /transmitter (UART) with a TxD output remains high and the TxEMT bit affect a transmitted character, the CMR baud rate generator. Registers associated in the CSR will be set to 1. Transmission must be updated within n -1 bit times of with these elements are the communica- resumes and the TxEMT bit is cleared when transmitting that character's start bit. (n = tions mode register (CMR), the baud rate control register (BRR), and the communica- tions status register (CSR). the CPU loads a new character into the TxHR. The transmitter can be forced to send a continous low condition by a transmit the smaller of the new and old character lengths). 2 The UART can operate in one of four modes, break command. as illustrated in figure 6. The operating Receiver If the transmitter is disabled, it continues modes are selected by bits CMR7 and The receiver accepts serial data on the RxD operating until the character currently being CMRS, which should only be changed when pin, converts the serial input to parallel for- transmitted is completely sent out. both the transmitter and receiver are dis- mat, checks for start bit, stop bit, parity bit abled. CMR7-CMRS = 00 is the normal (if any), or break condition, and presents the Communication Mode Register mode, with the transmitter and receiver op- assembled character to the CPU. The re- Figure 5 illustrates the bit format of the erating independently. CMR7-CMRS = 01 ceiver looks for a high to low (mark to CMR, which controls the operational mode places the UART in the automatic echo space) transition of the start bit on the RxD of the communications controller and the mode, which automatically retransmits the input pin. If a transition is detected, the state character parameters. received data. The following conditions are olthe RxD pin is sampled again after a delay true while in automatic echo mode: Bits CMR1-CMRO select a character length of one half of the bit time. If RxD is then high, 1. Data assembled by the receiver Is auto- of 5, 6, 7, or 8 bits. The character length the start bit is invalid and the search for a matically placed in the transmit holding does not include the parity, start, or stop valid start bit begins again. If RxD is still low, register and retransmitted on the TxD bits. a valid start bit is assumed and the receiver output. continues to sample the input at one bit time CMR2 selects the transmitted character 2. The receive clock is used for the trans- intervals at the theoretical center of the bit, framing as one or two stop bits. The receiver mitter. until the proper number of data bits and the always checks for one stop bit. 3. The receiver must be enabled, but the parity bit (if any) have been assembled, and transmitter need not be enabled. The parity format is selected by bits CMR4 one stop bit has been detected. The least 4. Status bit TxRDY is not set. TxEMT oper- and CMR3. If parity or force parity is select- significant bit is received first. The data is ates normally. ed, a parity bit is added to the transmitted then transferred to the receive holding reg- 5. The received parity Is checked, but Is not character and the receiver performs a parity ister (RxHR) and the RxRDY bit in the CSR is regenerated for tranamission, i.e., trans- check on incoming data. CMR5 selects odd set to a 1. If the character length is less than mitted parity bit is as received. or even parity and determines the polarity of eight bits, the most significant unused bits in S. Only the first character of a break condi- the parity bit in the force parity mode. the RxHR are set to zero. tion is echoed; the TxD output will go high The bits in the mode register affecting char- until the next received character is as- After the stop bit is detected, the receiver acter assembly and disassembly (CMR5- sembled. will immediately look for the next start bit. CMRO) can be changed dynamically and af- 7. CPU to receiver communication contin- However, if a non-zero character was re- fect the characters currently being assem- ues normally, but the CPU to transmitter ceived without a stop bit (I.e. framing error) bled in RxSR and transmitted by TxSR. To link is disabled. and RxD remains low for one half of the bit period after the stop bit was sampled, then the space is interpreted as a start bit. The parity error, framing error and overrun error (if any) are strobed into the CSR at the received character boundary. If a break con- CMRI 7 '-v---' I I I I I I I I 6 5 4 '-v---' 3 2 1 '--v-' 0 dition is detected (RxD is low for the entire character including the stop bit) only one Operating mode ~ LCharacter length character consisting of all zeros will be 00 = Normal 00 = 6 transferred to the RxHR and the received 01 = Auto echo 01 = 5 break bit in the CSR is set to 1 (RxRDY is not 10 = Local loop back 10 = S set when a break is received ). The RxD 11 = Remote loopback 11 = 7 input must return to a high condition for one bit time before a search for the next start bit Parity o = Two stop bits begins. o = Odd !force 0 1 = One stop bit 1 = Even/force 1 Parity mode Transmitter 00 = With parity The transmitter accepts parallel data from 01 = Force parity the CPU and converts it to a serial bit stream 10 = No parity on the TxD output pin. It automatically sends 11 = Not allowed a start bit followed by the data bits, an op- tional parity bit, and the programmed num- Figure 5. Communications Mode Register Format ber of stop bits. The least significant bit is Signetics 2·23 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 Two diagnoatic modes can also be configured. In local loopback mode (CMR7- CMR6 = 10): 1. The transmitter output is internally con- nected to the receiver input. 2. The transmit clock is used for the receiv- er. 3. The TxD output Is held high. 4. The RxD input is ignored. 5. The transmitter must be enabled, but the receiver need not be enabled. 6. CPU to transmitter and receiver commu- nications continue normally. (8) The second diagnostic mode is the remote loopback mode (CMR7-CMR6 = 11). In this mode: 1. Data assembled by the receiver is auto- matically placed in the transmit holding register and retransmitted on the TxD output. 2. The receive clock is used for the trans- mitter. 3. No data is sent to the local CPU, but the error status conditions (parity and fram- (b) ing) are set if required. 4. The received parity is checked, but is not regenerated for transmission, i.e., trans- mitted parity bit is as received. 5. The receiver must be enabled, but the transmitter need not be enabled. Baud Rate Control Register The baud rate control register (BRR) con- trols the frequency generated by the baud rate generator (BRG) and the clock source (e) used by the receiver and transmitter. Its for- mat is illustrated in figure 7. BRR3-BRRO select one of sixteen frequen- cies to be generated by the BRG. See table 3. BRR7 and BRR6 select the source of the transmit and receive clocks. If external clocks are chosen, (BRR7 = 0 or BRR6 = 0), then the clock rate factor is determined by BRR5 and BRR4. The external clock in- (d) put(s) should be the desired baud rate multi- plied by the clock rate factor. (a) Normal operating mode. If internal clock(s) are specified, (BRR7 = 1 (b) Automatic echo mode. or BRR6 = 1). the clock Is supplied by the (e) Local loopback mode. internal bsud rate generator at the selected (d) Remote loopback mode. baud rste. The clock rate factor for internal- ly genersted clocks is always 16. Pins 35 and 34 become outputs for transmit or re- ceive clocks, respectively. See table 4 for Figure 6. Operating Modes of the 2671 UART the description and selection of these out- puts. 2·24 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 tJ BRR '-v-'~--~ 2 Tx Clock source Baud rate select-See table 3 0: External 1 : Internal (BRG) Rx Clock source I Clock rate factor for external o : External clocks 1 : Internal (BRG) 00: l6X 01 : 32X 10 : 64X 11: 1X For internal clocks these bits specify the output frequency on pin 34 and pin 35. See table 4. Figure 7. Baud Rate Control Register Format Table 3 BAUD RATE GENERATOR CHARACTERISTICS (BRCLK=4.9152MHz) ACTUAL BAUD FREQUENCY PERCENT BRR3-0 RATE 16X CLOCK ERROR DIVISOR 0000 50 0.8 kHz - 6144 0001 110 1.7598 -0.01 2793 0010 134.5 2.152 - 2284 0011 150 2.4 - 2048 0100 200 3.2 - 1536 0101 300 4.8 - 1024 0110 600 9.6 - 512 0111 1050 16.8329 +0.20 292 1000 1200 19.2 - 256 1001 1800 28.7438 -0.20 171 1010 2000 31.9168 -0.26 154 1011 2400 38.4 - 128 1100 4800 76.8 - 64 1101 9600 153.6 - 32 1110 19200 307.2 - 16 1111 38400 614.4 - 8 Signetics 2·25 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 Table 4 BAUD RATE CONTROL REGISTER CLOCK SOURCE PIN FUNCTIONS BRR7- PIN PIN BRR3-BRRO BRR4 TxC RxC 34 35 BAUD RATE SELECTION 00" E E TxC RxC The baud rates are 01" E I TxC lX listed in table 3. 10" I E 16X RxC 1100 I I lX lX 1101 I I lX 16X 1110 I I 16X IX 1111 I I 16X 16X NOTES 1. •• = Clock rate factor for external clocks: 00 = leX 01 - 32X 10·64X 11 - IX 2. E .. External clock. 3. I = Internal clock (BRG). 4. 1X and leX are clock outputs at 1 or 18 time, the actual baud rate. For receive. the 1X output i8 the actual data sample clock. 5. BRR7-BRRB = 01 or 10 not permiHed in automatic echo or remoteloopback modes unlaas BRR5-BRR4 - 00. Communications Status Register when RxO returns to a high state for at least tus register (ISR) which can be enabled to one bit time. generate an active low Interrupt request on Figure a illustrates the bit format of the com· the INTR output. The eight interrupt condi- munications status register (CSR), which Receiver overrun (CSR5) indicates that the tions in the ISR are individually enabled by provides UART status to the CPU. previous character in the RxHR has not been writing a 1 into the corresponding bit of the read by the CPU and that a new character Receiver ready (CSRO) indicates that are· interrupt mask register (lMR). has been loaded into the RxHR. This bit is ceived character is assembled and trans- cleared by a reset command with 03.~ 1. Each of the interrupt conditions is assigned ferred to the RxHR and is ready to be read a priority and a vector. When an enabled ISR by the CPU. This bit can be specified (by Framing error (CSR6) indicates that the bit is set, ths 2671 asserts the INTR output. IMRO) to generate an interrupt and is reset stop bit has not been detected. The stop bit If the CPU activates the INTA input, the 2671 by reading the RxHR. check is made in the middle of the first stop responds by placing the corresponding a-bit bit position. This bit is cleared by a reset Transmitter ready (CSR 1) indicates that the vector on the dsta bus (07-00). If multiple command with 03 ~ 1. TxHR is empty and ready to be losded with a interrupts are pending, the vector corre- character. This bit will be cleared when the Parity error (CSR7) indicates that a charac- sponds to the condition with the highest pri- TxHR is loaded and has not yet transferred ter was received with incorrect parity when ority. The interrupt will persist until all pend- the character to the transmit shift register 'with parity' or 'force parity' is enabled. This ing interrupt conditions are cleared. (TxSR). TxROY is reset when the transmitter bit is cleared by a reset command with 03 ~ The ISR can also be polled by reading at is disabled. It will be set when the transmit- 1. address A2-AO ~ 000. All pending interrupt ter is enabled, provided that no data was Interrupt Controller conditions which are enabled by the IMR will loaded into the TxHR during the time the The 2671 contains a maskable interrupt sta- be read independent of priority. transmitter was disabled. This bit can be specified (by IMRl) to generate an interrupt. Transmitter empty (CSR2) indicates that the transmitter has underrun, i.e., both the TxHR and TxSR are empty. This bit can only be set CSR 7 6 5 4 3 after transmission of at least one character, '"'' ."~~ I ~ LRXRDY and is cleared when the TxHR is loaded by the CPU. TxEMT is reset when the transmit- ter is disabled. This bit can be specified (by IMR6) to generate an interrupt. FramlngerrOr~ LTXROY CSR3 will be set when the PKCC receives a command to transmit a break. This bit will be Overrun error TxEMT cleared after the break is completed. Received break (CSR4) indicates that an all Received break Transmit break zero character of the programmed length has been received without a stop bit. Breaks originating in the middle of a received char- Figure 8. Communications Status Register Format acter can be detected. This bit is cleared 2·26 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 The bit assignments of the ISR and IMR and A reset command with 07-00 = l11XXXX1 the break which can be extended indefinite- corresponding vectors and priorities are is a master reset for the 2671. This com- ly (by 200ms or one character time incre- listed in table 5. mand must be given following a power on ments) by reasserting the command in re- condition to release the internal power on sponse to TxROY. Note that these COMMANDS reset latch which deactivates the 2671 on commands reset TxROY. When a transmit In addition to the control exercised by pro- power up. break command is asserted, CSR3 will be gramming of the PKCC control registers, several functions can be performed by ex- ecuting command operations. There are two Miscellaneous Commands set. This bit will be cleared after the break is completed. 2 classes of commands which are initiated by The miscellaneous command format is illus- The ring tone commands cause the tone writing to the 2671 at address A2-AO = 000 trated in figure 10. generator to output a square wave on the (reset command) and address A2-AO = 111 TONE output. The tone durations are speci- (miscellaneous commands). Individual com- The transmit break commands force a break fied by the commands: mands are specified by the bit pattern on the (steady low output) on the TxO pin immedi- data bus (07-00). ately or after the character in the TxSR (if Ring tone short = 25ms any) is transmitted. A timed break lasts for Ring tone long = 100ms Reset Commands approximately 200ms, and a character The reset command bit format is illustrated break lasts for one character time including The tone frequency is either 1kHz or 2kHz, in figure 9 and the detail command descrip- parity and stop bit time. In either case, as specified by KMRO. tions are given in table 6. TxROY (CSR1) will be set at the beginning of TABLE 5 INTERRUPT MASK REGISTER (IMR) AND INTERRUPT STATUS REGISTER (ISR) BIT IN INTERRUPT VECTOR ON 07-00 IMR/ISR CONDITION PRIORITY BINARY I ttEX CONDITION RESET BY: IMROIISRO IMR1/1SR1 IMR211SR2 RxROY KOVR KROY 1 2 11001111 11010111 11011111 II CF 07 OF Read RxHR Reset CMO (02 = 1) Read KHR 3 IMR311SR3 KERR 4 11100111 I E7 Reset CMD (01 = 1) IMR411SR4 XINTI 5 11101111 I EF External IMR5/1SR5 .1BREAK2 6 11110111 I F7 Reset CMO (04 = 1) I IMR611SR6 TxEMT 7 11000111 C7 Load TxHR IMR711SR7 TxRDY 6 11000111 C7 Load TxHR NOTES: 1. XINT is an Input from an external interrupt source, active low (pin 21). 2. 4BREAK reters to the change of a received break condition. 4 3 '--v-----' OOX No effect _ _ _ _ _ _...JI Keyboard reset 010 Set RxE 011 Reset RxE 100 Set TxE KERR reset 101 Reset TxE 110 Set TxE and RxE ' - - - - - - - - KOVR reset 111 Communications reset Break detect change reset ' - - - - - - - - - Communications error reset Figure 9. Reset Command Format Signetics 2-27 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 Table 6 RESET COMMAND DESCRIPTION COMMAND RESETS COMMENTS Keyboard reset KMR7-KMRO The keyboard controller is reset, ignoring the input at KSR5, KSR3-KSRO KRET. IMR3-IMRI KERR reset KSRI Keyboard error status bit reset. KOVR reset KSR2 Keyboard overrun status bit reset. Communications error reset CSR7-CSR5 Resets the receiver overrun, parity, and framing error status bits. Break detect changa reset ISR5 Resets the break detect change bit in the interrupt sta- tus register. Set RxE See note. Enables receiver operation. Reset RxE CSR7-CSR4, CSRO Disables the receiver. See note. Set TxE See note. Enables transmitter operation. Reset TxE CSR3-CSRI Disables the transmitter. Sets the TxD output to a 1 after See note. transmitting the character in TxSR. Communications reset CMR, CSR, BRR, Resets the communication controller. The RxD input is TxE, RxE, IMR7-IMR5, IMRO ignored and the TxD output is seUo a 1. Master reset CMR, CSR, BRR, Resets the keyboard and communication controllers. In- TxE, RxE, KMR, puts at KRET and RxD are ignored and the TxD output is KSR5, KSR3-KSRO, set to a 1. IMR7-IMRO. Releases the internally latched pow- er on reset. NOTE Command does not affect the CMR or the BRR. The sell clear shift lock commands control command, and the current state of the key- • Key codes the state of the internal shift lock flip flop. board (key depressions and latched key • Auto-repeat keys When shifllock is set, the keyboard control- states) is preserved internally. When the • Scan times, tone frequency, and tone ler encodes all key depressions as if the keyboard is subsequently enabled, key duration SHIFT input was asserted. The state of the processing resumes, old and new keys are • Baud rates shift lock flip flop is reflected in KSR5. debounced, and latched keys are encoded if • Interrupt vectors there has been a change in their state. The set keyboard enable command enables Consult your local Signatics representative the keyboard controller and sets KSR3 in MASK PROGRAMMABLE OPTIONS for costs, minimum quantities, and data sub- the keyboard status register. The clear key- Characteristics of certain portions of the mission requirements for customized ver- board enable command resets KSR3 and PKCC are internally programmed by means sions of the PKCC. disables key processing at the KRET input. of a read only memory. The items which can The keyboard controller is not reset by this be programmed are: 7 6 5 o C,"" . " " " , '""~ II L,..",m;"'".."" ,,,•• Set keyboard enable L Transmit timed break Clear shift lock - - - - - - - - - - - - ' Ring tone short Set shifllock _ _ _ _ _ _ _ _ _ _ _...J ' - - - - - - - - - Ring tone long Figure 10. Miscellaneous Commands Format 2-28 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 ABSOLUTE MAXIMUM RATINGS 1 PARAMETER RATING UNIT Operating ambient temperature 2 Oto +70 ·C Storage temperature -65 to +150 ·C All voltages with respect to ground 3 -0.5 to +6.0 V 2 DC ELECTRICAL CHARACTERISTICS TA = O·C to + lO·C, Vee=5V ± 5% 4,5,6 LIMITS PARAMETER TEST CONDITIONS Unit Min Typ Max V1l Input low voltage 0.8 V V1H Input high voltage XTAL1, XTAL2 4.0 V All other inputs 2.0 V VOL Output low voltage IOl = 1.6mA 0.4 V VOH Output high voltage (except INTR) IOH= -100"A 2.4 V III Input leakage current V1N=0 to Vee XTAL2/BRCLK -100 "A All other inputs -10 10 "A III Data bus 3·state leakage current Vo=O to Vee -10 10 p.A Icc Power supply current 150 rnA AC ELECTRICAL CHARACTERISTICS TA=O· to + 70·C, Vee=5V ± 5%4,5,6 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Read timing 1 tAS Address setup to RD 50 ns tcs CE setup to RD 50 ns tpw RD pulse width 250 ns tAH Address hold from RD 20 ns tCH CE hold from RD 0 ns too Data delay for read CL = 150pF 200 ns tDF Data bus floating time for read CL = 150pF 10 100 ns tAD Access delay from any read to next read or write 250 ns Write timing 8 tAS Address setup to WR 50 ns tcs CE setup to WR 50 ns tpw WR pulse width 250 ns tAH Address hold from WR 20 ns tCH CE hold from WR 0 ns tDS Data setup 100 ns tDH Data hold 10 ns tAD Access delay from any write to next read or write 250 ns tAD Access delay from reset command to next read or write 1.0 f.ts NOTES 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent 4. Parameters are valid over operating temperature range unless otherwise specified. damage to the device. This is stress rating only and functional operation of the device 5. All voltage measurements are referenced to ground (VSS). All input signals swing at these or a1 any other condition above those indicated in the operation section of this between 0.4V and 2.4V with a transition time of 20n8 maximum and time measurements specification is not implied. are referenced at input voltages of O.8V, 2.0V and at output voltages of o.av, 2.0V as 2. For operating at elevated temperatures. the device must be derated baaed on + 150°C appropriate, unless otherwise specified. maximum junction temperature. 6. Typical values are at +25°C, typical supply voltages and typical processing paramo 3. This product includes circuitry specifically designed for the protection of its internal eters. devices from damaging effects of excessive static charge. Nonetheless, it is 8uggest· 7. See figure 11. ed that conventional precautions be taken to avoid applying any voltages larger than 8. See figure 12. the rated maxima. Signetics 2·29 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 AC ELECTRICAL CHARACTERISTICS (Con!.) LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Interrupt acknowledge timing 9 tpWI INTA pulse width 300 ns tOOl Data delay time for interrupt vector CL = 150pF 250 ns tDFI Data bus floating time after INTA CL = 150pF 10 100 ns tADI INTAto INTA access delay 300 ns INTR reset timing 10 tRI INTR delay from: Read RxHR (RxRDY) 400 ns Read KHR (KRDY) 400 ns Reset commands (KOVR,KERR,BREAK) 450 ns Load TxHR (TxEMT,TxRDY) 400 ns Mask bit reset 300 ns Keyboard timing 11 fKCLK KCLK frequency 409 kHz tKBD KRi, KCi to KRET sample delay: FAST SCAN 12.0 I's SLOW SCAN 55.0 I's tpos Scan time per matrix position: FAST SCAN 20 I's SLOW SCAN 80 I'S tKRD KDRES delay from KCLK CL = 150pF 400 ns tKRH KDRES hold from KCLK CL = 150pF 400 ns tHYSD HYS delay from KCLK CL = 150pF 600 ns tRCD KRi, KCi delay from KCLK CL = 150pF 400 ns UART timing 12 tRXS RxD setup time 200 ns tRxH RxD hold time 200 ns tTxD TxD delay from falling edge of TxC CL = 150pF 300 ns Ircs Skew between TxD transition and falling edge of TxC output CL = 150pF 0 ns tBRH XTAL 1 clock high 13 70 ns tBRL XTAL 1 clock low 13 70 ns fBRG BRG input frequency 1.0 4.9152 5.075 MHz fR/T TxC or RxC input frequency Clock rate factor = 16X, 32X, 64X 1.3 MHz fR/T TxC or RxC input frequency Clock rate factor = IX 1.0 MHz tR/TH TxC or RxC clock high 350 ns tR/TL TxC or RxC clock low 350 ns NOTES 9. See figure 13. 10. See figure 14. 11. See figure 16 and 16. 12. See figure 17" 18, and 19. 13. See figures 20 and 21 for XTAL1, XTAl2 connections for driving XTAL2 with an external clock. Input levels for XTAL 1 and XTAl2 are VIL .::s; a.BV, VIH ~ 4.0V, and teRl and teRH are measured at these levels. 2·30 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 A2-AO 2 AD --"":""""='I.-I.---, pw ---:2t~~===-:::====::::j ·AD----+l' .00=1""-..;.:......;;.;.,~_ _ _ _ _ _ _ _ _ __ 07-00 Figure 11. Read Timing A2-AO --Jl~----------~~ 07-00 --------~(r;..-_-,~V~A~L~I;O"'_-_"~k"----------- Figure 12. Write Timing iNTA --.,.,.VI....,H~.PW=ao----- . A O I - - - - - - - < ! K - V,L ~Ol ~ 'OFI I--- ~OO (INTR VECTOR) ~ VALID )1) ! . - - - - - - - - Figure 13. Interrupt Acknowledge Timing Signetics 2·31 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD & COMM CONTROLLER (PKCC) SC2671 VIH1( ~",l,e---- ' R I - - - - ; L . , ,_ _ _ __ Figure 14. Interrupt Reset Timing "'I·------'POS -------1·1 KCLK 400KHz ~I "'KCLK 'KRO -l H I- 'KRH KORES -:-0_ _ _ _ _ _ _ _ _ _....... 11..________ mrn ~--'~HY~S~O-----------~X~--------- _--U:-'RCO ~~~:~~~ ~::~:::::::::::::::::::::::::X\. _________________ "'1'--- 'KeD ----+1·1 CONTRO~R&E~ESpH~=i _____________________.... n..______________________ SAMPLE TIME NOTE SCAN TIMING SHOWN IS FOR FAST SCAN (KMR1 = 1). FOR SLOW SCAN (KMR1 = O)ALL S'GNALS EXCEPT KCLK RUN AT % THE SHOWN RATES. Figure 15. Keyboard Scan Timing 2·32 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 KRO~~~~~~~ • 1 SCAN CYCLE • I 2~l I 2~l I 2~~ KC3! KEY 1 I1 KEY KEY 2 KEY 1 KEY 2 KEY 1 2 KRET ~~l-~2~l-----I~~rl---~~'----~2~l_ _IL HYS ---....,222l- --~22-l-------:.1....,222l----22jlL----....,~l 2l N-KEY ROLLOVER ...,...... MODES ONLY (~:~~----------------+' "'';----------...... -.;:-:::-2:;'';K;;;E'V'Yft.RO;;;L7'LO;;;V';';:E:;;'R--- 2 KEY INHIBIT ~--------------------,~--------------~~~~- READ KHR (KI) (~::~-------------------------------~ ~----------------, Figure 16. Keyboard Timing Clock Transmit 1 BIT TIME (1, 16, OR 64 CLOCK PERIODS) ~ TxC (INPUT) TxD 'TCS TxC (OUTPUT) Receive Figure 17. Signetics 2·33 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 TxC TxD DATA 1 DATA 2 I I DATA 3 TxEN CEFOR WRITE OF --+---. r--+--_, r----+--------....---, ...-----------1-- THR TxRDY (CSR1) TxEMT (CSR2) -----------------------....1 TxD _ _ _ _- - _ , A B CAB CAB C -- D ~~~~B~R~EA~K~1~====~==~B~R~EA~K~2~====~.r-l ~DATA3-=3 I TxEN ~~~-~-~&-~~----,r---+----------------~-------­ COMMAND TxRDY (CSR1) TRANSIT BREAK _ _ _ _ _ ~ CSR3 ~i~~ ---------------------+--~--~~---....I WRITE OF - - - - - - - - - - - - - - - - - - - , r~------~r_---------- THR IF NO WRITE OF THR A=START BIT B=lstSTOPBIT C=2ndSTOPBIT D=MARK Figure 18. Transmitter Timing (5·Bit Characters, no Parity, 2 Stop Bits) 2·34 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 RxC RxD---"'" RxEN 2 R~rig~-------------+---, ~----------~-------------+-----, r----~r_------~­ RHR ~~;~~ ----------....... R(~~~~)N _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _- - ' A BCA BA RXD---~I ~1--D-AT-A-l-....,---,LI~~~DA~T~A~2~_~_ _---~~D~A~TA~3~~._ _ _ _ _ _~ RxEN FRAMING ERROR (CSR6) -------------------...1 RECEIVED ~~~~~--------------------------....... CEFOR-------------------------------------, r---------+-- RESET COMMAND WITH D4=1 ISR5 (BREAK----------------------------------...I DETECT CHANGE) A = START BIT B = 1ST STOP BIT C = 2ND STOP BIT Figure 19. Receiver Timing (S·Bit Characters, no Parity, 2 Stop Bits) 2671 2671 4.9152MHz r L XTALI r------I XTALI XTAL2 -DoO--*---~-i>:""""-I XTAL2 Figure 20. Crystal Connections BRG Clock Figure 21. Connection for External BRG Clock Source Signetics 2·35 MICROPROCESSOR DIVISION PROGRAMMABLE KEYBOARD AND COMM CONTROLLER (PKCC) SCN2671 Table 7 REGISTER FORMAT SUMMARY I 7 I 6 I 5 4 3 2 1 o Test mode Rollover modes Keyboard Auto repeat Tone select Key 1 = Enable 00 = N-key with latched 0" Encoded 0= Disable Matrix Scan 0= 1kHz keys KMR2 KMRI Size Time KMR 0= Disable 01 - N-key 1 = Non en- 1 = Enable 0 0 128 10ms 1 = 2kHz 10" Two keys coded 0 1 128 2.5ms 11 - Two key inhibit 1 0 80 6.4ms 1 1 80 1.8ms KSR CONTROL SHIFT SHIFT LOCK REPEAT Keyboard KOVR KERR KRDY Ensbled Operating Mode Parity Parity Mode Stop Bits Character Length 00 = Normal 0= Oddl 00 = With parity 0= Two 00 = 8 01 = Auto echo force 0 01 = Force parity 01 = 5 CMR 10 = Localloopback 10 = No parity 1 = One 10 = 6 11 = Remote loopback 1 = Evenl 11 = Not allowed 11 = 7 force 1 Tx Clock Rx Clock Clock rate factor source source for external clocks Baud rate select (BRR3 - BRRO in hex) 0= External 0= External 00" 16X 0=50 4 = 200 8 = 1200 C = 4800 01 = 32X 1 = 110 5 = 300 9 = 1800 D = 9600 1 = Internal 1 = Internal 10 = 64X 2 = 134.5 8=600 A = 2000 E = 19200 (BRG) (BRG) 11 = IX 3 = 150 7 = 1050 B = 2400 F = 38400 BRR For Internal clocks these bits specify the output fre- (BRCLK = 4.9152MHz) quency on pins 34 and 35 (table 4). CSR Parity error Framing error Overrun error Received Transmit TxEMT TxRDY RxRDY break break IMRIISR TxRDY TxEMT BREAK XINT KERR KRDY KOVR RxRDY CHANGE ooX = No effect 101 = Reset TxE Break detect Communica- KOVR reset KERR reset Keyboard Reset 010 = Set RxE 110 = Set TxE and change reset tions error reset Command 011 = Reset RxE RxE reset Format 100 = Set TxE 111 = Communica- tions reset Miscellaneous Commands Format 2·36 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SCN2672 Programmable 4MHz and 2.7MHz character Video Timing Controller (PVTC) is a pro- rate versions grammable device designed for use in • Up to 256 characters per row CRT terminals and display systems that • 1 to 16 raster lines per character row Vcc employ raster scan techniques. The PVTC • Up to 128 character rows per frame A2 generates the vertical and horizontal tim- ing signals necessary for the display of in- • Programmable horizontal and vertical sync generators A1 AO 2 terlaced or non-interlaced data on a CRT • Interlaced or non-Interlaced operation monitor. It provides consecutive address- • Up to 16K RAM addressing for multiple LPS ing to a user specified display buffer mem- page operation INTR ory domain and controls the CPU-display • Automatic wraparound of RAM DADDO buffer interface for various buffer config· • Addressable Incrementable and readable cursor DADD1 uration modes. A variety of operating modes, display formats, and timing pro- • Programmable cursor size, pOSition, DADD2 files can be implemented by programming and blink 02 DADD31L1 the control registers in the PVTC. • Spilt screen and horizontal scroll capa- 03 bility A minimum CRT terminal system configur- • Light pen register 04 DADDs/LA1 ation consists of a PVTC, a SCN2671 Key- • Selectable buffer Interface modes 05 DADII6ILA2 board and Communication Controller • DynamiC RAM refresh (PKCC), a SCN2670 Display Character and OIl DADD71LA3 • Completely TTL compatible Graphics Generator (DCSG), a SCN2670 07 DADD81LNZ • Single +5 volt power supply Video and Attributes Controller (VAC), a • Power on r ••• t circuit cctK DADD8ILPL single chip microcomputer such as the 8048, a display buffer RAM, and a small APPLICATIONS BLANK DADD101UL amount of TTL for miscellaneous address • CRT terminals decoding, interface, and control. Typi- • Word processing systems DADD1210DD HSYNC cally, the package count for a minimum • Small business computers GND DADD13/LL system is between 15 and 20 devices; sys- • Home Computers tem complexity can be enhanced by up- TOP VIEW grading the microprocessor and expand- ing via the system address and data busses. BLOCK DIAGRAM CE I~ CONTROL CTRL1 DISPLAY RD INITIALIZATION MEMORY CTRL2 ~ READI WR AND HANDSHAKE WRITE CTRL3 DISPLAY LOGIC CONTROL LOGIC REGISTERS e- - ~ COMMAND - II DECODE LOGIC AO-2 I ADDRESS INTERRUPT DISPLAY DECODER LOGIC DADDO-13 I. '-~ 3 ADDRESS TIMING - AND STATUS REGISTER MULTIPLEXERS 14 INTR ~ CURSOR, LIGHT PEN STROBE I I POINTER AND LIGHT PEN REGISTERS DATA CURSOR CURSOR 00-7 BUS AND DRIVERS COMPARE 8 LOGIC - Vcc ~ HSYNC ~y I CCLK CLOCK TIMING CHAIN VSYNC/CSYNC BUFFER AND DECODE LOGIC BLANK TIMING Signetics 2·37 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 ORDERING CODE Vcc=5V±5%, TA=O°C to 70°C PACKAGES 4MHz 2.7MHz Ceramic DIP SCN2672AC4140 SCN2672AC3140 Plastic DIP SCN2672AC4N40 SCN2672AC3N40 PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION AO-A2 37-39 I Address LInes: Used to select PVTC internal registers for read Iwrite operations and for commands. 00-07 8-15 110 8-Blt Bidirectional Three-State Data Bus. Bit 0 is the LSB and bit 7 is the MSB. All data, command, and status transfers between the CPU and the PVTC takeplace over this bus. The direction of the transfer is controlled by the RD and WR inputs when the CE input is low. When the CE input is high, the data bus is in the three-state condition. RD 1 I Read Strobe: Active low input. A low on this pin while CE is low causes the contents of the register selected by AO-A2 to be placed on the data bus. The read cycle begins on the leading (falling) edge of RD. WR 3 I Write Strobe: Active low input. A low on this pin while CE is also low causes the contents of the data bus to be transferred to the register selected by AO-A2. The transfer occurs on the trailing (rising) edge of WR. CE 2 I Chip Enable: Active low input. When low, data transfers between the CPU and the PVTC are enabled on 00-07 as controlled by the WR, RD, and AO-A2 inputs. When CE is high, the PVTC is effectively isolated from the data bus and 00-07 are placed in the three-state condition. CCLK 16 I Character Clock: Timing signal derived from the video dot clock which is used to synchro· nize the PVTC's timing functions. HSYNC 19 0 Horizontal Sync: Active high output which provides video horizontal sync pulses. The timing parameters are programmable. VSYNC/CSYNC 18 0 Vertical Sync/Composite Sync: A control bit selects either vertical or composite sync pulses on this active high output. When CSYNC is selected, equalization pulses are included. The timing parameters are programmable. BLANK 17 0 Blank: This active high output defines the horizontal and vertical borders of the display. Display control signals which are output on DADD3 thru DADO 13 are valid on the trailing edge of BLANK. CURSOR 7 0 Cursor Gate: This active high output becomes active for a specified number of scan lines when the address contained in the cursor registers match the address output on DADDO thru DADDI3. The first and last lines of the cursor and a blink option are programmable. INTR 35 0 Interrupt Request: Open drain output which supplies an active low interrupt request from any of five maskable sources. This pin is inactive after power on reset or a master reset command. LPS 36 I LIght Pen Strobe: Positive edge triggered input indicating a light pen hit. Causes the current value of the display address to be strobed into the light pen register. CTRLI 4 110 Handshake Control 1: In independent mode, provides an active low writ!;! data buffer (WDB) output which strobes data from the interface latch into the display memory. In transparent and shared modes, this is an active low processor bus request (PBREO) input which indicates that the CPU desires to access the display memory. This pin must be tied high when operating in row buffer mode. CTRL2 5 0 Handshake Control 2: In independent mode, provides an active low read data buffer (ROB) output which strobes data from the display memory into the interface latch. In transparent and shared modes, this is an active low bus external enable (BEXT) output which indicates that the PVTC has relinquished control of the display memory (DADDO-DADD 13 are in the three-state condition) in response to a CPU bus request. BEXT also goes low in response to a 'display off and float DADO' command. In row buffer mode, it is an active low bus request (BREO) output which halts the CPU during a line DMA. 2·38 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 PIN DESIGNATION (cant.) MNEMONIC PIN NO. TYPE NAME AND FUNCTION CTRL3 6 0 Handshake Control 3: In independent mode, provides the active low buffer chip enable (BCE) signal to the display memory. In transparent and shared modes. provides an active low bus acknowledge (BACK) output which serves as a ready signal to the CPU in response to a processor bus request. In row buffer mode, this is an active high memory bus control (MBC) output which configures the system for the DMA transfer of one row of 2 character codes from system memory to the row display buffer. DADDO-DADDI3 34-21 0 Display Address: Used by the PVTC to address up to 16K of display memory. These outputs are floated at various times depending on the buffer mode. Various control signals are multiplexed on DADD3 thru DADO 13 and are valid at the trailing edge of BLANK. These control signals are: DADD3/LI Line Interlace: Replaces DADD4/LAO as the least significant line address for interlaced sync and video applications. A low indicates an even row of an even field or an odd row of an odd field. DADD4-DADD7/LAO-LA3 Line Address: Provides the number of the current scan line within each character row. DADD8/LNZ Line Zero: Asserted before the first scan line in each character row. DADD9/LPL Light Pen Line: Asserted before the scan line which matches the programmed light pen line position (line 3, 5, 7, or 9). DADD10/UL Underline: Asserted before the scan line which matches the programmed underline posi· tion (line 0 thru 15). DADO 11 IBLINK Blink frequency: Provides an output divided down from the vertical sync rate. DADD1210DD Odd Field: Active high signal which is asserted before each scan line of the odd field when interlace is specified. DADD13/LL Last Line: Asserted before the last scan line of each character row. VCC 40 I Power Supply: +5 volts ± 5% power input. GND 20 I Ground: Signal and power ground input. FUNCTIONAL DESCRIPTION Table 1 PVTC ADDRESSING As shown on the block diagram, the PVTC A2 AI AO READ (RD=O) WRITE (WR=O) contains the following major blocks: • Data bus buffer 0 0 0 Interrupt register Initialization registers' • Interface Logic 0 0 1 Status register Command register • Operation Control 0 1 0 Screen start address lower register Screen start address lower reg. • Timing 0 1 1 Screen start address upper register Screen start address upper reg. • Display Control 1 0 0 Cursor address lower register Cursor address lower register • Buffer Control 1 0 1 Cursor address upper register Cursor address upper register 1 1 0 Light pen address lower register Display pointer address lower reg. Data Bus Buffer 1 1 1 Light pen address upper register Display pointer address upper reg. The data bus buffer provides the interface NOTE between the external and internal data bus· 1. There are 11 mitialization registers which are accessed sequentially .... ia a Single address. The PVTC mamtains an ses. It is controlled by the operation control internal pointer to these registers which is incremented alter 8ach write at thiS address until the last register OR 10, block to allow read and write operations to the split screen register) is acc881!1ed. The pointer then continues to point to the split screen register. Upon take place between the controlling CPU and power-up or a master reset commend, the internal pointer IS reset to point to the first register (lAO) of the initialization register group. The internal pointer can also be preset to any register of the group via the 'load fA the PVTC. address pointer' command. Interface Logic The interface logic contains address decod- via the data bus buffer. The functions per- ing and read and write circuits to permit formed by the CPU read and write oper- communications with the microprocessor ations are as shown in table 1. Signetics 2·39 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 Operation Control Buffer Control shift register or a small RAM) that is updat- The operation control section decodes con- The buffer control section generates three ed in real time to contain the appropriate figuration and operation commands from the signals which control the transfer of data display data. CPU and generates appropriate signals to between the CPU and the display buffer The user programs bits 0 and 1 of IRO to other internal sections to control the overall memory. Four system configurations requir- select the mode best suited for the system device operation. It contains the timing and ing four different 'handshaking' schemes environment. The CNTRL 1-3 outputs per- display registers which configure the dis- are supported. These are described below. form different functions for each mode and play format and operating mode, the inter- are named accordingly in the description of rupt logic, and the status register which pro- each mode. SYSTEM CONFIGURATIONS vides operational feedback to the CPU. Figure 1 illustrates the block diagram of a Independent Mode Timing typical display terminal using the Signetics The CPU to RAM interface configuration for The timing section contains the counters 2670, 2671, 2672, and 2673 CRT terminal this mode is illustrated in figure 2. Transfer and decoding logic necessary to generate devices. In this system, the CPU examines of data between the CPU and display mem- the monitor timing outputs and to control the inputs from the data communications line ory is accomplished via a bidirectional display format. These timing parameters are and the keyboard and places the data to be latched port and is controlled by the signals selected by programming of the initialization displayed in the display buffer memory. This read data buffer (ROB), write data buffer registers. buffer is typically a RAM which holds the (WDB), and buffer chip enable (BCE). This data for a single or multiple screen load Display Control mode provides a non-contention type of op- (page) or for a single character row. The display control section generates linear eration that doas not require address addressing for up to 16K bytes of display The PVTC supports four common system multiplexers. The CPU does not address the memory. Internal comparators limit the por- configurations of display buffer memory, memory directly-the read or write oper- tion of the memory which is displayed to designaied the independent, transparent, ation is performed at the address contained programmed values. Additional functions shared, and row buffer modes. The first in the cursor address register or the pointer performed in this section include cursor po- three modes utilize a single or multiple page address register as specified by the CPU. sitioning, storage of light pen 'hit' location, RAM and differ primarily in the means used The PVTC enacts the data transfers during and address comparisons required for gen- to transfer display data between the RAM blanking intervals in order to prevent visual eration of timing signals and the split screen and the CPU. The row buffer mode makes disturbances of the displayed data. interrupt. use of a single row buffer (which can be a 2673 MONITOR VIDEO TIMING & ATTRIBUTES cPU . .- - - - - - - DATA COMMUNICATIONS LINE Figure 1. CRT Terminal Block Diagram 2·40 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 The CPU manages the data translers by supplying commands to the PVTC. The com- mands used are: 2672 REFRESH PVTC RAM 1. Read / Write at pointer address. DADO DISPLAY ADDRESS ADR 2. Read/Write at cursor address (with op- tional increment 01 address). 3. Write Irom cursor address to pointer ad- dress. CTRl3 CTRll BCE WDB CE \iii DATA 1/0 2 CTRl2 '--- iiilii The operational sequance lor a write oper- ation is: 1. CPU checks RDFLG status bit to assure TO that any previous operation has been DISPLAY DATA BUS VIDEO completed. lOGIC 2. CPU loads data to be written to display memory into the interlace latch. 3. CPU writes address into cursor or pointer registers. 4. CPU issues 'write at cursor with/without -----1~ 74lS364I CV!74lS364 increment' or 'write at pointer' command. 5. PVTC generates control signals and out- puts specilied address to perlorm re- { iiii FROM cpu J WRCPU FROM SYSTEM DATA BUS quested operation. Data is copied Irom / / the interlace latch into the memory. 6. PVTC sets RDFLG status to indicate that Figure 2. Independent Buffer Mode Configuration the write is completed. Similarly, a read operation proceeds as 101- lows: 3. CPU writes beginning address 01 memory play window (defined as lirst scan line of the 1. Steps 1 and 3 as above. block into cursor address register and lirst character row to the last scan line 01 2. CPU issues 'read at cursor with/without ending address 01 block into pointer ad- the last character row), the operation takes increment' or 'read at pointer' command. dress register. place during the next horizontal blanking in- 3. PVTC generates control signals and out- 4. CPU issues 'write Irom cursor to pointer' terval, as illustrated in figure 3. If the com- puts specilied address to perform re- command. mand is given during the vertical blanking quested operation. Data is copied Irom 5. PVTC generates control signals and out- interval, or while the display has been com- memory to the interlace latch and PVTC puts block addresses to copy data Irom manded blanked, the operation takes place sets RDFLG status to indicate that the the interlace latch into the specified immediately. In the latter case, the execu- read is completed. block 01 memory. tion time lor the command is approximately 4. CPU checks RDFLG status to see il oper- 6. PVTC sets RDFLG status to indicate that one microsecond plus six (6) character ation is completed. the block write is completed. clocks (see figure 4). 5. CPU reads data Irom interlace latch. Similar sequences can be implemented on Timing for the 'write Irom cursor to pointer' Loading the same data into a block 01 dis- an interrupt driven basis using the READY operation is shown in ligure 5. The BLANK play memory is accomplished via the 'write interrupt output to advise the CPU that a output is asserted automatically and re- Irom cursor to pointer' command: previously requested command has been mains asserted until the vertical retrace in- 1. CPU checks RDFLG status bit to assure completed. tervallollowing completion 01 the command. that any previous operation has been The memory is lilled at a rate 01 one location completed. Two timing sequences are possible lor the per two character times, plus a small 2. CPU loads data to be written to display 'read/write at cursor/pointer' commands. If amount 01 overhead. memory into the interlace latch. the command is given during the active dis- Signetics 2·41 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 ~ ~ ~ -;u 2 ,~ ~ Bl ANI< " 1/ ~, HORtZONTAL BLANKING INTERVAL \ _no ~~ X DA DO ,,"\ LAST ADDRESS CURSOR OR X POINTER ADDRESS X X X XPYTC CONTROl SIGNALSX ,1ST CHAR. TO VAC AND DeG ADDRESS X X I ~ ---- /_REFRESHADDRESSES_ --------------~2 ~~------------------------------ / . I I 2~ NOTE Write waveforms shown in dotted lines. Figure 3. ReadlWrlte at Cursor/Pointer Command Timing (Command Received During Active Display Window) -----------------~~~~--------------~-+------------- Figure 4. ReadlWrite at Cursor/Pointer Command Timing (Command Received While Display Is Blanked) 2·42 Signefics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 2 BLANK BLANK IS SET UNTIL FIRST VBLNK AFTER LAST WRITE ANY CHAR POINTER POINTER DADD CURSOR ADDRESS ADDRESS ADDRESS - 1 ADDRESS Figure 5. Write from Cursor to Pointer Command Timing Shared and Transparent Buffer Modes In these modes the display buffer RAM is a part of the CPU memory domain and is ad· REFRESH 2672 dressed directly by the CPU. Both modes use the same hardware configuration with PYlC t-:=:::::J~~~~==:>I ADR I- RAM the CPU accessing the display buffer via PBREQ CTRL1 three-state drivers (see figure 6). The pro· CPU { BACK CTRL3 cessor bus request (PBREQ) control signal BEXT CTRL2 informs the PVTC that the CPU is requesting access to the display buffer. In response to this request, the PVTC raises bus acknowl· edge (BACK) until its bus external (BEXT) output has freed the display address and data busses for CPU access. BACK, which can be used as a 'hold' input to the CPU, is then lowered to indicate that the CPU can access the buffer. In transparent mode, the PVTC delays the granting of the buffer to the CPU until a verti· calor horizontal blanking interval, thereby SYSTEM DATA BUS causing minimum disturbance of the display. In shared mode, the PVTC will blank the dis· play and grant immediate access to the CPU. Timing for these modes is illustrated in Figure 6. PVTC Shared or Transparent Buffer Modes figures 7, 8, and 9. Signetics 2·43 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROUER (PVTC) SCN2672 ~~(1) ,------ ~;-------------(~----------------. ~~----~----~----~~--------, BAeK~ (21 \'-------t~2~----J1 ----j------------~~----------------- W ; 00 BLANK '/r-------H-OIt1Z-CN-'-...-8LA~~i1-ING-,-NTE-"Y-AL--------.r-----------(~-----\ ----~~z_1 . ,----------- DADO NOTES =C'1-I= SYSTEM ADDRESSES 1. PSREa must be asserted prior to the rising edge of BLANK in order for sequence to begin during that blanking period. 2. If PBREQ is negated after the next to last CCLK of the horizontal blanking interval, the next scan line will al80 be blanked. Figure 7. Transparent Buffer Mode Timing PiiRm \'-----i----+---i-~,~r------ --- -- - __ {<;---------~~-------------- J mR I ~2 1m '-__ ~,~-------J r---- r--------~~------------- ~2 \n ______ (1) ~~---_~ BLANK 1 ~--------- NOTE 1. If PBREQ is negated after the next to 188t ~ of the horizontal blanking interval. the next scan line will also be blanked. Figure 8. Shared Buffer Mode Timing 2·44 Signefics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 la) Ib) =-..f\J\..J\J\.J\.n..rL :_----I~ ----\! : 1, 2 P!iRElj ----------------~~----------------. /i-II Il \'--~I~ Il Il Il VBLANK OR OBLANK BlANK DADO~a-----c:x= _REFRESH ADDRESSES- ~ ~ SYSTEM PROCESSOR HASZJONTINUOUS BUS CONTROl DADD'\.._ _ _ _ _ _~~l~'-------....I }-- ADDRESSES a) During Vertical Blank or after 'dl8play off' command b) After 'dl8play off and 3-8tate' command Figure 9. Shared and Transparent Mode Timing Row Buffer Mode Figures 10 and 11 show the timing and a 2x 2111 typical hardware implementation for the 2672 ROW row buffer mode. During the first scan line PVTC REFRESH (line 0) of each character row, the PVTC ~--~~~~~~~~~ RAM halts the CPU and DMA's the next row of BREQ character data from the system memory to TO CPU the row buffer memory. The PVTC then re- leases the CPU and displays the row buffer data for the programmed number of scan lines. The bus request control (BREQ) sig- nal informs the CPU that character ad- dresses and the memory bus control (MBC) signal will start at the next failing edge of BLANK. The CPU must release the address and data busses before this time to prevent bus contention. After the row of character data is transferred to the CPU, BREQ re- turns high to grant memory control back to the CPU. SYSTEM DATA BUS Figure 10. Row Buffer Mode Configuration CCLKJ\J\...fV-V-V--V-V~ BLANK-r I..------J...... I '~I 1 (LINE 0 ONLy) Il I 1,.--....;..1_ __ 1 BREQ ~l Il 1,------ MBC I~ Il \\.._ _ _ __ Figure 11. Row Buffer Mode Timing Signetics 2·45 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 OPERATION groups, the PVTC is ready to control the INITIALIZATION REGISTERS monitor screen. Prior to executing the PVTC After power is applied, the PVTC will be in an There are 11 initialization registers commands which turn on the display and inactive state. Two consecutive 'master (lRO-IR 10) which are accessed sequential- cursor, the user should load the display reset' commands are necessary to release ly via a single address. The PVTC maintains memory with the first data to be displayed. this circuitry and ready the PVTC for oper- an internal pointer to these registers which During operation, the PVTC will sequentially ation. Two register groups exist within the is incremented after each write at this ad· address the display memory within the limits PVTC: the initialization registers and the dis- dress until the last register (lR 10, the split programmed into its registers. The memory play control registers. The initialization reg- screen register) is accessed. The pointer outputs character codes to the system isters select the system configuration, moni- then continues to point to the split screen character and graphics generation logic, tor timing, cursor shape, display memory register. Upon power-up or a master reset where they are converted to the serial video domain, and screen format. These are load- command, the internal pointer is reset to stream necessary to display the data on the ed first and normally require no modification point to the first register (lRO) of the CRT. The user effects changes to the dis- except for certain special visual effects. initialization register group. The internal play by modifying the contents of the display The display control registers specify the pointer can also be preset to any register of memory, the PVTC display control and com- memory address of the base character (up- the group via the 'load IR address pointer' mand registers, and the initialization regis- per left corner of screen), the cursor posi- command. These registers are write only ters, if required. Interrupts and status condi- tion, and the pOinter address for indepen- and are used to specify parameters such as tions generated by the PVTC supply the dent memory access mode. These usually the system configuration, display format, 'handshaking' information necessary for the require modification during operation. cursor shape, and monitor timing. Register CPU to effect the display changes in the formats are shown in figure 12. After initial loading of the two register proper time frame. =..,.-,:;"",'T;.'-r-.:;"~"TU''''''FFE: MOB~:O SELECT BIT7 ·~·~~AC·TlVEB~~:RA~TE:~T:ER :OwB1T2 .~.JBITO 0001"" 2 LINES 0001 = 5 L.INES ~ [ . 00000010 - 3 CHARACTERS 00000011 '" 4 CHARACTERS -I 'RO NOT 0010;; 3 LINES 0010 = 7 LINES 0= VSYNC 00 = INDEPENDENT = 01 = TRANSPARENT ',111110 = 255 CHARACTERS · . . .---. .---. USED 1 CSYNC 10 = SHARED 11111111 = 256 CHARACTERS 1110 . = 15 LINES 1111'" 16 LINES 1110 = 31 LINES 1111 ::: UNDEFINED 11 = ROW --- --- --- --- BIT7 ·FIR~:~NE ~F C~I;:OR B1T4 BIT3.LA:~TL~NE ~ C~!;OR _J8ITO ;;:;::' ~~~~~' ~ OOOO=SCANLINEO OOOO_SCANLINEO INTERLACE [ 0001 =SCAN LINE 1 0001 =SCAN LINE 1 ; IRG: : · .---. . .--- . J 1110=SCANLlNEI4 1110=SCANLINE14 O=NOt.... NT 1111 =SCAN LINE 15 1111 =SCAN LINE 15 1111110=127CCLK 1111111 =128 CCLK --- --- '---_.1....-_. _ _ • _ _ • _ _ • _ _ • _ _ • EC--'·-- BITJ • BIT2 • Bin. BITO CURSOR DOUBLE UNDERLINE POSITION BIT7 BlT6. BITS. BIT4 • BIT2 • Bin • B,TO BLINK HEIGHT 0000 - SCAN LINE a -"'~-I 00 = SCAN LINE 3 CHAR. 000 1 = SCAN LINE 1 0000 2 CCLK 000 1 CCLK 01 = SCAN LINE 5 0001 = 4 CCLK 001 = 5 CCLK IR7 10 = SCAN LINE 7 0= NO J NOT • 11 = SCAN LINE 9 __.__ . 1110 = SCAN LINE 14 USED • 1111 = SCAN LINE 15 .__.__._-'---- J 1110=30CCLK 110=2SCCLK '---._---'----'----'-_. 1111 = 32CCLK 111 = 29CCLK BI17 • BIT6 • alT5 • BIT4 • BIT3 • BIT2 • BITl • BITO 8117 • BIT6 • BIT5 BIT4. BIT3 • BIT2 • BITl • BITO - - - '""'iiiSiilAYBUF'F'ERFiii'siADoFiESSL~ - - H'ooo' a VERTICAL FRONT = PORIH -----vERTic~o~ [ H'OOl' =1 .. .. 000 4 SCAN LINES 00000 4 SCAN LINES • NOTE; MSB'S ARE IN 001 = 8 SCAN LINES 00001 = 6 SCAN LINES IRB • IR9[3:0] . . . . . . H'FFE' = 4,094 · H'FFF' = 4.095 - - - --- - - - - - - - - - - - - .- -. . - -. .- -. 110 = 28 SCAN LINES 11110 = 64 SCAN LINES 111 = 32 SCAN LINIES 11111 = 66 SCAiIIlIi11ES --- - BIT7 • BIT6 • BITS. Blf4 BIT3. BIT2 • Bin. BITO BITe. BITS • alT4 • BIT3 • alT2 • BITl • BITO SPi:Av"iUFFER"'i:AsT"ADoRISS 0000 - 1.023 DISPLAY"'BuF'F'E'R'FIR~S]SSB'S BLINK ACTIVE CHARACTER ROWS PER SCREEN 00000oo 1 ROW (NOTE]' [ 0001 = 2,047 1R9: SEE IRS ~ J 0000001 = 2 ROWS __. 1110 = 15.359 0=1/16 VSYNC 1111 = 16.383 1 = 1/32 1111110 1111111 = 127 ROWS = 12SROWS ._-'--' '-_. VSYNC ' - - _ L . - _ . _ _ ' _ _ • _ _• _ _ • _ _ ' BITe • BITS • BIT4 • alT3 • BIT2 • alTl • BITO NOTE CURSOR SPLIT SCREEN INTERRUPT ROW 1. In Interlace mode with odd lotal character rows per screen the last character BLINK 00000oo ROW a row will be the programmed scan lines per character row minus one. ~ 0000001 =ROW 1 IR10 0 = 1/16 VSYNC 1= 1/32 1111110 = ROW 126 1111111 = ROW 127 VSYNC L . - - - L_ _ " _ _ • _ _ • _ _ • _ _ • _ _ • Figure 12. Initialization Register Formats 2·46 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 IR0(6:3]-Scan Lines per IR 1[6:0]-Equalizing Constant IR5[7:0]-Actlve Characters Per Character Row This field indirectly defines the horizontal Row Both interlaced and non-interlaced scan- front porch and is used internally to gener- This field determines the number of charac- ning are supported by the PVTC'. For inter- ate the equalizing pulses for the RS 170 ters to be displayed on each row of the CRT laced mode, two dille rent formats can be implemented, depending on interconnection between the PVTC and the the compatible CSYNC. The value for this field is the total number of character clocks (CCLK) during a horizontal line period divid- 2 screen. The sum of this value, the horizontal ~~~~5 front porch, the horizontal sync width, and the horizontal back porch is the horizontal character generator (see IR 1[7]). This field ed by two, minus two times the number of scan period in CCLKs. ~~~~~ defines the number of scan lines used to character clocks in the horizontal sync compose a character row for each tech- pulse: nique. As scanning occurs, the scan line count is output on the LAO-LA3 and LI pins. IR6[7:4], IR6[3:0]-First and Last Scan Line of Cursor These two fields specify the height and po- IR0(2]-VS/CS Enable The definition of the individual parameters sition of the cursor on the character block. This bit selects either vertical sync pulses is illustrated in figure 14. The minimum The 'first' line is the topmost line when scan- or composite sync pulses on the value of HFP is two character clocks. ning from the top to the bottom of the VSYNC/CSYNC output (pin 18). The com- screen. posite sync waveform conforms to EIA Note that when using the 2673 VAC, the RS 170 standards, with the vertical interval blank pulse is delayed three CCI-Ks relative composed of six equalizinq pulses, six verti- to the HSYNC pulse. IR7[7:6]-Light Pen Line Position cal sync pulses, and six more equalizing This field defines which of four scan lines of pulses. the character row will be used for the light IR2[6:3]-Horizontal Sync Pulse pen strike-thru attribute by the 2673 VAC. Width The timing signal is multiplexed onto the This field specifies the width of the HSYNC IR0[1:0]-BuHer Mode Select pulse in CCLK periods. DADD9 I LPL output during the falling edge Four buller memory modes may be selec- of BLANK. tively enabled to accommodate the desired system configuration. See System Configu- IR2[2:0]-Horizontal Back Porch ration. This field defines the number of CCLKs be- tween the trailing edge of HSYNC and the IR7[5]-Cursor Blink Enable trailing edge of BLANK. This bit controls whether or not the cursor IR1[7]-lnterlace Enable output pin will be blinked at the selected Specifies interlaced or non interlaced timing IR3[7:5]-Vertical Front Porch rate (IR 10(7). The blink duty cycle for the Programs the number of scan line periods cursor is 50%. operation. Two modes of interlaced oper- ation are available, depending on whether between the rising edges of BLANK and LO-L3 or L1, LO-L2 are used as the line VSYNC during a vertical retrace interval. The width of the VSYNC pulse is fixed at address for the character generator. The re- IR7[4]-Double Height Character sulting displays are shown in figure 13. three scan lines. Row Enable For 'interlaced sync' operation, the same If enabled, the number of each scan line will IR3[4:0]-Vertical Back Porch information is displayed in both odd and be repeated twice in succession, causing This field determines the number of scan line even fields, resulting in enhanced the height of the character row to double. periods between the falling edges of the readability. The PVTC outputs successive This bit can be changed at any time but will VSYNC and BLANK outputs. line numbers in ascending order on the only become ellective at the beginning of LAO-LA3 lines, one per scan line for each the character row following the time it is field. IR4[7]-Character Blink Rate changed. This allows selected character Specifies the frequency for the character rows to be of double height. The split screen The 'interlaced sync and video' format dou- blink attribute timing. The blink rate can be interrupt can be used to notify the CPU when bles the character density on the screen. specified as 1/16 or 1/32 of the vertical to ellectuate changes to this bit. For each The PVTC outputs successive line numbers field rate. The timing signal has a duty cycle double height row which replaces a normal in ascending order on the L1, LAO-LA2 lines, of 75% and is multiplexed onto the row, one row count should be subtracted one per scan line for each field, but alter- DADD 111 BLINK output at the falling edge of from the 'character rows per screen' field nates beginning the count with even and odd each BLANK. (lR4) to maintain the same total number of line numbers. This displays the odd field scan lines per field. with even scan lines in even character rows and odd scan lines in odd character rows, IR4[6:0]-Character Rows Per and the even field with odd scan lines in Screen even character rows and even scan lines on This field defines the number of character IR7[3:0]-Underline Position odd character rows. This provides balanced rows to be displayed. This value multiplied This field defines which scan line of the beam currents in the odd and even fields, by the scan lines per character row, plus the character row will be used for the underline thus minimizing character variations due to vertical front and back porch values, and the attribute by the 2673 VAC. The timing signal dille rent loading of the CRT anode supply vertical sync pulse width (three scan lines) is multiplexed onto the DADD 101 UL output between fields. is the vertical scan period in scan lines. during the falling edge of BLANK. SigneHcs 2·47 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 .----------------------,----- LIN E ADDRESS LINE ADDRESS l =~:=ll _ _ _ L2 _ _ _ _ _ _ L3 LINE ADDRESS TO CHAR GEN TO CHAR GEN TO CHAR GEN o ili g iri 7 o 0 1-00000 1 -.-.-.-.-.--- 1 -.-.-.-.-.-- 1-0-0-0-0-0-- 3-0 9 SCAN LINESI 2 -.------- 3 -.--------- 4 _.-.-.----- 17 SCAN LINESI ROW 4 - -. 2 -.------- 2-0======== 3-0:~~~::::::::: 4 -0 ••• 0 0 9SCAN{ LlNESI ROW 2 - . =======:: 5-0- 4 - e '.~.!..:===== B -. ------- 7-00000---- ROW 8 5-0=== 5 -.--------- 5 -.------- ••••• -.-.-.-.-. -.-------- --- B -. 6-0 7 -.-.-.-.-.-- 7-0-0-0-0-0-- 2 0 3 -. ------- 6-0 5 - 7 - . 4-000------ ;~~;=::::::: ••••• 1 -.-.-.-.-.--- 1 -.-.-.-.-e-- 1 -0-0-0-0-0-- 2-0=== -.3-0 '-0~000 3-0 5-0 2' -.------- 2 -. 4 - ••• 3 -.------- 3 -.--------- 4-0-0-0----- 4 -.-.-.----- 5-0 4-.~.~ B -e 7-00000 5 -.------- B -.------- 7 -.-.-.-.-.--- 5 -. -. 6-0 7 -0-0-0-0-0-- 7 -.-.-.-.-.-- 1 -. 3 -. o 2-0 ;~.~.~.~::::::: 4-000------ 6 • 0 ••••• NONINTE8LACED INTERLACED SYNC INTERLACED SYNC II VIDEO IRO=1000; TOTAL LINESlROW=9 IRO=OIII; TOTAL LINESIROW = 17 IRO=ooll; TOTAL LINES/ROW=9 Figure 13, Interlaced Display Modes IR9[3:0], IR8[7:0]-Display Buffer screen, the next data is obtained from the Blink is effective only if blink is enabled by First Address address contained in the screen start IR7(5). register. IR9[7:4]-Display Buffer last Ad- IR10[6:0]-Split Screen Interrupt dress Note that there is no restriction in displaying The split screen interrupt can be used to data from other areas of the addressable provide special screen effects such as a These two fields define the area within the memory. Normally, the area between these row of double height characters or to buffer memory where the display data will two bounds is used for data which can be change the normal addressing sequence of reside. When the data at the 'display buffer overwritten (e.g., as a result of scrolling), the display memory. The contents of this last address' is displayed, the PVTe will while data that is not to be overwritten would field is compared, in real time, to the current wrap-around and obtain the data to be dis- be contained outside these bounds and character row number. Upon a match, the played at the next screen position from the accessed by means of the split screen inter- PVTe sets the split screen status bit, and 'display buffer first address'. If 'last ad- rupt feature of the PVTe. issues an interrupt request if so pro- dress' is the end of a character row and a grammed. The status change / interrupt re- new screen start address has been loaded IR10[7]- Cursor Blink Rate quest is made at the beginning of scan line into the screen start register, or if 'last ad- The cursor blink rate can ba specified at zero of the split screen character row. dress' is the last character position of the 1/16 or 1/32 olthe vertical scan frequency. 2·48 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 I--_____ CH~I~~OW-------i I~--~ ~--~I HBLANK ----l '---- --I I-- FRONT PORCH (IR1) BACK PORCH (IR2) ---! f-- HSYNC ~L-- ___________--,n. . ___ 2 --1 r-- HSYNC (IR~~AR ROWS/SCREEN (lR4) - - - j ----r-;::=-;CAN LINES PER ROW (IRO) I VBLANK ~....----il 1-1- - - ' L BACK PORCH (IR3) --I --j f-- FRONT PORCH (lR3) I-- VSYNC ---I"lL--_____________---'n. . ____ ----j r- VSYNC (FIXEO AT 3) EQUALIZING LINES/ROW CONSTANT IRO I I I I I IRI 1 .... ...I..I---L-'--LI. .1. 1_IL...!..--' HSYNC HBACK VFRONT VBACK WIDTH I PORCH I i PORCH 1 PORCH . IR2 I I I I I I IR3 1.-1-,--I--,1----,-1--,-1--,1----,-1.....1----' CHAR ROWS/SCREEN . CHARACTERS PER ROW . IR4 I I I I I I IRS II.-I-,--I--'--....L....JI--L..I--11----,-1--,1 Figure 14. Horizontal and Verlical Timing Timing Considerations Table 2 TIMING CONSIDERATIONS Normally, the contents of the initialization PARAMETER TIMING CONSIDERATIONS registers are not changed during operation. However, this may be necessary to imple- First line of cursor These parameters must be estab- ment special display features such as multi- last line of cursor lished at a minimum of two character ple cursors, smooth scrolling, horizontal light pen line times prior to their occurence. scrolling, and double height character rows. Underline Table 2 describes timing details for these registers which should be considered when Double height characters Sell reset during the character row implementing these features. prior to the row which is to be I not to be double height Cursor blink New values become effective within Cursor blink rate one field after values are changed Character blink rate Split screen interrupt row Change anytime prior to line zero of desired row Character rows per screen Change only during vertical blanking period Vertical front porch Change prior to first line of VFP Vertical back porch Change prior to fourth line after VSYNC Screen start register Change prior to the horizontal blanking interval of the last line of character row before row where new value is to be used Signetics 2·49 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 DISPLAY CONTROL REGISTERS The sequential operation described above refreshing continues from the display buffer There are nine registers in this group, each will be modified upon the occurence of ei- first address. with an individual address. Their formats are ther of two events. First, if during the incre- illustrated in figure 15. The command regis- menting of the memory address counter the Cursor Address Registers 'display buffer last address' (lR9[7:4)) is The contents of these registers defines the ter is used to invoke one of 16 possible reached, the MAC will be loaded from the buffer memory address of the cursor. If en- PVTC' commands as described in the COM- 'display buffer first address' register abled, the cursor output will be asserted MANDS section of this data sheet. The re- (IR9[3:01, IR8[7:0)) at the next character when the memory address counter matches maining registers in the group store address clock. Sequential operation will then resume the value of the cursor address registers. values which specify the cursor and buffer starting from this address. This wraparound The cursor address registers may be read pointer locations, the location of the first operation allows portions of the display buff- or written by the CPU or incremented via the character to be displayed on the screen, er to be used for purposes other than stor- 'increment cursor address' command. In in- and the location of a light pen 'hit'. With the age of displayable data and is completely dependent buffer mode, these registers de- exception of the light pen register, the user automatic without any CPU intervention (see fine a buffer memory address for PVTC con- initializes these registers after powering on figure 16a). trolled access in response to 'read/write at the system and changes their values to con- cursor with/without increment' commands, trol the data which is displayed. The sequential row to row addressing can or the first address to be used in executing also be modified under CPU control. If the the 'write from cursor to pOinter' command. Screen Start Registers contents of the screen start register (upper, The screen start registers contain the ad- Display Pointer Address Registers lower, or both) are changed during any char- dress of the first character of the first row acter row (say row 'n'), the starting address These registers define a buffer memory ad- (upper left corner of the active display). At of the next character row (row 'n + I') will dress for PVTC controlled accesses in re- the beginning of the first scan line of the first be the new value of the screen start register sponse to 'read /write at pointer' com- row, this address is transferred to the row and addressing will continue sequentially mands. They also define the last buffer start register (RSR) and into the memory from there. This allows features such as memory address to be written for the 'write address counter (MAC). The counter is then split screen operation, partial scroll, or sta- from cursor to pOinter' command. advanced sequentially at the character rate tus line display to be implemented. The split the number of times programmed into the screen interrupt feature of the PVTC is use- Light Pen Address Registers active characters per row register (IRS), If the light pen input is enabled, these regis- ful in contrOlling this type of operation. Note thus reaching the address of the last char- ters are used to store the current character that in order to obtain the correct screen acter of the row plus one. At the beginning of address upon receipt of a light pen strobe display, the screen start register must be each subsequent scan line of the first row, input. Several sources of delay between the reloaded with the original value prior to the the MAC is reloaded from the RSR and the display of a character upon the screen and end of the vertical retrace. See figure 16b. above sequence is repeated. At the end of the receipt of a light pen hit can be expected the last scan line of the first row, the con- During vertical blanking the address counter to exist in a system environment. These de- tents of the MAC is loaded into the RSR to operation is modified by stopping the auto- lays include address pipelining in the char- serve as the starting memory address for matic load of the contents of the RSR into acter generation Circuits, delays in the video the second character row. This process is the counter, thereby allowing the address generation circuits, and delays in the light repeated for the programmed number of outputs to free-run. This allows dynamic detection circuitry itself. These delays rows per screen. Thus, the data in the dis- memory refresh to occur during the vertical cause the value stored in the light pen regis- play memory is displayed sequentially start- retrace interval. The refresh addressing ter to differ from the actual address of the ing from the address contained in the screen starts at the last address displayed on the character at which the light pen hit actually start register. After the ensuing vertical re- screen and increments by one for each char- was detected. Software must be used to trace interval, the entire process repeats acter clock during the retrace interval. If the correct this condition. again. me7 display buffer last address is encountered, .~._~~~~.~.~.Jarro . .----_.--"--_.----_.----_. - ~~ i~·~~ .~.JBITO" Lo ._____ 0 _ _ • _ _• _ _ _ _ _• COWAND REGISTER (WrtIe only) [ am .-.!!!.... BIT.~~~~ H'OOOO' - 0 H'0001' = 1 .-----.----.-----.-----.- -.- -. H'3FFE' = 18,382 H'3FFF' = 18,383 .....!!!!....2!!!..-.JBlTO _lISa' Note: _ 15,OJ ••• .,. SCREEN START REGISTERS (READ AND WRITE) CURSOR ADDRESS REGISTERS (READ AND WRITE) POINTER ADDRESS REGISTER (WRITE ON..Y) lIGHT PEN ADDRESS REGISTER (READ ONLY) Figure 15. Display Control Register Formats 2·50 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 INTERRUPT I STATUS REGISTERS The interrupt and status registers provide information to the CPU to allow it to interact with the PVTC to effect desired changes to _ DISPLAY BUFFER START implement various display operations. The interrupt register provides information on BOTTOM OF SCREEN . . five possible interrupting conditions, as shown in figure 17. These conditions may be selectively enabled or disabled (masked) 2 from causing interrupts by certain PVTC commands. An interrupt condition which is SCREEN START . . h~~r<""""'''''~ enabled (mask bit equal to one) will cause the INTR output to be asserted and will MONITOR cause the corresponding bit in the interrupt DISPLAY p..-"-''-''-'>....'-''-'>....~ _ DISPLAY BUFFER END register to be set upon OCCurrence of the interrupting condition. An interrupt condition which is disabled (mask bit equal to zero) 16K ' -_ _ _ _ _--' has no effect on either the INTR output or MEMORY the interrupt register. (a) DISPLAY MEMORY WRAPAROUND The status register provides six bits of sta- tus information: the five possible interrupting conditions plus the NOT BUSY bit. For this register, however, the contents are not - DISPLAY BUFFER START effected by the state of the mask bits. - BOTTOM OF SCREEN Descriptions of each interrupt I status regis- ter bit follow. Unless otherwise indicated, a bit, once set, will remain set until reset by the CPU by issuing a 'reset interrupti status bits' command. The bits are also reset by a 'master reset' command and upon power-up. SR[5] - RDFLG This bit is present in the status register only. A zero indicates that the PVTC is currently MONITOR DISPLAY executing the previously issued command. A p..-"-'''-'>-''-'''-''-''"-''-'l - DISPLAY BUFFER END one indicates that the PVTC is ready to ac- cept a new command. 16K ' - - - -_ _---' MEMORY I/SR[4] - VBLANK (b) DISPLAY MEMORY SPLIT SCREEN WITH WRAPAROUND Indicates the beginning of a vertical blanking interval. Is set to a one at the beginning of Figure 16. Display Addressing Operation the first scan line of the vertical front porch. I/SR[3] - Line Zero Is set to a one at the beginning of the first scan line (line 0) of each active character BIT7 BIT6 BIT5 BIT4 BIT3 BIT2 BIT1 BITO row. LINE SPLIT LIGHT I/SR[2] - Spilt Screen I RDFLG VBLANK 0= No ZERO 0= No SCREEN '0 = No READY 0= Busy PEN 0= No This bit is set when a match occurs between Not used 0= Busy the current character row number and the always read as 0 1 = Ready 1 = Yes 1 = Yes 1 = Yes 1 = Ready 1 = Yes value contained in the split screen interrupt register, IR 10[6:0). The equality condition is I NOTE only checked at the beginning of line zero of • Status register only. Always 0 when reading interrupt regia.er. each character row. This bit is reset when either of the screen start registers is loaded Figure 17. Interrupt and Status Register Format by the CPU. I/SR[1] - Ready command should be invoked until the prior register have been updated. This bit will be Certain PVTC commands affect the display command is complated. reset when either of the light pen registers is and may require the PVTC to wait for a read. blanking interval before enacting the com· I/SR[O] - Light Pen mand. This bit is set to one when execution A one indicates that a light pen hit has oc· of the command has been completed. No curred and that the contents of the light pen Signetics 2·51 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 COMMANDS Table 3 PVTC COMMAND FORMATS The PVTC commands are divided into two D7 D6 D5 D4 D3 D2 D1 DO COMMAND classes: the instantaneous commands, which are executed immediately after they Instantaneous Commands: are invoked, and the delayed commands 0 a 0 0 0 a a 0 Master reset which may need to wait for a blanking inter- 0 0 0 1 V V V V loa'd IR pointer with value V (V = 0 to 10) val prior to their execution_ Command for- 0 0 1 d d d 1 0' Disable light pen mats are shown in table 3_ The commands 12 0 a 1 d d d 1 Enable light pen are asserted by performing a write oper- 0 a 1 d 1 N d 0' Display off. Float DADO bus if N = 1 ation to the command register with the ap- 12 0 a 1 d 1 N d Display on: Next field (N = 1) or scan line propriate bit pattern as the data byte. (N = a) Instantaneous Commands 0 0 1 1 d d d 0' Cursor off The instantaneous commands are executed 0 0 1 1 d d d 12 Cursor on immediately after the trailing edge of the WR 0 1 0 N N N N N Reset interrupti status: Bit reset where N = 1 pulse during which the command is issued. 1 0 0 N N N N N Disable interrupt: Disable where N = 1 These commands do not affect the state of 0 1 1 N N N N N Enable interrupt: Enables Interrupts snd resets the RDFLG or READY interrupti status bits. V L S R L the corresponding interrupt/status bits where However, a command should not be invoked B Z S 0 P N=l if the RDFLG bit is low. Delayed Commands: Hex Master Reset 1 a 1 0 0 1 a 0 A4 Read at pointer address This command initializes the PVTC and may 1 a 1 0 0 a 1 0 A2 Write at pointer address be invoked at any time to return the PVTC to 1 a 1 0 1 a a 1 A9 Increment cursor address its initial state. Upon power-up, two 1 a 1 0 1 1 0 0 AC Read at cursor address successive master reset commands must 1 0 1 0 1 0 1 0 AA Write at cursor address be applied to release the PVTC's internal 1 0 1 0 1 1 a 1 AD Read at cursor address and increment power on circuits. In transparent and shared address buffer modes, the CNTRll input must be 1 0 1 0 1 0 1 1 AB Write at cursor address and increment high when the command is issued. The com- address mand causes the following: 1 0 1 1 1 a 1 1 BB Writa from cursor address to pOinter address 1. VSYNC and HSYNC are driven low for the NOTES duration of RESET and BLANK goes high. 1. Any combination of these three commands is valid. BLANK remains high until a 'display on' 2. Any combination of these three commands is valid. 3. d = don't care. command is received. 2. The interrupt and status bits and masks be optionally placed in the three-stals con- Disable Interrupts are set to zero, except for the RDFLG flag dition by setting bit 2 to a '1' when invoking Sets the interrupt mask to zeros for the des- which is set to a one. the command. ignated conditions, thus disabling these 3. The transparent mode, cursoroff, display off, and light pen di~able states are set. conditions from asserting the INTR output. 4. The initialization register pointer is set to Display On Bit position correspondence is as above. address IRa. Restores normal blanking operation either at the beginning of the next field (bit 2 = 1) Enable Interrupts Load IR Address or at the beginning of the next scan line (bit Resets the selected interrupt and status This command is used to preset the. 2 = 0). Also returns the DADDO-DADD13 register bits and writes the associated inter- initialization register pointer with the value drivers to their active state. rupt mask bits to a one. This enables the 'V' defined by 03-00. Allowable values are corresponding conditions to assert the INTR o to 10. Cursor Off output. Bit position correspondence is as Disables cursor operation. Cursor output is above. Enable Light Pen placed in the low state. After invoking this command, receipt of a Delayed Commands light pen strobe input will cause the light pen This group of commands is utilized for the Cursor On independent buller mode 01 operation, al- register to be loaded with the current buffer Enables normal cursor operation. memory address and the corresponding in- though the 'increment cursor' command can terrupt lind status flag to be set. Once losd- also be used in other modes. With the ex- Reset Interrupt/Status Bits ed, further loads are inhibited until either ception 01 the 'write Irom cursor to pointer' This command resets the designated bits in one of the light pen registers are read or a and 'increment cursor' commands, all the the interrupt and status registers. The bit reset function is performed. commands of this type will be executed im- positions correspond to the bit positions in mediately or will be delayed depending on Disable Light Pen the registers: when the command is invoked. II invoked Light pen hits will not be recognized. Bit 0 - Light pen during the active screen time, the command Bit 1 - Ready is executed at the next horizontal blanking Display Off Bit 2 - Split screen interval. II invoked during a vertical retrace Asserts the BLANK output. The DADDO thru Bit 3 - Line zero interval or a 'display off' state, the command DADO 13 display address bus outputs may Bit 4 - Vertical blank is executed immediately. 2·52 Signefics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 The 'increment cursor' and 'write from RDFLG status flag should be used for Read/Write at Cursor and cursor to pointer' commands are executed handshaking control between the PVTe and Increment immediately after they are issued. 'Incre- CPU when using these commands. Transfers data between the display buffer ment cursor' requires approximately three and the bus interface latch using the ad- eeLK periods for completion. 'Write from Read/Write at Pointer dress contained in the cursor register and cursor to pointer' asserts the BLANK output Transfers data between the display buffer then adds one (modulo 16K) to the cursor during its execution. BLANK will not be re- leased until the beginning of the vertical blanking interval following the last write op- and the bus interface latch using the ad- dress contained in the pointer register. address register. 2 Write from Cursor to Pointer eration. A second 'write from cursor to point- Read/Write at Cursor Writes the data contained in the bus inter- er' command should not be issued until this Transfers data between the display buffer face latch into the block of display memory time. and the bus interface latch using the ad- designated by the the cursor address and In all cases, the PVTe will assert the dress contained in the cursor register. pointer address registers, inclusive. After READY IRDFLG status to signify completion completion of the command, the pointer ad- of the command. No other commands should Increment Cursor dress will be unchanged, but the cursor reg- be given until the current command is com- Adds one (modulo 16K) to the cursor ad- ister contents will be equal to the pointer pleted. Therefore, the READY interrupt or dress register. address. ABSOLUTE MAXIMUM RATINGS1 PARAMETER RATING UNIT Operating ambient temperature' o to +70 ·e Storage temperature -65 to +150 ·e All voltages with respect to ground' -0.5 to +6.0 V DC ELECTRICAL CHARACTERISTICS TA=o·e to + 70·C, Vcc =5.0V ±5"104,5,6 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max V,L Input low voltage 0.8 V V,H Input high voltage 2.0 V VOL Output low voltage 'OL=2.4mA 0.4 V VOH Output high voltage (except INTR output) 'OH= -200!,A 2.4 V "L Input leakage current V,N = Oto Vee -10 10 !'A 'LL Data bus 3-state leakage current Vo = Oto Vee -10 10 p.A 100 INTR open drain output leakage current Vo = Oto Vee 10 p.A ICC Power supply current 160 mA NOTES See next page. Signetics 2·53 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 AC ELECTRICAL CHARACTERISTICS T A= O'C to + 70'C, Vcc = 5.0V ± 5% 4,5,6,7,8 LIMITS PARAMETER TEST CONDITIONS 2.7MHz 4.0MHz UNIT Min Max Min Max Bus Timing (Fig. 18)9 tAS AO·A2 setup time to WR, RD low 30 30 ns tAH AO·A2 hold time from ~, 1'il5 high 0 0 ns tcs CE setup time to WR, RD low 0 0 ns tCH CEhold time from WR, RD high 0 0 ns tRW WR, RD pulse width 250 250 ns too Data valid after AD low 200 200 ns tOF Data bus floating after RD high 100 100 ns tos Data setup time to WR high 150 150 ns tOH Data hold time from WR high 10 5 ns tcc High time from CE to CE1D Consecutive commands 600 600 ns Other accesses 300 300 ns CCLK Timing (Fig. 19) tccp CCLK period 370 250 ns tCCH CCLK high time 125 100 ns tCCl CCLK low time 125 100 ns tcco Output delay from CCLK edge DADDO·13, MBC 40 175 40 150 ns BLANK, HSYNC, VSYNC/CSYNC, CURSOR,BEXT, BREa, BACK, BCE, WDB, RDBll 40 225 40 200 ns Other Timings (Fig. 20) t ROl READY/RDFLG low from WR high 9 Iccp Iccp +30 +30 ns tBAK BACK high from PBREQ low 225 200 ns tBXT BEXT high from PBREQ high 225 200 ns t lPs Light pen strobe setup time 10 CCLK low 120 120 ns t lPH Light pen strobe hold lime from CCLK low -10 -10 ns tlRl INTR low from CCLK low 225 200 ns IIRH INTR high from WR, RD high9 600 600 ns NOTES 6. Typical values are at + 25°C, typical supply voltages and typical processing 1. Stresses above those listed under Absolute Maximum Ratings may cause perma- parameters. nent damage to the device. This Is a stress rating only and functional operation of 7. For testing, all input signals swing between O.4V and 2.4V with a transition time of the device at these or at any other condition above those In the operation section 20ns maximum. All time measurements are referenced at Input voltages of 0.8V of this speCification is not Implied. and 2.0V and output voltages of 0.8V and 2.0V as appropriate. 2. For operating at elevated temperatures, the device must be derated based on 8. Test condition for outputs: C L = 150pF. +150°C maximum junction temperature. 9. Timing is illustrated and specified referenced to WR and AD inputs. Device may 3. This product includes circuitry specifically dslgned for the protection of its inter- also be operated with CE as the 'strobing' input. In this case, all timing specifica· nal devices from damaging effects of excessive static charge. Nonetheless, it is tions apply referenced to falling and rising edges of CE". suggested that conventional precautions be taken to avoid applying voltages 10. This specification requires that the CE input be negated (high) between read greater than the rated maxima. and/or write cycles. 4. Parameters are valid over specified temperature range. 11. OCE, Wl'5'B, and ROB delays track each other within 10nsec. Also, these output 5. All voltage measurements are referenced to ground (GND). delays wlll tend to follow direction (minImax) of DADDO·13 delays. 2·54 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 AO-A2 ~_~ _ _ _ _ _ _ __ 2 1 - - - IRW---l r - - - - - - - - 00-07 FLOAT FLOAT (REAO) rlOS 00-07 _ _ _ _ _ _ _ _ _ (WRITE) .J\A /IJ VAllO Figure 18. Bus Timing NOTES 1. DADDO·DADDI3. BLANK, HSYNC, CSYNC/VSYNC, CURSOR, iiEXT, BREa, iiCE, e OUTPUTS MBC, BACK (NOTE 1) _ _ _ _ _ _ _.1 '---+_____ 2. BCE change. state on both CCLK edgea-(aes Figures 3 and 4). _ ICCO _ ---.QU!!~!!.TL WOB. ROB, BCE Figure 19. CCLK Timing Signefics 2-55 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 - ... _~r FIRST HSYNC HaYNC OF YBLANK - STATUS BIT BLAN< DAIID3- """3 LlNEZEFIOAND SPUT SCREEN STATUS BITS LPS 1T~ r-- lJGHT PEN STATUS BIT - """3 ......ACTER ADDRESSn Figure 20. Other Timings 2·56 SigneHcs MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SCN2672 ~ WiiFORA DELAYED COMMAND READY OR RDFLG STATUS BITS ,"---- 2 PBREa \ 2~~ -..J TBAKr- /,..------~22 I TBXT ~ ________- J rr- ________________ Bffi ~J WiiORiili~ r-- WHICH RESETS INTERRUPT '-------.J I~ TIRH iNTii /~----- Figure 21. Other Timings EVEN FIELD LAST DISPLAYED SCAN OF PREVIOUS FIELD 1 \ ~ n VERTICAL FRONT PORCH -+ VERTICAL SYNC PULSE +- VERTICAL BACK PORCH---i FIRST DISPLAYED SCAN OF EVEN FIELD / hL-IL- / HORIZONTAL SYNC [l./"'PULSES CSYNC L--...J ~ ~ BLANK U-.-------------- VERTICAL BLANKING INTERVAL ----------I~~LfL ~1 -----I ~~ LAST DISPLAYED SCAN OF EVEN FIE\D CSYNC~ II-- VERTICAL FRONT PORCH-\'.! H -+ VERTICAL SYNC PULSE+- VERTICAL BACK PORCH-\'.! H ---j \'.! H I-- ~ FIRST DISPLAYED SCAN ~ I OF ODD FIELD \'.! HORIZONTAL SYNC ---ll- I I H PERIOD ~'01.J=" "~,~.~..".''''~,, ~ NOTES HORIZONTAL BLANKING INTERVAL 1. In non-interlaced operation the even field is repeated continuously. and the odd field is not. 2. In interlaced operation the even field alternetea with the odd field. Figure 22. Composite Sync Timing Signetics 2-57 MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VAC) SCB2673 DESCRIPTION FEATURES PIN CONFIGURATION The Signetics 2673A and 2673B Video At- • 25MHz video dot rate tributes Controllers (VAC) are bipolar LSI • Three level current driven (75 ohms) devices designed for CRT terminals and video output display systems that employ raster scan • Three level encoded TTL video outputs techniques_ Each contains a high speed • CharacterIfleld attribute logic video shift register, field and character Reverae video attributes logic, attribute latch, cursor for- Character blank mat logic and half dot shift control. Character blink The VAC provides control of visual attri- Underline butes on a field or character by character. Highlight Internal logic preserves field attribute data Light pen strlke-thru or graphics from character row to character row so control that an attribute byte is not required at the • Field attributes extend from row to row beginning of each row. The 2673B provides • Light or dark field for reverse video, blank (non-display), • Cursor reverse video logic blink, underline and highlight attributes • Up to 10 dote per character and a graphics mode attribute to work in • CompOSite blanking for light field conjunction with the Signetics 2670 Dis- retrace play Character and Graphics Generator • Optional field graphics control output (DCGG). The 2673A substitutes a light pen • High speed bipolar design (strike-thru) attribute for the graphics • 40 pin dual In-line package attribute. • TIL compatible • Compatible with SlgneUcs 2672 PVTC The horizontal dot frequency is the basic and 2670 DCGG timing input to the VAC. Internally, this clock is divided down to provide a charac- APPLICATIONS ter clock output for system synchroniza- • CRT terminals tion. Up to ten bits of video dot data are • Word processing s,stems parallel loaded into the video shift register • Small business computers TOP VIEW on each character boundary. The video data is shifted out on three outputs at the ORDERING CODE dot frequency. On the VIDEO output, the Vcc=5V ::1:5%, TA =O·Ct070·C data is presented as a three level signal representing low, medium and high inten- PACKAGES GRAPHICS ATTRIBUTE LIGHT PEN ATTRIBUTE sities. The three intensities are also en- 25MHz 18MHz 25MHz 18MHz coded on two TIL compatible video out- puts. Light or dark screen background can Ceramic DIP SCB2673BC5140 SCB2673BC8140 SCB2673AC5140 SCB2673AC8140 be selected. Plastic DIP SCB2673BC5N40 SCB2673BC8N40 SCB2673AC5N40 SCB2673ACBN40 BLOCK DIAGRAM VIDEO ATTRIBUTES C()NTROLLER ceo -----..r~CH;;.A;:;R~A~C;TE~R;__\ CC1:::::::::::::::::::::::~~C~LOEc~K~~~~----------.CCLK CC2 COUNTER DCLK--------~---+_--_, 10 VIDEO TTLVID1 HDOT~~n TTLVID2 CURSOR ARVID ABLANK 1+----- BKGND ABLINK ---_~ ~-----CBLANK AHILT---_~ AUL ----~ ATTRIBUTE AND ALTPEN/AGM AFLG ::::::::::::::=:1 CURSOR CONTROL LOGIC AND 1 - - - - -.....- - - - - - - BLANK AMODE PIPELINE t-------------- RESET ACD Vcc BLINK vBB UL GND LL----.J LPUGMD -----o-L____---1 2-58 Signetics MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VAC) SCB2673 PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION DCLK 32 I Dot Clock: Dot frequency input. Video output shift rate. CCLK 36 0 Character Clock: A submultiple of DCLK. The frequency ranges from one sixth to one twelfth of DCLK, as determined by the state of the CCO-CC2 inputs. CC2-CCO 33-35 I Character Clock Control: The logic state on these three static inputs determine the internal divide factor for the CCLK output rate. Character clock rates of 6 thru 12 dots per character 2 may be specified. 00-09 37-39, 2-8 I Dot Data Input: These are parallel inputs corresponding to the character I graphic symbol dot data for a given scan line. These inputs are strobed into the video shift register on the falling edge of each character clock. HOOT 27 I Half Dot Shift: When this input is high, the serial video output is delayed by one half dot time. This input is latched on the falling edge of each character clock. CURSOR 14 I Cursor Timing: This input provides the timing for the cursor video. When high, effectively reverses the intensities of the video and attributes. Cursor position, shape, and blink rate are controlled by this input. BKGND 10 I Background Intensity: Specifies light or dark video during BLANK and character fields. Affects the intensities of all attributes. BLANK 15 I Screen Blank: When high, this input forces the video outputs to the level specified by the BKGND input (either high or low intensity). Not effective when CBLANK is high. CBLANK 31 I Composite Blank: Used with the TTL video outputs only. When high, this input forces the video outputs to a low intensity state for retrace blanking. When BKGND input is low, or when using video outputs, this input may be tied low. ARVID 22 I Reverse Video Attribute: The intensity of the associated character or field video is reversed. All other attributes are effectively reversed. AHILT 23 I Highlight Attribute: All dot video (including underline) of the associated character or field is highlighted with respect to the BKGND input and the reverse video attribute. ABLANK 26 I Blank Attribute: Generates a blank space in the associated character or field. The blank space intensity is determined by the BKGND input, the reverse video attribute, and the CURSOR input. ABLINK 25 I Blink Attribute: The associated character or field video is driven to the intensity determined by BKGND and the reverse video attribute when the BLINK input is high. AUL 24 I Underline Attribute: Specifies a line to be displayed on the character or field. The line is specified by the UL input. All other attributes apply to the underline video. ALTPEN/AGM 21 I Light Pen Attribute (2673A): Specifies a highlighted line to be displayed on the character or field. The line is specified by the LPL input. I Attribute Graphics Mode (2673B): This input is latched and synchronized to provide a field GMD output for the 2670 DCGG. AMODE 12 I Attribute Mode: Specifies character (AMODE = 0) or field (AMODE = 1) attributes mode. AFLG 13 I Attributes Flag: The VAC samples and latches the attributes inputs when this input is high. " field attributes are specified (AMODE = I), the attributes are double buffered on a row basis. Thus, each scan line of every character row will start with the attributes that were valid at the end of the previous row. ACD 11 I Attribute Control Display: In field attributes mode (AM ODE = I), if ACD = 0, the first character in each new attribute field (the attribute control character) will be suppressed and only the attributes will be displayed. " ACD = I, the first character and the attributes are displayed. This input has no effect in character mode (AMODE = 0). Signetics 2·59 MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VAC) SCB2673 PIN DESIGNATION (continued) MNEMONIC PIN NO. TYPE NAME AND FUNCTION BLINK 17 I Blink: This input is sampled on the falling edge of BLANK to provide the blink rate for the character blink attribute. It should be a submultiple of the frame rate. UL 16 I Underline: Indicates the scan line(s) for the underline attribute. Latched on the falling edge of BLANK. LPlIGMD 19 I Light Pen Line (2673A): Indicates the scan line(s) for the light pen strike-thru attribute. Latched on the falling edge of BLANK. 0 Graphics Mode (2673): This output provides a synchronized, latched, field graphics mode corresponding to the AGM input. This output can be used to control the GM input on the 2670 DCGG. LL 18 I Last Line: Indicates the last scan line of each character row. Used internally to extend field attributes across row boundaries. Latched on the falling edge of BLANK. This input has no effect in character mode (AMODE = 0). VIDEO 28 0 Video: A three level serial video output which corresponds to the composite dot pattern of characters, attributes and cursor. TTLVIDI 30 a TTL Video 1: This output corresponds to the serial, non-highlighted video dot pattern. TTLVID2 29 a TTL Vidao 2: This output corresponds to the highlighted serial video dot pattern. Should be used with TTLVID 1 to decode a composite video of three intensities. RESET 9 I Manual Reset: This active high input initializes the internal logic and resets the attribute latches. VCC 40 I Power Supply: +5 Volts ± 5% VBB 1 I BlaB Supply: See figure 13. GND 20 I Ground: OV reference FUNCTIONAL DESCRIPTION CC[j( The VAC consists of four major sections (see block diagram). The high speed dot CC2 CCI ceo DOTS/CHARACTER DUTY CYCLE clock input is divided internally to provide 0 0 0 6 3/3 a character clock for system timing. The 0 0 1 6 3/3 parallel dot data is loaded into the video 0 1 0 7 4/3 shift register on each character boundary. 0 1 1 8 4/4 and shifted into the video logic block at 1 0 0 9 5/4 the dot rate. The six attribute inputs are 1 0 1 10 5/5 latched internally and combined with the 1 1 0 11 6/5 serial dot data to provide a three level 1 1 1 12 6/6 video source for the monitor. A separate BLANK input defines the ac· For the latter case, raster retrace video always shifted out before DO. For 12 dots/ tive screen area. When BLANK= 0, the suppression is accomplished by raising character, a 0 is also shifted out after 09. video levels are derived internally by the the BKGND input during horizontal and The serial dot data is shifted into the video combinations of dot data, attributes, cur- vertical retrace intervals. For black back- logic where it is combined with the cursor sor, and the state of the BKGND input. ground, tie BKGND high. Tie CBLANK in- and attributes to encode three levels of Either black or white background can be put low for both cases. video. selected. Symbols (dot data) are normally gray and can be highlighted to white or Character Clock Counter Attribute and Cursor Control black as shown In figure 1. Note that the The character clock counter divides the The VAC visual attributes capabilities in- VIDEO output is inverted as referenced to frequency on the DCLK Input to generate clude: reverse video, character blank, the TTL video outputs. the character clock (CCLK). The divide fac- blink, underline, highlight, and light pen During the inactive screen area (BLANK= tor is specified by the clock control inputs strike-thru. The six attributes and the I), the video level produced by the TTL out- (CCO-CC2) as shown in the table above. three attribute control inputs (AMODE, puts is either white (BKGND= 1) or black AFLG, and ACD) are clocked into the VAC (BKGND=O). A separate composite blank Video Shift Register on the falling edge of CCLK. If AFLG is (CBLANK) input is provided to suppress On each character boundary, the parallel high, the attributes are latched internally raster retrace video when white back- data (DO-D9) is loaded into the video shift and are effective for either one character ground is specified. During the inactive register. The data is shifted out least time (AM ODE = 0) or until another set of screen area (BLANK= 1), the video level significant bit first (DO) by the DCLK. If attributes is latched (AMODE= 1). The at- produced by the VIDEO output is either 11 or 12 dots/character are specified tributes set is double buffered on a row by black (BKGND = 1) or white (BKGND = 0). (CC2-CCO = 110 or 111), a 0 (blank dot) is row basis internally. Using this technique, 2·60 Signetics MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VAC) SCB2673 DCLK 2 ~ u=u--t: ~ CCLK : I I I TTLVID1 TTLVID2 REVERSE, NORMAL HIGHLIGHTED REVERSE HIGHLIGHTED GRAY ON BLACK WHITE ON BLACK GRAY ON WHITE BLACK ON WHITE NOTE 1. W= White G = Gray B = Black Figure 1_ Encoded Video Outputs field attributes can extend across charac- TTLVID2 TTLVID1 INTENSITY ter row boundaries thereby eliminating the necessity of starting each row with an 0 0 Black (or CBLANI<) attribute set. 0 1 Gray (on black 8urround) 1 0 Gray (on white surround) When field attribute mode is selected, 1 1 White (AMOOE= 1), the VAC will accommodate two attribute storage configurations. In NOTE The TTLVID1 output can be u.ed Independently to genera.e 8 two level non-highlighted video. one configuration, the attribute control data is stored in the refresh RAM, taking the place of the first character code in the Video Logic Symbol video is generated from the dot field to be affected. For this mode, the The serial dot data and the pipelined cur- data inputs 00-09. ACO input is tied low and blank characters sor and attributes are combined to gener- Underline video Is enabled by the AUL will be displayed in the screen positions ate the three level current source on the attribute and is generated when the UL occupied by the attribute data (see figure VIDEO output. The three levels (white, timing input Is active. Underline and sym- 10). In the second configuration, (ACO = 1), gray, and black) are also encoded on the bol video are always the same Intensity. the character codes and attribute data are two TTL compatible outputs TTLVIDI and presented to the VAC in parallel. In this TTLVID2. The three levels are encoded as Strike-thru video is enabled by the ALTPEN mode, dot data is displayed at each shown above. attribute and is generated when the LPL character position (see figure 11). timing input is active. This video is always The video is normally shifted out on the highlighted and takes precedence over the The CURSOR and the attribute Input sig- leading edge of the OCLK. When the symbol and underline video. This feature nals are pipelined internally to allow for HOOT input is asserted, the correspond- applies to the 2673A only. system propagations (one CCLK for re- ing dot data is delayed by one-half OCLK. fresh RAM, one CCLK for dot generator). This half dot shifting, when used on Surround video is the absence of symbol, The attribute timing signals BLINK, UL, selected lines of character video, can be underline and strlke-thru video or the LPL and LL are clocked into the VAC at the used to effect eye-pleasing character presence of the non-display attributes beginning of each scan line by the falling rounding as shown In figure 2. (ABLANK or ABLINK • BLINK). edge of the BLANK input. Thus, these sig- The relative intensities of the four video nals must be in their proper state at the Attribute Hierarchy components are determined by the re- falling edge of BLANK preceding the scan The video of each character block con- maining attributes (AHILT, ABLANK, line at which they are to be active (see sists of four components as shown in ABLlNK, ARVID) and the BKGNO and figure 4). figure 3. CURSOR inputs as illustrated in table 1. Signetics 2·61 MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VAC) SCB2673 I I I I I I 1 Jill 1 SYMBOL VIDEO ---+<"~ 0000 H 0000 "'\.'-"'<'1--- SURROUND VIDEO 0 0 0 0 0 0 00 H 0 0 0 0 0 0 0 0 0 LlClHTPEN 0 0 0 H 0 0 0 STRILE THRU VIDEO 000000 0 000 (2873A only) 0 H 0 000 0000 UNDERLINE VIDEO H =LINES SHIFTED Figure 2. "AT" Symbol with and without Half Dot Shifting Figure 3. Video Components of Character Block Table 1 ATTRIBUTES HIERARCHY ATTRIBUTES AND CONTROL INPUTS RELATIVE VIDEO INTENSITIES d = don't care W = White, B = Black, G = Gray STRIKE SYMBOL OR NON- THRU UNDERLINE SURROUND BKGND5 REVERSE1 DISPLAy2 AHILT VIDE03 VIDE03,4 VIDE03 0 0 0 0 W G B 0 0 0 1 W W B 0 0 1 d B B B 0 1 0 0 B G W 0 1 0 1 B B W 0 1 1 d W W W 1 0 0 0 B G W 1 0 0 1 B B W 1 0 1 d W W W 1 1 0 0 W G B 1 1 0 1 W W B 1 1 1 d B B B NOTES 1. Reverse. ARVID • ~ + AI!iVm • CURSOR 2. Non·dlsplay = ABLANK + ABLINK • BLINK 3. See figure 3 4. Symbol and underline video are always the same intensity. 5. Reverse aenS8 for VIDEO output. ABSOLUTE MAXIMUM RATINGS1 PARAMETER RATING UNIT Operating ambient temperature2 o to +70 ·C Storage temperature -86 to +150 ·C All voltage. with respect to ground -0.6 to +8.0 V NOTES 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This Is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the operation section of this specification Is not implied. 2. For operating at elevated temperatures, the device must be derated based on + 150°C maximum junction temperature. 2-82 Signetics MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VAC) SCB2673 DC ELECTRICAL CHARACTERISTICS TA=O·Cto +70·C, Vcc=5V ±5%, VBB=See figure 133 ,4,5 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max VIL Input low voltage 0.8 V Input high voltage 2.0 V VIH VOL Output low voltage (except VIDEO) IOL=4mA 0.4 V 2 VOH Output high voltage IOH= - 4OOI'A 2.4 V (except VIDEO) VB VIDEO black level RL = 150 ohms to GND 0 V VG VIDEO gray level RL = 150 ohms to GND 0.45 V Vw VIDEO white level RL = 150 ohms to GND O.SO V IlL Input low current VIN = 0.4V -4001 I'A -800 10 IIH Input high current VIN = 2.4V 20/40 '0 I'A ICC V CC supply current VIN = OV, VCC = max 80 rnA IBB VBB supply current VBB = max 120 rnA AC ELECTRICAL CHARACTERISTICS TA=O·C to + 70·C, Vcc=5V ±5%, VBB=See figure 133,4,5 LIMITS 25MHz 18MHz PARAMETER TEST CONDITIONS UNIT VERSION VERSION Min Max Min Max Dot clock 6 fo frequency 25 18 MHz tOH high 15 22 ns tOL low 15 22 ns Setup times to CCLK7 t BS BLANK 50 50 ns tsc BLINK, UL, LPL, LL (ref to BLANK) 20 20 ns tSA Attributes 45 55 ns tso Dot data DO·DS 70 70 ns tSK CURSOR 50 50 ns t FS AFLG 50 65 ns tSH HDOT 45 55 ns Hold times from ~7 tHC BLINK, UL, LPL, LL (ref to BLANK) 20 20 ns tHA Attributes 20 20 ns tHO Dot data DO·DS 30 30 ns tHK CURSOR 20 20 ns tFH AFLG 30 30 ns tHH HOOT 20 20 ns Setup times to DCLK8 tSG BKGND 15 15 ns tSB CBLANK 15 15 ns Hold times from DCLK B t HG BKGND 15 15 ns tHB CBLANK 15 15 ns Delay times 9 CL = 150pF tOGM GMD from DCLK 65 65 ns CCLK from DCLK 65 65 ns tOC tov '1 TILVID1 and TILVID2 from DCLK 45 75 45 80 ns tov VIDEO from DCLK 240 240 ns NOTES 3. Parameters are valid over operating temperature range unless otherwise specified. 6. See figure 9. 4. All voltage measurements are referenced to ground (VSS)' All input signals swing 7. See figures 4, 5, 6, and 9. between O.4V and 2.4V. All time measurements are referenced at Input voltages of B. See figure B. a.8V, 2.0V and at output voltages of a.8V, 2.0V 8S appropriate. 9. See figures 6 and 7. 5. Typical values are at + 25°C, typical supply voltages and typical processing parameters. 10. For OCLK input. 11. CL less than 150pF minimum could be faster. Signetics 2·63 MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VAC) SCB2673 BLANK --.,,=~ e.,.....------------- tBSI--! p-------t---t-- - - - J BLlNK,UL LPL,LL _....J.~_ _ ......;n._-:- -----~ ATTRIBUTES1 _...J1::..=;;:.:.......".~==r'___ ______ ~ -'"'\J""'"':-::--'-":-:;::::-"""I~r- tHD - ~ LAST-l LAST '-_~...n~_~7'-_ _ CHAR ~ I BKGND4 NOTES 1. Attribut•• lnclud.: ABLlNK, ABLANK, ARVID, AUL, AHlLT, and ALTPEN. 2. One CCO<' delay 'or dot data (obtained from delay through character generator). 3. See flgur. 7 for datall timing of VIDEO, TTLVID 1, TTLVID2. 4. Non-actlYe 8can time. VIDEO revert. to polarity 'elected by the BKGND Input. Figure 4. VAC Pipeline Timing 1-__~\tHK CURSOR _ _ _ _J ---====== VIDEO I" CHARACTER WITH CURSOR ~ Figure 5. Cursor Pipeline Timing 2·64 Signetics MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VA C) SCB2673 j-tFS-j I -I j t F H AFLG f At \ I A2 \ I (AMO~~:~ ---'I ~-t-.------II ~. 2 I GM01 _____________~I--------------------------, (AMOOE=1). ' - -_____________________ NOTE 1. GMD output in 26738 version only. See figure 7 for detail timing. Figure 6. Character (AMODE =0), Field (AMODE =1), and GMD Attribute Timing OCLK _~I toc CCLK 'OH VOL ~ _________________________________ _ I _tOY VIDEO TTLVI01,2 I CHARACTER N - 1 CHARACTER N GM0 1 -'l '----------'1."14-____________ _ tOGM (AMOOE=1) NOTE 1. GMD output in 26738 version only. Figure 7. Video and GMD Pipeline Timing Signetics 2·65 MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VAC) SCB2673 OCLK JLJLJl ISG~,-_r- r'HGI ~/ I nl IHB~ BKGNO _____ ~ISB ~ u~J 22 t VIDEO GRAY \ BLACK / GRAY ~, BLACK I Figure 8. BKGND and RBLANK Timing During Inactive Scan Time (Blank = 1) OCLK CCLK ~~~1J;.______________ -= ==IL.______ ISH I. '1' 'IIHH HDOT~ VIDEO LAST PIXEL CHAR N FIRST PIXEL CHAR N+1 -2 NOTE 1. Half dot shift feature 18MHz maximum. Figure 9. Half Dot Shift Timing 2·66 Signetics MICROPROCESSOR DIVISION JANUARY 1983 VIDEO ATTRIBUTES CONTROLLER (VAC) SCB2673 To CRT CONTROLLER 61~ CCLK BLANK DCLK 0 BLINK OE~-----------------------J '"~"'-----I74LS244 \r______________-=Dc;::IS::...PL:::A;.:.Y.;:D::.;AT.:..:A::..:B::.:U:.::S________________ v SELECT ~ DECODE Figure 13. Row Table Mode Configurallon (non·Row Buffer Modes) IR3(4:0] - Vertical Back Porch IR5(7:0] - Active Characters Per rate (IR7[4]). The blink duty cycle for the This field determines the number of scan cursor is 50%. Row line periods between the falling edges of This field determines the number of char· the VSYNC and BLANK outputs.. acters to be displayed on each row of the IR7(4) - Cursor Blink Rate The cursor blink rate can be specified at CRT screen. The sum of this value, the 1132 or 1164 of the vertical scan frequency. horizontal front porch, the horizontal sync IR4(7] - Character Blink Rate width, and the horizontal back porch is the Blink is effective only if blink is enabled by Specifies the frequency for the character IR7[5]. horizontal scan period in CCLKs. blink attribute timing. The blink rate can be specified as 1164 or 11128 of the vertical IR6(7:4], IR6(3:0] - First and IR7(3:0] - Underline Position field rate. The timing signal has a duty cy· This field defines which scan line of the cle of 50% and is multiplexed onto the Last Scan Line of Cursor character row will be used for the under· DADD111BLlNK output at the falling edge These two fields specify the height and line attribute by the 2675 CMAC. The tim· of each BLANK. position of the cursor on the character ing signal is multiplexed onto the block. The 'first' line is the topmost I.ine DADD10lUL output during the falling edge when scanning from the top to the bottom of BLANK. of the screen. IR4(6:0] - Character Rows Per IR7(7:6] - Vertical Sync Pulse IR9(3:0], IR8(7:0] - Display Screen This field defines the number of character Width Buffer First Address rows to be displayed. This value multiplied This field specifies the width of the IR9(7:4] - Display Buffer Last by the scan lines per character row, plus VSYNC pulse in scan line periods. Address the vertical front porch, the vertical back These two fields define the area within the porch val ues, and the vertical sync pu Ise IR7(5] - Cursor Blink Enable buffer memory where the display data will width is the vertical scan period in scan This bit controls whether or not the cursor reside. When the data at the 'display buf· lines. output pin will be blinked at the selected fer last address' is displayed, the AVDC 2·82 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'm"..""··,., 2 CCLK lI1JlIlJlflJ1Il 1JUUUl I I BLANK ....._..;;;LA.;;S.;.T.;;LI.;;N.;;E.;;O;..F.;;RO;;.W;;...._......I I FIRST LINE OF ROW III _ L HSYNCJl n ~-""';;'==;';;";;';"';=;""-"I ~ r---E-C-+2-H-S-W-C-CL-K-S-1~--------~ L __~________________~III_______ ROW BUFFER BREQ 1.....----1----+----------1: MODE MBC ----------------------~ DADD LAST LINE ADDRESSES FIRST LINE ADDRESSES CURSOR DADD III" I '" I 13-STATE FIRST LINE ADDRESSES I I I '" I I 3-STATE TRANSPARENT BREQ I I I BUS REQUEST I iI I NO FETCH BUS BUFFER MODE BACK II DURING FETCH CYCLE I~ REQUEST I I (CURSOR OR POINTER ADDRESSES FOR DELAYED COMMANDS) DADD FIRSTLINEADDRESSES INDEPENDENT BUFFER MODE WDB u RDB u BCE~_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ .1 = MULTIPLEXED CONTROL SIGNALS EC = EQUALIZING CONSTANT HSW = HORIZONTAL SYNC WIDTH Figure 14. Row Table Mode Timing Signetics 2-83 MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'am""JIeI••" Blr7 BiTe , BIT5 , BlT4 , BIT7 • BIT6 • BITS • BIT4 • BIT3 • BIT2 • Bin. BllO B~TU~FE~~ BIT3 BIT2 DOUBLE HTIWO SCAN LINES PER CHARACTER ROW NON-INTERLACED SYNC - - - """"iiiSPLAvOUFFEO FlOST AOOOESS ,s.rs- --- J INTERLACED SELECT SELECT HOOO' - 0 0000 :: 1 LINE 0000 - 2 liNES H'OOl = 1 ()()()1 '" 2 LINES 0001", 4 LINES [ • NOTE: MSB'S ARE IN O=OFF 0010 = 3 liNES 0010=6 LINES 0= YSYNC 00 = INDEPENDENT IR8 • IR9{3:o1 H'FFE = 4,094 .- - -.-----.-----. '00 = CSVNC 01 = TRANSPARENT 1 =ON '1'0 = 15 L.INES 1'1' = t6llNES 1110=30 LINES 1111 = UNDEFINED 1 10 = SHARED 11 = ROW .-----.-----. H'FFF' == 4,095 ----- BIT7 INTERLACE ENABlE BIT6 • BIT5 0000000 -1 CCLK 0000001 = 2 CCLK • 8114 • B1T3 EOUAlIZING CONSTANT • BIT2 CALCULATED FROM • BITl '- • j BlTO 1[ R 9 : BIT7 • BIT6 ISPLAY BUFFER l A S ' T " A D o R I S 0000 - 1,023 0001 = 2,047 • 1110 = 15,359 BITS. DISPLAY BIT4 BIT3. S BUFFER FIRST ADDRESS]SB'S BIT2 • SEE IR8 Bin. BITO .-----.----. . .---- . '0' O=HQN-INT : EC = 0 5(HACT+HFP+HSYNC+HSP) - 2(HSYNC) 1111 = 16,383 1 = INTER. 1111110=127 CCLK ----- l 1111111 =128 CClK ~----~----'-----'-----'-----'-----'-----' om BiTe BITS , BIT4 , BIT3 BIT2 • Bin. BITO B'T' '~' ~::~'A:P~::~E:AO~';:S:,O;;: '~'JB'TO ~'~-I ROW HORIZONTAL SYNC WIDTH ~ 0000 = 2 CCL.K 000::: NOT ALLOWED SEE IR11 0001 = .. CClK 001 =3 CCLK 'R2 IRtO O=OFF 1 =ON = 30CCLK J 1110 110 = 23 CCLK 1111 = 32 CCLK ----- , - - - -----'-----, 111 = 27 CCLK , .- - -.- - -.-----.- - - -.-----.----. ~:--!!!!L. BITS BIT4 .~.~.~. BITO VERTICAL FRONT P I O R H 000 - 4 SCAN LINES 001 = 8 SCAN LINES VERTICAL BACK PORCH 00000 - 4 SCAN LINES 00001 = 6 SCAN LINES ~~~ .~. ~I::L;Y p~II:3TE~ AD~::ss·Up:~T~ "JBITO , , O=OFF O=OFF H'OOOO':::O 103 , , J 1 =ON 1 :::ON H'0001'= 1 110 = 28 SCAN LINES 11110 = 64 SCAN LINES IR11 111 = 32 SCAN LINES 11111 = 66 SCAN LINES ------,-----, ,---,-----,-----, H 3FFF :: 16,363 BIH BIT6. BITS • BIT4 • BIT3 • BI12 • Bin. BITO r.C""H."'R':':.C==T:::EO:r'=- ---ACTIVE CHARACTE'R"ROWS PER SCREEN----- - ' '--'--'--'--' BLINK 00000oo 1 ROW RATE 0000001 "" 2 ROWS BIT7 • BIT6 • BITS • BIT4 " BITJ " Blt2 " BITl • BITO 1R4 0= 1/64 ~ - - - - - - - - ----S-PLITREGiSTE-R-,- - - - - - - ~ VSYNC 1 =1/128 1111110 = 127 ROWS VSYNC 1111111 = 128 ROWS ST ART a = OFF 0000000 = ROW 1 0000001 = ROW 2 ~ ~--~-- ----,---,-----,-----,-----, IR12 1:: ON ~ RO~~, BIT7 • ~. ~SAC·TlVEB~~:RA~TE:~T:ER ;OW BIT2 .~.JBITO 00000010 - 3 CHARACTERS ":"" = ____..L_ _ _ , _ _ _ , _____ ____, 00000011 = 4 CHARACTERS [ IRS : 'I 11111110 = 255 CHARACTERS 11 1 1 1 111 = 256 CHARACTERS ,-----,-----,---,-----,-----,-----, ~.~.~" BIT~p:IT RB~:~sT~R 2BIT2 .~.JBITO ~ 0000000 = ROW 1 a = OFF 0000001 = ROW 2 I ~, '--::. ~ .::::. OOOO_SCANLINEO BIT4 BITJ. LASB;TL~NE ~F C~;~OR .JBITO OOOO_SCANLINEO IR13 ,:: ON • 1111111 = ROW 128 0001 = SCAN LINE 1 0001::: SCAN LINE 1 ~: : .- - -.----. 1110=SCANLINE14 1111=SCANLINE1S . .---- . 1110::SCANLINE14 1111=SCANLlNE1S ----- '----'---"--,--,--'--'--' BIT7 " BIT6 • BITS • BIT4 • BIT3 • BIT2 • BITl • BITO BllS BIT4 BIT3 • BIT2 • Bin. BITO ~:-~-~-,- -OO-=-N-D:-RU:-~":'~-2--"'------ -O-':-:O-E~-~""O ~J CURSOR CURSOR UNDERLINE POSITION J 01 = DOUBLE WIDTH 01 = DOUBLE WIDTH 0001 = 2 ~~ 0000 - SCAN LINE 0 00=3SCANLN 0001 = SCAN LINE 1 IR14 10= DB WD & TOPS 10= DB WO & TOPS 01=1 SCAN LN , 11 = DB WO & BOTS 11 = DB WO & BOTs '0' 10=5 SCAN LN 11 =7 SCAN LN O=OFF 1 = ON 0=1132 1 = 1164 1110 = SCAN LINE 14 1110= 15 1111 = 16 1111 = SCAN LINE 15 ------,-----'-----'-----~----,-----,-----, '----,---"----- - - - ' - - - " - - ' - - ' Figure 15" Initialization Register Formats 2,84 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'm"")"!··,, 2 LINE ADDRESS LINE ADDRESS LINE ADDRESS TO CHAR GEN TO CHAR GEN TO CHAR GEN z g~ 7-------- iii Q [ ~ g 1 -e-e-e-e-e--- -e-------- 1 0-------- -e-e-e-e-e-- 1-0-0-0-0-0-- -e-------- : 1-00000---- -e------- 3-0------- -e ~~e~===== 2 2 10SCAN 2- 0 - - - - - - - - LlNESI 4 9SCAN 3 -e------- 18SCAN 3 -e-------- 3 - 0-------- ROW 8 5-0 -e LlNESI 4 -e-e-e----- LINESI -e-e-e====== 7-00000---- 5-e===== ROW 4 4-0-0-0 ROW 8 5 -e------- 5-0 -e------- o 6 6 -e-------- 1 00000 6 -0-------- e 7 -e-e-e-e-e--- 7 -e-e-e-e-e-- 3-0------- 7 -0-0-0-0-0-- 64 -e~~e~~~~~~ 5-0 -e 7-00000 1 -e-e-e-e-e-- 1 0--------- -e-e-e-e-e-- 2 3 4 -e-------- -e------- -e-e-e----- 2-e====== 3 1 -0-0-0-0-0-- 2-0 -e-------- 3-0------- 42 1 -e;~====== 3-0 -eee 00000 5-0------- 4 -e-e-e::===== 4-0-0-0 5 -e------- -e------- 6 -e~~;_;==== 7-00000 8 -e------- 6 - 5e-0====== 6 -0 7 -e-e-e-e-e - - - 7 -e-e-e-e-e-- 1-00000---- 7 -0-0-0-0-0-- 2 -e------- 4 6 3-0~~~~~~~~ -eee 5-0 -e NON INTERLACED INTERLACED SYNC INTERLACED SYNC AND VIDEO IRO=1000; TOTAL LINESIROW=9 IRO = 1000; TOTAL LINESIROW = 16 IRO=0100; TOTAL LINESIROW.10 Figure 16. Interlaced Display Modes Signetics 2·85 MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'm""""·'d ~ _________ CH~:~OW __________~ ~----~ r-----, --.J I HBLANK ----j r- FRONT PORCH (IR1) BACK PORCH (IR2) --1 I- HSYNC ____......... IIL.________________---'II. . ____ ----j I - HSYNC (IR2) CHAR ROWs/SCREEN ( l R 4 ) - - I ~ANLINESPERROW(IRO) I Ir - - - - - . r-----~L VBLANK -------.J -1 I-- -1 FRONT PORCH (IR3) I-- BACK PORCH (IR3) n . . ______________----'nL.____ VSYNC _ _......... --j r- VSYNC(IR7) EQUALIZING LINES/ROW CONSTANT IRO IR1 I I HSYNC HBACK VFRONT VBACK VSYNC WIDTH PORCH PORCH PORCH ,......., WIDTH IR2 I I IR3 I I IR7 I I I CHAR ROWS/SCREEN CHARACTERS PER ROW , IR4 I I IRS I I Figure 17. Horizontal and Vertical Timing will wraparound and obtain the data to be response to 'read/write at pointer' com- IR1217) - Scroll Start displayed at the next screen position from mands. They also define the last buffer This bit is asserted. when soft scroll is to the 'display buffer first address'. If 'last memory address to be written for the take place. The scrolling area begins at address' is the end of a character row and 'write from cursor to pOinter' command. the row specified in split register 1 a new screen start address has been load- (IR12[6:0]). If set, the first row to scroll ed into the screen start register, or if 'last scan line count will be reduced by the address' is the last character position of IR1117) - Scan Line Zero During value in the lines to scroll register the screen, the next data is obtained from Scroll Down (IR14[3:0]). The scan line count of this row the address contained in the screen start This field specifies normal scan line count will start at the programmed offset value. register. of all scan line zero counts for the new When this bit is asserted, scroll end characier row that occurs at the top of the IR13[7) must be set before split 2. Note that there is no restriction in display- scrolling area during soft scroll down ing data from other areas of the address- able memory. Normally, the area between operation. If the character generator pro- IR1216:0) - Split Register 1 vides blanks during scan line zero, this will Split register 1 can be used to provide these two bounds is used for data which cause the new row to be automatically special screen effects such as soft (scan can be overwritten (e.g., as a result of blanked on the display. This feature can line by scan line) scrolling, double height! scrolling), while data that is not to be over- be used, if necessary, to blank the new width rows, or to change the normal ad- written would be contained outside these row until the CPU places 'blank data' into dressing sequence of the display memory. bounds and accessed by means of the the display buffer. The contents of this field is compared, in automatic split screen or split screen real time, to the current row number. Upon interrupt feature of the AVDC. a match, the AVDC sets the split screen 1 IR10[7:0) - Display Pointer IR1116)- Scan Line Zero status bit, and issues an interrupt request Address Lower During Scroll Up if so programmed. The status change/ This field specifies normal scan line count interrupt request is made at the beginning IR11[5:0) - Display Pointer of all scan line zero counts for the new of scan line zero of the split screen char- Address Upper character row that occurs at the bottom of acter row. If enabled by the SPL 1 bit of These two fields define a buffer memory the scrolling area during soft scroll up screen start register 2, an automatic split address for AVDC controlled accesses in operation. See above. screen to the address specified in screen 2·86 Signetics MICROPROCESSOR DIVISION JANUARY 1963 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'm",,!"'··', start register 2 will be made for the desig· toggling between tops and bottoms is the second character row. This process is nated character row. During a scroll opera· disabled. repeated for the programmed number of tion, this field defines the first character rows per screen. Thus, the data in the row of the scrolling area. IR14[S:4]- Double 2 display memory is displayed sequentially This field specifies the conditions (double starting from the address contained in the IR13[7] - Scroll End width/height or normal) of the row desig· screen start register. After the ensuing This field specifies that the row pro· grammed in split register 2 (IRI3[6:0]) is to be the last scrolling row of the scrolling nated in split register 2 (I RI3[6:0). Not used when IRO[7] = 1. vertical retrace interval, the entire process repeats again. 2 During vertical blanking, the address area. Note that this bil must be asserted IR14[3:0] - Lines to Scroll counter operation is modified by stopping for a valid row only when the scroll start This field defines the scan line increment the automatic load of the contents of the bit IRI2[7] is also asserted. to be used during a soft scroll operation. RSR into the counter, thereby allowing the This value will only be used when scroll address outputs to free·run. This allows IR13[6:0] - Split Register 2 start (IRI2[7]) and scroll end (IRI3[7]) are dynamic memory refresh to occur during This field is similar to the split register 1 enabled. the vertical retrace interval. The refresh field except for the following: addressing starts at the last address 1. Split screen 2 status bit is set. Timing Considerations displayed on the screen and increments 2. During a scroll operation, this field Normally, the contents of the initialization by one for each character clock during the defines the last character row of the registers are not changed during normal retrace interval. If the display buffer last scrolling area. This row will be followed operation. However, this may be neces· address is encountered, refreshing con· by a partial row. The LTSR (IRI4) value sary to implement special display features tinues from the display buffer first replaces the normal scan lines/row such as multiple cursors and horizontal scrolling. Table 2 describes timing details address. value for the partial row, thus keeping the total scan lines/screen the same. for these registers which should be con· The sequential operation described above 3. If enabled by the SPL2 bit of screen sidered when implementing these will be modified upon the occurrence of start register 2, an automatic split to features. anyone of three events. First, if during the the address contained in screen start incrementing of the memory address register 2 will occur in one of two ways: DISPLAY CONTROL REGISTERS counter the 'display buffer last address' a) If not scrolling an automatic split will There are seven registers in this group, (lR9[7:4]) is reached, the MAC will be occur for the next character row. b) If each with an individual address. Thei-r for· loaded from the 'display buffer first scrolling, the automatic split will occur mats are illustrated in figure 15. The com· address' register (IR9[3:0] and IR8[7:0]) at after the partial row being scrolled onto mand register is used to invoke one of 19 the next character clock. Sequential oper· or off the screen. possible AVDC commands as described in ation will then resume starting from this 4. The specified double width and height the COMMANDS section of this data address. This wraparound operation conditions (IRI4) are also asserted in sheet. The remaining registers in the allows portions of the display buffer to be two possible ways: a) Automatic split group store address values which specify used for purposes other than storage of will assert the programmed condition the cursor location, the location of the displayable data and is completely auto· for the current row. b) During soft scroll first character to be displayed on the matic without any CPU intervention (see operation the programmed conditions screen, and any split screen address loca· figure 19a). are asserted for the partial row scroll· tions. The user initializes these registers ing onto or off the screen. after powering on the system and changes The sequential row to row addressing can their values to control the data which is also be modified via split register 1 (IRI2) IR14[7:6] - Double 1 displayed. and split register 2 (IRI3), under CPU con· This field specifies the conditions (double trol, or by enabling the row table address· width/height or normal) of the row desig· Screen Start Registers 1 and 2 ing mode. If bit 6 of screen start register 2 nated in split register 1 (IRI2[6:0]). When The screen start 1 registers contain the upper (SPL 1) is set, the screen start regis· double height tops or bottoms has been address of the first character of the first ter 2 contents will be loaded automatically specified, the AVDC will automatically row (upper left corner of the active into the RSR at the beginning of the first toggle between tops and bottoms until display). At the beginning of the first scan scan line of the row designated by split another split 1 or 2 occurs which changes line of the first row, this address is trans· register 1 (lRI2[6:0]). If bit 7 of screen start the double height/width condition. If a ferred to the row start register (RSR) and 2 upper (SPL2) is set, the screen start reg· double height tops row is specified, the into the memory address counter (MAC). ister 2 contents is automatically loaded scan line count will start at zero and incre· The counter is then advanced sequentially into the RSR at the end of the last scan ment the scan line count every other scan at the character clock rate for the number line of the row designated by split register line. If a double height bottom row is of times programmed into the active char· 2 (IRI3[6:0]). SPL 1 and SPL2 are write only specified, the AVDC will start at one half acters per row register (IR5), thus reaching bits and will read as zero when reading the normal scan line total. If double width the address of the last character of the screen start register 2. is specified, the AVDC will assert the row plus one. At the beginning of each DADD9/DW output at the falling edge of subsequent scan line of the first row, the If the contents of screen start register 1 blank. This condition will also remain ac· MAC is reloaded from the RSR and the (upper, lower, or both) are changed during tive until the next split 1 or 2. When above sequence is repeated. At the end of any character row (e.g., row 'n'), the start· I RO[7]= 1, the values written into bits 7 the last scan line of the first row, the con· ing address of the next character row (row and 6 of screen start 1 upper will also be tents of the MAC is loaded into the RSR to 'n + 1') will be the new value of the screen written into IRI4[7:6] and the automatic serve as the starting memory address for start register and addressing will continue Signetics 2·87 MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'm",,""-'" Table 2 TIMING CONSIDERATIONS sequentially from there. This allows fea· tures such as split screen operation, par· PARAMETER TIMING CONSIDERATIONS tlal scroll, or status line display to be First line of cursor These parameters must be established at a implemented. The split screen interrupt Last line of cursor minimum of two character times prior to their feature of the AVDC is useful in control· Underline line occurrence ling the CPU initiated operations. Note that In order to obtain the correct screen Double height character rows Set/reset prior to the row specified in spilt 1 display, screen start register 1 must be Double width character rows or 2 registers reloaded with the original (origin of dis· Rows to scroll play) value prior to the end of the vertical Cursor blink New values become effective within one field retrace. See figure 19b. Cursor blink rate after values are changed When row table addressing mode is en· Character blink rate abled, the first address of the row table is Split register 1 Change anytime prior to line zero of desired designated In SSR2. The AVDC fetches Split register 2 row the next row's starting address from the table during the blanking interval prior to Character rows per screen Change only during vertical blanking period the first scan line of each character row Vertical front porch Change prior to first line of VFP and loads it into SSR1 for use as the start· Vertical back porch Change prior to fourth line after VSYNC ing address of the next row. Since the con· tents of SSR2 changes as the table entries Screen start register 1 Change prior to the horizontal blanking are fetched, it must be re·initiallzed to Row table mode enable interval of the last line of character row point to the first table entry during each before row where new value is to be used vertical retrace interval. The values in the two MSBs of SSR1 upper are multiplexed onto the DADD1/DADD14 and DADD2/DADD15 outputs during the BI17 BIT6 BITS Sif4 BIT3 BI12 BIT1 BITO COMMAND CODe see COMMANDS SECTION FOR COMMAND CODES COMMAND REGISTERS (WRITE ONLY) BI17 BI16 BITS 81f4 BI13 BIT2 81T1 BITO BI17 BIT6 BITS BIT4 BI13 BIT2 BIT1 BITO UPPER REOISTER LOWER REGISTER (LSB) H'OooO' = 0 NOTE: MSS's ARE IN H'Ooo1' .. 1 UPPER REGISTER (5:0] DADD15 DADD14 MSS's THRU H'3FFE' _16,382 H'3FFF' '" 16,383 NOTES: 1. Bits 7 and 6 of upper register are not used in the cursor address register. 2. Bits 7 and 6 of upper register are always zero when read by the CPU. 3. When IAO[7] = 1, the values written into bits 7 and 6 of screen start 1 upper will also be written Into IR14[7:B1 to control the double width and double height attributes of the display as follows: L ~ Attribute o 0 None o 1 Double width only 1 0 Double width and double height tops 1 1 Double width and double height bottoms SCREEN START 1 REGISTERS (READ AND WRITE) CURSOR ADDRESS REGISTERS (READ AND WRITE) BIT7 BITS BITS BIT4 BIT3 BIT2 81T1 BITO BIT7 BITS BITS BIT4 BIT3 BIT2 BIT1 BITO UPPER REGISTER LOWER REGISTER (LSB) SPL2 SPL1 H'OOOO' =0 NOTE: MSB's ARE IN O=OFF O=OFF H'ooo1'-1 UPPER REGISTER [5:01 1=ON 1=ON MSB's THRU H'3FFE' = 16,382 H'3FFF' = 16,363 NOTE: Bit 7 and bit 6 are always zero when read by CPU. SCREEN START 2 REGISTERS (READ AND WRITE) Figure 18. Display Control Register Formats 2·88 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'am'"'''''·''' falling edge of BLANK. If I RO[7] = 0, these two bits act as memory page select bits which may be used to extend the display memory addressing range of the AVDC up to 64K. In that case, these two bits act as a - DISPLAY BUFFER START two-bit counter which is incremented each time that 'wraparound' occurs (see above). Note that the counter is incremented at the falling edge of BLANK and that for BOTTOM OF SCREEN. 2 proper display operation the wraparound address should be programmed to occur at the last character position of a row. SCREEN START- h'""""'....."'"""""'c1 Also, the first address accessed in the MONITOR new page will be the address contained in DISPLAY the display buffer first address register 1-"--"--''""''-'>''''>''''>''''''---''--1- DISPLAY BUFFER END (IR9[3:0] and IR8[7:0]). Cursor Address Registers 16K L-_ _ _ _ _-' The contents of these registers define the MEMORY buffer memory address of the cursor. The (a) DISPLAY MEMORY WRAPAROUND cursor output will be asserted when the memory address counter matches the value of the cursor address registers for the scan lines specified in IR6. The cursor . . DISPLAY BUFFER START address registers can be read or written by the CPU or incremented via the 'increment - BOTTOM OF SCREEN cursor address' command. In independent buffer mode, these registers define a buf- fer memory address for AVDC controlled access in response to 'read/write at cursor with/without i ncremen!' commands, or the first address to be used in executing the 'write from cursor to pointer' command. INTERRUPT/STATUS REGISTERS The interrupt and status registers provide MONITOR information to the CPU to allow it to inter- DISPLAY 1-"--"-""">"""---"--'--"--'--'1 - DISPLAY BUFFER END act with the AVDC to effect desired changes that implement various display 16K L-_ _ _ _ _..J operations. The interrupt register provides MEMORY information on five possible interrupting (b) DISPLAY MEMORY SPLIT SCREEN WITH WRAPAROUND conditions, as shown in figure 20. These conditions can be selectively enabled or Figure 19. Display Addressing Operation disabled (masked) from causing interrupts by certain AVDC commands. An interrupt condition which is enabled (mask bit equal to one) will cause the INTR output to be asserted and will cause the corresponding reset by the CPU by issuing a 'reset inter- I/SR[3] - Line Zero bit in the interrupt register to be set upon rupt/status bits' command. The bits are Set to one at the beginning of the first the occurrence of the interrupting condi- also reset by a 'master reset' command scan line (line 0) of each active character tion. An interrupt condition which is dis- and upon power-up. row. abled (mask bit equal to zero) has no effect on either the I NTR output or the SR[5] - RDFLG I/SR[2] - Split Screen 1 interrupt register. This bit is present in the status register This bit is set when a match occurs be- The status register provides six bits of only. A zero indicates that the AVDC is tween the current character row number status information: the five possible inter· currently executing the previously issued and the value contained in split register 1, rupting conditions plus the RDFLG bit. delayed command. A one indicates that IR12[6:0]. The equality condition is only For this register, however, the contents the AVDC is ready to accept a new delayed checked at the beginning of line zero of are not affected by the state of the mask command. each character row. bits. I/SR[4] - VBLANK Descriptions of each interrupt/status reg- Indicates the beginning of a vertical blank- I/SR[1] - Ready ister bit follow. Unless otherwise indi- ing interval. Set to one at the beginning of The delayed commands affect the display cated, a bit, once set, will remain set until the first scan line of the vertical front porch. and may require the AVDC to wait for a Signetics 2·89 MIC.ROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'm",,11".'ij Cursor Off 81Tt BIT& BITS 81T4 81T3 81T2 81T1 BITO Disables cursor operation. Cursor output LINE I NOT USED RDFLG VBLANK ZERO SPLIT 1 READY $PlIT2 Is placed in the low state. ALWAYS READ AS 0 ! . O=BUSY 1 = READY O=NO 1=YES O=NO 1=YES * STATUS REGISTER ONLY. ALWAYS 0 WHEN READING INTERRUPT REGISTER. O=NO 1=YES ('=BUSY 1 = READY O=NO 1=YES Cursor On Enables normal cursor operation . Reset Interrupt/Status Bits Figure 20. Interrupt and Status Register Format This command resets the designated bits in the interrupt and status registers. The bit positions correspond to the bit posi- blanking interval before enacting the com· 2. The interrupt and status bits and tions in the registers: mand. This bit is set to one when execu· masks are set to zero, except for the Bit 0 - Split 2 tion of a delayed command has been com· RDFlG flag which is set to a one. Bit 1 - Ready pleted. No other delayed command should 3. The row buffer mode, cursor-off, Bit 2 - Split 1 be invoked until the prior delayed com· display·off, and line graphics disable Bit 3 - Line zero mand is completed. states are set. Bit 4 - Vertical blank 4. The initialization register pointer is set IISR[O] - Split Screen 2 Disable Interrupts to address IRO. This bit is set when a match occurs be- Sets the interrupt mask to zeros for the 5. IR2[7) is reset. tween the current character row number designated conditions, thus disabling and the value contained in split register 2 Load IR Address these conditions from being set in the in- (IR13[6:0]) when you are not scrolling. It is This command is used to preset the initial- terrupt register and asserting the INTR set for the value contained in (split screen ization register pointer with the value 'V' output. Bit position correspondence is as register 2) + 1 when scrolling. defined by D3-DO. Allowable values are 0 above. to 14. COMMANDS Enable Interrupts The AVDC commands are divided into two Enable Graphics This command writes the associated inter- classes: the instantaneous commands After invoking this command, the AVDC rupt mask bits to a one. This enables the which are executed immediately after they will increment the MAC to the next con- corresponding conditions to be set in the are invoked, and the delayed commands secutive memory address for each scan interrupt register and asserts the INTR which may need to wait for a blanking in· line even if more than one scan line per output. Bit position correspondence is as terval prior to their execution. Command row is programmed. This mode can be above. formats are shown in table 3. The com- used for bit-mapped graphics where each mands are asserted by performing a write location in the display buffer within the Delayed Commands operation to the command register with defined area contains the bit pattern to be This group of commands is utilized for the the appropriate bit pattern as the data displayed. This command is row buffered independent buffer mode of operation, al- byte. and should be asserted during the though the 'increment cursor' command character row prior to the row where this can also be used in other modes. With the Instantaneous Commands feature is required. This allows the user to exception of the 'write from cursor to The instantaneous commands are ex· enter and exit graphics mode on character pointer' and 'increment cursor' com- ecuted immediately after the trailing edge row boundaries. mands, all the commands of this type will of the WR pulse during which the com- To perform split screen operations while be executed immediately or will be mand is issued. These commands do not delayed depending on when the command in graphics mode use SSR2 only. affect the state of the RDFlG or READY is invoked. If invoked during the active interrupt/status bits and can be invoked at DADDO/lG is asserted during the trailing screen time, the command is executed at any time. edge of BLANK for each scan line while the next horizontal blanking interval. If this mode is active. Master Reset invoked during a vertical retrace interval or This command initializes the AVDC and can Disable Graphics a 'display off' state, the command is ex- be Invoked at any time to return the AVDC Normal addressing resumes at the next ecuted immediately. to Its initial state. Upon power·up, two row boundary. The 'increment cursor' command is exe- successive master reset commands must cuted immediately after it is issued and reo be applied to release the AVDC's internal Display Off Asserts the BLANK output. The DADDO quires approximately three CCLK periods power on circuits. In transparent and for completion. The 'write from cursor to shared buffer modes, the CNTRl1 input through DADD13 display address bus out· puts can be optionally placed in the three· pointer' command executes during blank- must be high when the command is issued. ing intervals. The AVDC will execute as The command causes the following: state condition by setting bit 2 to a '1' when invoking the command. many writes as possible during each 1. VSYNC and HSYNC are driven low for blanking interval. If the command is not the duration of the command and Display On completed during the current blanking in· BLANK goes high. After command Restores normal blanking operation either terval, the command will be held in sus- completion, HSYNC and VSYNC will at the beginning of the next field (bit 2= 1) pension during the next active portion of begin operation and BLANK will remain or at the beginning of the next scan line the screen and continues during the next high until a 'display on' command is (bit 2=0). Also returns the DADDO·DADD13 blanking interval until the command is received. drivers to their active state. completed. 2·90 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'wn""".,., In all cases, the AVDC will assert the Table 3 AVDC COMMAND FORMATS READY/RDFLG status to signify comple- 07 06 05 04 03 02 01 DO COMMAND tion of the delayed command. No other delayed command should be given until Instantaneous Commands: the previous delayed command has com- 0 0 0 0 0 0 0 0 Master reset pleted. Therefore, the READY interrupt 0 0 0 1 V V V V Load IR pointer with value V or RDFLG status flag should be used for handshaking control between the AVDC and CPU when using the delayed 0 0 1 d d d 1 01 (V=O to 14) Disable graphics 2 0 0 1 d d d 1 12 Enable graphics commands. 0 0 1 d 1 N d 01 Display off. Float DADO bus if N = 1 0 0 1 d 1 N d 12 Display on: Next field (N = 1) or scan Read/Write at Pointer line (N=O) Transfers data between the display buffer 0 0 1 1 d d d 01 Cursor off and the bus interface latch using the ad- 0 0 1 1 d d d 12 Cursor on dress contained in the pointer registers. 0 1 0 N N N N N Reset interrupt/status: Bit reset where N= 1 Read/Write at Cursor 1 0 0 N N N N N Disable interrupt: Disable where Transfers data between the display buffer N=1 and the bus interface latch using the ad- 0 1 1 N N N N N Enable interrupt: Enables interrupts dress contained in the cursor registers. where N= 1 V L S R S Increment Cursor Interrupt Bit B Z P 0 P Adds one (modulo 16K) to the cursor ad- Assignments 1 Y 2 dress registers. Delayed Commands: Hex Read/Write at Cursor and 1 0 1 0 0 1 0 0 A4 Read at pointer address Increment 1 0 1 0 0 0 1 0 A2 Write at poi nter add ress Transfers data between the display buffer 1 0 1 0 1 0 0 1 A9 Increment cursor address and the bus interface latch using the ad- 1 0 1 0 1 1 0 0 AC Read at cursor address dress contained in the cursor registers 1 0 1 0 1 0 1 0 AA Write at cursor address and then adds one (modulo 16K) to the cur- 1 0 1 0 1 1 0 1 AD Read at cursor add ress and sor address registers. increment address 1 0 1 0 1 0 1 1 AB Write at cursor address and Write from Cursor to Pointer increment address Writes the data contained in the bus inter- 1 0 1 1 1 0 1 1 BB Write from cursor address to pointer face latch into the block of display mem- address ory designated by the cursor address and 1 0 1 1 1 1 0 1 BD Read from cursor address to pointer pointer address registers, inclusive. After address completion of the command, the pOinter NOTES: 2. Any combination of these three commands IS valid. address will be unchanged, but the cursor 1. Any combination of these three commands is valid. 3. d=don't care. register contents will be equal to the pointer address. ABSOLUTE MAXIMUM RATINGS 1 PARAMETER RATING UNIT Operating ambient temperature 2 o to + 70 'c Storage temperature -65 to + 150 'c All voltages with respect to ground 3 -0.5 to +6.0 V DC ELECTRICAL CHARACTERISTICS TA = O'C to + 70'C V ce =5.0V +- 5%4,5,6 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max V IL Input low voltage 0.8 V V IH Input high voltage 2.0 V VOL Output low voltage IOL=2.4mA 0.4 V VOH Output high voltage (except INTR output) 10H = -2001'A 2.4 V IlL Input leakage current VIN=O to Vec -10 10 I'A ILL Data bus 3-state leakage cu rrent Vo=O to Vee -10 10 I'A 100 INTR open drain output leakage current Vo=O to Vee 10 I'A Icc Power supply current 160 mA Signetics 2·91 MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'IfIn""".", AC ELECTRICAL CHARACTERISTICS TA=O'C to + 70'C, vcc= 5.0V ± 5%4,5,6,7,8 TENTATIVE LIMITS PARAMETER TEST CONDITIONS 2.7MHz 4.0MHz UNIT Min Max Min Max Bus Timing (Fig. 21)9 t AS AO·A2 setup time to WR, Rf5 low 30 30 ns tAH AO·A2 hold time from WR, Rf5 high 0 0 ns tcs CE setup time to WR, RD low 0 0 ns tCH CE hold time from WR, RD high 0 0 ns tRW WR, RD pulse width 250 200 ns too Data valid after RD low 200 200 ns tOF Data bus floating after RD high 100 100 ns tos Data setup time to WR high 150 150 ns tOH Data hold time from WR high 10 5 ns tcc High time from CE to CE Consecutive commands tccp tccp ns Other accesses 300 300 ns CCLK Timing (Fig 22, 23, 24) tccp CCLK period 370 10,000 250 10,000 ns tCCH CCLK high time 125 100 ns tCCl CCLK low time 125 100 ns Output delay from cctR: edge tccOl DADDO·13, MBC 40 175 40 150 ns tCC02 BLANK, HSYNC, VSYNC/CSYNC, CURSOR, BEXT, BREQ, BACK, BCE, WDB, RDB10 40 225 40 200 ns Other Timings (Fig 23) t ROl READY/RDFLG low from WR hlgh 9 tccp tccp +30 +30 ns tSAK BACK high from PBREQ low 225 200 ns tSXT BEXT high from PBREQ high 225 200 ns tlRl INTR low from CCLK low 225 200 ns tlRH INTR high from WR, RD high 9 600 600 ns t AC ACLL from HSYNC 3xtccp 3xtccp ns Row Table Input Timing (Fig. 24) tOSRT Data setup time to CCLK low 100 60 ns tOHRT Data hold time from CCLK low 60 60 ns NOTES 5. All voltage measurements are referenced to ground (GND). 1. Stresses above those listed u ndar Absolute Maximum Ratings may cause perma- 6. Typical values are at + 25°C, typical supply voltages, and typical processing nent damage to the device. This is a stress rating only and functional operation of parameters. the device at these or at any other condition above those In the operation section 7. For testing, all input signals swing between O.4V and 2.4V with a transition time of of this specification is not implied. 20ns maximum. All time measurements are referenced at input voltages of O.8V 2. For operating at elevated temperatures, the device must be derated based on and 2.0V and output voltages of O.SV and 2.0V as appropriate. + 15QDC maximum junction temperature. = S. Test condition for outputs: CL 150pF. 3. This product Includes circuitry specifically designed forthe protection of its inter· .9. Timing is Illustrated and specified referenced to WR and RiS inputs. Device may nal devices from damaging effects of excessive static charge. Nonetheless, it is also be operated with CE as the 'strobing' input. In this case, all timing speciflca· suggested that conventional precautions be taken to avoid applying any voltages ti~)I'Js apply referenced to falling and rising edges of CE. larger than the rated maxima. 10. BCE, Wi5B, and Ri5B delays track each other within 10nsec. Also, these output 4. Parameters are valid over specified temperature range. delays will tend to follow direction (minimax) of DADDO-13 delays. 2·92 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'm",,""··" AO-A2 ~----:- _ _ __ 2 00-07 FLOAT (READ) \--IDS I I-IDH C:~il~ ________---J~ VALID I ~t.. _ _ _ _ __ NOTE CE, RD, WRI _ _ _ _ _ _ _ _ _ _ _ _ _...IA-ICC V j '--_ _ 1. Any two must be high for tee. Figure 21. Bus Timing ICCD' ICCD2 OUTPUTS (NOTE 1) -------1 I--+l-ICCDI NOTES 1. DADDO-DADDI3, BLANK, HSYNC, CSYNCIVSYNC, CURSOR, BEXT, BREQ, - .Q!UP.!!!§ WDB, RDB, BCE BCE:MBC, BACK. 2. !roE CHANGES STATE ON BOTH ccrK EDGES-(see Figures 3 and 4) Figure 22. CCI:K Timing Signefics 2·93 MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'm""""··ij BLANK _ _- - J r VERTICAL BLANKING INTERVAL 1st HSYNC HSYNC OFVBLANK VB LANK STATUS BIT BLANK DADDO- DADD13 LINE ZERO AND SPLIT SCREEN STATUS BITS HSYNC~ ~~2------------~----- BLANK I u __ _ NORMAL·------------i-I~:~F~p:n~SC~A~N~L~IN~E~~~II~----------________~------------ VSYNC (ACLL=1)_ _ _ _ _---iI_ _2212~---.. -I ACLL_ -------+--~~------------~I~------- 22 I - DELAYED VSYNC·_ _ _ _ _ _ _+-~12_-------------~- I 2_2---'VFP= n +3 SCAN LINES r-1 ..__ -----i.~1 Figure 23. Other Timings 2·94 Signetics MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'mU"nel.i N ~ WRFORA DELAYED COMMAND READY OR RDFLG STATUS BITS \\:.....-- 2 .,"~:=~ INTERRUPT IIRH iNrR / Figure 23. Other Timings (Continued) I I tCCD1-! I- _M_B_C____________ -J;'r--------~------------~------------------- tCCD2~ I- CURSOR ;'---------+----------~--------~\~----- tCCD1-l I- _DA_D_D_ _ _ _ _ _ _JXr-S-S-R2-A-D-D-RE-S-S-;X SSR2 ADDRESS + 1 X"-________ -JX"-_____ -ltDSRT\- tDHRT-l-ltDSRT\- tDHRT-j ------------------~ DO-D7 r-------- Figure 24. Row Table Fetch 1/0 Timing Signetics 2·95 MICROPROCESSOR DIVISION JANUARY 1983 ADVANCED VIDEO DISPLAY CONTROLLER (AVDC) SCN2674 'Q,tuM' EVEN FIELD LAST DISPLAYED SCAN OF PREVIOUS FIELD '\ ~ VERTICAL FRONT PORCH --+ VERTICAL SYNC PULSE +- VERTICAL BACK PORCH --II / FIRST DISPLAYED SCAN OF EVEN FIELD HORIZONTAL SYNC CSYNC~ ~SES BLANK""U-!"" ~l _ _ _ _ _ _ _ _ _ _ _ _ VERTICAL BLANKING INTERVAL l~_LJL __________ ---I ODD FIELD LAST DISPLAYED SCAN OF EVEN FIELD 1 I-- VERTICAL FRONT PORCH-112 H + VERTICAL SYNC PULSE t- VERTICAL BACK PORCH-112 H ---l 112 H I-- ~ FIRST DISPLAYED SCAN OF ! ODD FIELD CSYNC~ ~ 1/2 HORIZONTAL SYNC ... -11- I -I HPERIOD ~l l~ B L A N K J ' "__ U--- - - - - - - - - - V E R T I C A L BLANKING INTERVAL ~ HORIZONTAL BLANKING INTERVAL NOTES 1. In non-interlaced operation the eve!"! field Is repeated continuously. 2. In Intarlaced operation the even field alternatss with the odd field. Figure 25. Composite Sync Timing 2·98 Signetics MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'gm "..IIeI. 'ti DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SCB2675 Color/Mono- • 25 and 18MHz video dot rate versions· chrome Attributes Controller (CMAC) is a • Four video intensities encoded on two bipolar LSI device designed for CRT ter- TTL outputs (monochrome mode) minals and display systems that employ • Eight foreground and background raster scan techniques. It contains a pro- colors encoded on three TTL outputs Vee grammable dot clock divider to generate a character clock, a high speed shift regis- (color mode) • Internally latched character attributes: - Reverse video DO D2 2 ter to serialize input dot data into a video D4 stream, latches and logic to apply visual - Blank attributes to the resulting display, and - Blink D6 logic to display a cursor on the display. - Underline C1 - Highlight The CMAC provides control of visual attri- CO - Two general purpose butes on a character by character basis for CCLK - Eight foreground colors two operating modes: monochrome and - Eight background colors DCLK color. The monochrome mode provides - Dot width control DOTS DOrM reverse video, blank, highlight and two - Double width characters general purpose user definable attributes. BLINK MIC • VT100 compatible attributes In this mode, the display characters can • Reverse video cursor with optional BLANK BLUEITTLV2 be specified to appear on either a light or white cursor in color mode UL REDITTLV1 dark screen background. Retrace video • Up to 10 dots per character suppression can be automatically or exter- ADOUBLE GREENIGP1 • Light or dark background in nally controlled. The color mode provides RESET LUMIGP2 monochrome mode eight colors for foreground (character) - Automatic retrace blanking ABLINK AREDFIAHILT video and eight colors for background • Programmable dot stretching AGREENFI video together with a luminance output for BKGND ADOTM • Compatible with SCN2674 AVDC and ABLUEFI external color set selection or to simul- AGREENBI SCN2670 DCGG ARVID ABLANK taneously drive a monochrome monitor. • TTL compatible AUL ABLUEB/AGP2 Additionally, both modes provide double • 40·pin dual in·line package GND AREDBIAGP1 width, underline, blink, dot stretching and dot width attributes. In monochrome APPLICATIONS mode, the SCB2675 emulates the attribute TOP VIEW • CRT terminals characteristics of Digital Equipment Cor- • Word processing systems poration's VT100 terminal. • Small business computers The horizontal dot frequency is the basic • For faster versions consult factory. timing input to the CMAC. This clock is divided internally to provide a character clock output for system synchronization. ORDERING CODE Up to ten bits of dot data are parallel Vcc =5V:!: 5%, O°C to + 70 C 0 loaded into the video shift register on each character boundary. The two TTL DOTS PER PACKAGES video data outputs in monochrome mode CHARACTER 25MHz 18MHz are encoded to provide four video inten- Ceramic DIP SCB2675BC5140 SCB2675BC8140 sities (black, gray, white and highlight). 7,8,9,10 The video data in color mode is encoded Plastic DIP SCB2675BC5N40 SCB2675BC8N40 to provide eight foreground colors and Ceramic DIP SCB2675CC5140 SCB2675CC8140 shifted out on three TTL outputs, together 6,8,9,10 Plastic DIP SCB2675CC5N40 SCB2675CC8N40 with the luminance output. Signetics 2·97 MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'm",,",'··', PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION Vee 40 I Power Supply: + 5VDC Vee 1 I Bias Supply: See figure 5 GND 20 I Ground: OV reference DCLK 32 I Dot Clock: Dot frequency input. Video output shift rate. CCLK 33 0 Character Clock: An output which is a submultiple of DCLK. The period ranges from 7 to 10 DCLK periods per cycle and is determined by the state of the CO-C1 inputs. REDITTLV1 28 0 Red/TTL Video 1: In color mode, this output provides the red gun serial video. In monochrome mode, it should be. used with the bluelTTL video 2 output to decode four video intensities. BLUEITTLV2 29 0 Blue/TTL Video 2: In color mode, this output provides the blue gun serial video. In monochrome mode, it.should be used with the redlTTL video 1 output to decode four video intensities. GREENIGP1 27 0 Green/General Purpose 1: In color mode, this output provides the green gun serial video. In monochrome mode, it' is a general purpose TTL output which Is asserted if the AREDBIAGP1 input is asserted when the corresponding character dot data is loaded into the video shift register. LUMIGP2 26 o Luminance/General Purpose 2: In color mode, this output is the logical-OR of the RGB fore· ground video. It is low during a blanking interval and during the foreground portion of the cursor display. In monochrome mode, it is a general purpose TTL output which is asserted if the ABLUEB/AGP2 input is asserted when the corresponding character dot data is loaded into the video shift register. UL 13 I Underline Timing: Indicates the scan line(s) for the underline attribute. Latched on the . falling edge of BLANK. BLINK 11 Blink Timing: This input is sampled on the falling edge of BLANK to provide the blink rate for the blink attribute. Should be a submultiple of the frame rate. BLANK 12 Screen Blank: When high, this input forces the video outputs to the specified background color in color mode and to the level specified by the BKGND input (either black or gray) in monochrome mode. RBLANK 7 Retrace Blank: This input is used to force the video outputs to a low during retrace periods. If pulled high, it will automatically suppress video during the retrace periods when BLANK Is high. The user may also pulse this input while BLANK Is high to selectively suppress raster video. AGREENFIBKGND 17 Graen Foreground/Background Intensity: In color mode, this input activates the GREEN/ GP1 output during the foreground (character video) portion of the associated character block. In monochrome mode, this input specifies gray or black screen background. ABLUEFIABLANK 23 Blue Foreground/Blank Attribute: In color mode, this input activates the BLUE/TTLV2 output during the foreground (character video) portion of the associated character block. In monochrome mode, this input generates a blank space for the associated character. The blank space intensity is controlled by the AGREENFIBKGND input, the reverse video attribute and cursor input. AREDFIAHILT 25 Red Foreground/Highlight Attribute: In color mode, this input activates the RED/TTLV1 output during the foreground (character video) portion of the associated character block. In monochrome mode, this input highlights the associated character (including underline). CURSOR 8 Cursor Timing: This input provides the timing for the cursor video. In color mode, with CURSOR and CMODE high, the RGB outputs are driven high (white cursor). if CMODE is low, or in monochrome mode, this input reverses the intensities of the video and attributes. Cursor position, shape, and blink rate are controlled by this input. CMODE 9 Cursor Mode: Used in color mode only. When CURSOR and CMODE are high, the RGB outputs are driven high (white cursor). When CURSOR is high and CMODE is low, the RGB outputs are logically inverted (reverse video cursor). AUL 19 Underline Attribute: Specifies a line to be displayed In the character block. The specific line(s) are specified by the UL input. All other attributes apply to the underline video. 2·98 Signetics MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'm""",'··,, PIN DESIGNATION (Continued) MNEMONIC PIN NO. TYPE NAME AND FUNCTION ABLINK 16 Blink Attribute: In color mode, this active high input will drive the foreground RGB com· bination to the background RGB combination. In monochrome mode, the associated char· acter or background is driven to the intensity determined by BKGND, reverse video attribute ADOUBLE 14 and the cursor input. Double Width Attribute: This active high input causes the associated character video to be 2 shifted out of the serial shift register at one half the dot frequency (DCLK). The CCLK output is not affected. AREDB/AGP1 21 Red Background/General Purpose Attribute 1: In color mode, this input activates the RED/TTLV1 output during the background portion of the associated character block. In monochrome mode, it activates the GREEN/GP1 output for the associated character block. ABLUEB/AGP2 22 Blue Background/General Purpose Attribute 2: In color mode, this input activates the BLUE/TTLV2 output during the background portion of the associated character block. In monochrome mode, it activates the LUM/GP2 output for the associated character block. AGREENB/ARVID 18 Green Background/Reverse Video Attribute: In color mode, this input activates the GREEN/GP1 output during the background portion of the associated character block. In monochrome mode, it causes the associated character block video intensities to be reversed. DO-D8 36-39, I Dot Data Input: These are parallel inputs corresponding to the character/graphic symbol 2-6 dot data for a given scan line. These inputs are strobed into the video shift register on the trailing (falling) edge of each character clock (CCLK). CO-C1 34-35 I Character Clock Control: The states of these two static inputs determine the internal divide factor for the CCLK output rate. RESET 15 I Reset: This active high input initializes the internal logic and resets the attribute latches. M/C 30 I Monochrome/Color Mode: This input selects whether the CMAC operates in monochrome or color mode. A low selects color mode and a high selects monochrome mode. ADOTM 24 I Dot Modulation Attribute: When DOTM and this input are high, the active dot width of the associated character video is one DCLK. When DOTM is high and this input is low, the active dot width of the associated character video is two DCLKs. DOTM 31 I Dot Width Modulation: When this input is high, two DCLKs are used for each dot shifted through the shift register. When this input is low, one DCLK is used. DOTS 10 I Dot Stretching: Sampled at the falling edge of BLANK. When this input is high, one extra dot is appended to individual dots or groups of dots of the input parallel data and then transferred through the shift register. When this input is low, normal transfer of input parallel data results. Signetics 2·99 MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'm""n,'.'i" BLOCK DIAGRAM DCLK - - - - - - - - - - , 1..- - - - - - - - - - - - ADOUBLE co L..r--~DO~T~--~~---------- DOTM DO-DB "'+--1 MODULATION ...- - - - - - - - - - - DOTS ~~L~O:G~IC~~~------------ ADOTM t--r-----------------~ CCLK UL L..r---------,~------------RBLANK BLINK VIDEO CURSOR AND CMODE ATTRIBUTE REDITTLV1 MONOCHROME HIERARCHY BLUEfTTLV2 ABLINK TTL AND COLOR LOGIC AUL ATTRIBUTE DRIVERS GREENIGP1 MIC AND LUMIGP2 ABLUEFIABLANK CURSOR LOGIC ...-----~~-------------BLANK AREDFIAHILT ,--+-------------------- RESET ABLUEBIAGP2 ......- Vee AGREENBIARVID ",,-VBB AREDBIAGP1 _GND FUNCTIONAL DESCRIPTION In color mode, eight colors for the charac- foreground and background are a function The CMAC consists of seven major sec- ter (foreground) and eight colors for the of the attribute and BKGND inputs, i.e., tions (see block diagram). The high speed background (area other than character) characters may be black, gray, white, or dot clock input is applied to a program- can be selected by the attribute inputs. In highlight (very white) while background mable divider to provide a character clock monochrome mode, the intensities of may be black, gray, or white (see Table 1). output for system timing. Parallel dot data is loaded into the video shift register on character boundaries and shifted into the Table 1 MONOCHROME MODE ATTRIBUTE CHARACTERISTICS video logic block at the dot rate specified by the dot modulation section. The appro- REV1 FOREGROUND BACKGROUND AHILT ABLINK2 priate attribute control inputs are selected VIDEO VIDEO by the mode select logic, latched inter- 0 0 0 W B nally on character boundaries, and com- 0 0 1 WIG B bined with the serial dot data to provide 0 1 H B 0 monochrome or color video outputs. 0 1 1 H/W B 1 0 0 B G The BLANK input defines the active 1 0 1 B/W G/B screen area. I n color mode, the video out- 1 1 0 B W puts are forced to the specified back- 1 1 1 B/H W/B ground color when this signal is asserted; NOTES in monochrome mode the video outputs 1. REV=(BKGND) XOR (ARVID): are forced to the states defined by the BKGND ARVID REV BKGND input, i.e_, black if dark back- o 0 ground is selected and gray if light back- ground is selected. A separate RBLANK input allows the user to select the amount 2. For blinking, the video outputs are shown as 011, where 0 and 1 are the blink timing Input states. of border around the active area when 3. Foreground includes underline when underlining is specified by AUL= 1. operating in color mode or in mono- 4. When ABLANK= 1, foreground component becomes same as background component. chrome mode with light background. This S. Codes for video outputs are as follows: input can be tied high, in which case the CODE TTLV2 TTLV1 BEAM INTENSITY B 0 Black area outside the active area will be dark, or G Gray it may be pulsed during BLANK periods to W White externally control the border widths. H Highlight 2·100 Signetics MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'm"..IIe1.iN Character Clock Counter other attributes (e.g., overscore) into the foreground and background components The character clock counter divides the video stream. The color mode provides of the character block in monochrome OCLK input to generate the character RGB foreground and background color mode. clock (CCLK). The divide factor is speci- attributes. Both modes provide double In color mode, the colors of the fore- fied by the clock control inputs (C1-CO) as width characters, blink, underline, dot ground and background components are width control and dot stretching. follows: SCB2675B The cursor and attribute inputs are pipe- lined internally to allow for system pipe- specified by the corresponding attribute inputs; AREDF, AGREENF and ABLUEF dictate the color of the foreground compo- 2 DOTSI CCLK line propagations. The cursor input signal nent while AREDB, AGREENB and C1 CO is delayed internally by two CCLKs (one ABLUEB do the same for the background CHAR_ DUTYCYCLE* for RAM and one for the character genera- component. In this mode, the serial dot 0 0 10 5/5 tor), while the attribute inputs are delayed data and pipelined cursor and attributes 0 1 7 4/3 for one CCLK to account for the delay of are combined to generate four video out- 1 0 8 4/4 the character data through the character puts. The RED, GREEN and BLUE outputs 1 1 9 5/4 generator latches. The attribute timing separately contain the corresponding "High/low inputs (BLINK, UL and DOTS) are clocked foreground and background components. into the 2675 at the beginning of each The LUM output is the logical-OR of the scan line time by the falling edge of foreground colors and can be used to SCB2675C BLANK. Thus, these inputs must be in drive a separate monochrome monitor or their proper state at the falling edge of to select a different set of colors for the DOTSI CCLK C1 CO BLANK preceding the scan line where foreground. CHAR_ DUTYCYCLE* they are required to be active. The BLANK 0 0 10 5/5 signal itself is also delayed internally to 0 1 6 3/3 provide for the RAM and character genera- 1 0 8 4/4 tor delays (see figures 6 and 7). Internal 1 1 9 5/4 delays cause the video outputs to be "High/low delayed relative to CCLK as illustrated in VIDEO figure 8. The number of dot clocks/character is nor- mally the number of dots/character as Video Logic listed above. However, when dot width Each character block consists of the three control is specified, the OCLK input is components shown in figure 1. Symbol divided by two before it is applied to the video is generated from the dot data in- character clock counter resulting in the puts 00-08. Underline video is enabled by number of dot clocks/character being the AUL attribute and is generated during double those listed above, although the the scan lines for which the UL input is number of displayed dots/character re- active. Underline and symbol video are Figure 1_ Character Block Definition mains the same. See Dot Modulation sec- always the same intensity or color, and tion ·of this data sheet. other attributes (e.g., ABLlNK) apply to them equally. The combination of under- Video Shift Register line and symbol video is also referred to as On each character boundary, the parallel foreground video. Background video is the input dot data (00-08) is loaded into the area of the character block corresponding video shift register. The data is shifted out to the absence of foreground video. The least significant bit first (~O) at the OCLK assertion of the non-display attribute rate. If 10 dots/character are specified (ABLANK) causes the entire character (Cl-CO=OO), the tenth dot will be the block to be displayed as background. same as 08. The serial dot data from the In monochrome mode, the serial dot data video shift register is routed to the video and pipelined cursor and attributes are logic where it is combined with the cursor combined to generate four video intensi- and attribute control bits to produce the ties (black, gray, white and highlight) video data outputs. which are encoded on the TTLV1 and TTLV2 outputs as follows: Mode Select, Attribute and TTLV2 TTLV1 VIDEO INTENSITY Cursor Control The mode select logic multiplexes the 0 0 Black monochrome and color attribute inputs 0 1 Gray and outputs as specified by the M/C input. 1 0 White The monochrome mode provides blank, 1 1 Highlight reverse video, highlight and two general purpose attributes. The latter may be Table 1 describes the relationship be- used, with external logic, to combine tween attributes and video intensity of the Signetics 2·101 MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROllER (CMAC) SCB2675 'Rmn"II"·'fA Dot Modulation Logic which enables the feature on the entire 1. Make horizontal lines and vertical lines The dot modulation logic controls the display, or low, which disables the feature. appear the same brightness on the video shift register to supply dot stretch- With ADOTM high, the dot width of display. ing and dot width control. characters can be selectively controlled 2. Provide two different brightness levels by assertion of the ADOTM attribute input. for characters without requiring a moni· Dot stretchi ng is controlled by the DOTS When operating in this mode, the dot tor with analog brightness inputs. input which is sampled each scan line at clock input is divided by two before being the trailing (falling) edge of BLANK. If However, note that the effects prod uced applied to other circuits in the CMAC. This DOTS is asserted at that time, all charac· by this feature are highly dependent on affects the CCLK output. ters on the following scan line will have the video amplifier characteristics of the dot stretching applied. Dot stretching When dot width control is enabled as monitor used. causes an extra dot to be added to in· above, two DCLKs are used for each video dividual dots or groups of dots as shown dot period. Asserting ADOTM for a partic· Double Width Logic in figures 2 and 3. Dot stretching can be ular character will cause each active video The double width logic controls the rate at used to: dot of the displayed character to be turned which dots are shifted through the video 1. Compensate for low video bandwidth on for one DCLK and off for the other shift register. When the ADOUBLE input is monitors (since the minimum active DCLK, while if ADOTM is negated for that asserted, the associated character video displayed segment with dot stretching character, the active video dot for that will be shifted at one half the DCLK rate, is two DCLKs). character will be turned on (black back· and the dot information for the next 2. Assure crisp black characters when ground) or off (white background) for both character will be loaded into the shift operating in white background mode. DCLK times (see figures 2 and 4). Only the register two CCLKs later. The CCLK out- 3. Provide thick characters as a means of character video component of the charac· put is not affected. If a double width distinguishing areas of the display. ter block is modulated. Underline video character is specified at the last location and background are not affected by on· of a character row, the second half of the Dot width is controlled by the DOTM and time modulation. Width control can be double width character (one CCLK) will ex· ADOTM inputs. DOTM is tied either high, used to: tend into the horizontal front porch. DOT STRETCHING DOT CLOCK -- - STRETCHED~ DISPLAYED ON MONITOR NORMAL STRETCHED DOT WIDTH CONTROL DOT CLOCK WIDTH ADOTM=O WIDTH -- -- --- ADOTM=1 --- DISPLAYED ON MONITOR WIDTH ADOTM=O WIDTH ADOTM=1 Figure 2. Dot Modulation Timing 2·102 Signetics MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'am",,""·'·' CHARACTER AS STORED ACTUAL CHARACTER DISPLAYED IN CHARACTER GENERATOR WITH DOT STRETCHING EMPLOYED 2 Figure 3. Dot Stretching NORMAL CHARACTER DISPLAY ACTUAL CHARACTER DISPLAY WITHOUT WIDTH CONTROL WITH WIDTH CONTROL F Figure 4. Dot Width Control ABSOLUTE MAXIMUM RATINGS 1 PARAMETER RATING UNIT Operating ambient temperature 2 o to + 70 ·C Storage temperature -65 to + 150 ·C All voltages with respect to ground 3 - 0.5 to + 6.0 V DC ELECTRICAL CHARACTERISTICS TA = O·C to + 70·C, Vee= 5V± 5%, Vss= figure 54 ,5,6 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max V IL Input low voltage 0.8 V V IH Input high voltage 2.0 V VOL Output low voltage IOL=4mA 0.4 V VOH Output high voltage IOH= -4001'A 2.4 V IlL Input low current VIN = O.4V DCLK -800 I'A All other inputs -400 I'A IIH Input high current VIN = 2.4V DCLK 40 I'A All other inputs 20 I'A Icc Vee supply current VIN=OV, Vee=max 80 mA Iss Vss supply current Figure 5 120 mA Signetics 2·103 MICROPROCESSOR DIVISION JANUARY 1983 COLORlMONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'm" ..""·'" AC ELECTRICAL CHARACTERISTICS TA = O·C to + 70·C, vcc= 5V ± 5%, Vee= figure 54 ,5,6 TENTATIVE LIMITS PARAMETER TEST CONDITIONS 25MHz VERSION 18MHz VERSION UNIT Min Max Min Max Dot clock tlmlng 7 fo Frequency 25 18 MHz IOH High time 15 22 ns tOl Low time 15 22 ns Setup times S tse BLANK to CCLK 40 50 ns tSA Attributes to CCLK 40 50 ns Iso DO-D9 to CCLK 60 70 ns tSK CURSOR 10 CCLK 40 50 ns tsc CO, C1 10 DCLK 20 20 ns tSR RBLANK to DCLK 20 20 ns tSM BLINK, UL, DOTS to BLANK 20 20 ns Hold timesS tHe BLANK from CCLK 20 20 ns tHA Attributes from CCLK 20 20 ns tHO DO-D8 from CCLK 30 30 ns tHK CURSOR from CCLK 20 20 ns t HC CO, C1 from DCLK 20 20 ns tHR RBLANK from DCLK 20 20 ns IHM BLINK, UL, DOTS from BLANK 20 20 ns Delay limes 7 C l =5OpF loc CCLK from DCLK 55 70 ns tov Olher oulputs from DCLK 30 60 35 70 ns NOTES 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any conditions other than those described In the AC and DC Electrical Characteristics section of this specification is not implied. 2. For operating at elevated temperatures, the device must be derated based on +15O°C maximum junction temperature. 3. This product includes Circuitry specifically designed for the protection of its Internal devices from damaging effects of excessive static charge. Nonetheless, it is suggested that conventional precautions be taken to avoid applying voltages greater than the rated maxima. 4. Parameters are valid over operating temperature range unless otherwise specified. 5. All voltage measurements are referenced to ground. For testing, all Input signals swing between O.4V and 2.4V with a transition time of 3ns maximum. All time measurements are referenced at input voltages of O.BV and 2.0V and at output voltages of O.BV and 2.0V as appropriate. 6. Typical values are at + 25°C, typical supply voltages and typical processing parameters. 7. See figure 8. 8. See figures 6, 7, 9, and 10. Vee 40 Vee r----< 31.60 1%,l/2W Figure 5. Recommended V BB Test Circuit 2·104 Signetics MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'W"")uJ_.,, -1 _ _...... 1--'5B-1 BLANK I - ~ [;='HB ------------- 2 ATTRIBUTE5 1 lsi 2nd __B_K_G_N_D_4_....L_.::C;.:H;;:A;.:R_..L......:C;.:H;.:A;.:R_..L._ _ _ _ _ _ _ LAST -1 I LAST I 4 .....JL-..;C;.:H;;.A;;.R;........L._.::CH;.:A;.:R;.....-,_B_K_G_N_D_ NOTES: 1. Attributes include: ABLlNK, ABLANK, ARVID, AUL, AHILT, ADOUBLE, ADOTM, two general purpose, and foreground/background colors. One CCLK delay for dot data (obtained from delay through character generator). See figure 8 for detail timing of video outputs 4. Non-active scan time. VIDEO reverts to polarity selected by the BKGND Input In monochrome mode Figure 6. CMAC Pipeline Timing CHARACTER WITH CURSOR ~ Figure 7. Cursor Pipeline Timing Signetics 2·105 MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'm''',ii,ie'N I---'/ID --l DCLK CCLK, _=! ~tDC ~---------------------------------- --I OTHER OUTPUTS Figure 8. Output Pipeline Timing MONOCHROME MODE J.L....JUl rtHAj ~2 I I tHR~ ~ "~.1 n t VIDEO GRAY \ BLACK I GRAY ~, Figure 9. BKGND and RBLANK Timing During Inactive Scan Time (Blank = 1) BLACK I DCLK CO,C' J~H~----------------~~---------------------~---------- NOTE 1. The high and low times of CCCK may be controlled independently_ Figure 10. Clock Divider Timing 2·106 Signetics MICROPROCESSOR DIVISION JANUARY 1983 COLOR/MONOCHROME ATTRIBUTES CONTROLLER (CMAC) SCB2675 'm""ii"e'N ~ LUM I MONITOR 2 ATTRIBUTE RAM Figure 11. System Block Diagram of SCB2675 in Color Mode TTLV1) 2670 TTLV2 MONITOR CHARACTER GENERATOR GENERAL } PURPOSE OUTPUTS ATTRIBUTE RAM Figure 12. System Block Diagram of SCB2675 in Monochrome Mode Signe1ics 2·107 I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I Section 3 Single Chip Microcomputers Signetics MICROPROCESSOR DIVISION JANUARY 1983 SINGLE CHIP 8-BIT MICROCOMPUTERS SCN80 SERIES 'm"")..i••,, DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SCN80 Series microcom- • 8·bit CPU, ROM, RAM, 1/0 in a 40'pin puters are self-contained, 8-bit processors package which contain the system timing, control • 24 quasi bidirectional 110 lines logic, RAM data memory, ROM program Vee • Two test inputs memory (8048/49/50 only), and 1/0 lines Tl • Internal counter/timer necessary to implement dedicated control P27 functions. All SCN80 Series devices are • Single·level vectored interrupts: exter- nal, counterltimer P26 pin and program compatible, differing only in the size of the on-board program • Over 90 instructions, 70% single byte P25 ROM and data RAM, as follows: TYPE RAM SIZE ROM SIZE • 1.36"s or 2.5"s instruction cycle, all in- structions one or two cycles P24 P17 3 • Expandable memory and 1/0 P16 SCN8048 64x8 1Kx8 • Low voltage standby P15 SCN8049 128x 8 2Kx8 • TTL compatible inputs 'and outputs SCN8050 256 x 8 4Kx8 Wii • Single + 5V power supply SCN8035 64x8 - ALE P13 SCN8039 128x8 - DBO P12 SCN8040 256x8 - DBl Pl1 DB2 Pl0 Program memory can be expanded exter- nally up to a maximum total of 4K bytes DB3 VDD without paging. Data memory can also be DB4 PROG expanded externally. 1/0 capabilities can DB5 P23 be expanded using standard devices or the 8243 1/0 expander. FUNCTIONAL DESCRIPTION DB6 P22 DB7 P2l The SCN86 Series processors are designed The following is a general functional de- to be efficient control processors as well scription of the SCNoo Series microcom- Vss P20 as arithmetic processors. They provide an puters. Refer to the block diagram. TOP VIEW instruction set which allows the user to directly set and reset individual lines with- in its 1/0 ports as well as test individual bits within the accumulator. A large vari· ety of branch and table look-up instruc- tions make these processors very efficient in implementing standard logic functions. Also, special attention has been given to ORDERING CODE code efficiency. Over 70% of the instruc- tions are a single byte long and all others are only 2 bytes long. An on-chip 8-bit counter is provided which can count, under program control, either internal clock pulses (with a divide by 32 1 SCN80 IT] AD D D 40 (CPxxxx) [CUSTOM .0. PAnE.' ,U.B.. Applies to masked ROM versions only. Number will be assigned by Signetlcs. Contact Signetlcs sales office for ROM pattern submission requirements. prescaler) or external events. The counter can be programmed to cause an interrupt 4O-Pln on terminal count. ' - - - - PACKAGE N = Plastic DIP I = Ceramic DIP ' - - - - - SPEED 6 = 6MHz clock = B 11MHz clock ' - - - - - - OPERATING TEMPERATURE RANGE C=O·to +70·C ' - - - - - - - ROM/RAM (bytes) 35= EXT/64 48= 1K164 39 = EXT/128 49 2K1128 = 40 = EXT/256 50 = 4K1256 Signetics 3·1 MICROPROCESSOR DIVISION JANUARY 1983 SINGLE CHIP 8-BIT MICROCOMPUTERS SCN80 SERIES 'am""""·"t PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION DBO-DB7 12-19 1/0 Bus. Bidirectional 1/0 port can be read from or written into using the RD or WR strobes. This port can also be statically latched. Contains the 8 lower address bits during an access of external memory and receives the addressed instruction under control of PSEN. PSEN, ALE, RD, and iiiJ1!i determine whether the access is an in· struction fetch or a RAM read/write. P10-P17 27-34 1/0 Port 1. 8-bit quasi·bidirectionall/O port.' P20-P27 21-24, 1/0 Port 2. 8·bit quasi·bidirectionall/O port.' P20-P23 contain the 4 higher order address bits during an 35-38 access of external program memory and also serve as a 4·bit 1/0 expander bus for the 8243. PROG 25 1/0 Output strobe (active low) for the 8243 1/0 expander. TO 1 1/0 Input pin sensed using the JTO and JNTO instructions. Clock output pin when designated as such by the ENTO ClK instruction. T1 39 I Input pin sensed using the JT1 and JNT1 instructions. Can be designated as the timerlcounter input by the STRT CNT instruction. INT 6 I Interrupt input pin. When low causes interrupt if interrupt is enabled. Can also be used as an input which is testable with the JNI instruction. Interrupt is disabled during and after a RESET. RESET 4 I Reset input pin is that used to initialize the microcomputer. Active low. Internal pullup - 75k1l 2. During program verification the address is latched by a "0" to "1" transition on RESET and the data at the addressed location is output on BUS. ALE 11 0 Address latch enable. Occurs each clock cycle and is useful for clocking and sampling. During external program or data memory access, ALE is used to strobe the address information multiplexed on the DBO-DB7 outputs. RD 8 0 Read strobe. Active low strobe used to gate data onto BUS lines when reading from an external source. WR 10 0 Write strobe. Active low strobe used to write data from BUS lines to an external destination. EA 7 I External access input. When high forces instruction fetches from external memory. Internal pullup -10MIl. PSEN 9 0 Program store enable. Active low strobe that occurs only during a fetch from external program memory. SS 5 I Single step. Active low input which is used with ALE to cause the microcomputer to execute a single instruction. Internal pullup - 300kll. XTAL1 2 I One side 01 crystal (or l) input for internal oscillator. Can also be used as an input for an external timing source 2. XTAl2 3 I Other side 01 crystal. Vss 20 I Circuit ground. Vce 40 I Power input, + 5VDC. Voo 26 I RAM power input; low power standby pin. NOTES 1. Each pin on Ihese ports can be assigned, under program control, to be an input or an output. A pin is designated as an input by writing a logic "1" to the pin. RESET sets all pins to the input mode . .Each pin has an internal pullup of approximately 50k!l. 2. Non-standard TTL V ,H . 3·2 Signetics MICROPROCESSOR DIVISION JANUARY 1983 SINGLE CHIP 8-BIT MICROCOMPUTERS SCN80 SERIES 'm""""··,, BLOCK DIAGRAM P20 P27 3 RESIDENT ROM (8048149/50 ONLy) PORT 1 P10 r-------------------~------------------~~----------~~--_..~--~¥-------~------~~~ B~~:ER AND LATCH REGISTER 2 REGISTER 3 REGISTER 4 ~ RAM SUPPLY B CONDITIONAL BRANCH LOGIC REGISTER 5 POWER v~ + 5V MAIN SUPPLY ffi REGISTER 6 Q SUPPLY V!!..OND o ~ REGISTER 7 8 lEVEL STACK (VARIABLE LENGTH) OPTIONAL SECOND REGISTER BANK DATA STORE RESIDENT RAM ARRAY TIMING INTERRUPT INITIALIZE EXPANDER CPU OSCILLATOR PROGRAM SINGLE READ/WRITE OUTPUT STROBE MEMORY XTAL MEMORY STEP STROBES SEPARATE ENABLE ADDRESS LATCH ENABLE Signetics 3·3 MICROPROCESSOR DIVISION JANUARY 1983 SINGLE CHIP 8-BIT MICROCOMPUTERS SCN80 SERIES 'mn"""."J PROGRAM MEMORY either of two RAM pointer registers at An interrupt or CALL to a subroutine Resident program memory consists of up locations 0 and 1. The first eight locations causes the contents of the program to 4K bytes of ROM. The program memory of RAM (0-7) are designated as working counter to be stored In one of the 8 regis· is divided Into pages of 256 bytes each. As registers and are directly addressable by ter pairs of the program counter stack. The shown in the memory map, figure 1, pro· several instructions. pair to be used is determined by a 3·bit gram memory is also divided into two stack pointer which is part of the Program By selecting register bank 1, RAM loca· 2048·byte banks, MBO and MB1. 4096 Status Word (pSW). Data RAM locations 8 tions 24-31 become the working registers, bytes can be addressed directly. If more through 23 are available as stack registers replacing those in register bank 0 (0-7). memory is required, an 1/0 port can be and are used to store the program counter used to address locations over 4095. RAM locations 8-23 are designated as the and 4 bits of PSW. The stack pointer, when stack. Two locations (bytes) are used per initialized to 000, points to RAM locations There are three locations in program memo CALL, allowing nesting of up to eight sub· 8 and 9. The first subroutine jump or inter· ory of special importance. These locations routines. rupt resulis in fheprogram ·couriter·con· contain the first instruction to be ex· tents being transferred to locations 8 and ecuted upon the occurrence of one of If additional RAM is required, up to 256 9 of the RAM array. The stack pointer is three events. bytes may be added and addressed direct· then incremented by one to point to loca· Iy using the MOVX instructions. If more LOCATION EVENT tions 10 and 11 in anticipation of another RAM is required an 1/0 port can be used to CALL. Nesting of subroutines within sub· 0 Activation then deactiva· select one (256·byte) bank of external routines can continue up to eight times tion of the RESET line. memory at a time. without overflowing the stack. If overflow 3 Activation of the I NT line does occur the deepest address stored when the external inter· PROGRAM COUNTER AND (location 8 and 9) will be overwritten and rupt is enabled. STACK lost since the stack pointer overflows 7 An overflow of the timerl from 111 to 000. It also underflows from counter if the TIC interrupt The Program Counter (PC) is a 12·bit 000 to 111. is enabled. counterlregister that pOints to the loca· tion from which the next instruction is to The end of a subroutine, which is sig· be fetched. The 8048 and 8049 will auto· nailed by a return instruction (RET or DATA MEMORY matically address exernal memory when RETR), causes the stack pointer to be Resident data memory, as shown in figure the boundary of their internal memory is decremented and the contents of the reo 2, consists of up to 256 bytes of RAM. All exceeded. All processors access external suiting register pair to be transferred to locations are indirectly addressable by memory if EA is high. the program counter. -0 255 8040/8050 USER RAM -8 128)( 8 128 127 8039/8049 USER RAM 64>< 8 64 "'--2047 - 1m j SEL ... MBO 63 803518048 USER RAM 32 32x 8 31 BANKI ~ "'B WORKING DIRECTLY REGISTERS ADDRESSABLE 8x8 WHEN BANK 1 1023 I----Rl~--- IS SELECTED i 24 23 I----iio~--- -.J 0- ;: ~ 8 LEVEL STACK ADDRESSED ~ INDIRECTLY z 0 i 0- ;: 8 7 6 - r-- LOCATION7-TIMER INTERRUPT VECTORS PROGRAM HERE OR USER RAM 16 x 8 THROUGH Rl OR RO (RO' OR Rl ') 0 5 Z 4 8 0 3 2 1 - - LOCATION 3-EXTERNAL INTERRUPT VECTORS PROGRAM HERE 7 BANKO WORKING REGISTERS ~ DIRECTLY ADDRESSABLE 7 [8[ 5 4 ~ RESET VECTORS 8x8 WHEN BANK 0 ,-0 312[1 [0 L-L- ADDRESS PROGRAM HERE 0 ===ffi::: RO IS SELE1CTED Figure 1. Program Memory Map Figure 2. Data Memory Map 3·4 Signetics MICROPROCESSOR DIVISION JANUARY 1983 SINGLE CHIP 8-BIT MICROCOMPUTERS SCN80 SERIES 'W""lId.'il OSCILLATOR AND CLOCK divided by 32 before they are input to the Ports 1 and 2 8-blt counter. External events are input The processor contains its own internal Ports 1 and 2 are each 8 bits wide and have directly to the counter. The maximum fre- oscillator and clock driver. A crystal, in- Identical characteristics. Data written to quency that can be counted is one third of ductor, or external pulse generator may be these ports is statically latched and re- the frequency of the cycle counter. The used to determine the oscillator frequency mains unchanged until rewritten. As input minimum positive duty cycle that can be (see figure 3). The output of the oscillator ports these lines are non-latching, i.e., in- detected is 0.2 tCY' The counter is under is divided by three and can be output on puts must be present until read by an in- program control and can be made to gen- the TO pin by executing the ENTO ClK in- put instruction. Inputs are fully TIL com- erate an interrupt to the processor when It struction. This ClK signal is divided by patible and outputs will drive one standard overflows. five to define a machine (instruction) TTL load. cycle. It is available on pin 11 as ALE. INTERRUPT An interrupt may be generated by either an The lines of ports 1 and 2 are called quasi- bidirectional because of a special output 3 TIMER/EVENT COUNTER circuit structure which allows each line to external input (iNT, pin 6) or the overflow An internal counter is available which can of the internal counter, when enabled. In serve as an input, an output, or both even count either external events or machine either case, the processor completes exe- though outputs are statically latched. Fig- cycles ( ... 32). The machine cycles are cution of the present instruction and then ure 4 shows the circuit configuration. does a CAll to the interrupt service rou- Each line is continuously pulled up to tine. After service, a RETR instruction + 5V through a resistive device of rela- restores the machine to the state it was tively high impedance (-50K). This pullup prior to the interrupt. The external inter- is sufficient to provide the source current .---.-.,....,.;:..! XTALI rupt has priority over the internal inter- for a TIL high level yet can be pulled low rupt. by a standard TTL gate thus allowing the same pin to be used for both input and IN PUT/OUTPUT output. To provide fast switching times In XTAL2 a "0" to "1" transition a relatively low im- C=15-25pF C The processor has 27 lines which can be (INCLUDES SOCKET, I used for input or output functions. These pedance device (-5kO) is switched In STRAy) -=- lines are grouped as 3 ports of 8 lines each momentarily (-500ns) whenever a "1" is SERIES RESONANT, AT CUT CRYSTAL which serve as either Inputs, outputs or written to the line. When a "0" is written to bidirectional ports and 3 "test" inputs the line, a low Impedance (-3000) device which can alter program sequences when overcomes the light pullup and provides DRIVING tested by conditional jump instructions. TTL current sinking capability. FROM EXTERNAL SOURCE +5V 470D Jo- ( 2 . 0 2.o)C. TEST POINTS 0.45 .,.:0:;:.8:...._ _ _ _ _ _::;0.::,.8 0.8 0.8 0.45 0.45 Figure 5. ACTestlng Input, Output, Float Waveforms NOTES: 1. AC testing inputs are dirven at 2.4V for a logic "1" and O.45V for a logic "0". 2. Timing measurements are made at 2.0V for a logic "1" and O.8V for a logic "0", 3. For timing purposes, the float state is defined as the pOint at which a PO pin sinks 3.2mA or sources 400~A at the voltage test levels. XTAl2 ALE ---1 PSEN ---1 iffi ViR BUS (PO) INDICATES ADDRESS TRANSITIONS ~ ____________ ~r-- PORT OUT OLD DATA NEW DATA PORT IN ______ ~r_l~ _____________________________________________ SAMPLING TIME OF 110 PORT PINS DURING INPUT (INCLUDING INTO AND INT1) SERIAL PORT ClK (SHIFT MODE) Figure 6. Timing Waveforms NOTE All internal timing is referenced to the internal time states shown at the top of the page. This waveform represents the signal on the X2 input of the oscillator. This diagram represents when these signals are actually clocked within the chip. However, the time It takes a signal to propagate to the pins Is in the range of 5O-150ns. Pro- pagation delays are dependent on many variables, such as temperature and pin loading. Even the different signals vary. Typically though, AD and WR have propagation delays of approximately 50ns and the other timing signals approximately 65ns. At room temperature, fully loaded, these differences in propagation delays between signals have been integrated into the timing specs. 3·22 Signetics MICROPROCESSOR DIVISION JANUARY 1983 SINGLE CHIP 8-BIT MICROCOMPUTERS SCN8031, SCN8051 Advance Information TABLE 1 Instruction Set Description ARITHMETIC OPERATIONS DATA TRANSFER (Continued) Mnemonic Description Byte Cycles Mnemonic Description Byte Cycles ADD A,Rn Add register to accumulator 1 1 MOV OPTR,#dataI6 Load data pointer with a 16·bit constant 3 2 ADD A,direct Add direct byte to accumulator 2 1 MOVC A,@A+ DPTR Move code byte relative to DPTR to A ADD A,@Ri Add indirect RAM to accumulator MOVC A,@A+PC Move code byte relative to PC to A ADD A,R#data Add immediate data to accumulator MOVX A,@Ri Move external RAM (B-bit addr) to A ADDC A,Rn Add register to accumulator with carry MOVX A,@DPTR Move external RAM (16-bit addr) to A ADDC A,direct Add direct byte to A with carry flag MOVX @Ri,A Move A to external RAM (B-bit addr) ADDC A,@Ri Add Indirect RAM to A with carry flag MOVX @DPTR,A Move A to external RAM (16-bit addr) ADDC SUBB SUBB A,#data A,Rn A,direct Add immediate data to A with carry flag Subtract register from A with borrow Subtract direct byte from A with borrow PUSH direct POP XCH direct A,Rn Push dIrect byte onto stack Pop direct byte from stack Exchange register with accumulator 3 SUBB A,@Ri Subtract indirect RAM from A wfborrow XCH A,direct Exchange direct byte with accumulator SUBB A,#data Subtract immed. data from A wfborrow XCH A,@Ri Exchange indirect RAM with A INC A Increment accumulator XCHD A,@RI Exchange low-order digit indo RAM wfA INC Rn Increment regIster INC direct Increment direct byte BOOLEAN VARIABLE MANIPULATION INC @Ri Increment indirect RAM Mnemonic Description Byte Cycles DEC A Decrement accumulator CLR C Clear carry flag 1 1 DEC Rn Decrement register CLR bit Clear direct bit DEC direct Decrement direct byte SETS C Set carry flag DEC @Ri Decrement indirect RAM SETS bit Set direct bit INC DPTR Increment data pointer CPL C Complement carry flag MUL AB Multiply A & B CPL bit Complement direct bit DIV AS Divide A by B ANL C,bit AND direct bit to carry flag DA A Decimal adjust accumulator ANL C,/bi! AND complement of direct bit to carry ORL C,bit OR direct bit to carry flag LOGICAL OPERATIONS ORL C,Ibit OR complement of direct bit to carry Mnemonic Destination Byte Cycles MOV C,bit Move direct bit to carry flag ANL A,Rn AND register to accumulator 1 1 MOV bit,C Move carry flag to direct bit ANL A,direct AND direct byte to accumulator 2 ANL A,@Ri AND indirect RAM to accumulator PROGRAM AND MACHINE CONTROL ANL A,#data AND immediate data to accumulator Mnemonic Description Byte Cycles ANL direct,A AND accumulator to direct byte ACALL addr11 Absolute subroutine call 2 2 ANL direct,#data AND immediate data to direct byte LCALL addr16 Long subroutine call ORL A,Rn OR register to accumulator RET Return from subroutine ORL A,direct OR direct byte to accumulator RETI Return from interrupt ORL A,@Ri OR indirect RAM to accumulator AJMP addrl1 Absolute jump ORL A,#data OR immediate data to accumulator LJMP addr16 Long jump ORL direct, A OR accumulator to direct byte SJMP rei Short jump (relative addr) ORL direct,#data OR immediate data to direct byte JMP @A+DPTR Jump indirect relative to the DPTR XRL A,Rn Exctusive-OR register to accumulator JZ rei Jump it accumulator is zero XRL A,direct Exclusive·OR direct byte to accumulator JNZ rei Jump if accumulator IS not zero XRL A,@Ai Exclusive-OR indirect RAM to A JC rei Jump if carry flag is set XRL A,#data Exclusive-OR immediate data to A JNC rei Jump if no carry flag XRL dnect,A Exclusive-OR accumulator to direct byte JS bit,rel Jump if direct bit set XRL direct,#data Exclusive·OR immediate data to direct JNS bit,rel Jump if direct bit not set CLR A Clear accumulator JSG bit, rei Jump if direct bit is set & clear bit CPL A Complement accumulator CJNE A,direct,rel Compare direct to A & jump if not equal RL A Rotate accumulator left CJNE A,#data,rel Camp. immed. to A & jump if not equal RLC A Rotate A left through the carry flag CJNE Rn,#data,rel Camp. Immed. to reg. & jump if not equal RR A Rotate accumulator right CJNE @Ri,#data,rel Camp. immed. to indo &jump if not equal RRC A Rotate A right through carry flag DJNZ Rn,rel Decrement register & jump if not zero SWAP A Swap nibbles within the accumulator DJNZ direct, rei Decrement direct & Jump jf not zero NOP No operation DATA TRANSFER Mnemonic Description Byte Cycles Notes on data addressing modes: MOV A,Rn Move register to accumulator 1 1 Rn -Working register RO-R7 MOV A,direct Move direct byte to accumulator 2 direct -128 internal RAM locations, any I/O port, control or status register MOV A,@Ri Move indirect RAM to accumulator @RI -Indirect mternal RAM location addressed by register RO or R1 MOV A,#data Move Immediate data to accumulator #data -8-bit constant mcluded in instruction MOV Rn,A Move accumulator to register #data16 -16-bit constant included as bytes 2 & 3 of instruction MOV An,direct Move direct byte to register bit -128 software flags, any 1/0 pin, control or status bit MOV Rn,#data Move immediate data to register MOV direct,A Move accumulator to direct byte Notes on program addressing modes: MOV direct,Rn Move register to direct byte addr16 -Destination address for LCALL & LJMP may be anywhere within the MOV direct,direct Move direct byte to direct 64-kilobyte program memory address space. MOV direct,@Ri Move indirect RAM to direct byte addr11 -Destination address for ACALL & AJMP will be within the same MOV direct,#data Move immediate data to direct byte 2-kilobyte page of program memory as the first byte of the following MOV @Ri,A Move accumulator to indirect RAM Instruction. MOV @Ri,direct Move dIrect byte to indirect RAM rei -SJMP and all conditional jumps include an 8·bit offset byte. Range is MOV @Ri,#data Move immediate data to indirect RAM + 127 - 128 bytes relative to first byte of the following instruction. Signetics 3·23 MICROPROCESSOR DIVISION JANUARY 1983 CMOS SINGLE CHIP8-BIT MICROCOMPUTERS SCC80C31, SCC80C51 PRODUCT BRIEF, contact your 5ignetics sales office for additional information. DESCRIPTION FEATURES PIN CONFIGURATION The 51gnetlcs 5Cca0C31/80C51 is a stand- • 4K x S ROM (SCNS051) alone, high performance single-chip com- • 12SxS RAM puter fabricated with 5lgnetics' highly- • Four S-bit ports, 32 1/0 lines Vee reliable CM05 technology and packaged • Two 16-blt timer/event counters PO.O ADO in a 40-pin DIP. It provides the hardware • High-performance full-duplex serial PO.l ADI features, architectural enhancements and channel PO.2 AD2 new instructions that are necessary to • External memory expandable to 12SK make it a powerful and cost effective con- • Boolean processor PO.3 AD3 troller for applications requiring up to 64K • SCN80 series architecture enhanced PO.4 AD4 bytes of program memory andlor up to 64K with: PO.5 AD5 bytes of data storage. Non·paged jumps Direct addressing PO.6 AD6 The 5CC80C51 contains a 4K x 8 read-only Four S-reglster banks PO.7 AD7 program memory; a 128 x 8 readlwrite data Stack depth up to 12S-bytes memory; 32 1/0 lines; two 16-bit timerl RxD P3.0 EAlVoo Multiply, divide, subtract, compare counters; a five-source, two-priority-Ievel, TxD P3.1 ALEIPROG • Most instructions execute in 11'$ nested interrupt structure; a serial 1/0 port • 41'S multiply and divide iRTOP3.2 PSEN for either multi-processor communica- tions, 1/0 expansion, or full duplex UART; Jl'/T1 P3.3 P2.7 A15 and on-chip oscillator and clock circuits. TO P3.4 P2.6 A14 binary and BCD arithmetic and excels in The 5CC80C31 is identical, except that it bit-handling capabilities. Efficient use of Tl P3.5 P2.5 A13 lacks the program memory. For ·systems program memory results from an instruc- WIi P3.6 P2.4 A12 that require extra capability, the tion set consisting of 44% one-byte, 41 % 5CC80C51 can be expanded using stand- Ali P3.7 P2.3 All two-byte, and 15% three-byte Instruc- ard TIL compatible memories and byte XTAL2 tions. With a 12MHz crystal, 58% of the hi- P2.2 AID oriented peripheral controllers. structions execute in 11's, 40% in 21'S and XTAL1 P2.1 A9 The 5CC80C51 microcomputer, like Its multiple and divide require only 41'S. vss P2.0 A8 5CC80C48 predecessor, is efficient both Among the many instructions added to as a controller and as an arithmetic pro- the standard 5CC80C48 instruction set TOP VIEW cessor. It has extensive facilities for are multiply, divide, subtract and compare. BLOCK DIAGRAM LOGIC SYMBOL FREQUENCY REFERENCE COUNTERS r ----------- -1 RSTIVPD I , - L - -....... OSCILLATOR 4096 BYTES TWO 16·BIT I .."' => PROGRAM 128 BYTES AND TIMER/EVENT I TIMING MEMORY (8051) DATA MEMORY COUNTERS I I I I I I I I I I I "' I I g[RXD-r (J ~ INTO- TxD..- CO) I I L _.J ~l~=:l~ ---< ) DO-07 ==>-< ) { > < > FC0-2 )('--_ _ _ _ _ _ _X X'-_______~ *Internal Signal Only J..----Word Write---~-- Odd Byte Write-~- Even ByteWrite--..,f Figure 11. Word and Byte Write Cycle Timing 4·8 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16·811 MICROPROCESSOR SCN68000 SERIES 'm"n!..J_." Read-Modify-Write Cycle - The read- Bus Arbitration device. Figure 15 is a timing diagram for modify-write cycle performs a read, modi- the same operations. The technique used Bus arbitration is a technique used by fies the data in the arithmetic-logic unit, allows processing of bus requests during master type devices to request, be and writes the data back to the same ad- data transfer cycles. granted, and acknowledge bus master- dress. In the SCN68000, this cycle is indi- The timing diagram shows that the bus re- ship. In its simplist form, it consists of: visible in that the address strobe is assert- quest is negated at the time that an ed throughout the entire cycle. The test 1. Asserting a bus mastership request. acknowledge is asserted. This type of and set (TAS) instruction uses this cycle 2. Receiving a grant that the bus is avail- operation would be true for a system con- to provide meaningful communication be- able at the end of the current cycle. Sisting of the processor and one device tween processors in a multiple processor capable of bus mastership. In systems environment, and is the only instruction 3. Acknowledging that mastership has been assumed. having a number of devices capable of that uses it. The read·modify·write cycle is mastership, the bus request line from always a byte operation. The flow chart is Figure 14 is a flow chart showing the each device is wire-ORed to the processor. given in figure 12 and a timing diagram is detail involved in a request from a single In this system, there could be more than shown in figure 13. 4 BUS MASTER SLAVE Address Device 11 Set R/W to Read 21 Place Function Code on FCO- FC2 Inp! Data 31 Place Address on A 1-A23 11 Decode Address 41 Assert Address Strobe IASI 2) Place Data on 00-07 or 08-015 51 Assert Upper Data S~e IUDSI or 3) Assert Data Transfer Acknowledge Lower Data Strobe ILDS) IDTACK) I 1) Latch Data 1 Acquire Data I 2) Negate UDS or LOS , 3) Start Data Modification Terminate Cycle l 1) Remove Data from 00-07 or 08-015 2) Negate Di'ACK I I Start Output Transfer 1) Set R/W to Write 2) Place Data on 00-07 or 08-015 31 Assert Upper Data Strobe IUDSI or Lower Data Strobe ([55) ,J"", 1) Store Data on 00-07 or 08-015 2) Assert Data Transfer Acknowledge l (DTACK) I f Terminate Output Transfer I , 1) Negate iJDS or LOS 2) Negate AS 3) Remove Data from 00-07 or 08-015 4) Set Riiiii to Read Terminate Cycle I 11 Negate DTACK I Start Nel Cycle Figure 12. Read-Modify·Write Cycle Flow Chart Signetics 4-9 MICROPROCESSOR DIVISION JANUARY 1983 16·BIT MICROPROCESSOR SCN68000 SERIES 'm""lIeI.'" SO 51 52 S3 S4 55 S6 57 S8 S9S10511 S12513514S15516517S18S19 CLK A1-A23 --'""'\\\~------~==========~--~I AS DDS or LDS I \ I~-- R/iN \ ~ i5'fAci( \ I \ , - 08-015 ( ) ( >- FC0-2 :x____________________ ~~ ____________________ ~x: j.------------- 'Indivisible Cycle' -----------+1 Figure 13. Read-Modify-Write Cycle Timing one bus request being made. The timing PROCESSOR REQUESTING DEVICE diagram shows that the bus grant signal is Request the Bus negated a few clock cycles after the tran- 1) Assert Bus Request (SR) sition of the acknowledge (BGACK) signal. I However, if the bus requests are still pend- t ing, the processor will assert another bus , grant within a few clock cycles after it was Grant Bus Arbitration negated. This additional assertion of bus 1) Assert Bus Grant (BG) grant allows exterrial arbitration circuitry I to select the next bus master before the current bus master has completed its re- quirements. Acknowledge Bus Mastership 1) External arbitration determines next bus Requesting the Bus - External devices, master capable of becoming bus masters, request 2) Next bus master waits for current cycle to the bus by asserting the bus request (BR) complete signal. This is a wire-ORed signal (al- 3) Next bus master asserts Bus Grant though it need not be constructed from Acknowledge (BGACK) to become new open collector devices) that indicates to master the processor that some external device 4) Bus master negates BR I requires control of the external bus. The processor is effectively at a lower bus f , priority level than the external device and Terminate Arbitration will relinquish the bus after it has com- 1) Negate BG (and wait for BGACK to be pleted the last bus cycle it has started. negated) When no acknowledge is received before the bus request signal goes inactive, the Operate as Bus Master processor will continue processing when it detects that the bus request is inactive. 1) Perform Data Transfers (Read and Write cycles) according to the same rules the pro- This allows ordinary processing to con- tinue if the arbitration circuitry in- cessor uses. , advertently responded to noise. , Release Bus Mastership 1) Negate BGACK Re-Arbitrate or Res-_=:_:_=_=_--------__:_::=~==_:_----------_=_----- Processor .. I ... Bus Inactive .. I.. Alternate Bus Master .. I .. Processor .. Figure 19. Bus Arbitration with Bus Inactive Signetics 4·13 MICROPROCESSOR DIVISION JANUARY 1983 16-BIT MICROPROCESSOR SCN68000 SERIES 'm""lIeI.'" BR asserted Bus released from three state and BR sampled Processor starts next bus C Y C l e r n Bus three stated-------, BGACK negated internal BGACK negated t BGACK samPled===:-l t SO Sl S2 S3 S4 S5 S6 S7 so S 1 S2 S3 S4 S5 S6 S7 SO S1 BR\ I BG \ I BGACK \ I A1-A23 ) AS \ f' UOS \ f' LOS \ f' FCO-FC3 ==:x ) R/W OTACK '---1 00-015 .. Processor -I'" Alternate Bus Master Figure 20. Bus Arbitration During Processor Bus Cycle Special Case AS \~ _____________________________JI \'----- LOS/Dm; - - - - . \ -.I~--- -------\....- - - - R/W OTACK----------------------------------------~ \ =~==~(~~~~~~~~~~~~~~~~~~~==j ==x=~==============~-------~ ~-~======== 00-015 FCO-2 BERR \ ~--------------------------~================~ I_Initiate _1_ _ 1_ _ I _ Initiate Bus ~ - ~ - -Response Faliure- ~ - - Bus Error Detection --~----- Read Error Stacking Figure 21. Bus Error Timing 4·14 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-81T MICROPROCESSOR SCN68000 SERIES 'mil,,'lei·'fJ ~----------~! ;'---------------------------------------------------------,\\~---------------~! !~--- \ r- ~==~~~)===============(~~~~ ~==~----~x~========================~x==== L.-.._----'/ 4 ~--------------------~! f.- - - Read- *- - -- Halt-- ~ - Rerun- - -.j Figure 22. Rerun Bus Cycle Timing ClK AS \'-______---.J! \~_______________...J/ iJ5S/UOS---"""""'\ ;,-------------""""1\ ;'--- Riw DTACK \ r-- / \ 00-015 FC02 =====~(;~~~~~==============(~~~~~2}--- =x x:== HALT \L_ _ _ _ _ _ _ _-J! f.- -Read- - - +- - - Halt - - -+ - - Read- -.j Figure 23. Halt Signal Timing Halt Operation with No Bus Error - The cycle, then changing to the 'halt' mode. When the processor completes a bus halt input signal to the SCN68000 can be Thus, the single step mode allows the cycle after recognizing that the halt signal used to perform a haltlrun/single·step user to proceed through (and therefore is active, most three·state signals are put function. The halt and run modes are debug) processor operations one bus in the high-impedance state. These in· somewhat self explanatory in that, when cycle at a time. clude address lines and data lines. This is the halt signal is constantly active, the Figure 23 shows the timing required for required for correct performance of the processor 'halts' (does nothing) and when correct single·step operations. Some care rerun bus cycle operation. the halt signal is constantly inactive, the must be exercised to avoid harmful inter- While the processor is honoring the halt processor 'runs' (does something). actions between the bus error signal and request, bus arbitration performs as usual. The single·step mode is derived from cor· the halt pin when using the single cycle That is, halting has no effect on bus arbi· rectly timed transitions on the halt signal mode as a debugging tool. This is also tration. It is the bus arbitration function input. It forces the processor to execute a true of interactions between the halt and that removes the control signals from the single bus cycle by entering the 'run' reset lines since these can reset the pro· bus. mode until the processor starts a bus cessor. Signetics 4·15 MICROPROCESSOR DIVISION JANUARY 1983 16·811 MICROPROCESSOR SCN68000 SERIES 'tDSJ""li"eiij The halt function and the hardware trace execution. If a bus error occurs while Halt termination: HALT is asserted at the capability allow the hardware debugger to reading the vector table (or at any time same time, or precedes DTACK (no BERR) trace single bus cycles or single instruc- before the first Instruction is executed), cases 2 and 3. tions at a time. These processor capabil- the processor reacts as if a double bus ities, along with a software debugging fault has occurred and it halts. Only an ex- Bus error termination: BERR Is asserted In package, give total debugging flexibility. ternal reset will start a halted processor. lieu of, at same time, or preceding DTACK (case 4); BERR negated at same time, or Double Bus Faults - When a bus error ex- Relationship of DTACK, BERR, after DTACK. ception occurs, the processor will attempt and HALT to stack several words containing informa- Rerun termination: HALT and BERR tion about the state of the processor. If a In order to properly control termination of asserted at the same time, or before bus error exception occurs during the a bus cycle for a rerun or a bus error condi- DTACK (cases 6 and 7); HALT must be stacking operation, there have been two tion, DTACK, BERR, and HALT should be negated at least one cycle after BERR. bus errors in a row, which is commonly asserted and negated on the rising edge Case 5 indicates BERR can precede HALT referred to as a double bus fault. When a of the SCN68000 clock. This will assure which allows fully asynchronous asser- double bus fault occurs, the processor will that when two signals are asserted simul- tion. halt. Once a bus error exception has oc- taneously, the required setup time (#47) curred, any bus error exception occurring for both of them will be met during the Table 4 details the resulting bus cycle ter- before the execution of the next instruc- same bus state. mination under various combinations of tion constitutes a double bus fault. This, or some equivalent precaution, control signal sequences. The negation of should be designed external to the these same control signals under several Note that a bus cycle which is rerun does conditions Is shown in table 5 (DTACK is SCN68000. Parameter #48 is intended to not constitute a bus error exception, and assumed to be negated normally in all ensure this operation in a totally asyn- does not contribute to a double bus fault. cases; for best results, both DTACK and chronous system, and may be ignored if This means that as long as the external BERR should be negated when address the above conditions are met. hardware requests it, the processor will strobe Is negated). continue to rerun the same bus cycle. The preferred bus cycle terminations can be summarized as follows (case numbers The bus error pin also has an effect on the Example A: A system uses a watch-dog refer to table 4): processor operation after the processor timer to terminate accesses to un- receives an external reset input. The pro- populated address space. The timer cessor reads the vector table after a reset Normal termination: DTACK occurs first asserts DTACK and BERR simultaneousl to determine the address to start program (case 1). after time-out (case 4). Table 4 DTACK, BERR, HALT ASSERTION RESULTS Asserted on Rising Case Control Edge of State Result No. Signal N N+ DTACK A S Normal cycle terminate and continue. 1 BERR NA X HALT NA X DTACK A S Normal cycle terminate and halt. Continue when HALT removed. 2 BERR NA X HALT A S DTACK NA A Normal cycle terminate and halt. Continue when HALT removed. 3 BERR NA NA HALT A S DTACK X X Terminate and take bus error trap. 4 BEAR A S HALT NA NA DTACK NA X Terminate and re-run. 5 BERR A S HALT NA A DTACK X X Terminate and re-run. 6 BERR A S HALT A S DTACK NA X Terminate and re-run when HALT removed. 7 BERR NA A i=iAIT A S Legend: N - the number of the current even bus state le.g., S4, S6, etc.) A - signal is asserted in this bus state NA - Signal is not asserted ,in this state X - don't care S - signal was asserted in previous state and remains asserted in this state 4·16 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-BIT MICROPROCESSOR SCN68000 SERIES '1A""IIeI.i" Example B: A system uses error detection the reset vector table entry (vector number PROCESSING STATES on RAM contents. Designer can (a) delay zero, address $000000) and loads it into The SCN68000 is always in one of three DTACK until the data is verified, and return the supervisor stack pointer (SSP). Vector processing states: normal, exception, or BERR and HALT simultaneously to rerun table entry number one at address halted. The normal processing state is error cycle (case 6), or if valid, return $000004 is read next and loaded into the that associated with instruction execu- DTACK; (b) delay DTACK until data is program counter. The processor initializes tion; the memory references are to fetch verified, and return BERR at the same time the status register to an interrupt level of instructions and operands, and to store as DTACK if data is in error (case 4); (c) seven. No other registers are affected by results. A special case of the normal state return DTACK prior to data verification, as the reset sequence. is the stopped state which the processor described in the previous section. If data When a RESET instruction is executed, enters when a STOP instruction is exe- is invalid, BERR is asserted (case 1) in the the processor drives the reset pin for 124 cuted. In this state, no further memory ref- next cycle. Error handling software must clock pulses. In this case, the processor is erences are made. know how to recover the error cycle. trying to reset the rest. of the system. The exception processing state is asso- Therefore, there is no effect on the inter- Reset Operation nal state of the processor and its internal ciated with interrupts, trap instructions, The reset signal is a bidirectional signal that allows either the processor or an ex- registers and the status register are unaf· fected. All external devices connected to tracing and other exceptional conditions. The exception may be internally generated by an Instruction or by an unusual condi- 4 ternal signal to reset the system. Figure 24 the reset line should be reset at the com- tion arising during the execution of an in- illustrates reset timing. Both the halt and pletion of the RESET instruction. struction. Externally, exception process- the reset lines must be applied to ensure Asserting the RESET and HALT pins for ing can be forced by an interrupt, by a bus total reset of the processor. ten clock cycles will cause a processor error, or by a reset. Exception processing When the reset and halt lines are driven by reset, except when Vcc is initially applied is designed to provide an efficient context an external device, it is recognized as an to the processor. In this case, an external switch so that the processor can handle entire system reset, including the proces- reset must be applied for 100 millisec- unusual conditions. sor. The processor responds by reading onds. The halted processing state is an indica- tion of catastrophic hardware failure. For example, if during the exception process- Table 5 BERR AND HALT NEGATION RESULTS ing of a bus error another bus error oc- Conditions of Negated on Rising curs, the processor assumes that the sys- Control Results - Next Cycle tem is unusable and halts. Only an exter- Termination in Edge of State Signal Table A N N+2 nal reset can restart a halted processor. Bus Error BERR HALT •• or or •• Takes bus error trap. Note that a processor in the stopped state is not in the halted state, nor vice versa. Re-run BERR HALT •• or • vector Illegal sequence; usually traps to number O. Privilege States Re-run BERR RACT • Re-runs the bus cycle. • May lengthen next cycle. The processor operates in one of two states of privilege: the 'user' state or the Normal BERR HALT •• or • 'supervisor' state. The privilege state determines which operations are legal, is Normal mrn HALT • or • beIf next none cycle is started it will terminated as a bus error. used by the external memory management device to control and translate accesses, ClK Plus 5 Volts VCC RESEi' 1 t - > 100 Milliseconds ~~I--------~~----- ~----------------------~ HALT 1 ,.. -++-t<4 Bus Cycles y:;.OO«IO()O(X)OOOOIO()O------------{__)(:...::=X 2 3 4 5 6 NOTES: 1) Internal start-up time 4) PC High read in here Bus State Unknown:)¢OOO( 2) SSP High read in here 3) SSP Low read in here 5) PC low read in here >---< All Control Signals Inactive. 6) First instruction fetched here. Data Bus In Read Mode: Figure 24. Reset Operation Timing Signetics 4·17 MICROPROCESSOR DIVISION JANUARY 1963 16·811 MICROPROCESSOR SCN68000 SERIES 'm",,",'·", and is used to choose between the super- pointer (MOVE and USP) instructions are new context is obtained, and the pro- visor stack pointer and the user stack also privileged. cessor switches to instruction process- pointer in instruction references. ing. The bus cycles generated by an instruc- The privilege state is a mechanism for pro- tion executed in user state are classified viding security in a computer system. Pro-, Exception Vectors - Exception vectors as user state references. This allows an grams should access only their own code are memory locations from which the pro- external memory management device to and data areas, and ought to be restricted cessor fetches the address of a routine translate the address and to control ac- from accessing information which they do which will handle that exception. All ex- cess to protected portions of the address not need and must not modify. ception vectors are two words in length space. While the processor is in the user (see figure 25), except for the reset vector, The privilege mechanism provides secur- privilege state, those instructions which which is four words. All exception vectors ity by allowing most programs to execute use either the system stack pointer im- lie in the supervisor data space, except for in user state. In this state, their accesses plicitly, or address register seven explic- the reset vector which is in the supervisor are controlled, and the effects on other ity, access the user stack pointer. program space. A vector number is an parts of the system are limited. The oper- B-bit number which, when multiplied by ating system executes in the supervisor Privilege State Changes - Once the pro- four, gives the address of an exception state, has access to all resources, and per- cessor is in the user state and executing vector. Vector numbers are generated in- forms the overhead tasks for the user instructions, only exception processing ternally or externally, depending on the state programs. can change the privilege state. During ex- cause of the exception. In the case of in- ception processing, the current setting of terrupts, during the interrupt acknowledge Supervisor State - The supervisor state the S-bit of, the status register is saved bus cycle, a peripheral provides an B-bit is the higher state of privilege. For instruc- and the S-bit is asserted, putting the pro- vector number (see figure 26) to the pro- tion execution, the supervisor state is de- cessor in the supervisor state. Therefore, cessor on the data bus lines DO through termined by the S-bit of the status regis- when instruction execution resumes at D7. The processor translates the vector ter: it is asserted (high), the processor is in the address specified to process the ex- number into a full 24-blt address, as the supervisor state. All instructions can ception, the processor is in the supervisor shown in figure 27. The memory layout for be executed in the supervisor state. The privi lege state. exception vectors is given in table 7. bus cycles generated by instructions exe· cuted in the supervisor state are classified Reference Classification - When the pro- As shown in table 7, the memory layout is as supervisor references. While the pro- cessor makes a reference, it classifies the 512 words long (1024 bytes). It starts at ad- cessor is in the supervisor privilege state, kind of reference being made, using the dress 0 and proceeds through address those instructions which use either the encoding on the three function code out- 1023.' This provides 255 unique vectors; system stack pointer implicitly or address put lines. This allows external translation some of these are reserved for traps and register seven explicitly access the super- of addresses, control of access, and dif- other system functions. Of the 255, there visor stack pOinter. ferentiation of special processor states, are 192 reserved for user interrupt vectors, such as an interrupt acknowledge. Table 6 However, there is no protection on the All exception processing is done in the lists the classification of references. first 64 entries, so the user interrupt vec- supervisor state, regardless of the setting tors may overlap at the discretion of the of the S-bit The bus cycles generated dur- systems designer. ing exception processing are classified as Exception Processing General supervisor references. All stacking opera- Description Kinds of Exceptions - Exceptions can be tions during exception processing use the The processing of an exception occurs in generated by either internal or external supervisor stack pointer. four steps, with variations for different ex- causes. The externally generated excep- ception causes. During the first step, a tions are the interrupts and the bus error User State - The user state is the lower temporary copy of the status register is and reset requests. The interrupts are re- state of privilege. For instruction execu- made, and the status register is set for ex- quests from peripheral devices for proces- tion, the user state is dete.rmined by the ception processing. In the second step sor action while the bus error and reset in- S-bit of the status register: it is negated the exception vector is determined, and puts are used for access control and pro- (low), the processor is executing instruc- the third step is the saving of the current cessor restart. The internally generated tions in the user state. processor context In the fourth step a exceptions come from instructions, or Most instructions execute the same in user state as in the supervisor state. Table 6 REFERENCE CLASSIFICATION However, some instructions which have Function Code Output important system effects are made privi- Reference Class FC2 FC1 FCO leged, User programs are not permitted to execute the STOP instruction, or the 0 a a (Unassigned) RESET instruction. To ensure that a user a a 1 User Data program cannot enter the supervisor state a 1 a User Program except in a controlled manner, the instruc- 0 1 1 (Unassigned) tions which modify the whole status regis- 1 a a (Unassigned) ter are privileged. To aid in debugging pro- grams which are to be used as operating 1 a 1 Supervisor Data systems, the move to user stack pointer 1 1 a Supervisor Program (MOVE to USP) and move from user stack 1 1 1 Interrupt Acknowledge 4·18 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-81T MICROPROCESSOR SCN68000 SERIES 'm"..""· " Word 0 New Program Counter IHighl AO=O, Al=O Word 1 New Program Counter ILowl AO=O, Al=l Figure 25. Exception Vector Format D15 Ignored 4 Where: v7 is the MSB of the Vector Number vO is the LSB of the Vector Number Figure 26. Peripheral Vector Number Format Al0 A9 A8 A7 A6 A5 A4 A3 A2 Al AO All Zeroes I v71 v61 V5! v41 v31 v21 vl ! Vol 0 ! 0 I Figure 27. Address Translated from 8-Bit Vector Number from address errors or tracing. The trap processor fetch, classified as an Interrupt The instruction at the address given in the (TRAP), trap on overflow (TRAPV), check acknowledge. For all other exceptions, in- exception vector is fetched, and the nor- register against bounds (CHK) and divide ternallogic provides the vectored number. mal instruction decoding and execution is (DIV) instructions all can generate excep- This vector number is then used to gener- started. tions as part of their instruction execu- ate the address of the exception vector. tion. In addition, illegal instructions, word Multiple Exceptions - The following fetches from odd addresses and privilege The third step is to save the current pro- describes the processing which occurs violations cause exceptions. Tracing be- cessor status, except in the case of the when multiple exceptions arise simultane- haves like a very high priority, internally reset exception. The current program ously. Exceptions can be grouped accord- generated interrupt after each instruction counter value and the saved copy of the ing to their occurrence and priority. The execution. status register are stacked using the group 0 exceptions are reset, bus error, supervisor stack pointer. The program and address error. These exceptions Exception Processing Sequence - Ex- counter value stacked usually points to cause the instruction currently being exe· ception processing occurs in four identifi- the next unexecuted instruction, however cuted to be aborted and the exception pro- able steps. In the first step, an internal for bus error and address error, the value ceSSing to commence at the next minor copy is made of the status register. After stacked for the program counter is unpre- cycle of the processor. The group 1 excep- the copy is made, the S-bit is asserted put- dictable, and may be incremented from tions are trace and interrupt, as well as the ting the processor into the supervisor priv- the address of the instruction which privilege violations and illegal instruc· ilege state. Also, the T-bit is negated caused the error. Additional information tions. These exceptions allow the current which will allow the exception handler to defining the current context is stacked for instruction to execute to completion, but execute unhindered by traCing. For the the bus error and address error excep- preempt the execution of the next instruc- reset and interrupt exceptions, the inter- tions. tion by forcing exception proceSSing to rupt priority mask is also updated. The last step is the same for all excep- occur (privilege violations and illegal in- In the second step, the vector number of tions. The new program counter value is structions are detected when they are the the exception is determined. For inter- fetched from the exception vector and the next instruction to be executed). The rupts, the vector number is obtained by a processor resumes instruction execution. group 2 exceptions occur as part of the Signetics 4·19 MICROPROCESSOR DIVISION JANUARY 1983 16·BIT MICROPROCESSOR SCN68000 SERIES 'pm"""".'" Table 7 EXCEPTION VECTOR ASSIGNMENT sumes, however, the interrupt exception Is also processed, and instruction process- Vector Address ing commences finally In the interrupt Assignment Number(s) Dec Hex Space handler routine. A summary of exception 0 0 000 SP Reset: Initial SSP grouping and priority is given in table 8. - 4 004 SP Reset: Initial PC 2 8 008 SD 8us Error Exception Processing Detailed 3 12 OOC SD Address Error Discussion 4 16 010 SD Illegal Instruction Exceptions have a number of sources, and 5 20 014 SD Zero Divide each exception has processing which is 6 24 018 SD CHK Instruction peculiar to it. 7 28 O1C SD TRAPV Instruction Reset - The reset input provides the 8 32 020 SD Privilege Violation highest exception level. The processing of 9 36 024 SO Trace the reset signal is designed for system in- 10 40 028 SO Line 1010 Emulator itiation and recovery from catastrophic 11 44 02C SO Line 1111 Emulator failure. Any processing in progress at the time of the reset is aborted and cannot be 12' 48 030 SO (Unassigned, reserved I recovered. The processor is forced into 13' 52 034 SO (Unassigned, reserved I the supervisor state, and the trace state is 14" 56 036 SO (Unassigned, reserved I forced off. The processor interrupt priority 15 60 03C SO Uninitialized Interrupt Vector mask is set at level seven. The vector num- 16-23' 64 O4C SO (Unassigned, reserved I ber is internally generated to reference the reset exception vector at location 0 in the 95 05F - supervisor program space. Because no as- 24 96 060 SO Spurious Interrupt sumptions can be made about the validity 25 100 064 SO Level 1 Interrupt Autovector of register contents, in particular the 26 104 068 SO Level 2 Interrupt Autovector supervisor stack pointer, neither the pro- 27 108 06C SO Level 3 Interrupt Autovector gram counter nor the status register is 28 112 070 SO Level 4 Interrupt Autovector saved. The address contained in the first two words of the reset exception vector is 29 116 074 SO Level 5 Interrupt Autovector fetched as the initial supervisor stack 30 120 078 SO Level 6 Interrupt Autovector pointer, and the address in the last two 31 124 07C SO Level 7 Interrupt Autovector words of the reset exception vector is 32-47 128 080 SO TRAP Instruction Vectors fetched as the initial program counter. 191 08F - Finally, nstruction execution is started at the address in the program counter. The 48-63' 192 OCO SO (Unassigned, reserved I power-up/restart code should be pointed 255 OFF - to by the initial program counter. 64-255 256 100 SO User Interrupt Vectors The RESET instruction does not cause 1023 3FF - loading of the reset vector, but does 'Vector numbers 12, 13, 14, 16 through 23 and 48 through 63 are assert the reset line to reset external reserved for future enhancements. No user peripheral devices devices. This allows the software to reset should be assigned these numbers. the system to a known state and then con- tinue processing with the next instruction. Interrupts - Seven levels of interrupt priorities are provided. Oevices may be normal processing of instructions. The struction can be executed at a time, there chained externally within interrupt priority TRAP, TRAPV, CHK, and zero divide ex- is no priority relation within group 2. levels, allowing an unlimited number of ceptions are in this group. For these ex- peripheral devices to interrupt the pro- The priority relation between two excep- ceptions, the normal execution of an in- cessor. Interrupt priority levels are tions determines which is taken, or taken struction may lead to exception process- numbered from one to seven, level seven first, if the conditions for both arise ing. being the highest priority. The status simultaneously. Therefore, if a bus error register contains a three-bit mask which Group 0 exceptions have highest priority, occurs during a TRAP instruction, the bus indicates the current processor priority, while group 2 exceptions have lowest pri- error takes precedence, and the TRAP in- and interrupts are inhibited for all priority ority. Within group 0, reset has highest struction processing is aborted. In levels less than or equal to the current pro- priority, followed by bus error and then ad- another example, if an interrupt request cessor priority. dress error. Within group 1, trace has pri- occurs during the execution of an instruc- ority over external interrupts, which in tion while the T-bit is asserted, the trace An interrupt request is made to the pro- turn takes priority over illegal instruction exception has priority, and is processed cessor by encoding the interrupt request and privilege violation. Since only one in- first. Before instruction processing re- level on the interrupt request lines; a zero 4,20 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16·81T MICROPROCESSOR SCN68000 SERIES 'm""""·"j Table 8 EXCEPTION GROUPING AND PRIORITY indicates no interrupt request. Interrupt requests arriving at the processor do not Group Exception Processing force immediate exception processing, Reset but are made pending. Pending interrupts Exception processing begins 0 Bus Error are detected between instruction execu· within two clock cycles. Address Error tions. If the priority of the pending inter- Trace rupt is lower than or equal to the current Interrupt Exception processing begins before processor priority, execution continues 1 Illegal the next instruction with the next instruction and the interrupt Privilege exception processing Is postponed. (The TRAP, TRAPV, recognition of level seven is slighly dif- Exception processing is started by 2 CHK, ferent, as explained in a following para- normal instruction execution Zero Divide graph.) If the priority of the pending interrupt is greater than the current processor prior- 4 ity, the exception processing sequence Is ~~§~§ started. First a copy of the status register = is saved, and the privilege state is set to PROCESSOR INTERRUPTING DEVICE supervisor, tracing is suppressed, and the processor priority level is set to the level of the interrupt being acknowledged. The Request Interrupt processor fetches the vector number from J the interrupting device, classifying the reference as an interrupt acknowledge t Grant Interrupt and displaying the level number of the in- terrupt being acknowledged on the ad- dress bus. If external logic requests an 1) Compare interrupt level in status register automatic vectoring, the processor inter- and wait for current instruction to complete nally generates a vector number which is 21 Place interrupt level on A 1, A2, A3 determined by the interrupt level number. 3) Set R/iN to read If external logic indicates a bus error, the 4) Set function code to interrupt acknowledge interrupt is taken to be spurious, and the 5) Assert address strobe (AS) generated vector number references the 6) Assert lower data strobe (LOS) spurious interrupt vector. The processor I then proceeds with the usual exception processing, saving the program counter and status register on the supervisor Provide Vector Number stack. The saved value of the program 1) Place vector number of 00-07 counter is the address of the instruction r 2) Assert data transfer acknowledge (orACK) which would have been executed had the interrupt not been present. The content of the interrupt vector whose vector number was previously obtained is fetched and loaded into the program counter, and nor- Acquire Vector Number mal instruction execution commences in the interrupt handling routine. A flow 1) Latch vector number 2) Negate LOS chart for the interrupt acknowledge se- 3) Negate AS quence is given in figure 28, a timing diagram is given in figure 29 and the inter· rupt exception timing sequence is shown in figure 30. Priority level seven is a special case. Level 1) Negate '5'i'ACR seven interrupts cannot be inhibited by the interrupt priority mask, thus providing a 'non-maskable interrupt' capability. An interrupt is generated each time the inter· rupt request level changes from some Start Interrupt Processing lower level to level seven. Note that a level seven interrupt may still be caused by the level comparison if the request level is a Figure 28. Interrupt Acknowledge Sequence Flow Chart seven and the processor is set to a lower level by an instruction. Signetics 4·21 MICROPROCESSOR DIVISION JANUARY 1983 16-BIT MICROPROCESSOR SCN68000 SERIES 'm""II,i.iN ClK !------\s-----< A1-A3J-< }----I\,-----( AS \ ~,--_-==========-_--, \ '--_-----I UOS \ ~ ~ \'-_-----JI lOS '\ ~ ~~~========~;--\-~ \ r- R/W '\ 7 ~ \ OTACK \ ~ \'------/ \'---- 08-015 ( >---\,----------~(~===== 00-07 ( ~,-----~( )>----« FCO-Z=X IPlO-Z '\ last 8us Cycle of Instruction (Read or Write) P Stack ~ __________~7 lACK Cycle (Vector Number Acquisition) '\ .10( Stack and Vector Fetch .1 I'" 1 ( PCl .0 (SSP). 1011( Figure 29. Interrupt Acknowledge Sequence Timing Diagram last Bus Cycle lACK of Instruction Stack Stack Stack (During Which Interrupt Was ~ PCl (SSP) ....--. Cycle (Vector Number ~ Status (SSP) r---+ PCH (SSP) r---. Acquisition) Recognized) Read Read Fetch First Word Vector Vector of Instruction L-...,. High ----+ low ~ of Interrupt (A16-A23) (AO-A15) Routine Figure 30. Interrupt Exception Timing Sequence 4·22 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-811 MICROPROCESSOR SCN68000 SERIES 'm""""··,, Uninitialized Interrupt - An interrupting STOP the processor was not between instruc- device asserts VPA or provides an inter- RESET tions when the bus error exception reo rupt vector during an interrupt acknowl- RTE quest was made, the context of the pro- edge cycle to the SCN68000. If the vector MOVE to SR cessor is more detailed. To save more of register has not been initialized, the re- AND (word) immediate to SR this context, additional information is sponding SCN68000 family peripheral will EOR (word) immediate to SR saved on the supervisor stack. The pro- provide vector 15, the uninitialized inter- OR (word) immediate to SR gram counter and the copy of the status rupt vector. This provides a uniform way to MOVE USP register are of course saved. The value recover from a programming error. saved for the program cou nter is advanced Tracing - To aid in program development, by some amount, two to ten bytes beyond Spurious Interrupt - If during the inter- the SCN68000 includes a facility to allow the address of the first word of the in· rupt acknowledge cycle no device re- instruction by instruction traCing. In the struction which made the reference caus· sponds by asserting DTACK or VPA, the trace state, after each instruction is ex· ing the bus error. If the bus error occurred bus error line should be asserted to ter- ecuted, an exception is forced allowing a during the fetch of next instruction, the minate the vector acquisition. The pro- debugging program to monitor the execu- saved program counter has a value in the cessor separates the processing of this er- ror from the bus error by fetching the spurious interrupt vector instead of the tion of the program under test. The trace facility uses the T·bit in the vicinity of the current instruction, even if the current instruction is a branch, a jump, or a return instruction. Besides the usual 4 supervisor portion of the status register. If bus error vector. The processor then pro- the T·bit is negated (off), tracing is dis- information, the processor saves its inter- ceeds with the usual exception process- abled and instruction execution proceeds nal copy of the first word of the instruc- ing. from instruction to instruction as normal. tion being processed, and the address If the T·bit is asserted (on) at the begin· which was being accessed by the aborted Instruction Traps - Traps are exceptions ning of the execution of an instruction, a bus cycle. Specific information about the caused by instructions. They arise either trace exception will be generated after the access is also saved: whether it was a read from processor recognition of abnormal execution of that instruction is com- or a write, whether the processor was pro- conditions during instruction execution, pleted. If the instruction is not executed, cessing an instruction or not, and the clas- or from use of instructions whose normal either because an interrupt is taken, or the sification displayed on the function code behavior is trapping. instruction is illegal or privileged, the outputs when the bus error occurred. The trace exception does not occur. The trace processor is processing an instruction if it Some instructions are used specifically to exception also does not occur if the in- is in the normal state or processing a generate traps. The TRAP instruction struction is aborted by a reset, bus error, group 2 exception; the processor is not always forces an exception, and is useful or address error exception. If the instruc- processing an instruction if it is process· for implementing system calls for user tion is indeed executed and an interrupt is ing a group 0 or group 1 exception. Figure programs. The TRAPV and CHK instruc· pending on completion, the trace excep- 31 illustrates how this information is orga- tions force an exception if the user pro- tion is processed before the interrupt ex- nized on the supervisor stack. Although gram detects a runtime error, which may ception. If, during the execution of the in- this information is not sufficient in gen· be an arithmetic overflow or a subscript struction, an exception is forced by that eral to effect full recovery from the bus out of bounds. The signed divide (DIVS) instruction, the forced exception is pro· error, it does allow software diagnosis. and unsigned divide (DIVU) instructions cessed before the trace exception. Finally, the processor commences in· will force an exception if a division opera- struction processing at the address con· tion is attempted with a divisor of zero. As an extreme illustration of the above tained in the vector. It is the responsibility rules, consider the arrival of an interrupt of the error handler routine to clean up the Illegal and Unimplemented Instructions- during the execution of a TRAP instruc· stack and determine where to continue Illegal instruction is the term used to refer tion while tracing is enabled. First the trap execution. to any of the word bit patterns which are exception is processed, then the trace ex· not the bit pattern of the first word of a ception, and finally the interrupt excep· If a bus error occurs during the exception legal instruction. During instruction ex· tion. Instruction execution resumes in the processing for a bus error, address error, ecution, if such an instruction is fetched, interrupt handler routine. or reset, the processor is halted, and all an illegal instruction exception occurs. processing ceases. This simplifies the Bus Error - Bus error exceptions occur detection of catastrophic system failure, Word patterns with bits 15 through 12 when external logic requests that a bus since the processor removes itself from equaling 1010 or 1111 are distinguished as error be processed by an exception. The the system rather than destroying all unimplemented instructions and separate current bus cycle which the processor is memory contents. Only the RESET pin can exception vectors are given to these pat· making is then aborted. Whether the pro- restart a halted processor. terns to permit efficient emulation. This facility allows the operating system to cessor was doing instruction or exception detect program errors, or to emulate processing, that processing is terminated, Address Error unimplemented instructions in software. and the processor immediately begins ex- Address error exceptions occur when the ception processing. processor attempts to access a word or a Privilege Violations - In order to provide Exception processing for bus error long word operand or an instruction at an system security, various instructions are follows the usual sequence of steps. The odd address. The effect is much like an in- privileged. An attempt to execute one of status register is copied, the supervisor ternally generated bus error, so that the the privileged instructions while in the state is entered, and the trace state is bus cycle is aborted, and the processor user state will cause an exception. The turned off. The vector number is gener- ceases whatever processing it is currently privileged instructions are: ated to refer to the bus error vector. Since doing and begins exception processing. Signetics 4·23 MICROPROCESSOR DIVISION JANUARY 1983 16·81T MICROPROCESSOR SCN68000 SERIES 'm,n."".", 15 14 13 12 11 10 9 8 7 6 5 4 3 2 o Lower Address /R/W/I/NI Function Code High f- - Access Address - - - - - - - - - - - Low - ------------ Instruction Register Status Register High I- - Program Counter - - - - ---- - -- - ------- --- Low R/W (read/wnte): wnte=O, read = 1. I/N (,nstructIOn/not): instruction =0, not= 1 Figure 31. Supervisor Stack Order so S1 S2 S3 S4 S5 S6 S7 SO S1 S2 S3 S4 S5 S6 S7 SO S1 S2 S3 S4 S5 ClK Al·A23 AS IT5S \ \ I \ ,, .., ~ \ L- Ll5S R/Vii J \ I \ I ,---' • ~ , L- DTACK \ I L-- DO-D15 H "B Clocks- I_ • • I_ Approx.Idle I_ Read ·1_ Aerr Write Write StaCk--.j Figure 32. Address Error Timing After exception processing commences, chronous cycle requirements whenever a The synchronous cycle timing diagrams the sequence is the same as that for bus synchronous device address is detected. and corresponding AC electrical charac- error including the information that is Figure 33 is a flow chart of the interface teristics table are located towards the end stacked, except that the vector number operation between the processor and syn· of this data sheet. At state zero (SO) in the refers to the address error vector instead. chronous devices. cycle, the address bus and function codes Likewise, if an address error occurs during are in the high·impedance state. One half the exception processing for a bus error, Data Transfer Operation clock later, in state 1, the address bus and address error, or reset, the processor is function code outputs are released from Three signals on the processor provide halted. As show in figure 32, an address the high·impedance state. the synchronous interface. They are: error will execute a short bus cycle fol· enable (E), valid memory adilress (VMA), During state 2, the address strobe (AS) is lowed by exception processing. and valid peripheral address (VPA). The asserted to indicate that there is a valid bus frequency is one tenth of the incom· address on the address bus. If the bus INTERFACE WITH SYNCHRO· ing SCN68000 clock frequency. Enable cycle is a read cycle, the upper and/or has a 60/40 duty cycle; that is, it is low for lower data strobes are also asserted in NOUS PERIPHERALS six input clocks and high for four input state 2. If the bus cycle is a write cycle, the To interface synchronous peripherals with clocks. This duty cycle allows the pro· read/write (RIW) signal is switched to low the asynchronous SCN68000, the proces· cessor to do successive VPA accesses on (write) during state 2. One half clock later, sor modifies its bus cycle to meet the syn· successive E pulses. in state 3, the write data is placed on the 4·24 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-BIT MICROPROCESSOR SCN68000 SERIES 'w""""·',, During a read cycle, the processor latches the peripheral data in state 6. For all cycles, the processor negates the address PROCESSOR SLAVE and data strobes one half clock cycle later Initiate Cycle in state 7, and the enable signal goes low 11 The processor starts a normal Read or at this time. Another half clock later, the Write cycle I L _ _ _ _ _ _---, address bus Is put in the high·impedance state. During a write cycle, the data bus is t Define Synchronous Cycle put in the high·impedance state and the read/write signal is switched high at this time. The peripheral logic must remove 11 External hardware asserts Valid Peripheral VPA within one clock after address strobe Address IVPAI is negated. DTACK should not be asserted while VPA is asserted. The SCN68000 VMA is active low, while the VMA of the synchronous device should be active high. This allows 4 Synchronize With Enable the processor to put its buses in the high· 1) The processor monitors Enable lEI until it is Impedance state on DMA requests with· , low I Phase 1) out inadvertently selecting peripherals. 21 The processor asserts Valid Memory Ad- dress IVMAI LI_ _ _ _ _ _ _..., Interrupt Operation During an interrupt acknowledge cycle while the processor is fetching the vector, if VPA is asserted, the SCN68000 will as· Transfer Data sert VMA and complete a synchronous 1) The peripheral waits until E is active and read cycle as shown in figure 34. The pro· then transfers the data cessor will then use an internally gener· I ated vector that is a function of the in· terrupt being serviced. This process is known as autovectoring. The seven auto· vectors are vector numbers 25 through 31 (decimal). Terminate Cycle There are six normal interrupt vectors and 11 The processor waits until E goes low. IOn a Read cycle the data is latched as E goes one NMI type vector. As with the low internallyl SCN68000's normal vectored interrupt, the 21 The processor negates VMA interrupt service routine can be located 31 The processor negates AS, UDS, and LDS anywhere in the address space. This is due to the fact that while the vector ~ numbers are fixed, the contents of the vector table entries are assigned by the user. Start Next Cycle Since VMA is asserted during autovector· ing, the synchronous peripheral address Figure 33. Synchronous Interfacing Flow Chart decoding should prevent unintended ac· cesses. data bus, and in state 4 the data strobes After the recognition of VPA, the pro· DATA TYPES AND ADDRESSING are issued to indicate valid data on the cessor assures that enable (E) is low, by MODES data bus. waiting if necessary, and subsequently Five basic data types are supported: asserts VMA. Valid memory address is The processor now inserts wait states un· then used as part of the chip select equa· • Bits til it recognizes the assertion of VPA. The tion of the peripheral. This ensures that • BCD digits (8·bits) VPA input signals the processor that the the synchronous peripherals are selected • Bytes (8·bits) address on the bus is the address of a syn· and deselected at the correct time. The • Word (16·bits) chronous device (or an area reserved for peripheral now runs its cycle during the • Long words (32·bits) synchronous devices) and that the bus high portion of the E signal. Cycle timing should conform to the synchronous trans· diagrams depicting best and worst cases In addition, operations on other data types fer characteristics of the synchronous are located towards the end of this data such as memory addresses, status word bus. Valid peripheral address is derived by sheet. The cycle length is dependent data, etc. are provided for in the instruc· decoding the address bus, conditioned by strictly on when VPA is asserted in rela· tion set. The 14 addressing modes (see the address strobe. tionship to the E clock. table 9) include six basic types: Signetics 4·25 MICROPROCESSOR DIVISION JANUARY 1983 16·BIT MICROPROCESSOR SCN68000 SERIES 'm",,!"i·'i' CLK A1-A3 A4-A23 AS UOS LOS R/Vii DTACK ~ 08-015 --c=J 00-07 -<::) FC0-2 X y 'C IPL0-2 ~ E L- VPA \ "- VMA \ I ~ Nor~I_-J..... _ _ _ -Autovector Operation- _ _ _ _-I ~ Cycle -r- ~ Figure 34. Autovector Operation Timing • Register direct Program/Data References Implicit reference - the definition of • Register indirect certain instructions implies the use of The SCN68000 separates memory refer· • Absolute ences Into two classes: program refer- specific registers. • Immediate ences and data references. Program refer- • Program counter relative ences, as the name implies, are references Register Specification • Implied to that section of memory that contains The register field within an instruction Included In the register Indirect address· the program being executed. Data refer- specifies the register to be used. Other ing modes is the capability to do post· ences refer to that section of memory that fields within the instruction specify incrementing, pre·decrementing, offset· contains data. Generally, operand reads whether the register selected is an ad· ting and indexing. Program counter rela· are from the data space. All operand dress or data register and how the register tlve mode can also be modified via index· writes are to the data space. is to be used. ing and offsetting. Addressing Effective Address Instruction Format Instructions for the SCN68000 contain two kinds of information; the type of function Most Instructions specify the location of Instructions are from one to five words in to be performed and the location of the an operand by using the effective address length, a shown in figure 35, The length of operand(s) on which to perform the func· field In the operation word. For example, the Instruction and the operation to be tion. Instructions specify an operand loca- figure 36 shows the general format of the performed are specified by the first word tion in one of three ways: single effective address instruction opera· of the instruction which is called the tion word. The effective address is com· operation word. The remaining words fur· Register specification - the number of posed of two 3·bit fields: the mode field, ther specify the operands. These words the register Is given in the register field and the register field. The value In the are either immediate operands or exten- of the Instruction. mode field selects the different address sions to the effective address modes Effective address - use of the different modes. The register field contains the specified In the operation word. effective address modes. number of a register. 4·26 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-BIT MICROPROCESSOR SCN68000 SERIES 'm""JleI.iit Table 9 DATA ADDRESSING MODES The effective address field may require additional information to fully specify the Mode Generation operand. This additional information, Register Direct Addressing called the effective address extension, is Data Register Direct EA~Dn contained in a following word or words Address Register Direct EA~An and is considered part of the instruction, Absolute Data Addressing as shown in figure 35. The effective ad- Absolute Short EA ~ INext Wordl dress modes are grouped into three cate- Absolute Long EA ~ INext Two Wordsl gories: register direct, memory address- Program Counter Relative Addressing ing, and special. Relative with Offset EA ~ IPCI + d16 Relative with Index and Offset EA ~ IPCI + IXnl + dS Register Direct Modes Register Indirect Addressing These effective addressing modes specify Register Indirect EA~IAnl that the operand is in one of the 16 multi- Postincrement Register Indirect Predecrement Register Indirect Register Indirect with Offset EA~IAnl, An-An+N An-An-N, EA~IAnl EA ~ IAnl + d16 function registers. Data Register Direct - The operand is in 4 Indexed Register Indirect with Offset EA ~ IAnl + IXnl + dS the data register specified by the effective Immediate Data Addressing address register field. Immediate DATA ~ Next Wordlsl Quick Immediate In herent Data Address Register Direct - The operand is in the address register specified by the Implied Addressing effective address register field. Implied Register EA~ SR, USP, SP, PC NOTES: Memory Address Modes EA ~ Effective Address dS = Eight-bit Offset An = Address Register Idisplacementl These effective addressing modes specify Dn = Data Register d16 = Sixteen-bit Offset that the operand is in memory and provide Xn = Address or Data Register used Idisplacementl the specific address of the operand. as Index Register N = 1 for Byte, 2 for SR = Status Register Words and 4 for Long Address Register Indirect - The address PC = Program Counter Words of the operand is in the address register I I = Contents of - = Replaces specified by the register field. The refer- ence is classified as a data reference with the exception of the jump and jump to subroutine instructions. 15 14 13 12 11 10 9 S 7 6 5 4 3 2 o Operation Word IFirst Word Specifies Operation and Modesl Immediate Operand Ilf Any, One or Two Wordsl Source Effective Address Extension Ilf Any, One or Two Wordsl Destination Effective Address Extension IIf Any, One or Two Wordsl Figure 35. Instruction Format 5 3 2 o Effective Address Mode Register Figure 36. Single Effective Address Instruction Operation Word General Format Signetics 4·27 MICROPROCESSOR DIVISION JANUARY 1983 16·811 MICROPROCESSOR SCN68000 SERIES 'm",,""·'ij Address Register Indirect with Postlncre· Absolute Long Address - This address Byte operation - operand is low order ment - The address of the operand is in mode requires two words of extension. byte of extension word. the address register specified by the reg· The address of the operand is developed Word operation - operand is extension ister field. After the operand address is by the concatenation of the extension word. used, it is incremented by one, two, or four words. The high·order part of the address depending on whether the size of the oper· is the first extension word; the low order Long word operation - operand is in and is byte, word, or long word. If the ad· part of the address is the second exten· the two extension words, high·order 16 dress register is the stack pointer and the sion word. The reference is classified as a bits are in the first extension word, low- operand size is byte, the address. is in· data reference with the exception of the order 16 bits are in the second exten- cremented by two rather than one to keep jump and the jump to subroutine instruc· sion word. the stack pointer on a word boundary. The tions. Condition Codes or Status Register - A reference is classified as a data reference. selected set of instructions may reference Program Counter with Displacement - the status register by means of the effec· Address Register Indirect with Predecre· This address mode requires one word of tive address field. These are: ment - The address of the operand Is In extension. The address of the operand is ANDI to CCR the address register specified by the reg· the sum of the address in the program ister field. Before the operand and the ad· ANDI to SR counter and the sign·extended 16·bit EORI to SR dress is used, it is decremented by one, displacement integer in the extension two or four depending on whether the word. The value in the program counter is ORI to CCR operand size is byte, word, or long word. If the address of the extension word. The ORI to SR the address register is the stack pointer reference is classified as a program and the operand size is byte, the address reference. Effective Address Encoding is decremented by two rather than one to Summary keep the stack pOinter on a word bound· Program Counter with Index - This ad· Table 10 is a summary of the effective ad· ary. The reference is classified as a data dress mode requires one word of exten· dressing modes. reference. sion. The address is the sum of the ad· dress in the program counter, the sign· Address Register Indirect with Displace· extended displacement integer in the Implicit Reference ment - This address mode requires one lower eight bits of the extension word, and word of extension. The address of the the contents of the index register. The Some instructions make Implicit refer· ence to the program counter (PC), the operand is the sum of the address in the value in the program counter is the ad· system stack pointer (SP), the supervisor address register and the sign·extended dress of the extension word. This refer· stack pointer (SSP), the user stack pointer 16·bit displacement integer in the exten· ence is classifed as a program reference. (USP), or the status register (SR). sion word. The reference is classified as a data reference with the exception of thE! Immediate Data - This address mode jump and jump to subroutine instructions. requires either one or two words of exten- System Stack sion depending on the size of the opera· The system stack is used Implicitly by Address Register Indirect with Index - tion. many instructions; user stacks and This address mode requires one word of extension. The address of the operand is the sum of the address in the address register, the sign·extended displacement Table 10 EFFECTIVE ADDRESS ENCODING SUMMARY integer in the low order eight bits of the extension word, and the contents of the Addressing Mode Mode Register index register. The reference is classified Data Register Direct 000 register number as a data reference with the exception of Address Register Direct 001 register number the jump and jump to subroutine instruc· Address Register Indirect 010 register number tions. Address Register Indirect with Special Addressing Modes Postincrement 011 register number Address Register Indirect with The special address modes use the effec- Predecrement 100 register number tive address register field to specify the special addressing mode instead of a reg- Address Register Indirect with ister number. Displacement 101 register number Address Register Indirect with Absolute Short Address - This address Index 110 register number mode requires one word of extension. The Absolute Short 111 000 address of the operand is in the extension Absolute Long 111 001 word. The 16-bit address is sign extended Program Counter with before it is used. The reference is classi· Displacement 111 010 fied as a data reference with the exception Program Counter with Index 111 011 of the jump and jump to subroutine in· structions. Immediate 111 100 4·28 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16·BIT MICROPROCESSOR SCN68000 SERIES 'm""",I.", queues may be created and maintained types, data types, and addressing modes, INSTRUCTION SET OVERVIEW through the addressing modes. Address over 1000 useful instructions are provided. register seven (A7) is the stack pointer The SCN68000 instruction set is summa· These instructions include signed and un- (SP). The SP is either the SSP or the USP, rized in table 11. Some additional instruc- signed multiply and divide, 'quick' arith- depending on the state of the S·bit in the tions are variations, or subsets, of these metic operations, BCD arithmetic and ex· status register. If the S-bit indicates and appear in table 12. Special emphasis panded operations (through traps). supervisor state, SSP is the active system has been given to the instruction set's stack pointer, and the USP cannot be support of structured high-level languages to facilitate ease of programming. Each in· The instructions form a set of tools that in- referenced as an address register. If the clude all machine functions to perform the S·bit indicates user state, the USP is the struction, with few exceptions, operates on bytes, words, and long words, and following operations: active system stack pointer, and the SSP cannot be referenced. Each system stack most instructions can use any of the 14 Data movement fills from high memory to low memory. addressing modes. Combining instruction Integer arithmetic Table 11 INSTRUCTION SET SUMMARY 4 Mnemonic Description Mnemonic Description Mnemonic Description A8CD Add Decimal with Extend EOR Exclusive Or PEA Push Effective Address ADD Add EXG Exchange Registers RESET Reset External Devices AND Logical And EXT Sign Extend ROL Rotate Left without Extend ASL Arithmetic Shift Left JMP Jump ROR Rotate Right without Extend ASR Arithmetic Shift Right JSR Jump to Subroutine ROXL Rotate Left with Extend BCC Branch Conditionally LEA Load Effective Address ROXR Rotate Right with Extend BCHG Bit Test and Change LINK Link Stack RTE Return from Exception BCLR Bit Test and Clear LSL Logical Shift Left RTR Return and Restore BRA Branch Always LSR Logical Shift Right RTS Return from Subroutine BSET Bit Test and Set MOVE Move SBCD Subtract Decimal with Extend BSR Branch to Subroutine MOVEM Move Multiple Registers SCC Set Conditional BTST Bit Test MOVEP Move Peripheral Data STOP Stop CHK Check Register Against Bounds MULS Signed Multiply SUB Subtract CLR Clear Operand MULU UnSigned Multiply SWAP Swap Data Register Halves CMP Compare NBCD Negate Decimal with Extend TAS Test and Set Operand DBCC Test Condition, Decrement and NEG Negate TRAP Trap Branch NOP No Operation TRAPV Trap on Overflow DIVS Signed Divide NOT One's Complement TST Test DIVU UnSigned Divide OR Logical Or UNLK Unlink Table 12 VARIATIONS OF INSTRUCTION TYPES Instruction Instruction Variation Description Variation Description Type Type ADD ADD Ada MOVE MOVE Move ADDA Add Address MOVEA Move Address ADDQ Add Quick MOVEQ Move Quick ADDI Add Immediate MOVE from SR Move from Status Register ADDX Add with Extend MOVE to SR Move to Status Register AND AND Logical And MOVE to CCR Move to Condition Codes ANDI And Immediate MOVE USP Move User Stack Pointer CMP CMP Compare NEG NEG Negate CMPA Compare Address NEGX Negate with Extend CMPM Compare Memory OR OR Logical Or CMPI Compare Immediate ORI Or Immediate EOR EOR Exclusive Or SUB SUB Subtract EORI Exclusive Or Immediate SUBA Subtract Address SUBI Subtract Immediate SUBQ Subtract Quick SUBX Subtract with Extend Signetics 4·29 MICROPROCESSOR DIVISION JANUARY 1983 16·81T MICROPROCESSOR SCN68000 SERIES Imil"""·'fJ Logical Table 13 DATA MOVEMENT OPERATIONS Shift and rotate Bit manipulation Instruction Operand Size Operation Binary coded decimal EXG 32 Rx-Ry Program control LEA 32 EA-An System control An-SP@- The complete range of instruction capa- LINK - SP-An bilities, combined with the variety of ad- SP+d-SP dressing modes described previously, pro- MOVE 8,16,32 (EAls-EAd vide a very flexible base for program IEAI- An, On development. MOVEM 16,32 An,On-EA (EAI-On Data Movement Operations MOVEP 16,32 Dn-EA The basic method of data acquisition MOVEQ 8 #xxx- Dn (transfer and storage) is provided by the PEA 32 EA-SP@- move (MOVE) instruction. The move in- SWAP 32 On[31 :161 - Dn[15:OJ struction and the effective addressing modes allow both address and data An-Sp UNLK - SP@+-An manipulation. Data move instructions NOTES: allow byte, word, and long word operands s=source @ - = indirect with predecrement to be transferred from memory to memory, d = destination @ + = indirect with postdecrement memory to register, register to memory, [ 1= bit numbers and register to register. Address move in- structions allow word and long word operand transfers and ensure that only legal address manipulations are executed. tended (SUBX), sign extended (EXT), and Bit Manipulation Operations In addition to the general move instruc- negate binary with extend (NEGX). tion, there are several special data move- Bit manipulation operations are accom- A test operand (TST) instruction that will plished using bit test (BTST), bit test and ment instructions: move multiple register set the condition codes as a result of a set (BSET), bit test and clear (BCLR), and (MOVEM), move peripheral data (MOVEP), compare of the operand with zero is avail- bit test and change (BCHG). Table 17 is a exchange registers (EXG), load effective able. Test and set (TAS) is a synchroniza- summary of the bit manipulation opera- address (LEA), push effective address tion instruction useful in multiprocessor tions (bit 2 of the status register is Z). (PEA), link stack (LINK), unlink stack systems. Table 14 is a summary of the in- (UNLK), and move quick (MOVEO). Table teger arithmetic operations. 13 is a summary of the data movement operations. Binary Coded Decimal Logical Operations Operations Integer Arithmetic Operations Logical operation instructions AND, OR, Multiprecision arithmetic operations on The arithmetic operations include the four EOR, and NOT are available for all sizes of binary coded decimal numbers are ac- basic operations of add (ADD), subtract integer data operands. A similar set of complished using add decimal with ex- (SUB), multiply (MUL), and divide (DIV) as immediate instructions (ANDI, ORI, and tend (ABC D), subtract decimal with extend well as arithmetic compare (CMP), clear EORI) provide these logical operations (SBCD), and negate decimal with extend (CLR), and negate (NEG). The add and sub- with all sizes of immediate data. Table 15 (NBCD). Table 18 is a summary of the tract instructions are available for both ad- is a summary of the logical operations. binary coded decimal operations. dress and data operations, with data operations accepting all operand sizes. Shift and Rotate Operations Address operations are limited to legal ad- Program Control Operations dress size operands (16 or 32 bits). Data, Shift operations in both directions are pro- Program control operations are accom- address, and memory compare operations vided by the arithmetic instructions ASR plished using a series of conditional and are also available. The clear and negate in- and ASL and logical shift instructions LSR unconditional branch instructions and structions can be used on all sizes of data and LSL. The rotate instructions (with and return instructions (see table 19). The con- operands. without extend) available are ROXR, ditional instructions provide setting and ROXL, ROR, and ROL. All shift and rotate The multiply and divide operations are branching for the following conditions: operations can be performed in either available for signed and unsigned oper- registers or memory. Register shifts and CC-carry clear ands using word multiply to produce a rotates support all operand sizes and CS-carry set long word product, and a long word divi- allow a shift count specified in the instruc- EO-equal dend with word divisor to produce a word tion of one to eight bits, or a to 63 F-never true quotient with a word remainder. GE-greater or equal specified in a data register. Memory shifts Multiprecision and mixed size arithmetic and rotates are for word operands only GT -greater than can be accomplished using a set of ex- and allow only single-bit shifts or rotates. HI-high tended instructions. These instructions Table 16 is a summary of the shift and LE-Iess or equal are: add extended (ADDX), subtract ex- rotate operations. LS-Iow or same 4-30 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-BIT MICROPROCESSOR SCN68000 SERIES 'Pm""''''·''j LT-Iess than Table 15 LOGICAL OPERATIONS MI-minus Instruction Operand Size Operation NE-not equal PL-plus DnAIEA)-Dn T -always true AND 8,16,32 IEA)ADn-EA VC-no overflow IEA)A#xxx- EA VS-overflow Dn v IEA)- Dn OR 8,16,32 lEA) v Dn-EA System Control Operations lEA) v #xxx- EA System control operations are accom- IEAI.Dy-EA EOR 8.16,32 plished by using priviledged instructions, lEA). #xxx- EA trap generating instructions, and instruc- NOT 8,16,32 -IEA)-EA tions that use or modify the status regis- NOTE: - = invert ter. These instructions are summarized in table 20. INSTRUCTION SET Table 16 SHIFT AND ROTATE OPERATIONS 4 The following provides information about Instruc. Operand Operation the addressing categories and instruction tion Size set of the SCN68000. ASl 8.16,32 ~. 1+0 Addressing Categories Effective address modes can be cate- ASR 8.16,32 d:J • 1--+@3 gorized by the ways in which they may be lSl 8,16,32 ~ • 1+0 LSR 8,16,32 0+/ .~ Table 14 Instruction INTEGER ARITHMETIC OPERATIONS Operand Size Operation ROl 8,16,32 rn " JJ 8,16.32 Dn+ IEA)- Dn IEA)+Dn-EA ROR 8,16,32 ~ •~ ADD 16,32 IEAI+#xxx- EA An+IEA)-An ROXl 8.16,32 ITH· H:i]J ADDX 8,16,32 16,32 Dx+Dy+X-Dx Ax@-Ay@-+X-Ax@ ROXR 8.16,32 4iH •~ ClR 8.16.32 O-EA 8,16,32 Dn-IEA) IEAI-#xxx Table 17 BIT MANIPULATION OPERATIONS CMP Ax@+-Ay@+ 16.32 An-lEA) Instruction Operand Size Operation DIVS 32+16 Dn/IEA)-Dn BTST 8, 32 -bit of IEAI-Z DIVU 32+16 Dn/IEA)-Dn -bit of IEA)-Z BSET 8, 32 8-16 IDn)8- Dn 16 1-bit of EA EXT -bit of IEA)-Z 16-32 IDn)16- Dn32 BClR 8, 32 MUlS 16·16-32 Dn·IEA)-Dn O-bit of EA MUlU 16·16-32 Dn·IEA)-Dn -bit of IEA)-Z BCHG 8,32 - bit of IEAI- bit of EA NEG 8,16,32 O-IEA)-EA NEGX 8.16,32 0- lEA) -X- EA 8,16,32 Dn-IEA)-Dn SUB IEA)-Dn-EA Table 18 BINARY CODED DECIMAL OPERATIONS IEA)-#xxx-EA 16,32 An-IEA)-An Operand Instruction Operation Size Dx-Dy-X-Dx SUBX 8,16,32 DXlO+ DylO+ X- Dx Ax@--Ay@--X-Ax@ ABCD 8 AX@-10+AY@-10+X-Ax@ TAS 8 lEA) - 0, 1- EA[7] DxlO- DylO- X- Dx TST 8,16,32 IEA)-O SBCD 8 AX@-10-AY@-10-X-Ax@ NBCD 8 O-IEA)lO- X - EA NDTE: [ ] = bit number Signetics 4·31 MICROPROCESSOR DIVISION JANUARY 1983 16·81T MICROPROCESSOR SCN68000 SERIES '11"';"'A"i used. The following classifications are 3. The last fetch from the instruction 5. The program counter usually points to used in the Instruction definitions: stream is made when the operation the last word fetched from the instruc· word is discarded and decoding is tion stream. Data If an effective address mode may be used to refer to data started on the next instruction. operands, it Is considered a 4. If the instruction is a single word in· data addressing effective ad- structlon causing a branch, the second INSTRUCTION EXECUTION dress mode. word is not used. But because this TIMES word is fetched by the preceding in· The following contains listings of the in· Memory If an effective address mode may be used to refer to memory struction, it is impossible to avoid this struction execution times in terms of the operands, it is considered a superfluous fetch. In the case of an in· external clock (ClK) periods. In this timing memory addressing effective terrupt or trace exception, both words data, It is also assumed that the memory address mode. are not used. cycle time is no greater than four periods Alterable If an effective address mode may be used to refer to alterable (writable) operands, it is con· Table 19 PROGRAM CONTROL OPERATIONS sldered an alterable addressing Instruction Operation effective address mode. Conditional Control If an effective address mode BCC Branch conditionally (14 conditionsl may be used to refer to memory 8- and 18-bit displacement operands without an associated DBCC Test condition, decrement, and branch size, it is considered a control 16-bit displacement addressing effective address mode. SCC Set byte conditionally (16 conditionsl Unconditional Table 21 shows the various categories to which each of the effective address BRA Branch always modes belongs. Table 22 shows the in· 8- and 16-bit displacement structlon set. BSR Branch to subroutine 8- and 18-bit displacement The status register addressing mode Is JMP Jump not permitted unless It is explicitly men- tioned as a legal addressing mode. JSR Jump to subroutine Raturns These categories may be combined, so that additional, more restrictive, classifi- RTR Return and restore condition codes cations may be defined. For example, the RTS Return from subroutine instruction descriptions use such classifi· cations as alterable memory or data alter- able. The former refers to those address· Table 20 SYSTEM CONTROL OPERATIONS ing modes which are both alterable and memory addresses, and the latter nifers to Instruction Operation addressing modes which are both data Privileged and alterable. RESET Reset external devices Instruction Prefetch RTE Return from exception STOP Stop program execution The SCN68000 uses a two word tightly coupled instruction prefetch mechanism ORI to SR Logical OR to status register to enhance performance. This mechanism MOVE USP Move user stack pointer is described in terms of the microcode ANDI to SR Logical AN D to status register operations involved. If the execution of an EORI to SR Logical EOR to status register Instruction is defined to begin when the MOVE EA to SR Load new status register mlcroroutlne for that Instruction is entered, some features of the prefetch Trap Generating mechanism can be described. TRAP Trap 1. When execution of an instruction TRAPV Trap on overflow begins, the operation word and the CHK Check register against bounds word following have already been Status Register fetched. The operation word is in the In- ANDI to CCR Logical AND to condition codes struction decoder. EORI to CCR Logical EOR to condition codes 2. In the case of multiword instructions, MOVE EA to CCR Load new condition codes as each additional word of the Instruc· ORI to CCR Logical OR to condition codes tlon is used internally, a fetch Is made to the instruction stream to replace It. MOVE SR to EA Store status register 4·32 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-81T MICROPROCESSOR SCN68000 SERIES 'Rm""IIeI.iij Table 21 EFFECTIVE ADDRESSING MODE CATEGORIES Effective Addressing Categories Address Modes Mode Register Data Memory Control Alterable Dn 000 register number X - - X An 001 register number - - - X An@ 010 register number X X X X An@+ 011 register number X X - X An@- 100 register number X X - X An@ldl 101 register number X X X X An@ld, ixl 110 register number X X X X xxx.W 111 000 X X X X xxx.L 111 001 X X X X PC@ldl PC@ld, ixl #xxx 111 111 111 010 011 100 X X X X X X X X - - - - 4 of the external processor clock input, must be added to those of the effective ad- tions. The number of bus read and write which prevents the insertion of wait states dress calculated where indicated. cycles is shown in parenthesis as (r/w). in the bus cycle. The number of bus read In table 26, the headings have the follow· The number of clock periods plus the and write cycles for each instruction is ing meanings: An = address register oper- number of read and write cycles must be also included with the timing data. This and, Dn = data register operand, ea= an added to those of the effective address data is enclosed in parenthesis following operand specified by an effective address, calculation where indicated. the execution periods and is shown as and M = memory effective address oper- (r/w), where r is the number of read cycles and. and w is the number of write cycles. The Bit Manipulation Instruction number of periods includes instruction Immediate Instruction Clock Clock Periods fetch and all applicable operand fetches and stores. Periods Table 30 indicates the number of clock The number of clock periods shown in periods for the bit manipulation instruc- Effective Address Operand table 27 includes the time to fetch immedi- tions. The number of bus read and write ate operands, perform the operations, cycles is shown in parenthesis as (r/w). Calculation Timing The number of clock periods plus the store the results, and read the next opera- Table 23 lists the number of clock periods tion. The number of bus read and write number of read and write cycles must be required to compute an instruction's ef- cycles is shown in parenthesis as (r/w). added to those of the effective address fective address. It includes fetching of any The number of clock periods plus the calculation where indicated. extension words, the address computa- number of read and write cycles must be tion, and fetching the memory operand. added to those of the effective address The number of bus read and write cycles is calculation where indicated. shown in parenthesis as (r/w). Note that Conditional Instruction Clock there are no write cycles inVOlved in pro· In table 27, the headings have the follow· Periods cessing the effective address. ing meanings: # = immediate operand, Table 31 indicates the number of clock Dn = data register operand, M = memory periods required for the conditional in- Move Instruction Clock Periods operand, and SR = status register. structions. The number of bus read and Table 24 and 25 indicate the number of write cycles is shown in parenthesis as Single Operand Instruction Clock (r/w). The number of clock periods plus the clock periods for the move instruction. Periods number of read and write cycles must be This data includes fetch, operand reads, and operand writes. The number of bus Table 28 indicates the number of clock added to those of the effective address read and write cycles is shown in paren- periods for the single operand instruc· calculation where indicated. thesis as (r/w). tions. The number of bus read and write cycles is shown in parenthesis as (r/w). Standard Instruction Clock The number of clock periods plus the JMP, JSR, LEA, PEA, MOVEM Periods number of read and write cycles must be Instruction Clock Periods added to those of the effective address The number of clock periods shown in calculation where indicated. Table 32 indicates the number of clock table 26 indicates the time required to per- periods required for the jump, jump to form the operations, store the results, and subroutine, load effective address, push Shift/Rotate Instruction Clock read the next instruction. The number of effective address, and move multiple reg- bus read and write cycles is shown in Periods isters instructions. The number of bus parenthesis as (r/w). The number of clock Table 29 indicates the number of clock read and write cycles is shown in paren- periods plus the number of read cycles periods for the shift and rotate instruc- thesis as (r/w). Signetics 4·33 MICROPROCESSOR DIVISION JANUARY 1983 16·811 MICROPROCESSOR SCN68000 SERIES 'm"..iirl_"j Table 22 INSTRUCTION SET Condition Mnemonic Description Operation Codes X N Z V C ABCD ADD Add Decimal with Extend Add Binary !Destination) 10 + (Source)lO- Destination (Destination) + (Sourcel- Destination ·· · ·· · ·· U U ADDA Add Address !Destination) + (Sourcel- Destination - - - - - ADDI ADDQ Add Immediate Add Quick (Destination) + Immediate Data - !Destination) + Immediate Data - Destination Destination ·· ·· ·· ·· ·· ADDX AND Add Extended AND Logical !Destination) + (Source) + X - Destination (Destination) A (Source)- Destination ····· - ·· 0 0 AND) AND Immediate (Destination) A Immediate Data - Destination - · · 0 0 ASL,ASR BCC Arithmetic Shift Branch Conditionally (Destination) Shifted by < count> - If CC then PC+d- PC Destination ····· - - - - - -«bit number» OF Destination-Z BCHG Test a Bit and Change -«bit number» OF Destination- - - · - - < bit number> OF Destination BCLR Test a Bit and Clear -«bit number» OF Destination-Z 0 - < bit number> - OF Destination - - ·- - BRA Branch Always PC+d-PC - - - - - BSET Test a Bit and Set -«bit number» OF Destination-Z 1 - < bit number> OF Destination - - · - - BSR Branch to Subroutine PC-SP@-; PC+d-PC - - - - - ·· BTST Test a Bit -«bit number» OF Destination-Z - - - - CHK Check Register against Bounds If Dn <0 or Dn> «ea» then TRAP - U U U CLR Clear an Operand 0 - Desiination - 0 1 0 0 CMP Compare !Destination) - (Source) - ···· CMPA Compare Address !Destination) - (Source) - ···· CMPI Compare Immediate !Destination) - Immediate Data - ···· CMPM DBCC Compare Memory Test Condition, Decrement and Branch !Destination) - (Source) If- CC then Dn-1-Dn; if Dn* -1 then PC+d- PC - ···· - - - - - DIVS Signed Divide !Destinationll (Source) - Destination - ···0 DIVU Unsigned Divide !Destinationll (Source) - Destination - ···0 EOR Exclusive OR Logical (Destination). (Source) - Destination - ·· 0 0 EORI EXG Exclusive OR Immediate Exchange Register (Destination). Immediate Data - Rx-Ry Destination - ·· 0 0 - - - - - EXT JMP Sign Extend Jump (Destination) Sign-extended - Destination - PC Destination - ·· 0 0 - - - - - JSR Jump to Subroutine PC - SP@-; Destination - PC - - - - - LEA Load Effective Address Destination - An - - - - - LINK Link and Allocate An-SP@-; SP-An; SP+d-SP - - - - - LSL, LSR Logical Shift (Destination) Shifted by < count> - Destination ··· · 0 MOVE Move Data from Source to Destination MOVE to CCR Move to Condition Code (Source) - Destination (Source) - CCR -·· ····· 0 0 MOVE to SR • affected Move to the Status Register o cleared U defined (Source)-SR ····· - unaffected 1 set 4·34 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16·81T MICROPROCESSOR SCN68000 SERIES 'mnull,j.iti Table 22 INSTRUCTION SET (Continued) Condition Mnemonic Description Operation Codes X N Z V C MOVE from SR Move from the Status Register SR - Destination - - - - - MOVE USP Move User Stack Pointer USP- An; An- USP - - - - - MOVEA Move Address (Sourcel- Destination - - - - - Registers - Destination MOVEM Move Multiple Registers - - - - - (Sourcel- Registers MOVEP Move Peripheral Data (Sourcel- Destination - - - - - MOVEQ Move Quick Immediate Data - Destination - " 0 0 MULS Signed Multiply (Destinationl" (Sourcel- Destination - " 0 0 MULU Unsigned Multiply (Destinationl"(Sourcel- Destination - " " 0 0 NBCD NEG Negate Decimal with Extend Negate 0- (DestinationllO- X - Destination 0- IDestinationl- Destination " " U " " " U " " 4 NEGX Negate with Extend 0- (Destinationl- X - Destination " " NOP No Operation - - - - - - NOT Logical Complement - lDestinationl- Destination - 0 0 OR Inclusive OR Logical lDestinationl v (Sourcel- Destination - " " 0 0 ORI Inclusive OR Immediate lDestinationl v Immediate Data- Destination - " " 0 a PEA Push Effective Address Destination- SP@- - - - - - RESET Reset External Devices - - - - - - ROL, ROR Rotate (Without Extendl (Destination) Rotated by < count> - Destination - " " a " ROXL, ROXR Rotate with Extend lDestination) Rotated by < count> - Destination " " " a " RTE Return from Exception SP@+-SR; SP@+-PC " " " " " RTR Return and Restore Condition Codes SP@+ -CC; SP@+ - PC RTS Return from Subroutine SP@+-PC - - - - - SBCD Subtract Decimal with Extend lDestinationllO- (SourcellO- X - Destination U " U " SCC Set According to Condition If CC then 1's - Destination else a's - Destination - - - - - STOP Load Status Register and Stop Immediate Data- SR; STOP " " " SUB Subtract Binary lDestination) - (Sourcel- Destination " " SUBA Subtract Address lDestination) - ISourcel- Destination - - - - - SUBI Subtract Immediate (Destinationl-Immediate Data- Destination " " " " " SUBQ Subtract Quick lDestinationl-lmmediate Data- Destination " " " " " SUBX Subtract with Extend lDestinationl- (Sourcel- X- Destination " " " " " SWAP Swap Register Halves Register [31:16]- Register [15:0] - " " a 0 TAS Test and Set an Operand (Destinationl Tested- CC; 1 - [7] OF Destination - " " a a TRAP Trap PC-SSP@-; SR-SSP@-; IVector)-PC - - - - - TRAPV Trap on Overflow If V then TRAP - - - - - TST Test an Operand (Destination 1 Tested- CC - " " a a UNLK Unlink An-SP; SP@+-An - - - - - [ ] = bit number " affected a cleared U defined - unaffected 1 set Signetics 4·35 MICROPROCESSOR DIVISION JANUARY 1983 16-81T MICROPROCESSOR SCN68000 SERIES Table 23 EFFECTIVE ADDRESS OPERAND CALCULATION TIMING Addressing Mode Byte, Word Long Register On Date Register Direct 010101 010/01 An Address Register Direct 010101 010/01 Memory An@ Address Register Indirect 411/01 812/01 An@+ Address Register Indirect with Postincrement 411/01 812/01 An@- Address Register Indirect with Predecrement 611/01 1012/01 An@(dl Address Register Indirect w~h Displacement 812/01 1213/01 An@ld, ixl* Address Register Indirect with Index 1012/01 1413/01 xxx.W Absolute Short 812101 1213/01 xxx.L Absolute Long 1213/01 1614/01 PC@ldl Program Counter w~h Displacement 812/01 1213/01 PC@ld, ixl* Program Counter w~h Index 1012/01 1413/01 #xxx Immediate 411/01 812101 'The size of the index register lixl does not affect execution time. Table 24 MOVE BYTE AND WORD INSTRUCTION CLOCK PERIODS Destination Source On An An@ An@+ An@- An@ldl An@(d,ixl* xxx.W xxx.L On 411/01 411/01 811111 811/11 811/11 1212/11 1412/11 1212111 1613/11 An 411101 411/01 811111 811/11 811/11 1212111 1412/11 1212111 1613111 An@ 812/01 812/01 1212/11 1212/11 1212/11 1613/11 1813/11 1613111 2014/11 An@+ 812101 812/01 1212111 1212/11 1212111 1613111 1813111 1613111 2014/11 An@- 1012/01 1012/01 1412/11 1412/11 1412/11 1813111 2013/11 1813/11 2214111 An@(dl 1213/01 1213/01 1613111 1613/11 1613/11 2014111 2214/11 2014111 2415/11 An@(d, ixl* 1413/01 1413/01 1813/11 1813111 1813/11 2214111 2414/11 2214111 2615/11 xxx.W 1213/01 1213/01 1613/11 1613111 1613/11 2014/11 2214111 2014/11 241511 I xxx.L 1614/01 1614/01 2014111 2014111 2014/11 2415/11 2615/11 2415/11 2816111 PC@ldl 1213/01 1213/01 1613111 1613/11 1613111 2014/11 2214111 2014111 2415111 PC@ld, ixl* 1413/01 1413/01 1813111 1813111 1813/11 2214111 2414/11 2214/11 2615/11 #xxx 812101 812/01 1212/11 1212111 1212/11 1613/11 1813/11 1613/11 2014111 The size of the index register lixl does not affect execution time. Table 25 MOVE LONG INSTRUCTION CLOCK PERIODS Destination Source On An An@ An@+ An@- An@ldl An@ld,ix)* xxx.W xxx.L On 411/01 411/01 1211/21 1211/21 1411121 1612/21 1812/21 1612/21 2013121 An 411101 411/01 1211/21 1211121 1411/21 1612/21 1812/21 1612/21 2013/21 An@ 1213/01 1213/01 2013/21 2013/21 2013/21 2414121 2614/21 2414121 2815121 An@+ 1213/01 1213/01 2013121 2013/21 2013/21 2414/21 2614/21 2414/21 2815121 An@- 1413/01 1413/01 2213121 2213/21 2213/21 2614/21 2814121 2614/21 3015/21 An@(dl 1614/01 1614/01 2414/21 2414/21 2414/21 2815121 3015/21 2815/21 3216121 An@(d, ix)* 1814/01 1814/01 2614/21 2614/21 2614/21 3015121 3215/21 3015121 3416/21 xxx.W 1614/01 1614/01 2414/21 2414/21 2414/21 2815/21 3015/21 2815121 3216/21 xxx.L 2015/01 2015/01 2815/21 2815/21 2815121 3216/21 3416121 3216/21 3617121 PC@(d) 1614/01 1614/01 2414/21 2414/21 2414/21 2815121 3015/21 2815121 3215/21 PC@(d, ix)* 1814/01 1814/01 2614121 2614/21 2614/21 3015121 3215/21 3015121 3416/21 'xxx 1213/01 1213/01 2013/21 2013/21 2013/21 2414/21 2614/21 2414/21 2815121 'The size of the index register lixl does not affect execution time. 4,36 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-81T MICROPROCESSOR SCN68000 SERIES 'RA""""·'" Table 26 STANDARD INSTRUCTION CLOCK PERIODS Instruction Size op <88>, An op,Dn op On, Byte, Word 8(1/01+ 4(1/0) + 8(1111 + ADD Long 6(1/01+"" 6(1/0)+"" 12(1/21+ Byte, Word - 4(110)+ 8(1111+ AND Long - 6(1/01+"" 12(1/21+ Byte, Word 6(1101+ 4(1/01+ - CMP Long 6(1/01+ 6(1/01 + - DIVS - - 158(1/01 +" - DIVU - - 140(1/01 +" - Byte, Word - 4(1/01""" 8(1/11+ EOR Long - 8(1/01""" 12(1/21+ MULS - - 70(1101 +" - MULU - Byte, Word - - 70(1/01+" 4(1101+ - 8(1/11+ 4 OR Long - 6(1/01+"" 12(1/11+ Byte, Word 8(1101+ 4(1/01+ 8(1/1)+ SUB Long 6(1/01+"" 6(1/01+"" 1211/21+ + add effective address calculation time "" total of 8 clock periods for instruction if the effective address is register direct " indicates maximum value """ only available effective address mode is data register direct Table 27 IMMEDIATE INSTRUCTION CLOCK PERIODS Instruction Size op #, On op #, An op #, M ADDI Byte, Word 8(2101 - 1212/11+ Long 16(3/01 - 2013121 + Byte, Word 411/01 811/01" 811111+ AD DO Long 8(1/01 8(1/01 1211/21+ ANDI Byte, Word 8(2101 - 12(2111 + Long 16(3/01 20(3111 + Byte, Word 8(2/01 8(2/01 8(2/01 + CMPI Long 14(3/01 14(3/01 12(3/0) + EORI Byte, Word 8(2101 - 12(2/1) + Long 1613/01 2013121 + MOVEO Long 4(1/01 - - ORI Byte, Word 8(2/01 - 1212111+ Long lti\::J/UI 2013121+ SUBI Byte, Word 8(2/01 - 1212/1) + Long 16(3/01 20(3121+ Byte, Word 4(1/01 8(1/01" 811/11+ SUBO Long 811/01 8(1/01 12(1121';- + add effective address calculation time "word only Signetics 4·37 MICROPROCESSOR DIVISION JANUARY 1983 16-BIT MICROPROCESSOR SCN68000 SERIES 'm"..n,I_", Table 28 SINGLE OPERAND INSTRUCTION CLOCK PERIODS Instruction Size Register Memory Byte, Word 411/01 811111+ CLR Long 611/01 1211/21+ NBCD Byte 611101 8(1/1)+ Byte, Word 411/01 811/11+ NEG Long 611101 1211/21+ Byte, Word 411101 811111+ NEGX Long 611/01 1211/21+ Byte, Word 411101 8(1/1)+ NOT Long 611/01 12(112)+ Byte, False 411101 8(1/1)+ SCC Byte, True 611/01 8(1/1)+ TAS 8yte 4(110) 10(111)+ Byte, Word 4(1/0) 411/01 TST Long 411/01 4(1/0)+ + add effective address calculation time Table 29 SHIFT AND ROTATE INSTRUCTION CLOCK PERIODS Instruction Size Register Memory 8yte, Word 6 + 2n(1/0) 8(111) + ASR,ASL Long 8 + 2n(1/0) - Byte, Word 6 + 2n(1/0) 8(111)+ LSR, LSL Long 8 + 2nl1/01 - Byte, Word 6 + 2n(1/0) 8(111) + ROR,ROL Long 8 + 2n(1/0) - Byte, Word 6 + 2nl1/01 8(111) + ROXR,ROXL Long 8 + 2nl1/01 - Table 30 BIT MANIPULATION INSTRUCTION CLOCK PERIODS Dynamic Static Instruction Size Register Memory Register Memory Byte - 811111+ - 1212111+ 8CHG Long 811/01* - 1212/01* - BCLR Byte - 8(111) + - 12(2/1) + Long 1011/01* - 1412/01* - Byte - 8(111)+ - 12(211)+ BSET Long 811/01* - 1212/01* - BTST 8yte - 411101 + - 812101 + Long 611/01 - 1012/01 - + add effective address calculation time * indicates maximum value 4·38 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16·BIT MICROPROCESSOR SCN68000 SERIES 'm",,""···, Multi·Precision Instruction Clock Exception Processing Clock the time for all stacking, the vector fetch, Periods Periods and the fetch of the first instruction of the Table 33 indicates the number of clock Table 35 indicates the number of clock handler routine. The number of bus read periods required for the multi-precision in· periods required for exception process- and write cycles is shown in parenthesis structions. The number of clock periods ing. The number of clock periods includes as (r/wi. include the time to fetch both operands, perform the operations, store the results, and read the next instructions. The num- Table 31 CONDITIONAL INSTRUCTION CLOCK PERIODS ber of bus read and write cycles is shown Trap or Branch Trap or Branch Instruction Displacement in parenthesis as (r/w). Taken Not Taken BCC Byte 1012/0) 81110) In table 33, the headings have the follow- = ing meaning: Dn data register operand Word 1012/0) 1212/0) and M = memory operand. Byte 1012/0) - BRA 1012/0) Word Miscellaneous Instructions Clock Periods BSR Byte Word 1812/21 1812/21 4 Table 34 indicates the number of clock CC true - 1212/0) periods required for miscellaneous in- DBCC 1012/0) 1413/0) CC false structions. The number of bus read and write cycles is shown In parenthesis as CHK - 4015131+ * 811/0)+ (r/w). The number of clock periods plus the TRAP - 3414/31 number of read and write cycles must be TRAPV - 3415/31 411/01 added to those of the effective address + add effective address calculation time calculation where indicated. *indicates maximum value Table 32 JMP, JSR, LEA, PEA, MOVEM INSTRUCTION CLOCK PERIODS Instr Size An@ An@+ An@- An@ldl An@ld, ixl*' xxx.W xxx.L PC@ldl PC@ld, ixl* JMP - 812/01 - - 1012/01 1413/01 1012/01 1213/01 1012/01 1413/01 JSR - 1612/21 - - 1812/21 2212121 1812/21 2013/21 1812/21 221'-121 LEA - 411/01 - - 812/01 1212/01 812101 1213/01 812101 12,~/Q) PEA - 1211/21 - - 1612/21 2012/21 1612/21 2013121 1612/21 2012/21 MOVEM Word 12+4n 12+4n - 16+4n 18+4n 16+4n 2O+4n 16+4n 18+4n 13+ nlOI 13 + n/Oi - 14+n/01 14+ nlOI 14+n/01 15 + n/Oi 14+ n/Oi 14 + n/Oi M -R Long 12+8n 12+8n - 16+8n 18+8n 16+8n 20+8n 16+8n 18+8n 13+ 2n/01 13+ 2n/0i - 14+2n/0i 14+2n/0i 14+ 2n/0i 15+2n/0i 14+2n/0i 14+ 2n/0i MOVEM Word 8+5n - 8+5n 12+5n 14+5n 12+50 16+5n - - 12/nl - 12/nl 13/nl 13/nl 13/nl 14/nl - - R -M Long 8+ IOn - 8+10n 12+10n 14+10n 12+10n 16+10n - - 12/2nl - 12/2nl 13/2nl 13/2nl 13/2nl 14/2nl - - n is the number of registers to move * the size of the index register lixl does not affect the instruction's execution time Table 33 MULTI·PRECISION INSTRUCTION CLOCK PERIODS Instruction Size op On, On op M, M Byte, Word 4(1/01 18(3/11 ADDX Long 8(110) 30(5/21 CMPM Byte, Word - 12(3/0) Long - 20(5101 Byte, Word 411/01 18(3/11 SUBX Long 811101 3015/21 ABCD Byte 611/01 1813/11 SBCD Byte 611/01 1813/11 Signetics 4·39 MICROPROCESSOR DIVISION JANUARY 1983 16·81T MICROPROCESSOR SCN68000 SERIES 'm"..Ii,I_"t Table 34 MISCELLANEOUS INSTRUCTIONS CLOCK PERIODS Instruction Size Register Memory Register - Memory Memory -Register MOVE from SR - 6(1/0) 8(111) + - - MOVE to CCR - 12(2/01 12(2/01+ - - MOVE to SR - 12(2/0) 12(2/0)+ - - MOVEP Word - - 16(2/2) 16(4/0) Long - - 2412/4) 24(6/01 EXG - 6(110) - - - EXT Word 411101 - - - Long 4(1/01 - - - LINK - 1612/2) - - - MOVE from USP - 4(1101 - - - MOVE to USP - 4(1/01 - - - NOP - 4(1/01 - - - RESET - 132(1/01 - - - RTE - 20(510) - - - RTR - 20(5/01 - - - RTS - 16(4/0) - - - STOP - 410101 - - - SWAP - 4(1/01 - - - UNLK - 12(3/01 - - - + add effectIve address calculatIon tIme Table 35 EXCEPTION PROCESSING CLOCK PERIODS Exception Periods Address Error 50(4171 Bus Error 50(4171 Interrupt 441513)* Illegal Instruction 34(4/3) Privileged Instruction 34(4/3) Trace 34\4131 * The interrupt ac~nowledge bus cycle is assumed to take four external clock periods 4·40 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16·811 MICROPROCESSOR SCN68000 SERIES 'tIE1""li".Irj ABSOLUTE MAXIMUM RATINGS1 PARAMETER RATING UNIT Supply voltage -0.3 to + 7.0 V Input voltage3 -0.3to + 7.0 V Operating temperature range 2 o to + 70 ·C Storage temperature -55to +150 ·C DC ELECTRICAL CHARACTERISTICS Vcc= 5.0V ± 5%, Vss= OV; TA = O·C to + 70·C (see figures 37-39)4,5 LIMITS PARAMETER TEST CONDITIONS Min Max UNIT 4 V 1H Input high voltage 2.0 Vcc V V 1L Input low voltage Vss-0.75 0.8 V lin Input leakage current 5.25V BERR, BGACK, BR, DTACK, CLK, IPOO-IPL2, VPA 2.5 "A HALT, RESET 20 "A I TS1 Three-state (off state) input current 2.4V/0.4V AS, A1-A23, DO-D15, FCO-FC2, LDS, R/W, UDS, VMA 20 "A V OH Output high voltage 10H= -400"A E6 Vcc-0.75 V AS, A1-A23, BG, 00-015, FCO-FC2, LOS, R/W, UOS, VMA 2.4 V VOL Output low voltage HALT 10L= 1.6mA 0.5 V A1-A23, BG, FCO-FC2 IOL=3.2mA 0.5 V RESET IOL=35.0mA 0.5 V E, AS, DO-D15, LOS, R/W, UOS, VMA IOL=5.3mA 0.5 V PD Power dissipation Clock frequency = ·MHz 1.5 W Cin Capacitance Vin=OV, T A =25·C, 10.0 pF frequency = 1MHz NOTES: 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the operation section of this specification is not implied. 2. For operating at elevated temperatures, the device must be derated based on + 150°C maximum Junction temperature. 3. This product includes circuitry specifically designed for the protection of its internal devices from damaging effects of excessive static charge. Nonetheless, it is suggested that conventional precautions be taken to avoid applying any voltages larger than the rated maxima. 4. Parameters are valid over specified temperature range. 5. All voltage measurements are referenced to ground (GNO). For testing, all input signals swing between O.4V and 2.4V with a transition time of 20ns maximum. All time measurements are referenced at input voltages of O.BV and 2.0V and output voltages of O.BV and 2.0V as appropriate. 6. With external pullup resistor of 470 ohms. 7. For a loading capacitance of less than or equal to 500pF, subtract 5ns from the values given in these columns. B. Actual value depends on clock period. 9. If #47 is satisfied for both DTACK and BEAR, #48 can be Ons. 10. After VCC has been applied for lOOms. 11. If the asynchronous setup time (#47) requirements are satisfied, the DTACK low-to-data setup time (#31) requirements can be ignored. The data must only satisfy the data-in to clock-low setup time (#27) for the following cycle. Signetics 4·41 MICROPROCESSOR DIVISION JANUARY 1983 16·81T MICROPROCESSOR SCN68000 SERIES 'w""""_,,, AC ELECTRICAL SPECIFICATIONS VA =5VDC, TA =O·C to 70·C (see figures 41_45)4,5 TENTATIVE LIMITS NUMBER CHARACTERISTIC SYMBOL "MHz 8MHz 8MHz lOMHz UNIT Min Max Min Max Min Max Min Max 1 Clock period teye 250 500 167 500 125 500 100 500 ns 2 Clock width low tCl 115 250 75 250 55 250 45 250 ns 3 Clock width high tCH 115 250 75 250 55 250 45 250 ns 4 Clock fall time tct 10 10 10 10 ns 5 Clock rise time tcr 10 10 10 10 ns 6 Clock low to address tCLAV 90 80 70 55 ns 6A Clock high to FC valid tCHFCV 90 80 70 60 ns Clock high to address data high 7 tCHAZx 120 100 80 70 ns impedance (maximum) Clock high to address/FC invalid 8 t CHAZn 0 0 0 0 ns (minimum) 97 Clock high to AS, OS low (maximum) tCHSlx 80 70 60 55 ns 10 Clock high to AS, OS low (minimum) tCHSln 0 0 0 0 ns 11 8 Address to AS, OS (read) low/AS write tAVSl 55 35 30 20 ns llA8 FC valid to AS, OS (read) low/AS write IFCVSl 80 70 60 50 ns 127 Clock low to AS, OS high tCLSH 90 80 70 55 ns 138 AS, OS high to address/FC Invalid ISHAZ 60 40 30 20 ns 148 AS, OS width low (read)/AS write tSl 535 337 240 195 ns 14A8 OS width low (write) 285 170 115 95 ns 157 AS, OS width high tSH 285 180 150 105 ns 16 Clock high to AS, OS high impedance t CHSZ 120 100 80 70 ns 178 AS, OS high to R/W high tSHRH 60 50 40 20 ns 187 Clock high to R/W high (maximum) tCHRHx 90 80 70 60 ns 19 Clock high to RIW high (minimum) tCHRHn 0 0 0 0 ns 207 Clock high to R/W low tCHRl 90 80 70 60 ns 21 8 Address valid to R/W low tAVRl 45 25 20 0 ns 21A8 FC valid to R/W low tFCVRl 80 70 60 50 ns 228 R/W low to OS low (write) t RlSl 200 140 80 50 ns 23 Clock low to data out valid t ClOO 90 80 70 55 ns 24 Clock high to R/W, VMA high Impedance tCHRZ 120 100 80 70 ns 258 OS high to data out invalid tSHoO 60 40 30 20 ns 268 Data out valid to OS low (write) tOOSl 55 35 30 20 ns 2711 Data in to clock low (setup time) t DlCl 30 25 15 15 ns 288 AS, OS high to OTACK high tSHOAH 0 240 0 160 0 120 0 90 ns 29 OS high to data invalid (hold time) t SHOI 0 0 0 0 ns 30 AS, OS high to BERR high tSHBEH 0 0 0 0 ns 31 8 DTACK low to data in (setup time) tOAlOI 180 120 90 65 ns 32 HALT and RESET input transition time t RHrt 0 200 0 200 0 200 0 200 ns 33 Clock high to BG low tCHGl 90 80 70 60 ns 34 Clock high to BG high t CHGH 90 80 70 60 ns 35 BR low to BG low tBRlGl 1.5 3.0 1.5 3.0 1.5 3.0 1.5 3.0 Clk Per 35 BR low to BG low (figure 43) tBRlGl 1.5 3.5 1.5 3.5 1.5 3.5 1.5 3.5 Clk Per 4·42 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16·BIT MICROPROCESSOR SCN68000 SERIES 'am",,)iel-"j AC ELECTRICAL SPECIFICATIONS (Continued) VA = 5VDC, TA = O'C to 70'C (see figures 41_45)4,5 TENTATIVE LIMITS NUMBER CHARACTERISTIC SYMBOL 4MHz 8M Hz 8MHz 10MHz UNIT Min Max Min Max Min Max Min Max 36 BR high to BG high tBRHGH 1.5 3.0 1.5 3.0 1.5 3.0 1.5 3.0 Clk Per 37 BGACK low to BG high tGALGH 1.5 3.0 1.5 3.0 1.5 3.0 1.5 3.0 Clk Per 38 BG low to bus high Impedance (AS high) tGLZ 120 100 80 70 ns 39 BG width high tGH 1.5 1.5 1.5 1.5 Clk Per 40 Clock low to VMA low tCLvML 90 80 70 70 ns 41 Clock low to E transition tCLC 100 85 70 55 ns 42 E output rise and fall time tErt 25 25 25 25 ns 43 44 VMA low to E high AS, OS high to VPA high tVMLEH tSHVPH 325 0 240 240 0 160 200 0 120 150 0 90 ns ns 4 45 E low to addresslVMA/FC Invalid tELAI 55 35 30 10 ns 46 BGACK width t BGL 1.5 1.5 1.5 1.5 Clk Per 47 11 Asynchronous Input setup time t ASI 30 25 20 20 ns 489 BERR low to DTACK low tBELOAL 50 50 50 50 ns 49 E low to AS, OS Invalid tELSI -80 -80 -80 -80 ns 50 E width high tEH 900 600 450 350 ns 51 E width low tEL 1400 900 700 550 ns 52 E extended rise time tCIEHX 80 80 80 80 ns 53 Data hold from clock high t CHOO 0 0 0 0 ns 54 Data hold from E low (write) tELOOZ 80 40 30 20 ns 55 RIW to data bus Impedance change t RLOO 55 35 30 20 ns 56 10 Halt/RESET pulse width tHRPW 10 10 10 10 Clk Per CLOCK TIMING (see figure 40) 4MHz 6MHz 8MHz 10MHz CHARACTERISTIC SYMBOL UNIT Min Max Min Max Min Max Min Max Frequency of Operation F 2.0 4.0 2.0 6.0 2.0 8.0 2.0 10.0 MHz Cycle Time tCYC 250 500 167 500 125 500 100 500 ns tCL 115 250 75 250 55 250 45 250 Clock Pulse Width ns tCH 115 250 75 250 55 250 45 250 Rise and Fall Times tCr - 10 - 10 - 10 - 10 ns tCt - 10 - 10 - 10 - 10 POWER CONSIDERATIONS P,NT'" Icc x Vcc , Watts - Chip Solving equations 1 and 2 for K gives: The average chlp·junction temperature, TJ, Internal Power K=P O"(TA+273'C)+OJA"P 0 2 (3) in ·C can be obtained from: PliO'" Power DIssipation on Input and Output Pins - User Determined Where K is a constant pertaining to the TJ = TA + (PO"OJA) (1) particular part. K can be determined from For most applications PIIO-CP'NT and can equation 3 by measuring Po (at equill· Where: be neglected. TA'" Ambient Temperature, ·C brium) for a known T A' Using this value of 0JA'" Package Thermal Resistance, An approximate relationship between Po K the values of Po and TJ can be obtained Junction·to·Ambient, 'C/W and TJ (If PliO is neglected) is: by solving equations (1) and (2) Iteratively Po" P,NT + PliO (2) Po= K ... (TJ + 273'C) for any value of T A' Signetics 4·43 MICROPROCESSOR DIVISION JANUARY 1983 16·81T MICROPROCESSOR SCN68000 SERIES 'IA""""·"" +5V R*=7400 Test MM06150 +5V +5V Q C Point ~ 9100 ClI Rl MM07000 or - Equivalent I 130pF I 70PF Cl= 130 pF (Includes all Parasitics) Rl =6.0 kO for ~, Al-A23, BG, 00-015, E FCO-FC2, lOS, R/IN, UOS, VMA *R = 1.22 kO for Al-A23, BG, E, FCo-FC2 Figure 37. Reset Test Load Figure 38. Halt Test Load Figure 39. Test Loads All timing diagrams should only be referenced In regard to the edge·to-edge measurement of the timing specifications. They are not Intended as a functional description of the Input and output signals. ~efer to other functional descriptions and their related diagrams for device operation. ~------- t c y c - - - - - + i Figure 40. Input Clock Timing 4·44 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-81T MICROPROCESSOR SCN68000 SERIES 'm""",I_.,, 4 Asynchronous -------------+-""\J,:,.--+----+-+I------- Inputs INote 11 BERR/BR-------------~ INote 21 Data In - - - - - - - - - - - - - - NOTES: 1. Setup time for the asynchronous inputs BGi'iCK, ipLo-IPL2, and VPA guarantees their recognition at the next falling edge of the clock. 2. BR need fall at this time only in order to insure being recognized at the end of this bus cycle. Figure 41. Read Cycle Timing Signetics 4·45 MICROPROCESSOR DIVISION JANUARY 1983 16-BIT MICROPROCESSOR SCN68000 SERIES 'm""UeI.i" so S1 S2 S3 S4 S5 S6 S7 so ... CLK r--,~ ~ ~ r=---' ---' - ~ ~6 ~ A1-A23 ~ ~--+ r.-@ " / -1+ f+-® --.. ~ I---+- .-@ 14 - ,.... J r+- H® @)--.. '- ~ .... '15' "'""" -.: ---+- ~ f0 14 f- J f.- ® -+ ~ ~ .-@+ f.- r-@)---' 1--+ f+-@ -. ~@) R/IN _(7) ~8-+ I ~ @ Data Out -II @ r+-- ----+ ~® FCO-FC2 .X Asynchronous Inputs >- ~f- ~@ ®~ .... --+~ ..-@ ®---. ..-@+ ~ \ I[- }~ ~ ~@ @--+ 1\_ J r- @ Figure 42. Write Cycle Timing 4·46 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16·BIT MICROPROCESSOR SCN68000 SERIES 'm",,""·", Strobes and RiVii - - -_ _ _ _---' I+---@--~ 4 ClK NOTES: 1. Setup time for the asynchronous inputs BEiiR, BGACK, iiR, DTACK, IPlO-IPL2, and VPA guarantees their recognition at the next falling edge of the clock. Figure 43. AC Electrical Timing-Bus Arbitration Signetics 4·47 of" s:: I ~ t 0 0- :0 • cg 0 "1J :0 :::; 0 0 3: m 0;0 ~:0 0 ~ 0"V en 0 50 51 52 53 54 w w w w w w w w w w 55 56 57 50 Z ;0 elK 0 0m en Al-A23 en 0;0 A5 :::J b~ /11 III Ii - @ E @ en cO· VPA ::J m: 0 VMA en Dat. Out Data In _________________________________________ _ NOTE: This figure represents the best case synchronous timing where VPA falls before the third system clock cycle after the falling edge of E. en 0 Z 0- C» C C C 5; en z c m » :0 22 m < Figure 44. Synchronous Timing-Best Case en -0 00 '" II ~ s: 0 ~ ;u • c:g 0 ""C ;u ::::j 0 s: 0m en en 0 0;g ;u 0 SO Sl S2 .S3 S4 w w w w w w w w w w w w w w w w w w w w w w w w w w w w S5 56 S7 SO <: 0 U5 elK "V ;g az 0 A1-~ J--( AS i I If I 0m en en 0 ;g VPA so. CO :::J VMA ~ en R/W (Readl ® Data In UDS/[55 Read R/WW,ite @) ® Data Out UDS/[55 Write en 0 Z ~ C» 0 0 L. 0 > Z en c m > ;u ;g -< 01:0 Figure 45. Synchronous Timing-Worst Case m en '" ~ MICROPROCESSOR DIVISION JANUARY 1983 16·81T MICROPROCESSOR WITH 8·BIT BUS SCN68008 PRODUCT BRIEF, contact your Signetlcs sales office for complete information. DESCRIPTION The SCN68008 has full code compatibility PIN CONFIGURATION The SCN68008 is a member of the S68000 (source and object) with the SCN68000 Family of advanced microprocessors. This which allows programs to be run on either device allows the design of cost effective MPU depending on performance require- systems using 8-blt data buses while pro- ments and cost objectives. viding the benefits of a 32-bit micro- The programmer's model is Identical to processor architecture. The performance that of the SCN68000, as shown in figure of the SCN68008 is greater than any 8-bit 1, with seventeen 32-bit registers, a 32-bit microprocessor and superior to several program counter, and a 16-bit status regis- 16-bit microprocessors. ter. The first eight registers (00-07) are The resources available to the SCN68008 used as data registers for byte (8-bit), word user consist of the following: (16-bit), and long word (32-bit) operations. o 17 32-bit data and a<;tdress registers The second set of seven registers (AO-A6) o 56 baSic instruction types and the system stack pointer (A7) may be o Extensive exception processing used as software stack pointers and base o Memory mapped 1/0 address registers. In addition, the o 14 addressing modes registers may be used for word and long o Complete code compatibility with the word operations. All of the 17 registers SCN68000 may be used as index registers. A system Implementation based on an FEATURES 8-bit data bus reduces system cost in o 32-blt data and address registers comparison to 16-bit systems due to a o 1-megabyte direct addressing range more effective use of components and the o 56 powerful instruction types fact that byte-wide memories and periph- o Operations on five main data types erals can be used much more effectively. o Memory mapped 1/0 In addition, the non-multiplexed address o 14 addressing modes and data buses eliminate the need for ex- o Source and object compatible with ternal demultiplexers, thus further Simpli- SCN66000 fying the system. o 48-pin DIP 31 16 15 6 7 DO - I I I I - D1 - I I - D2 TOP VIEW - I I - -- I I I I I I I I - - D3 D4 EIGHT DATA REGISTERS .... I I I - D5 I D6 - I I - D7 I 31 16 15 - I I - AD A1 r I - - r- I I I - - A2 A3 SEVEN ADDRESS REGISTERS I A4 f- I - A5 r I I - A6 TWO STACK POINTERS PROGRAM COUNTER 15 6 7 0 I SYSTEM BYTE: USER BYTE I STATUS REGISTER Figure 1. Programming Model 4·50 Signetics MICROPROCESSOR DIVISION JANUARY 1983 16-BIT MICROPROCESSOR WITH 8-BIT BUS SCN68008 The 1-megabyte non-segmented linear ad- FUNCTIONAL DIAGRAM dress space of the SCN68008 allows large ,--------------------------------, modular programs to be developed and ex- ecuted efficiently. A large linear address Vee space allows program segment sizes to be ~ ~ BUSY AO·A19 determined by the application rather than forcing the designer to adopt an arbitrary --.E!:4 segment size without regard to his in- dividual requirements. ~ BUS 00·07 Exception processing allows the AS SCN68008 to handle interrupts, address R/Vi errors, unimplemented instructions, and FCO OS 1 ASYNCHRONOUS other commonly encountered exceptions BUS CONTROL while maintaining absolute system integri· FCl PROCESSOR! 4 ty. The exception processing state is STATUS FC2 OTACK associated with interrupts, trap instruc- tions, tracing, and other exceptional con- ditions. An exception may be generated E ...!L- BUS ARBITRATION internally by an instruction or by an PERIPHERAL! i!G ) CONTROL unusual condition occurring during pro- CONTROL VPA gram execution. Exception processing provides an efficient context switch to enable the processor to handle unusual j BEliR IPLO/2 conditions without degrading system RESET lNTERRUPT integrity. SYSTEM! CONTROL CONTROL HALT IPLl Signetics 4·51 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""""·"j DESCRIPTION FUNCTIONAL DESCRIPTION PIN CONFIGURATION1 The SCN68120/SCN68121 Intelligent Peri- The SCN68120/SCN68121 are 8-bit Intelli- pheral Controllers (IPCs) are general pur- gent Peripheral Controllers which can be pose, mask programmable peripheral con- configured to function in a wide variety of trollers. The IPC provides the interface applications. This flexibility is provided by between an S68000 or M6800 family micro- its ability to be hardware programmed into . processor (or microprocessors with equiv- eight different operating modes. These alent synchronous interfaces) and the operating modes allow the IPC to operate final peripheral device through a system on its local bus and communicate with an bus and control lines. System bus data is external system bus through the Internal transferred to and from the I PC via a dual- dual-port RAM. The operating mode con· port RAM while the software utilizes trois the configuration of 18 of the 48 pins semaphore registers to control RAM task- on the IPC, the available on-Chip ing or any shared resource. Multiple resources, the memory map, the location operating modes range from a single chip (internal or external) of interrupt vectors, mode with 21 1/0 lines and two control and the type of local bus. The configura· lines to an expanded mode supporting an tion of the remaining 30 pins is not con- address space of 64K bytes. The trolled by the operating mode. SCN68121 utilizes only the expanded ad- dress modes, due to the absence of an on- The dual-port RAM provides a vehicle for chip ROM. devices on two separate buses to ex- change data without directly affecting the A serial communications interface, 16-bit devices on the other bus. The dual·port timer, dual-ported RAM and semaphore RAM is accessible from the IPC's CPU and registers are available for use by the IPC in accessible synchronously or asyn- all operating modes. chronously to the system bus through port 1. Semaphore registers are provided as a software tool to arbitrate shared resources such as the dual-port RAM. The FEATURES semaphore registers are accessible from •System bus compatible with the asyn- both buses In the same way each bus ac- chronous S68000 family cesses the dual-port RAM. • System bus compatible with the syn- chronous M6800 family processorsl The remaining ports (2, 3, and 4) are 1/0 peripherals (or microprocessors with ports. Each port is controlled by its data equivalent synchronous Interfaces) direction register. The CPU has direct ac- • Compatible with Motorola 6801 source cess to the port pins of each port through The SCN68121 has all of the features of and object code Its data register. Port pins are labelled as the SCN68120 except for the on-CHIP • Upward compatible with Motorola 6800 Pij' where i identifies one of three ports ROM. Thus, the SCN68121 operates only source and object code and j indicates the particular bit. Port 2 is a in the modes utilizing external ROM • 2048 bytes of ROM (SCN68120 only) 5-bit port which can be configured for 1/0 (modes 2 and 3). • 128 bytes of dual-ported RAM or for use by the on-chip timer and serial • Multiple operation modes ranging from communications interface (SCI). Ports 3 DUAL PORT RAM AND single chip to expanded, with 64K byte and 4 may be used as 16-bits of 1/0 or may SEMAPHORE REGISTERS address space form a local address and data bus with The dual-port RAM can be accessed from • Six shared semaphore registers control lines allowing comunications with both the SCN68120/SCN68121 CPU and • 21 parallel I/O lines and two handshake external memory and peripherals. the external system bus. The six sema- lines (five I/O lines on the SCN68121) phore registers are tools provided for the • Serial communications interface (SCI) The IPC contains a synchronous MPU programmer's use in arbitrating simultan- • 16-blt three-function timer which is upward source and object code eous accesses of the same resource. • 8·bit CPU and internal bus compatible with the Motorola MC6800 and • Halt/bus available capability control directly compatible with the MC6801. The For the internal CPU, the dual-port RAM is • 8)( 8 multiply instruction programming model is shown in Figure 1, located from $0080 through $OOFF in all • TTL compatible inputs and outputs where accumulator D is a concatenation modes except 3 and 4. In mode 3, the dual- • External and internal interrupts of accumulators A and B. port RAM has been relocated in high ORDERING CODE VCC=5V ±5%,TA =0·t070·C Packages With ROM Without ROM 1.0MHz 1.25MHz 1.0MHz 1.25MHz 11n thl, data she.t, barring lignal nam•• (overseol'l) to indicate low I, done only for the pin connguratlon Ceramic DIP SCN68120Cl148 SCN68120C2148 SCN68121Cl148 SCN68121 C2148 diagram, Ilgnal description heading., tablas and Plastic DIP SCN68120Cl N48 SCN68120C2N48 SCN68121C1 N48 SCN68121C2N48 ligures. 4·52 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'amn"i..i.'*, / ~--------~~----------~, ~ Ili0d 1. u en ,~lg~ en en en Q en en en en II) 4 ., .,:::> ...c DATA or 0- .. Il: 0 g P40 P41 P42 P43 P44 P4S --- A8 A9 A10 A11 A12 A13 u 9 AO A1 A2 A3 A4 AS 1/0 1/0 1/0 1/0 UO UO ADDRESS P46 A14 A6 1/0 P47 A1S A7 1/0 SC1 AS loS 153 SC2 RiW Rfii 0s3 ..Ii: P30 AO/DO P31 AlID1 DO D1 110 UO 1/0 TDATA P24 1/0 RDATA P23 ..g 0 P32 A2ID2 P33 A3/D3 P34 A4ID4 D2 D3 D4 1/0 UO 1/0 1/0 SCLK P22 P3S ASIDS DS 1/0 --.. .. I TOUT P21 P36 A6ID6 D6 1/0 UO TIN P20 110 .III. .III ..:c P37 A7/D7 D7 w w ... ... ...uw 5:::> 5:::> " z .. :IE II!! z in c w ..z >< .. 0 z w w z ::>----tCLK 0 D U2. U2b '--+---tCLK 01---....... 10---.0 Ul, U2 - SN74LS74 CLR U3 - SN74LS02 TIMING 4 '0 01 02 03 J 04~ EJ ~_~r .AS II L - -_ _...... ~ 0 Figure 6. Clock Clrcuil Example·2 - Schemalic and Timing 4·58 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""II".iij Table 3. DUAL PROCESSOR SEMAPHORE BIT TRUTH TABLE IPC ~tem Original Data Data Resulting SEM Bit R/W Read R/W Read SEM Bit 0 R 0" R l' 1 1 R 1" W 0 PROPER 1 W - R l' 0 1 R 1 R l' 1 0 W - W 0 0 R O· W 1 IMPROPER 1 W - W 0 0 W R O· 1 "0 - Resource Available 1 - Resource Not Available 4 An access where both the IPC and system the system processor set it when the IPC FUNCTIONAL PIN processors attempt to read or write the RESET is held low. DESCRIPTIONS same semaphore register simultaneously is a contested access. During a contested PROGRAM STORAGE MEMORY Vee and Vss access, the hardware decides which pro· - ROM Vcc and Vss provide power and ground to cessor reads a clear semaphore bit and The standard SCN68120 comes prepro- the IPC. which reads a set semaphore bit. Table 3 gammed with a monitor in the ROM. describes contested operation of a sema- Custom programs are placed in ROM by phore bit. special order (see appendix A). RESET Provides the IPC with an orderly and de- The IPC always reads the actual The SCN68120 contains 2048 bytes of on- fined start-up procedure from a power- semaphore bit; the system processor chip, mask programmable read-only down condition, returns to start-up condi- reads the semaphore bit in all cases ex- memory (ROM) in memory locations $F800 tions without an intervening power-down cept the simultaneous read of a clear through $FFFF. The contents of this ROM condition and provides a control signal to semaphore bit. This arbitration during a allows the IPC to perform a custom func- latch the operating mode. simultaneous read ensures that only one tion for the user. The interrupt vectors processor reads a clear bit and therefore $FFFO-$FFFF are decoded to provide vec- During reset (low logic level on RESET controls the resource; that processor Is ar- tors at the top of resident ROM. Address pin), execution of the current instruction bitrarily the IPC. lines A12 and A13 of the decoder for the is suspended and the CPU enters a 'reset ROM can be mask programmed as a 0 or 1 state'. The register contents are not In Table 3, the first four states are con- to change the ROM starting address from pushed onto the stack and their contents sidered proper and they occur in correctly $F800 to $C800, $0800 or $E800. A12 and become undefined during reset. The 'reset written software. The last four states are A13 can also be 'don't cares' in this state' initializes the IPC as shown in Table 5. improper and only exist in improperly writ- decoder. Address $FFEF is reserved for ten software. the checksum value for the ROM. This On the positive edge of RESET, the IPC value is the complement of the exclusive latches the operating mode from P22, P21 The ownership bit is a read-only bit that in- OR of the 2047 bytes of mask programmed and P20, and then configures port 3, port dicates which processsor sets the sema- ROM. An IPC without ROM is also avail- 4, SC1 and SC2. The restart vector is then phore bit. If the semaphore bit is set, the able as the SCN68121. The SCN68121 fetched and transferred to the program ownership bit indicates which processor should only be used in modes 2 and 3 to counter, and then instruction execution set it. If the semaphore bit is not set, the access external ROM after reset. begins. ownership bit indicates which processor last set the semaphore bit: OWN = 0, the other processor set SEM; OWN = 1, this Table 4. RESET STATE OF SEMAPHORE REGISTER processor set SEM. SEM IPC System Reg The reset state of the semaphore and No. Sem Own Sem Own ownership bits Is defined In Table 4. All of the semaphore bits are set after an I PC 1 1 1 1 0 reset. The IPC owns all of them except the 2 1 0 1 1 second semaphore which Is owned by the 3 1 1 1 0 system processor. This configuration 4 1 1 1 0 should prevent the system processor from 5 1 1 1 0 reading a clear semaphore and Implying 6 1 1 1 0 Signetics 4·59 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'mil"ileI.'" Reset timing is illustrated in Figure 7. The negative half·cycle of E and the selected Halt/Bus Avaiiable/Nonmaskable RESET line must be held low for a device must be enabled to the data bus Interrupt (HAL T/BAINMI) minimum of three E·cycles for the IPC to during the next positive half·cycle. The complete its entire reset sequence. An ex· data bus is active only while E is high. It This pin functions as either NMI or ternal RC network may be used to obtain should be noted that this input should HALT/BA and the function selected is the required timing. have some provision to obtain the determined by the halt control (HC, bit 2) specified logical high level which is bit of the functional control register (Ioca' Enable (E) greater than standard TIL levels. tion $14). If the HC bit is set (to a '1'), then The E clock input is required for timing to the NMI function is activated. Alternately, synchronize data bus transfers. A 'CPU if HC is cleared (to a '0' as it is during E·cycle' (or bus cycle) consists of a Enable Is the primary IPC system timing reset), the HALT/BA function is activated. negative half·cycle of E followed by a signal and all timing data specified as An external pullup resistor to Vcc is reo positive half·cycle. For any given bus cy· cycles is assumed to be referenced to the quired on pin 3 for either function. Typical cle, the address is valid during the clock unless otherwise noted. pullup resistor values range from 3K to Table 5. STATE OF IPC DURING RESET Bits or Registers Effective State CPU I·Bit set IIRQl and IRQ2 disabledl N M I Interrupt Latch cleared (NMI disabled) Halt Control Bit cleared (HALT/BA selected) All Data Direction Registers cleared SCI Rate and Mode Control Register cleared Receive Data Register cleared Timer Control and Status Register cleared Free Running Counter cleared Buffer for LS B of Counter cleared Port 3 Control and Status Register cleared Port 2. 3, 4 Data Registers undefined after Power·up Reset; and not changed after Reset SCI Transmit/ Receive Control and Status Register Preset to $20 Output Compare Register Preset to $FFFF Semaphore Bits Preset to l's Ownership Bit of Semaphore Register 2 Preset to System Ownership All other Ownership Bits Preset to IPC Ownership All Ports 2 and 3 Lines High Impedance !inputs) All Port 4 Lines High Impedance !inputs) with pull up resistors SC1" High Impedance with pullup resistors SC2 Active High "If in mode 5, SCl will go active high; otherwise it will remain in the high impedance state. Vcc ~-----EXTERNAL ESTART.UPTIME------,.,1!:~:!._ _ _ _ _ _ _ __=~ RESET ------J\'r------------~;-----r ~;~:~:;~:~~~~~~~SS~~~~~~~~~~~~~~~SS:2;(====~~~===j~====~~=~:~~===:=~=:==~~====i(~~~r---v~-~--- BUS FFFE FFFE FFFE" FFFP NEW PC INTER~~ §\\\\\\~\\\\\\\\\\\\W ~~--------------~ INSTRUCTION ~NOTVALID • Mode 0 - $BFFE, BFFF Note: Timing measurements are referenced to and from a low voltage of O.B volts and a high voltage of 2.0 volts, unlesS otherwise noted. Figure 7. Reset Timing 4·60 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm",,",i_", 10K depending on the drive capability of the external device. When the NMI function is implemented, pin 3 is configured as an input. A negative edge on pin 3 then requests an IPC non· VCC 3-1Dkll maskable interrupt sequence, but the cur· rent instruction will be completed before responding to this request. To assure an interrupt under all conditions, NMI must be held low for at least one E·Cycle. NMI can be used to cause the IPC to exit the wait Instruction. For interrupt timing speCifications, see Interrupts. When configured to utilize the HALT/SA function of this pin, such as after reset, the circuit of Figure 8 is recommended to SCN881201 4 SCN88121 detect and supply continuous HALT and SA signals. Figure 9 shows the ap· PRE propriate timing diagram for HALT/SA HALT D with the recommended circuit. Le pullup resistor shown in the circuit maintains a high logic level when HALT is not active. ClK Q Hlili'.,iiAlNMi During a positive half·cycle of E, pin 3 is ClR an input sampled to determine if the halt state is requested (active low). During the negative half cycle of E, the SA signal is output through pin 3. After the request for halt state signal is detected and the pro· cessor completes its current instruction, the CPU is halted and the active low SA signal is output through pin 3 during the negative half cycle of E. The local bus is then available for other devices to utilize Figure 8. HALT/BA Demultlplexlng Circuit until the halt state signal has returned to a IN IN/OUT SA ~~--~~--~---, L . . . -_ _ _ ----'I R/W~ ADD/DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA DATA ADD EXEC_..-----HAlT---_.' Figure 9. HALT/BA Timing Signetics 4·61 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""n,,-", high level, thus allowing the IPC back on from $FFF8 and $FFF9, transferred to the register. The strobe is generated by a read the local bus. During the halt state, RIW is program counter, and instruction execu- (OSS = 0) or write (OSS = 1) to the port 3 high, and the address bus displays the ad- tion is continued at the new location (see data register. OS3 timing diagram and the dress of the next instruction. Interrupts). IRQ1 typically requires an ex- corresponding electrical speCifications ternal resistor (3K to 10K depending on ex· are contained towards the end of this data When single instruction operation Is ternal device's drive capability) to Vcc for sheet. desired, in program debug for Instance, it wire-OR applications. IRQ1 has no internal Is advantageous to single step through In- pullup resistor. Expanded Non-multiplexed Mode-In this structions. After BA goes low, HALT must mode, both SC1 and SC2 are configured be brought high for one E-cycle and Strobe Control (SC1 and SC2) as outputs. SC1 functions as input/output returned low again to single step through The functions of SC1 and SC2 depend on select (lOS) and is asserted (active-low) instructions. Figure 9 illustrates the tim· the operating mode. SC1 is configured as only when addresses $0100 through ing involved while stepping through a an output in all modes except the ex- $01 FF are accessed. SC2 is configured as single byte, two bus cycle instruction, panded non-multiplexed mode, whereas R/W and Is used to control the direction of such as CLRA. SC2 Is always an output. SC1 and SC2 can local data bus transfers. An MPU read is drive one Schottky load and 90pF. enabled when R/W and E are high. BA is not output in response to the wait in- struction. If interrupts are to be utilized in Single Chip Modes-In these modes, SC1 Expanded Multiplexed Modes-In these removing the processor from a walt state and SC2 are configured as an Input and modes, SC1 is configured as an input and while in the HALT/BA mode, then IRQ1 output, respectively, and both function as SC2 is configured as an output. In the ex- and IRQ2 are the only interrupts which port 3 control lines. SC1 functions as an panded multiplexed modes, the IPC has may do so; therefore, their masks must be input strobe (IS3) and can be used to in- the ability to access a 64K byte address cleared before entering the wait state. dicate that port 3 input data is ready or space. SC1 functions as an input, address output data has been accepted. Three op- strobe, which controls demultiplexing and Maskable Interrupt Request 1 tions associated with IS3 are controlled by enabling of the eight least significant ad- (IRQ1) the control and status register for port 3 dresses and the data buses. This level-sensitive input can be used to (see Port 3 description). request an Interrupt sequence. The IPC By using a transparent latch such as a will complete the current instruction SC2 is configured as an output strobe 74LS373, address strobe (AS) can also be before It responds to the request. If the in- (OS3) and can be used to strobe output used to demultiplex the two buses exter- terrupt mask bit (I-bit) in the condition data or acknowledge input data for port 3. nal to the IPC (see Figure 10). SC2 pro- code register is clear, the IPC will begin an It is controlled by output strobe select vides the local data bus control signal call- interrupt sequence: a vector is fetched (OSS) in the port 3 control and status ed read/write (R/W) and is used to control GND AS EN/G I I OC 01 01 PORT 3 ADDRESS/DATA .. SN7.4LS373 (TYPICAL) ADDRESS: AU-A7 08 08 DATA: DO-D7 Figure 10. Typical Latch Arrangement 4-62 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'am",,""·',., the direction of local data bus transfers. data acknowledge signal for asyn- Single Chip Modes-In these modes, port An MPU read is enabled when R/W and E chronous data transfers. As an input, it is 3 is an B-bit I/O port where each line is con- are high. sampled on the falling edge of CS by the figured by the port 3 data direction" IPC to determine if the system bus is be· register. Associated with port 3 are two System Bus Interface ing accessed synchronously or asyn· lines, IS3 and OS3, which can be used to Port 1 is a mode-independent 8-bit data chronously with respect to the E clock. If control port 3 data transfers. port which permits the external system DTACK is low when sampled, the system bus to access the dual-port RAM and bus is synchronous and data will be Three port 3 options, controlled by the semaphore registers either asynchronous· transferred during E high. If DTACK is port 3 control and status register and Iy or synchronously with respect to the E high when sampled, the system bus is available only in the single chip modes clock. In addition to the eight data lines asynchronous. In this mode, DTACK are: port 3 input data can be latched using (SDO-SD7), eight address (SAO-SA7) and becomes an output that is asserted low IS3 as a control signal; OS3 can be three control lines (SRIW, CS, DTACK) are when data is on the bus during a system generated by either an I PC read or write to used to access the dual-port RAM and read or when a data transfer is completed the port 3 data register; and an IRQ1 inter- semaphore registers. during a system write. rupt can be enabled by an IS3 negative Port 1 Data Lines (SOO·S07)-These data DTACK requires an external pullup edge. Port 3 timing diagram and cor- responding electrical specifications are 4 lines are bidirectional data lines which resistor when the system bus is run asyn- contained towards the end of this data allow data transfer between the dual-port chronously since it is then a bidirectional sheet. RAM or the semaphore registers, and the handshake line for information transfer on Port 3 Control and Status Register system bus. The data bus output drivers the system data bus. 4 0 are three-state devices which remain in $OF the high-impedance state except during a DTACK timing diagrams and corre- read of the IPC dual-port RAM or sema- sponding electrical specifications are phore registers by the system processor. contained towards the end of this data Bits 0-2 Not used sheet. Bit 3 Latch enable-This bit controls System Address Lines (SAO·SA7)-The ad- the input latch for port 3. If set, dress lines together with the chip select Port 2 (P20·P24) input data is latched by an IS3 signal allow any of the 12B bytes of RAM Port 2 is a mode independent 5-bit I/O port negative edge. The latch is or six semaphore registers to be uniquely where each line is configured by its data transparent after a read of the selected from the system bus. The ad- direction register. During reset, all lines port 3 data register. Latch dress lines must be valid before the CS are configured as inputs. The TTL com- enable is cleared by reset. signal goes low for the asynchronous in· patible three-state output buffers can Bit 4 OSS (output strobe select)- terface and valid before the E signal goes drive one Schottky TTL load and 30pF, or This bit determines whether OS3 high for the synchronous interface. The CMOS devices using external pullup will be generated by a read or system interface must be deselected be· resistors. P20, P21 and P22 must always write of ;;,e port 3 data register. tween reads or between writes for the be connected to provide the operating When clear, the strobe is asynchronous operation. mode. generated by a read; when set, it Port 2 Data Register is generated by a write. OSS is System Read/Write (SRiW)-This signal is cleared by reset. 76543210 Bit 5 Not used generated by the system bus to control the direction of data transfer on the data 1=1~1~1~lmlrnl~I~la Bit 6 IS3-IRQ1 enable-When set, an bus. With the IPC selected, a low on the IRQ1 interrupt will be enabled SR/W line enables the input buffers, and Inputs on P20, P21 and P22 determine the whenever IS3 flag is set; when data is transferred from the system pro- operating mode which is latched into the clear, the interrupt is inhibited. cessor to the IPC. When SR/W is high and program counter register on the positive This bit is cleared by reset. the chip is selected, the data output buf- edge of RESET. The mode can be read Bit 7 IS3 flag-This read-only status fers are turned on and data is transferred from the port 2 data register (PC2 is bit is set by an IS3 negative from the IPC to the system bus. latched from pin 45). edge. It is cleared by a read of the port 3 control and status Chip Select (CS)- This signal is a TIL Port 2 also provides an interface for the register (with IS3 flag set) fol- compatible input signal used to activate serial communications interface and lowed by a read or write to port 3 the system bus interface and allows timer. Bit 1, if configured as an output, is data register or by reset. transfer of data between the IPC and the dedicated to the timer output compare system processor during synchronous or function and cannot be used to provide Expanded Non·Multiplexed Mode-In this asynchronous accesses. CS provides the output from the port 2 data register. mode, port 3 is configured as a bi- synchronizing signal for the semaphore directional data bus (DO·D7). The direction registers during access by the system Port 3 (P30·P37) of data transfers is controlled by R/W bus. Port 3 can be configured as an I/O port, a (SC2). Data transfers are clocked by E bidirectional B·bit data bus, or a multi· (enable). Data Transfer Acknowledge (OTACK)- plexed address/data bus depending on the This bidirectional control line is used to operating mode. The TIL compatible Expanded Multiplexed Modes-In these determine synchronous or asynchronous three·state output buffers can drive one modes, port 3 is configured as a time- system bus accesses and to provide the Schottky TIL load and 90pF. multiplexed address (AO-A7) and data bus Signetics 4·63 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'ptE1"..IIeI.i'l (DO-D7). Address strobe (AS) must be Input Table 6. SIGNAL SUMMARY on SC1, and can be used externally to demultiplex the two buses. Port 3 Is held Signal Name Mnemonic Input/Output Active State Three State in a high-impedance state between valid System Address Bus high SAO-SA7 input/output no address and data to prevent potential bus yes System Data Bus SDO-SD7 input/output high conflicts. System Read/Write SR/W input read-high - write-low Port 4 (P40·P47) Port 4 is configured as an 8-bit I/O port, as Chip Select CS input low - Data Transfer DTACK Input/output low yes address outputs, or as data inputs Acknowledge depending on the operating mode. Port 4 Strobe Control #1 SC1 output high yes can drive one Schottky TIL load and 90pF and is the only port with internal pullup Strobe Control #2 SC2 Input high - resistors. Enable E Input high - Reset RESET input low - Single Chip Modes-In these modes, port Interrupt Request 1 IRQ1 input low - Halt, Bus Available, 4 functions as an 8-bit I/O port where each Non-maskable Interrupt HALT/BA/NMI input/output low yes line is configured by the port 4 data direc- high yes I/O Port 2 P20-P24 input/output tion register. Internal pullup resistors high yes I/O Port 3 P30-P37 input/output allow the port to directly interface with high yes I/O Port 4 P40-P47 input/output CMOS at 5 volt levels. External pullup resistors to more than 5 volts, however, Ground Vss Input - - cannot be used. Power Input Vee Input - - Expanded Non-Multiplexed Mode-In this mode, port 4 is configured from reset as and expanded multiplexed. Single chip in- cant on-chip resources. Port 3 functions an 8-bit input port, where the data direc- cludes modes 4 and 7, expanded non- as an 8-bit bi-dlrectional data bus and port tion register can be written to provide any multiplexed is mode 5 and the remaining 4 is configured as an input data port. Any or all of address lines AO-A7. Internal five are expanded multiplexed modes. A combination of AO to A7 can be provided pullup resistors are intended to pull the system utilizing three SC68120's, one in while retaining the remainder as input lines high until the data direction register each of the fundamental operating modes, data lines. Any combination of the eight is configured. Is shown In Figure 11. Table 7 summarizes least-significant address lines can be ob- the characteristics of the operating tained by writing to the port 4 data direc- Expanded Multiplexed Mode-In all of modes. tion register. Internal pullup resistors are these modes, except mode 6, port 4 func- provided to pull port 4 lines high until it is tions as half of the address bus and pro- configured. Single Chip Modes (4, 7)-ln single chip vides A8 to A 15. In mode 6, the port Is con- mode, three of the four IPC ports are con- figured from reset as an 8-blt parallel input Figure 13 illustrates the external re- figured as parallel Input/output data ports, port; the port 4 data direction register sources available in the expanded non- as shown in Figure 12. The IPC functions must be written to provide any or all of ad- multiplexed mode. The IPC interfaces as a complete microcomputer in these two dress lines A8 to A15. Internal pullup directly with the Motorola M6800 family modes without external address or data resistors are intended to pull the lines parts (or parts with equivalent interfaces) buses. A maximum of 21 I/O lines and two high until the data direction register is and can access 256 bytes of external ad- port 3 control lines are provided. configured (bit 0 controls A8, etc.) dress space at $100 through $1 FF. lOS provides an address decode of external In single chip test mode (4), the RAM Signal Summary memory ($100-$1 FF) and can be used as responds to addresses $XX80 (X = don't Table 6 is a summary of all the signals an address or chip select line. care) through $XXFF and the ROM is discussed in the previous paragraphs. removed from the internal address map. A Expanded Multiplexed Modes (0, 1, 2, 3, test program must first be loaded into 6)-ln the expanded multiplexed modes, RAM using modes 0,1,2, or6. If the IPC is OPERATING MODES reset and then programmed into mode 4, the IPC has the ability to access a The IPC provides eight different operating 64K-byte memory space. Port 3 functions execution will begin at $XXFE:XXFF. modes which are selectable by hardware as a time-multiplexed address/data bus Mode 5 can be irreversibly entered from programming and referred to as modes 0 with the address valid on the negative mode 4 without going through reset by through 7. The operating mode controls edge of address strobe (AS) and the data setting bit 5 of the port 2 data register. the memory map, configuration of port 3, bus valid while E is high. In modes 0 to 3, This mode Is used primarily to test port 3 port 4, SC1 and SC2, and the address loca- port 4 provides address lines A8-A15. and 4 In the single chip and non- tion of the Interrupt vectors. However, in mode 6, port 4 can provide any multiplexed modes. subset of A8 to A15 while retaining the re- Fundamental Modes mainder as Input lines. Writing 1's to the The eight modes of the IPC can be Expanded Non-Multiplexed Mode (5)-A desired bits In the data direction register grouped Into three fundamental modes modest amount of external memory space (DDR) will output the corresponding ad- which refer to the type of bus it supports: is provided in the expanded non- dress lines while the remaining bits will re- single chip, expanded non-multiplexed, multiplexed mode while retaining slgnifi- main inputs (as configured from reset or 4·64 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm"",u!.iii SCN66000, M6S000, OR MICROPROCESSOR WITH EQUIVALENT SYNCHRONOUS INTERFACE RAM SINGLE CHIP MODE 4 ROM EXPANDED NON·MULTIPLEXED MODE SYSTEM BUS EXPANDED MULTIPLEXED MODE ROM LOCAL BUS '"fa0: c C c c ~ RAM PERIPHERALS Figure 11. IPC Fundamental Operating Modes Signetics 4·65 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""''''·''t Table 7" SUMMARY OF IPC OPERATING MODES Common to all Modes: Expanded Multiplexed Modes System Bus Interface Four Memory Space Options (64K Address Space): Reserved Register Area (1) MOOS Compatible 6 Semaphore Registers (2) No ROM I/O Port 2 (3) External Vector Space Programmable Timer (4) ROM with Partial Address Bus" Serial Communications Interface External Memory Space Accessed Through: 128 bytes of Dual Ported RAM Port 3 as a Multiplexed Address/ Data Bus Single Chip Mode" Port 4 as an Address Bus (High) 2048 Bytes of ROM (Internal) SCl is Address Strobe Bus (AS) Input Port 3 is a Parallel I/O Port with Two Control Lines SC2 is Read/Write (R/W) Port 4 is a Parallel I/O Port SCl is Input Strobe 3 (IS3) Test Modes SC2 is Output Strobe 3 (OS3) Expanded Multiplexed Test Mode May be Used to Test RAM and ROM" Expanded Non-Multiplexed Mode" Single Chip and Non-Multiplexed Test Mode" 2048 Bytes of ROM (lnternaJ) May be Used to Test Ports 3 and 4 as I/O Ports 256 Bytes of External Memory Space Port 3 is an 8-Bit Data Bus Port 4 is an Address Bus SCl is Input/Output Select (lOS) SC2 is Read/Write (A/W) "SCN68120 only Vcc RESET SCN68120 Hrn/BAliiiMi IRQ1 PORT3 8 SYSTEM 81/0 LINES ADDRESS LINES PORT1 iSs 8 SYSTEM SYSTEM DATA LINES BUS OS3 SRm CS PORT4 iifA'Ci( 81/0 LINES PORT 2 5110 LINES SERIAL 1/0, 16·BIT TIMER - VSS Figure 12. Single Chip Mode 4"66 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'pmn"iiel.'4' vcc E RESET SCN68120 HArf/BAlJiIW iiml PORT3 8 SYSTEM 8 DATA LINES ADDRESS LINES PORT 1 Rm 8 SYSTEM DATA LINES SYSTEM BUS 4 105 sRiW CI" PORT 4 DTACK 8 ADDRESS LINES PORT2 51/0 LINES SERIAL I/O, 18·BIT TIMER vss Figure 13. Expanded Non·Multiplexed Mode from O's written to the OOR). Internal ing the positive edge of RESET. These are INTERRUPTS pullup resistors are provided to pull port 4 latched into PC2, PC1, and PCO of the pro· lines high until software configures the gram control register. The operating mode The IPC supports two types of interrupt reo port. Initialization of port 4 in mode 6 must can be read from the port 2 data register quests: maskable and non·maskable. A be done to obtain any upper address lines and programming levels and timing must non·maskable interrupt (NMI) is always externally. be met as shown in Figure 15 and Table 8. recognized and acted upon at the comple· A brief outline of the operating modes in tion of the current instruction. Maskable Figure 14 depicts the external resources shown in Table 9. interrupts are controlled by the condition available in the expanded multiplexed code register I·bit and by individual enable modes. Address strobe can be used to Circuitry to provide the programming bits. The I·bit controls all maskable inter· control a transparent O·type latch to cap· levels is primarily dependent on the nor· rupts. Of the maskable interrupts, there ture addresses AO·A?, as shown in figure mal system use of the three pins. If con· are two types: IRQl and IRQ2. The pro· 10. This allows port 3 to function as a data figured as outputs, the circuit shown in grammable timer and serial communica· bus when E is high. Figure 16 can be used; otherwise, three· tions interface use an Internal IRQ2 inter· state buffers can be used to provide isola· rupt line, as shown in the block diagram of I n mode 0, the reset vector is external at tion while programming the mode. the I PC. External devices (and 153) use $BFFE and $BFFF after the positive edge IRQ1. An IRQ1 interrupt is serviced before of RESET. In addition, the internal and ex· an IRQ2 interrupt if both are pending. ternal data buses are connected together MEMORY MAPS so there must be no memory map overlap The IPC provides up to 64K bytes of ad· (to avoid potential bus conflicts). Mode 0 dress space depending on the operating is used primarily to verify the ROM pattern mode. A memory map for each operating All IRQ2 interrupts use hardware priori· and monitor the internal data bus with mode is shown in Figure 17. In modes lR tized vectors. The single SCI interrupt and automated test equipment. and 6R, the R means the ROM has been three timer interrupts are serviced in a relocated by a mask option. The first 32 prioritized order where each is vectored to MODE PROGRAMMING locations of each map are reserved for the a separate location. All IPC vector loca· The operating mode is programmed by the IPC internal register area, as shown In tions are shown In Table 11, from highest levels asserted on P22, P21, and P20 duro Table 10, with exceptions as indicated. (top) to lowest (bottom) priority. Signetics 4·67 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'up"""".'" Vee ~---- E SCN881201 SCN68121 PORT 3 8 LINES MULTIPLEXED ' - - - - - , 8 SYSTEM ADDRESS/DATA ADDRESS LINES PORT 1 RIW 4 - - - - - 1 8 SYSTEM DATA LINES SYSTEM BUS AS ----41"'1 14----- SR/W 14----~ PORT4 t - - - - - I - 15TACR' 8 ADDRESS LINES PORT2 5 UO LINES SERIAL 110, 18·BIT TIMER VSS Figure 14. Expanded Multiplexed Mode Figure 15. Mode Programming Timing 4·68 Signefics MICROPROCESSOR DIVISION JANUARY 1963 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""n".." Table 8. MODE PROGRAMMING SPECIFICATIONS (See Figure 15) Characteristic Symbol Min Typ Max Unit Mode Programming Input Voltage Low VMPL - - 1.B V Mode Programming Input Voltage High VMPH 4.0 - - V Mode Programming Diode Differential lif Diodes are Used) VMPDD 0.6 - - V RESET Low Pulse Width PWRSTL 3.0 - - E-Cycles Mode Programming Setup Time tMPS 2.0 - - E-Cycles Mode Programming Hold Time REm Rise Time 2: 1 p,s tMPH 0 - - ns RESET Rise Time< 1 P.s 100 - - Table 9. MODE SELECT SUMMARY Pin 45 Pin 44 Pin 43 4 Interrupt Bus Operating Mode P22 P2l P20 ROM RAM Vectors Mode Mode PC2 PCl PCO 7 H H H I I I I Single Chip 6 H H L I I I MUXI5,6) Multiplexed/Partial Decode (5 ) 5 H L H I I I NMUXI5,6) Non-Multiplexed/ Partial Decode (5 ) 4 H L L 1(2 ) 111) I I Single Chip Test 3 L H H E 1(7 ) E MUX(4) Multiplexed/ RAM (4) 2 L H L E I E MUX(4) M ultiplexed/ RAM 141 1 L L H I I E MUX(4) Multiplexed/RAM and ROM(4) 0 L L L I I E(3) MUX(4) Multiplexed Test (4 ) Legend: Notes: I - Internal (1) Internal RAM is addressed at $XXBO E - External (2) Internal ROM is disabled MUX - Multiplexed (3) Interrupt vectors externally located at $BFFO-$BFFF NMUX - Non-Multiplexed (4) Addresses associated with Ports 3 and 4 are considered external in Modes 0, 1, 2, and 3 L - Logic "0" (5) Addresses associated with Port 3 are considered external in Modes 5 and 6 H - Logic "1" (6) Port 4 default is user data input; address output is optional by writing to Port 4 Data Direction Register (7) Internal RAM and registers located at $COXX Ifor use with MDOS) Table 10. INTERNAL REGISTER AREA Address**** Address**** Register Register I Hexadecimal) ( Hexadecimal) Reserved 00 SCI Rate and Mode Control Register 10 Port 2 Data Direction Register··· 01 Transmit/Receive Control and Status Register 11 Reserved 02 SCI Receive Data Register 12 Port 2 Data Register 03 SCI Transmit Data Register 13 Port 3 Data Direction Register··· 04· Port 4 Data Direction Register··· 05·· Function Control Register 14 Port 3 Data Register 06· Counter Alternate Address I High Byte) 15 Port 4 Data Register Or" Counter Alternate Address (Low Byte) 16 Timer Control and Status Register OB Semaphore 1 17 Counter (High Byte) 09 Semaphore 2 18 Counter (Low Byte) OA Semaphore 3 19 Output Compare Register (High Byte) DB Semaphore 4 lA Output Compare Register I Low Byte) OC Semaphore 5 lB Input Capture Register (High Byte) OD Semaphore 6 lC Input Capture Register (Low Byte) OE Reserved 1D-1F Port 3 Control and Status Register OF· "These external addresses in Modes 0, 1, 2, 3, 5, 6 cannot be ac- "·"1 = Output, 0= Input cessed in Mode 5 (no lOS), "". "These addresses relocated at $COOO-$COl F in Mode 3. ""These are external addresses in Modes 0, 1, 2, 3. Signetics 4·69 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm",,""···, vcc SCN681201 R2 R1 R1 R1 SCN68121 REsET r--' I 48 Rffi'f I I 43' P20 P20(PCO) 44 P21 P21(PC1) I I 45 P22 L __ J P22(PC2) OPTIONAL THREE·STATE BUFFERS MODE CONTROL SWITCHES Notes: 1. Mode 7 as shown D 2. R2-C =Reset time constant 3, R1 = 10k (typical) 4, D= 1N914, 1N4001 (typical) C I Figure 16. Typical Mode Programming Circuit The interrupt flowchart is shown in Figure Timer Control and a match has been found between the free- 18. The program counter, index register, Status Register (S08) running counter and the output compare accumulator A, accumulator B, and condi· The timer control and status register register, or that the free-running counter tion code register are pushed to the stack. (TCSR) is an B-bit register of which all bits has overflowed. The I·bit is set to inhibit maskable inter- are readable, while bits 0-4 can be written. rupts and a vector is fetched corrrespond- The three most significant bits provide the Each of the three events can generate an ing to the current highest priority inter- timer status and indicate that a proper IRQ2 interrupt and is controlled by an in- rupt. The vector is transferred to the pro- level transition has been detected, or that dividual enable bit in the TCSR. gram counter and instruction execution is resumed. The general interrupt timing se- Table 11. MCU VECTOR LOCATIONS* quence is shown in Figure 19. The inter- rupt HALT/BA timing Is illustrated in MSB LSB Interrupt Figures 8 and 9. $FFFE FFFF RESET"· FFFC FFFD NMI FFFA FFFB Software Interrupt (SWIl PROGRAMMABLE TIMER FFFB FFF9 IRQ1 lor 153) The programmable timer can be used to FFF6 FFF7 ICF (Input Capture) perform input waveform measurements FFF4 FFF5 OCF (Output Compare) while independently generating an output waveform, Pulse widths can vary from FFF2 FFF3 TOF ITimer Overflow) several microseconds to many seconds. A FFFO FFF1 SCI IRDRF+ ORFE+ TDRE) block diagram of the timer is shown in "These locations are relocated at $BFFO-$BFFF In Mode 0, Figure 20. ""Highest priority, 4·70 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 ':Ri1nllll.i.iN o SCN68120 MODE MULTIPLEXED TEST MODE INTERNAL REGISTERS SOOIF EXTERNAL MEMORY SPACE $0080 NOTES 1. Excludes the following addresses which may be used exter· INTERNAL RAM nally: $04, $05, $06, $07 and $OF. 2. The interrupt vectors are externally located at SBFFO- SOOFF $BFFF. 3. There must be no overlapping of internal and external mem- EXTERNAL MEMORY SPACE ory spaces to avoid driving the data bus with more than one device. 4. This mode is the only mode which may be used to examine 4 the Interrupt vectors in internal ROM using an external $BFFO RESET vector. EXTERNAL INTERRUPT VECTORS(2) S. SCN68120 only. SBFFF EXTERNAL MEMORY SPACE $F800 INTERNAL ROM(5) SCN68120 SCN68120 MODE 1 MODE MULTIPLEXED/RAM AND ROM MULTIPLEXED/RAM AND ROM $0000 $0000 INTERNAL REGISTERS(I) INTERNAL REGISTERS(I) $OOIF EXTERNAL MEMORY SPACE EXTERNAL MEMORY SPACE $0080 S0080 INTERNAL RAM INTERNAL RAM $OOFF ~"""'''-''-'II < EXTERNAL MEMORY SPACE EXTERNAL MEMORY SPACE $X800 INTERNAL ROM(2) $F800 b-.,...,,...,...,.....-II ~ SXFFF I-'-"~'-"~I< INTERNAL ROM EXTERNAL MEMORY SPACE :~~~~ ~""'..L."'-'I EXTERNAL INTERRUPT VECTORS EXTERNAL INTERRUPT VECTORS(2) SFFFF ....._ _ _- - ' $FFFF ....._ _ _- - ' NOTES NOTES 1. Excludes the following addresses which may be used exter- 1. Excludes the following addresses which may be used exter- nally: $04, $05, $06, $07 and $OF. nally: $04, SOS, $06, $07 and SOF. 2. Internal ROM addresses $FFFO to $FFFF are not usable. 2. Starting addresses for the internal ROM may be $C800, $0800 or $E800 as a mask option. Figure 17. IPC Memory Maps Signetics 4·71 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""n"·'i' MULTIPLEXED/RAM SCN681201 SCN68121 MODE 2 MULTIPLEXED/RAM, MDOS COMPATIBLE(I) $0000 . - - - - - . .... SCN68120/ SCN68121 MODE 3 SoooO ,.,..~,..,....,..,." INTERNAL REGISTERS(I) EXTERNAL MEMORY SPACE EXTERNAL MEMORY SPACE INTERNAL RAM SCOOO r,...,'"7"7"'7't( INTERNAL REGISTERS(2) EXTERNAL MEMORY SPACE EXTERNAL MEMORY SPACE INTERNAL RAM EXTERNAL MEMORY SPACE EXTERNAL INTERRUPT VECTORS SFFFO t-----t EXTERNAL INTERRUPT VECTORS SFFFF ....- - -... NOTES 1. Relocating the Internal registers and the internal RAM to high memory allows NOTES processor to run MOOS. 1. Excludes the following addresses which may be used externally: $04, $05, $06, 2. Excludes the following addresses which may be used externally: $COO4, $Caa5, $07 and $OF. SCOO6, SCOO7 and $COOF. SCN68120 MODE 4 SCN68120 MODE 5 SINGLE CHIP TES,.(2) NON.MULTIPLEXED/PARTIAL DECODE(2K3) $0000(1) } $0000 rrr::M""'7''''\' INTERNAL REClISTERS(5) .001F W"~ INTERNAL REGISTERS $OOIF ~-,,.,,-.... f $0080 ~UNUSABLE } INTERNAL RAM $OOFF .0100 EXTERNAL MEMORY SPACE $OlFF UNUSABLe'IK4) UNUSABLE 'FBOO '-""""'"7"'7'1 SXX80(3) V-~~"7"'7'I} INTERNAL RAM(4) ,XXFF INTERNAL INTERRUPT VECTORS NOTES NOTES 1. The internal ROM Is disabled. 1. Excludes the following addresses which may not be used externally: $04, $06 2. Mode 4 may be changed to Mode 5 without having to assert RESET by writing a and $OF (no lOS). "I" into bit 5 (PCO) of Port 2 Oata Register. 2. This mode may be entered without going through Reset by using Mode·4 and 3. Addresses AS to A15 are treated as "don't cares" to decode internal RAM. subsequently writing a "1" into bit 5 (PCO) of Port 2 Data Register. 4. Intornal RAM will appoar at $XX80 to $XXFF. 3. Address lines AD to A7 will not contain addresses until the Data Direction Regis- 5. MPU read of Port 3 Data Direction Register will access Port 3 Data Register ter for Port 4 has been written with "1"8 in the appropriate bits. These address Instead. lines will assert "1"s until made outputs by writing the Data Direction Register. Figure 17. IPC Memory Maps (Continued) 4·72 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'W""Juie'd SCN68120 MODE 6 SCN68120 MODE MULTIPLEXED/PARTIAL DECODE MULTIPLEXED/PARTIAL DECODE INTERNAL REGISTERS(1X2) INTERNAL REGISTERS(1X2) EXTERNAL MEMORY SPACE EXTERNAL MEMORY SPACE INTERNAL RAM INTERNAL ROM(3) EXTERNAL MEMORY SPACE EXTERNAL MEMORY SPACE 4 INTERNAL ROM(3) $XFFF f-'o...L"':"'''''-'''-''4 < EXTERNAL MEMORY SPACE INTERNAL ROM $FFFO I - - - - - - H EXTERNAL INTERRUPT VECTORS INTERNAL INTERRUPT VECTORS NOTES NOTES 1. Excludes the following addresses which may be used externally: $04, $06, $OF. 1. Excludes the following addresses which may be used externally: $04, $06, $OF. 2. Address lines A8-A15 will not contain addresses until the Data Direction Regis· 2. Address lines A8-A15 will not contain addresses until the Data Direction Aegis- ter for Port 4 has been written with "1 "5 in the appropriate bits. These address ter for Port 4 has been written with "1"5 in the appropriate bits. These address lines will assert "l"s until made outputs by writing the Data Direction Register. lines will assert "l"s until made outputs by writing the Data Direction Register. 3. Starting addresses for the internal ROM may be $CBOO, $DBOO or $EBOO. SCN68120 MODE 7 SINGLE CHIP $0000 } $001F~~ INTERNAL REGISTERS(1) UNUSABLE $0080~} INTERNAL RAM ~" 1 NOTES 1. MPU reads of Port 3's Data Direction Register will access Port 3's Data Register Instead. UNUSABLE $FFFF "-"""'''"'''''........ Figure 17. IPC Memory Maps (Continued) Signetics 4·73 i" '$: I ~ z o ~ m e3 r- r-~ m G> z 8 m ;;v ~ o <: "V !1i m oz !!!! "V ::l: m :;0 »r- o oz :!! ~ CI c :;0 S0- - Gl l'" or- cg :; CD r- m :;0 sa o· 2 '9. en "T1 ~ .. n ~ :1 SCI = TILTDRI + RIE_IRDRF + ORFE) en VECTOR _ PC 0 MODE 0 MODES.-7 Z 0- NMI BFFC-BFFD FFFC-FFFD NON-MASKABLE INTERRUPT C» SWI BFFA-BFFB FFFA-FFFB SOFTWARE INTERRUPT ..a. IRQ. ICF OCF TOF BFF8-BFF9 BFF6-BFF7 BFF4-BFF5 BFF2-BFF3 FFF8-FFF9 FFF6-FFF7 FFF4-FFF5 FFF2-FFF3 MASKABLE INTERRUPT REQUEST' INPUT CAPTURE INTERRUPT OUTPUT COMPARE INTERRUPT TIMER OVERFLOW INTERRUPT - N C en 0 Z '- » SCI INTERRUPT (TDRE + RDRF + ORFE) Z SCI BFFO-BFF. FFFO-FFF' 0- c: C» » ;;v A ..a. -< N ..a. <; co w MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/$CN68121 'm""n"_.,, I CYCLE I N2 LAST INSTRUCTlON--! N1 " '6 " '8 '0 ",0 ." '12 OP CODe OP CODE SPin) SPIn 1) SP(n.2) SP(n·3) SP(n·4) SP(n·5) SP(n·6) SP(n.]) VECTOR VECTOR NEW PC ADDR ADDA + 1 MSB ADDR LSB AD DR ADDRESS \~~------------------------------------------------------------ -----1 I-- 'PCS FIRST INST OF INTERRUPT ROUTINE INTERNAL------~r---~,---~,r_----,,----;J----~r_--~~----~----_v----~r_----v_----~r_----v_----"----~I DATABUS-------r~---J~O-P-C-O-D-E~O-P-C-O-DJE~P-C-O.-7J\-P-C-8.-.5-'·~X-O-.-7~-X-8-.-.5-'·~A-C-C-AJ'--A-C-C-BJ\--C-C-R-''~,R-RE-L-EV-A-NJT'-V-EC-T-O-R'~----~-----'·, _ _____- - - - - - - - - - - - - - - - - - - -__ + 1 DATA MSB 4 INTERNAL R/W \~---------------------------'I Figure 19. Interrupt Sequence SCN681201SCN68121 INTERNAL BUS b7 a OUTPUT LEVEL TIMER REGISTER CONTROL AND STATUS REGISTER BITI $08 PORT 2 OOR OUTPUT COMPARE PULSE _ _ _ _' OUTPUT INPUT LEVEL EDGE BIT 1 BIT 0 PORT 2 PORT 2 Figure 20. Programmable Timer-Block Diagram Signetics 4·75 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""""··,, Timer Control and Status Register (TSCR) Counter (S09:0A) mark/space (NRZ) and bi-phase. Both for- The key timer element is a 16-bit free· mats provide one start bit, eight data bits, 7654321,. running counter which is incremented by and one stop bit. Baud and bit rate are IICF I OCF I TOF I EICII EOCII ETOIIIEDGI )lVI I $08 E (enable). It is cleared during reset and is used synonymously in the following a read·only with one exception: a write to description. OLVL Output level-OLVL is clocked to the counter ($Og) will preset it to $FFF8. the output level register by a suc· This feature, intended for testing, can Wake· Up Feature cessful output compare and will disturb serial operations because the In a typical serial loop multiprocessor con- appear at P21 if bit 1 of the port 2 counter provides the SCI internal bit rate figuration, the software protocol will data direction register is set. It is clock. TOF is set whenever the counter usually identify the addressee(s) at the cleared by reset. contains all 1'so The counter can also be beginning of the message. In order to read at locations $15 and $16 to avoid the allow uninterested MPUs to ignore the re- IEDG Input edge-IEDG is cleared by clearing of the TOF. mainder of the message, a wake-up fea- reset and controls which level transition will trigger a counter ture is included whereby all further SCI transfer to the input capture Output Compare Register receiver flag (and interrupt) processing register: (SOB:OC) can be inhibited until the data line goes IEDG = 0 transfer on a negative The output compare register is a 16-bit idle. An SCI receiver is reenabled by an edge read/write register to control an output idle string of ten consecutive 1's or by IEDG = 1 transfer on a positive waveform or provide an arbitrary timeout reset. Software must provide the required edge flag. It is compared with the free-running idle string between consecutive mes- counter on each E·cycle. When a match is sages and prevent it within messages. ETOI Enable timer overflow interrupt- found, OCF is set and OLVL is clocked to When set, an IRQ2 interrupt is an output level register. If port 2, bit 1 is enabled for a timer overflow; when configured as an output, OLVL will appear Programmable Options clear, the interrupt is inhibited. It at P21. The output compare register and The following features of the SCI are pro· is cleared by reset. OLVL can then be changed for the next grammble: compare. The compare function is in· - Format: standard mark/space (NRZ) or EOCI Enable output compare inter- bi-phase hibited for one cycle after a write to the rupt-When set, an IRQ2 interrupt - Clock: External or internal clock source high byte of the counter ($OB) to ensure a is enabled for an output compare; - Baud rate: One of four per E-clock fre- valid compare. The output compare when clear, the interrupt is in- quency or one-eighth of the external register is set to $FFFF by reset. hibited. It is cleared by reset. clock input to P22 Input Capture Register (SOD:OE) - Wake-up features: enabled or disabled EICI Enable input capture interrupt- The input capture register is a 16·bit read· - Interrupt requests: enabled individually When set, an IRQ2 interrupt is only register used to store the free- for transmitter and receiver enabled for an input capture; running counter when a 'proper' input - Clock output: internal bit rate clock when clear, the interrupt is in· transition occurs as defined by IEDG. Port enabled or disabled to P22 hibited. It is cleared by reset. 2, bit 0 should always be configured as an TOF Timer overflow flag- TOF is set input, but the edge detect circuit always Serial Communications Registers when the counter contains all 1'so senses P20, even when configured as an The SCI includes four addressable regis- It is cleared by reading the TCSR output. An input capture can occur in- ters as depicted in Figure 21. It is con· (with TOF set) followed by reading dependently of ICF: the input capture trolled by the rate and mode control the highest byte of the counter register always contains the most current register and the transmit/receive control ($09), or by reset. Reading the value regardless of whether ICF was and status register. Data is transmitted counter at $15 will not clear TOF. previously set or not. Counter transfer is and received utilizing a write-only transmit inhibited, however, between accesses of a register and read-only receive register. OCF Output compare flag-OCF is set double byte IPC read. The input pulse when the output compare register The shift registers are not accessible by width must be at least two E-cycles to en- software. matches the free·running counter. sure an input capture under all conditions. It is cleared by reading the TCSR (with OCF set) and then writing to Rate and Mode Control Register ($10)- SERIAL COMMUNICATIONS The rate and mode control register the output compare register ($OB or $OC), or by reset. INTERFACE (RMCR) controls the SCI baud rate, for- A full-duplex asynchronous serial com- mat, clock source, and under certain con- ICF Input capture flag-ICF is set to munications interface (SCI) is provided ditions, the configuration of P22. The indicate a proper level transition. with two data formats and a choice of register consists of four write-only bits It is cleared by reading the TCSR baud rates. The SCI transmitter and which are cleared by reset. The two least (with ICF set) and then reading the receiver are functionally independent, .but signficant bits control the baud rate of the input capture register high byte use the same data format and bit rate. internal clock and the remaining two bits ($OD), or by reset. Serial data formats include standard control the format and clock source. 4·76 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'mU';""."j BIT 7 RATE AND MODE CONTROL REGISTER BIT 0 I I I I I CCI CCO SSI sso SID TRANSMIT/RECEIVE CONTROL AND STATUS REGISTER I I I I I I RDRF ORFE TDRE RIE RE TIE TE I I WU $11 RECEIVE DATA REGISTER S12 PORTa 4 (NOT ADDRESSABLE) RECEIVE SHIFT REGISTER 45 !4----E (NOT ADDRESSABLE) TRANSMIT SHIFT REGISTER 47 TRANSMIT DATA REGISTER Figure 21. SCI Registers Table 12. SCI BIT TIMES AND RATES SSl:SS0 E 614.4 kHz 1.0 MHz 1.2288 MHz 0 0 +16 26 1'5/38.400 Baud 161'5/62,500 Baud 13.01'5/76,800 Baud 0 1 + 128 208 1'5/4,800 Baud 1281'5/7812.5 Baud 104.2 1'5/9,600 Baud 1 0 + 1024 1.67 ms/600 Baud 1.024 ms/976.6 Baud 833.31'5/1,200 Baud 1 1 +4096 6.67ms/150 Baud 4.096 ms/244.1 Baud 3.33 ms/300 Baud Table 13. SCI FORMAT AND CLOCK SOURCE CONTROL Clock Port 2 CC1:CCO Format Source Bit 2 0 0 Bi-Phase Internal Not Used 0 1 NRZ Internal Not Used 1 0 NRZ Internal Output 1 1 NRZ External Input Signetics 4·77 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""'''t·'ii Rate and Mode Control Register (RMCR) TE Transmit enable-When set, the Serial Operations P24 OOR bit is set, cannot be The SCI is initialized by writing the control 76543210 changed, and will remain set If TE bytes first to the rate and mode control I x xIx I I I x CCl cco 551 sseI I I I $10 is subsequently cleared. When TE register and then to the transmit/receive is changed from clear to set, the control and status register. When TE is transmitter is connected to P24 set, the output of the transmit shift SS1:SS0 Speed Select-These two bits and a preamble of nine con- register is connected to P24 and serial select the baud rate when us- secutive 1's is transmitted. TE is output Is initiated by the transmission of a ing the internal clock. Four cleared by reset. 9-blt preamble of 1's. At this point, if the rates may ,be selected which TIE Transmit interrupt enable-When transmit data register (TORE) is empty are a function of the IPC input set, an IRQ2 interrupt is enabled (TORE= 1), a continuous string of 1's will frequency (E). Table 12 lists bit when TORE is set; when clear, the be sent indicating an idle line, or if a byte times and rates for three interrupt Is Inhibited. TIE is has been written to the TORE (TORE = 0), selected IPC frequencies. cleared by reset. the byte will be transferred to the transmit CC1:CCO Clock control and format RE Receive enable-When set, the shift register (synchronized with the bit select-These two bits control P23 OOR bit is cleared, cannot be rate clock), TORE will be set and transmis- the format and select the serial changed, and will remain clear If sion will begin. clock source. If CC1 is set, the RE is subsequently cleared. While data direction register (DDR) RE is set, the SCI receiver is The start bit (0), eight data bits (beginning value for P22 is forced to the enabled. RE is cleared by reset. with bit 0) and a stop bit (1), will be complement of CCO and cannot RIE Receiver interrupt enable-When transmitted. If TORE is still set when the be altered until CC1 Is cleared. set, an IRQ2 interrupt is enabled next byte transfer should occur, 1's will be If CC1 is cleared after having when RORF and/or OR FE is set; sent until more data Is provided. Receive been set, itsOOR value is un- when clear, the interrupt is in- operation is controlled by RE which con- changed. Table 13 defines the hibited. RIE is cleared by reset. figures P23 as an input and enables the format, clock source, and the TORE Transmit data register empty- receiver. In bl·phase format, the output use of P22. TORE is set when the contents of toggles at the start of each bit and 'at half the transmit data register is time when a '1' Is sent. SCI data formats If both CC1 and CCO are set, an external transferred to the output serial are Illustrated in Figure 22. In receiving bi- TTL compatible clock must be connected shift register or by reset. It is phase, a '1' Is input when two transitions to P22 at eight times (8X) the desired baud rate, but not greater than E, with a duty cy- cleared by reading the TRCSR occur in less than 3/4 bit-time, and a '0' is (with TORE set) and then writing input when more than 3/4 bit-time passes cle of 50% (± 10%). If CC1:CCO= 10, the to the transmit data register. Ad- after a transition on P23. internal baud rate clock Is provided at P22 ditional data will be transmitted regardless of the values for TE or RE. only if TORE has been cleared. ORFE Overrun framing error-If set, NOTE: The source of the SCI internal baud rate OR FE indicates either an overrun INSTRUCTION SET or framing error. An overrun oc- The SCN68120/SCN68121 is upward source clock is the free-running counter of the curs when a new byte is ready to and object code compatible with the timer. An IPC write to the counter can transfer to the receiver data Motorola MC6800 processor and directly disturb serial operations. register with RORF stili set. A compatible with the M6801 family pro- receiver framing error has oc- cessors. Transmit/Receive Control and Status curred when the byte boundaries Register ($11)-The transmit/receive con- of the bit stream are not synchro- Programming Model trol and status register (TRCSRj controls nized to the bit counter. An over- A programming model for the SCN68120/ the transmitter, receiver, wake-up run can be distinguished from a SCN68121 is shown in Figure 1. Ac- features, and two Individual interrupts and framing error by the value of cumulator A can be concatenated with ac- monitors the status of serial operations. RORF: if RORF is set, then an cumulator B and jointly referred to as ac- All eight bits are readable while only bits 0 overrun has occurred; otherwise, cumulator 0, where A is the most signifi- to 4 are writable. The register is initialized a framing error has been cant byte. Any operation which modifies to $20 by reset. detected. Data is not transferred the double accumulator will also modify to the receive data register in an accumulator A and/or B. Other registers Transmit/Receive Control and Status overrun condition. ORFE is are defined as follows: Register (TRCSR) cleared by reading the TRCSR (with ORFE set) then reading the Program Counter-The program counter 76543210 receive data register, or by reset. is a 16-bit register which always points to IRDRFloRFE ITDREI RIE I RE I TIE I TE I wu I $11 RORF Receive data register full-RORF the next Instruction. is set when the contents of the in- put serial shift register is transfer- Slack Polnler-The stack pointer is a WU 'Wake-up' on the idle line-When red to the receive data register. It 16-bit register which contains the address set, WU enables the wake-up is cleared by reading the TRCSR of the next available location in a function; it is cleared by ten con- (with RORF set), and then reading pushdown/pullup (LIFO) queue. The stack secutive 1's or by reset. WU will the receive data register, or by resides in random access memory at a not set if the line is idle. reset. location specified by the software. 4·78 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""""·'tI Index Register-The index register is a condition bits: negative (N), zero (Z), in Tables 14, 15, 16 and 17 where execu- 16-bit register which can be used to store overflow (V), carry/borrow from MSB (G), tion times are provided in E-cycles. In- data or provide an address for the indexed and half carry from bit 3 (H). These bits are struction execution times are summarized mode of addressing. testable by the conditional branch instruc- in Table lB. With an input frequency (E) of tions. Bit 4 is the interrupt mask (I-bit) and lMHz, E-cycles are equivalent to micro- Accumulators-The IPC contains two inhibits all maskable interrupts when set. seconds. A cycle-by-cycle description of B-bit accumulators, A and B, which are The two unused bits, b6 and b7, are read bus activity for each instruction is provided used to store operands and results from as ones. in Table 19 and a description of selected in- the arithmetic logic unit (ALU). They can structions is shown in Figure 23. also be concatenated and referred to as the D (double) accumulator. Addressing Modes Immediate Addressing-The operand is The SGN6B120/SCN6B121 provides six ad- contained in the following byte(s) of the Condition Code Register-The condition dressing modes which can be used to instruction where the number of bytes code register indicates the results of an reference memory. A summary of address- matches the size of the register. These are instruction and includes the following five ing modes for all instructions is presented two or three byte instructions. Direct Addressing-The least significant byte of the operand address is contained 4 OUTPUT in the second byte of the instruction and CLOCK the most significant byte is assumed to be $00. Direct addressing allows the user to access $00 through $FF using two byte in- structions and execution time is reduced by eliminating the additional memory ac- NRZ FORMAT cess (see Table 19). In most applications, this 256-byte area is reserved for frequently referenced data. BI·PHASE Note that no direct addressing of internal FORMAT control registers is possible in mode 3. IDLE START BIT BIT STOP Extended Addressing-The second and third bytes of the instruction contain the DATA: 01001101 ($4D) absolute address of the operand. These are three byte instructions. Figure 22. SCI Data Formats Table 14_ INDEX REGISTER AND STACK MANIPULATION INSTRUCTIONS Condition Codes Immed Direct Index Extnd Inherent 5 4 3 2 1 0 Pointer Operations Mnemonic OP- # OP- # OP- # OP- # OP- # Boolean/ H I N Z V C Arithmetic Operation Compare Index Reg CPX BC 4 3 9C 5 2 AC 6 2 BC 6 3 ~-M:M+l • ·ll llU i Decrement Index Reg DEX 09 3 1 X-l-X • • ." • • Decrement Stack Pntr DES 34 3 1 SP - 1 -SP • • ·li •••• Increment Index Reg INX 08 3 1X+1 X •• •• Increment Stack Pntr INS 31 3 1 1 SP + 1 SP •••••• Load Index Reg LDX CE 3 3 DE 4 2 EE 5 2 FE 5 3 M -XH. (M + ll-XL •• R • Load Stack Pntr LDS BE 3 3 9E 4 2 AE 5 2 BE 5 3 M -SPH. (M + 11 -SPL •• R • Store Index Reg STX DF 4 2 EF 5 2 FF 5 3 XH -M, XL -(M + 11 •• R • Store Stack Pntr STS 9F 4 2 AF 5 2 BF 5 3 SPH -M, SPL -(M + 11 •• R • Index Reg - Stack Pntr TXS 35 3 1 X-I -SP •••••• ••• ••• ••• ••• ••• ••• Stack Pntr - Index Reg TSX 30 3 1 SP + I-X Add ABX 3A 3 1 B+X-X Push Data PSHX 3C 4 1 XL -MSp, SP - 1 -SP XH -MSp. SP - 1 --SP Pull Data PULX 38 5 1 SP + 1 -SP, MSp -XH SP + 1 -SP, MSp -XL •••••• Signetics 4·79 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 '."""iI·''I Indexed Addreillng-The unsigned off- branch range of - 126 to 129 bytes from ecute in the same manner. Exceptions are set contained In the second byte of the In- the first byte of the Intruction. These are indicated in the table. structions is added with carry to the Index -two byte instructions. register and used to reference memory Note that during MPU reads of Internal without changing the Index register. locations, the resultant value will not ap- These are two byte Instructions. CYCLE·IY·CYCLE OPERATION pear on the external data bus except in SUMMARY mode O. 'High order' byte refers to the Table 19 provides a detailed description of most significant byte of a HI-bit value. Inherent Addreillng-The operand(s) are the Information present on the address registers and no memory reference .is re- bus, data bus, and the RfW line during The coding of the first (or only) byte cor· quired. These are single byte Instructons. each cycle of each Instruction. Thelnfor- responding to an executable instruction is matlon is useful in comparing actual with sufficient to identify the instruction and Relallve Addressing-Relative addressing expected results during debug of both the addressing mode. The hexadecimal Is used only for branch instructions. If the software and hardware as the program is equivalents of the binary codes, which branch condition is true, the program executed. The information Is categorized result from the translation of the 82 in· counter Is overwritten with the sum of a in groups according to addressing mode structlons In all valid modes of address· signed single byte displacement In the and number of cycles per Instruction. In ing, are shown In Table 20. There are 220 second byte of the instruction and the cur- general, Instructions with the same ad· valid machine codes, 34 unassigned rent program counter. This provides a dressing mode and number of cycles ex- codes and two reserved for test purposes. Table 15. ACCUMULATOR AND MEMORY INSTRUCTIONS Accumulator and Immed Direct Index Extend Inher Boolean Condition Codes Merncry Operations MNE Op - # Op- # Op- # Op - # Op - # Expression H I N Z V C • ••• • • • • Add Acmltrs ABA lB 2 1 A+B -A I I I , I AddBtoX ABX 3A 3 1 OO:B+X-X Add with Carry ADCA 89 2 2 99 3 2 A9 4 2 B9 4 3 A+M+C-A Add ADCB C9 2 2 09 3 2 E9 4 2 F9 4 3 ADDA 8B 2 2 9B 3 2 AB 4 2 BB 4 3 B+M+C-B A+M-A •• •• • ADDB CB 2 2 DB 3 2 EB 4 2 FB 4 3 B+M-A Add Double AD DO C3 4 3 03 5 2 E3 6 2 F3 6 3 0+ M:M + 1-0 And ANDA 84 2 2 94 3 2 A4 4 2 B4 4 3 ANDB C4 2 2 04 3 2 E4 4 2 F4 4 3 A'M-A B'M-B R R •• •• Shift Left, ASL 6B 6 2 7B 6 3 Arithmetic ASLA ASLB 4B 2 1 5B 2 •• Shift Left Obi Shift Right, ASLD ASR 67 6 2776 3 05 3 1 •• ••• Arithmetic ASRA 47 2 1 ASRB 57 2 1 •• Bit Test BITA B5 2 2 95 3 2 A5 4 2 B5 4 3 A'M R Compare Acmltrs BITB C6 2 2 05 3 2 E5 4 2 F5 4 3 CBA B·M 11 2 1 A-B I R I I •• Clear CLR CLRA 6F 6 2 7F 6 3 OO-M 4F 2 1 OO-A R S R R R S R R •• Compare CLRB CMPA Bl 2 2 91 3 2 Al 4 2 Bl 4 3 6F 2 1 OO-B A-M R S R R I I •• • 1'5 Complement CMPB Cl 2 2 01 3 2 El 4 2 Fl 4 3 COM 63 6 2 73 6 3 B-M M-M I I R S •• •• COMA COMB 43 2 1 A-A 53 2 1 Ii-B R S R S •• •• •• ••• Decimal Adj, A DAA 19 2 1 Adj binary sum to BCD. I Decrement DEC DECA 6A 6 2 7A 6 3 M-l-M 4A 2 1 A·l-A • • Exclusive OR DECB EORA BB 2 2 9B 3 2 AB 4 2 B8 4 3 5A 2 1 B·l -B A G) M-A R •• •• •• EORB C8 2 2 08 3 2 EB 4 2 F8 4 3 B G) M-B I R •• • Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'w""""_,,, Table 15. ACCUMULATOR AND MEMORY INSTRUCTIONS (Continued) Accumulator and Immed Direct Index Extend Inher Boolesn Condition Codes Memorv Operations MNE Op # Op - # Op - # Op - # Op - # Expression H N Z V C •• Increment INC 6C 1 6 2 7C 6 3 M+ 1-M I I INCA 4C 2 1 A + 1-A I Load Acmltrs INCB LDAA 86 2 2 96 3 2 A6 4 2 B6 4 3 5C 2 1 B + 1 -B M-A I R •• Load Double LDAB LOO C6 2 2 06 3 2 E6 4 2 F6 4 3 CC 3 3 DC 4 2 EC 5 2 FC 5 3 M-B M:M + 1-0 R R •• Logical Shift, LSL 68 6 2 78 6 3 Left LSLA 48 2 1 LSL8 58 2 1 LSLO 05 3 1 Shift Right. LSR 64 6 2 74 6 3 R Logical LSRA 44 2 1 R LSRB LSRD 54 2 1 04 3 1 R R 4 Multiply 2's Complement MUL NEG 60 6 2 70 6 3 3D 10 1 AXB-D 00 - M-M •I •I •I (Negate) NEGA 40 2 1 00 - A-A I I I NEGB 50 2 1 00 - B-B • •I •I •I ••• No Operation NOP 01 2 1 PC+1-PC Inclusive OR ORAA 8A 2 2 9A 3 2 AA 4 2 BA 4 3 A+M-A I R ORAB CA 2 2 DA 3 2 EA 4 2 FA 4 3 B + M-B I R Push Data PSHA 36 3 1 A -Stack •••• • •• ••• ••• ••• • PSHB 37 3 1 B -Stack Pull Data PULA 32 4 1 Stack -A PULB 33 4 1 Stack -B Rotate Left ROL 69 6 2 79 6 3 I I I I ROLA 49 2 1 I I I I ROLB 59 2 1 I Rotate Right ROR 66 6 2 76 6 3 I f f RORA 46 2 1 I I RORB 56 2 1 I Subtract Acmltr SBA 10 2 1 A- B-A Subtract with SBCA 82 2 2 92 3 2 A2 4 2 B2 4 3 A - M - C-A CarLY. SBCB C2 2 2 02 3 2 E2 4 2 F2 4 3 B - M - C-B Store Acmltrs STAA 97 3 2 A7 4 2 B7 4 3 A-M R • STAB STD 07 3 2 E7 4 2 F7 4 3 DO 4 2 ED 5 2 FO 5 3 B-M o -M:M + 1 •• R R Subtract SUBA 80 2 2 90 3 2 AO 4 2 BO 4 3 A-M-A I I I SUBB CO 2 2 DO 3 2 EO 4 2 FO 4 3 B - M-B I I Subtract Double SUBD 83 4 3 93 5 2 A3 6 2 B3 6 3 0- M:M + 1 -0 t I Transfer Acmltr TAB TBA 16 2 1 A-B 17 2 1 B-A R R •• Test, Zero or TST 60 6 2 70 6 3 M -00 R R Minus TSTA 40 2 1 A - 00 R R TSTB 50 2 1 B - 00 t R R The Condition Code Register notes are listed after Table 17. Signetics 4·81 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""IIeI·"t Table 16. JUMP AND BRANCH INSTRUCTIONS Condo Code Reg. Direct Relative Index Extnd Inherent 6 4 3 2 1 0 Operations Mnemonic OP -# OP- # OP- # OP- # OP -1# Branch Test H I N Z V C Branch Always BRA 20 3 2 None •••••• Branch Never BRN 21 3 2 None •••••• Branch If Carry Clear BCC 24 3 2 CoO •••••• Branch If Carry Set BCS 25 3 2 C= 1 •••••• Branch If - Zero BEQ 27 3 2 Z=1 •••••• Branch If :;0. Zero BGE 2C 3 2 N(!)V-O •••••• Branch If> Zero BGT 2E 3 2 Z + (N (!)VI = 0 •••••• Branch If Higher BHI 22 3 2 C+Z=O •••••• Branch If Higher or Same BHS 24 3 2 C =0 • •••• • Bra nch If < Zero BlE 2F 3 2 Z+(N(!)VI-1 •••••• Branch If Carry Set Branch If lower Or Same BlO BlS 25 3 2 23 3 2 C=1 C+Z-1 •• •••• •••• •• Branch If < Zero BlT 203 2 N(!)V - 1 •••••• Branch If Minus BMI 2B 3 2 N- 1 •••••• Branch If Not Equal Zero BNE 26 3 2 Z-O •••••• Branch If Overflow Clear .BVC 28 3 2 V=O •••••• Branch If Overflow Set BVS 29 3 2 V-1 •••••• Branch If Plus BPl 2A 3 2 N=O •••••• Branch To Subroutine BSR BO 6 2 } See Special •••••• Jump JMP 6E 3 2 7E 3 3 Operations - •••••• Jump To Subroutine JSR 905 2 AD 6 2 BO 6 3 Figure 23 •••••• No Operation NOP 01 2 1 •••••• Return From Interrupt RT! 3B 0 I I I I I I Return From Subroutine Software Interrupt Wait For Interrupt RTS SWI WAI 39 5 3F 3E 9 2 !} See Special Operations - Figure 23 •••••• • •••• • ••••• S Table 17. CONDITION CODE REGISTER MANIPULATION INSTRUCTIONS Condo Code Reg. Inherent 5 4 3 2 1 0 Operations Mnemonic OP - # 800lean Operation H I N Z V C Clear Carry ClC OC 2 1 O-C ••••• R Clear Interrupt Mask CLI OE 2 1 0-1 • •••• R Clear Overflow ClV OA 2 1 O-V •••• • R Set Carry SEC 00 2 1 1 -C ••••• S Set Interrupt Mask SEI OF 2 1 1-1 • •••• S Set Overflow Accumulator A -CCR SEV TAP OB 2 06 2 1 1 1-V A-CCR •I II• •I I I I • S • CCR -Accumulator A TPA 07 2 1 CCR -A •••••• lEGEND OPOperation Code (Hexadecimal I + Boolean Inclusive OR CONDITION CODE SYMBOLS - Number of MPU Cycles (!) Boolean Exclusive OR H Half·carry from bit 3 MSp Contents of memory location iiii Complement of M I Interrupt mask pointed to by Stack Pointer - Transfer Into N Negative (sign bitl # Number of Program Bytes OBit = Zero Z Zero (byte) + Arithmetic Plus 00 Byte = Zero V Overflow. 2's complement - Arithmetic Minus C Carry/Borrow from MSB • Boolean AND R Reset Always X Arithmetic Multiply S Set Always I Affected • Not Affected 4·82 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm",,""·", Table 18. INSTRUCTION EXECUTION TIMES IN E·CYCLES ADDRESSING MODE ADDRESSING MODE !co '6 ..,co ..,c ..,co . c co > ~ '6 .., ..,c CD .., .. c .,.. CD .> ..,.," co co CD !! ti ti E !! ~ CD ..,"" a; .z:; '".!!a: E CD ! :! CD .z:; ;; .§ a w .E .E CD .§ a w" .E .E a: ••2 •• •• ••4 ••• ••• ••5 •3 •3 ••• ABA 2 INX 3 ABX ADC 3 4 3 • JMP JSR 6 6 •• ••• ••• ••• ••• ADD 2 3 4 4 LOA 2 3 4 4 AD DO 4 5 6 6 LDD 3 4 5 5 AND 2 3 4 4 LOS 3 4 5 5 ASL •• •• 6 6 2 •• LOX 3 4 5 5 •2 •• 4 •6 •6 ••• ••• ASLD 3 LSL 6 6 ASR • •• 2 • LSLD •6 •6 3 •• ••• •• ••• ••• BCC 3 LSR 2 BCS BEQ •• •• 3 3 LSRD MUL •• •• • •6 •• 10 3 •• •• ••• •• •• ••• •• •• BGE 3 NEG 6 2 BGT ••• 3 NOP •4 • 2 •• ••• •3 •• BHI 3 ORA 2 3 4 BHS BIT 2 •3 4 •4 3 •3 PSH PSHX •• •• ••• •• 4 •• BLE •• •• •• •• ••• PUL •• •• • •• 4 ••• BLO 3 PULX 5 ••• ••• •• •• •• ••• BLS 3 ROL 6 6 2 BLT •• 3 ROR 6 6 2 •• • ••• • • •• BMI 3 RTI 10 ••• ••• •• ••• ••3 •• ••4 BNE 3 RTS 5 ••• •2 ••• BPL 3 SBA 2 ••• BRA 3 SBC 2 4 ••• •• ••• •• •• •• ••• BRN 3 SEC BSR ••• 6 SEI •3 2 • ••• ••• •• •4 • BVC 3 SEV 2 ••• • ••• ••• BVS 3 STA 4 CBA •• •• 2 •• STD •• 4 5 5 ••6 CLC 2 STS 4 5 5 CLI ••• •6 2 •• STX •2 4 5 5 •• •• ••3 CLR 2 SUB 3 4 4 CLV •4 •4 2 • SUBD 4 •• 5 6 6 • •• •2 •• •• ••• ••• CMP 2 SWI 12 COM •4 •5 6 6 TAB •• 2 • •• •2 ••• ••• CPX 6 6 TAP 2 DAA •• •• • •6 TBA •• •• 2 ••• ••• DEC 6 2 TPA 2 DES DEX •• •• ••4 ••4 3 3 •• TST TSX ••• •• 6 •• 6 2 3 EOR INC 2 •• • 3 6 6 •• •• TXS WAI •• • • • 3 9 •• INS • • • 3 • Signetics 4·83 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""lI'!-"j JSR, JUMP TO SUBROUTINE INDXD { PC f----::'''''===----1 f-,-,,==-,.,.,.,~=~ RTNL.:.:=-==='-"'-I - SP . -__S_T_A_C_K_ _- , :::; 1-1_ _ R: :R: : :c:'~'- - I MAIN PROGRAM PC $BD=JSR { SH =SUBR. ADDR. EXTND Sl = SUBR. ADDR. NEXT MAIN INSTR. RTN BSR, BRANCH TO SUBROUTINE PC RTN q - SP SP.21 SP·l r'_ _--;;RT SP ' -_ _ _ STACK ..NiH.:......_--i RT_N-'l'-_---' I SUBROUTINE q SP STACK - sp~: I PC $39= RTS RTS, RETURN FROM SUBROUTINE I RTNH SP+2 ~.====~R:T=:N~l====:::; c) - MAIN PROGRAM SP STACK $3F-SWI I SP·7 SWI, SOFTWARE INTERUPT R:: I SP·6 CONDITION CODE SP·5 ACMITRB SP·4 ACMITRA SP·3 INDEX REGISTER (XH) q MAIN PROGRAM SP·2 INDEX REGISTER (Xl) $3E-WAI SP·l RTNH WAI, WAIT FOR INTERRUPT R:: I I SP RTNl Iq SP STACK PC INTERRUPT PROGRAM RTI, RETURN FROM INTERRUPT I $3B_RTI SP+1 SP CONDITION CODE SP+2 ACMITR B SP+3 ACMITR A SP+4 INDEX REGISTER (XH) SP+5 INDEX REGISTER (Xl) SP+6 RTNH _SP+7 RTNl MAIN PROGRAM MAIN PROGRAM PC ~_.,;$::6:=E:==:=J:.:M":P=--l c $7E=JMP . K=OFFSET KH - NEXT ADDRESS JMP,JUMP { EXTENDED Kl - NEXT ADDRESS X + K INEXT INSTRUCTION I KI NEXTINSTRUCTION I lEGEND: RTN = Address of next Instruction In Main Program to be executed upon return from subroutine - = Stack pointer after execution RTNH = Most slgnlflcant byte of Return Address K = a·blt unsigned value RTNL = Least significant byte of Return Address Figure 23. Special Operations 4·84 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm",,""··" Table 19. CYCLE BY CYCLE OPERATION Address Mode & Address Bus Data Bus Instructions IMMEDIATE ADC EOR 2 1 Op Code Address 1 Op Code ADD LDA 2 Op Code Address + 1 1 Operand Data AND ORA BIT SBC CMP SUB LOS 3 1 Op Code Address 1 Op Code LDX 2 Op Code Address + 1 1 Operand Data (H igh Order Byte) LDD 3 Op Code Address + 2 1 Operand Data (Low Order Byte) CPX 4 1 Op Code Address 1 Op Code SUBD 2 Op Code Address + 1 1 Operand Data (High Order Byte) ADDD 3 4 Op Code Address + 2 Address Bus FFFF 1 1 Operand Data (Low Order Byte) .Low Byte of Restart Vector 4 DIRECT ADC EOR 3 1 Op Code Address 1 Op Code ADD LDA 2 Op Code Address + 1 1 Address of Operand AND ORA 3 Address of Operand 1 Operand Data BIT SBC CMP SUB STA 3 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Destination Address 3 Destination Address 0 Data from Accumulator LDS 4 1 Op Code Address 1 Op Code LDX 2 Op Code Address + 1 1 Address of Operand LDD 3 Address of Operand 1 Operand Data (High Order Byte) 4 Operand Address + 1 1 Operand Data (Low Order Byte) STS 4 1 Op Code Address 1 Op Code STX 2 Op Code Address + 1 1 Address of Operand STD 3 Address of Operand 0 Register Data (High Order Byte) 4 Address of Operand + 1 0 Register Data (Low Order Byte) CPX 5 1 Op Code Address 1 Op Code SUBD 2 Op Code Address + 1 1 Address of Operand ADDD 3 Operand Address 1 Operand Data (H igh Order Byte) 4 Operand Address + 1 1 Operand Data (Low Order Byte) 5 Address Bus FFFF 1 Low Byte of Restart Vector JSR 5 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Irrelevant Data 3 Subroutine Address 1 First Subroutine Op Code 4 Stack Pointer 0 Return Address (Low Order Byte) 5 Stack Pointer + 1 0 Return Address (High Order Byte) Signetics 4·85 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm",,""-", Table 19. CYCLE BY CYCLE OPERATION (Continued) Address Mode & Instr.uctions Address Bus Data Bus EXTENDED JMP 3 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Jump Address (High Order Byte) 3 Op Code Address + 2 1 Jump Address (Low Order Byte) ADC EOR 4 1 Op Code Address 1 Op Code ADD LOA 2 Op Code Address + 1 1 Address of Operand AND ORA 3 Op Code Address + 2 1 Address of Operand (Low Order Byte) BIT SBC 4 Address of Operand 1 Operand Data CMP SUB STA 4 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Destination Address (High Order Byte) 3 Op Code Address + 2 1 Destination Address (Low Order Byte) 4 Operand Destination Address a Data from Accumulator LOS 5 1 Op Code Address 1 Op Code LOX 2 Op Code Address + 1 1 Address of Operand (High Order Byte) LDD 3 Op Code Address + 2 1 Address of Operand (Low Order Byte) 4 Address of Operand 1 Operand Data (High Order Byte) 5 Address of Operand + 1 1 Operand Data (Low Order Byte) STS 5 1 Op Code Address 1 Op Code STX 2 Op Code Address + 1 1 Address of Operand (High Order Byte) STD 3 Op Code Address + 2 1 Address of Operand (Low Order Byte) 4 Address of Operand a Operand Data (High Order Byte) 5 Address of Operand + 1 a Operand Data (Low Order Byte) ASL LSR 6 1 Op Code Address 1 Op Code ASR NEG 2 Op Code Address + 1 1 Address of Operand (High Order Byte) CLR ROL 3 Op Code Address + 2 1 Address of Operand (Low Order Byte) COM ROR 4 Address of Operand 1 Current Operand Data DEC TST 5 Address Bus FFFF 1 Low Byte of Restart Vector INC 6 Address of Operand a New Operand Data CPX 6 1 Op Code Address 1 Op Code SUBD 2 Op Code Address + 1 1 Operand Address (High Order Byte) ADDD 3 Op code Address + 2 1 Operand Address (Low Order Byte) 4 Operand Address 1 Operand Data (High Order Byte) 5 Operand Address + 1 1 Operand Data (Low Order Byte) 6 Address Bus FFFF 1 Low Byte of Restart Vector JSR 6 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Address of Subroutine (High Order Byte) 3 Op Code Address + 2 1 Address of Subroutine (Low Order Byte) 4 Subroutine Starting Address 1 Op Code of Next Instruction 5 Stack Pointer a Return Address (Low Order Byte) 6 Stack Pointer - 1 a Return Address High Order Byt~ 4·86 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'W""""·"t Table 19. CYCLE BY CYCLE OPERATION (Continued) Address Mode & R/W Address Bus Data Bus Instructions Line INDEXED JMP 3 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Offset 3 Address Bus FFFF 1 Low Byte of Restart Vector ADC EOR 4 1 Op Code Address 1 Op Code ADD LDA 2 Op Code Address + 1 1 Offset AND ORA 3 Address Bus FFFF 1 Low Byte of Restart Vector BIT SBC 4 Index Register Plus Offset 1 Operand Data CMP SUB STA 4 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Offset 3 4 Address Bus FFFF Index Register Plus Offset 1 0 Low Byte of Restart Vector Operand Data 4 LDS 5 1 Op Code Address 1 Op Code LDX 2 Op Code Address + 1 1 Offset LDD 3 Address Bus FFFF 1 Low Byte of Restart Vector 4 Index Register Plus Offset 1 Operand Data (High Order Byte) 5 Index Register Plus Offset + 1 1 Operand Data (Low Order Byte) STS 5 1 Op Code Address 1 Op Code STX 2 Op Code Address + 1 1 Offset STD 3 Address Bus FFFF 1 Low Byte of Restart Vector 4 Index Register Plus Offset 0 Operand Data (High Order Byte) 5 Index Register Plus Offset + 1 0 Operand Data (Low Order Byte) ASL LSR 6 1 Op Code Address 1 Op Code ASR NEG 2 Op Code Address + 1 1 Offset CLR ROL 3 Address Bus FFFF 1 Low Byte of Restart Vector COM ROR 4 Index Register Plus Offset 1 Current Operand Data DEC TST (1) 5 Address Bus FFFF 1 Low Byte of Restart Vector INC 6 Index Register Plus Offset 0 New Operand Data CPX 6 1 Op Code Address 1 Op Code SUBD 2 Op Code Address + 1 1 Offset ADDD 3 Address Bus FFFF 1 Low Byte of Restart Vector 4 Index Register + Offset 1 Operand Data (High Order Byte) 5 Index Register + Offset + 1 1 Operand Data (Low Order Byte) 6 Address Bus FFFF Low Byte of Restart Vector JSR 6 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Offset 3 Address Bus FFFF 1 Low Byte of Restart Vector 4 Index Register + Offset 1 First Subroutine Op Code 5 Stack Pointer 0 Return Address (Low Order Byte) 6 Stack Pointer - 1 0 Return Address (High Order Byte) Signetics 4·87 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 Table 19. CYCLE BY CYCLE OPERATION (Continued) Address Mode & R/W Address Bus Data Bus Instructions Line INHERENT ABA DAA SEC 2 1 Op Code Address 1 Op Code ASL DEC SEI 2 Op Code Address + 1 1 Op Code of Next Instruction ASR INC SEV CBA LSR TAB CLC NEG TAP CLI NOP TBA CLR ROL TPA CLV ROR TST COM SBA ABX 3 1 Op Code Address 1 Op Code 2 Op Code Address +1 1 Irrelevent Data 3 Address Bus FFFF 1 Low Byte of Restart Vector ASLD 3 1 Op Code Address 1 Op Code LSRD 2 Op Code Address +1 1 Irrelevant Data 3 Address Bus FFFF 1 Low Byte of Restart Vector DES 3 1 Op Code Address 1 Op Code INS 2 Op Code Address + 1 1 Op Code of Next Instruction 3 Previous Register Contents 1 Irrelevant Data INX 3 1 Op Code Address 1 Op Code DEX 2 Op Code Address +1 1 Op Code of Next Instruction 3 Address Bus FFFF 1 Low Byte of Restart Vector PSHA 3 1 Op Code Address 1 Op Code PSHB 2 Op Code Address + 1 1 Op Code of Next Instruction 3 Stack Pointer 0 Accumulator Data TSX 3 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Op Code of Next Instruction 3 Stack Pointer 1 Irrelevant Data TXS 3 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Op Code of Next Instruction 3 Address Bus FFFF 1 Low Byte of Restart Vector PULA 4 1 Op Code Address 1 Op Code PULB 2 Op Code Address + 1 1 Op Code of Next Instruction 3 Stack Pointer 1 Irrelevant Data 4 Stack Pointer +1 1 Operand Data from Stack PSHX 4 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Irrelevant Data 3 Stack Pointer 0 Index Register (Low Order Bytej 4 Stack Pointer -1 0 Index Register (High Order Bytej PULX 5 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Irrelevant Data 3 Stack Pointer 1 Irrelevant Data 4 Stack Pointer +1 1 Index Register (High Order Bytej 5 Stack Pointer +2 1 Index Register (Low Order Bytej RTS 5 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Irrelevant Data 3 Stack Pointer 1 Irrelevant Data 4 Stack Pointer +1 1 Address of Nexl Instruction (High Order Bytej 5 Stack Pointer +2 1 Address of Next Instruction (Low Order Bytej WAI 9 1 Op Code Address 1 Op Code 2 Op Code Address + 1 1 Op Code of Next Instruction 3 Stack Pointer 0 Return Address (Low Order Bytej 4 Stack Pointer -1 0 Return Address (High Order Bytej 5 Stack Pointer -2 0 Index Register (Low Order Bytej 6 Stack Pointer -3 0 Index Register (High Order Bytej 7 Stack Pointer -4 0 Contents of Accumulator A 8 Stack Pointer -5 0 Contents of Accumulator B 9 Stack Pointer -6 0 Contents of Condo Code Register 4-88 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'W"""'!-"A Table 19. CYCLE BY CYCLE OPERATION (Continued) Address Mode & R/W Address Bus Data Bus Instructions Line INHERENT MUl 10 1 Op Code Address 1 Op Code 2 Op Code Address +1 1 Irrelevant Data 3 Address Bus FFFF 1 low Byte of Restart Vector 4 Address Bus FFFF 1 low Byte of Restart Vector 5 Address Bus FFFF 1 low Byte of Restart Vector 6 Address Bus FFFF 1 low Byte of Restart Vector 7 Address Bus FFFF 1 Low Byte of Restart Vector B Address Bus FFFF 1 low Byte of Restart Vector 9 Address Bus FFFF 1 low Byte of Restart Vector 10 Address Bus FFFF 1 low Byte of Restart Vector RTI 10 1 2 3 Op Code Address Op Code Address +1 Stack Pointer 1 1 1 Op Code Irrelevant Data I rre.leva nt Data 4 4 Stack Pointer +1 1 Contents of Condo Code Reg. from Stack 5 Stack Pointer +2 1 Contents of Accumulator B from Stack 6 Stack Pointer +3 1 Contents of Accumulator A from Stack 7 Stack Pointer +4 1 Index Register from Stack (High Order Byte) B Stack Pointer +5 1 Index Register from Stack (low Order Byte) 9 Stack Pointer +6 1 Next Instruction Address from Stack (High Order Byte) 10 Stack Pointer +7 1 Next Instruction Address from Stack (low Order Byte) SWI 12 1 Op Code Address 1 Op Code 2 Op Code Address +1 1 Irrelevant Data 3 Stack Pointer 0 Return Address (low Order Byte) 4 Stack Pointer -·1 0 Return Address (High Order Byte) 5 Stack Pointer -2 0 Index Register (low Order Byte) 6 Stack Pointer -3 0 Index Register (High Order Byte) 7 Stack Pointer -4 0 Contents of Accumulator A B Stack Pointer -5 0 Contents of Accumulator B 9 Stack Pointer -6 0 Contents of Condo Code Register 10 Stack Pointer -7 1 Irrelevant Data 11 Vector Address FFFA (Hex) 1 Address of Subroutine (High Order Byte) 12 Vector Address FFFB (Hex) 1 Address of Subroutine (low Order Byte) RELATIVE BCC BHT BNE BlO 3 1 Op Code Address 1 Op Code BCS BlE BPl BHS 2 Op Code Address +1 1 Branch Offset BEQ BlS BRA BRN 3 Address Bus FFFF 1 low Byte of Restart Vector BGE BlT BVC BGT BMT BVS BSR 6 1 Op Code Address 1 Op Code 2 Op Code Address +1 1 Branch Offset 3 Address Bus FFFF 1 low Byte of Restart Vector 4 Subroutine Starting Address 1 Op Code of Next Instruction 5 Stack Pointer 0 Return Address (low Order Byte) 6 Stack Pointer -1 0 Return Address(High Order Byte) Signetics 4·89 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""!ui_',, Table 20. CPU INSTRUCTION MAP 0. 00 MNEM MODE -• 0. 34 MNEM DES MODE lNHE'R -• 3 1 0. 68 MNEM ASL MODE INOXD -• 6 2 0• 9C MNEM CPX MODE -• 5 2 0. DO MNEM SUBS MODE DIR -• 3 2 I 01 NOP IN ER 2 1 35 TXS 3 1 69 ROL 6 2 90 JSR Dlt, 5 2 01 CMPB 3 2 02 36 PSHA 3 1 6A DEC 6 2 9E LOS 4 2 02 SI!CB 3 2 03 37 PSHB 3 1 6B 9F STS DR 4 2 03 ADOD 5 2 04 LSRD 3 1 38 PULX 5 1 6C INC 6 2 40 SUBA INoxa 4 2 04 ANOS 3 2 05 ASlD 3 1 39 RTS 5 1 60 TST 6 2 A1 CMPA 4 2 05 BIT8 3 2 06 TAP 2 1 3A A8X 3 1 6E JMP 3 2 A2 saCA 4 2 D6 lDAB 3 2 07 TPA 2 '1 38 RTI 10 1 6F CLR INDXD 6 2 A3 sueD 6 2 07 STAB 3 2 08 INX 3 1 3C PSHX 4 1 70 NEG EXTND 6 3 A4 ANDA 4 2 08 EORB 3 2 09 DEX 3 1 3D MUL 10 1 71 A5 BITA 4 2 09 ADee 3 2 OA CLV 2 1 3E WAI 9 1 72 A6 LDAA 4 2 DA DRAB 3 2 OB SEV 2 1 3F SWI 12 1 73 COM 6 3 A7 STAA 4 2 DB ADOS 3 2 DC CLC 2 1 40 NEGA 2 1 74 LSR 6 3 A8 EORA 4 2 DC LDD 4 2 00 SEC 2 1 41 75 A' ADCA 4 2 DO STO 4 2 OE Cli 2 1 42 76 ROR 6 3 AA ORAA 4 2 DE LOX 4 2 elF SEI 2 1 43 COMA 2 1 77 ASR 6 3 A8 ADOA 4 2 OF STX DIR 4 2 10 S8A 2 1 44 LSRA 2 1 78 ASL 6 3 AC CPx 6 2 EO SUBS INoxa 4 2 11 12 C8A 2 1 45 46 FlORA 2 1 7' 7A ROL DEC 6 6 3 3 AD AE JSR LOS ,, 6 2 2 E1 E2 CMPB S8CB 4 4 2 2 , , · 13 47 ASRA 2 1 78 AF STS INDXD 2 E3 ADOD 6 2 14 48 ASlA: 1 7C INC 6 3 80 SU8A fXTND J E4 ANDB 4 15 16 TAB , 1 49 4A ROLA OECA 2 2 1 1 70 7E TST JMP 6 3 3 3 81 82 CMPA seeA 4 4 3 3 E5 E6 BIT8 LOAS 4 4 2 2 17 TBA 2 1 4B 7F elA EXTND 6 3 B;l SUBD 6 3 E7 STAB 4 2 18 DAA INHER 2 1 4C 40 INCA TSlA 2 2 1 1 80 B1 SUBA CMPA IMMED 2 2 2 2 B4 B5 ANDA SlTA • 4 3 3 EB E9 EORB ADes 4 4 2 2 "1A 4E T 82 seeA 2 2 B6 lDAA 4 3 EA DRAB 4 2 18 lC A8A INHEA 2 1 4F 50 CLRA NEGB 2 2 1 1 83 B4 SUBD ANDA 4 2 3 2 B7 BB STAA fORA 4 4 3 3 EB EC ADDS LDD , 4 2 2 10 51 85 BITA 2 2 B9 ADCA 4 3 ED STO 5 2 1E 52 86 LDAA 2 2 BA ORAA • 3 EF LOX 5 2 IF 20 8RA REl 3 2 53 54 COMB LSRB 2 , 1 1 87 88 EORA ,, 2 B8 BC AOOA CPX 4 6 3 3 EF FO STX SUBB INDXQ ExTND 5 4 2 3 21 22 8RN BHI 3 3 2 2 55 56 RORB ,, 1 89 8A ADCA ORAA ,, 2 2 8D BE JSR LDS 6 , 3 3 F1 F2 CMPB SBCB 4 4 3 3 23 8LS 3 2 57 ASRB 1 8B ADDA 2 BF STS EXTND 5 3 f3 ADDD 6 3 24 Bce 3 2 58 ASLB 2 1 BC CPX IMMED • 3 CO SUBB IMMED ,, 2 2 F4 ANDB 4 3 25 26 8CS BNE 3 3 2 2 59 5A ROLB DECB , 2 1 1 80 8E BSR LOS REL IMMED 6 3 2 3 Cl C2 CMPB SBCB 2 2 " F6 BITB LDAB 4 4 3 J 27 28 BEO BVC 3 3 2 2 58 5C INCB , 1 OF 90 SUBA DIR 3 2 C3 C4 ADDD ANDB , , 4 3 F7 F8 STAB EOAB 4 4 , 3 29 BVS 3 2 50 TST8 2 1 91 CMPA 3 2 05 BIT8 , 2 2 F9 ADCB • 3 2A 8Pl 3 2 5E 1 , 92 SBCA , 3 2 C6 LDAB 2 FA DRAB • 3 28 2C 8MI 8GE 3 3 2 2 SF 60 CLAB NEG INHER INDXD 6 1 2 ,. 93 SUBD ANDA 3 2 2 C7 C8 EORB , Fe 2 2 F8 ADDB LDO ,, 4 3 3 C. ADCB 2 FO STO ,, 3 I 20 8Ll 3 2 61 95 BITA 3 2 2E 2F 8GT 8LE REl 3 3 2 2 62 63 COM 6 2 96 97 LDAA STAA 3 3 2 2 CA C8 OAAB ADD8 , 2 2 2 FE FF LDX STX EXTND 3 3 30 TSX INHER 3 1 64 LSR 6 2 98 EOAA 3 2 CC lOO 3 3 31 32 33 INS PULA PUL8 t INHEA 3 4 4 1 1 1 65 66 67 ROR ASR 6 INDXD 6 2 2 99 9A 98 ADCA ORAA AODA DIR 3 3 3 2 2 2 CD CE CF lDX IMMED 3 3 'UNDfFlNFD OP rODE NOTES: 1. Addressing Modes INHERElnherent INDXD=lndexed IMMED=lmmediate REL", Relative EXTND", Extended DIR-Direct 2. Unassigned opcodes are indicated by"·" and should not be executed. 3. Codes rriarked by "1" force the PC to function as a 16-bit counter. 4·90 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 '19"..11"-'1' APPENDIX A SCN68120 CUSTOM ORDERING INFORMATION Address $FFEF is reserved for the Signetics Corporation notation for address and data), may be checksum value for the ROM, to be Microprocessor Marketing submitted for pattern generation. The generated at the factory. Bin 1276 2708s must be clearly marked to indicate P.O. Box 409 which PROM corresponds to which ad· Sunnyvale, California 94086 dress space ($X800·$XFFF). See figure A·2 CUSTOM SCN68120 ORDERING for recommended marking procedure. INFORMATION A copy of the cover letter should also be The custom SCN68120 specifications may mailed separately. be transmitted to Signetics in EPROM(s) After the EPROM(s) are marked, they formatted and packaged as indicated EPROMs should be placed in conductive IC carriers below, and mailed prepaid and insured 2708 and 2716 type EPROMs, programmed and securely packed. Do not use with a cover letter (see figure A·1) to: with the custom program (positive logic styrofoam. 4 CUSTOMER NAME _______________________________________________________ ADDRESS ____________________________________________________________ ST ATE __________________________ CITY ____________________ ZIP __________ PHONE _______________________________ EXTENSION _______________________ CONTACT MS/MR _______________________________________________________ CUSTOMERPART# ______________________________________________________ ROM START ADDRESS OPTION PATTERN MEDIA 1 TEMPERATURE RANGE o$C800 02708 EPROM DO' to 70'C o$D800 o 2716 EPROM o $EBOO PACKAGE TYPE o $FOOO o Ceramic oA12 and A13 don't care MARKING RAM START ADDRESS OPTION o Standard o$0080 o Special NOTE: (11 Other Media ReqUire Prior Factory Approval SIGNATURE ___________________________________________________________ TITLE _______________________________________________________________ Figure A·1. Ordering Information Form ~ ~ ~ ~ xxx = Customer 10 Figure A·2. Recommended Marking Signetics 4·91 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'tlG'I",,'uie'tA ABSOLUTE MAXIMUM RATINGS1 Parameter Rating Unit Supply voltage -0.3to + 7.0 V Input voltage3 -0.3to + 7.0 V Operating temperature range 2 o to + 70 ·C Storage temperature -55to+150 ·C DC ELECTRICAL CHARACTERISTICS Vee= 5.0V ± 5%, Vss=OV; TA=O·C to + 70·C4,5 Limits Parameter Test Conditions Min. Typ. Max. Unit Local bus (see Figures 24, 25) V EIH Input high voltage E Vee - 0.75 Vee V VEIL Input low voltage E -0.3 0.6 V VIH Input high voltage RESET 4.0 Vee V Other inputs6 2.0 Vee V VIL Input low voltage All inputs6 -0.3 0.8 V lin Input load current Yin = 0 to 2.4V Port 4 0.5 mA SCl 0.8 mA lin Input leakage current Vln = 0 to 5.25V HALT/NMI,IRQ1,RESET 1.5 2.5 "A ITSI Three-state (off state) input current Vln = 0.5 to 2.4V SOO-SD7, P30·P37 2.0 10 "A P20-P24 10.0 100 "A VOH Output high voltage P30-P37 Iload= -205"A, Vee = min 2.5 V P40·P47, SC1, SC2 Iload= -145"A, Vee = min 2.4 V Other outputs IIOad= -100"A, Vee = min 2.4 V VOL Output low voltage Iload= 2.0mA, Vee = min All outputs 0.5 V PINT Internal power dissipation TA=O·C 1200 mW Cin Input capacitance Vln = 0, T A= 25·C, fo= 1.0MHz P30·P37, P40-P47, SCl 12.5 pF Other Inputs 10.0 pF System bus (see Figure 26) V IH Input high voltage CS, OTACK, SAD-SA7, 500·507, SR/W 2.0 Vee V V IL Input low voltage CS, OTACK, SAO·SA7, 500-507, SR/W -0.3 0.8 V V OH Output high voltage OTACK,SOO·S07 Iload = -400"A, Vee=min 2.4 V VOL Output low voltage Iload= 5.3mA, Vee= min 0.5 V OTACK,SOO-S07 NOTES; See AC Electrical Characteristics. 4-92 Signefics MICROPROCESSOR DIVISION JANUARY 19S3 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""n.I_.,., AC ELECTRICAL SPECIFICATIONS Vcc =5VDC ± 5%, Vss=OVDC, TA=O·C to 70·C4,5 Tentative limits Number Characteristic Symbol Min Max Unit Peripheral port (see Figures 27 through 30) - Peripheral data setup time tposu 200 ns - Peripheral data hold time tpOH 200 ns - Delay time, enable positive transition 350 ns to OS3 negative transition tOS01 - Delay time, enable positive transition 350 ns to OS3 positive transition tOS02 - Delay time, enable negative transition ns t pwo 350 to peripheral data valid (ports 2, 3, 4) - Delay time, enable negative transition to peripheral CMOS data valid tCMOS 2.0 P.s 4 - Input strobe pulse width t pWIS 200 ns - Input data hold time tlH 50 ns - Input data setup time tiS 20 ns - Input capture pulse width (timer function) t pWIC 2 Eeye 1.0MHz 1.2SMHz Number Characteristic Symbol Unit Min Max Min Max Local bus (see Figures 7, 9)1 1 Cycle time tcye 1.0 2.0 O.S 2.0 P.s 2 Pulse width, E low PW EL 430 1000 360 1000 ns 3 Pulse width, E high PW EH 450 1000 360 1000 ns 4 Clock rise and fall time tn t f 25 25 ns 9 Non·muxed address hold time tAH 20 20 ns 11 Address delay from E low tAO 260 220 ns 17 Read data setup time tOSR SO 70 ns 1S Read data hold time tOHR 10 10 ns 19 Write data delay time toow 225 200 ns 21 Write data hold time tOHW 20 20 ns 23 Muxed address delay from AS tADM 90 70 ns 25 Muxed address hold time tAHL 20 110 20 110 ns 26 Delay time E to AS rise t ASD 100 SO ns 27 Pulse width, AS high PW ASH 220 170 ns 2S Delay time AS to E rise t ASED 100 SO ns 29 Usable access time 'O t ACC 570 435 ns - Enable rise time extended tERE SO SO ns - Processor control setup time t pcs 200 200 ns - Processor control hold time t pCH 20 40 20 40 ns NOTES; 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the davice. This Is stress rating only and functional operation of the device at these or at any other condition above those Indicated in the operation sBction of this specification Is not Implied. 2. For operating at elevated temperatures. the davice must be derated based on + 150·C maximum junction temperature. 3. This product Includes circuitry specifically designed for the protection of Its Internal devices from damaging effects of excessive static charge. Nonetheless, it is suggested that conventional precautions be taken to avoid applying any voltages larger than the rated maxima. 4. Parameters are valid over specified temperature range. 5. All voltage measurements are referenced to ground (GND). For testing, all Input signals swing between 0.4V and 2.4V with a transition time of 20ns maximum. All time measurements are referenced at Input voltages of O.BV and 2.0V and output voltages of O.BV and 2.0V as appropriate. 6. Except mode programming levels; see figure 16. Signetics 4·93 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'am""n"·"t AC ELECTRICAL SPECIFICATIONS (Continued) 1.0MHz 1.2SMHz Number Characteristic Symbol Unit Min Max Min Max Synchronous system bus (see Figure 36)7 1 Cycle time teye 1.0 10 0.80 10 /is 2 Pulse width, E low PW EL 430 9500 360 9500 ns 3 Pulse width, E high PW EH 450 9500 360 9500 ns 4 Clock rise and fall time t" t f 25 25 ns 9 Address hold time tAH 10 10 ns 13 Address setup time before E tAH 80 70 ns 14 Chip select setup time before E tcs 80 70 ns 15 Chip select hold time tCH 10 10 ns 18 Read data hold time tOHR 30 100 30 85 ns 21 Write data hold time tOHW 10 10 ns 30 Output data delay time tOOR 290 240 ns 31 Input data setup time tosw 165 120 ns - Clock enable rise time extended tERE 80 80 ns Number Characteristic Symbol Min Typ Max Unit Asynchronous system bus (see Figures 32 through 35) - Cycle time tcyc 0.8 2.0 /is - System address setup t SAS 30 ns - System address hold tSAH 0 ns - System data delay read Semaphore 0.3 8 tSOOR 0.3 + 'eye I's RAM tsooR 315 ns - System data valid tsov 0 ns - System data hold read tSOHR 30 90 ns - System data delay write Semaphore 9 tsoow ns RAM tsoow 60 ns - System data hold write t SOHW · 0 ns - Data acknowledge Semaphore tOAL 0.5 0.5+ teye8 I'S RAM tOAL 315 ns - Data acknowledge high tOAH 60 ns - Data acknowledge three-state tOAT 90 ns - Data acknowledge low to CS high tocs 60 ns 7. Voltage levels shown are VL :s; O.5V, VH 2:!: 2.4V, unless otherwise specified. 8. Actual values dependent on clock period. 9. Data need not be valid on write to semaphore registers. 10.Usable access time Is computed by: 1 - (4 + 11 + 17). 4·94 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm",,",,-',' POWER CONSIDERATIONS The average chip-Iunction temperature, T J, in DC can be obtained from: TJ=TA+IPDoOJA) (1) Where: T A= Ambient Temperature, °c OJA = Package Thermal Resistance, Junction-to-Ambient, °C/W Po = PINT + PPORT PINT = ICC x VCe. Watts - Chip Internal Power PPORT= Port Power DISSipation, Watts - User Determined For most applications PPORT~ PINT and can be neglected. PPORT may become significant if the device is configured to drive Darlington bases or sink LED loads. An approximate relationship between Po and T J lif PPORT IS neglected I is PO=K+ITJ+273°CI Solving equations 1 and 2 for K gives: (2) 4 K = PoolT A + 273°C) + OJA o P0 2 (3) Where K is a constant pertaining to the particular part. K can be determined from equation 3 by measuring Po lat equilibrium) for a known T A. USing thiS value of K the values of Po and T J can be obtained by solving equations III and (2) Iteratively for any value of T A- Vee Rl=2.0kQ TEST POINT TEST POINT O~---, O - - - -.....- - . - -...~I--... MMD6150 t·" or Equiv. MMD7000 or Equiv. C=90 pF for P30·P37, P40·P47, SC1, SC2 = 30 pF for P20·P24, HJITi'liiAlNMi R = 16.5 kQ for P40·P47, SC1, SC2 = 12 kQ for P30·P37 = 24 kQ for P20·P24, HAI'i'iiiAlNMi Figure 24. CMOS Load Figure 25, Timing Test Load Ports 2, 3, 4 Signetics 4·95 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'am""II,I.", ~ Vcc • RL=750Q TEST POINTo----......--~-1I4------i MMD6150 " or Equlv. P2D·P24 ~~ P4D·P47 c :::r:: ~R INPUTS C=I30 pF R=6 kS2 • ,r'r- or Equlv. MMD700D P3D·P37 INPUTS' * Port 3 Non-Latched Operation (LATCH ENABLE=O) Figure 26. Timing Test Load 500·507, DTACK Figure 27. Data Setup and Hold Times (MPU Read Local Bus) rMPUWHITE \ -ICMOS1 _____ _IPWD 1:r-- 1,' ___- --"\~ -D.7VCC ADDRESS BUS ALL DATA DATA VALID PORT OUTPUTS _ _ _ _ _ _ _ _J 1'-_ _ _ __ NOTES: 1. 10 k Pullup resistor required for Port 2 to reach 0.7 Vee 2. Not applicable to P21 3. Port 4 cannot ba pulled above Vee Figure 26. Data Setup and Hold Times (MPU Write Local Bus) Figure 29. Port 3 Latch Timing (Single Chip Mode) 4·96 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'm""",,··t, ~ . ~.w"j iSa tlH" P30.P37~ INPUTS DATA VALID K 4 Figure 30. Expanded Non·Multiplexed Local Bus Timing ~------------0--~--------------~ tERE iDs. RIS --+-+>b...."..T"i".....".."A-l.,---------+t-----------------Hr.t=7<:"70 ADDRESS INON·MUXED) --+-R=..lL"-"'-L..lL9~--------+lr----------------H-"f"""-- ....... READ DATA MUXED ADDRIDATA MUXEO -++-''P' ~--~'9'---~ ADDRfDATA WRITE DATA MUXED MUXED -::;=::-t-''f=Y ADDRESS STROBE (AS) - - - - " " f " NOTES 1. Address valid on the occurrence of the latest of 11 or 23. 2. Usable access time is computed by 1 - (4 + 11 + 17), see note 1. Figure 31. Local Bus Timing Signetics 4·97 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT PERIPHERAL CONTROLLER SCN68120/SCN68121 'IDn,,)"'.'ii ~-....~ tSDDR SDO-SD7 THREE STATE Figure 32. Asynchronous Read of Semaphore Raglster Figure 33. Asynchronous Write of Semaphore Register SAO-SA7 SDO-SD7 ----iif+H ~~~--T4r-~-r--~~-+--~~~~t- 4 w ffi ., ffl I~ .:;: . :;:C II: . C C . C C w W !:: II: I~ II: ~ Figure 36. Synchronous System Bus Timing Signetics 4·99 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'mn,,"".',J DESCRIPTION and a 5-bit prescaler can be used. It can PIN CONFIGURATION 1 generate periodic interrupts, a square The SCN68230 Parallel InterfacelTimer wave or a single interrupt after a program- (PIIT) provides versatile double buffered med time period. Also it can be used for parallel interfaces and an operating sys- elapsed time measurement or as a device tem oriented timer to S68000 systems. The watchdog. Table 1 is a summary of the in- parallel interfaces operate in unidirec- put and output signals and Figure 1 shows tional or bidirectional modes, either 8 or the functional pin assignments. Figure 2 16 bits wide. In the unidirectional modes, is a PitT system block diagram. an associated data direction register determines whether the port pins are in- FEATURES puts or outputs. In the bidirectional • S68000 bus compatible modes, the data direction registers are ig- • Port modes include: nored and the direction is determined Bit 110 dynamically by the state of four hand- Unidirectional 8-blt and 16-bit shake pins. These programmable hand- Bidirectional 8-blt and 16-bit shake pins provide an interface flexible • Selectable handshaking options enough for connection to a wide variety of 24-Blt programmable timer low, medium, or high speed peripherals or • Software programmable timer modes other computer systems. The PitT ports • Contains interrupt vector generation allow use of vectored or autovectored in- logic terrupts, and also provide a DMA request • Separate port and timer Interrupt pin for connection to direct memory access service requests controllers. The PIIT timer contains a 24-bit • Registers are readtwrite and directly counter and a 5-bit prescaler. The timer addressable can be clocked by the system clock (PitT • Registers are addressed for MOVEP ClK pin) or by an external clock (TIN pin), (move peripheral) and DMAC com- patibility ORDERING CODE Packages 8 MHz 10 MHz Ceramic DIP SCN68230C8148 SCN68230CAI48 Plastic DIP SCN68230C8N48 SCN68230CAN48 00-07 PAO-7 PBO-7 RS1·RS5 R/W H1 H2 H3 SCN68230 H4 PI/T PC7/iiACi(' PC6/PIACK' PC5/PiRQ' PC4/iiM'AiiEci" PC3/TOUT" PC2lTlN' PC1 L-__________ ~~--PCO *Individually Programmable Dual-Function Pin. Figure 1. Functional Pin Assignment 11n this data sheet, barring signal names (overseare) to indicate low is done only for the pin configuration diagram, signal description headings, tables and figures. 4·100 Signetics MICROPROCESSOR DIVISION JANUARY 1963 PARALLEL INTERFACE/TIMER SCN68230 'm",,",I.'ij 38 a9 40 VSS RESET CLK ~ ~ ~ , t , , , , ,, t t t 41 42 43 CS Di'ACK RiW 44 DO 45 D1 46 D2 DATA BUS INTERFACE AND 47 D3 48 D4 D5 2 D6 3 D7 INTERRUPT VECTOR REGISTERS 4 ! fr PAO 4 V" ~ PA1 5 ~ .----,./ PA2 6 PORT INTERNAL PORT PA3 7 DATA BUS INTERRUPTI DMA CONTROL Jl V A PA4 PAS PA8 8 9 10 LOGIC PA7 11 ~ HANDSHAKE - t --- VCC 12 --- HANDSHAKE H1 13 CONTROLLERS I- H2 14 , AND INTERFACE LOGIC H3 15 MODE LOGIC H4 16 TIMER I--- l PBO 17 PB1 18 PB2 19 ... PORT PB3 20 / B PB4 21 v ~ PBS 22 PB6 23 PB7 24 PC71 TIACK f PORT C AND PIN FUNCTION MULTIPLEXER ; : f PC61 PiiCR PiiiQ PC51 PC4I DMAiiEQ f PC3/ TOUT f PC2I TIN PC1 31 ; , PCO 30 RS1 29 + + RS2 28 + RS3 27 + RS4 26 + RS5 25 37 36 35 34 33 32 Signetics 4·101 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm""",'·",, Table 1 SIGNAL SUMMARY Signal Nama Mnemonic Input/Output Active State Three State Bidirectional Data Bus 00·07 Input/output high yes Register Selects RS1·RS5 input high - Read/Write Input RIW input read·high - write·low Chip Select CS input low - Data Transfer Acknowledge DTACK output low yes Reset RESET input low - Clock Input CLK input high - Port A and Port B PA()'PA7, PBO·PB7 input/output high yes Handshake H1, H3 input programmable - Handshake H2, H4 input/outpui . programmable yes Port C PC()'PC7 input/output high yes Ground VSS input' - - Power Input VCC input - - A1·A23 ADDRESS FC2·0 AND tDS lACK PAO·7 DECODE PBO·7 PC6/PiAC'K H1 PC7JfiACK H2 SCN68000 SCN68230 H3 H4 PC5/PiRO IPL2 PC41 PC3JTOUT DMAJ!iEQ iPi:1 LS348 +5V PC21T1N IPLO PC1 peo i5'i'ACK i5'i'ACK REsET CLK Vcc Vss ~ ~ Figure 2. PI/T System Block Diagram 4·102 SigneHcs MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 GENERAL DESCRIPTION OTACK pins (PCO-PC?) or any combination of six Data transfer acknowledge output. DTACK special function pins and two general pur- The PI/T consists of two logically indepen- pose 110 pins (PCO-PC1). (Each dual func- dent sections; the ports and the timer. The is an active low output that signals the completion of the bus cycle. During read tion pin can be standard 110 or a special port section consists of port A (PAO-7), function independent of the other port C port B (PBO-7), four handshake pins (H1, or interrupt acknowledge cycles, DTACK is asserted by the SCN68230 after data pins.) When used as a port C pin, these H2, H3, and H4), two general I/O pins, and pins are active high. They can be in- six dual·function pins. The dual-function has been provided on the data bus; during write cycles it is asserted after data has dividually programmed as inputs or out- pins can individually operate as a third puts by the Port C data direction register. port (port C) or an alternate function been accepted at the data bus. Data related to either ports A and B, or the transfer acknowledge is compatible with the SCN68000 and with other bus masters The alternate functions (TIN, TOUT, and timer. The four programmable handshake TIACK) are timer 110 pins. TIN can be used pins, depending on the mode, can control such as the SCB68430 DMA controller. A holding resistor is required to maintain as a rising-edge triggered external clock data transfer to and from the ports, or can input or an external run/halt control pin be used as interrupt generating inputs, or DTACK high between bus cycles. (the timer is in the run state if run/halt is I/O pins. The timer consists of a 24-bit counter, optionally clocked by a 5-bit prescaler. RESET Reset input. RESET is used to initialize all PIIT functions. All control and data direc- high and in the halt state if run/halt is low). TOUT can provide an active low timer in- terrupt request output or a general- 4 Three pins provide complete timer I/O: tion registers are cleared and most inter- purpose square-wave output, initially high. PC2/TIN, PC3/TOUT, and PC7IT1ACK. In nal operations are disabled by the asser- TIACK is an active low input used for timer specific applications, only the pins tion of RESET (low). interrupt acknowledge. needed for the given configuration per· form the timer function, while the others ClK Port A and B functions have an indepen- remain port C I/O. Clock input. The clock pin is a TTL· dent pair of active low interrupt request compatible input with the same specifica- (PIRQ) and interrupt acknowledge (PlACK) The system bus interface provides for tions as the SCN6BOOO. The PIIT contains pins. asynchronous transfer of data from the dynamic logic throughout, and hence this PIIT to a bus master over the data bus clock must not be gated off at any time. It The DMAREQ (direct memory access re- (00-07). Data transfer acknowledge is not necessary that this clock maintain quest) pin provides an active low direct (DTACK), register selects (RS1-RS5), chip any particular phase relationship with the memory access controller (DMAC) request select, the read/write line (RIW), and port SCN68000 clock. It can be connected to pulse of three clock cycles. interrupt acknowledge (PlACK) or timer in- an independent frequency source (faster terrupt acknowledge (TIACK) control data or slower) as long as all bus specifications transfer between the PI/T and the are met. SC68000. REGISTER MODEL PAO-PA7 and PBO-PB7 PIN DESCRIPTIONS A register model that includes the cor- Port A and port B. Ports A and Bare B-bit responding register selects is shown in ports that can be concatenated to form a 00-07 Table 2. 16-bit port in certain modes. The ports can Bidirectional data bus. The data bus pins be controlled in conjunction with the DO-D? form an 8-bit bidirectional data bus handshake pins H1-H4. For stabilization to/from the SCN68000 or other bus mas- during system power-up, ports A and B PORT FUNCTIONAL ter. These pins are active high. have internal pullup resistors to Vcc. All port pins are active high. DESCRIPTION RS1-RS5 Register selects. RS1-RS5 are active high, H1-H4 Port Control Structure high-impedance inputs that determine Handshake pins (110 depending on the The primary focus of most applications which of the 25 internal PIIT registers is mode and submode). Handshake pins will be on ports A and B, the handshake being addressed. H1-H4 are multi-purpose pins that (de- pins, the port interrupt pins, and the DMA pending on the operational mode) can pro- request pin. The ports are controlled by RiW vide an Interlocked handshake, a pulsed the port general control register which Read/write Input. R/W is the read/write handshake, an interrupt input (indepen- contains a 2-bit field that specifies a set of signal from the SCN68000 or bus master, dent of data transfers), or simple 110 pins. four operation modes. These govern the indicating whether the current bus cycle For stabilization during system power-up, overall operation of the ports and deter- is a read (high) or write (low) cycle. H2 and H4 have internal pullup resistors to mine their interrelationships. Some Vcc. Their sense (active high or low) can modes require additional information from CS be programmed in the port general control each port's control register to further Chip select input. The CS input selects the register bits 3-0. Independent of the mode, define its operation. In each port control PIIT registers for the current bus cycle. the instantaneous level of the handshake register, there is a 2-bit submode field that Address strobe and the data strobe (upper pins can be read from the port status serves this purpose. Each port mode/sub- or lower) of the bus master, along with the register. mode combination specifies a set of pro- appropriate address bits, must be in- grammable characteristics that fully cluded in the chip select equation. A low Port.C define the behavior of that port and two of level corresponds to an asserted chip (PCO-PC7/alternate function). This port the handshake pins. This structure is sum- select. can be used as eight general purpose 110 marized in Table 3 and Figure 3. Signetics 4-103 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 7 6 5 4 3 2 o Port Mode H34 H12 H4 H3 H2 H1 Port General Control Enable Enable Sense Sense Sense Sense Control Register SVCRO Interrupt Port Interrupt Port Service * Select PFS Priority Control Request Register Bit Bit Bit Bit Bit Bit Bit Bit Port A Data 6 5 4 3 2 1 0 Direction Register 7 Bit Port B Data Bit Bit Bit Bit Bit Bit Bit Direction Register 7 6 5 4 3 2 1 0 Port C Data Bit Bit Bit Bit Bit Bit Bit Bit Direction Register 7 6 5 4 3 2 1 0 Port Interrupt Interrupt Vector Number H2 * H1 *H1 Vector Register Port A H2 Control Int SVCRO Stat Port A Control Submode Enable Enable Ctr!. Register H4 H3 H3 ~ort B Control Port B H4 Control Int SVCRO Stat Register Submode Enable Enable Ctrl. Bit Bit Bit Bit Bit Bit Bit Bit Port A Data 7 6 5 4 3 2 1 0 Register Bit Bit Bit Bit Bit Bit Bit Bit Port B Data 7 6 5 4 3 2 1 0 Register Bit Bit Bit Bit Port A Alternate Bit Bit Bit Bit Register 7 6 5 4 3 2 1 0 Port B Alternate Bit Bit Bit Bit Bit Bit Bit Bit Register 7 6 5 4 3 2 1 0 Port C Data Bit Bit Bit Bit Bit Bit Bit Bit Register 7 6 5 4 3 2 1 0 Port Status H4 H3 H2 H1 Level Level H4S H3S H2S H1S Register Level Level (nulll * * * * * * * * (nulll * TOUTITIACK * * * Zt) * * Clock * Timer * Timer Control Control Ctr!. * Control Enable Register Bit Bit Bit Bit Bit Bit Bit Bit Timer Interrupt 7 6 5 4 3 2 1 0 Vector Register * Bit * Bit * Bit * Bit * Bit * Bit '" Bit * Bit (nulll Counter Preload 23 22 21 20 19 18 17 16 Register (Highl Bit Bit Bit Bit Bit Bit Bit Bit 15 14 13 12 11 10 9 8 (Midi Bit Bit Bit Bit Bit Bit Bit Bit 7 6 5 4 3 2 1 0 (Lowl * Bit * Bit Bit * * Bit *Bit * Bit * Bit * Bit (nulll Count Register 23 22 21 20 19 18 17 16 (Highl Bit Bit Bit Bit Bit Bit Bit Bit (Midi 15 14 13 12 11 10 9 8 Bit 8it Bit Bit Bit Bit Bit Bit (Lowl 7 6 5 4 3 2 1 0 ZDS Timer Status * * * * * * * Register (nulll * * * * * * * * (nulll * * * * * * * * (nulll * * * * * * * * (nulll * * * * * * * * (nulll * * * * * * * * Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACEITIMER SCN68230 'mn"""·"t Table 3 PORT MODE CONTROL SUMMARY Port Generallnlormation and Conventions The following paragraphs introduce con- cepts that are generally applicable to the Mode 0 (Unidirectional 8-Bit Model PI/T ports independent of the chosen Port A mode and submode. For this reason, no Submode 00 - Double-Buffered Input particular port or handshake pins are men- H1 Latches input data tioned; the notation H1 (H3) indicates that, H2 - Status/interrupt generating input, general-purpose depending on the chosen mode and sub- output, or operation with H1 In the interlocked or mode, the statement given may be true for pulsed input handshake protocols either the H1 or H3 handshake pin. Submode 01 - Double-Buffered Output H1 Indicates data received by peripheral H2 - Status/interrupt generating input, general-purpose Unidirectional vs Bidirectional- Figure 3 output, or operation with H1 in the interlocked or shows the configuration of ports A and 8 pulsed output handshake protocols and each of the handshake pins in each Submode 1X - Bit I/O H1 H2 - Status/interrupt generating Input Status/interrupt generating input or general-purpose port mode and submode. In modes 0 and 1, a data direction register is associated with each of the ports. These registers 4 output contain one bit for each port pin to deter- Port B, H3 and H4 - Identical to Port A, Hl and H2 mine whether that pin is an input or an out- put. Modes 0 and 1 are, thus, called Mode 1 IUnidirectional 16-Bit Model unidirectional modes because each pin Port A - Double-Buffered Data IMost significant) assumes a constant direction, changeable Submode XX (not used) only by a reset condition or a program- Hl Status/interrupt generating input ming change. These modes allow double H2 - Status/interrupt generating input or general-purpose buffered data transfers in one direction. output This direction, determined by the mode Port B - Double-Buffered Data I Least significant) and submode definition, is known as the Submode XO - Unidirectional 16-Bit Input primary direction. Data transfers in the H3 Latches input data primary direction are controlled by the H4 - Status/interrupt generating input, general-purpose handshake pins. Data transfers not in the output, or operation with H3 in the interlocked or primary direction are generally unrelated, pulsed input handshake protocols and single or unbuffered data paths exist. Submode Xl - Unidirectional 16-Bit Output H3 Indicates data received by peripheral I n modes 2 and 3 there Is no concept of H4 - Status/ interrupt generating input, general-purpose primary direction as in modes 0 and 1. Ex- output, or operation with H3 in the interlocked or cept for port A in mode 2 (bit I/O), the data pulsed output handshake protocols direction registers have no effect. These modes are bidirectional, in that the direc- Mode 2 (Bidirectional 8-Bit Mode) tion of each transfer (always 8 or 16 bits, Port A - Bit I/O (with no handshaking pins) double buffered) is determined dynamical- Submode XX (not used) ly by the state of the handshake pins. Port B - Bidirectional 8-Bit Data 1D0uble-Buffered) Thus, for example, data may be transfer- Submode XX Inot used) red out of the ports, followed very shortly H1 Indicates output data received by peripheral by a transfer into the same port pins. H2 Operation with Hl in the interlocked or pulsed output Transfers to and from the ports are in- handshake protocols dependent and may occur in any se- H3 Latches input data quence. Since the instantaneous direction H4 Operation with H3 in the interlocked or pulsed input is always determined by the external handshake protocols system, a small amount of arbitration logic may be required. Mode 3 lBidirectional 16-Bit Mode) Port A - Double-Buffered Data IMost significant) Submode XX (not used) Control 01 Double Buffered Data Paths- Port B - Double-Buffered Data ILeast significant) Generally speaking, the PI/T is a double Submode XX (not used) buffered device. In the primary direction, Hl Indicates output data received by peripheral double buffering allows orderly transfers H2 Operation with Hl in the interlocked or pulsed output by using the handshake pins in any of handshake protocols several programmable protocols. (When H3 Latches input data bit I/O Is used, double buffering is not H4 Operation with H3 in the interlocked or pulsed input available and the handshake pins are used handshake protocols as outputs or status/interrupt inputs.) Signetics 4·105 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm",,",i_'" 2. H2(H4) may be a general purpose out· put pin that is always negated. The MODE 0 SUBMODE 00 MODE 0 SUBMODE 01 MODE 0 SUBMODE 1X H2S(H4S) status bit is always O. ___ A (B) ~ A!B) 3. H2(H4) may be a general purpose out· put pin that Is always asserted. The DOUBLE.BU:FERED BIT 1/0 H2S(H4S) status bit Is always o. OUTPUT Hl(H3) Hl(H3) 4. H2(H4) may be an output pin in the in- H2(H4) H2(H4) terlocked Input handshake protocol. It is asserted when the port input latches MODE 1 PORT B SUBMODE XO are ready to accept new data. It is MODE 1 PORT B SUBMODE Xl negated asynchronously following the Hl Hl asserted edge of the H1(H3) input. As H2 soon as the Input latches become AAND B ready, H2(H4) is again asserted. When (16) the input double buffered latches are full, H2(H4) remains negated until data is removed. Thus, anytime the H2(H4) H3 output is asserted, new input data may H4 be entered by asserting H1(H3). At other times, transitions on H1(H3) are ignored. The H2S(H4S) status bit Is MODE2 MODE3 always O. When H12 enable (H34 <=> A(8) ~AANDB '\r/ (16) enable) is 0, H2(H4) is held negated. 5. H2(H4) may be an output pin in the BIT 1/0 BIDIRECTIONAL 16 BIT pulsed Input handshake protocol. It is <=> B(8) H3}--INPUT asserted exactly as In the Interlocked input protocol, but never remains asserted longer than 4 clock cycles. BIDIRECTIONAL 8 BIT - H4 TRANSFERS Typically, a four clock cycle pulse is generated. But in the case where a H1)-OUTPUT H2 TRANSFERS subsequent H1(H3) asserted edge oc- H3)-INPUT curs before termination of the pulse, ' -...~- H4 TRANSFERS H2(H4) is negated asynchronously. Thus, anytime after the leading edge of the H2(H4) pulse, new data can be entered In the PlfT double bllffered in- Figure 3. Port Mode Layout put latches. The H2S(H4S) status bit is always O. When H12 enable (H34 enable) is 0, H2(H4) is held negated. Use of double buffering is most beneficial times are observed. The PlfT contains a A sample timing diagram Is shown in in situations where a peripheral device port status register whose H1S(H3S) Figure 4. The H2(H4) Interlocked and and the computer system are capable of status bit is set anytime any input data is pulsed input handshake protocols are transferring data at roughly the same present in the double buffered latches shown. The DMAREQ pin is also shown speed. Double buffering allows the fetch that has not been read by the bus master. assuming it is enabled. All handshake pin operation of the data transmitter to be The action of H2(H4) is programmable; it sense bits are assumed to be 0 (refer to overlapped with the store operation of the may indicate whether there is room for Port General Control Register); thus, the data receiver. Thus, throughput measured more data in the PI/T latches or it may pins are in the low state when asserted. In bytes or words per second can be great· serve other purposes. The following op- Due to the great similarity between Iy enhanced. If there is a large mismatch tions are available, depending on the modes, this timing diagram Is applicable in transfer capability between the com· mode. to all double buffered input transfers. puter and the peripheral, little or no benefit is obtained. In these cases there Is Double Buffered Output Transfers- The no penalty in using double buffering. 1. H2(H4) may be an edge sensitive input PlfT supports double buffered output that is independent of H1(H3) and the transfers in all modes. Data, written by the Double Buffered Input Transfers-In all transfer of port data. On the asserted bus master to the PlfT, is stored In the modes, the PIIT supports double buffered edge of H2(H4), the H2S(H4S) status bit port's output latch. The peripheral accepts input transfers. Data that meets the port is set. It is cleared by the direct method the data by asserting H1(H3), which setup and hold times Is latched on the (refer to Direct Method of Resetting causes the next data to be moved to the asserted edge of H1(H3). H1(H3) is edge Status), the RESET pin being asserted, port's output latch as soon as it is sensitive, and may assume any duty cycle or when the H12 enable (H34 enable) bit available. The function of H2(H4) is pro- as long as both high and low minimum of the port general control register is O. grammable; it may indicate whether new 4·106 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'W""lIel.", READ READ PORT DATA H1(H3) H2(H4) INTERLOCKED H2(H4) PULSE 4 Figure 4. Double Buffered Input Transfers data has been moved to the output latch 4. H2(H4) may be an output pin In the In· shown. The DMAREQ pin is also shown or it may serve other purposes. The terlocked output handshake protocol. assuming it Is enabled. All handshake pin H1S(H3S) status bit may be programmed H2(H4) is asserted two clock cycles sense bits are assumed to be 0; thus, the for two interpretations. Normally the after data is transferred to the double pins are in the low state when asserted. status bit is a 1 when there Is at least one buffered output latches. The data reo Due to the great similarity between latch In the double buffered data path that mains stable and H2(H4) remains as· modes, this timing diagram is applicable can accept new data. After writing one serted until the next asserted edge of to all double buffered output transfers. byte/word of data to the ports, an interrupt the H1(H3) Input. At that time, H2(H4) is service routine could check this bit to asynchronously negated. As soon as Requesting Bus Master Servlce- The PI/T determine If It could store another the next data is available, it Is trans· has several means of indicating a need for byte/word; thus, filling both latches. When ferred to the output latches. When service by a bus master. First, the pro· the bus master is finished, it is often H2(H4) is negated, asserted transitions cessor may poll the port status register. It useful to be able to check whether all of on H1(H3) have no effect on the data contains a status bit for each handshake the data has been transferred to the paths. As is explained later, however, pin, plus a level bit that always reflects the peripheral. The H 1S(H3S) status control in modes 2 and 3 they do control the instantaneous state of that handshake bit of the port A and B control registers three·state output buffers of the pin. A status bit is 1 when the PI/T needs provide this flexibility. The programmable bidirectional portIs). The H2S(H4S) serviCing, i.e., generally when the bus options of the H2(H4) pin are given below, status bit is always O. When H 12 enable master needs to read or write data to the depending on the mode. (H34 enable) is 0, H2(H4) is held ports, or when a handshake pin used as a negated. simple status input has been asserted. 1. H2(H4) may be an edge sensitive input The interpretation of these bits is depen· pin independent of H1(H3) and the 5. H2(H4) may be an output pin in the dent on the chosen mode and submode. transfer of port data.. On the asserted pulsed output handshake protocol. It is edge of H2(H4), the H2S (H4S) status asserted exactly as in the interlocked Second, the PI/T may be placed in the pro· bit is set. It Is reset by the direct output protocol above, but never reo cessor's interrupt structure. As mention· method (refer to Direct Method of mains asserted longer than four clock ed previously, the PI/T contains port A and Resetting Status), the RESET pin being cycles. Typically, a four clock pulse is B control registers that configure the asserted, or when the H12 enable (H34 generated. But in the case where a sub· handshake pins. Other bits in these enable) bit of the port general control sequent H1(H3) asserted edge occurs registers enable an interrupt associated register is O. before termination of the pulse, H2(H4) with each handshake pin. This interrupt is is negated asynchronously shortening made available through the PC5/PIRQ pin, 2. H2(H4) may be a general purpose out· the pulse. The H2S(H4S) status bit is if the PIRQ function is selected. Three ad· put pin that Is always negated. The always O. When H12 enable (H34 ditional conditions are required for PIRQ H2S(H4S) status bit is always O. enable) is 0, H2(H4) is held negated. to be asserted: (1) the handshake pin status bit is set, (2) the corresponding in· 3. H2(H4) may be a general purpose out· A sample timing diagram Is shown in terrupt (service request) enable bit is set, put pin that is always asserted. The Figure 5. The H2(H4) interlocked and and (3) DMA requests are not associated H2S(H4S) status bit Is always O. pulsed output handshake protocols are with that data transfer (H1 and H3 only). Signetics 4·107 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm",,",'··', WRITE WRITE PORT DATA::::~~::::~~__~________ -t________ -;::::~:::::; ____________________;:::::: H2(H4) INTERLOCKED H2(H4) PULSE Hl(H3) Figure 5. Double Buffered Output Transfers The conditions from each of the four hand- not asserting PIRQ, the PI/T will make no except that no vectors are supplied and shake pins and corresponding status bits response to PlACK (OTACK will not be the PCB/PlACK pin can be used as a port C are ORed to determine PIRQ_ asserted)_ If the PI/T Is asserting PIRQ pin. when PlACK is received, the PI/T will out- The third method of requesting service is put the contents of the PIVR and the Direct Method of Resetting Status-In via the PC4/DMAREQ pin_ This pin can be prioritization bits_ If the PIVR has not been certain modes one or more handshake associated with double buffered transfers intialized, $OF will be read from this pins can be used as edge sensitive Inputs in each mode_ If It Is used as a DMA con- register_ These conditions are summa- for the sole purpose of setting bits in the troller request, It can initiate requests to rized in Table 4. port status register_ These bits consist of keep the PIiT's Input/output double buffer- simple flip flops. They are set (to 1) by the ing empty/full as much as possible_ It will The vector table entries for the PI/T appear occurrence of the asserted edge of the not overrun the OMA controller_ as a contiguous block of four vector handshake pin input. Resetting a hand· numbers whose common upper six bits shake status bit can be done by writing an are programmed in the PIVR. The follow- S-bit mask to the port status register. This Vectored, Prioritized Port Interrupts - Use ing list pairs each interrupt source with is called the direct method of resetting. To of SCN6S000 compatible vectored inter- the 2-blt value provided by the prioritiza- reset a status bit that is resettable by the rupts with the PI/T requires the PIRQ and tion logic, when interrupt acknowledge is direct method, the mask must contain a 1 PlACK pins_ When PlACK is asserted, the asserted. in the bit position of the port status PI/T places an S-blt vector on the data pins register corresponding to the desired bit. 00-07_ Under normal conditions, this vec- Other positions must contain O's. For tor corresponds to highest priority, H1 source-DO H2 source-01 status bits that are not resettable by the enabled, active port Interrupt source with direct method In the chosen mode, the which the OMAREQ pin is not currently H3 source-10 H4 source-11 data written to the port status register has associated_ The most significant six bits no effect. For status bits that are reset- are provided by the port Interrupt vector table by the direct method In the chosen register (PIVR), with the lower two bits Autovectored Port Interrupts-Autovec- mode, a 0 in the mask has no effect. supplied by prioritization logic according tored interrupts use only the PIRQ pin. to conditions present when PlACK is The operation of the PIIT with vectored Handshake Pin Sense Control- The PI/T asserted_ It Is important to note that the and autovectored Interrupts Is Identical contains exclusive OR gates to control the only effect on the PI/T caused by Interrupt acknowledge cycles is that the vector is Table 4 RESPONSE TO PORT INTERRUPT ACKNOWLEDGE placed on the data bus_ Specifically, no registers, data, status, or other Internal P)RQ negated OR interrupt states of the PI/T are affected by the cycle_ Conditions request function not selected PIRQ asserted PIVR has not been initialized No response from PIIT. PIIT provides $OF. the since RESET No DTACK. Uninitlalized Vector. * Several conditions may be present when PIVR has been initialized No response from PIIT. PIIT provides PIVR contents the PlACK input is asserted_ These condi- since RESET No DTACK. with prioritization bits. tions affect the PI/T's response and the termination of the bus cycle_ If the PI/T *The uninitialized vector is the value returned from an interrupt vector register before it has has no interrupt function selected, or is been ·initialized. 4·108 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm""II"·'tA sense of each of the handshake pins, Handshake pins H1 and H2 are associated wanted read cycles. Refer to Figure 4 for a whether used as inputs or outputs. Four with port A and configured by program- sample timing diagram. bits in the port general control register ming the port A control register. (The H12 can be programmed to determine whether enable bit of the port general control MODE 0 SUBMODE 00 the pins are asserted in the low or high register enables port A transfers.) Hand- voltage state. As with other control shake pins H3 and H4 are associated with registers, these bits are reset to 0 when port B and configured by programming the the RESET pin is asserted, defaulting the port B control register. (The H34 enable bit asserted level to be low. of the port general control register enables port B transfers.) The port A and B EnabUng Ports A and B-Certaln func· data direction registers operate in all three tions Involved with double buffered data submodes. Along with the submode, they transfers, the handshake pins, and the affect the data read and written at the status bits, can be disabled by the exter- associated data register according to nal system or by the programmer during Pori A or B Submode 01 (8-bll Double Buf- Table 5. They also enable the output buffer initialization. The port general control fered Oulpul)-In mode 0, double buf- register contains two bits, H12 enable and H34 enable, which control these func- associated with each port pin. The DMAREQ pin may be associated with either (not both) port A or port B, but does fered output transfers of up to a bits are available by programming submode 01 In 4 tions. These bits are cleared to the 0 state the desired port's control register. The not function if the bit I/O submode is pro- when the RESET pin is asserted, and the operation of H2 and H4 can be selected by grammed for the chosen port. functions are disabled. The functions are programming the port A and port B control the following: Port A or B Submode 00 (8-BII Double Buf- registers, respectively. All five double buf- fered Inpull-In mode 0, double buffered fered output handshake options, previous- 1. Independent of other actions by the input transfers of up to a-bits are available ly mentioned in the Port General Informa- bus master or peripheral (via the hand- by programming submode 00 In the tion and Conventions section, are shake pins), the PIIT's disabled hand- desired port's control register. The opera- available. shake controller is held to the 'empty' tion of H2 and H4 can be selected by pro- state, i.e., no data is present in the dou- gramming the port A and port B control For pins used as Inputs, data written to ble buffered data path. registers, respectively. All five double buf- the associated data register is double buf- fered input handshake options, previously fered and passed to the initial or final out- 2. When any handshake pin is used to set mentioned in the Port General Information put latch, as usual, but the output buffer is a simple status flip flop, unrelated to and Conventions section, are available. disabled. Refer to Figure 5 for a sample double buffered transfers, these flip timing diagram. flops are held reset to 0 (see Table 3). For pins used as outputs, the data path consists of a single latch driving the out- 3. When H2(H4) is used in an interlocked -- MODE 0 SUBMODE 01 put buffer. Data written to the port's data or pulsed handshake with H1(H3), register does not affect the operation of A (B) H2(H4) is held negated, regardless of any handshake pin, status bit, or any other 8 the chosen mode, submode, and aspect of the PIIT. Output pins can be primary direction. Thus, for double buf- used Independently of the input transfer. DOUBLE·BUFFERED fered Input transfers, the programmer However, read bus cycles to the data OUTPUT can signal a peripheral when the PIIT is register do remove data from the port. H1(H3) ready to begin transfers by setting the Therefore, care should be taken to avoid H2(H4) associated handshake enable bit to 1. processor instructions that perform un- The Port A and B Allernale Registers-In addition to the port A and B data registers, Table 5 MODE 0 PORT DATA PATHS the PIIT contains port A and B alternate registers. These registers are read only, Read Port AI B Write Port AI B and simply provide the Instantaneous Mode Data Register Data Register level of each port pin. They have no effect DDR-O DDR-1 DDR-X on the operation of the handshake pins, o Submode 00 FIL.D.B. FOL Note 3 FOL. S.B. Note 1 double buffered transfers, status bits, or o Submode 01 Pin FOL Note 3 IOL/FOL. D.B. Note 2 any other aspect of the PIIT, and they are o Submode 1X Pin FOL Note 3 FOL. S.B. Note 1 mode/submode independent. Abbreviations: IOL - Initial Output Latch S.B. - Single Buffered PORT MODES FOL - Final Output Latch D.B. - Double Buffered FI L - Final Input Latch DDR - Data Direction Register Mode 0- Unidirectional 8-BII Mode Note 1: Data is latched in the output data registers (final output latch) and will be In mode 0, ports A and B operate in- single buffered at the pin if the DDR is 1. The output buffers will be turned dependently. Each can be configured in off if the DDR is O. any of Its three possible submodes: Note 2: Data is latched in the double-buffered output data registers. The data in the Submode OO-Double buffered input final output latch will appear on the port pin if the DDR is a 1. Submode 01- Double buffered output Note 3: The output drivers that connect the final output latch to the pins are turned Submode 1X-Blt I/O on. Signetics 4·109 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm""Iui_iri Pori A or B Submode 1X (BII 1/0)-1 n mode direction registers operate in each sub- transfers needed for compatibility with 0, simple bit I/O is available by program- mode. Along with the submode, they af- the PIIT.) H4 can be programmed for all ming submode 1X In the desired port's fect the data read and written at the data five of the handshake options mentioned control register. This subrhode Is intended register according to Table 6. They also in the Port General Information and Con- for applications In which several Indepen- enable the output buffer associated with ventions section. dent devices must be controlled or each port pin. The DMAREQ pin can be monitored. Data written to the associated For pins used as outputs, the data path associated only with H3. data register is single buffered. If the data consists of a single latch driving the out- direction register bit for that pin is a 1 (out- put buffer. Data written to the port's data Mode 1 can provide convenient, high put), the output buffer is enabled. If it is 0 register does not affect the operation of speed 16-bit transfers. The port A and B (input), data written is still latched, but is any handshake pin, status bit, or any other data registers are addressed for compati- not available at the pin. Data read from the aspect of the PIIT. Thus, 'output pins can bility with the SCN68000 move peripheral data register Is the instantaneous value of be used independently of the Input (MOVEP) instruction and with the S68000 the pin or what was written to the data transfer. However, read bus cycles to the DMA controllers. To take advantage of register, depending on the contents of the port B data register do remove data, so this, port A should contain the most data direction register. H1(H3) is an edge significant byte of data and always be read care should be taken to avoid unwanted sensitive status input pin only and it con- read cycles. or written by the bus master first. The in- trols no data related function. The terlocked and pu Ised handshake pro- MODE 1 PORT B SUBMODE XO H1S(H3S) status bit is set following the tocols are keyed to accesses to the port B HI asserted edge of the input waveform. It Is data register in mode 1. If it is accessed reset by the direct method, the RESET pin last, the 16-bit double buffered transfers being asserted, or when the H12 enable proceed smoothly. (H34 enable) bit is O. Pori B SubmodeXO (16-BII Double Buf- H2(H4) can be programmed as a simple fered Inpul)-In mode 1 port B submode status input (identical to H1(H3)), or as an XO, double buffered input transfers of up H3 asserted or negated output. The inter- to 16-bits can be obtained. The level of all ,--..-~~H4 locked or pulsed handshake configura- 16 pins is asynchronously latched with the tions are not available. asserted edge of H3. The processor can check the H3S status bit to determine if Pori B Submode X1 (16·Bil Double Buf- new data is present. The DMAREQ pin can fered Oulpul)- Refer to Figure 4 for a sam- MODE 0 SUBMODE IX be used to signal a DMA controller to ple.timing diagram. In mode 1 port B sub- A (B) empty the input buffers. Regardless of the mode X1, double buffered output transfers 8 bus master, port A data should be read of up to 16 bits can be obtained. Data is first. (Actually, port A data need not be written by the bus master (processor or read at all.) Port B data should be read last. DMA controller) in two bytes. The first The operation of the internal handshake byte (most significant) is written to the HI (H3) controller, the H3S bit, and DMAREQ are port A data register. It is stored in a tem- H2 (H4) keyed to the reading of the port B data porary latch until the next byte is written register. (The S68000 DMA controllers can to the port B data register. Then all 16 bits be programmed to perform the exact are transferred to the final output latches Mode 1-UnldirectionaI16-Bil Mode In mode 1, ports A and B are concatenated Table 6 MODE 1 PORT DATA PATHS to form a single 16-bit port. The port B sub- mode field controls the configuration of Read Port AlB Write Port AI B both parts, The possible submodes are: Mode Register Register DDR-O DDR-1 DDR-O DDR-1 Port B submode XO-double buffered 1, Port B Fll, D.B. FOl FOl, S.B. FOl. S.B. input Submode XO Note 3 Note 2 Note 2 Port B submode X1-double buffered 1. Port B Pin FOl IOUFOl, IOUFOl, output Submode Xl Note 3 D.B .. D.B., Note 1 Note 1 Handshake pins H3 and H4, configured by Note 1: Data written to Port A goes to a temporary latch. When the Port B data programming the port B control register, register is later written, Port A data is transferred to IOUFOl. are associated with the 16-blt double buf- Note 2: Data is latched in the output data registers (final output latch) and will be fered transfer. These 16-bit transfers are single buffered at the pin if the DDR is 1 The output buffers will be turned enabled by the H34 enable bit of the port off if the DDR is O. general control register. Handshake pins Note 3: The output drivers that connect the final output latch to the pins are turned H1 and H2 can be used as simple status on. inputs not related to the 16-bit data Abbreviations: transfer or H2 can be an output. Enabling IOl - Initial Output latch S. B. - Single Buffered of the H1 and H2 handshake pins is done FOl - Final Output latch D.B. - Double Buffered by the H12 enable bit of the port general Fil - Final Input latch DDR - Data Direction Reg,ister control register. The port A and B data 4·110 SigneHcs MICROPROCESSOR DIVISION JANUARY 1963 PARALLEL INTERFACEITIMER SCN68230 'm",,""-·" of ports A and 8. 80th options for inter· Double Bullered 110 (Port B)-The only data register, depending on the contents pretation of the H3S status bit, mentioned aspect of bidirectional double buffered of the port A data direction register. This in Port General Information and Com· transfers that differs from the unidirec· is summarized in table 6. ments section, are available and apply to tional modes lies in controlling the port 8 the 16·bit port as a whole. The DMAREQ output buffers. They are controlled by the Mode 3-BidirectionaI16·BIt Double Buf· pin can be used to signal a DMA controller level of H1. When H1 is negated, the port 8 fered 110 to transfer another word to the port output output buffers (all eight) are enabled and I n mode 3, ports A and 8 are used for latches. (The S66000 DMA controllers can the pins drive the bidirectional bus. bidirectional 16·bit double buffered be programmed to perform the exact Generally, H1 is negated in response to an transfers. H1 and H2 control output transfers needed for compatibility with asserted H2 which indicates that new out· transfers, while H3 and H4 control input the PI/T.) H4 can be programmed for all put data is present in the double buffered transfers. (H1 and H2 are enabled by the five of the handshake options mentioned latches. Following acceptance of the data, H12 enable bit while H3 and H4 are in the Port General Information and Con· the peripheral asserts H1 disabling the enabled by the H34 enable bit of the port ventions section. port 8 output buffers. Other than con· general control register.) The instan· trolling the output buffer, H1 is edge sen· taneous direction of the data is deter· For pins used as inputs, data written to either data register is double buffered and passed to the initial or final output latch, sitive as in other modes. Input transfers proceed identically to the double buffered input protocol described in the Port Gen· mined by the H1 handshake pin, and thus, the data direction registers are not used. The port A and port 8 submode fields do 4 as usual, but the output buffer is disabled. eral I nformation and Conventions Section. not affect PIIT operation in mode 3. Refer to Figure 5 for a sample timing In mode 2, only the interlocked and pulsed diagram. handshake pin options are available on H2 The only aspect of bidirectional double MODE I PORT B SUBMODE XI and H4. The DMAREQ pin can be associ· buffered transfers that differs from the _ _ HI ated with either input transfers (H3) or out· unidirectional modes lies in controlling put transfers (H1), but not both. Refer to the port A and 8 output buffers. They are H2 Table 7 for a summary of the port 8 data controlled by the level of H1. When H1 is register responses in mode 2. negated, the output buffers (all 16) are enabled and the pins drive the bidirec· Bit 110 (Port A)-In mode 2, port A performs tional bus. Generally, H1 is negated In simple bit 1/0 with no associated hand· response to an asserted H2, which in· shake pins. This configuration is intended dicates that new output data is present in H3 for applications in which several indepen· the double buffered latches. Following ac· H4 dent devices must be controlled or ceptance of the data, the peripheral monitored. Data written to the port A data asserts H1, disabling the output buffers. register is single buffered. If the port A Other than controlling the output buffers, Mode 2-Bldirectional 8·Bit Mode data direction register bit for that pin is 1 H1 is edge sensitive as in other modes. In· In mode 2, port A is used for simple bit 1/0 (output), the output buffer is enabled. If it put transfers proceed identically to the with no associated handshake pins. Port 8 is 0, data written is still latched but not double buffered input protocol described is used for bidirectional 6·bit double buf· available at the pin. Data read from the in the Port General information and Con· fered transfers. H1 and H2, enabled by the data register is either the instantaneous ventions section. Port A and 8 data is H12 enable bit in the port general control value of the pin or what was written to the latched with the asserted edge of H3. In register, control output transfers, while H3 and H4, enabled by the port general control register H34 enable bit, control in· Table 7 MODE 2 PORT B DATA PATHS put transfers. The instantaneous direction of the data is determined by the H1 hand· Read Port B Write Port B shake pin. The port 8 data direction Mode Data Register Data Register register is not used. The port A and port 8 2 FIL. D.B. IOLIFOL. D.B. submode fields do not affect the PIIT Abbreviations: operation in mode 2. IOL - Initial Output Latch FOL - Final Output Latch D. B. - Double Buffered W MODE 2 FI L - Final Input Latch A (8) B)T )/0 \=)B(8) Table 8 MODE 2 PORT A DATA PATHS Mode Read Port A Data Register Write Port A Data Register DDR-O I DDR-1 DDR-O I DDR-1 HIL. OUTPUT 2 Pin I FOL FOL I FOL. S.B. Abbreviations: H2r-- TRANSFERS S.B. - Single Buffered H 3 ) - )NPUT FOL - Final Output Latch L-...r--- H4· TRANSFERS DDR - Data Direction Register Signetics 4·111 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 ':nsJ""line"i mode 3, only the interlocked and pulsed Table 9 MODE 3 PORT A AND B DATA PATHS handshake pin options are available to H2 and H4. The DMAREQ pin can be associ- ated with either Input transfers (H3) or out- put transfers (H1), but not both. H2 Indi- Mode 3 II Read Port A and B Data Register FIL, D.B. II Write Port A and B Data Register IOL/FOL. D.B .. Note 1 cates when new data is available in the Note 1: Data written to Port A goes to a temporary latch. When the Port B data port B (and implicitly port A) output register is later written, Port A data is transferred to lOLl FOL. latches, but unless the buffer Is enabled Abbreviations: by H1, the data is not driving the pins. IOL - Initial Output Latch S.B. - Single Buffered FOL - Final Output Latch D.B. - Double Buffered Mode 3 can provide convenient high speed FIL - Final Input Latch 16·bit transfers. The port A and B data registers are addressed for compatibility with the SCN68000's move peripheral (MOVEP) instruction and with the S68000 DMA controllers. To take advantage of this, port A should contain the most sig- DATA IN OUTPUT LATCHES nificant data and always be read or written ~~~ by the bus master first. The interlocked and pulsed handshake protocols are keyed to accesses to the port B data regis· ter in mode 3. If it is accessed last, the BUSiRITE NO DMA fQUEST 16·bit double buffered transfer proceeds smoothly. Refer to Table 9 for a summary DMA REQUEST PERIPHERAL ACCEPTS DATA of the port A and B data paths In mode 3. MODE 3 ~AANDB '\r-/ (18) >~< BUS WRITE DMA REQUEST BIDIRECTIONAL 18·BIT ~ t "-"~e::::::-~'~~" Figure 6. DMAREQ Associated with Output Transfers DMA REQUEST OPERATION The direct memory access request (DMAREQ) pulse (when enabled) is associated with output or input transfers to keep the Initial and final output latches DATA IN INPUT LATCHES full or empty, respectively. Figures 6 and 7 ~~~ show all the possible paths in generating DMA requests. DMAREQ is generated on the bus side of PERIPHERAL PROVIDES DATA NO DMA REQUEST the SCN68230 by the synchronized 1 chip select. If the conditions of Figures 6 and 7 ~ t 'O">~-<"~' are met, an access of the bus (assertion of CS) will cause DMAREQ to be asserted three PlfT clocks (plus the delay time from the clock edge) after CS is synchronized. DMAREQ remains asserted for three clock PERIPHERAL 10VIDES DATA DMA REtUEST cycles (plus the delay time from the clock edge) and is then negated. 1Synchronized means that the Input signal has been seen by the PlfT on the appropriate edge of the clock '''O"~~-'"~' (rising edge for Hl(H3) and failing edge for CS). (Refer to the Bus Interface section for the exception concerning es.) If a bus access (assertion of CS) and a port access (assertion of H1(H3)) occur at the same time, CS will be recognized without delay. H1(H3) will be recognized one Figure 7. DMAREQ AssOCiated with Input Transfers clock cycle later. 4·112 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm""''''·''t The OMAREQ pulse associated with a 3. The ZOS status bit is forced to 0, counter preload register (CPR) is peripheral or port side of the PI/T is regardless of the possible zero con· transferred to the counter the first time caused by the synchronized Hl(H3) input. tents of the 24·bit counter. that the prescaler passes from $00 to If the conditions of figures 6 and 7 are $1 F (rolls over) after entering the run met, a port access (assertion of the Hl(H3) The run state is characterized by: state. Thereafter, the counter input) will cause OMAREQ to be asserted decrements or is loaded from the 2.5 PI/T clock cycles (plus the delay time 1. The counter is clocked by the source counter preload register when the from clock edge) after Hl(H3) is syn· programmed in the timer control prescaler rolls over. chronized. OMAREQ remains asserted for register. S. For configurations in which the three clock cycles (plus the delay time 2. The counter is not reliably readable. prescaler is not used, the contents of from the clock edge) and is then negated. 3. The prescaler is allowed to decrement the counter preload registers are if programmed for use. transferred to the counter on the first TIMER 4. The ZOS status bit is set when the asserted edge of the TIN input after The SCN6S230 timer can provide several 24·bit counter transitions from $000001 entering the run state. On subsequent facilities needed by S68000 operating to $000000. asserted edges the counter systems. It can generate periodic inter· rupts, a square wave, or a single interrupt after a programmed time period. Also, it Timer Rules This following set of rules allow easy ap· decrements or is loaded from the counter preload registers. 9. The lowest value allowed In the counter 4 can be used for elapsed time measure· plication of the timer. preload register for use with the ment or as a device watchdog. counter is $000001. 1. Refer to the run/halt definition above. The PI/T timer contains a 24·bit syn· 2. When the RESET pin is asserted, all Timer Interrupt Acknowledge Cycles chronous down counter that is loaded bits of the timer control register go to Several conditions can be present when from three S·blt counter preload registers. 0, configuring the dual function pins as the timer interrupt acknowledge pin The 24·bit counter can be clocked by the port C inputs. (TIACK) is asserted. These conditions af· output of a 5·bit (divide by 32) prescaler or 3. The contents of the counter preload fect the PIIT's response and the termina· by an external timer input TIN. If the registers and counter are not affected tion of the bus cycle (see Table 10). prescaler is used, it can be clocked by the by the RESET pin. system clock (ClK pin) or by the TIN exter· 4. The count registers provide a direct nal Input. The counter signals the occur· read data path from each portion of the PROGRAMMER'S MODEL rence of an event primarily through zero 24·bit counter, but data written to their The internal accessible register organiza· detection. (A zero Is when the value of the addresses is ignored. (This results in a tion is represented in Table 11. Address 24·bit timer is equal to zero.) This sets the normal bus cycle.) These registers are space within the address map is reserved zero detect status (ZOS) bit in the timer readable at any time, but their contents for future expansion. Throughout the PI/T status register. It can be checked by the are never latched. Unreliable data may data sheet, the following conventions are processor or can be used to generate a be read when the timer is in the run maintained. timer interrupt. The ZOS bit is reset by state. writing a 1 to the timer status register in 5. The counter preload registers are 1. A read from a reserved location in the that bit position. readable and writable at any time and map results in a read from the 'null this occurs independently of any timer register'. The null register returns all The general operation of the timer is flexi· operation. No protection mechanisms zeros for data and results in a normal ble and easily programmable. The timer is are provided against ill·timed writes. bus cycle. A write to one of these loca· fully configured and controlled by pro· 6. The input frequency to the 24·bit tions results in a normal bus cycle but gramming the S·bit timer control register. counter from the TIN pin or prescaler no write occurs. It controls the choice between the port C output must be between 0 and the in· 2. Unused bits of a defined register are operation and the timer operation of three put frequency at the ClK pin divided by denoted by'·' and are read as zeros. timer pins, whether the counter is loaded 32 regardless of the configuration 3. Bits that are unused in the chosen from the counter preload register or rolls chosen. mode/submode but are used in others, over when zero detect is reached, the 7. For configurations in which the are denoted by 'X', and are readable clock input, whether the prescaler is used, prescaler is used (with the ClK pin or and writable. Their content, however, is and whether the timer is enabled. TIN pin as an input), the contents of the ignored in the chosen modelsubmode. Run/Halt Definition The overall operation of the timer is Table 10 RESPONSE TO TIMER INTERRUPT ACKNOWLEDGE described In terms of the run or halt PC3ITOUT Function Response to Asserted TIACK states. The control of the current state is determined by programming the timer PC3 - Port C Pin No response. control register. When In the halt state, all No DTACK. of the following occur: TOUT - Square Wave No response. No DTACK. 1. The prior contents of the counter is not TOUT - Negated Timer No response. altered and is reliably readable via the Interrupt Request No DTACK count registers. 2. The prescaler is forced to $1 F whether TOUT - Asserted Timer Timer Interrupt Vector Contents or not It is used. Interrupt Request DT ACK Asserted. Signetics 4·113 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm""II,I.lli Table 11 PI/T REGISTER ADDRESSING ASSIGNMENTS Register Affected Affected Register Select Bks Accessible by by Read 5 4 3 2 1 Reset Cycle Port General Control Register IPGCRI a a a a a RW Ves No Port Service Request Register IPSRRI a a a a 1 RW Ves No Port A Data Direction Register IPADDRI a a 0 1 a RW Ves No Port 8 Data Direction Register IPBDDRI a a a 1 1 RW Ves No Port C Data Direction Register IPCDDRI a a 1 a a R W Ves No Port Interrupt Vector Register IPIVRI a a 1 a 1 RW Ves No Port A Control Register IPACRI a a 1 1 a RW Ves No Port 8 Control Reqister IPBCRI a a 1 1 1 R W Ves No Port A Data Register IPADRI a 1 0 0 0 RW No * * Port 8 Data Reqister IPBDRI 0 1 0 0 1 RW No * * Port A Alternate Register IPAARI a 1 0 1 0 R No No Port 8 Alternate Reqister IPBARI 0 1 0 1 1 R No No Port C Data Register IPCDRI a 1 1 0 0 RW No No Port Status Register IPSRI 0 1 1 0 1 R W* Ves No Timer Control Register ITCRI 1 0 0 0 0 RW Ves No Timer Interrupt Vector Reqister ITIVRI 1 0 0 0 1 RW Ves No Counter Preload Register High ICPRHI 1 0 0 1 1 RW No No Counter Preload Register Middle ICPRMI 1 0 1 a 0 RW No No Counter Preload Register Low ICPRLI 1 0 1 0 1 RW No No Count Register High ICNTRHI 1 0 1 1 1 R No No Count Reqister Middle ICNTRMI 1 1 0 0 0 R No No Count Register Low ICNTRLI 1 1 0 a 1 R No No Timer Status Register ITSRI 1 1 0 1 0 R W* ves No "A write to this register may perform a special status resetting operation. R = Read ""Mode dependent. W = Write 4. All registers are addressable as 8·bit All bits are reset to 0 when the RESET pin 5 H34 Enable quantities. To facilitate operation with is asserted. o Disabled the MOVEP instruction and the DMAC, 1 Enabled addresses are ordered such that cer· The port mode control field should be 4 H12 Enable tain sets of registers can also be ac- altered only when the H12 enable and H34 cessed as words (2 bytes) or long enable bits are O. Except when mode 0 is o Disabled 1 Enabled words (4 bytes). desired, the port general control register must be written once to establish the 3-0 Handshake Pin Sensa mode, and again to enable the respective o The associated pin is at the high operation(s). voltage level when negated and at PORT GENERAL CONTROL REGISTER the low voltage level when asserted. (PGCR) The associated pin is at the low Port General Control Register (PGCR) The port general register controls many of voltage level when negated and at the functions that are common to the the high voltage level when asserted. overall operation of the ports. The PGCR 7 I 6 5 4 3 2 1 0 is composed of three major fields: bits 7 Port Mode H34 H12 H4 H3 H2 H1 PORT SERVICE REQUEST REGISTER and 6 define the operational mode of ports Control ~nablE Enable Sense Soose Sense Sense (PSRR) A and B and affect operation of the hand- The port service request register controls shake pins and status bits; bits 5 and 4 other functions that are common to the allow a software controlled disabling of 7 6 Port Mode Control overall operation to the ports. It is com- particular hardware associated with the o 0 Mode 0 (unidirectional 8-Bit mode) posed of four major fields: bit 7 is unused handshake pins of each port; and bits 3-0 o 1 Mode 1 (unidirectional 16-blt mode) and is always read as 0; bits 6 and 5 define define the sense of the handshake pins. 1 0 Mode 2 (bidirectional 8-bit mode) whether interrupt or DMA requests are The PGCR is always readable and writable. 1 1 Mode 3 (bidirectional 16-bit mode) generated from activity on the H 1 and H3 4·114 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm""II,I.''i handshake pins; bits 4 and 3 determine Port Interrupt Priority Control Port Interrupt Vector Register (PIVR) whether two dual function pins operate as 210 Highest Lowest port C or port interrupt request! 000 H1S H2S H3S H4S acknowledge pins; and bits 2, 1, and 0 con- 001 H2S H1S H3S H4S trol the priority among all port interrupt 010 H1S H2S H4S H3S sources. Since bits 2, 1, and 0 affect inter- 011 H2S H1S H4S H3S rupt operation, it is recommended that 100 H3S H4S H1S H2S they be changed only when the affected From a normal read cycle (CS), there is 1 0 1 H3S H4S H2S H1S never a consequence to reading this interrupt(s) is disabled or known to remain 1 1 0 H4S H3S H1S H2S inactive. The PSRR is always readable and register. Following negation of the RESET 1 1 1 H4S H3S H2S H1S pin, but prior to writing to the PIVR, a $OF writable. will be read. After writing to the register, All bits are reset to 0 when the RESET pin PORT A DATA DIRECTION REGISTER the upper 6 bits may be read and the lower is asserted. (PADDR) 2 bits are forced to O. No prioritization The port A data direction register deter- computation is performed. Port Service Request Register (PSRR) 7 6 I 5 4 I 3 2 I I1 0 mines the direction and buffering characteristics of each of the port A pins. One bit in the PADDR is assigned to each PORT A CONTROL REGISTER (PACR) The port A control register, in conjunction § § § § 4 SVCRO Interrupt Port Interrupt pin. A 0 indicates that the pin is used as an with the programmed mode and the port B * Select PFS PrioritY Control input, while a 1 indicates it is used as submode, control the operation of port A an output. The PADDR is always readable and the handshake pins H1 and H2. The 6 5 SVCRQ Select and writable. This register is ignored in port A control register contains five fields: o X The PC4IDMAREQ pin carries the mode 3. bits 7 and 6 specify the port A submode; PC4 function; DMA is not used. bits 5, 4, and 3 control the operation of the 1 0 The PC4/DMAREQ pin carries the All bits are reset to the 0 (input) state when H2 handshake pin and H2S status bit; bit 2 DMAREQ function and is associated the RESET pin is asserted. determines whether an interrupt will be with double buffered transfers con- generated when the H2S status bit goes to trolled by H1. H1 is removed from PORT B DATA DIRECTION REGISTER 1; bit 1 determines whether a service re- the PI/T's interrupt structure, and (PBDDR) quest (interrupt request or DMA request) thus, does not cause interrupt re- The PBDDR is identical to the PADDR for will occur; bit 0 controls the operation of quests to be generated. To obtain the port B pins and the port B data the H1S status bit. The PACR is always DMAREQ pulses, port A control register, except that this register is ig- readable and writable. register bit 1 (H1 SVCRQ enable) nored in modes 2 and 3. must be a 1. All bits are cleared to 0 when the RESET 1 1 The PC4/DMAREQ pin carries the PORT C DATA DIRECTION REGISTER pin is asserted. When the port A submode DMAREQ function and is associated (PCDDR) field is relevant in a mode/submode defini- with double buffered transfers con- The port C data direction register tion, it must not be altered unless the H12 trolled by H3. H3 is removed from specifies whether each dual function pin enable bit in the port general control the PI/l's interrupt structure, and that is chosen for the port C operation is register is 0 (see Table 3). thus, does not cause interrupt re- an input (0) or an output (1) pin. The quests to be generated. To obtain PCDDR, along with bits that determine the The operation of H1 and H2 and their DMAREQ pulses, Port B Control respective pin's function, also specify the related status bits is given below for each Register bit 1 (H3 SVCRQ Enable) exact hardware to be accessed at the port of the modes specified by the port general must be 1. C data register address. (See the Port C control register bits 7 and 6. 4 3 Interrupt Pin Function Select Data Register description for more o0 The PC5/PIRQ pin carries the PC5 details.) The PCDDR is an 8-bit register Bits 2 and 1 carry the same meaning in function. that is readable and writable at all times. each mode/submode, and thus are The PC6/PIACK pin carries the PC6 Its operation is independent of the chosen specified only once. function. PI/T mode. Port A Control Register (PACR) o 1 The PC5/PIRQ pin carries the PIRQ These bits are cleared to 0 when the function. The PCS/PIACK pin carries the PC6 RESET pin is asserted. 7 I 6 5 I I4 3 2 1 a function. H2 Hl Hl PORT INTERRUPT VECTOR REGISTER Port A H2 Control Inl SVCRO Slat 1 0 The PC5/PIRQ pin carries the PC5 (PIVR) Submode Enabll) Enable elrl function. The port interrupt vector register contains The PC6/PIACK pin carries the the upper order six bits of the four port in- 2 H2 Interrupt Enable PlACK function. 1 1 The PC5IPIRQ pin carries the PIRQ terrupt vectors. The contents of this o The H2 interrupt is disabled. register can be read two ways: by an or- 1 The H2 interrupt is enabled. function. dinary read cycle, or by a port interrupt The PC6/PIACK pin carries the acknowledge bus cycle. The exact data 1 H1 SVCRQ Enable PlACK function. read depends on how the cycle was in- o The H1 interrupt and DMA request are Bits 2, 1, and 0 determine port interrupt itiated and other factors. Behavior during disabled. priority. The priority is shown in descend- a port interrupt acknowledge cycle is sum- The H1 interrupt and DMA request are ing order left to right. marized in Table 4. enabled. Signetics 4·115 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 Mode 0, Port A Submode 00 o H1 Status Control The operation of H3 and H4 and their X Not used. related status bits is given below for each 5 4 3 H2 Control of the modes specified by the port general o X X Input pin-status only. Mode 2 control register bits 7 and 6. 1 0 0 Output pin-always negated. 1 0 1 Output pin-always asserted. 5 4 3 H2 Control Bits 2 and 1 carry the same meaning in 1 1 0 Output pin-interlocked input X X 0 Output pin-interlocked output each mode/submode, and thus are handshake protocol. handshake protocol. specified only once. Output pin-pulsed input hand- X X 1 Output pin-pulsed output hand- shake protocol. shake protocol. Port B Control Register (PBCR) o H1 Status Control o H1 Status Control 7 I6 51 4 I3 2 1 0 X Not used o The HIS status bit Is 1 when either the Port B H4 H3 H3 port B Initial or final output latch can H4 Control Int SVCRQ Stat. Submode Enable Enable etrl. Mode 0, Port A Submode 01 accept new data. It is 0 when both lat- ches are full and cannot accept new 2 H4 Interrupt Enable 5 4 3 H2 Control data. The HIS status bit is 1 when both of o The H4 interrupt is disabled. oX X Input pin-status only. 1 The H4 interrupt is enabled. 1 0 0 Output pin-always negated. the port B output latches are empty. It 1 0 1 Output pin-always asserted. is 0 when at least one latch is full. 1 1 0 Output pin-interlocked output 1 H3 SVCRQ Enable handshake protocol. Mode 3 o The H3 interrupt and DMA request are 1 1 Output pin-pulsed output disabled. handshake protocol. 5 4 3 H2 Control The H3 interrupt and DMA request are X X 0 Output pin-interlocked output enabled. o H1 Status Control handshake protocol. o The HIS status bit is 1 when either the X X 1 Output pin-pulsed output hand- port A initial or final output latch can shake protocol. Mode 0, Port B Submode 00 accept new data. It is 0 when both lat- ches are full and cannot accept new o H1 Status Control data. o The HIS status bit is 1 when either the o5 4X 3X Input H4 Control pin - status only. The HIS status bit is 1 when both of initial or final output latch of port A 1 0 0 Output pin - always negated. the port A output latches are empty. It and B can accept new data. It is 0 when 1 0 1 Output pin - always asserted. is 0 when at least one latch is full. both latches are full and cannot accept 1 0 Output pin - interlocked input new data. handshake protocol. The HIS status bit is 1 when both the Mode 0, Port A Submode 1X Output pin - pulsed input hand- initial and final output latches of ports shake protocol. A and B are empty. It is 0 when either 5 4 3 H2 Control the initial or final latch of ports A and B o X X Input pin-status only. is full. 1 X 0 Output pin-always negated. o H3 Status Control 1 X 1 Output pin-always asserted. o Not used. PORT B CONTROL REGISTER (PBCR) o H1 Status Control The port B control register specifies the X Not used. operation of port B and the handshake Mode 0, Port B Submode 01 pins H3 and H4. The port B control register contains five fields: bits 7 and 6 specify 5 4 3 H4 Control Mode 1, Port A Submode XX, the port B submode; bits 5, 4, and 3 con- Port B Submode XO o X X Input pin-status only. trol the operation of the H4 handshake pin o 0 Output pin-always negated. and H4S status bit; bit 2 determines o 1 Output pin-always asserted. 5 4 3 H2 Control whether an interrupt will be generated oX X Input pin-status only. 1 0 Output pin-interlocked output when the H4S status bit goes to 1; bit 1 handshake protocol. 1 X 0 Output pin-always asserted. determines whether a service request (in- 1 1 Output pin-pulsed output hand- 1 X 1 Output pin-always asserted. terrupt request or DMA request) will oc- shake protocol. cur; bit 0 controls the operation of the H3S o H1 Status Control status bit. The PACR is always readable X Not used. and writable. There Is never a conse- o H3 Status Control quence to reading the register. o The H3S status bit is 1 when either the Mode 1 Port A Sub mode XX port B initial or final output latch can Port B Submode X1 All bits are cleared to 0 when the RESET accept new data. It is 0 when both pin is asserted. When the port B submode latches are full and cannot accept new 5 4 3 H2 Control field is relevant in a mode/submode defini- data. oX X Input pin-status only. tion, it must not be altered unless the H34 The H3S status bit is 1 when both of 1 X 0 Output pin-always negated. enable bit in the port general control the port B output latches are empty. It 1 X 1 Output pin-always asserted. register is 0 (see Table 3). is 0 when at least one latch is full. 4·116 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'am",,·"'-'" Mode 0, Port B Submode 1X o H3 Status Control PORT C DATA REGISTER (PCDR) X Not used. The port C data register is an address for 5 4 3 H4 Control moving data to and from each of the eight o X X Input pin-status only. port C/alternate function pins. The exact 1 X 0 Output pin-always negated. PORT A DATA REGISTER (PADR) hardware accessed is determined by the 1 X 1 Output pin-always asserted. The port A data register is an address for type of bus cycle (read or write) and in- moving data to and from the port A pins. dividual conditions affecting each pin. o H3 Status Control The port A data direction register deter- These conditions are: whether the pin is X Not used. mines whether each pin is an input (0) or used for the port C or alternate function, an output (1), and is used in configuring and whether the port C data direction Mode 1, Port B Submode XO the actual data paths. PADR is mode register indicates the input or output dependent direction. The port C data register is single 5 4 3 H4 Control oX X Input pin-status only. buffered for output pins and not buffered 1 a 0 Output pin-always negated. This register is readable and writable at all for input pins. These conditions are sum- 1 0 1 Output pin-always asserted. times. Depending on the chosen model marized in table 12. 1 a Output pin-interloCked input handshake protocol. submode, reading or writing may affect the double buffered handshake The Port C data register is not affected by 4 Output pin - pulsed input hand- mechanism. The port A data register is not the assertion of the RESET pin. shake protocol. affected by the assertion of the RESET pin. o H3 Status Control The operation of the PCDR is independent X Not used. of the chosen PIIT mode. Mode 1, Port B Submode X1 PORT B DATA REGISTER (PBDR) Note that two additional useful benefits The port B data register is an address for result from this structure. First, it is possi- 5 4 3 H4 Control moving data to and from the port B pins. ble to directly read the state of a dual func- oX X Input pin-status only. The port B data direction register deter- tion pin while used for the non port C func- 1 a0 Output pin-always negated. mines whether each pin is an input (0) or tion. Second, it is possible to generate 1 0 1 Output pin-always asserted. an output (1), and is used in configuring program controlled transitions on alter- 1 1 a Output pin-interlocked output the actual data paths. PBDR is mode nate function pins by switching back to handshake protocol. dependent the port C function, and writing to the Output pin - pulsed output hand- PCDR. shake protocol. This register is readable and writable at all times. Depending on the chosen model This register is readable and writable at all o H3 Status Control submode, reading or writing may affect times. o The H3S status bit is 1 when either the initial or final output latch of port A the double buffered handshake mecha- and B can accept new data. It is 0 when nism. The port B data register is not af- fected by the assertion of the RESET pin. PORT STATUS REGISTER (PSR) both latches are full and cannot accept The port status register contains informa- new data. tion about handshake pin activity. Bits 7-4 The H3S status bit is 1 when both the show the instantaneous level of the initial and final output latches of ports PORT A ALTERNATE REGISTER (PAAR) respective handshake pin, and is indepen- A and B are empty. 1\ is 0 when neither The port A alternate register is an alter- dent of the handshake pin sense bits in the initial or final latch of ports A and B nate address for reading the port A pins. It the port general control register. Bit 3-0 is full. is a read only address and no other PIIT condition is affected. In all modes, the Mode 2 instantaneous pin level is read and no in- Table 12 PCDR HARDWARE put latching is performed except at the 5 4 3 H4 Control data bus interface (see Bus Interface Con- ACCESSES X X a Output pin-interlocked input nection). Writes to this address are Read Port C Data Register handshake protocol. answered with DTACK, but the data is ig- Port C PortC Alternate Alternate X X 1 Output pin-pulsed input hand- nored. function function function function shake protocol. PCDDR=O PCDDR=1 PCDDR=O PCDDR=1 Porte PortC o H3 Status Control PORT B ALTERNATE REGISTER (PBAR) pin output pin output X Not used. The port B alternate register is an alter- register register Write Port C Data Register nate address for reading the port B pins. It Mode 3 Porte porte Alternate Alternate is a read only address and no other PI/T function function function function condition is affected. In all modes, the in- PCDDR=1 PCDDR=O PCDDR= 1 5 4 3 H4 Control PCDDR=O stantaneous pin level is read and no input X X 0 Output pin-interlocked input Port C Port C porte Port C latching is performed except at the data output output output output handshake protocol. bus interface (see Bus Interface Connec- register, register, register register X X 1 Output pin-pulsed input hand- buffer tion). Writes to this address are answered buffer shake protocol. disabled enabled with DTACK, but the data is ignored. Signetics 4·117 MICROPROCESSOR DIVISION JANUARV1983 PARALLEL INTERFACE/TIMER SCN68230 'm'''''''!·''1 are the respective status bits referred to request is negated, the PIIT pro· are used. The prescaler Is throughout this data sheet. Their Inter· duces no response, i.e., no data or decremented on the falling transi- pretation depends on the programmed DTACK to an asserted TIACK. tion of the ClK pin; the 24-bit mode/submode of the PIIT. For bits 3'(), a 1 Refer to the Timer Interrupt Cycle counter Is decremented or loaded is the active or asserted state. section for details. This combina- from the counter preload registers tion and the 101 state below sup- when the. prescaler rolls over from port vectored timer interrupts. $00 to $1 F. The timer is in the run Port Status Register (PSR) 1 0 1 The dual function pin PC3ITOUT state when the timer enable bit is 1 carries the TOUT function and is and the TIN pin is high; otherwise 7 6 5 4 3 2 1 0 used as a timer interrupt request the timer is in the halt state. H4 H3H2 H1 output. The timer interrupt is 1 0 The PC2ITIN pin serves as a timer in· H4S H3S H2S H1S level level Level Level enabled; thus, the pin is low when put and the prescaler is used. The the timer ZDS status bit is 1. The prescaler is decremented following dual function pin PC7/TIACK car· the rising transition of the TIN pin ries the TIACK function and is after syncing with the internal clock. TIMER CONTROL REGISTER (TCR) used as a timer interrupt The 24-bit counter Is decremented or The timer control register determines all acknowledge input. Refer to the loaded from the counter preload operations of the timer. Bits 7·5 configure Timer Interrupt Acknowledge Cy- registers when the prescaler rolls the PC3/TOUT and PC71T1ACK pins for cle section for details. This com- over from $00 to $1F. The timer port C, square wave, vectored Interrupt, or bination and the 100 state above enable bit determines whether the autovectored interrupt operation; bit 4 support vectored timer interrupts. timer is in the run or halt state. specifies whether the counter receives 1 1 0 The dual function pin PC3ITOUT 1 1 The PC2ITIN pin serves as a timer data from the counter preload register or carries the TOUT function. In the input and the prescaler is unused. continues counting when zero detect is run or halt state it is used as a The 24·bit counter Is decremented or reached; bit 3 is unused and is read as 0; timer interrupt request output. loaded from the counter preload bits 2 and 1 configure the path from the The timer Interrupt is disabled; registers following the rising edge ClK and TIN pins to the counter con· thus, the pin is always three- of the TIN pin after syncing with the troller; bit 0 enables the timer. This stated. The dual function pin internal clock. The timer enable bit register is readable and writable at all PC7/TIACK carries the PC7 func- determines whether the timer is in times. tion. the run or halt state. 1 1 1 The dual function pin PC3ITOUT All bits are cleared to 0 when the RESET carries the TOUT function and is o Timer Enable pin is asserted. used as a timer interrupt request o Disabled. output. The timer interrupt is 1 Enabled. enabled; thus, the pin is low when Timer Control Register (TCR) the timer ZDS status bit is 1. The TIMER INTERRUPT VECTOR REGISTER dual function pin PC71T1ACK car- (TIVR) 7 I I6 5 4 3 2 I 1 0 ries the PC7 function and autovec· The timer interrupt vector register con- TOUTITIACK Z.D. Clock Timer tored interrupts are supported. tains the a-bit vector supplied when the Control Ctrl. * Control Enable timer interrupt acknowledge pin TIACK Is 4 Zero Detect Control asserted. The register is readable and o The counter is loaded from the counter writable at all times, and the same value is preload register on the first clock to always obtained from a normal read cycle 7 6 5 TOUTITIACK Control the 24-bit counter after zero detect, and a timer interrupt acknowledge bus cy- o 0 X The dual function pins PC3/TOUT and resumes counting. cle (TIACK). When the RESET pin is and PC71T1ACK carry the port C The counter rolls over on zero detect, asserted, the value of $OF is automatically function. then continues counting. loaded into the register. Refer to the Timer o 1 X The dual function pin PC3ITOUT Interrupt Acknowledge Cycle section for carries the TOUT function. In the Bit 3 is unused and is always read as O. more details. ru n state It is used as a square wave output and Is toggled on 2 1 Clock Control COUNTER PRELOAD REGISTER zero detect. The TOUT pin is high o0 The PC2ITIN input pin carries the H, M, l (CPRH-l) whfie In the halt state. The dual port C function and the ClK pin and The counter preload registers are a group function pin PC71T1ACK carries prescaler are used. The prescaler Is of three a-bit registers used for storing the PC7 function. decremented on the falling transi- data to be transferred to the counter. Each 1 0 0 The dual function pin PC3ITOUT tion of the ClK pin; the 24-bit of the registers is individually ad- carries the TOUT function. In the counter is decremented or loaded dressable, or the group may be accessed run or halt state it is used as a from the counter preload registers with the MOVEP.l or the MOVEP.W in- timer interrupt request output. when the prescaler rolls over from structions. The address one less than the The timer interrupt is disabled; $00 to $1 F. The timer enable bit address of CPRH is the null register, and thus, the pin is always three- determines whether the timer is in is reserved so that zeros are read in the up- stated. The dual function pin the run or halt state. per a bits of the destination data register PC71T1ACK carries the TIACK o 1 The PC2/TIN pin serves as a timer in- when a MOVEP.l is used. Data written to function; however, since interrupt put and the ClK pin and prescaler this address is ignored. 4·118 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm",,""·'·, The registers are readable and writable at edge sensitive flip flop that is set to 1 then enables the timer. When the 24·bit all times. A read cycle proceeds in· when the 24·bit counter decrements from cou nter passes from $000001 to $000000, dependently of any transfer to the $000001 to $000000. The ZOS status bit is the ZDS status bit is set and the TOUT (in· counter, which may be occurring cleared to 0 following the direct clear terrupt request) pin is asserted. At the simultaneously. operation (similar to that of the ports), or next clock to the 24·bit counter, it is again when the timer is halted. Note also that loaded with the contents of the CPRs and To insure proper operation of the PIIT when the RESET pin is asserted, the timer thereafter decrements. In normal opera· timer, a value of $000000 cannot be stored is disabled and thus enters the halt state. tion, the processor must direct clear the in the counter preload registers for use status bit to negate the interrupt request with the counter. This register is always readable without (see Figure 8). consequence. A write access performs a The RESET pin does not affect the con· direct clear operation if bit 0 in the written Periodic Interrupt Generator tents of these registers. data is 1. Following that, the ZDS bit is O. Counter Preload Register H, M, L (CPRH·L) This register is constructed with a reset 7 B" 6 B" 5 Bit • B" 3 B" 2 Ba 1 Bit 0 Ba dominant S·R flip flop 50 that all clearing conditions prevail over the possible zero detect condition. 4 23 22 21 20 19 lB 17 16 CPRH Square Wave Generator In this configuration the timer produces a B" 15 ,. B" B" 13 B" 12 B" 11 B" 10 B" 9 Ba B CPAM Bits 7·1 are unused and are read as O. square wave at the TOUT pin. The TOUT pin is connected to the user's circuitry Timer Status Register (TSR) Ba B" B" Sir B" B" B" B" and the TIACK pin is not used. The TIN pin 7 6 5 • 3 2 1 0 CPRl may be used as a clock input. The processor loads the counter preload COUNT REGISTER H, M, L (CNTRH·L) registers and timer control register, and The count registers are a group of three then enables the timer. When the 24·bit 8·bit addresses at which the counter can TIMER APPLICATIONS SUMMARY cou nter passes from $000001 to $000000, be read. The contents of the cou nter are the ZOS status bit is set and the TOUT not latched during a read bus cycle; thus, Periodic Interrupt Generator (square wave output) pin is toggled. At the the data read at these addresses is not In this configuration the timer generates a next clock to the 24·bit counter, it is again guaranteed if the timer is in the run state. periodic interrupt. The TOUT pin is con· loaded with the contents of the CPRs and (Bits 2, 1 and 0 of the timer control register nected to the system's interrupt request thereafter decrements. In this application specify the state.) Write operations to circuitry and the TIACK pin can be used as there is no need for the processor to direct these addresses result in a normal bus cy· an interrupt acknowledge input to the clear the ZOS status bit; however, it is cle but the data is ignored. timer. The TIN pin can be used as a clock possible for the processor to sync itself input. with the square wave by clearing the ZOS Each of the registers 15 Individually ad· status bit, then polling it. The processor dressable, or the group can be accessed The processor loads the counter preload can also read the TOUT level at the port C with the MOVEP.L or the MOVEP.W in· registers and timer control register, and address. structions. The address one less than the address of CNTRH is the null register, and is reserved so that zeros are read in the up· ~I·~-------------RUN---------------- per 8 bits of the destination data register when a MOVEP.L is used. Oata written to TIMER ENABLE J this address is ignored. $FFFFFF Count Register H, M, L (CNTRH·L) 24·BIT COUNTER' 7 6 5 • 3 2 1 0 Ba Ba B" Bit Bit Bit Ba B" $000000 23 22 21 20 19 lB CNTRH 17 16 Bit 15 ,. B" B" 13 Bit 12 Ba 11 Bit 10 B" 9 Bit B CNTRM ZDS Ba Bit B" Bit B" B" Ba Bit TOUT 7 6 5 • 3 2 1 0 eNTRl TIMER STATUS REGISTER (TSR) 'ANALOG REPRESENTATION OF COUNTER VALUE The timer status register contains one bit from which the zero detect status can be Figure 8. Periodic Interrupt Generator determined. The ZOS status bit (bit 0) is an Signetics 4·119 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm""·"'·'" Note that the PC3/TOUTpin functions as PC3 following the negation of RESET. If used in the square wave configuration, a PUIIUP resistor may be ·requlred to keep a known level prior to programming. Prior to enabling the timer, TOUT is high (see Figure 9). I~_~------------RUN--------~---- Square Wave Generator TIMER ENABLE J SFFFFFF 24-BIT COUNTER· Interrupt After Timeout In this configuration the timer generates soooooo an interrupt after a programmed time period has expired. The TOUT pin Is con- nected to the system's interrupt request TOUT \'---~/ I_ L circuitry and the TlACK pin can be an in- SQUAREWAVE---- terrupt acknowledge input to the timer. ·ANALOG REPRESENTATION OF COUNTER VALUE. The TIN pin may be used as a clock input. This configuration is similar to the periodic interrupt generator except that the zero detect control bit is set. This forces the counter to roll over after zero detect is reached, rather than reloading Figure 9. Square Wave Generetor from the CPRs. When the processor takes the interrupt, it can halt the timer and read the counter. This allows the processor to measure the delay time from zero detect (interrupt request) to entering the service routine. Accurate knowledge of the inter- rupi latency may be useful In some ap- plications (see Figure 10). Interrupt After Timeout RUN TIMER ENABLE J L $FFFFFF 24·BIT Elapsed Time Measurement COUNTER· Elapsed time measurement takes several forms; two are described below. The first $000000 configuration allows time Interval measurement by software. No timer pins are used. ZDS L The processor loads the counter preload TOUT \ I registers (generally with all 1s) and timer control register, and then enables the timer. The counter decrements until the ending event takes place. When it is ·ANALOG REPRESENTATION OF COUNTER VALUE. u desired to read the time intervat, the pro- cessor must halt the timer, then read the counter. For applications In which the in- terval could have exceeded that program- mable in this timer, interrupts can be counted to provide the equivalent of addi- tional timer bits. At the end, the timer can Figure 10. Single Interrupt After Timeout be halted and read (see Figure 11). 4·120 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm""lI"·iii System Clock The second configuration allows measure· ~I·r---------RUN--------~·~I ment (counting) of the number of input TIMER ENABLE J pulses occurring in an interval in which the counter is enabled. The TIN input pin provides the Input pulses. Generally the $FFFFFF TOUT and TIACK pins are not used. ELAPSED 24·BIT COUNTER" TIME This configuration is Identical to the ~~F~ elapsed time measurement/system clock configuration except that the TIN pin is ~~§~§ 4 $000000 used to provide the input frequency. It can = "ANALOG REPRESENTATION OF COUNTER VALUE. be connected to a simple oscillator, and the same methods could be used. Alter· nately, it could be gated off and on exter· nally and the number of cycles occurring while in the run state can be counted. However, minimum pulse width high and low specifications must be met. External Clock Figure 11. Elapsed Time Measurement Device Watchdog This configuration provides the watchdog function needed in many systems. The TIN pin is the timer input whose period at the high (1) level is to be checked. Once allowed by the processor, the TIN input TIMER ENABLE J pin controls the run/halt mode. The TOUT pin is connected to external circuitry re- quiring notification when the TIN pin has been asserted longer than the pro- grammed time. The TlACK pin (Interrupt TIN acknowledge) is only needed if the TOUT pin is connected to interrupt circuitry. $FFFFFF ======ll ~ ~ The processor loads the counter preload COU2:~~! ----~I "--1 ~ register and timer control register, and - then enables the timer. When the TIN In- put is asserted (1, high) the timer transfers $000000 - - - - - - - ' ZDS ==========~ ~-- n the contents of the counter preload register to the counter and begins count- ing. If the TIN input Is negated before zero detect is reached, the TOUT output and TOUT ~ the ZOS status bit remain negated. If zero "ANALOG REPRESENTATION OF COUNTER VALUE. detect Is reached while the TIN Input is still asserted, the ZOS status bit is set and the TOUT output is asserted. (The counter rolls over and keeps on counting). In either case, when the TIN input is negated, the ZOS status bit is 0, the TOUT Figure 12. Device Watchdog output is negated, the counting stops, and prescaler is forced to all Is (see Figure 12). SigneHcs 4·121 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 '81"..II"·"A Device Watchdog tions. In this situation the PI/T does not master, generally there Is no way to recognize the reassertion of CS until guarantee that the CS setup time with these operations are complete. Only at respect to the PI/T CLK is met. Thus, the that time does It begin the internal se- only way to determine that the PI/T quencing necessary to react to the recognized the assertion of CS is to wait asserted CS. Since CS also controls the for the assertion of DTACK. In this situa- BUS INTERFACE CONNECTION DTACK response, this 'bus cycle recovery tion, all latched bus inputs to the PI/T The PI/T has an asynchronous bus Inter- time' can be related to the CLK edge on must be held stable until DTACK is face, primarily designed for use with the which DTACK is asserted for that cycle. asserted. These include register select, SCN68000 microprocessor. With care, The PI/T will recognize the subsequent RIW, and write data inputs (see below). however, it can be connected to syn- assertion of CS three CLK periods after chronous microprocessor buses. This sec- the CLK edge on which DTACK was System specifications impose a maximum tion completely describes the PI/T's bus previously asserted. delay from the trailing (negated) edge of Interface, and is Intended for the asyn- chip select to the negated edge of DTACK. chronous bus designer unless otherwise The register select and RIW inputs pass As system speeds Increase, this becomes specified. through an internal latch that is more difficult to meet with a Simple pullup transparent when the PI/T can recognize a resistor tied to the DTACK line. Therefore, In an asynchronous system, the PI/T CLK new CS pulse (see above paragraph). the PI/T provides an Internal active pullup can operate at a significantly different fre- Since the internal data bus of the PI/T is device to reduce the rise time, and a level quency, either higher or lower than the continuously enabled for read transfers, sensitive circuit that later turns this bus master and other system com- the read access time (to the data bus buf- device off. DTACK Is negated asyn- ponents, as long as all bus specifications fers) begins when the register selects are chronously as fast as possible following are met. The SCN68230 CLK pin has the stabilized Internally. Also, when the PI/T is the rising edge of chip select, then three- same specifications as the SCN68000 ready to begin a new bus cycle, the asser- stated to avoid Interference with the next CLK, and must not be gated off at any time. tion of CS enables the data bus buffers bus cycle. within a short propagation delay. This The following signals generate normal does not contribute to the overall read ac- The system designer must take care that read and write cycles to the PI/T: CS (chip cess time, unless CS Is asserted DTACK Is negated and three-stated quick- select), RIW (read/write), RS1-RS5 (five significantly after the register select and ly enough after each bus cycle to avoid in- register select bits), Do-D7 (the 8-bit R/W Inputs are stabilized (as may occur terference with the next one. With the bidirectional data bus), and DTACK (data with synchronous bus microprocessors). SCN68000 this necessitates a relatively transfer acknowledge). To generate Inter- fast external path from the data strobe to rupt acknowledge cycles, PC6/PIACK or In addition to chip select's previously CS going negated. PC71T1ACK Is used Instead of CS and the mentioned duties, it controls the asser- register select pins are ignored. No com- tion of DTACK and latching of read data at Write Cycle. bination of the following pins can be the data bus interface. Except for controll- In many ways write cycles are similar to asserted simultaneously: CS, PlACK, or ing input latches and enabling the data normal read cycles (see above). On write TIACK. bus buffers, all of these functions occur cycles, data at the DO-D7 pins must meet only after CS has been recognized inter- the same setup specifications as the Read Cycles via Chip Select nally and synchronized with the internal register select and R/W lines. Like these This category includes all register reads, clock. Chip select is recognized on the signals, write data is latched on the except port or timer Interrupt failing edge of the CLK if the setup time is asserted edge of CS, and must meet small acknowledge cycles. When CS Is met, and DTACK is asserted (low) on the setup and hold time requirements with asserted, the register select and RlW In- next falling edge of the CLK. Read data Is respect to that edge. The same bus cycle puts are latched Internally. They must latched at the PI/T's data bus Interface at recovery conditions exist as for normal meet small setup and hold time re- the same time DTACK is asserted. It is read cycles. No other differences exist. quirements with respect to the asserted stable as long as chip select remains edge of CS (see the AC Electrical asserted independent of other external Read Cycle. via Interrupt Acknowledge Characteristics table). The PI/T Is not pro- conditions. Special Internal operations take place on tected against aborted (shortened) bus PI/T Interrupt acknowledge cycles. The cycles generated by an address error or From the above diSCUSSion, it is clear that port Interrupt vector register or the timer bus error exception in which It is ad- if the CS setup time prior to the failing Interrupt vector register are Implicitly ad- dressed. edge of the CLK Is met the PI/T can con- dressed by the assertion of pea/PlACK or sistentiy respond to a new read or write PC7IT1ACK, respectively. The signals are Certain operations triggered by normal bus cycle every four CLK cycles. This fact first synchronized with the failing edge of read (or write) bus cycles are not complete Is especially useful in designing the PI/T's the CLK. One clock period after they are within the time allotted to the bus cycle. clock In synchronous bus systems not us- recognized, the data bus buffers are enabl- One example is transfers to/from the dou- ing DTACK. (An extra CLK period is re- ed and the vector Is driven onto the bus. ble buffered latches that occur as a resu It quired In interrupt acknowledge cycles, DTACK Is asserted after another clock of the bus cycle. If the bus master's CLK Is see Read Cycles via Interrupt period to allow the vector some setup significantly faster than the PI/T's, the Acknowledge). prior to DTACK. DTACK is negated, then possibility exists that, following the bus three-stated as with the normal read or cycle, CS can be negated then reasserted In asynchronous bus systems in which the write cycle when PlACK or TIACK is before completion of these Internal opera- PI/T's CLK differs from that of the bus negated. 4·122 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'am",,""·", ABSOLUTE MAXIMUM RATINGS 1 Parameter Rating Unit Supply voltage -0.3 to + 7.0 V Input voltage3 -0.3 to + 7.0 V Operating temperature range 2 oto + 70 "C Storage temperature -55 to + 150 "C DC ELECTRICAL CHARACTERISTICS (V ee =5.0V +5%, - TA=O"C to + 70 "C4,5 Limits Parameter Test Conditions Unit VIH Input high voltage Min 2.0 Max Vee V 4 V IL Input low voltage -0.3 0.8 V lin Input leakage current Yin = 0 to 5.25V H1,H3,R/W,RESET,CLK, RS1-RS5, CS 10.0 p.A ITSI Three-state (off state) input current Yin = 0.4 to 2.4 OTACK,PCO-PC7,00-07 ±20 p.A H2,H4, PAO-PA7,PBO-PB7 -0.1 -1.0 mA V OH Output high voltage OTACK, 00-07 ILOAD = - 400p.A, Vee = min 2.4 V H2,H4, PBO-PB7, PAO-PA7 ILOAD= -150mA, Vee=min 2.4 V PCO-PC7 I LOAD = -100mA, Vee = min 2.4 V VOL Output low voltage PC3/TOUT,PC5/PIRQ I LOAD = B.BmA, Vee= min 0.5 V 00-07, OTACK I LOAD = 5.3mA, Vee= min 0.5 V PAO-PA7, PBO-PB7,H2,H4, PCO-PC2,PC4,PC6,PC7 ILOAD= 2.4mA, Vee= min 0.5 V PINT Power dissipation TA=O"C 500 mW C in Input capacitance Vin=OV, T A =25"C, f=1MHz 15 pF NOTES: 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is stress rating only and functional operation of the device at these or at any other condition above those indicated in the operation section of this specification is not implied. 2. For operating at elevated temperatures, the device must be derated based on + 150~C maximum junction temperature. 3. This product includes circuitry specifically designed for the protection of its internal devices from damaging effects of excessive static charge. Nonetheless, it is suggested that conventional precautions be taken to avoid applying any voltages larger than the rated maxima. 4. Parameters are valid over specified temperature range. 5. All voltage measurements are referenced to ground (GND). For testing, all input signals swing between 0.4V and 2.4V with a transition time of 20ns maximum. All time measurements are referenced at input voltages of O.BV and 2.0V and output voltages of O.BV and 2.0V as appropriate. Signetics 4-123 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 ':US",,"".'i, AC ELECTRICAL SPECIFICATIONS Vee= 5VDC ± 5%, Vss= OVDC, TA = O·V to 70·C (see figures 14-18)4,5 Tentative Limits Number Characteristic 8MHz 10MHz Unit Min Max Min Max 1 RIW, RS1-RS5 valid to CS low (setup time) 0 0 ns 215 CS low to RIW and RS1-RS5 invalid (hold time) 100 65 ns 36 CS low to ClK low (setup time) 30 20 ns 47 CS low to data out valid (delay) 75 60 ns 5 RS1-RS5, RIW valid to data out valid (delay) 140 100 ns 6 ClK low to DTACK low (read/write cycle) (delay) 0 70 0 60 ns 78 DTACK low to CS high (hold time) 0 0 ns 8 CS or PlACK or TIACK high to data out invalid (hold time) 0 0 ns 9 CS or PlACK or TIACK high to 00-07 high impedance (delay) 50 45 ns 10 CS or PlACK or TlACK high to DTACK high (delay) 50 30 ns 11 CS or PlACK or TlACK high to DTACK high impedance (delay) 100 55 ns 12 Data in valid to CS low (setup time) 0 0 ns 13 CS low to data in invalid (hold time) 100 65 ns 14 Input data valid to H1(H3) asserted (setup time) 100 60 ns 15 H1(H3) asserted to input data invalid (hold time) 20 20 ns 16 Handshake input H1(H3) pulse width asserted 40 40 ns 17 Handshake input H1(H3) pulse width negated 40 40 ns 18 H1(H3) asserted to H2(H4) negated (delay) 150 120 ns 19 ClK low to H2(H4) asserted (delay) 100 100 ns 20 9 H2(H4) asserted to H1(H3) asserted 0 0 ns 21 10 ClK low to H2(H4) pulse negated (delay) 125 125 ns 22 14,16 Synchronized H1(H3) to ClK low on which DMAREQ is asserted (see figures 6 and 7) 2.5 3.5 2.5 3.5 clk per 23 elK low DMAREQ is asserted to ClK low on which DMAREQ is negated 3 3 3 3 clk per 24 ClK low to output data valid (delay) (modes 0, 1) 150 120 ns 25 14,16 Synchronized H1(H3) to output data invalid (modes 0, 1) 1.5 2.5 1.5 2.5 clk per 6. This specification only applies if the PlfT had completed all operations Initiated by the previous bus cycle when CS was asserted. Following a normal read or write bus cycle, all operations are complete within three elKs after the falling edge of the elK pin on which DTACK was asserted. If CS is asserted prior to completion of these operations, the new bus cycle, and hence DTACK is postponed; If all operations of the previous bus cycle were complete when CS was asserted, this specification is made only to insure that DTACK is asserted with respect to the falling edge of the ClK pin as shown in the timing diagram, not to guarantee operation of the part. If the CS setup time Is violated, DTACK may be asserted as shown, or may be asserted one clock cycle later. 7. Assuming the RS1-RS5 to data valid time has also expired. 8. This specification imposes a lower bound on CS low tIme, guaranteeing that CS will be low for at least 1 ClK period. 9. This specification assures recognition of the asserted edge of H1(H3). 10. This specification applies only when a pulsed handshake option is chosen and the pulse is not shortened due to an early asserted edge of H1{H3). 11. eLK refers to the actual frequency of the eLK pin, not the maximum allowable eLK frequency. 12. If the setup time on the rising edge of the clock Is violated, H1(H3) may not be recognized until the next rising edge of the clock. 13. This limit applies to the frequency of the signal at TIN compared to the frequency of the CLK signal during each clock cycle. If any period of the waveform at TIN Is smaller than the period of the elK signal at that instant, then it is likely that the timer circuit will completely ignore one cycle of the TIN signal. If these two signals are derived from different sources, they will have different instantaneous frequency variations. In this case the frequency applied to the TIN pin must be distinctly less than the frequency at the CLK pin to avoid lost cycles of the TIN signal. With signals derived from different crystal oscillators applied to the TIN and CLK pins with fast rise and fall times, the TIN frequency can approach 80 to 90% of the frequency of the ClK signal without a loss of a cycle of the TIN signal. If these two signals are derived from the same frequency source, then the frequency of the signal applied to TIN can be 100% of the frequency atthe CLK pin. They may be generated by different buffers from the same signal or one may be an inverted version of the other. The TIN signal may be generated by an AND function of the clock and a control signal. 14. The maximum value is caused by a peripheral access (H1(H3) asserted)) and bus access (CS asserted) occurring at the same time. 15. See Bus Interface Connection for exception. 16. Synchronized means that the Input signal has been seen by the PI/T on the appropriate edge of the clock (rising edge for H1(H3)) and failing edge for CS. Refer to Bus Interface Connection for exception concerning es. 4·124 Signetics MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'RA""""·'" AC Electrical Specifications (Continued) vcc= 5VDC ± 5%, Vss= OVDC, TA = O'V to 70'C (see figures 14·18)4,5 Tentative limits Number Characteristic 8M Hz 10MHz Unit Min Max Min Max 26 H1 negated to output data valid (modes 2, 3) 70 50 ns 27 H1 asserted to output data high impedance (modes 2, 3) 0 70 0 70 ns 28 Read data valid to DTACK low (setup time) 0 0 ns 29 ClK low to data output valid (interrupt acknowledge cycle) 120 100 ns 30 12 H1(H3) asserted to ClK high (setup time) 50 40 ns 31 PlACK or TIACK low to ClK low (setup time) 50 40 ns 32 16 Synchronized CS to ClK low on which DMAREQ is asserted (see figures 6 and 7) clk per 33 14,16 Synchronized H1(H3) to ClK low on which H2(H4) is asserted 3 3.5 4.5 3 3 3.5 3 4.5 clk per 4 34 ClK low to DTACK low (interrupt acknowledge cycle) (delay) 75 60 ns 35 ClK low to DMAREQ low (delay) a 120 a 100 ns 36 ClK low to DMAREQ high (delay) a 120 0 100 ns A ClK low to PIRQ low or high impedance 250 225 ns 8 13 TIN frequency (external clock)-prescaler used a 1 a 1 Fclk(Hz)11 C TIN frequency (external clock)-prescaler not used a 1/32 0 1/32 Fclk(Hz)11 0 TIN pulse width high or low (external clock) 55 45 ns E TIN pulse width low (run/halt control) 1 1 clk F ClK low to TOUT high, low, or high impedance a 250 a 225 ns G CS, PlACK, or TIACK high to CS, PlACK, or TIACK low 50 30 ns CLOCK TIMING (see Figure 13) 8MHz 10MHz Plrlmeter Unit Min Max Min Max f Frequency of operation 2.0 8.0 2,0 10,0 MHz teye Cycle time 125 500 100 500 ns tCL Clock pulse width 55 250 45 250 ns tCH Clock pulse width 55 250 45 250 ns tCr Clock rise time 10 10 ns tCI Clock fall time 10 10 ns Signetics 4·125 MICROPROCESSOR DIVISION JANUARY 1983 PARALLEL INTERFACE/TIMER SCN68230 'm",,""-·', POWER CONSIDERATIONS The average chip-junction temperature, TJ, in °c can be obtained from: TJ=TA+IPDa/lJA) (1) Where: T A'" Ambient Temperature, °c /lJA" Package Thermal Resistance, Junction-to-Ambient, °C/W PD iE PINT + PPORT PINT=ICC x Vce, Watts - Chip Internal Power PPORT'" Port Power Dissipation, Watts - User Determined For most applications PpORT ~ ~ ;U '" 0 > ""C r- ~ r- 0 m m en en r- 0 ...Z '" m ;U CJ ~ en 0 "TI Z CLK > 0 .-.. m PA(PB)IJ.7 I... 4 CLOCKS (MAX) 0 MIN ..J ~ m I... I. @ .1 @) ---+----------~-===~.I ;U Hl(H3) en !V ·1'" @ .1 , i ~ H2(H4) 0 en (INTL) I. @ .1. (35 iiMAiiEa I. """K @ .1 H2(H4) (PULSED) NOTE: TIMING DIAGRAM SHOWS HI. H2. H3. AND H4 ASSERTED LOW en oZ 0- ~ C ~ C» I\) Figure 17. Peripheral Interlace Input Timing W o -0 CD '" ;;:: I ." 0AJ > ;0 0 > r- i30" r- m m en en r- 0 AJ Z ..... 0 <: m (ji ;0 0 "n Z eLK > 0 PA(PB)O·7 (MDO,1) -s:: m ..... m ;0 PA(PB)O·7 (MD 2, 3) H2(H4) (PULSED) H1(H3) DMAREQ H2(H4) (INTL) NOTE: TIMING DIAGRAM SHOWS H1, H2, H3, AND H4 ASSERTED LOW. en oZ '- }> z 0- c }> C» AJ .1>0 (\oJ -< .:.. Figure 18. Peripheral Interlace Output Timing W N co o - ~------------~~-~---"RQN t INTERRUPT LOGIC & REGISTER IACKN PIN DESIGNATIONS MNEMONIC PIN NO. TYPE DESCRIPTION A1-A7 48-42 110 Address Lines: Active high, three·statable. In the MPU mode, these low order address lines spec· ify which internal register of the DMAI is being accessed, In DMA mode, A1-A7 are outputs which provide the low order address bits of the location being accessed. Three·stated in IDLE mode. A8-A231 41-37 110 Address/Data Lines: Active high, three·statable. These lines are time multiplexed for data and ad· DO-D15 35-25 dress leads. The lines OWNN, RWN, CSN, and DBENN are used to control the demultiplexing of the address and data using external circuitry. In MPU mode, the bidirectional data lines (DO-D15) are used to transfer data between the MPU and the DMAI. In DMA mode, A8-A23 provide the high order address bits of the location being accessed. Three·stated in IDLE mode. ASN 5 110 Address Strobe: Active low, three·statable. In MPU and IDLE modes, ASN is an input which indio cates that the current bus master has placed a valid address on the bus. It is monitored by the DMAI during bus arbitration to ascertain that the previous bus master has completed the current bus cycle. In DMA mode, it is an output indicating that the DMAI has placed a valid address on the bus. UDSN 8 110 Upper Data Strobe: Active low, three·statable. In MPU and IDLE modes, UDSN is an input which indicates that the upper data byte of the addressed word is being addressed. In DMA mode, it is an output with the same meaning. LDSN 6 110 Lower Data Stobe: Active low, three·statable. In MPU and IDLE modes, LDSN is an input which indicates that the lower data byte of the addressed word is being addressed. In DMA mode, it is an output with the same meaning. R/WN 9 110 Read/Write: Active high for read, low for write, three·statable. In MPU mode, R/WN is an input which controls the direction of data flow through the DMAI's input/output data bus interface and, if required, through an external data bus buffer. R/WN high causes the DMAI to place the data from the addressed register on the data bus, while R/WN low causes the DMAI to accept data from the data bus. In DMA mode, R/WN is an output to memory and 110 controllers indicating the type of bus cycle. It is held three·stated during IDLE mode. Signetics 4·131 MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'm"elII"·"i PIN DESIGNATIONS (Continued) MNEMONIC PIN NO. TYPE DESCRIPTION CSN 4 I Chip Select: Active low. When low, places the DMAI into the MPU mode. This input signal Is used to select the DMAI for programmed data transfers. These transfers take place over DO-D15 as con- trolled by the R/WN and A1-A7 inputs. The DMAI is deselected when CSN is high. CSN is ignored during DMA mode. DTACKN 3 1/0 Data Transfer Acknowledge: Active low, three-statable. In MPU mode, DTACKN is asserted on a write cycle to indicate that the data on the bus has been latched, and on a read cycle or interrupt acknowledge cycle to indicate that valid data is present on the bus. The signal is negated (driven high) when completion of the cycle is Indicated by negation of the CSN or IACKN input, and returns to the inactive third state a short time after it is negated. In DMA mode, DTACKN is an in- put monitored by the DMAI to determine when the addressed device (memory) has latched the data (write cycle) or put valid data on the bus (read cycle). RESETN 24 I Master Reset: Active low. Assertion of this pin clears internal control registers (see table 1), ini- tializes the interrupt vector register to H 'OF', and sets the status register to the default value B '0000 OOOX', where X is the state of RDYN. All bidirectional 1/0 lines are three-stated and the DMAI is placed in the IDLE mode. CLK 17 I Clock: Active high. Usually the system clock, but may be any clock meeting the electrical specifi- cations. Used by the DMAI to synchronize device functions and external control lines, and may not be gated off at any time. IRON 7 0 Interrupt Request: Active low, open collector. This output is asserted, if interrupts are enabled, upon end of transfer, on occurrence of a bus error, and on receipt of an abort from the MPU. The CPU can read the status register to determine the interrupting condition(s), or can respond with an interrupt acknowledge cycle to cause the DMAI to output an interrupt vector on the data bus. IACKN 10 I Interrupt Acknowledge: Active low. When asserted, indicates that the current cycle is an interrupt acknowledge cycle. The DMAI normally responds by placing the contents of the interrupt vector register on the data bus and asserting DTACKN. IACKN is not serviced if the DMAI has not gener- ated an interrupt request. BRN 16 0 Bus Request: Active low, open collector. BRN is asserted by the DMAI to request ownership of the bus after a DMA request is sensed on the REON input from the 1/0 device. It is negated when the bus has been granted (BGN low) and BGACKN has been asserted, or, in burst DMA request mode, if the 1/0 device negates its request at least one clock cycle before BGACKN is asserted. BGN 11 I Bus Grant: Active low. BGN indicates to the DMAI that it is to be the next bus master. This signal is originated by the MPU and propagated via a daisy chain or other prioritization mechanism. After BGN is asserted, the DMAI waits until DTACKN, ASN, and BGACKN have become inactive before assuming ownership of the bus by asserting BGACKN. BGOUTN 14 0 Bus Grant Output: Active low. Daisy chain output which is asserted by the DMAI when BGN is asserted and the DMAI does not have a bus request pending. BGACKN 15 1/0 Bus Graflt Acknowledge: Active low, three-statable. As an input, BGACKN is monitored by the DMAI during the bus arbitration cycle to determine when it can assume ownership of the bus (BGACKN negated). In DMA mode, it is asserted by the DMAI to indicate that it is the bus master. Three-stated in MPU and IDLE modes. RERUNN 23 I Rerun: Active low. This input is asserted by external error detect logic to indicate a bus error. In DMA mode, the DMAI stops operation and three-states the data, address, and control lines, except BGACKN. It remains halted until RERUNN becomes inactive, and then re-tries the last bus cycle. If RERUNN is asserted again, the DMAI sets the ERR bit in the status register, stops DMA operation, releases the bus, and interrupts the CPU, if interrupts are enabled, responding with a special inter- rupt vector when IACKN is asserted. Not monitored in MPU and IDLE modes. REON 22 I DMA Request: Active low. This input from the 1/0 device requests service from the DMAI and causes the DMAI to request control of the bus. In burst mode, the input is level sensitive, and the DMAI releases the bus after REON is negated and the current DMA cycle is completed. In cycle steal mode, the REON input is negative edge triggered. A negative going edge must occur at least one clock cycle before DTCN is asserted to accomplish continuous transfer cycles. ACKN 20 0 DMA Request Acknowledge: Active low. ACKN is asserted by the DMAI to indicate that it has gained the bus and the requested bus cycle is now beginning. It is asserted at the beginning of every bus cycle after ASN has been asserted, and is negated at the end of every bus cycle. 4·132 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 '1SI""n,I.I'I PIN DESIGNATIONS (Continued) MNEMONIC PIN NO. TYPE DESCRIPTION RDYN 19 I Device Ready: Active low. RDYN is asserted by the requesting device to indicate to the DMAI that valid data has either been stored or put on the bus. If negated, it indicates that the data has not been stored or presented, causing the DMAI to enter wait states. RDYN can be held low continuo ously if the device is fast enough so that wait states are not required. DTCN 21 0 Device Transfer Complete: Active low. In DMA mode, DTCN is asserted by the DMAI to indicate to the device that the requested data transfer is complete. On a write to memory operation, it indio cates that the data provided by the device has been successfully stored. On a read from memory operation, it indicates to the device that the data from memory is present on the data bus and should be latched. DON EN 18 I/O Done: Active low, open collector. As an output, DONEN is asserted by the DMAI concurrent with the ACKN output to indicate to the device that the transfer count is exhausted and that the DMAl's operation is completed as a result of that transfer. As an input; if asserted by the device before the transfer count became zero, it causes the DMAI to abort service and generate an interrupt request, if interrupts are enabled. 4 OWNN 2 0 Own: Active low, open collector. This output is asserted by DMAI during the DMA mode to indi- cate bus mastership. It can be used to enable external address/data and control butters. Inactive in MPU and IDLE modes. DBENN 1 0 Data Bus Enable: Active low, open collector. Asserted by the DMAI when CSN is asserted orwhen IACKN is asserted and the DMAI has an interrupt request pending. Can be used to enable bidirec- tional data butters for DO-D15. Inactive in IDLE mode. Vec 12 I Power Supply: + 5 volt power input. Vee 13 I Power Supply: + 1.5 volt power input. Vss 36 I Ground: Signal and power ground input. PIN DESCRIPTION read as indicated in the register Device Control Register (DCR) The Pin Designation table describes the descriptions_ /15J External Request Mode. This bit function of each of the pins of the DMAI. 3. All registers are addressable as B-bit selects whether the DMAI operates in Signal names ending in 'N' are active low. quantities. To facilitate operation with burst or cycle steal mode. All other signals are active high. In the the 6BK MOVEP instruction, addresses descriptions, 'MPU mode' refers to the o Burst mode. This mode allows a are ordered such that certain sets of device to request the transfer of state when the DMAI is chip selected. The registers may also be accessed as multiple operands using consecu- term 'DMA mode' refers to the state when words or long words. tive bus cycles. In this mode the the DMAI assumes ownership of the bus. The operation of the DMAI is programmed request (REON) line is an active low The DMAI is in the 'IDLE mode' at all other by writing control words into the appropri- input which Is asserted by the tlmes_ ate registers. Operational feedback is pro- device to request an operand trans- In this data sheet signals are discussed vided via status registers which can be fer. The DMAI services the request using the terms 'active' and 'inactive' or read by the CPU. The contents of certain by arbitrating for the bus, obtaining 'asserted' and 'negated' independent of control and status registers are initialized the bus, and notifying the periph- whether the signal is active in the high on RESET. eral by asserting the acknowledge (logic one) state or the low (logic zero) (ACKN) output. If the request line is state. Refer to the individual pin descrip- To provide compatibility with the other active when the DMAI asserts tions for the definition of the active level 6BK family DMA controllers, control and ACKN, and remains active at least of each signal. status bits are mapped In bit positions until the DMAI asserts device equivalent to where they are located in the transfer complete (DTCN), the REGISTERS AND COUNTERS register map of the other devices. Bits DMAI recognizes a valid request for which are used in the other devices but another operand, which will be Register Map not in the DMAI are assigned default val- The internal accessible register organiza- transferred during the next bus cy- ues. If upward compatibility to the other cle_ If the request line Is negated tion of the DMAI is shown in table 1. The controllers is required, the programmer following rules apply to all registers: before the DMAI asserts DTCN, the should use these default values when DMAI relinquishes the bus and 1. A read from a reserved location in the writing the control words to the registers, map results in a read from the the 'null walts for the next request. although they have no effect in the DMAI. register'. The null register returns all When a register is read, the default value Cycle steal mode. In this mode, the ones for data and results in a normal is returned regardless of the value used device requests an operand trans- bus cycle_ A write to one of these loca- when the register is programmed. The de- fer by generating a falling edge on tions results in a normal bus cycle but fault value is Indicated by '(x)' in unused the request (REON) line. The DMAI no write occurs. bit positions In the register formats, which services the request by arbitrating 2. Unused bits of a defined register are are Illustrated in table 2. for the bus, obtaining the bus, and Signetics 4·133 MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'mn"ile'.iii notifying the peripheral by assert- [5:4) Operand Size. The programming of 10 Long word. The operand size is 32 ing the acknowledge (ACKN) out- these bits determine whether UDSN, bits. The operand Is transferred as put. The request line must be in the LDSN, or both are generated during the two 16·blt words. The MAC is incre- inactive state for at least one clock transfer cycle and the increment by which mented by two after each 16-blt cycle before a request Is made.. the memory address counter (MAC) is word is transferred. The value of After a request has been asserted, changed In each transfer cycle. the LSB of the MAC is ignored and it must remain at the assertion both UDSN and LDSN are asserted 00 Byte. The operand size is 8 bits. level for at least one clock cycle. If during the transfer. The transfer . The MAC is incremented by one another request is received before counter decrements by one before after each operand transfer. If the the first operand part of a former the entire long word Is transferred. request is acknowledged, the sec- LSB of the MAC is a '0', UDSN is Note that this mode is not imple- asserted during the transfer. If the ond request is not recognized. Nor- mented in the 68440. mally, the DMAI will relinquish the LSB of a MAC Is a '1', LDSN is 11 Double word. The operand size is bus after servicing a valid request. asserted during the transfer. The 32 bits. The operand is transferred transfer counter decrements by However, if the device generates a as a single 32·bit word. The MAC is new request before the DMAI as- one before each byte is trans- incremented by four after each op- serts DTCN for the last operand ferred. erand transfer. The value of the two part, the DMAI will retain owner- 01 Word. the operand size is 16 bits. LSBs of the MAC Is ignored (the A 1 ship of the bus and that request The MAC is incremented by two output will always be a zero in this will be serviced before the bus is after each operand transfer. The mode) and both UDSN and LDSN relinquished. value of the LSB of the MAC is are asserted during the transfer. Ignored and both UDSN and LDSN The transfer counter decrements Operation Control Register (OCR) are asserted during the transfer. by one before the double word is 171 Direction The transfer counter decrements transferred. Note that this mode is by one before each word is not implemented in the 68440 or o Transfer is from memory to device. transferred. 68450; it is included in the DMAI to 1 Transfer is from device to memory. support VME bus operations. Table 1. DMAI ADDRESS MAP ADDRESS BITS1,2 ACRONYM REGISTER NAME MODE AFFECTED BY RESET 7 6 5 4 3 2 1 0 d d 0 0 0 0 0 0 CSR Channel Status Register R/W3 Yes d d 0 0 0 0 0 1 CER Channel Error Register R Yes d d 0 0 0 0 1 0 Reserved d d 0 0 0 0 1 1 Reserved d d 0 0 0 1 0 0 DCR Device Control Register R/W Yes d d 0 0 0 1 0 1 OCR Operation Control Register R/W Yes d d 0 0 0 1 1 0 SCR Sequence Control Register R/W4 Yes d d 0 0 0 1 1 1 CCR Channel Control Register R/W Yes d d 0 0 1 0 0 0 Reserved d d 0 0 1 0 0 1 Reserved d d 0 0 1 0 1 0 MTCH Memory Transfer Counter High R/W No d d 0 0 1 0 1 1 MTCL Memory Transfer Counter Low R/W No d d 0 0 1 1 0 0 MACH Memory Address Counter High RIW4 No d d 0 0 1 1 0 1 MACMH Memory Address Counter Middle High R/W No d d 0 0 1 1 1 0 MACML Memory Address Counter Middle Low R/W No d d 0 0 1 1 1 1 MACL Memory Address Counter Low R/W No d d 0 1 d d d d Reserved d d 1 0 0 0 d d Reserved d d 1 0 0 1 0 0 Reserved d d 1 0 0 1 0 1 IVR Interrupt Vector Register R/W Yes d d 1 0 0 1 1 0 Reserved d d 1 0 0 1 1 1 IVR Interrupt Vector Register R/W Yes d d 1 0 1 0 d d Reserved d d 1 0 1 1 0 0 Reserved d d 1 0 1 1 0 1 CPR Channel Priority Reg ister R/W4 No d d 1 0 1 1 1 0 Reserved d d 1 0 1 1 1 1 Reserved d d 1 1 d d d d Reserved Notes: 1. AO= a forUDSN asserted, AO= 1 for LDSN asserted. 2. 'd' designates don't care. 3. A write to this register may perform a status resetting operation. 4. This register is a dummy register present only to provide compatibility with other 6SK family DMA controllers. A write to this register has no effect on the DMAI. 4·134 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'am''','',i.'ij Table 2. REGISTER BIT FORMATS DEVICE CONTROL REGISTER BIT1S BIT14 BIT13 BIT12 BIT11 BIT10 BIT09 alTOS EXTERNAL REQUEST MODE NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED DCR (0) (0) 0= BURST (0) (1) (1) (-) (0) 1=CYCLE STEAL , , ·Should be programmed as '0 for SIZE (OCR[5:4J)= 00 and as 1 otherwise. When read, the value of thIs bit is OCR(51.0R.OCR[4[. OPERATION CONTROL REGISTER (OCR) BIT07 BITOS BITOS BIT04 BIT03 BIT02 BIT01 BITOO OCR DIRECTION O=MEM TO DEY NOT USED OPERAND SIZE 00= BYTE 01 = WORD (1S BIT) NOT USED NOT USED NOT USED NOT USED 4 1=DEVTO (0) 10=LONG WORD (0) (0) (1) (0) MEM 11 = WORD (32·BIT) * Long word and 32-blt word modes are not supported by 68440. 32-blt word mode IS not supported by 68450. SEQUENCE CONTROL REGISTER (SCR) BIT1S BIT14 BIT13 BIT12 BIT11 BIT10 BIT09 BIT08 NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED SCR (0) (0) (0) (0) (0) (1) (0) (0) CHANNEL CONTROL REGISTER (CCR) BIT07 BITOS BITOS BIT04 BIT03 BIT02 BIT01 BITOO START SOFTWARE INTERRUPT ABORT ENABLE CCR O=NO NOT USED NOT USED O=NO O=NO NOT USED NOT USED NOT USED 1=YES (0) (0) 1=YES 1=YES (0) (0) (0) CHANNEL STATUS REGISTER (CSR) BIT1S BIT14 BIT13 BIT12 BIT11 BIT10 BIT09 BIT08 CHANNEL NORMAL ERROR CHANNEL READY OPERATION DEVICE ACTIVE INPUT COMPLETE NOT USED TERMINATE NOT USED NOT USED STATE CSR O=NO (0) O=NO O=NO O=NO (0) (0) O=LOW 1=YES 1=YES 1=YES 1=YES 1=HIGH CHANNEL ERROR REGISTER (CER) BIT07 BITOS BITOS BIT04 BIT03 BIT02 BIT01 BITOO ERROR CODE CER NOT USED NOT USED NOT USED 00000 = NO ERROR (0) (0) (0) 01001 = BUS ERROR 10001 = SOFTWARE ABORT CHANNEL PRIORITY REGISTER (CPR) BIT07 BITOS BITOS BIT04 BIT03 BIT02 BIT01 BITOO NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED NOT USED CPR (0) (0) (0) (0) (0) (0) (0) (0) Signetics 4·135 MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'm""""·'i., Sequence Control Register (SCR) successful or not, of any DMAI operation Only the least significant 24 bits of the This register serves no function in the and indicates that the DMA transfer has counter (MACMH, MACML, and MACL) are DMAI. It is Included only to provide com· completed. This bit must be cleared to implemented in the DMAI. The most sig· patibility with the programming for the start another channel operation. nificant byte of the counter, MACH, is pro· 68440 and 68450 DMA controllers. vided only to allow compatibility with pro· [13] Normal Device Termination. This bit is gramming of the 68440 and 68450. Writing Channel Control Register (CCR) set when the device terminates the DMAI to MACH has no effect on the DMAI opera· [71 Start Operation operation by asserting the DONEN line tion. Reading MACH always returns o No start pending. while the device was being acknowledged. H'OO'. 1 Start operation. The start bit is set This bit must be cleared to start another to initiate operation of the DMAI. channel operation. The memory address counter and Memory Transfer Counter [12] Error. This bit is used to report that the memory transfer counter should the DMAl's operation was terminated due (MTCH, MTCL) have been previously initialized, The 16·bit memory transfer counter pro· to the occurrence of an error. The condi· and all bits of the channel status grams the number of operands to be trans· tion which caused the error can be deter· register (CSR) should have previ· ferred by the DMAI. The counter must be mined by reading the channel error regis' ously been reset. The DMAI initio initialized prior to beginning the transfer ter (CER). This bit must be cleared to start ates operation by clearing any of a block of data and then decrements another channel operation. When this bit pending requests, clearing the once per operand transfer (regardless of is cleared, the CER is also cleared. start bit, and setting the channel operand size) until it reaches the terminal active bit in the CSR. The DMAI is [11] Channel Active. This bit is set after the value of zero. Channel operation then ter· then ready to receive requests for channel has been started and remains set minates and the COC bit in the CSR will be an operation. The channel cannot until the channel operation terminates. asserted. be started if any of the internal It is then automatically cleared by the status bits in the eSR (CSR[15:11]) DMAI. The bit is unaffected by the write Interrupt Vector Register (IVR) have not been cleared. operations. The IVR contains the value to be placed on the data bus upon receipt of an interrupt A pending start cannot be reset by [8] Ready Input State. This bit reflects the acknowledge from the MPU. Only the a write to the register. START can state of the RDYN input at the time the seven most Significant bits of the pro· be cleared only by the DMAI when CSR is read. The bit is a '0' if RDYN is low grammed value are used by the DMAI. The it starts operation or by setting the and a '1' if RDYN is high. This bit is unaf· output vector from the DMAI contains a software abort bit (CCR[4]). fected by write or reset operations. zero in the least significant bit position if a [4] Software Abort Channel Error Register (CER) normal termination occurred (error bit not o Do not abort. [4:0] Error Code. This field indicates the set) and contains a one in the least signifi· 1 Abort operation. Setting this bit source of error when an error is indicated cant bit position if termination was due to terminates the current operation of in CER[12]. The contents of this register an error (error bit set). the DMAI and places it in the IDLE are cleared when CER[12] is cleared. The contents of this register are initialized state. The channel operation com· 00000 No error. to H 'OF' by a reset. The value returned plete and error bits in the CSR are 01001 Bus error. A bus error occurred duro will be H'OF', regardless of the error set, the channel active bit in the ing the last bus cycle generated by state, until the register is programmed by CSR is reset, and an ABORT the DMAI. See rerun description in the MPU. ERROR condition is signaled in the OPERATION section. CER. Setting this bit causes a 10001 Software abort. The channel opera· To provide compatibility with the other pending start to be reset. tion was terminated by a software 68K family DMA controllers, the IVR has abort command. See CCR[4]. two addresses (see table 1). If program [3] Interrupt Enable compatibility is required, the value written o Interrupts not enabled. Channel Priority Register (CPR) at the normal IVR address should have a 1 Enable interrupts. An interrupt reo This register serves no function in the zero as its LSB, and the value written at quest is generated if the channel DMAI. It is included only to provide com· the error IVR address should be the same operation complete bit in the CSR patiblity with the programming for the but with the LSB equal to one. is set. When the IACKN input is other 68K family DMA controllers. asserted, the DMAI returns the nor· OPERATION mal interrupt vector if the error bit Memory Address Counter A DMAI operation proceeds In three princi· in the CSR is not set, or the error (MACH, MACMH, MACML, MACL) pal phases. During the initialization phase, interrupt vector if error is set. The 32·bit memory address counter is the MPU configures the channel control used to program the memory location registers, loads the initial memory ad· Channel Status Register (CSR) where the first operand to be transferred dress and transfer count, and starts the A read of this register provides the status is located or is to be transferred to, channel. During the transfer phase, the of the OM AI. The COC, NOT, and ERR bits DMAI accepts requests for transfers from depending on the direction of transfer. can be cleared by writing a '1' to the bit the device, arbitrates for and acquires The counter must be initialized prior to positions of the register which are to be ownership of the bus, and provides for ad· beginning the transfer of a block of data cleared. Those bit positions which are and then increments automatically de· dressing and bus controls for the trans· written with a '0' remain unaffected. fers. The termination phase occurs after pending on the operand length, as de· [15] Channel Operation Complete. This bit scribed in the Operation Control Register the operation Is complete, when the DMAI is set following the termination, whether description. reports the status of the operation. 4·136 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'm""IIe1·'tJ Operation Initiation least one clock cycle. If another request is Bus Arbitration After having programmed the control reg- received before the first operand part of a Upon receiving a valid request for a trans- isters, the memory address counter, and former request is acknowledged, the sec- fer from the device, the DMAI will arbitrate the memory transfer counter, the MPU ond request is not recognized. Normally, for and obtain ownership of the system sets the start bit (CCR[7]). The DMAI ini- the DMAI will relinquish the bus after serv- bus. tiates the operation by clearing any pend- icing a valid request. However, if the The DMAI indicates that it wishes to ing requests, clearing the start bit, and device generates a new request before the become the bus master by asserting its setting the channel active bit in the CSR. DMAI asserts DTCN for the last operand bus request (BRN) output. This is a wire- The DMAI is then ready to receive valid re- part, the DMAI will retain ownership of the ORed signal that indicates to the MPU quests for an operation. bus and that request will be serviced that some external device requires control before the bus is relinquished. The channel cannot be started if any of the of the bus. The processor is effectively at internal status bits in the CSR (CSR[15:11]) Acknowledge (ACKN). The DMAI asserts a lower priority level than external devices have not been cleared. An error is not sig- the acknowledge line, which implicitly ad- and will relinquish the bus after it has naled if this condition occurs. The only dresses the device making the request, completed the last bus cycle it has indication of this state is that the start bit during transfers to and from the device. remains set in the CCR. A pending start cannot be reset by a write to the register. The line may be used to control buffering circuits between the data bus and the started. The processor puts the bus up for external arbitration by asserting its bus grant (BGN) output. This signal may be 4 START can be cleared only by the DMAI MPU bus. routed through a daisy chain (such as pro- when it starts operation or by setting the vided by the DMAI) or through some other Ready (RDYN). Ready is an active low in- software abort bit (CCR[4]). priority-encoded network. When the DMAI put which is asserted by the requesting Device/DMAI Communication device to indicate to the DMAI that valid making the bus request receives the bus Communication between the peripheral data has either been stored or put on the grant (indicated by its BGN input being device and the DMAI is accommodated by bus. If negated, it indicates that the data asserted), it is to be the next bus master. It five signal lines: has not been stored or presented, causing waits until address strobe (ASN), data the DMAI to enter wait states until RDYN transfer acknowledge (DTACKN) and bus Request (REQN). The device makes a re- grant acknowledge (BGACKN) become in- quest for service by asserting the request is asserted. RDYN can be held low contin- uously if the device is fast enough so that active and then assumes ownership of the line. The DMAI can operate in either the bus by asserting Its own BGACKN output. burst request mode or the cycle stealing wait states are not required. The current state of the ready input is reflected in The DMAI then negates the BRN output request mode, as programmed by the and proceeds with the data transfer external request mode bit (DCR[15]). CSR[8j. phase. After this phase is completed, the The burst mode allows a device to request Done (DON EN). Done is a bidirectional ac- DMAI relinquishes bus ownership by the transfer of multiple operands using tive low signal. As an output, it is asserted negating the BGACKN output. consecutive bus cycles. In this mode the and negated by the DMAI concurrent with In burst DMA mode, detection of an active request line is an active low input. The the ACKN output of the last operand part low request input after the DMAI opera- DMAI services the request by arbitrating to Indicate to the device that the memory tion has been started will begin the bus for the bus, obtaining the bus, and notify- transfer count is exhausted and that the arbitration cycle. However, if the device ing the peripheral by asserting the DMAI's operation is completed as a result negates its request at least one clock acknowledge (ACKN) output. If the re- of that transfer. cycle before the DMAI asserts BGACKN, quest line is active when the DMAI asserts The DMAI also monitors the state of the the DMAI will negate its bus request and ACKN, and remains active at least until the DMAI asserts device transfer com- line while acknowledging a device. If the will not assume ownership of the bus. plete (DTCN), the DMAI recognizes a valid device asserts DON EN, the DMAI will ter- Data Transfers request for another operand, which will be minate operation after the transfer of the The actual transfer of data between the transferred during the next bus cycle. If current operand. In this case the DMAI memory and the device occurs during the the request line is negated before the clears the channel active bit and sets the data transfer phase. All transfers occur DMAI asserts DTCN, the DMAI relin- channel operation complete and normal during a single cycle except in the case of quishes the bus and waits for the next re- device termination bits in the CSR. If both long word operands, in which case two quest. For long word transfers (2 x 16), the the DMAI and the device assert DON EN, cycles are used to transfer the operand as request must be asserted at least until the the device termination is not recognized, two 16-bit words. The transfers take place acknowledge for the second part of the but the operation does terminate. using a 'single address' protocol; the operand has been asserted. Device Transfer Complete (DTCN). DTCN DMAI addresses the memory via the bus is an active low output which is asserted address lines, while the device is implicit- In the cycle steal mode, the device re- by the DMAI to indicate to the device that ly addressed via the acknowledge output. quests an operand transfer by generating a falling edge on the request line. The the requested data transfer is complete. When a request is generated using the re- DMAI services the request by arbitrating On a write to memory operation, it indi- quest method programmed in the control for the bus, obtaining the bus, and notify- cates that the data provided by the device register, the DMAI obtains the bus and ing the peripheral by asserting the has been successfully stored. On a read asserts acknowledge to notify the device acknowledge (ACKN) output. The request from memory operation, it indicates to the that a transfer is to take place. The DMAI line must be In the inactive state for at device that the data from memory is pres- asserts all S68000 bus control signals least one clock cycle before a request is ent on the data bus and should be latched. needed for the transfer and holds them made. After a request has been asserted, DTCN is not asserted if assertion of the until the device responds with ready. The it must remain at the assertion level for at RERUNN input terminates the bus cycle. bus cycle then terminates normally. Ready Signetics 4·137 MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'm",,""·'" may be tied low (asserted) if the device is DONEN,the device termination is not rec- count minus one of the attempted trans- fast enough. ognized, but the operation does terminate. fer. The memory address counter will con- tain the address at which the DMA opera- When the transfer is from memory to the Software Abort. The software abort bit tion was attempted. device, data is valid when DTACKN is (CCR[4]) allows the MPU to abort the cur- asserted by the memory and remains valid rent operation of the DMAI. The COC and Reset. The reset input (RESETN) provides until the data strobe(s) are negated. The error bits in the CSR are set, the channel a means of resetting and initializing the assertion of DTCN from the DMAI can be active bit in the CSR is cleared, and an DMAI from an external source. If the DMAI used to latch the data, as the data strobes abort error condition is signaled in the is a bus master when reset is received, the are not removed until one-half clock after CER. OM AI relinquishes the bus. Reset clears the assertion of DTCN. the control and error registers, sets all bits Rerun Error. The DMAI provides a rerun in- of the status register except CSR[8] to When the transfer is from device to put (RERUNN) to indicate a bus exception memory, the data must be valid on the bus zero, and initializes the interrupt vector condition. RERUNN must arrive prior to or before the DMAI asserts the data register to H 'OF'. in coincidence with DTACKN in order to strobe(s). The device indicates valid data be recognized, and the OM AI verifies that by asserting ready. The DMAI then asserts the line has been stable for two clock Interrupts. The interrupt enable bit the strobes and holds them asserted until cycles before acting on it. The occurrence (CCR[3]) determines whether the DMAI the memory accepts the data, indicated by of a rerun during a DMAI bus cycle forces generates interrupt requests. When the bit the assertion of DTACKN. The DMAI then it to terminate the bus cycle in an orderly is set, an interrupt request is generated if asserts DTCN and negates the data manner. the channel operation complete bit in the strobes. CSR is set. When the IACKN input is When the assertion of rerun is verified, the asserted, and the DMAI has an interrupt Flow charts for these operations are DMAI stops operation and three-states the request pending, the DMAI returns an shown in figures 1 and 2. Refer to the tim- data, address, and control lines, except interrupt vector on the data bus. ing section for the equivalent timing BGACKN, so that it retains ownership of diagrams. the bus. It remains halted until rerun The interrupt vector issued is the contents becomes inactive, and then re-tries the of the IVR. Only the seven most signifi- Operation Termination last bus cycle. If rerun is asserted again, cant bits of the programmed value are Termination of the block transfer occurs the OM AI stops DMA operation, releases used by the DMAI. The vector from the under the conditions detailed below. the bus, sets the error and COC bits in the DMAI contains a zero in the LSB position CSR, clears the active bit in the CSR, and if a normal termination occurred (error bit Terminal Count. As part of each transfer of not set) and contains a one in the LSB an operand, the DMAI decrements the sets the error code in the CER to indicate a bus error. position if termination was due to an error memory transfer counter. If this counter is (error bit set). decremented to zero, the operand is the While stopped due to assertion of rerun, last operand of the block. The DMAI opera- the DMAI does not generate any bus The contents of this register are initialized tion is complete and it notifies the device cycles and will not honor any requests to H 'OF' by a reset. The value returned of completion by asserting the DONEN until it is removed. However, the OM AI still will be H' OF', regardless of the error output during the last operand transfer state, until the register is programmed by recognizes requests. cycle. When the transfer has been com- the MPU. pleted, the channel active bit in the CSR is Error Recovery Procedure. If an error oc- curs during a DMA transfer such that the To provide compatibility with the other cleared and the COC bit is set. 68K family DMA controllers, the IVR has DMAI stops the DMA operation, informa- Device Termination. The DMAI monitors tion is available to the operating system two addresses (see table 1). 11 program the state of the DONEN line while acknow- for an error recovery routine. compatibility is required, the value written ledging a device transfer request. If the at the normal IVR address should have a device asserts DON EN, the DMAI will ter- The information available to the operating zero as its LSB, and the val ue written at minate operation after the transfer of the system consists of the memory address the error IVR address should be the same current operand. When the transfer has counter, the memory transfer counter, and but with the LSB equal to one. been completed, the DMAI clears the the control, status, and error registers. channel active bit and sets the COC and The DMAI decrements the memory trans- APPLICATIONS normal device termination bits in the CSR. fer counter before attempting a DMA oper- Figure 3 illustrates a typical interconnec- If both the DMAI and the device assert ation, so the register will contain the tion of the DMAI in a 68000 based system. 4·138 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'pmll,,"".'ij DMAI MEMORY DEVICE DMAI MEMORY DEVICE + Initiate Request 1. Assert REON • Initiate Request 1. Assert REON I I I + Bus Acquire Acquire Bus t • Address Memory 1. Set RWN to read 2. Place address on A1-A23 Address Memory 1. Set RWN to write 2. Place address on A1-A23 3. Assert ASN 4 3. Assert ASN 4. Assert ACKN 4. Assert UDSN andlor LDSN 5. Assert ACKN I I t Present Data • 1. Place data on Present Data data bus 1. Decode address 2. Assert RDYN 2. Place data on data bus I 3. Assert DTACKN I t Enable Data t Acquire Data 1. Assert UDSN andlor LDSN 1. Load data I 2. Assert RDYN I Acquire Data 1. Decode address • Terminate Transfer 1. Assert DTCN 2. Negate UDSN andlor LDSN 2. Load data 3. Assert DTACKN I and ASN 3. Negate ACKN and DTCN + Terminate Transfer I 1. Assert DTCN 2. Negate UDSN andlor LDSN and ASN Terminate Cycle 3. Negate ACKN and DTCN 1. Negate DTACKN I I t Terminate Cycle + 1. Negate DT ACKN Relinquish Bus I I or + Relinquish Bus + Start Next Cycle + or t + Cycle Start Next Figure 1. Transfer from Memory to Device Flow Chart Figure 2. Transfer from Device to Memory Flow Chart Signetics 4·139 MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SC868430 .tmlll"II,I.I" ~WN ~--------~------------------~ 00-015 A8-A23 A1-A7 68000 CONTROL LINES Figure 3. DMAI Application ABSOLUTE MAXIMUM RATINGS1 PARAMETER RATING UNIT Supply voltages Vcc and Vee -0.5 to +7.0 V Input voltage -0.5 to +5.5 V Operating temperature range2 o to +70 ·C Storage temperature -65 to + 150 ·C DC ELECTRICAL CHARACTERISTICS Vcc =5.0V ±5%, Vee= 1.5V ± 10%, TA=O·C to + 70·C3.4 LIMITS PARAMETER TEST CONDITIONS UNIT Min Max VIL Input low voltage 0.8 V VIH Input high voltage 2.0 V VOL Output low voltage IOUT=4mA 0.4 V IOUT=8mA 0.5 V VOH Output high voltage, lOUT = - 4OOl'A 2.5 V all outputs except open collector outputs5 IlL Input low current VIN =0.4V -400 I'A IIH Input high current VIN=2.7V 20 "A loc Open collector off state current 5 VouT=2.4V 20 "A Isc Output short circuit current6 Vcc= max -40 -100 mA Icc Vee supply current 130 mA Vcc= max, Vee= max 450 mA lee Vee supply current NOTES: 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. ThIs is stress rating only and functional operation of the device at these or at any other conditions other than those indicated in the Electrical Characteristics section of this data sheet is not implied. 2. For operating at elevated temperatures, the device must be derated based on + 150°C maximum junction temperature. 3. Parameters are valid over specified temperature range. 4. All voltage measurements are referenced to ground (VSs). For testing, all signals swing between 0.4V and 2.4V with a tranSition time of 20ns maximum. All time measurements are referenced at Input voltages of O.BV and 2.0V as appropriate. 5. IRaN, BRN, DON EN, and OWNN are open collector outputs. 6. No more than one output should be connected to ground at one time. 4·140 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'W""lIeI.lij AC ELECTRICAL CHARACTERISTICS Vee = 5.0V ± 5%, Vss= 1.5V ± 10%, TA=O·C to + 70·C3,4 TENTATIVE LIMITS NO. FIGURE CHARACTERISTIC 8MHz 10MHz UNIT Min Max Min Max 1 4 A1-A7, ASN, RWN setup to UDSN, lOSN low 0 ns 2 4 00-015 3-state to invalid data from ASN, CSN,and UOSN or lOSN low 10 ns 3 4 OTACKN 3-state to high from ASN, CSN,and UOSN or lOSN low 10 ns 4 4 CSN low after UOSN or lOSN low 25 ns 5 4, 5 OBENN low after ASN and CSN low 45 ns 6 4 00-015 valid data from ASN, CSN, and UOSN or lOSN low 95 ns 7 4 OTACKN low after 00-015 valid data 0 30 ns 8 4 A1-A7, ASN, RWN or CSN hold after UOSN and lOSN high 0 ns 9 4, 5 OBENN high from either ASN or CSN high 45 ns 10 11 12 4 4 4, 5 00-015 to 3·state from UOSN and lOSN high 00-015 to invalid data from UOSN and lOSN high OTACKN high from UOSN and lOSN high 10 80 55 ns ns ns 4 13 4, 5 OTACK 3-state from either CSN or ASN high 85 ns 14 5 A1-A7, ASN, RWN setup to UOSN, lOSN low 50 ns 15 5 CSN setup before UOSN or lOSN low 20 ns 16 5 OTACKN 3-state to high after CSN and ASN low 10 ns 17 5 00-015 valid after UOSN or lOSN low 35 ns 18 5 OTACKN low from UOSN or lOSN low 100 ns 19 5 UOSN and lOSN low time 95 ns 20 5 A1-A7 hold after UOSN and lOSN high 0 ns 21 5 ASN, RWN and CSN hold after UOSN and lOSN high 0 ns 22 5 00-015 hold after UOSN and lOSN high 0 ns 23 6 OBENN low from last low of ASN, IACKN, lOSN 65 ns 24 6 00-07 valid after last low of ASN, IACKN, lOSN 100 ns 25 6 OTACKN 3-state to high after last low of ASN, IACKN, lOSN 100 ns 26 6 OTACKN low after last low of ASN, IACKN, lOSN 110 ns 27 6 OBENN high after first high of ASN, IACKN, lOSN 50 ns 28 6 00-07 hold after first high of ASN, IACKN, lOSN 60 ns 29 6 00-07 3-state after first high of ASN, IACKN, lOSN 80 ns 30 6 OTACKN high after first high of ASN, IACKN, lOSN 60 ns 31 6 OTACKN 3-state after first high of ASN, IACKN, lOSN 95 ns 32 7 BRN high from ClK high 45 ns 33 7,10,11 BGACKN low from ClK low 75 ns 34 7, 10, 11 OWNN low from ClK high 55 ns 35 7 BGACKN high from ClK low 75 ns 36 7 OWNN high from ClK high (load dependent) 37 9 REQN setup before ClK low 30 ns 38 9 REQN hold after ClK high 20 ns 39 9 BRN low from ClK high 75 ns 41 10,11 ASN, UOSN, lOSN, RWN 3-state to high from ClK low 75 ns 43 10,11 A1-A23 3-state to valid from ClK high 85 ns 44 10,11 ASN low from ClK high 50 ns 45 10,11 lOSN, UOSN low from ClK high 60 ns 46 10,11 ACKN low from ClK high 55 ns 47 10, 11 OTACKN setup to ClK high 30 ns 48 10,11 ROYN setup to ClK low 30 ns 49 10,11 OTCN low from ClK high 55 ns 50 10,11 ASN high from ClK high 75 ns 51 10, 11 LDSN, UOSN high from ClK high 90 ns 52 10,11 OTACKN, ROYN hold after ClK high 0 ns - 10,11 ASN, lOSN, UOSN high from OTCN low 0 ns 53 10, 11 ACKN high from ClK high 50 ns 54 10, 11 OTCN high from ClK high 50 ns 55 10,11 Address valid after ClK low 10 ns - 10,11 Address valid after ASN high 0 ns 56 10,11 OONEN (output) low from ClK low 120 ns Signetics 4·141 MICROPROCESSOR DIVISION JANUARY ·1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'mn,,""·'fI AC ELECTRICAL CHARACTERISTICS (Continued) TENTATIVE LIMITS NO. FIGURE CHARACTERISTIC 8MHz 10MHz UNIT Min Max Min Max 57 10,11 DONEN (output) high from CLK high 50 ns 58 10,11 DON EN (input) setup low before CLK low 30 ns 59 10,11 DONEN (input) hold low after CLK high 0 ns 60 10,11 BGACKN, ASN, UDSN, LDSN, RWN to 3·state from CLK low 75 ns 61 10,11 OWNN high from CLK high 50 ns 62 10, 11 A1-A23 valid to 3·state from CLK high 100 ns 63 11 R/WN low from CLK high 50 ns 64 11 R/WN high from CLK high 75 ns 65 12 RERUNN setup low before CLK high 30 ns 66 12 RERUNN hold low from CLK high 20 ns 67 12 A1-A23 to idle state from CLK low , 100 ns 68 12 A1-A23 to valid after CLK low I 85 ns A1-A7 ---t~ __________~ll----- ASN --i'-I------~I ),.--- AWN ____~~------------------------~--------- I Figure 4. DMAI Read Timing 4·142 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 A1-A7 ----iti..-----:,-I_ _ _ _-:-1-J+~- ASN 111 I I tr-- ~1--1~@~ RWN =~~---,'I® r- I f~- ~ UDSN ----:--II h \ I I I@r---II I- tl ti----'-i 4 LDSN I t i tJ ~ DBENN I I -\- --II- - ~I -1H® 00-015 ----'-1---'--1---.'t 11""';-1--- DTACKN I ~ -------.j~@~,J- \ iH-® ff'------ =--i@~ Figure 5. DMAI Write Timing Signetics 4-143 MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 ':a"..IId.i'i Al-A7 - - ( ' -_ _ _ _ _ _ _ _ _ _ _ _ _ -I)- ASN \ I ~ 1 __ f ---JI/~ IACKN \ RWN I I I OWNN UOSN LOSN I \'-:----------'1 I ,--- 1 I ~ 't=r- OBENN 00-07 DTACKN ~ '\I- ~ I- Figure 8. CPU lACK Cycle to DMAI 4·144 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'm""IIe1.iij ClK SLflJ ~ V1 m lJlJlSL BRN " _ _ _ _ _J;;;...2 ....J~~ ~~--«l~- - - - - \...-----__ ----"""'-Ix -1~ n l~ , r ACKN ---~ l r------~- DTACKN RDYN - - - - - - - - \~ ref'lL1 ',--------,I u,...---- DTCN --------J----bJ1 1~ ',--------,I DONEN(OUT) ~~ ------------------,1 lr-® r-- \ ~ DONEN(IN) ----------------~ r1 \lJJ r-~_59_ _ __ Figure 10. Read from Memory, Write to Device NOTE: 1. 16-bit transfer illustrated. For a-bit transfer either LDSN or UDSN, but not both, will be asserted each cycle, depending on byte address. 4·148 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 'BfA"eI"".'lj ClK BGACKN 1~ I; 1\ II lr-® ASN II J\ I f--@ t It \ rn 1~ ~ \ Q1~ UDSN --1~ 1\ I~ t 4 fflI' lDSN I} \ I~ RWN OWNN ®-1r~~ ~\@r- t -If-® \ ihY -lj® , Al-A23 ( X )- ACKN J\ I I I-@ 1~ n ,- DTACKN ~r \ t \ / ~~ RDYN ~r \ t \ / 1~ , DTCN LJj j~ 1 ~ DONEN(OUT) ~~ 1\ IKV DON EN (IN) @-1rLJj 1~ Figure 11. Write to Memory. Read from Device NOTE: 1. 16-blt transfer Illustrated. For B-blt transfer either LDSN or UDSN, but not both, will be asserted each cycle, depending on byte address. Signetics 4·149 MICROPROCESSOR DIVISION JANUARY 1983 DIRECT MEMORY ACCESS INTERFACE (DMAI) SCB68430 '.""II,I.'ii ClK BGACKN ASN \ / \ / L UOSN \ / \ / L lOSN \ / \ / L RWN OWNN - j r-® - j J--® Al·A23 (,--------:-,1~r--------,X / \ / L DTACKN \ / \ / \.. ROYN LJ LJ OTCN --1 LJ RERUNN --\\...:....1_65__1---<1 Figure 12. Rerun Asserted During Read from Memory, Write to Device NOTES: 1. 16-blt transfer Illustrated. For a·bit transfer either LDSN or UDSN, but not both, will be asserted each cycle, depending on byte address. 2. DMAI will release the bus after a RERUNN if there is no valid request. The next request will then retry the cycle which was terminated by the RERUNN signal. 3. RERUNN must be asserted no later than DTACKN and RDYN. 4. If a cycle is terminated by RERUNN, the transfer count will he one less than the actual data transferred correctly. The double RERUNN signal on the same cycle will ter- minate the DMAI operation with a status bit set and an Interrupt generated (if enabled). 4·150 Signetics MICROPROCESSOR DIVISION JANUARY 1983 MEMORY MANAGEMENT UNIT SCN68451 PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION FEATURES FUNCTIONAL DIAGRAM The SCN68451 Memory Management Unit • Separates address spaces of system (MMU) provides address translation and and user resources protection of the 16-megabyte addressing • Provides write protection A8-A23 space of the SCN68000. The MMU can be • Increases system reliability accessed by any potential bus master, such as instruction set processors, or • Provides efficient memory allocation A1-AS---+- DMA controllers. Each bus master (or pro- • Allows interprocess communication through shared resources :~o~_ cessor) in the SCN68000 family provides a function code and an address during each bus cycle. The function code specifies an • Simplifies programming model of ad· dress space R/W _ _ lMEMORY MANAGEMENT UNIT CONTROL address space while the address specifies Minimizes operating system overhead cs~ a location within that address space. The with quick context switches AS~ function codes are provided by the 32 segments with variable segment UDS SCN68000 to distinguish between program and data spaces as well as supervisor and user spaces. This separation of address sizes Multiple MMU system capability DTACK SCN68451 ) MULTIPLEXER CONTROL 4 spaces provides the basis of protection in • Supports both paging and segmentation an operating system. By simplifying the IRQ • DMA compatible } GLOBAL programming model of the address space, • Provides virtual memory support HANDSHAKE LINES the MMU also increases the reliability of a • SCN68000 bus compatible complex multiprocess system. BERR RESET eLK---+- FC1 MAPPING LOGICAL SEGMENTS TO PHYSICAL MEMORY Vcc---"" ~FC2 GNO----" ~FC3 READ ONLY READ ONLY A READI SHARED WRITE DATA UNDEFINED READ A ONLY B READ ONLY UNDEFINED READI WRITE READI PHYSICAL WRITE MEMORY LOGICAL ADDRESS SPACE Signetics 4·151 MICROPROCESSOR DIVISION JANUARY 1983 INTELLIGENT MULTIPLE DISK CONTROLLER (IMDC) SCN68454 PRODUCT BRIEF, contact your 5ignetics sales office for complete information. 00-015 BRN BGN BGACKN IRON IACKN RIWN DTACKN LDSN UDSN SCNB8454 The IMDe structure utilizes two IMDC ASN sophisticated processing interfaces-a Al,A2 host interface and a disk drive interface. CSN REDAT The host interface is compatible with the LOCAL SECTOR/INDEX 568000 bus. Included in this interface is a DDIR WRGATE complete OMA controller capable of OWNX WRCLOCK/RCLOCK handling all data transfers between the RERUN WRDAT host system memory and the drives con· RESN WRCLK nected to the IMDe. The disk drive inter· SCLK TICKLER face is designed to conform to different vee GND drive interface requirements, thus giving the IMOe the ability to control a variety of drive types. With a minimum of external hardware, it can control any drive that has an 5A1000 or 5eagate 5T500 drive inter· face standard. The IMOe also provides • Supports computer generated error direct support for double density track for· FEATURES • Combined control for hard disk and correction code mats and standard IBM track formats for • Control signals for external phase floppy disk floppy disks. locked loop - Any combination up to 4 drives - Built·ln logic for floppy disk back·up • Data rate up to 10Mbits per second Data transfers on the host data bus can be • Automatic bad sector handling programmed for either 8 or 16·bit parallel • Winchester disk Interface (SA1000 and ST500) • Single phase read and write clocks operation. The disk drive interface handles • 8/16·bit data bus a serial data rate up to 10Mbits per sec· • Supports MFM, FM and NRZ data for· mats • DMA control and transfer ond, a speed which accommodates the • High level commands • Soft sector and hard sector next generation of drives. · Supports programmable hard disk and standard IBM formats Controls Data transfer Programming of the IMOe is performed through a powerful set of high level in· · Supports linked, mapped and sequen· tial file structures Programmable real time record pro· cessing structions. A user can create the required drive interface by simply altering the con· ·· Multiple sector read/write Implied seek Diagnostics Error correction ·· tent of drive control memory storage areas. Included in the instruction set are Error correction up to 11 bits commands to format disks to user 32·blt and 4O·bit ECC codes, program· specification, multiple sector read/write mabie polynomials operations with implied seeks, diagnostics, and programmable real time record processing. The IMOe circuitry Is fully TTL compati· ble, operates with a single + 5 volt power supply and is contained in a 48 pin DIP package. 4·152 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DISK PHASE LOCKED LOOP (DPLL) SCB68459 PRODUCT BRIEF, contact your Signetics sales office for complete information. DESCRIPTION The VCO is a programmable oscillator pro· FEATURES The SCB68459 Disk Phase Locked Loop grammed via the use of an external capacitor. It functions as a current to fre· • On chip multiplexer for read/write data (DPLL) is a single chip bipolar digital! quency converter (or voltage to frequency and free-running clock analog circuit designed for hard disK and converter). The VCO provides a read/ • Circuit operates from a single + 5V floppy disk applications. This circuit of- supply fers high performance and reliability un- write clock to the SCN68454 IMDC. • Supports composite data rate of 20MHz matched by discrete design. It is ideally The prescaler is a divider. If FM modula· • Loop filter bendwidth of 2MHz suited for use with the SCN68454 Intelli- tion is used, the divider performs divide by • Supports MFM and FM modulation gent Multiple Disk Controller (IMDC). 2; if MFM then divide by 1. The prescaler • Phase detector with output presents the reference frequency TTL inputs The SCB68459 DPLL operates by producing to the phase detector. 50% duty cycle for inputs an oscillator frequency to match the fre· The data regenerator's main function is to Adjustable gain quency of an input signal f i. In this locked clean up the jittery input signals before No phase reversal at inputs condition, any slight change in fi (jitter) delivering it to the precompensation cir- Capture range not to exceed lock first appears as a change in phase be- range tween fi and the oscillator frequency. This phase shift then acts as an error signal to change the frequency of the local DPLL cuit. The precompensation circuit will advance or delay the pulse train before writing onto • Voitage·controlled·osclllator with Programmable oscillator 4 Fast slew rate oscillator to match f i. the disk in the form of composite data. Minimum drift due to temperature The precompensating algorithm is pro- Minimum phase jitter The DPLL architecture utilizes two inter- grammed onto the chip. Buffered output faces-a controller interface and a disk When the DPLL is used with the • Electrical isolation between digital drive interface. Included in the controller SCN68454 IMDC, the clock and data logic and high frequency analog circuit interface are data (read/write), clock (read/ separation and address mark detection • TTL compatible Inputs and outputs write), tickler (for internal multiplexing control) and other control signals. These are actually performed by the IMDC. • External loop gain control interface signals are connected directly to/from the SCN68454 IMDC. On the other hand, the disk interface consists of FUNCTIONAL PIN DIAGRAM primarily the data (read and write) and other control signals depending on disk type. For each disk type (i.e. SA1000 Win· chester, or floppy disk), one DPLL circuit can be used to support up to four drives. If a Winchester disk and a floppy disk are used, two DPLL circuits are required. WRDAT ____ XTAL1 The architecture of the DPLL is basically a WRCLK ........-- XTAL2 feedback system comprised of the follow- REDAT RCLOCKIWCLOCK EARLY DATA ing: TICKLER • Phase detector (comparator) CEN • Low pass filter and error amplifier • Voltage controlled oscillator (VCO) PRESCALEN WRITE DATA • Prescaler (or divider) READ DATA • Data regenerator Vee • Precompensation circuit GND VCO IN PUMP DOWN The phase detector compares the phase PUMP UP and frequency of the incoming signal with FREQPUMP the VCO frequency and generates an error ____ CAP1 voltage that is related to the phase and fre· CAP2 quency difference between the two CENTERFREQ signals. The low P;;lSS filter serves a dual function: first, by attenuating the high frequency er- ror components at the output of the phase comparator, it enhances the interference rejection characteristics; second, it pro- vides a short-term memory for the PLL and ensures a rapid recapture of the signal. Signetics 4·153 MICROPROCESSOR DIVISION JANUARY 1983 DUAL UNIVERSAL SERIAL COMMUNICATIONS CONTROLLER SCN68562 PRODUCT BRIEF, contact your Signetics sales office for complete information. DESCRIPTION DUSCC FUNCTIONAL PINOUT The Signetics SCN68562 Dual Universal Serial Communications Controller (DUSCC) is a single chip MOS·I.,SI com· munications device that provides two in· RXOA dependent, multi-protocol, full duplex 00-07 TXOA receiverltransmitter channels in a single Al-A6 TRXCA package. The DUSCC supports bit R/WN RTXCA OTACKN CTSAN/LCAN oriented and character oriented (byte CSN OCOAN/SYNINA count and byte control) synchronous data RESET RTXORQAN/GP01AN link controls as well as asynchronous pro· SCN68562 IRON ouscc TXOROAN/GP02AN/RTSAN tocols. The logic for both channels pro· IACKN vides formats, synchronization, and vali· RXOB TXOB dation for data transferred to and from the Xl/CLK TRXCB channel interface. X2/IOCN RTXCB vee CTSBN/LCBN The SCN68652 interfaces to the SCN68000 GNO DCDBNfSVNINB MPU via asynchronous bus control sig· RTXOROBN/GPOIBN nals and is capable of program polled, in· TX 0 ROB N/G P02BN/RTSB N terrupt driven, or DMA data transfers. RTXOAKAN/GPIIAN RTXOAKBN/GPllBN Each channel of the DUSCC consists of a TXOAKAN/GPI2AN receiver, a transmitter, a 16·bit multi· 48·PIN TXOAKBN/GPI2BN function counterltimer. a digital phase VERSION ONLY OleN locked loop (DPLL), a parity/CRC gen· OONEN erator and checker, and associated con· SYNOUTAN/RTSAN trol circuits. The operating mode and data SYNOUTBN/RTSBN format of each channel can be pro· grammed independently. The two chan· nels share a common bit rate generator (BRG), operating directly from a crystal or an external clock, which provides sixteen common bit rates simultaneously. The address), transmitter parameter and tim· FEATURES receiver and transmitter of each channel ing registers, receiver parameter and tim- can independently select its operating ing registers, two counter/timer preset General Features rate from the BRG, the DPLL, the registers, two counter/timer value • Dual full-duplex synchronous/asyn. counter/timer, or from an external 1x or registers, counter/timer control register, chronous receiver and transmitter 16x clock. making the DUSCC well suited output and rniscellaneous register, pin • Multi'protocol operation for dual speed channel applications. configuration register, channel command BOP: HDLC/ADCCP, SDLC, SDLC register, TxFIFO, RxFIFO, three status loop, X.25 or X.75 link level, etc. The transmitter and receiver each contain registers, and interrupt enable and priority COP: BISYNC, DDCMP, X.21 a four-deep FIFO with appended com· registers. ASYNC: 5·8 bits plus parity mand and status bits and a shift register. • Four character receiver and transmitter This permits reading and writing of up to Associated with the logic for both chan- FIFOs four characters at a time, minimizing the nels is an interrupt control register and a • Programmable bit rate for eaCh. potential of receiver overrun or transmitter general status register that can be read receiver and transmitter selectable underrun, and reducing interrupt or DMA through either channel. A modified vector from: overhead. In addition, a flow control register, read through channel B, contains 16 fixed rates: 50 to 38.4K baud capability is provided to disable a remote the programmed interrupt vector with One user defined rate derived from transmitter when the FIFO of the local three bits of prioritized encoded status in- programmable counter/timer receiving device is full. serted. An unmodified vector register, External 1x or 16x clock read through channel A, contains the vec- Digital phase locked loop Two modem control inputs (DCD and CTS) tor as programmed. The vector is pro- • Parity and FCS (LRC or CRC) genera· are monitored by the control logic and grammed by writing to the vector register tion and checking three modem control outputs (RTS and through channel A or B and can be pro- • Programmable data encoding/ two general purpose) are controlled by the grammed to be output on the data bus in decoding: NRZ, NRZI,FMO, FM1, Man· CPU. All of the modem control inputs and response to receipt of an interrupt chester outputs are general purpose in nature and acknowledge cycle. • Programmable channel mode: full/half optionally can be used for functions other duplex, autoecho, or local loopback than modem control. There are two versions of the DUSCC. The • Programmable data transfer mode: standard version is packaged in a 48·pin polled, interrupt, DMA, wait The register set for each channel includes DIP. A 40-pin version provides all of the • DMA interface two mode registers, two SYN registers features, but is limited to dual·address Compatible with 568000 DMA (also used for the BOP secondary transfers during DMA operation. controllers 4-154 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL UNIVERSAL SERIAL COMMUNICATIONS CONTROLLER SCN68562 Hall or full duplex operation • Up to two stop bits programmable in • Parity, FCS, overrun, and underrun er· Single or dual address data 1/16 bit increments ror detection transfers • 1x or 16x Rx and Tx clock lactors Automatic frame termination on • Parity, overrun, and Iraming error Bit Oriented Protocol Features terminal count or DMA 'DONE' detection • Character length: 5 to 8 bits with 0 to 7 • Interrupt capabilities • False start bit detection bits residual character Interrupt daisy chain option • Start bit search 112 bit time alter Iram· • Detection 01 received residual Interrupt vector output (fixed or ing error detection character: 0·7 bits modified by status) • Break generation with handshake lor • Automatic switch to programmed Programmable internal priorities counting break characters character length lor I lield 68K, 8080/85, and 8086/88 compatl· • Detection 01 start and end 01 received • Zero insertion and deletion ble modes break • Optional opening PAD transmission at • Multi·function programmable 16·bit • Character compare with optional inter· beginning 01 Irame counterltlmer rupt • Detection and generation of FLAG, Bit rate generator ABORT, and IDLE bit patterns Event counter Count characters received or Character Oriented Protocol Features • Detection and generation of shared (single) FLAG between Irames 4 transmitted • Detection 01 overlapping (shared zero) Delay generator • Character length: 5 to 8 bits • Odd or even parity, no parity, or lorce FLAGs Automatic bit length measurement • ABORT, ABORT·FLAGs, or FCS·FLAGs parity • Modem controls line fill on underrun RTS, CTS, DCD, and up to four • LRC or CRC generation and checking • Optional opening PAD transmission at • Idle in MARK or FLAGs general purpose I/O pins per chan· • Secondary address recognition in· nel beginning 01 Irame • Optional auto hunt mode and closing cluding group and global address CTS and DCD are programmable • Single or dual octet secondary address PAD check alter EOT or NAK auto·enables for Tx and Rx • Extended address and control fields Programmable interrupt on change • One or two SYN characters • External sync capability • Short frame rejection for receiver of CTSor DCD • Detection and notification of received • SYN detection and optional stripping • On·chip oscillator for crystal end of message (all or leading SYNs only) • TTL compatible • CRC generation and checking • SYN or MARK linenll on underrun • Single + 5V power supply • SDLC loop mode capability • Idle in MARK or SYNs • 4O/48·pin DIP • Handling 01 EBCDIC and ASCII BISYNC text messages, including CRC Asynchronous Mode Features generation, SYN and OLE stripping, • Character length: 5 to 8 bits end·ol·message detection, and trans· • Odd or even parity, no parity, or lorce parent mode switching. Automatic in parity receive and semi·automatic in transmit Signetics 4·155 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN68681 'm",,""··,., FEATURES PIN CONFIGURATION DESCRIPTION The Signetics SCN68681 Dual Univer- • S68000 bus compatible sal Asynchronous Receiver/Transmitter • Dual full·duplex asynchronous receiver/ (DUART) is a single chip MOS-LSI commu- transmiter nications device that provides two inde- • Quadruple buffered receiver data regis' vee pendent full-duplex asynchronous ters IP4 receiver/transmitter channels in a single • Programmable data format IPS package. It is compatible with other -S to 8 data bits plus parity S68000 family devices, and can also inter- IACKN -Odd, even, no parity or force parity face easily with other microprocessors. IP2 -1, 1.S or 2 stop bits programmable in The DUART can be used in polled or inter- 1116 bit increments CSN rupt driven systems. • Programmable baud rate for each reo RESETN The operating mode and data format of ceiver and transmiter selectable from: X2 each channel can be programmed inde- -18 fixed rates: SO to 38.4K baud pendently. Additionally, each receiver and -One user defined rate derived from XllCLK transmitter can select its operating speed programmable timer/counter RxDB RxOA as one of eighteen fixed baud rates, a 16x - External 1x or 16x clock TxDB TxOA clock derived from a programmable • Parity, framing, and overrun error detec· counter/timer, or an external 1x or 16x OP1 OPO tion clock. The baud rate generator and OP3 OP2 • False start bit detection counter/timer can operate directly from a OPS OP4 crystal or from external clock inputs. The • Line break detection and generation OP7 OP6 ability to independently program the • Programmable channel mode operating speed of the receiver and trans- -Normal (full duplex) 01 DO mitter make the DUART particularly attrac· -Automatic echo 03 02 tive for dual-speed channel applications - Local loopback OS 04 such as clustered terminal systems. - Remote loop back 07 06 Each receiver is quadruply buffered to • Multi·function programmable 16·bit minimize the potential of receiver overrun counterltimer GNO INTRN or to reduce interrupt overhead in inter- • Multi·function 6·bit input port -Can serve as clock or control Inputs TOP VIEW rupt driven systems. In addition, a flow control capability is provided to disable a -Change of state detection on four remote DUART transmitter when the buf· inputs fer of the receiving device is full. • Multi·function 8-bit output port -Output port can be configured to pro· -Individual bit set/reset capability vide a total of up to six separate wire· Also provided on the SCN68681 are a mUl- OR'able interrupt outputs tipurpose 6-bit input port and a mUltipur- -Outputs can be programmed to be pose 8-bit output port. These can be used status/interrupt signals • Maximum data transfer: 1X - 1MB/sec, as general purpose I/O ports or can be • Versatile interrupt system 16X - 12SKB/sec assigned specific functions (such as clock -Single interrupt output with eight • Automatic wake·up mode for multidrop inputs or status/interrupt outputs) under maskable interrupting conditions applications program control. -Interrupt vector output on interrupt • Start·end break interrupt/status acknowledge • Detects break which originates in the middle of a character • On·chip crystal oscillator • TTL compatible • Single + SV power supply ORDERING CODE PACKAGES Vcc =SV:!:S%,T A =0°Ct070°C Ceramic DIP SCN68681 C1140 Plastic DIP SCN68681 C1 N40 4·156 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN68681 'm""iI"-"t BLOCK DIAGRAM r- ~ 8 I 00-07 < / BUS BUFFER K CHANNEL A j.;:::= r- TRANSMIT HOLDING REG TxDA RIWN OPERATION CONTROL ~ I-- TRANSMIT SHIFT REGISTER 4 RECEIVE DTACKN CSN • I ADDRESS DECODE I r--- HOLDING REG (3) RxDA RECEIVE I I 4/ A1-A4 ~ SHIFT REG / RESETN RIW CONTROL INTERRUPT BiBCRA SRA CONTROL 1- ~ INTRN CHANNEL B TxDB I IMR I (AS ABOVE) RxDB I ISR I IACKN I IVR I II> .... ., :::I INPUT PORT 0 ,,1-- c.... CHANGE OF ....0: z d !)(_ C S N - - - - . \ \ . -_ _ _ _ -.J/I OPO-OP7 _ _ _ _ _ _ _ _0_L_D_D_A_TA_ _ _ _ _ _ j__'r-J~ NEW DATA 4 ~ IpD f- Figure 5. Port Timing CSN (READOR~\ WRITE) ~ INTERRUPT OUTPUT' _=-~-----J-+r- I- "R *INTRN or OP3-0P7 when used as interrupt outputs. Figure 6. Interrupt Timing +5V CLOCK , . . - - - - i : ) o - - - _ T O OTHER CHIPS 74LS04 CI: 10-15pF + (STRAY < 5pF) C2: 0-5pF + (STRAY < 5pF) . . - - -....- - i X I XlICLK CT~;~ ___ -J TxC 68681 CJ L---+---tX2 3.6864MHz CRYSTAL SERIES RESISTANCE SHOULD BE LESS THAN 180 OHMS. Figure 7. Clock Timing Signetics 4·173 MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN68681 'm""",i.!,, (10~~~6L~~KS) ~ ---t TxC (INPUT) h. -"~ll----_~ Txc_jOo.f-- 'i (1X OUTPUT) / Figure 8. Transmit Timing Figure 9. Receive Timing TxD TRANSMITTER ENABLED TxRDY (SR2) CSN (WRITE) CTSN1 (IPO) _ _ _- - ' I I ~~~~~L--------------------------------------------------------~~~----- =OPR(O) 1 = OPR(O) 1 NOTES 1. TIMING SHOWN FOR MR2(4) = 1. 2. TIMING SHOWN FOR MR2(5) = 1. Figure 10. Transmitter Timing 4·174 Signetics MICROPROCESSOR DIVISION JANUARY 1983 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SCN68681 'am""JleI.iti R,D RECEIVER ENABLED RxRDY (5RO) _ _ _ _ _ _ _--' FFULL (5R1) _ _ _ _ _ _ _ _ _ _ _ -I___________---' AxRDY/-------....., FFULL (OP4)2 CSN (READ) 4 ST~US~TA 01 -04-- " OVERRUN (5R4) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + ___...:;..---' RESET BY COMMAND RTS1 (OPO) OPR(O)=1 NOTES 1. TIMING SHOWN FOR MR1cn= I. 2. SHOWN FOR OPCR(4) = 1 AND MR1(6)=O. Figure 11. Receiver Timing MASTER STATION BIT9 BIT9 BIT9 IADD"! ,1 DO !oI L'I-:'_______-I:I-~--'-...1I-AD-D-#2...1i...J11 I I I TRAN5MITTER~' ENABLED I II T;;~~ I I \-1 -----;)----\11L..,;~\__----'11 " --------~,i r~'-------------- CSN (WRITE) MR1(4.3)= 11 ADDN1 MR1(2) =0 DO MR1(2)= 1 ADD#2 MR1(2)=1 PERIPHERAL STATION 18 IADD"! 1I : ... BIT 9 BIT 9 BIT 9 •• BIT 9 BIT 9 , LE~ II 'I- - - ' -DO-........ 10 1:: \~ I - .L....L...__"-' I 1-,- - - - - - - - - - - - - - - - - \ , ', . . -_ _ 1 ......_ ....... 10. .11 ~: RECEIVE.R I I I ENABlED _ _ _ _ _ _ _ _ _ _ _ _ _"-'_ _- ' I : R,RDY ~r-------' ~ :~:-LJr----------=--,Lt_ u-ttl------:-----::,~ MR1(4:3)", 11 ADD 1t1 ST~S ~TA STATUS DATA DO ADD#2 Figure 12. Wake up Mode Signetics 4·175 Section 5 Video Games Signetics MICROPROCESSOR DIVISION JANUARY 1983 UNIVERSAL SYNC GENERATOR (PAL) SCN2621 (PAU, SCN2622(NTSC) PRODUCT BRIEF, contact your Signetics sales offices for complete information. The Signetics SCN2621 Universal Sync The Signetics SCN2622 Universal Sync PIN CONFIGURATION Generator (USG) provides the timing and Generator (USG) provides the timing and control signals necessary for generating control signals necessary for generating and displaying TV video information in the and displaying TV video information in the PAL format. NTSC format. The USG accepts a single 3.55MHz input The USG accepts a single 3.5795MHz in- clock and generates various timing out- put clock and generates various timing puts including vertical, horizontal and outputs including vertical, horizontal, and composite blanking, composite sync and composite blanking, composite sync and color burst flag. Several auxiliary clock color burst flag. Several auxiliary clock outputs are also provided. outputs are also provided. The USG is pri- marily intended for use in microprocessor- The USG is primarily intended for use in controlled video games. A typical game microprocessor-controlled video games. A configuration consists of an SCN2622 typical game configuration consists of an USG, an SCN2650A microprocessor, an TOP VIEW SCN2621 USG, an SCN2650A micropro- SCN2636 Programmable Video Interface, a cessor, an SCN2636 Programmable Video 2616 16K ROM, and digital video summer interface, a 2616 16K ROM, and digital circuitry. The SCN2622 is constructed video summer circuitry. using Signetics silicon gate N-channel The SCN2621 is constructed using depletion load technology and operates Signetics silicon gate N-channel depletion load technology and operates from a from a single + 5 volt power supply. 5 Single +5 volt power supply. BLOCK DIAGRAM L-'::::;:::"'-J:===il-- VRST CBLANK VSR RESET ----------+----------+ CLOCK - - - - t L -_ _ --Ir--=~~~~~~~-l=~====~i==:: HORIZONTAL DECODER HRST CBF t - - - - - - - OE L-_________ j---=::t:~-PCK CK2 CK4 Signetics 5·1 MICROPROCESSOR DIVISION JANUARY 1983 PROGRAMMABLE VIDEO INTERFACE (PVI) SCN2636 PRODUCT BRIEF, contact your Signetics sales offices for complete information. The Signetics SCN2636 Programmable FEATURES PIN CONFIGURATION Video Interface (PVI) is intended for use in microprocessor-controlled game systems, • Four general-purpose, RAM-resident object modules and provides all of the common game cir- GND cuits on a single chip. Circuits are pro- • Object duplication permitting INTREQ generation of up to BD object Images vided for player inputs, background, mov- on the screen RIW ing objects, scoring, and audio signals. • 2BDns object resolution VRST A typical system configuration consists of • Object size and position under HRST five LSI circuits: a PVI, a 2616 16K ROM, a program control Digital Video Summer (DVS), a Universal • Programmable score Ci Sync Generator (USG), and an SCN2650A • Programmable sound C2 microprocessor. • Programmable background C3 Additional PVls as well as random logic • Eight programmable colors with OBJ/SCR can easily be interfaced to enhance game multiple brightness levels • 37-byte scratch pad memory A7 INTACK complexity. Since the system is micro- processor based, the actual game itself • Chip Enable outputs for system ROMs DO need not be "hardwired" into the system. and PROMs Vcc Dl Game definition is completely contained • 1/0 facilities for switch scanning and potentiometer Inputs At D2 in the ROM. To change games, one simply replaces one ROM with another. Each • Wire-OR expansion capability to Al0 D3 ROM can contain several games, depend- multiple PVls All D4 ing on game complexity and similarity • Forty-pin dual-In-line package CEl Ds between games. APPLICATIONS 0PACi( D6 The SCN2636 PVI is constructed using • Consumer programmable video games OPREQ D7 Signetics' silicon gate N·channel deple- • Arcade games CE2 SOUND tion load technology and operates from a • Simulators single +5 volt power supply. POT2 POT1 • Special purpose graphic displays • Home computer center TOP VIEW PVI BLOCK DIAGRAM BACK· GROUND SCORE CONTROL Ci C2 C3 Oi.i/SCR [~~~~~~g~~~~~ TIMING VRST AND ~':T CONTROL OPREQ PCK ~________~~~~~~========~========~====~========~~ ADDRESS BUS OPACK ANALOG TO INTERRUPT CHIP ENABLE DIGITAL DIGITAL CONTROL & DECODE SOUND CONVERTER STATUS POTl POT2 SOUND INTREQ INTACK 5·2 Signetics MICROPROCESSOR DIVISION JANUARY 1983 UNIVERSAL VIDEO INTERFACE (UVn SCN2637 PRODUCT BRIEF, contact your Signetics sales offices for complete Information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SCN2637 Universal Video Inter· lace (UVI), using a new design approach, • Four general purpose, RAM-resident enables a microprocessor based system to objects D2 be interfaced more efficiently with a color or • 280nsec object resolution D1 black and white television receiver or moni· • Object size and position under program control DO tor. For the first time, the SCN2637 UVI com· bines an object oriented approach with • Programmable multi-level sound and PAiiSE character generation (alphanumerics or oth· noise generators er displayable forms) plus RAM·mapped • 16 characters per display row color graphics. • 13 or 26 character rows per screen • 40 alphanumeric characters The UVI's primary use is in microprocessor • 16 background characters controlled home computers or game sys· • 8 program definable characters tems, however, it may also be used in other • 64 graphics characters applications where the display of alphanu· • 8 programmable color codes meric and graphics data is desired. In par· • Chip enable outputs for I/O logic ticular, the UVI has been designed to require • 1/0 facilities for switch scanning and a minimum of support components thereby potentiometer (RC) Inputs co allowing a system configuration that is opti· • Operates with both U.S. and European C2 mized for the user's needs. The UVI reads data and operational com· mands from a memory and produces video standards • Single +5 volt power supply • Forty-pin package C1 Ci 5 SOUND signals that result in the generation of alpha· APPLICATIONS Riw numeric or graphics color TV displays. Many of the common display circuits have been VRST • Video games incorporated in a single chip, including: HRST • Home computers • Analog to digital converters which accept • Communications terminals potentiometer inputs • Educational systems • Alphanumeric and special character • Process control displays generators • Medical electronics • Moving object circuits • Audio signsl generators With the SCN2637, a typical system configur· ation consists of a UVI, a 2616/2632 ROM, an SCN2622 (NTSC) or SCN2621 (PAL) Universal Sync Generator (USG), an SCN2650 series microprocessor, four 2112 RAMs, and video summing circuitry. Additional UVls, Program· mabie Video Interfaces (PVls), as well as ran· dom logic can be interfaced to enhance game or system complexity. AID Block Internal Status Block The AID Block converts the analog potenti· The internal status block accumulates sta· UVI FUNCTIONAL DESCRIPTION ometer position information into binary data tus information which can be read by the The SCN2637 UVI Is a bus oriented device which can be read by the system's CPU. CPU; for example, collisions. with address and data busses controlling the Only two of the four potentiometers are ac· flow of data between the user's system and tive at any given time. Color Mux System the UVI (see block diagram). Both the address Address Block The color multiplexer generates the color and data busses are bidirectional. The address block provides chip enable out· codes for characters, objects, and screen. The basic clock frequency and the horizon· puts for external RAMs and 1/ 0 buffers. tal and vertical reset signals to the UVI drive Sound Block ROM Character Generator vertical and horizontal counters. The two The ROM character generator stores the counters provide the UVI with a Cartesian The sound block is a multi· level square wave character fonts. coordinate representation of the television generator sending out pulses at a user screen, i.e., each counter pair describes a programmable audio frequency. Random unique point on the screen. Typically these noise is also generated and can be mixed RAM clock and reset signals are provided by a with the audio frequency for simulating The 64 bytes of RAM stores eight pro· universal sync generator circuit. crowd noise, explosions, etc. grammable character I object fonts. Signetics 5-3 MICROPROCESSOR DIVISION JANUARY 1983 UNIVERSAL VIDEO INTERFACE (UVI) SCN2637 BLOCK DIAGRAM < 8·BIT BUS 00-07 ) VRSTD- HORIZONTAL HRST D- COUNTER, VERTICAL DMA ADDRESS BUS D SOUND 11-----------_0 SO COUNTER, TIMING AND PCLK D- DMACOUNTEA 1iIw g- '--------,-""""~~ PAUSE ADEN RJW §:= PROCESSOR HANDSHAKING LOGIC Y '(-" - - , IK v - - - - - - - - - - - - - ; RAM ADDRESS "i AND DATA BUS STATUS OF COLLISION r-- r.I........_ ... OPACK 0- r-------.,.rn OBJECT MODULE §3 POT4 1 pon AID BLOCK 2 PAGES 2 I POT2 5·BIT VIDEO BUS 32 BYTES 3 J POTI ~~:::~i~ BUFFER - L--J... ROM --. ~ C1 8= OPREQ ~) CHARACTER COLOR C2 ~ RCE ADDRESS I • GENERATOR MUX ~ CEI DECODER SYSTEM C3 CS 0- CO VIDEO) INTERNAL 8·BIT BUS < ADDRESS BUS AO-AS ) +5VOLTS GND o 0 5·4 Signe1ics MICROPROCESSOR DIVISION JANUARY 1983 MICROPROCESSOR SCN2650A PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SCN2650A devices are 8-bit • Static 8 bit parallel NMOS microproc- general purpose microprocessors con- essor SENSE , FLAG structed using Signetlcs N-channel sili- • Single power supply of +5 volts ADR12 2 Vcc con gate MOS technology. The SCN2650 • TTL level single phase clock series executes a fixed instruction set, • Tll compatible inputs and outputs ADRll 3 CLOCK with each instruction being one to three • Variable length instructions of 1, 2 or 3 ADR 10 4 PAUSE bytes in length. bytes OPACK ADR9 5 • 32K byte addressing range The SCN2650A contains a total of seven ADR& 6 RUNIWAIT • Coding efficiency with multiple ad- general purpose registers which may be dressing modes ADR7 7 INTACK used as a source or destination for arith- • Synchronous or asynchronous memory ADR& B DBUSO metic operations, as index registers, and and I/O interface for I/O memory transfers. An 8-level sub- ADR5 9 DBUS 1 • Interfaces directly with industry stan- routine return address stack is included dard memories ADR4 DBUS2 on the chip. • Single bit serial I/O path ADR3 " DBUS3 Addressing range of these processors is • Seven 8 bit addressable general pur- ADR2 DB US 4 32K bytes of memory and 258 ItO devices. pose registers ADRI A single level hardware vectored interrupt • Vectored Interrupt capability is provided. • Subroutine return address stack ADRO ADREN 25 DBUSEN 5 INTREQ 17 ADR 14-DIC 18 ADR 13-ElNE 19 TOP VIEW MICROPROCESSOR BLOCK DIAGRAM SUBROUTINE RETURN ADDRESS STACK .... 1.1"-------, <==> DATA BUS o II: !i: 8 !; ADDRESS BUS ~ o 110 CONTROL LINES READ, DECODING WRITE, AND INTERRUPT CONTROL AND STOP LOGIC TIMING CLOCK LOGIC Figure 1 Signetics 5-5 MICROPROCESSOR DIVISION JANUARY 1983 MICROPROCESSOR SCN2650A PIN DESIGNATION MNEMONIC NUMBER NAME TYPE FUNCTION ADRO-ADR12 14-2 Address lines 0 Low order memory address lines for Instruction or openind fetch. ADRO is the least significant bit and ADR12 is the most significant bit. ADRO through ADR7 sre also used as the 110 device sddress for extended 110 instructions. ADR13-E/RE 19 Address 13- 0 Low order memory page address line during memory reference Extended I Non extended Instructions. For 110 instructions this line discriminates between extended and non-extended 110 instructions. ADR14-D/~ 18 Address 14- 0 High order memory page address line during memory reference Dete I Control instructions. It also serves as the 110 device address for non-ex- tended 110 instructions. AfmER 15 Address enable I Active low input allowing 3-state control of the address bus ADRO- ADR12. DBUSO-DBUS7 33-28 Data bus 1/0 These lines provide communication between the CPU, Memory, and 110 devices for instruction and data transfers. ~ 25 Data bus enable I This active low input allows tri-state control of the data bus. OPREQ 24 Operation request 0 Indicates to external devices that all address, data and control information is valid. OPACK 38 Operation acknowledge I Active low input indicating completion of an external operation. This allows asynchronous functioning of external devices. MIlO 20 Memory I input-output 0 Indicates whether the current operation references memory or 1/0. R/W 23 Read I Write 0 Indicates a read or a write operation. WRP 22 Write pulse 0 This is a timing signal from the 8CN2650 that provides a positive· going pulse during each requested write operation (memory or 1/0) and a high level during read operations. SENSE 1 Sense I The sense bit in the PSU reflects the logic state of the sense input to the processor at pin # 1. FLAG 40 Flag 0 The flag bit in the PSU is tied to a latch that drives the flag output at pin #40. INTREQ 17 Interrupt request I This active low input line indicates to the processor that an external device is requesting service. The processor will recognize this sig- nal at the end of the current instruction if the interrupt inhibit status bit is zero. INTACK 34 Interrupt acknowledge 0 This line indicates that the 8CN2650 is ready to receive the interrupt vector (relative address byte) from the interrupting device. PAUSE 37 Pause I This active low input is used to suspend processor operation at the end of the current instruction. RUNIWAIT 35 Run/Wait 0 This output is a processor status indicator. During normal operation this line is high. If the processor is halted either by executing a halt Instruction or by a low input on the pause line, the runlwait line will go low. RESET 18 Reset I Resets the instruction address register to zero. Clears Interrupt inhibit. CLOCK 38 Clock I A positive going pulse train that determines the instruction execution time. VCC 39 +5V supply I +5V power GND 21 Ground I Ground 5-6 Signetics MICROPROCESSOR DIVISION JANUARY 1983 MICROPROCESSOR SCN2650A FUNCTIONAL DESCRIPTION instruction. The IR contents are decoded accessed. The operand address register The SCN2650 series processors are general and used in conjunction with the timing infor- stores operand addresses and sometimes purpose, single chip, fixed instruction set, mation to control the activation and contains intermediate results during effec- parallel 8-bit binary processors. A general sequencing of all the other elements on the tive address calculations. purpose processor can perform any data chip. The holding register is used in some The return address stack (RAS) is a last in, manipulations through execution of a stored multiple-byte instructions to contain further first out (LIFO) storage which receives the sequence of machine instructions. The proc- instruction information and partial absolute return address whenever a branch-to-sub- essor has been designed to closely resem- addresses. routine instruction is executed. When a re- ble conventional binary computers, but ex- turn instruction is executed, the RAS pro- The arithmetic logic unit (ALU) is used to ecutes variable length instructions of one to vides the last return address for the perform all of the data manipulation oper- three bytes in length. ations, including load, store, add, subtract, processor's IAR. The stack contains eight The SCN2650 series contains a total of seven AND, inclusive OR, exclusive OR, compare, levels of storage so that subroutines may be general purpose registers, each eight bits rotate, increment and decrement. It contains nested up to eight levels deep. The stack long. They may be used as source or desti- and controls the carry bit, the overflow bit, pOinter is a three bit wraparound counter nation for arithmetic operations, as index the interdigit carry and the condition code that indicates the next available level in the registers, and for 110 transfers. register. stack. It always points to the current ad- dress. The processor can address up to 32,768 The register stack contains six registers bytes of memory in four pages of 8, 192 that are organized into two banks of three PROGRAM STATUS WORD bytes each. The processor instructions are registers each. The register select bit picks one, two, or three bytes long, depending on the instruction. Variable length instructions one of the two banks to be accessed by instructions. In order to accommodate the The program status word (PSW) is a major feature of the SCN2650 which greatly in- creases its flexibility and processing power. 5 tend to conserve memory space since a register-to register instructions, register The PSW is a special purpose register within one-or-two byte instruction may often be zero (RO) is outside the array. Thus, register the processor that contains status and con- used rather than a three byte instruction. zero is always available along with one set trol bits. The first byte of each instruction always of three registers. specifies the operation to be performed and It is divided into two bytes called the pro- The address adder is used to increment the the addressing mode to be used. Most gram status upper (PSU) and program sta- instruction address and to calculate relative instructions use six of the first eight bits for tus lower (PSL). The PSW bits may be test- and indexed addresses. this purpose, with the remaining two bits ed, loaded, stored, preset, or cleared using forming the register field. Some instructions The instruction address register holds the the instructions which affect the PSW. The use the full eight bits as an operation code. address of the next instruction byte to be bits are utilized as shown in table 1. The data bus and address signals are tri- state to provide convenience in system de- sign. Memory and 110 interface signals are Table 1 PROGRAM STATUS WORD asynchronous so that direct memory access PSUO,l,2 SP Pointer for the return address stack. (DMA) and multiprocessor operations are PSU3,4 Not used. These bits are always zero. easy to implement. PSU5 II Used to inhibit recognition of additional Interrupts. PSU6 F Flag is a latch directly driving the flag output. The block diagram for the SCN2650 series PSU7 S Sense equals the state of the sense input. (figure 1) shows the major internal compo- nents and the data paths that interconnect PSLO C Carry stores any carry from the high-order bit of ALU. them. In order for the processor to execute an PSL1 COM Compare determines if a logical or arithmetic comparison is to be instruction, it performs the following general made. steps: PSL2 OVF Overflow is set if a two's complement overflow occurs. PSL3 WC With carry determines if the carry is used in arithmetic and rotate 1. The instruction address register provides instructions. an address for memory. PSL4 RS Register select identifies which bank of 3_GP registers is being used. 2. The first byte of an instruction is fetched PSL5 IDC Inter digit carry stores the bit-3 to bit-4 carry in arithmetic operations. from memory and stored in the instruction PSL6,7 CC Condition code is affected by compare, test and arithmetic instructions. register. 3. The instruction register (lR) is decoded to determine the type of instruction and the addressing mode. 4. If an operand from memory is required, the operand address is resolved and loaded into the operand address regis- ter. S Sense CC 1 Condition code one 5. The operand is fetched from memory and F Flag CCO Condition code zero the operation is executed. II Interrupt inhibit IDC Interdigit carry 6. The first byte of the next instruction is SP2 Stack pointer two RS Register bank select fetched. SP 1 Stack pOinter one WC With/without carry The instruction register holds the first by1e SPO Stack pOinter zero OVF Overflow of esch instruction and directs the subse- COM Logical arithmetic compare quent operations required to execute each C Carry / borrow Signetics 5·7 MICROPROCESSOR DIVISION JANUARY 1983 MICROPROCESSOR SCN2650A INPUT/OUTPUTINTERFACE be used for 1/0 operstions. When an instruc- the interrupt vector, on the dats bus. The The SCN2650 series microprocessor has a tion is executed, the addresB may be de- relstive snd relative indirect sddresslng set of versatile 1/0 Instructions and can per- coded by the 1/ 0 device rsther thsn mem- modes combined with this a-bit sddress sl- form 1/0 operations in a variety of ways_ One ory. low interrupt service routines to begin at sny and two byte I/O instructions are provided, as sddresssble memory locstion. well as a special single-bit 1/0 facility. The 1/0 MEMORY INTERFACE modes provided by the SCN2650 are desig- The memory interface consists of the ad- INSTRUCTION SET nated as data, control, and extended 1/0. dress bus, the a-bit data bus and several The 2650 instruction set consists of many signals that operate in an interlocked or powerful instructions which are all easily Data or control 1/0 Instructions, slso called handshaking mode. understood and are typical of iarger com- non-extended 110 instructions, are one byte The write pulse signal is designed to be puters. There are one-, two-, and three-byte long_ Any genersl purpose regiBter csn be used as s memory strobe signal for any instructions as a result of the multiplicity of used aathe source or destination. A special memory type. It hss been particularly opti- addressing modes. control line Indicates If either a data or con- mized to be used as the chip enable or Automstic incrementing or decrementing of trol instruction is being executed. read I write signal. sn index register is svsilsble in the Extended 1/ 0 is a two-byte read or write arithmetic indexed instructions. All of the INTERRUPT HANDLING instruction. Execution of an extended I/O branch instructions except indexed branch- instruction will cause an a-bit address, tak- CAPABILITY ing can be conditional. en from the second byte of the instruction, to The SCN2650 series has a single level hard- ware vectored interrupt capability. When an Reglster-Io-register instructions are one be placed on the low order eight address interrupt occurs, the processor finishes the byte; register-to-storage instructions sre lines. The dsta, which can originate or termi- current Instruction and sets the Interrupt in- two or three bytes long. The two-byte regis- nate with sny general purpose register, is hibit bit in the PSW. The processor then exe- ter-to-memory instructions are either imme- plsced on the data bUB. This type of 110 can cutes a branch to subroutine relative to ioca- diate or relative addressing types. be used to simultaneously select a device end send data to it. tion zero (ZBSRl Instruction and sends out in- terrupt acknowledge and operation request Memory reference instructions thst sddress signals. On receipt of the INTACK Signal, the data outside of physical memory may alBo interrupt device inputs an 8-blt address, 5·8 Signe1ics Section 6 Application Notes Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTERFACE TECHNIQUES FOR THE 2651 PCI AppNoteM22 INTRODUCTION The Signetics 2651 Programmable Commu- nications Interface (PCI) is a universal syn- chronous/asynchronous data communica- tions controller chip designed for I-----Ice-----! microcomputer systems. The 2651 accepts programmed instructions from a micro- processor and supports many serial data communication disciplines, synchronous and asynchronous, in the full or half-duplex mode. Although designed primarily to interface to a 2650 microprocessor, the 2651 can be easily integrated into systems employing other CPUs. This application note describes methods to interface the PCI to 80BOA, SC/MP, ZBO, BOB5, and 6800-based micro- computer systems. INTERFACE SIGNALS On-D7 DATA VALID BUS FLOATING (R~AD) _";";;'==+.1 The PCI interface signals can be grouped into two types: the CPU-related signals, IDFI- which interface the 2651 to the microproc- essor system, and the device-related sig- Figure 1. Read Write Timing Diagram nals, which are used to interface to the communications device or system. The functions of the CPU-related signals of 6 interest in this application note are detailed in Table 1. Timing signals for the CPU-PCI interface are illustrated in Figure 1, with relevant specifications summarized in Table 2. Table 1 CPU-RELATED INTERFACE SIGNALS PIN NAME PIN NO. INPUT/OUTPUT FUNCTION Al-Ao 10,12 I Address lines used to select internal PCI registers. RIW 13 I Read command when low, write command when high. CE 11 I Chip enable command. When low, indicates that control and data linestothe PCI are valid and that the operation specified by the R/W, A 1 and Ao inputs should be performed. When high, places the Do-D7 lines in the tri-state condition. 07-00 B,7,6,5, I/O B-bit, three-state data bus used to transfer commands, data and status between PCI 2,1,28,27 and the CPU. Do is the least significant bit; 07 the most significant bit. Table 2 AC ELECTRICAL CHARACTERISTICS FOR CPU INTERFACE SIGNALS LIMITS PARAMETER TEST CONDITIONSl UNIT Min Max teE Chip enable pulse width 300 ns Setup and hold time ns tAS Address setup 20 tAH Address hold 20 tcs RIW control setup 20 tCH R/W control hold 20 tos Data setup for write 225 tOH Data hold for write 0 tOD Data delay time for read CL - 100pF 250 ns tOF Data bus floating time for read CL = 100pF 150 ns NOTES 1. TA=O°Cto +70°C,VCC=5V ±5%. 2. Parametric values listed are from 2651 data sheet. Consult latest data sheet for possible changes to specifications. Signetics 6-1 MICROPROCESSOR DIVISION JANUARY 1983 INTERFACE TECHNIQUES FOR THE 2651 PCI AppNoteM22 2650 INTERFACE The 2651 is designed to interface directly to the 2650 microprocessor bus. The PCI may be addressed via the 2650 extended I/O instructions or it may be memory mapped, in which case it is addressed using the 2650 ADRO Ao memory reference instructions. As shown in ADR1 A1 Figure 2, the 2651 chip enable (CE) input is RIw RIW generated by "NAN Ding" OPREQ with the appropriate control signals (depending on the addressing mode used) and the higher g:~:- K / DBO-DB7 order address lines required to select the PCI. 2650 MliO "--"'0NOTE1 IJ.... NOTE 2 n-: NOTE3 2651 ,..",. / I I 8080A INTERFACE With regard to interfacing to the 2651, the ElNE OPREQ .... "'Y- 74LS CE major difference between a 2650 CPU and 1:1 NAND GATE an 8080A system consisting of an 8080A CPU, 8224 Clock Generator, and 8228/38 System Controller (Figure 3) is the absence ~ HIGH ORDER ADDRESS LINES FOR CHIP SELECT, AS REQUIRED of a combined read/write signal suitable for NOTES the 2651 RIW input. Instead, the 8080A sys- 1. Inverter required only if 2651 addressing Is by extended 1/0 instructlons(Wrlte, Read). tem provides separate lOR and lOW (or 2. This input required only if 2651 addressing is by extended 1/0 instructions and non- MEMR and MEMW) outputs which specify extended addressing is also used in the system. both the direction of data flow and the data 3. These inputs not required if all I/O addressing is memory mapped. transfer timing. The simplest way to accomplish the inter- face is to utilize an address line from the Figura 2. 2650·2651 Interface 8080A for the RIW input and to 'OR' the lOR and lOW (or MEMR and MEMW) signals for Table 3 PCI REGISTER ADDRESSING FOR 8080A INTERFACE ultimate use as the 2651 chip enable signal, as illustrated in Figure4. The only impact on OPERATION A2 (A/W) A1 AO REGISTER system design is that the software must 0 0 0 Receive Holding Register specify a different address to read the PCI 0 0 1 Status Register mode or command registers than to write READ 0 1 0 Mode Registers 1/2 the same registers. The selection of these 0 1 1 Command Register addresses must result in a '0' at the R/W input for read operations and a '1' for write 1 0 0 Transmit Holding Register operations. The resulting register address- 1 0 1 SYN1/SYN2/DLE Registers ing and function are summarized in Table 3. WRITE 1 1 0 Mode Registers 1/2 An analysis of the timing characteristics for 1 1 1 Command Register the recommended configuration shows that adequate margins exist to satisfy both the 2651 and the 8080A specifications at the minimum 8080A clock period of 480n8. The timing waveforms and calculations for the read and write cycles are shown in Figures 5 and 6. 6·2 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTERFACE TECHNIQUES FOR THE 2651 PCI AppNoteM22 GND -----!. Ao 25 Ao 20 26 +5V AI AI -5V~ A2 27 A2 26 26 +12V- A3 A3 30 A4 A4 31 AS AS 32 8080A At! At! 33 CPU A7 A7 ADDRESS BUS 34 A8 A8 13 35 SYSTEM DMA R E Q . - HOLD A9 At! 1 Al0 Al0 40 All All 37 SYSTEM INT. REQ.~ INT A12 A12 38 A13 A 13 18 39 INT. ENABLE INTE A14 A14 38 A15 A15 18 ViR 17 DBIN ~m-rL 14 15 HDLA 21 - 21 413 TANK OSC ~ 13 11 10 22 15 1/>1 DO ~-!! DB ~. DBO 6 -.!. 1/>2 Dl r!-- ~ ~. DBI 1/>2 (TTL) 8224 ~ WAIT D2 r!-- ----!! ~. DB2 RDYIN - 3 CLOCK GENERATOR DRIVER 4 23 READY D3 D4 f1--- ~ BI·DIRECTIONAL ~ ----! BUS DRIVER 8228/8238 ~ ~ DB3 DATA BUS ~C8 1 12 DB4 DS ~~ f1!- RESIN RESET DBs +12V ----;; 5 D8~........!! ~. DB8 +5V ---7 19 D7 ~ ----! -------- f!.-- GND - SYNC +5V~ 23 DB7 r STATUS STROBE GND~ 1 22 SYSTEM CONTROL 24 26 25 27 : : : } CONTROL BUS 1/0 R BUSEN UOW Figure 3. 8080A System Ao AI iVw < v DBg- DB7 2851 PCI -- MRI ~ MW) HIGHORDER ADDR ESB LINES { FORCH IPBELECT, AS REQUIRED . t?- CE 74 OR 74LS NAND GATES Figure 4. 8080A - 2651 Interface Signetics 6-3 MICROPROCESSOR DIVISION JANUARY 1983 INTERFACE TECHNIQUES FOR THE 2651 PCI AppNoteM22 1 Tl ----.1 T2 '1' T3 ----·1---- Tl-- ~1--J r--'\ ,~ ________ 1 \ ________- J1 \ _ _ _ _ _ _ _ _ (480) ~ ~ ~ ~ r---\ _ _ _ _ __ _ ~2---...Ji \ I \ \ J ~.280MI't.-~ 320 MAX __+-__,---l~MAX r-____________--- 25 MIN DBIN -------+------------1---------.J1 ~-- _ ~ 20MIN lOR --------+--------------..1 eo MAX r----------------- CE --------+-------------+--.1 _ OMIN 3O"i'iAX -3~:~ I An-AI5 X - 200MAX I- 480 MIN DATA FROM 2851 VALID _I j-30MAX -OMIN DATA FROM 8228 eoeoA DATA IN SPEC ~~ - I -150MIN ~ 1-(500R DELAY OF DBIN) MIN NOTES 1. All times in nanoseconds. 2. Delay from ¢2 of T1 to Ao. A1. RIW 200ns MaX} tAs, tes for 2651 Delay from cp2. of T1 to CE input 310n5 Min are satisfied 3. Delay from cp2. of T3 to Ao, A1, R/W changing 480n5 Min } tAH, tCH for 2651 Delay from rb2 of T3 to BE changing 200n5 Max are satisfied 4. Delay from cp2. of T1 to aDBDA data bus valid 690n5 Max} tOS1. tOS2 for Time from rp2 of T1 to SOSOA data required 810n5 Max aOeOA are satisfied Figure 5. 8080A - 2851 Read Timing 6-4 Signetics MICROPROCESSOR DIVISION JANUARY 1983 INTERFACE TECHNIQUES FOR THE 2651 PCI App Note M22 T1 ,I, T2 'I' T3 1 - T1--- (480) n n 1 2 J\ I \ I \ " I \ I - _ .5MIN 45 MAX ...ll!!!!. _ 45 MAX 1- 1 ~:~x- ·1- OMIN - 30MAX , \ r120MIN 883 MIN 5 X L- 1-183MIN- DATAFROM8080A VALID ~ DATAF ROM 8228 -5MIN - 40 MAX l- VALID - ii_)-- 5 MIN 40 MAX 21151 DATAINSPEC ~~ -1100;': I- I- 50MIN 6 NOTES 1. All times in nanoseconds. 4. Data available to 2651 prior to CE, therefore tos for 2651 is satisfied 2. Time prior to WR AQ, A1, RIW valid 683n5 Min} tAS, tes for 2651 5. Time after WR data avaitable at 2651 125n5 Min} tOH for 2651 Time after WR CE valid 5ns Min are satisfied Delay from WR to CE 75n5 Max is satisfied 3. Time after WR AQ, A" RIW valid 120n9 Min} tAH. tCH for 2651 Delay from WR to CE 75n5 Min are satisfied Figure 6. 8080A - 2651 Write Timing Z8D INTERFACE The zao CPU provides separate RD and WR signals to indicate read and write operations Ao respectively. In addition, an MREO signal A1 (for memory operations) or an 10RO signal (for I/O operations) are also provided. Al- RIW though the RD signal could logically be used as the R/W input for the 2651, with < DBO-DB7 either MREO or 10RO used as the CE input, 2851 as appropriate, the zao timing specifica- tions are such that the control hold time ....... MREQOR IORQ ~ .... specification (tCH) for the 2651 could not be L guaranteed. RFSHORMl HIGH ORDER { ADDRESS LINES FOR CHIP SELECT, : V- eE To overcome this problem, a technique utilizing an address line for the RIW input is AS REQUIRED recommended, as previously discussed for the aOaOA interface. 74 OR 74LS SERIES Inter/aces for memory mapped and I/O mapped operations are shown in Figure 7. NOTE: The M1 signal inhibits 2651 operation dur- MREQ, RFSH used for memory mapped 110 ing interrupt acknowledge cycles. Similarly, iORO, M1 used for standard I/O RFSH inhibits operation of the 2651 during memory refresh cycles. A detailed timing analysis shows that all pertinent 2651 and Figure 7. zao - 2651 Interface zao timing specifications are satisfied with the techniques illustrated. Signetics 6·5 MICROPROCESSOR DIVISION JANUARY 1983 INTERFACE TECHNIQUES FOR THE 2651 PCI AppNoteM22 SC/MP II INTERFACE The bus interface signals for the SCIMP II are similar to those previously described for the B080A and Z80, except that only memo- ry reference operations are available. Again, a technique using an address line for the Au 2651 RIW input is recommended, as shown Al in Figure B. All timing requirements for the RIw 2651 and SCIMP II are easily satisfied. 6800 INTERFACE DBO·DB7 DBO·DB7 The 6800 microprocessor provides a RIW " 2851 signal which, when inverted, is suitable for use by the 2651. The remainder of the inter- face logic required consists of gating of the N RDS NWDS -- PCI appropriate bus signals to generate the CE signal for the 2651, as shown in Figure 9. HIGHORDER { ADDR ESS LINES FORCH IP SELECT, . :>- CE The only timing parameter which Is not AS REQUIRED easily satisfied is the write data hold time 74 OR 74LS NAND for the 2651 (t OH )' which is specified at Ons GATES minimum. The 6800 specifications guaran- tee only a minimum of 10ns data hold time with respect to the DBE processor input, which is normally the <1>2 clock. To guaran- Figure 8. SC/MP II - 2651 Interface tee worst-case operation, the DBE signal should be skewed with respect to <1>2 to guarantee the minimum data hold time at the 2651. Consult the M6800 System De- sign Data Manual for detailed information. 8085 INTERFACE The bus signals of an 8085 microcomputer system are similar to those olthe B080Asys- tem shown in Figure 3. The major differ- Au Au ences are the multiplexing of the eight least Al significant bits of address on the data bus and the use of an 101M control line to Aiw .... ~ Al RIW II) distinguish between memory and I/O refer- :> III DIg.DB7 ences. :I w DBo-DB7 Since a single RIW control line is not avail- ~ II) 2851 PCI able, the same addressing technique forthe 2651 registers as described for the 80BOA ~ 2 interface is recommended. Thus, the inter- VMA face will be similar to the one shown in Figure 4. If 1/0 addressing is used, AO-A2 in Figure 4 HIGHORDER { ADDRESS LINES FORCH IPSELECT, AS REQUIRED . t>- CE can be replaced by the non-multiplexed 740R 74LS SERIES higher order address lines AB-A 10, since the 8085 provides the 1/0 address on both AO- A7 and AB-A15 during an INPUT and OUT- PUT instruction. In addition, the inverted Figure 9. 6800 - 2651 Interface 101M signal must be used as an input to the final NAND gate. If memory addressing is used for the 2651, REFERENCES AO-A2 must be obtained by demultiplexing 1. Signetics 2651 PCI Specification from the addressldata bus through an exter- 2. Signetics MP8080A Microprocessor nallatch clocked by the ALE timing signal. If Specification 10 addressing is also used in the system, the 3. Signetics SCIMP II (lSP-BA/600l Micro- MIlO signal must be used in the final NAND processor SpeCification gate. 4. Zilog ZBO CPU Product Specification The BOB5 timing specifications are such that 5. Intel Data Catalog, 1977 all 2651 requirements are easily satisfied. 6. Intel MCS B5 User's Manual Similarly, the 2651 timing satisfies the BOB5 7. Motorola M6800 Microcomputer System requirements. Design Data 6·6 Signetics MICROPROCESSOR DlVISION JANUARY 1983 USING THE 2651 PCI WITH BISYNC App Note M24·A The 2651 PCI supports IBM's Binary Syn- Table 1 INITIALIZATION REQUIREMENTS vs CODE SET chronous Communications (BISYNC) proto- col, with SYN and OLE character stripping, MR13 MR12 CODe seT FORMAT MR15 MR14 OLE generation, and a transparent mode of operation. Please refer to the 2651 data X2 1 EBCDIC 8 bits, no parity 0 1 sheet when reading this application note. ASCII 7 bits, odd parity 0 1 1 0 SBT1 6 bits, no parity X 0 0 0 OPERATION IN THE NORMAL (NON-TRANSPARENT) MODE NOTES 1. Six-Bit Transcode Initialization 2. X = Don't care Initialize the internal PCI mode and com- mand registers as follows: Table 2 ERROR CHECKING REQUIREMENTS FOR BSC MR17 0 Double SYN (even though the same Transmission No Transparency Transparency SYN character is Code Transparency Operating Not Operating used). EBCDIC CRC-16 CRC-16 CRC-16 MR16 0 Non -t ra n spa ren t ASCII VRC-LRC CRC-16 VRC-CRC-16 mode. CRC-12 SBT CRC-12 CRC·12 MR15-12 See table 1. MR11·10 00 Synchronous mode, The processor can read SR5 after RxRDY BCC with its accumulated BCC. An equal 1X clock. goes active to indicate that the first non- comparison indicates a good reception of MR25 0 or External/Internal SYN character is in the RHR. the previous block. MR24 0 TxC. External RxC (sup- CRC (cyclic redundancy check) is a division performed by the transmitting and receiving 6 plied by modem). stations using the numeric binary value of Error Checking the message as a dividend. The dividend is MR23-20 0000 Set for desired baud The type of error checking depends on the initially zero. The constant divisor is either thru rate if internal TxC is information code set used: VRC and LRC are X16 + X15 + X2 + X1 (CRC-16), or X12 + 1111 used. used with non-transparent mode ASCII, X11 + X3 + X2 + X + 1 (CRC-12). The CRC-12 is used with six-bit transcode, CRC- quotient is discarded and the remainder is CR7-6 00 Normal or SYN and 16 is used with EBCDIC, and VRC and CRC- retained as the two-byte BCC. or OLE stripping mode 16 are used with ASCII if a transparent mode 01 (depends on soH- The BCC accumulation (LRC or CRC) is is supported. This is summarized in table 2. ware). reset by the first STX or SOH after line The 2651 PCI is capable of performing VRC turnaround. Thereafter, all characters ex- The SYN 1 and SYN2 registers should be generation, detection and stripping. The cept SYN and OLE (but not the second DLE- loaded with the appropriate SYN character BCC (LRC or CRC) must be computed using OLE in transparent mode) are included in the for the code set in use. The OLE register software or external hardware (see section accumulation. At the end of an intermediate should be loaded if operation in the trans- on BCC Generation/Checking). block (lTB-BCC), the accumulation resets parent mode is required. and starts again with the next received STX Each block of data transmitted is error- or SOH or DLE-STX in the transparent mode. checked at the receiver. The receiving sta- SYN Character Transmission tion normally replies with ACK 0 or ACK 1 and Reception (data accepted, continue sending) or with When the PCI transmitter is initially enabled NAK (data not accepted; i.e., a transmission OPERATION IN THE (CRO = 1), the TxO output remains high until error was detected, retransmit the block). TRANSPARENT MODE the first character to be transmitted (usually There is no error correction. BSC incorporates a submode called "trans- a SYN or PAD) is loaded into the THR. Sub- parent mode." This mode allows communi- The three error-checking methods used in sequent to this, the PCI will automatically fill cation of pure data (such as binary files) conjunction with BISYNC are VRC, LRC and gaps by transmitting a character pair con- instead of information code characters. Op- CRC. These are defined below. sisting of the contents of the SYN 1 register eration in the transparent mode is initiated followed by the contents of the SYN2 regis- VRC (vertical redundancy check) is an odd- by transmission (reception) of a DLE-STX ter (DLE·SYN1 in transparent mode). parity check performed on each data char- sequence and terminated by a closing DLE- acter and the LRC character. It is disabled ETX, DLE-ETB, or DLE-ITB sequence. While The receiver enters the hunt mode on a O-to- during operation in the transparent mode. in the transparent mode, the following pro- 1 transition of RxEN (CR2). If in the normal cedures apply: mode (CR7-6 = 00), receipt of a SYN char- LRC (longitudinal redundancy check) is a acter should be checked by doing a soft- horizontal parity check on all data bits within ware comparison. If SYN/DLE stripping is the message block. It is transmitted as a • Parity (VRC) is disabled and the character selected (CR7-6 = 01), then SYN detect single BCC (block check ch'aracter) immedi- length is changed to 8 bits. This applies (SR5) indicates SYN character reception ately following an ETB, ETX, or ITB charac- only to ASCII code. For EBCDIC code, since the SYN characters will be stripped. ter. The receiver compares the transmitted VRC is never enabled. Signetics 6·7 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2651 PCI WITH BISYNC App Note M24-A • OLE-SYN is used for line fill instead of send OLE bit may be used. The sequence of Returning to Normal Operation SYN-SYN. operations is as follows: 1) Normal operation is resumed alter a OLE- 1) Set CR3 in response to TxROY and then ETX, OLE-ETa, or OLE-ITB sequence is • Any control character transmitted must be preceded by a OLE. load THR with the control or OLE charac- received or transmitted. ter to follow. This ensures that a OLE will 2) MRI6, MRI4, and MR13-12 must be • If a data byte identical to a OLE is to be precede the character loaded. changed if they were altered when enter- transmitted, it must be preceded by an- other OLE. 2) Reset CR3 on the next TxROY, and then ing the tr.ansparent mode. Mode register load THR with the next character to ba 1 should be addressed with TxEN - Transparent Mode Bit MR 16 = 1 results in: RxEN = O. transmitted. Receiver: Enables OLE stripping if CR7-6 = Alternatively, the OLE character could be Oland a OLE is received. loaded into THR without using CR3 if there is BCC GENERATION/CHECKING Enables OLE detect bit (SR3) if a OLE is no possibility of underrun. The 2653 PGC can be effectively used as a received. • OLE detect (SR3) Status Bit parallel CRC I LRC generator I checker and Enables SYN detect bit (SR5) on receipt of The OLE Oetect bit is set when parity is also serve as a programmable single and OLE-SYN 1 after synchronization has been disabled (MRI4 = 0), the transparent mode OLE two character sequence detector. Fig- achieved. is selected (MRI6 = 1), and a OLE charac- ure 1 demonstrates the 2651 /2653 bus in- ter has been assembled in the receiver shift terface. Consult the 2653 data sheet in or- Transmitter: OLE-SYN 1 is used as line fill register. A reset error command (CR4) must der to properly utilize that device. during underrun. be issued to clear the OLE detect condition. For BISYNC non-transparent messages, the If OLE stripping is not selected (CR7 -6 = Initiating the Transparent Mode 2651 can be programmed to strip received 00), then OLE detection could be done by SYN characters which are not usually Receiver: Oetects OLE-STX sequence in software comparison on a character-by- stored in main memory. Stripping mode software and sets MRI6, if desired. character basis. should be terminated upon the PGC's detec- If ASCII code is used, then parity control • SYN / OLE Stripping Mode tion of a BTC (block terminating character) (MRI4) should be disabled, and the charac- If CR7-6 = 01 in the synchronous mode, then or a OLE-STX SCC (second search charac- ter length (MR 13-12) should match the SYN and odd OLE characters are stripped ter). In the first case, a block check charac- transparent data (usually 6 bits). from the receiver holding register. The sec- ter could match a SYN; in the second case ond OLE of a OLE-OLE pair is not stripped. the PGC needs to see all received transpar- If the mode register is changed (as pre- This mode is not recommended for transpar- ent data characters in order to calculate the scribed) % to 1% RxC times after RxROY ent mode. CRC/LRC and detect the BTC properly. goes active, the character being assembled in the receiver shift register will be of the new length and parity setting. Otherwise, R +5V -- the new mode characteristics apply to the DINTERRUPTS TxRDY, RxRDY, TxEMT/DSCHG next character to be assembled. TxD Transmitter: Sends OLE-STX sequence DB7-DBO RxD from THR, and then sets transparent mode 26511 ,..", 2681 (MRI6). If ASCII code is used, then MR14 will be disabled and MR 13-12 should match the transparent data character length (usu- ally 8 bits). The mode register may be R/W,Al,AO ~ I CEO. PCI - ~ RxC TxC changed within n TxC times after TxROY goes active, where n = the character length CPU in the non-transparent mode (assuming transparent mode character length is great- er). This ensures that the character loaded ~ into THR will be transmitted with the new 2853 character length and parity setting. CEO PGC CEI Use of PCI Transparent Mode Features • Send OLE (CR3) Command To ensure that there is no transmitter t INT I R +5V underrun between a OLE and the conlrol Figure 1. 2651 or 266112653 Interlace character or OLE character to follow, the 6·8 Signetics MICROPROCESSOR DIVISION JANUARY 1983 APPLICATIONS TECHNIQUES FOR THE 2651 PCI AppNoteM26 INTRODUCTION be construed to be constraining and the de- the PAD character will be transmitted on The Signetics 2651 Programmable Commu- signer is encouraged to develop whatever TxD before the RTS pin (23) goes high. nicalions Interface (PC I) is a universal interface techniques best fit his application. Asynchronous-wait for TxEMT synchronous I asynchronous data communi- PROCEDURES FOR TERMINATING 1. Load last character into THR in response cations controller chip designed for use with TRANSMISSION to TxRDY. microcomputers and minicomputers. The 2. Mask out the TxRDY interrupt condition 2651 accepts programmed instructions from FULL DUPLEX (RTS always true) by externally disabling it. This can be a CPU and supports many serial data com- 1. Load last character into THR in response done through a gate, interrupt controller munications disciplines, both synchronous to TxRDY going active low. chip, or CPU mask flip-flop. Note that and asynchronous, in full or half-duplex, in- 2. Disable TxEN (O-CRO) in response to the TxRDY and TxEMT cannot be tied togeth- cluding IBM's Binary Synchronous Communi- next TxRDY. This will cause TxRDY and Tx- er (see Figure 1). cations Protocol (BISYNC). The reader is EMT to remain in the high state after the 3. Drop RTS in response to the next TxEMT. referred to the 2651 Data Sheet for general last character (in TxSR) is serialized. TxEMT going active indicates that the specifications and to applications memo last character has been transmitted. The M22 for interface techniques with such HALF DUPLEX (RTS true when transmit- TxD state will be marked hold one bit microprocessors as BOBOA, SC/MP, ZBO, ting; false otherwise) time after TxEMT goes active. BOB5, and 6BOO. Techniques for using the Synchronous-use a closing PAD 2651 PCI to support BISYNC are detailed in 1. Load an all l's PAD character into THR in DISTINGUISHING BETWEEN application memo M24. The purpose of this response to TxRDY. At this time the pre- TxEMT AND DSCHG applications memo is to assist the designer vious (last) data character is in TxSR be- by demonstrating various interface and ing serialized. CONDITIONS The DSCHG condition goes active on a state operational procedures which have been 2. Disable TxEN as above. In this case, the change of either the DCD or DSR pines) pro- successful with the 2651. While we have last data character has been transmitted vided either RxEN or TxEN = 1 but not in tried to cover several possibilities in each when TxRDY goes active. local loopback mode. The DCD and DSR procedure, the techniques shown should not 3_ Drop RTS (O-CRS). One or more bits of status bits (SR6, SR?) reflect the pin status at the time the status register is read, i.e., they are not latched. A Status Read will 6 +5V clear the DSCHG condition. Rx The TxEMT condition goes active during TxRDY transmitter underrun. The condition is imme- RxRDY diately reset when a character is loaded into THR. It is reset after the linetill is sent once 2851 +5V Ry L-_ _ _ _ _ _ ENBL== } ~~~IC the transmitter is disabled (TxEN = 0). TxEMTI IR2 Since both of these conditions share a pin DSCHG (IB) and a status register bit (SR2), it is necessary to determine which or both condi- Figure 1_ PCllnterrupt Requests IR1 and IR2 When TxEMT/~ Must be tions are present when the pin I status bit is Separated From TxRDY active (Figure 2). Figure 2_ Flowchart to Distinguish Between TxEMT & DSCHG Signetics 6-9 MICROPROCESSOR DIVISION JANUARY 1983 APPLICATIONS TECHNIQUES FOR THE 2651 PCI App Note M26 GENERATING CORRECT INITIALIZATION STATE TxD 181----D>o-------r~ OFTxD After a power-on or RESET all Mode register 2851 bits will be zero. Specifically, MR25 will se- Vcc lect external TxC. The TxO pin requires at RESET least one high to low transition on TxC for TxO to go high. Without a TxC input, a break (all zeros) may be transmitted. This presents a problem in asynchronous mode when using the internal BRG (MR25 = 1). To circumvent the problem, the user may take one of the following actions: a) Generate one high to low transition on TxC during a power on or RESET. b) Input a system clock or the BRCLK into TxC through a 1K resistor. c) Inclusive OR RTS and TxO to produce the Tx serial data to the modem. d) Use external logic (Figure 3) to insure Figure 3. Logic to Guarantee TxO == 1 on Power Up or Reset TxO comes up in the" 1" state. USING THE PCI BEYOND THE SPECIFIED SERIAL DATA RATE If local loopback is not required, the PCI will operate correctly if the RxC high and low times are equal to or greater than 500 ns. A 1 Mbps DC baseband link between 2851 two PCI's is therefore quite acceptable. The only requirement is a synchronizing flip flop at the transmitter to compensate for the uncertainty in t Txo, the TxD delay from the falling edge of TxC. That time can be anywhere from 150 ns to 650 ns (Fig. 4). Figure 4. 1Mbps DC Baseband Link ANALYSIS OF PULL UP RESISTOR 1. Rx min: wish to maintain acceptable "0" V output. VALUES FOR 2651 PCI WIRE-OR OF OPEN DRAIN OUTPUTS . Rxmln = Vee max - VOL max -==-__ -c""=-"._ This discussion is intended to assist the iOl max + ill ~p user in determining pull up resistor values for open drain output TxROY, RxROY, (5.25 - .45) volts 4.8 kl! TxEMT IOSCHG shown in Figure 1 (Rx, Ry). (1.6 + .01)mA 1.61 only one output sinking (low) = 3kl! 2. Rx max: wish to maintain acceptable" 1" V output. Vee max - VOH min (4.75 - 2.4)V Rxmax = -'='~--....::::..:.....- =117.5kl! 3 x iOH - ill ~p (3x.Ol - .01)mA all outputs sourcing (high) 6·10 Signetics MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 INTRODUCTION per second. The PGC is a device that The block check character (BCC), which When transferring data via a data commu- monitors parallel data transferred be- the 2653 computes from monitoring the 8- nications link using any protocol, the only tween a CPU or memory and a serial bit data bus, takes the form of a cycl ic way to ensure a correct transfer is to per- receiverllransmilter (R/T, UART, USRT, redundancy check (CRC) on specified form error checking on the messages etc.) or other bus oriented device. Opera- characters. The CRC is a reliable method being exchanged. Error checking can be tion is two-way alternate (half-duplex) in of detecting errors in received serial data accomplished through vertical, longi- that the PGC is selected to receive streams and is employed in almost all syn- tudinal and cyclic redundancy checks, characters either from the R/T or from the chronous data communications protocols. special character recognition and CPU. Full duplex operation is achieved by The PGC can compute the BCC in four transparent operating modes. If the error using two PGCs. A unique feature of the modes: BISYNC normal, BISYNC checking is performed correctly, the 2653 is its 'character class array', a 128x2 transparent, automatic accumulate, and result is an accurate transfer of data from RAM which is used to classify received single accumulate. In each of these station to station. The checking technique characters into one of four types - normal, modes, one of three error polynomials can be performed by software only, but sync/not included, block terminating (CRC-16, CRC-12, and LRC-B) can be this may result in a reduction of the max- character, and secondary search selected. In either of the BISYNC modes, imum channel speed, may reduce the character. The received characters may the 'intelligence' provided by the number of channels which can be handled be block checked and/or compared to the character comparison capability within by the CPU, or may limit the supplemen- special characters pre loaded into the the chip enables it to know which charac- tary tasks which can be performed by the character class array. In addition to the ters to include and which to exclude from CPU. The most efficient way to accom- block check character (BCC) generation, the BCC accumulation. Additionally, block plish error checking is to use a combina- the PGC is capable of single character terminating characters can be detected as tion of hardware and software. detection, two character sequence detec- well as the initiation and termination of tion and parity generation and checking. BISYNC transparent mode. As a result, it The Signetics 2653 Polynomial Generator All operating modes are software can handle character oriented processing and Checker (PGC) is designed to provide the above error checking capability while operating with asynchronous, syn- programmable and can be changed for each application. Figure 1 illustrates the block diagram of the PGC, while figure 2 for IBM BISYNC, ANSI 3.2B, ISO 1745, DEC DDCMP, and other disciplines. 6 chronous or parallel receivers or transmit- describes the formats of the registers lSee the 2653 data sheet for full opera- ters at a speed of up to 500K characters used to program its operation. 1 tional description. ~ I ~ 00-07 DATA BUS '1 DATA BUS BUFFER I - I CHARACTER REGISTER • I I t ~ ~ 16 OLE ' LDETECT OPERATION CONTROL BCCANDVRC TNTR A0 . MODE REGISTER .~~ -=-- ....z ....Z GENERATION UNIT A1 • r- m ~161 •" COMMAND REGISTER ~. Z CE1 iilw . STATUS REGISTER " 0 ....z r- c •;! ~ CE0 "~ c'" READ/WRITE MEMORY ~ REC/XMT i- ~RxD TXD r=TXD REC/XMT - + - - RxD D CEO r=TXD REC/XMT ~RxD DATAD~ ADDRESS, DATA, RlW, fEU CPU CEl _CEO PGC INT ONE PGC IS TIME-SHARED BY THREE R/ls. THE CPU READS AND RESTORES THE PARTIAL Bee REMAINDER FOR EACH SERIAL CHANNEL. Figure 8. PGC Services Multiple Receivers/Transmitters 6 INT 1 I AO, Al,liJW 'I~LI~ --1 PGC I -i PERIPHERAL DEVICE [ 1-- I I CPU I DATA BUS 8/ I H ~CEO SLAVE CPU ~ H ~ Ii/w MEMORY ~ MA,MC APPLICATIONS INCLUDE CHARACTER ARRAY COMPARISIONS, VRC AND/OR BCC CHECKS ON THE DATA BUS. DMA· ~ CONTROLLER ~ NOTE ·CPU Initiallz•• OMA controller for each block tranaf.r of data. Figure 9. PGC Data Bus Monitoring with DMA Transfers Signetics 6·19 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 INTERRUPTS TxBE TxU RxDA RxSA U DB7-DBO 11 2652 t-- TxD MPCC A2 I-- RxD Al AO I-- TxC RlW DBEN I+- RxC CE CPU DBEBO --t> CEO 2663 Al POC li/W AO CEl f • .t +5V iNf (OPEN DRAIN) I Figure 10. 265212653 Interface - Typical Protocols: BiSYNC, OOCMP, SOLC, HOLC R +5V DINTERRUPTS TxRDY, RxRDY, TxEMT/DSCHO r-- TxD DB7-DBO ~ RxD 2651/61 ---l PCI -- R/W,Al,AO ~ ~ TxC RxC CPU ~ 2653 CEO POC CEl t iNf (OPEN DRAIN) I R +5V Figure 11. 2651 Dr 2661/2653 Interlace 6-20 Signetics MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 PGC status flags are utilized to determine must remove the extraneous OLEs which After initialization of the PGC and EPCI if and when the transmission switches to may be imbedded in a transparent block of and establishment of the modem connec- transparent mode, and to determine the text. tion, the data is pulled from the buffer and receipt of a block terminating character transmitted. If a OLE is detected in the (BTC). The two characters following the The transmit flow chart, figure 13, oper- data stream, and that character is part of a BTC are the Block Check Character. After ates on a block of data placed in a buffer two character control sequence, the 'send these are received, the PGC status area by the controlling CPU. This data OLE' feature of the PCI is used to avoid register is examined to determine if a BCC must include the SYNs to be sent at the underrun between the two characters. error has occured. initiation of transmission and the OLEs Since the OLE is not transferred to the that form part of a two character control EPCI via the data bus, this requires that an The data stored in the buffer will be strip- sequence. OLEs in a transparent block of extra OLE be accumulated in the PGC. ped of all sync characters. DLEs are not text need not be doubled up - the EPCI will This is done by use of the PGC's capability stripped. Although the 2661 includes a automatically add a OLE if one is loaded to accumUlate characters loaded via CE1. OLE stripping capability, this feature is not into its THR while operating in transparent When a BTC is detected by the PGC, the employed because the OLEs must be mode. A character counter assists the two BCC characters are read from the 'seen' by the PGC in order for it to ac- software to determine when a OLE is really BCC registers and transferred to the EPCI cumulate the BCC correctly. The CPU part of a BTC (in transparent mode). for transmission. 6 Signetics 6·21 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 SETTFLAG SWITCH WRITE PCI PGC AND MR1 PCI TO DATA =4C TRANSPARENT MODE, SET WRITE PGC TRANSPARENT MR MODE FLAG DATA=C1 INCREMENT POINTER AND STORE CHARACTER IN BUFFER A Figure 12. Bisync Receive Flow Chart 6·22 Signetics MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 BISYNC RECEIVE FLOW CHART NOTES GET LAST CHARACTER FROM BUFFER 1. FFLAG = the first non~sync character has been received TFLAG = operating in transparent mode TEST EFLAG = BCe or PAD error. FOR ITB 81 FLAG = Received block terminating character (BTC). Awaiting Bee. 82FLAG = Received first BCe character. Awaiting WRITE PCI INITIALIZE second BCe. MRI FLAGS FOR DATA=OC NEXT BLOCK, 2. sse detect is disabled by PGC while in transparent mode. RESET BCC, 3. Pointer is decremented to overwrite previously stored WRITE PGC SWITCH TO 'OLE' which was part of a 'DLE-SYN' line fill. CR ~Ig~~c NORMAL 1 - - - - - - - - , DATA = 02 4. Test for closing PAD of at least four ones at end of message. 5. If first non-sync character is a 'OLE', the message will start with 'OLE-STX' (transparent mode), FFLAG is not set in this case since both these characters are excluded from the accumulation. 6 6. First non-sync character of a new message, or first two if message starts in transparent mode, are excluded from the TEST BCC accumulation. RXRDY (NOTE 4) READ PCI RHR LOGICAL 'OR' CHARACTER WITH 'FO' SET EFLAG NEGATE DTR. DISABLE RX Figure 12. Bisync Receive Flow Chari (Continued) Signetics 6·23 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 NORMALLY 'SOH' OR 'STX' WRITE TO PGe ACCUMULATE RESET CHARACTER 'OLE' Bee REGISTER INTO THE BCC (NOTES) USINGffi OATA=10 RESET Bee (NOTE 3) ENABLETX (NOTES) ASSERTRTS (NOTE 1J WRITEPCI M" SWITCH PGC DATA=4C AND PCI TO BISYNC NORMAL TRANSPARENT ACCUM. WITH CEl WRITEPGC MODE,SET TRANSMIT MR TRANSPARENT CRG16 DATA-CD MODE FLAG INITIALIZE BUFFER POINTER AND CHARACTER COUNTER, RESET FFLAG,TFLAG DRAG Figure 13. Bisync Transmit Flow Chart 6·24 Signetics MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 RESET TRANSPARENT ANDDlE FLAGS - - - - - 1 ~~6T~~,~~C NORMAL MODE. AESETBCC ACCUMULATION WRITETOPGC CHARACTER REGISTER 'DLE USING ffi INTO Bee 6 DATA~ 10 TEST TXRDY READPGC ",e REGISTER TRANSMIT 'ee UPPER WRITE TO (NOTE 61 PCITHR TEST TXADY BISYNC TRANSMIT FLOW CHART NOTES 1. Transmitter will not operate until Clear to Send (erS) input is asserted. REAOPGC 2. A OLE at this point in the transmit sequence can only be followed by an STX, which will place the system in ,ee transparent mode. The 'Send OLE' capability 01 the PCI is used in order to prevent underrun between the OLE and REGISTER TRANSMIT 'ee STX characters, and possible misinterpretation of the sequence by the receiving station. LOWER WRITE TOPCI 3. First non-sync character of a new message, or first two if message starts in transparent mode, are excluded from T", the Bee accumulation. 4. DFLAG is used to indicate that a OLE must precede the next transmitted character. 5. In transparent mode, the 2661 will automatically send an extra OLE when a OLE is loaded into the THR. 6. Underrun ot pel is not permitted at pOints shown. Otherwise, received data may be misinterpreted. Figure 13. Bisync Transmit Flow Chart (Continued) Signetics 6·25 MICROPRO~ESSOR DIVISION JANUARY 1983 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER App Note 400 ~ ! RESET READ CR REGISTER WRITECR MASTER RESET, POINTER DATA=03 PUT INTO START·UP MODE I I SYNC FORMAT, WRITEMRI 8 BITS, NO PARITY, WRITECR SET UP FOR DATA=OC DOUBLE SYNC, DATA = 04 SYN/NI CLASS NON·TRANSPARENT MODE I I WRITEMR2 WRITE TO EXTERNAL CLOCKS SYN/NI CLASS: DATA=OO CHARACTER REG SYN DATA = 32 I I WRITESYNCI REGISTER EBCDIC 'SYN' WRITECR SET UP FOR DATA = 32 DATA=08 BTC/SC CLASS I I WRITESYNC2 WRITE TO REGISTER EBCDIC 'SYN' BTC/SC CLASS: CHARACTER REG DATA = 32 ETX DATA=03 ITB DATA = IF ETB I DATA = 26 DATA=2D ENQ WRITE OLE REGISTER DATA = 10 EBCDIC 'OLE' I WRITECR SETUP FOR t DATA=OC SSC CLASS I WRITE TO SSCCLASS: CHARACTER REG STX DATA=02 + Figure 14, 2661 Initialization Figure 15, 2653 Initialization 6·26 Signetics MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET App Note 401 INTRODUCTION terminals has been concentrated in the CRT terminal. In this system, the CPU Microprocessors and LSI have had a 'CRT controller' area. These circuits pro- examines inputs from the data com- dramatic impact on the implementation vide the character timing, display munications line and the keyboard and and capabilities of alphanumeric CRT ter- addressing, and sync generation func- places the data to be displayed in a dis- minals. The first generation of CRT ter- tions required by all terminals. However, play buffer memory, which is typically a minals were little more than 'glass these controllers need to be supported by RAM which holds the data for a Single or teletypes'. Current designs, implemented many other external circuits to implement multiple screen load (page) or for a single with microprocessors, are characterized a complete terminal. character row. High-end ('smart' and by an abundance of sophisticated The purpose of this application note is to 'intelligent') terminals start with the same features that were previously not provide information on the use of four new base, but append additional circuits to economically feasible: a universal hard- Signetics CRT terminal products which, provide more features and capabilities. ware design that can adapt to different when combined with standard CPUs, The following sections describe the func- user requirements simply by changing memories, and TTL, allow the implementa- tions of each of the major blocks. software or firmware; programmability to tion of a wide spectrum of CRT terminal provide end users with the flexibility to capabilities in as few as 15 total Character Timing and Sync execute specialized routines; and local packages. These devices are: Generation intelligence and storage which off-loads • 2670 Display Character and The major function of this block is to the host CPU by permitting data manipula- Graphics Generator (DCGG) generate the horizontal and vertical timing tion and verification at the terminal site. • 2671 Programmable Keyboard and signals required to produce the TV raster Communications Controller (PKCC) on the CRT monitor. Other functions Just as the impact of microcomputers has • 2672 Programmable Video Timing include the generation of display memory been felt in the functional capabilities of Controller (PVTC) addresses in synchronism with the moni- terminals, advances in semiconductor • 2673 Video and Attributes Con- tor scan and in accordance with a defined technology have revolutionized the hard- troller (VAC) screen format (characters per row, scan ware implementation. Designs that pre- viously consisted of 100 to 200 ICs can now be realized with a few dozen MSI and MAJOR ELEMENTS OF A CRT TERMINAL lines per row and rows per screen), generation of a cursor Signal at the appropriate scan pOSition, and generation 6 LSI devices. The majority of the LSI Figure I shows the major elements of a of video blanking signals during retrace manufacturers' effort with respect to CRT typical low-end microcomputer-based intervals. Figure 1. CRT Terminal Block Diagram Signetics 6·27 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 1/0 Interface parallel data from the character and 2672 Programmable Video In its simplest form, this block provides an graphics generation circuits to the serial Timing Controller (PVTC) interface to a keyboard to identify the key video stream required by the CRT. Also The 2672 PVTC, figure 2, is a programma- depressed and a serial communications included are circuits to sum visual display ble device designed for use in CRT ter- link, normally operating in an asynchro- attributes such as blinking, highllow minals and display systems that employ nous format, between the terminal and the intensity, reverse video, and underlining raster scan techniques. The PVTC gener- host computer. Although these functions into the video stream. ates the vertical and horizontal timing sig- could be performed programmatically by SIGNETICS' CRT CHIP SET nals necessary for the display of inter- the terminal CPU system, removing these laced or non-interlaced data on a CRT functions to intelligent controllers unbur- As mentioned previously, the Signetics monitor. Also, the 2672 provides consecu- den the system CPU and allow it to CRT 'set' consists of four circuits. The tive addressing to a user specified display be used more effectively to provide addi- functions of these circuits correspond buffer memory domain and controls the tional features with a relatively small closely to the four major CRT terminal CPU-display buffer interface for various cost impact. blocks described above. The circuits have buffer configuration modes. A variety of been partitioned so as to allow each to be operating modes, display formats, and tim- Character and Graphics used independent of the others, allow ing profiles can be implemented by Generation several alternative methods of implement- programming the control registers in the These circuits convert the data stored in ing the display memory interface so that PVTC. the display memory to the line by line dot the hardware can be tailored to the system patterns required to display the data on requirements, provide a full complement of The CPU initializes the 2672 control and the CRT monitor. programmable capabilities, and minimize timing registers for the desired timing the number of support circuits required. profiles and memory configuration. The Video Timing and Visual The following sections give a brief PVTC provides the handshake control for Attributes description of each of the circuits. The CPU access to the display buffer. One of This section contains the high speed (dot reader is referred to the individual data four memory access modes may be rate) circuits necessary to convert the sheets for full operational details. programmed: independent mode, trans- CE I~ CONTROL CTRL 1 DISPLAY RD INITIALIZATION MEMORY CTRL 2 ~ READI WR AND HANDSHAKE WRITE CTRL3 DISPLAY LOGIC CONTROL LOGIC REGISTERS r '--- ~ COMMAND r--- DECODE LOGIC AO-2 I ADDRESS INTERRUPT DISPLAY DADDO-DAJ.D 13 DECODER LOGIC 3 ~ ADDRESS ~r' TIMING AND STATUS '--- MULTIPLEXERS '14 r REGISTER INTR CURSOR LIGHT PEN STROBE POINTER AND 1 1 LIGHT PEN REGISTERS DATA CURSOR CURSOR DO-7 _L BUS AND DRIVERS COMPARE 8 LOGIC - vcc G ND HSYNC ~1 I CCLK CLOCK TIMING CHAIN VSYNCICSYNC BUFFER AND DECODE LOGIC BLANK TIMING Figure 2. 2672 Programmable Video Timing Controller 6·28 Signetics MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET App Note 401 parent mode, shared mode, and row mode. transmitter (UART). The receiver accepts The 2670 DCGG includes latches to store These modes are described in the System serial input data and converts it to parallel the character address and line address Configurations section of this application data characters. Simultaneously, the data. A control input to inhibit character note. transmitter accepts parallel data from the data output for certain groups of charac- CPU data bus and outputs it in serialized ters is also provided. The 2670 also In all modes, the PVTC provides form. Received data is checked for parity includes a graphics capability, wherein addresses for the display buffer which and framing errors, and break conditions the 8-bit character code is translated outputs the character codes to the 2670 are flagged. Character lengths can be directly into 256 possible user program- Display Character and Graphics Genera- programmed as 5, 6, 7, or 8 bits not includ- mable graphic patterns. Thus, the DCGG tor (DCGG) and visual attribute codes to ing parity, start or stop bits. An .internal can generate data for 384 distinct pat- the 2673 Video Attributes Controller baud rate generator (BRG) operating from terns, of which 128 are defined by the (VAC>' The DCGG and PVTC supply the an external clock or directly from a crystal mask programmable ROM. dot data and sync timing to the VAC which can be used to derive one of sixteen generates the serialized video. receive and/or transmit clocks. An eight bit communications status register pro- Programmable features of the PVTC vides status information to the CPU. 2673 Video and Attributes include screen format (characters/row, Controller (VAC) rows/screen, scan lines/row), horizontal The PKCC has an interrupt mask register The 2673, figure 5, is a bipolar LSI device and vertical timing parameters, cursor to selectively enable keyboard and com- designed for CRT terminals and display type (block or underline) and blink rate, munications status bits to generate inter- systems that employ raster scan tech- character blink rate, interlaced or non- rupts. Priority encoded interrupt vectoring niques. It contains a high speed video shift interlaced operation, and single or double is available. Upon receipt of an interrupt register, field and character attributes height characters. acknowledge, a mask programmable inter- logic, attribute latch, cursor format logic rupt vector will be output on the data bus and half dot shift control, and can be The PVTC is capable of producing inter- rupts based upon several internal condi- tions. By using these interrupts (or by poll- reflecting the source of the interrupt. The mask enabled interrupt sources can also be read directly. programmed for a light or dark screen background. 6 ing the equivalent status register) display The VAC visual attribute capabilities are features such as non-consecutive buffer reverse video, character blank, blink, addressing for split screen operation, underline, highlight, and light pen strike- multiple cursors, horizontal and vertical 2670 Display Character and thru or, optionally, graphics. Each attribute scrolling, and smooth vertical scroll can be Graphics Generator (DCGG) has a separate control input which is implemented. The DCGG, figure 4, is a mask-program- latched internally when the AFLAG input is mable 11,648-bit line select character asserted. If the AM ODE input is low, the generator. It contains 128 1Ox9 characters attributes are valid for one character time. placed in a 10x16 matrix, and has the If AMODE is high, the attributes remain 2671 Programmable Keyboard capability of shifting certain characters, valid until the field is terminated by strob- and Communications Controller (PKCC) such as i, y, g, p and q, that normally ing in a new attributes set. The attributes extend below the baseline; effectively, the are double buffered on a row by row basis The 2671, figure 3, is an MOS LSI device internally so that field attributes can 9 active lines are lowered within the matrix which provides a versatile keyboard inter- extend across character row bou ndaries to compensate for the character's posi- face and also functions as an asynchro- thereby eliminating the necessity of start- tion. nous communications controller. It is ing each row with an attribute set. intended for use in microprocessor based Seven bits of an 8-bit address code are systems and provides an eight bit data bus The horizontal dot frequency is the basic used to select 1 of the 128 available interface. timing input element to the VAC; internally, characters. The eighth bit functions as a chip enable signal. Each character is this clock is divided down to provide a The keyboard controller handles the scan- character clock output for system syn- defined by a pattern of logic 1s and Os ning, debounce, and encoding of mechani- chronization. Ten bits of dot data are stored in a 1Ox9 matrix. When a specific 4- calor capacitive keyboards with a max- parallel loaded into the video shift register bit binary line address code is applied, a imum of 128 keys utilizing any of four on each character boundary. The video word of 10 parallel bits appears to the out- programmable rollover modes. A mask data is shifted out on three outputs at the put. The lines can be sequentially programmable ROM provides four levels of dot frequency. On the video output, the selected, providing a 9-word sequence of key encoding, corresponding to the sepa- video is presented as a three level signal 10 parallel bits per word for each rate shift and control input combinations. representing low, medium and high inten- character selected by the address inputs. An eight bit keyboard status register sities, and the three intensities are also As the line address inputs are sequentially transmits status information to the CPU. addressed, the device will automatically encoded on the two TTL compatible video Programmable features include rollover place the 10x9 character in 1 of 2 outputs. mode, scan rate and debounce. time, preprogrammed positions on the 16-line coded or uncoded operation, and matrix with the positions defined by the 4- automatic repeat operation. line address inputs. One or more of the 10 parallel outputs can be used as control The communications section of the PKCC signals to selectively enable functions is a universal asynchronous receiver and such as half-dot shift, color selection, etc. Signetics 6·29 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670171/72/73 CRT TERMINAL CHIP SET App Note 401 DATA REPEAT DBD-DB7 )I BUS BUFFER K KEYBOARD ENCODER iiCLK 1 MODE" TIMING KDRES CONTROL iii! Wii OPERATION CONTROL CMR KMR -- I - 1 KCO·KC3 CE CSR KEYBOARD SCANNER" KRET KSR ENCODERI AD-A2 DECODER I COMMAND DECODER I r-- ) KRO·KR2 r------1 I I 4)( 128x8 - I I READ·ONLY MEMORY l------i X- - INTR INTERRUPT CONTROL INTA " VECTOR GENERATOR INTR G KEYBOARD DATA REGISTER ! Vee ----.... GND_ I KEY HOLDING REGISTER I TIMING I TONE GENERATOR I TONE I BAUD RATE I TxC GENERATOR - I I RxC BAUD RATE CONTROL ~f--- TRANSMITTER REGISTER TRANSMIT HOLDING REGISTER TRANSMIT ~ SHIFT REGISTER TxD XTAL1/BRCLK f XTAL2 r RECEIVER INTERRuPTS RECEIVE HOLDING REGISTER TIMING RECEIVE CONTROLS SHIFT REGISTER RxD Figure 3. 2671 Programmable Keyboard and Communications Controller 6·30 Signetics MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670171/72/73 CRT TERMINAL CHIP SET App Note 401 SCD------------------------------, ~vcc GM - - - - - - - - - - - - - - - - - - - , ~QND CAO-CA7 '--______--, READDNLY MEMORY DO-D9 (128x91) LAO-LA3 LSTROBE ________oJ 6 Figure 4. 2670 Display Character and Graphics Generator CCO CHARACTER CCI CLOCK CCLK CC2 DCLK 10 DO-DB VIDEO TTLVIDI HDOT TTLVID2 CURSOR ARVID ABLANK BKGND ABLINK CBLANK AHILT AUL ATTRIBUTE AND ALTPEN/AGM CURSOR CONTROL AFLG LOGIC AND BLANK AMODE PIPELINE ReSEr ACD VCC BLINK VBB UL GND LL LPL/GMD Figure 5. 2673 Video and Attributes Controller Signetics 6·31 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71172/73 CRT TERMINAL CHIP SET AppNote401 SYSTEM CONFIGURATIONS vals in order to prevent visual distur- Similarly, a read operation proceeds as The PVTC supports four common system bances of the displayed data. follows: configurations of display buffer memory 1. Steps 2 and 3 as above. The CPU manages the data transfers by interface, designated the independent, 2. The CPU issues a 'read at cursor with/ supplying commands to the PVTC. The transparent, shared, and row buffer without increment' or 'read at pointer' commands used are: modes. The first three modes utilize a command. 1. Read/Write at pOinter address. single or multiple page RAM and differ pri- 3. The PVTC negates 'RDFLG', outputs 2. Read/Write at cursor address (with marily in the means used to transfer dis- the specified address, and generates optional increment of address). play data between the RAM and the CPU. control signals to perform the read 3. Write from cursor address to pointer The row buffer mode makes use of a single operation. Data is copied from the address. row buffer (which can be a shift register or memory to the interface latch and the a small RAM) that is updated in real time to The operational sequence for a write to PVTC sets its 'RDFLG' status to indi- contain the appropriate display data. memory operation is: cate that the operation is completed. 1. The CPU loads data to be written into 4. The CPU checks the 'RDFLG' status to the display memory into the Interface see if the read is completed. latch. 5. The CPU reads the data from the inter- Independent Mode 2. The CPU writes the destination face latch. The CPU to RAM interface configuration address into the PVTC's cursor or Loading the same data into a block of dis- for this mode is illustrated in figure 6. pointer registers. play memory is accomplished via the 'write Transfer of data between the CPU and dis- 3. The CPU checks the PVTC 'RDFLG' from cursor to pointer' command: play memory is accomplished via a status bit to assure that any previous 1. The CPU loads the data to be written bidirectional latched port and is controlled operation has been completed. into the display memory into the Inter- by the PVTC signals read data buffer 4. The CPU issues a 'write at cursor with/ face latch. (RDB), write data buffer (WDB), and buffer without increment' or a 'write at pointer' 2. The CPU writes the beginning address chip enable (BCE). This mode provides a command to the PVTC. of the memory block into the PVTC's non-contention type of operation that does 5. The PVTC negates 'RDFLG', outputs cursor address register and the ending not require address multiplexers. The CPU the specified address, and generates address of the block into the pointer does not address the memory directly - the control signals to perform requested address register. read or write operation is performed at the operation. Data is copied from the 3. The CPU checks the 'RDFLG' status bit address contained in the cursor address interface latch into the memory. to assure that any previous operation register or the pointer address register as 6. The PVTC sets its 'RDFLG' status to has been completed. specified by the CPU. The PVTC enacts indicate that the write operation is com- 4. The CPU issues a 'write from cursor to the data transfers during blanking inter- pleted. pointer' command to the PVTC. 2672 REFRESH PVTC RAM DADD DISPLAY ADDRESS ADR BeE CTRL3 CE WDB CTRL1 WR DATA 1/0 CTRL2 f--- Rffij TO DISPLAY DATA BUS > VIDEO LOGIC -----..t~ 74LS364J C~E74LS364 iiii Viii FROM CPU FROM CPU ( SYSTEM DATA BUS I Figure 6. Independent Buffer Mode ConfIguratIon 6·32 Signetics MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET App Note 401 5. The PVTC negates 'RDFLG' and out- For the 'write from cursor to pointer' lowered to indicate that the CPU can puts block addresses and control sIg- operation, the PVTC's BLANK output Is access the buffer. nals to copy the data from the Interface asserted automatically and remains latch into the specified block of memo- asserted until the vertical retrace inlerval In transparent mode, the PVTC delays the ry. following completion of the command. The granting of the buffer to the CPU until a 6. The PVTC sets Its 'RDFLG' status to memory is filled at a rate of one location vertical or horizontal blanking interval, indicate that the block write is com- per two character times, plus a small thereby causing minimum disturbance of pleted. amount of overhead. the display. In shared mode, the PVTC will blank the display and grant immediate Similar sequences can be implemented on access to the CPU. an interrupt driven basis using the READY Shared and Transparent interrupt output from the PVTC to inform Buffer Modes Row Buffer Mode the CPU that a previously requested com- In these modes the display buffer RAM is a Figure 8 shows the hardware implementa- mand has been completed. part of the CPU memory domain and is tion for the row buffer mode. During the addressed directly by the CPU. Both first scan line (line 0) of each character Two timing sequences are possible for the modes use the same hardware configura- row, the PVTC halts the CPU and DMA's 'read/write at cursor/pointer' commands. tion with the CPU accessing the display the next row of character data from the If the command is given during the active buffer via three-state drivers (see figure system memory to the row buffer memory. display window (defined as first scan line 7). The processor bus request (PBREQ) The PVTC then releases the CPU and dis- of the first character row to the last scan control signal informs the PVTC that the plays the row buffer data for the program- line of the last character rowl. the opera- CPU is requesting access to the display med number of scan lines. The bus tion takes place during the next horizontal buffer. In response to this request, the request (BREQ) control signal informs the blanking interval. If the command is given PVTC raises bus acknowledge (BACK) CPU that character addresses and the during the vertical blanking interval, or while the display has been commanded blanked, the operation takes place until its bus external (BEXT) output has freed the display address and data busses for CPU access. BACK, which can be used 6 memory bus control (MBC) signal will start ~~~~~ at the next falling edge of BLANK. The CPU must release the address and data immediately. as a 'hold' input to the CPU, is then busses before this time to prevent bus ~~~~~ REFRESH 2672 PVTC ~=::J~~~!.ill=~~ I- DISPlA ESS ADR RAM PBRED CTRlI cpu ( __ BACK CTRl3 liEiff CTRl2 SYSTEM DATA BUS Figure 7. PVTC Shared or Transparent Buffer Modes Signetics 6·33 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET App Note 401 2)(2111 2872 ROW PVTC REFRESH ~--~~~An~~~~~ RAM BREQ TO CPU SYSTEM DATA BUS Figure 8. Row Buller Mode Configuration contention. After the row of character data • Cursor control keys RAM required by the system program. is transferred to the CPU, BREQ returns • Numeric keypad Since the majority of the terminal's high to grant memory control back to the Serial Interface: features are tailored by firmware, the ROM CPU. • Full or half duplex size can be increased, either internally or • RS-232 compatible externally, to support additional func- A MINIMUM CHIP COUNT • 16 baud rates with internal baud tions. 1 TERMINAL IMPLEMENTATION rate generator Figure 9 is the schematic of a minimum • Character or block transmission Operating Modes: BASIC TERMINAL SOFTWARE chip count CRT terminal using the four CRT set devices. Only 15 IC packages are The software for a microcomputer based • Normal required for the complete implementation, • Transparent (displays graphic terminal is closely tied to the system hard- including all keyboard encoding and RS- and control characters) ware configuration and its characteristics. 232 level conversion for the serial inter-' • Page or scroll with optional If an interrupt driven mode of operation is face. Despite this low chip count the ter- smooth scroll desired, the system hardware/software minal is capable of providing an Visual Attributes: design must be capable of prioritizing the impressive array of features including: interrupts so that the system will correclly • Blink • Reverse video service interrupts from different sources. Display Format: • Highlight In a typical system, there are three inter- • 24 or 25 character rows • Underline rupt sources: the keyboard, the com- • 80 characters per row • Non-display munications interface, and the video tim- Character Format: ing controller. The latter must usually be • 7x9 dot matrix character in a assigned the highest priority since failure 9x12 character block The system utilizes the independent buffer to service an interrupt from the video tim- • 96 ASCII alphanumeric charac- mode to minimize hardware requirements. ing controller on a timely basis may result ters The dual port interface to the 2Kx8 display in visual perturbations on the display. The • 32 special symbols buffer is via a Signetics 8X31 bidirectional keyboard and datacomm interrupts can, in • Block graphics latch. This may be replaced by a unidirec- most cases, absorb some time delay • Line drawing character set tiona I latch such as the 74LS374 if reading before they are serviced since they Cursor: of the RAM's contents by the CPU is not include one or more levels of data buffers. • Underline or block cursor required. • Optional blinking Keyboard: The operating program for the terminal is lA pre-programmed 8049 microcomputer • 128 keys maximum contained in the internal ROM of the 8049 containing the operating firmware for this • Non-encoded microcomputer, which also provides the terminal will be available from Signetics. 6-34 Signetics fP ~ c en 0i3 Co) C» Z " G) i3 CPU DATA BUS ....0 ::c ~ 1ft CPU ADDRESS BUS N "" Q ..... ~ 0. ....-.-........ 4.91S2MHZ 0 z 36 o 137 r~~~BLEKEYBOAA~----'--------- KeD~o XTAL2 4 KeD 23 12--1 Cl K6, - KC1 6 22 5 5 K~2 21 N "11 KC2 KC3 4 6 Kb 20 ..... C c:: iii gWITCH BAUDO BAUD1 BAUD2 31 P14 32 P15 33 Pt6 LS373 c: 15 .!..!! AS AS .7 +5V i KC. I w 0 ;u .... !" 74159 SAUD3 34 P17 ,.!!! lK I T~ ~ :; 3" 50160 21 P20 ALE· 11 ILlE c5E iNrA I27 II I ,. 10 .... 1ft c:: 15/18 22 P21 8049 I 11 13 ;u CJ) 3 0 BLKCUR 23 P22 XINTR 121 I ,. 3: cO" :::r ii" POP/SOFT 24 P2. 35 P24 T1~VSYNC 29- RD I 15 z I :::) ~ 0 0 N/XPT B/C 36 P25 1 TO 28~WR +5V I » ..... '"l c:: +5V +5V KEYBOARD 0" a BKGNO PKCC 2671 G~D MAmlX 0 en +5V 26 von ~~l~F G~D CONNECTOR -i •3 lKG I r P-iRO ::c :; lNTIi • iNT AD a - ::;; !!. FROMPVTC P26 P27WR, 10 ~TxD KRO~O• Klo 11 en '0 0 aS" [1:XRXD 37 '8 ~RxD KRt 9 KR2 B 9 II II I KRt K~2 i 10 9 74LS151 1 OF 1 15 14 .... 1ft XCTS RfSI CTSI TxD KRETI'5 "I. , I K~ET 8 13 c:: • AIIX DO I 12 R7 .s D1 D2 I I I . D3 I D4 I os REPEAT~l~ ~I os SHIFT 12 1. II SHfFr rEPEAT SHIFT RS232 D7 CONTROL 13 -I' II CONmOl CONTROL I L-___________________ _ CAPS LOCK » 'C 'C Z - o CD • '- » z c ...o ~ -0 00 '" MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 Often, a multi-level interrupt structure will be required so that a high priority interrupt requiring immediate service can be serv- iced even while the system is in the proc- ess of servicing a lower priority interrupt. A simplified flowchart for the software for an interrupt driven terminal is shown in figure 10. After application of power, the microprocessor first performs a system initialization routine which consists of five parts: 1. Clear the microcomputer's scratch- pad RAM. 2. Initialize the 2672 PVTC for the desired screen format, monitor tim- ing parameters, cursor parameters, and display start address. 3. Clear the CRT display by loading a non display-code (usually an ASCII 'space', 20 hex) into the buffer memory. 4. Initialize the 2671 PKCC for t,he desired keyboard and serial inter- face modes. 5. Read any mode switches (e.g., full or half duplex, baud rate, cursor 6 type, etc.) and set system param- eters as required. The processor can now enable its inter- rupts and wait in a loop until an interrupt is received. When this happens, the proc- essor first determines the source of the interrupt and then performs the required system operation. An interrupt from the CRT timing controller usually indicates that some information is required for proper screen refresh opera- tion. For example, the PVTC may issue a 'split screen' interrupt to indicate that a new address must be loaded into its screen start registers in order for the next character row to be displayed from other than the next sequential address in memo- ry. The CPU must service this interrupt within a finite time in order for the display Basic Terminal Software Flowchafi to operate correctly. either case the microprocessor must could have been included by selecting An interrupt from the keyboard interface determine the type of character and per- another of the numerous microprocessor may be either a displayable character or a form the necessary system operation. devices on the market with greater control function. Displayable characters program memory capacity. Major features are usually transmitted to the host com- A DESIGN EXAMPLE of the terminal are summarized in table 1.1 puter and also placed into the buffer A fully operational emUlation of an IBM memory for display on the terminal. Cer- 3101 terminal was designed and con- 'A data package for the design, including tain control characters, such as cursor structed using the Signetics CRT chip set. details of operation, schematic, and control keys or keyboard error codes, may The terminal incorporates the majority of program listing, is available upon request cause only local actions, while others will the 3101's functions. Selected functions by writing to: also require transmission to the host. were not incorporated due to program Signetics Corporation memory limitations. For example, the tab- Microprocessor Applications Dept. An interrupt from the data communications bing functions were developed and tested Mail Station 12-76 interface may also be a displayable but were left out in deference to the block P.O. Box 409 character or a system control character. In transmiSSion functions. More features Sunnyvale, CA 94086 Signetics 6-37 ~ ~ c~ Q ~ ~ - 0 Z "'C G) R .... % en rn m ~ N S2 0. ::; CClK. e..... 5z AO·A11 )I p,;~~~~~ 2716(2) .->rJI.I I h. L--A. 74LS373 ~ I "':'- ~ __ ~ ..... CE I I • DCGG VAC N ~ DISPLAY 2670 2673 W "11 MEMORY I-."AG"'M"--_ _ _,.-J ~ ~ 0~ C ~ ~ .... .... m ~ en ~ ~ ~ g Z ~ ~ :::r: i" A5 TTLVl 0 o g: ViR HSYNC en '" !! FROM{' pvre ,VSYNC 0 0 % :;; 8~ ~ m c .... ii" co iil 3 74lS253 (3) -=-:-::-". '" • ,16 .... 87 KEY MATRIX ~-tCE RO---.. PKCC 2671 I I I "~ L{~" I 17.5 MHZ L..J > II RxD - I KC3k V 4.9152 c::::::J RxD SHIFT :g .... MHZ CONTROL . . REPEAT Z o _ z~ CD §; ~ Q ~ ~ c.> MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET App Note 401 Table 1 - TERMINAL FEATURES selectable baud rates. The PKCC addresses two 74lS145s which act as a Display Screen Format Erase functions: erase EOl, erase 4-to-16 decoder to drive a 16x8 matrix 2000 character screen capacity (25 EOS, clear screen keyboard. Key depressions are detected rows x 80 columns) on the KRET input from a 74lS151 8-to-1 Operator information area (25th Visual Attributes multiplexer. Each key depression is line) Highlighted field debounced, encoded according to the Block-shaped cursor with optional Blinking field states of the SHIFT and CONTROL inputs, blinking Non-displayed field and presented to the CPU. Repeat and Underlined field 'typomatic' (auto-repeat) functions are Displayable Graphic Set processed automatically by the PKCC. Modes of Operation 95 ASCII characters for non- - Transmission modes: character or transparent mode block (page or line) Timing Calculations 128 characters for transparent - Normal or transparent One of the tasks required in the design mode phase of the terminal is the selection of a 7x9 character matrix in 9x 12 field Line Protocol suitable monitor and calculation of the Asynchronous PVTC register values to provide suitable Keyboard 7-bit ASCII with programmable drive signals for the selected monitor. 63-key main keyboard parity 12-key control key cluster One or two stop bits The selection process begins with 12-key numeric keypad Full or half duplex calculation of the required horizontal scan Keyboard lock/unlock under soft- Online or local frequency. Each character will be con- ware control Programmable line turnaround tained in a 9 dot by 12 line field. Since Keyboard clicker character for block mode (EOT/ there are 25 display rows, the total number - Typamatic operation ETX/CR/XOFF) EIA RS232 interface Communication line speed: 50 to of active scan lines will be 12 x 25, or 300. To this we must add some number of scan lines for the vertical retrace, which is 6 Edit Functions 9,600 baud typically 5 to 10 percent of the active scan Cursor controls: up, down, left, ri9ht, lines. For a screen refresh rate of 60 Hz, home Screen Refresh Rate this yields Cursor address read and write - 60 Hz H frequency = (60)(300)(1.1) = 18,900 Hz. Terminal Hardware PVTC informs the CPU when an operation A Motorola monitor was selected for the The block diagram of the 8035 based ter- is completed. application. The major timing specifica- minal is illustrated in figure 11. It is an The PVTC addresses the display buffer tions for the monitor are: expanded version of the logic shown in memory, which contains both character Horizontal frequency: 18.72 KHz ± figure 9, the major difference being a and attribute data. An attribute byte is 500 Hz larger display RAM, to provide up to two identified by the software by setting bit 7 Horizontal retrace: 8 us max pages of screen data, and the addition of of the byte to a logic 1. The RAM data out- Horizontal sync width: 4 us min several input ports to handle the large puts are applied to the 2670 DCGG, which Vertical frequency: 50/60 Hz number of option and set-up switches. The provides the character dot data informa- Vertical retrace: 750 us max terminal's software is contained in 4K of tion, and to the 2673 VAC. Vertical sync width: 50 us min program storage external to the 8035. The VAC is hardwired to operate in the field attributes mode for this application. Monitor timing definitions are shown in The 2672 PVTC is programmed to operate An attribute character occupies a screen figure 12. The worksheet illustrated in in the independent buffer mode with the position but is not displayed unless the table 2 can be used to compute the CPU isolated from the display RAM by two ACD input to the VAC is asserted. Bit 7 of required timing and associated PVTC 74lS364 eight-bit latches, which provide the character byte identifies a character register values. Some rough guesses are the path for data transfers between the as an attribute character if it is a 1. When required initially and several iterations CPU and RAM. The PVTC, responding to bit 7 on the RAM data bus is a 1, the through the worksheet will usually be commands from the CPU, completely con- attribute byte is latched into the VAC to required to arrive at final values. For trols the data transfer. To avoid display begin a new attributes field. Since the example, the character clock period must interference, the PVTC is instructed to attributes are double buffered in the VAC, be known to select the horizontal front complete the access during a blanking only one byte (at any character position) is porch (HFP), sync width (HSYNC), and interva/. For massive display updates required to specify a field. back porch (HBP) values. An estimate of (clear scr!len, load form, etc.) the PVTC is the character period can be made initially Instructed to blank the display and service The bipolar VAC circuit serializes the dot as follows: the data transfer immediately and con- data from the DCGG into a 17.5 MHz data stream for the monitor. Two TTL-level Horizontal period = 1/18,900 = tinuously. Additional memory contention video outputs provide three levels of video: 52.9 us circuitry is not necessary since the PVTC Horizontal active = total - blank = provides all of the timing and addressing black, white, and gray. 52.9 - 10 = 42.9 us (via cursor and pointer) necessary to com- The PKCC provides the asynchronous Character period = 42.9/80 = 0.53 us plete the transfer. An interrupt from the data communications link at one of sixteen approximately Signetics 6·39 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71172173 CRT TERMINAL CHIP SET App Note 401 I--____ CH~I~~OW-----I ~----~ ~----~ HBLANK -----1 L-- ---j I-- FRONT PORCH (IR1) BACK PORCH (IR2) ---I I- HSYNC ~ 11...._____ ----I r--- r------ HSYNC (IR2) ----l CHAR ROWs/SCREEN (IR4) ,-----1-; I- SCAN LINES PER ROW ( l R O ) 1j -_ _ _- , VBLANK --.J I I L --l I-- FRONT PORCH (IRS) BACK PORCH (IRS) --I I- VSYNC ~,--_ _ _ _ _ _ _ _ _ _ _ _ ---,n,--___ --j j-- VSYNC (FIXED AT S) EQUALIZING LINE~ROW CONSTANT IRO LI.J.......11----,-1-'.1--,--,-1....J.I---,I IR1 11111 HSYNC HBACK VFRONT VBACK . i WIDTH I PORCH I PORCH I PO~CH IR2 \I I 1 1 1 1 IRS I 11I I 1I 1 . CHAR ROWs/SCREEN CHARACTE~S PER ROW IR4 1 1 1 1 1 Iii IR5 i l l I· 1 1 I i i Figure 12. Horizontal and Vertical Timing In calculating horizontal timing, an approx- When a scroll operation is required, the tialized so as to cause an interrupt to be imate ratio for the HFP, HSYNC, and HBP CPU changes the value in the PVTC's issued at the beginning of row 24. The of 1 :2:2 respectively is recommended. 'screen start' register from 0080 to 0000. CPU responds to this interrupt by chang- This effectively Shifts the displayed data ing the value in the screen start register to Table 2 contains the final values selected up one row. Upon reaching the specified 0000. The PVTC then uses this value as for the application. last buffer address (which is now the last the starting address of the next (25th) row, character in row 23), the PVTC au- causing the status line to be displayed in Memory Allocation tomatically changes the addressing se- that position. The CPU must re-Ioad the The 4K bytes of available buffer memory quence to resume starting at 0080 for the screen start register before the end of the were allocated as follows (all addresses 24th row. The display data is now vertical blanking interval with the correct are in hex): organized: value for the first character to be dis- - 0000 to 004F: display data for row - 0000 to 011 F: row 1 data played on the screen. 25, status line - 0120 to 016F: row 2 data - 0050 to 0075: not used Terminal Software - 0076 to 007F: CPU scratch pad Because the 8035 microcomputer used in 0080 to 07FF: display data for rows - 07BO to 07FF: row 23 data the terminal provides only a single inter- 1 to 24 - 0080 to OOCF: row 24 data rupt level, a totally interrupt driven soft- 0800 to OFFF: not used, available for ware design could not be used. The inter- second page of display data The CPU can clear the previous data in rupt was assigned to the PVTC to service 0080 to OOCF so that a blank row appears the split screen interrupt described above The PVTC's 'display buffer first address' in the 24th position. and the operations required to implement and 'display buffer last address' registers the smooth scroll feature. The keyboard are loaded with the values 0080 and 07FF The status line (row 25) data is kept in a and datacomm functions are serviced by respectively so as to cause this portion of separate section of RAM to eliminate the polling the PKCC status register. Both the the RAM to act as a circular buffer. Initially necessity of moving the data whenever the keyboard interface and UART receiver are the display data is organized in the RAM scrolling operation described above double buffered in the PKCC, preventing as follows: occurs. Thus, the PVTC must be overrun even if they are not serviced im- 0080 to OOCF: row 1 data instructed to change its addressing se- mediately. 0000 to 011 F: row 2 data quence at the beginning of the 25th row. ·· This is accomplished by use of the split The program generally follows the typical screen row interrupt capability. IR10, the program flow described previously. At 07BO to 07FF: row 24 data 'split screen interrupt row' register, is ini- system reset the 8035 interrupts are dis- 6·40 Signetics Mlcr~OPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71/72173 CRT TERMINAL CHIP SET AppNote401 Table 2 - CRT TIMING WORKSHEET which checks for the type of character (displayable or control) and the appropri- 1. HORIZONTAL CHARACTER BLOCK (no. of dots) ......... . 9 ate handling subroutine (ESC sequence, control sequence, cursor control, 2. VERTICAL CHARACTER BLOCK (no. of scan lines) ...... . 12 (lRO) character display, etc.) Is called. If the 3. VERTICAL REFRESH RATE, Hz .......................... . 60 FIFO's are empty, the polling routine checks the option switches for any 4. CHARACTERS PER ROW ............................... . 80 (lR5) changes since reset entry and If so recon- 5. CHARACTER ROWS PER SCREEN ...................... . 25 (lR4) figures the system as necessary. 6. TOTAL ACTIVE VIDEO SCAN LINES (step 2 x step 5) ..... 300 The need from the FIFOs results from the method used to effect the clear row func- 7. VERTICAL FRONT PORCH (no. of scan lines) ............ . 4 (lR3) tion required when a scroll Is performed. Although the PVTC Includes a 'clear from 8. VERTICAL BACK PORCH (no. of scan lines) ............. . 12 (lR3) cursor to pointer' command that can be 9. VERTICAL RETRACE INTERVAL (step 8 + 3) ............ . 15 used to clear a block of memory rapidly, the display Is temporarily blanked during 10. TOTAL SCAN LINES PER FRAME (add steps 6, 7, and 9)... 319 this operation. This would cause undesira- 11. HORIZONTAL LINE RATE, KHz (step 3 x step 10) ......... 19.14 ble fiashes on the display. Instead, the program does the function by a repetitive 12. HORIZONTAL FRONT PORCH (character time units) ...... 5 loop using the 'write at cursor and incre- ment' command. Since the write occurs 13. HORIZONTAL SYNC WIDTH (character time units) ....... . 8 (lR2) only once per scan line during the active 14. HORIZONTAL BACK PORCH (character time units) ...... . 9 (lR2) display window, a worst case total of ap- proximately 80 scan line times Is required HORIZONTAL RETRACE INTERVAL (step 13 + step 14) .. 15. 16. TOTAL CHARACTER TIME UNITS IN ONE HORIZONTAL 17 to execute the routine. This would limit the maximum received character rate to ap- proximately one per 80 scan lines or about 6 SCAN LINE (add steps 4, 12, 13, and 14) .............. . 102 240 characters per second (2400 baud). To overcome this limitation, the PKCC Is 17. EQUALIZING CONSTANT ([step 16 I 21 - [2 x step 13]) .. . 35 (lR1) also polled each time through the clear 18. CHARACTER CLOCK RATE, MHz (step 16 x step 11) ..... . 1.95228 line subroutine loop, and any entries from the receiver or keyboard are stored In the 19. CHARACTER PERIOD, us (1 I step 18) .................. . 0.512 appropriate FIFO. Since the FIFO Is eight 20. SCAN LINE PERIOD, us (step 19 x step 16) .............. . 53.27 deep, this allows eight characters to be received In the same time, Increasing the 21. DOT CLOCK RATE, MHz (step 18 x step 1) ............. .. 17.57052 maximum baud rate to 19,200. (Other program limitations actually reduce the maximum baud rate to 9600 baud). PARAMETER SPEC ACTUAL However, this does not Increase the rate at which characters Which cause a scroll function to occur, such as a line feed, can A. HORIZONTAL RATE, KHz 18.72 ± 0.5 19.14 be received. Each character of this type must be followed by 'fill' characters In B. HORIZONTAL RETRACE TIME, us 8 8.7 order for data rates higher than 2400 baud to be used. C. HORIZONTAL SYNC WIDTH 4 4.1 An Interrupt from the PVTC will occur D. VERTICAL RATE, Hz 50 - 60 60 when the display scan reaches the row count programmed in Its split screen E. VERTICAL RETRACE TIME, us 750 784 address register, row address 24 (for the 24th row). In response to the Interrupt, the F. VERTICAL SYNC WIDTH, us 50 157 CPU loads the screen start registers with the address of the status line (0000) and enables the PVTC's line zero interrupt. abled, data memory and display memory The program then enters a loop where the This causes another Interrupt at the begin- are cleared to zeroes, and both tha PVTC PKCC is checked for keyboard or UART ning of display of the status line. At this and PKCC are master reset through soft- entries. If an entry has occurred, the time the CPU reloads the screen start wara commsnds. The system option character is fetched and stored In a soft- register with the proper address to begin switches are then read and stored and the ware controlled FIFO (first-in-first-out) the next display frsme and disables the PVTC and PKCC internal registers are ini- memory which Is eight bytes deep for both line zero interrupt. tiIIzed for the seiected operation. Finally, receiving or transmitting characters (the If scrOlling Is required the screen stsrt the initlai data for the status line Is loaded, need for the FIFO Is described below). If register value Is Incremented by 80 (pop- the PVTC, UART, and keyboard are either FIFO has an entry, the program pro- ping off the top row) and the effective bot- enabled, and the CPU interrupt is enabled. ceeds to a character recognition routine tom row cleared to nulls. If soft scrolling Is Signetics 6·41 MICROPROCESSOR DIVISION JANUARY 1983 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 selected, additional functions are per- 12 lines. If nothing else were changed, line showing, and now changes the verti- formed during the Interrupt routines. To however, the bottom of the display would cal back porch to 8. The display moves up begin the operation, the line zero Interrupt move down ten lines. Thus, during the row two more scan lines and at the next row 24 routine adds ten lines to the vertical back 24 Interrupt the number of scan lines per interrupt four scan lines are shown. The porch. This causes the next active screen character row Is changed to two (12-10), process continues in this manner, provid- display to begin ten scan lines later than causing only the first two scan lines of that ing the effect of the entire display, except normal and gives the effect of the display row to be shown. The next line zero inter- for the status line, smoothly scrolling up moving up two scan lines (12 lines per rupt (at row 25) restores the lines per row over a selected interval of six frames, or character row - 10) instead of jumping up count back to 12 to keep the whole status one tenth of a second. 6-42 Signetics MICROPROCESSOR DIVISION JANUARY 1983 2661 OPERATING MODE SWITCHING PROCEDURES AppNote402 INTRODUCTION SR2, to indicate the end of the parity bit or TXEMT is driven active upon underrun This application note describes pro- the first stop bit, depending on whether condition. cedures for switching the operating mode one or two stop bits are selected Note that the TXEMT pin is not driven of the Signetics' 2661 Enhanced Program- (MR17:MR16 = 01 or 11). The procedure active in echoplex mode. It is optionally mable Communications Interface (EPCi) causes TXEMTIDSCHG to be driven to its driven active when the above steps are from echoplex or remote loopback mode active state only at the completion of the followed, particularly the transmitter being to normal operation and vice-versa. last character, as shown in figure 1. enabled as indicated in step 2. Because The recommended sequence of operation the transmitter relies on CRO = 1 and CR2 ECHOPLEX (AUTOMATIC is as follows: = 0 to drive TXEMT active, it is necessary ECHO) MODE TO NORMAL 1. Wait for RXRDY (either RXRDY inter- to set CRO to zero in echoplex mode if it is OPERATION rupt or status read). This is necessary desired not to drive TXEMT active. CRO, The echoplex operation is initiated by set- for the assembly of the last character transmitter enable, is ignored for data ting command register bits CR7:CR6 = to be completed and to ensure the transmission in echoplex mode. It is, 01, and CR2 (receiver enable bit) = 1. transfer of this character to the however, used to determine whether Echoplex operation is terminated by transmitter. TXEMT should be driven active. resetting CR2 to zero. To ensure the 2. Enable the transmitter by setting CRO If frequent mode switching is anticipated proper transmission of the last received to one. and it is desired to drive TXEMT active, character, no change of operating mode 3. Disable the receiver by setting CR2 to step 2 of the above procedure could be should be made until the end of that zero. skipped, provided that the echoplex character. However, if mode switching is 4. Wait for TXEMT (either TXEMTI operation is initiated by enabling both the necessary in certain applications, the DSCHG interrupt or status read). At receiver and the transmitter - that is, following procedure is recommended to this pOint, the parity bit or the first stop CR2:CRO = 11. ensure no garbling on the last transmitted bit (if two stop bits are selected) has The TXEMT timing shown above is only character. Two potential problems may been sent out. arise: the calculated parity instead of the applicable when switching modes. Note received parity may be transmitted, and data rate may be shortened or lengthened. 5. Change mode from echoplex to normal. 6. Load new character into the transmit holding register, THR. Further com- that in normal operation, TXEMT is driven active at the beginning of the last data bit or parity bit upon underrun condition. 6 The procedure provides the necessary munication between the 2661 chip and handshaking to avoid these potential the CPU will resume as normal- that is, REMOTE LOOP BACK MODE TO problems by making use of the TXEMT I TXRDY is driven active to indicate that NORMAL OPERATION DSCHG pin or of the status register bit 2, the THR is available for new data and The procedure is similar to the procedure for echoplex to normal, with the following exceptions: "1XifI START V2Z2222??2?2?22 PARITY STOP 1. No handshaking with RXRDY is required. LAST CHARACTER BIT I I 2. During step 3 of the previous pro- I I cedure, CR2 goes to zero, and I I CR7:CR6 should be simultaneously I I changed from 11 to 01 (remote to echo- ====~----------------41---~. TXEMTIDSCHG DRIVEN ACTIVE HERE IF ONE jL ---+j- - - - - - - - plex). This is necessary because the STOP BIT IS SELECTED-, : logic Implemented to drive TXEMT active relies on echoplex information. I I However, this requirement does not need additional service from the con- DRIVEN ACTIVE HERE IF TWO I STOP BITS ARE SELECTED----'--I --..:.l I troller because remote-to-echoplex switching is done at the same time as Figure 1. TXEMT/DSCHG Operation lor ECHOPLEX Mode SWitching disabling the receiver. NORMAL OPERATION TO ! t'· 1\'U ECHOPLEX OR REMOTE ~ PARITY OR STOP BIT To avoid garbling the last transmitted ,~_~.m" .." data, a mode switch from normal operation TXEMT to echoplex or remote operation should be r----- performed as follows: _ __ 1. Wait for TXEMT (either TXEMTI DSCHG interrupt or status read) to be asserted. TRAN~~~~~~! I 2. Disable the transmitter by setting CRO to zero. 3. Wait for TXEMT to be negated. CHANGE TO ECHOPLEX OR REMOTE---I 4. Change the mode from normal opera- Figure 2. Switching from Normal to ECHOPLEX or Remote Loopback tion to echoplex or remote. The timing is illustrated in figure 2. Signetics 6·43 MICROPROCESSOR DIVISION JANUARY 1983 2670171/72/73 CRT SET APPLICATION BRIEFS AppNote403 INTRODUCTION talns the high speed timing circuits reo only, or with a combination of hardware The Signetics CRT chip set consists of qulred In CRT terminal systems. Included and software. four LSI devices which, when combined on the 2673 are a dot clock counter, video with standard microcomputer, memory, shift register, field and character at· and TTL products, permit the Implementa· tributes logiC, and cursor display circuits. Soltware Only Method tlon of a CRT terminal In as few as 15 total The 2673 attributes capabilities are The software only method of smooth packages. The four LSI devices are: reverse video, character blank, blink, scrolling uses the 2672's capability to pro· underline, highlight, light pen, and gram the scan lines per row and the ver· 2870 Display Charaetir and Oraphici graphics. The device provides both TTL tical back porch, and the ability to pro· Oenerator (DCOO) and analog video outputs and operates at gram an Interrupt to occur at any row by The 2670 Is a mask programmable line dot frequencies up to 25M Hz. programming the row value Into the spilt select character generator which contains screen register, IR10. Three limitations 01 the dot patterns for 12810x9 characters. It IndiVidual data sheets are available which this method are: also provides a seml·graphlcs capability describe each of the devices In full detail. 1. Scrolling must be In an upward dlrec· wherein the 8·blt character code Is A previously published application note tlon. translated directly Into 256 graphic pat· entitled "Using the 2670/71/72173 CRT Ter· 2. The screen area that Is scrolled must terns useful for presenting data such as mlnal Chip Set" (App Note 401), describes start at the top of the display but can graphs and forms on the CRT display. Ad· the Implementation of CRT terminals us· end at any row. dltlonal features of the DCGG Include Ing the chip set. The purpose of this ap· The minimum scrolling Increment Is character and line address latches and In· plication note Is to provide Information on 3. two scan lines. ternal descend logic. the Implementation of special end· product feetures. 2871 Programmable Keyboard and Com· The flow chart In Figure 1 shows the steps munlcatlons Controller (PKCC) necessary for scrolling starting at the top The 2671 provides a versatile keyboard In· SMOOTH (SOFT) SCROLLING of the screen and ending at character row terface and an asynchronous communlca· Scrolling Is used In CRT terminals to pro· 231, with an additional non·scroiling row at tlons Interface In a single package. The vide the effect of an 'endless page' on row 24. The IR10 value Is set to 23, to keyboard section handles the scanning, which the data can be written. I n normal cause an Interrupt to occur at row 23. This debounce, and encoding of mechanical or Implementations, once the screen fills up, Interrupt routine then enables the line capacitive keyboards with up to 128 keys the space for the next row of data Is pro· zero Interrupt, so that another Interrupt utilizing any of four programmable rollover vlded by removing the top row and moving occurs at row 24. The line zero (row 24) In· modes. An Internal ROM provides any of all the remaining rows up by one row, thus terrupt routine disables the line zero Inter· four key codes for a depressed key. The creating a blank data row at the bottom of rupt so that another line zero Interrupt Is communications section Is a universal the screen Into which the new Information not asserted until the split screen (row 23) asynchronous receiver and transmitter Is placed. (The process may be reversed If Interrupt routine enables It again. (UART) with programmable character the new data Is to be written at the top of length, parity, and stop bits. A baud rate the screen). This technique creates a When a scroll Is desired, the system soft· generator providing 16 standard com· readability problem when viewing data ware changes the screen start address to munlcatlons frequencies which operates which Is being received at a relatively high the new value (normally an address 'n' directly from a crystal Is also Incorporated speed, Since the rows are Jumping up (or characters higher than the previous value, In the 2671. down) at a fast rate. Smooth or soft scroll· where 'n' Is the number of characters per Ing Improves readability by moving the row) and sets a scroll flag. The top row 2872 Programmable Video Timing Con· data In scan line Increments Instead of In disappears and normally the display troller (PYTC) whole row jumps, thus creating the effect would jump up by one row. However, the The 2672 Is designed for use In CRT ter· of a sheet of paper slowly being moved line zero Interrupt routine notes that the mlnals and other display systems that through the viewing area. One system scroll flag Is set and adds the value 's·2' employ raster scan techniques. It restriction of providing the smooth scroll· (s= scan lines/row) to the vertical back generates the vertical and horizontal tim· Ing feature Is that the rate at which new porch (IR3). This causes the next active Ing for the CRT monitor, and provides the rows of data can be received is limited to screen display to begin 's·2' lines later addressing for the display buffer memory. the rate at which the display Is being than normal and gives the effect of the The CPU to display buffer Interface can be moved. Thus, successive line feeds must display moving up two scan lines Instead programmed for several different modes be separated by a minimum number of real of Jumping a lull row. If nothing else were of operation, Including full screen buffer, or dummy 'fill' characters In order to allow changed, however, the bottom of the multiple page buffer, or row buffer, as reo the display to keep up with the received display would move down the same qulred by the application. Programmable data. The number of fill characters will be number of scan lines. Thus, during the features of the PVTC Include screen for· a function of the number of scan lines per split screen Interrupt routine the number mat (characters per row, scan lines per character row, the scroll rate, and the of scan lines per character row (I RO) Is row, rows per screen), horizontal and ver· communications line speed, and may also changed to two, causing only the first two tical timing parameters,cursor type, Inter· be effected by the Incl uslon of software scan lines of that row (which Is the new laced or non·lnterlaced operation, and and/or hardware features such as a data character and cursor blink timing. buffer In the system design. 1Rows are numbered consecutively start· 2873 Video and Attributes Controller When using the CRT chip set, smooth Ing with row O. Thus, row 23 Is the twenty· The 2673 Is a bipolar LSI device that con· scrolling can be Implemented In software fourth row of characters. 6·44 Signetics MICROPROCESSOR DIVISION JANUARY 1983 2670171/72/73 CRT SET APPLICATION BRIEFS AppNote403 INTERRUPT ENTRY FIRST ROW OF STATUS REGION NO YES LAST ROW OF SCROLLING REGION WRITE REQUIRED SCAN RESTORE SCAN LINES/ROW LINES/ROW INTO PVTC IRO TO NORMAL VALUE IRO FROM (XXX) WRITE SCREEN START REGS TO FIRST ADDRESS OF 25th STATUS ROW WRITE SCREEN START REGS TO FIRST ADDRESS OF DISPLAY FROM ffYV) 6 YES SET (XXX) TO TWO INCREMENT (XXX) SCAN LINES/ROW BY TWO SCAN LINES PER ROW INCREMENT (YYY) BY NUMBER OF CHARACTERS IN A ROW INCREASE VERTICAL BACK PORCH BY NORMAL NUMBER OF SCAN LINES/ROW - (XXX) RESET INTERRUPTS AND RETURN I ~~ INTERNAL CPU REGISTERS Figure 1. Smooth Scroll Flow Chart Signetics 6·45 MICROPROCESSOR DIVISION JANUARY 1983 2670171/72/73 CRT SET APPLICATION BRIEFS AppNote403 row) to be displayed and maintaining the lines to scroll into the 4·blt latch during address for the non·scrolled region at proper value for the total scan lines. The the vertical retrace Interval. The scan line the top of the screen is loaded and IR10 next line zero interrupt restores the lines adder detects when the sum of the offset is loaded with the row number required per row value back to its normal state to and the scan line address is greater than for interrupt 1. display the whole of the last character the programmed number of scan lines per 2. During interrupt 1, a new screen start row, and now decreases the vertical back row and causes the RAM address to be address for the scrolled region is porch increment by two. The display automatically offset to the next character loaded (if required), IR10 is loaded with moves up two more scan lines and at the row by the n·bit RAM address adder. The the value required for interrupt 2, and next split screen interrupt four scan lines CPU adjusts the value in the scan lines to the lines to scroll latch is loaded with are allowed. The process continues in this scroll latch at desired intervals, e.g., each five bits of data consisting of the four· manner until the scroll is completed. vertical retrace, to effect the smooth bit lines to scroll value plus an scroll. When the scroll is completed, the asserted 'scroll' bit. The hardware will Note that the CPU must complete the split screen start address is changed to the cause the scan line offset to be applied screen interrupt routine within two scan new value required for the top character to the adder at the beginning of the line times. row. next character row, as required. 3. During interrupt 2, a new screen start Hardware/Software Method address for the non·scrolled region at If only a partial screen scroll is required, The hardware/software method of smooth the bottom of the screen is loaded (if the hardware must be modified to cause scroll removes the restrictions of the soft· required), and the 'scroll' bit is the offset to be applied only during the ware only method. The scrolling region negated. The hardware will cause the scrolling area. The lines to scroll latch of can begin and end at any character row, scan line offset to be removed from the Figure 2 is replaced by the circuit shown scrolling can be performed in either the up adder at the beginning of the next in Figure 3. The software is written with or down direction, and the minimum scroll character row, as required. If the scroll split screen interrupts at the row before increment can be one scan line. region extends to the bottom of the the first row which is to be scrolled (inter· visible screen, this interrupt is not reo rupt 1) and at the last scrolled row (inter· A block diagram of the required hardware quired. Note that the time required to rupt 2). The required program actions are for the case of full screen scroll is il· service this Interrupt will determine the as follows: lustrated in Figure 2. When scrolling is reo minimum number of scan lines per quired, the CPU writes the number of scan 1. During vertical retrace, the screen start scrolling increment. FULL ADDER RAM 14 VAC VIDEO ATTRIBUTE DATA BLANK:-----i CARRY PVTC-~=-:-::-' LOGIC ADDRESSES _.=;D,-,AD::.:DO=....-1:;:3_ _-:'Ir-v (NOTE 2) DO-D9 DATA BUS NOTES: 1. Hardwlre adder inputs to number of characters per row. 2. Carry logic asserts output when output of adder exceeds normal scan lines/row. Figure 2. Smooth Scroll Hardware Block Diagram 6·46 Signetics MICROPROCESSOR DIVISION JANUARY 1983 2670/71/72/73 CRT SET APPLICATION BRIEFS AppNote403 ~-------------, BLANK----ICLK 74LS74 DADD8 D l:I D4 D3 TO SCAN D2 LINE ADDER FROM (FIGURE 2) CPU D1 6 Figure 3. Partial Screen Smooth Scroll Modification HORIZONTAL SCROLL Horizontal scrolling allows the terminal to be used to read or write pages which are wider than the actual screen width. For ex· INTERRUPT ample, If an actual page width of 132 characters is to be displayed on a terminal with a capacity of 80 characters per row, horizontal scrolling can be used to display any desired 80·character 'window' of the NO (VB LANK INTERRUPT) 132·character row. The window can be moved in response to operator keyboard WRITE PAGE START commands, allowing all 132 columns to be ADDRESS PLUS HORIZONTAL observed.The CRT set capabilities allow SCROLL INTO SCREEN START REGISTERS horizontal scrolling in single or multiple ADD ACTUAL CHARACTERS PER ROW TO PREVIOUS character increments to be Implemented SCREEN START REGISTERS using software only. As described in the VALUE AND WRITE INTO SCREEN START REGISTERS 2672 data sheet, changing the contents of the screen start address register during a particular row, say row 'n', will cause the display of the next row, 'n + 1', to begin RESET VBLANK from the new address. This feature, INTERRUPT together with the capability to interrupt at every row via the line zero Interrupt, can be used to update the contents of the screen RETURN start register once each row to effect the horizontal scroll. The software operations required are as follows (see Figure 4): 1. During the vertical retrace interval, the screen start register is Initialized with the starting memory address of the display page plus the desired horizon· Figure 4. Horizontal Scroll tal scroll (in characters). Signetics 6·47 MICROPROCESSOR DIVISION JANUARY 1963 2670/71/72/73 CRT SET APPLICATION BRIEFS AppNote403 41. The line zero Interrupt is enabled. Dur· through the latches to the delay of the crement once every two scan lines. The ing each interrupt service the value in video data from the VAC. external flip·flop toggles each scan line to the screen start address Is In· provide a fifth bit of scan line count Infor· cremented by the actual (not display) EXTERNAL VIDEO SYNC mation for the character generator. The page width. This may be done either by Some applications require overlaying of technique permits any even value of scan referencing a table of starting ad· characters on an existing video display. lines per character row from 2 to 32 to be dresses or by performing the required An example of this Is the addition of sub· obtained. addition. titles to a picture display. Figure 6 iI· lustrates a simple technique of externally COLOR DISPLAY INTERFACE synchronizing the 2672 PVTC to an exter· BIT MAPPED GRAPHICS Figure 5 illustrates the block diagram of a nal video source. The dot clock to the 2673 Figure 6 Illustrates an implementation of a color monitor Interface. Eight colors for VAC is stopped (character clock falling bit mapped display with the chip set. In foreground and background with three at· edge) at the start of the PVTC's sync inter· this configuration, the contents of the tributes are supplied. The system val and restarted upon occurrence of the memory will be displayed without char· operates in the character attribute mode external sync signal. The sync timing pro· acter generator translations. Thus, each with a 16·blt word of data for each grammed in the 2672 must be slightly bit in the memory corresponds to a single character: seven bits for character select, faster than the external sync rate. pixel on the display. Each horizontal scan six bits for color select, and three bits for line is defined by a contiguous set of other attributes. SCAN LINE COUNT GREATER bytes in the RAM. The data is written in THAN 16 groups of a bits by the CPU and is ac· The two 74LS374s delay the color informa· Certain applications may require more cessed by the PVTC in groups of a bits. tlon by two CCLKs to allow for the two scan lines than the 16 scan lines per The character generator of a normal alpha· CCLK delays of dot data through the character row (non·interlaced) which the numeric configuration is replaced by an DCGG and VAC. The video output of the 2672 can provide. Figure 7 shows the hard· a·bit latch to implement the one CCLK VAC selects foreground or background ware required to obtain up to 32 scan lines delay normally provided by the 2670. The color (active dot or not) for each character per character row. The PVTC must be pro· PVTC can be programmed for one scan cell via the 74LS157 multiplexer. A variable grammed for double height character line/row to cause the memory addressing CCLK delay may be required to syn· rows. This causes the scan line count out· to proceed without repetition of ad· chronlze the delay of the color Information puts from the 2672 (DADD4·DADD7) to in· dresses in each row. TTLVID1 MEMORY 7 10 AODRESSES FROM pVTe - r--Y CHARACTER RAM / " DCOG / VAC em< ~ ATTRIBUTES 2 I ADJUSTABLE DELAY I / COLOR FOREGROUND COLOR '1 MUX ., L L I ATTRIBUTE \ CK CK SELECT L---".. RAM R \ Y1-.., RED A1 L....-,..! G I B1 B I Y2-.., GREEN TO C1 MONITOR 74LS374 74LS374 74LS157 R ~ A2 G I I Y3-.., BLUE B2 B I, C2 E r BACKGRO~~J h t COLOR BLANK r I Figure 5. Color Display Block Diagram 6·48 Signetics MICROPROCESSOR DIVISION JANUARY 1983 2670/71/72/73 CRT SET APPLICATION BRIEFS AppNote403 EXTERNAL HSYNC VSYNC VSYNC HSYNC 7474 HSYNC VSYNC 1-.........:C::;H::::A::;RA::::C;.:.T:::ERc..C:::L:.:Oc::C""K----I~ DCLK PVTC VAC 2672 2673 PVTC HSYNC/vSYNC ----~I EXTERNAL HSYNC/VSYNC - - - - - - - - - - - - - - - - - - - -... DOT CLOCK 1 6 ~ ________________________ ~r__ CHARACTER CLOCK .J Figure 6. Externel Sync Lock The PVTC can be programmed to a max· Imum of 256 characters/row and 128 rows/screen. Thus, a 2048 by 128 bit map PVTC CHARACTER Is possible. If more than 128 dots are reo GENERATOR AND qulred vertically, the PVTC can be pro· BLANK C LATCHES grammed for more than one scan line/row DADD7 L4 and the scan line outputs can be used as part of the RAM address, creating several DADD6 L3 segments of memory. For example, If 256 DADDS L2 lines are required, the PVTC must be pro· DADD4 L1 grammed for two lines/row. The use of LAO as part of the memory address ,-- J Q I - - - LO creates two segments. The CPU writes the data for odd scan lines in one segment of the memory and the data for even scan HSYNC I-- r- CK lines In the other. As the PVTC accesses VSYNC ~K the RAM the scan line count will go from 0 to 1 addressing the even and then odd por· TWO 2670', OR tlon of the RAM for each character row. -= EQUIVALENT Figure 8 shows the DCGG as optional. By using the 2672's spilt screen capability -"... and changing 2672 parameters, the CPU can enable the DCGG to be active for a portion of the screen thereby Incor· poratlng both blt·mapped and alpha· Figure 7. Greater Than 16 Scan Lines Per Row numeric sections on the same display. Signetics 6·49 MICROPROCESSOR DIVISION JANUARY 1983 2670171/72/73 CRT SET APPLICATION BRIEFS AppNote403 ..... ~ I ~ SYSTEM I 'TT DCGG DECODE LOGIC I I L -:v r-r .J CHARACTER DATA CCLK ;.. CE I' 7j,. PVTC ~ RAM Vt- ~ 8·BIT ---v .8 I'< " LATCH DOT DATA" VAC DISPLAY CPiJAD~ ADDRESSES PVTe CONTROL V BIDIRECTIONAL LATCH I CPU .t. ".. ..(";>. L. :l.. A "" 7- CPU DATA BUS CPU CONTROL Figure 8. Implementation of Bit Mapped Display 6·50 Signetics Section 7 Microsystems Signetics JANUARY 1983 Signetics SMDEV10000 568000 USER WORK STATION (UWS) PRODUCT BRIEF 7 FEATURES DESCRIPTION • Permits existing support The Signetics User Work Station (UWS) is a low cost, but powerful, tool equipment to be utilized designed to work with Signetics language translators in a cross devel- • 8MHz Hardware in·circuit opment environment. The UWS provides the capabilities required to emulation via Signetics execute and debug software for the SCN68000 microprocessor. Soft- Footprint ware is first entered via the host computer text editor and then assem- • Includes ROM resident bled or compiled utilizing Signetics cross development software tools. debugger and confidence The generated object code is downloaded to the UWS via a serial com- lests munications link. The engineer proceeds to test and debug the software • 8MHz SCN68000 using the UWS ROM resident debugger to set execution breakpoints, microprocessor examine and modify registers, and make changes to the software utiliz- • 64Kb of the lolal RAM ing the resident line oriented assembler/disassembler. The debugging complement mappable to the process may be accomplished entirely within the UWS or the available system under development UWS memory may be mapped into the system under development. The • 4 serial communications ports connection to the system under development is accomplished with the as well as serial and emulation cable and FootprinPM probe which makes all pins of the Centronics parallel printer SCN68000 available for connection of oscilloscope and logic analyzer interfaces probes in addition to providing full 8MHz hardware emulation of the • Designed to function wilh SCN68000. Signetics cross software producls ™Footprint is a trademark of Signetics Corporation. 7·1 Signetics MICROPROCESSOR DIVISION JANUARY 1983 sMDEV10000 568000 USER WORK STATION (UWs) PERIPHERAL SUPPORT ASSEMBLER/DISASSEMBLER address locations until a null line or a con· trol Z is entered. Each 'instruction is The UWS firmware supports a variety of One of the most useful features of the verified as it is stored in memory. As each peripheral devices that are normally re- Signetics UWS is a resident line oriented line is entered, both the relative and ab- quired in the development process. The assembler and disassembler. This feature solute addresses of the generated code, primary peripheral device supported by facilitates the debugging process by per- as well as the resultant machine code, is the UWS is the console terminal. It can be mitting the engineer to translate existing displayed on the CRT. The disassemble of nearly any type but must transmit serial Hex va.lues of the machine code into read- (01) command allows the UWS to accept a data in the speed range of 110 to 19,200 able mnemonics, or to create and insert range of addresses where code is to be bits per second and have an interface new SCN68000 instructions into the rou- disassembled. As a result of this opera- which conforms to the RS-232 interface tine being tested. The assemble (AS) com- tion, the engineer will be able to display definition. The UWS supports a serial mand causes the UWS debugger to enter a the relative and absolute instruction printer interface and a Centronics parallel li.ne assembler mode at a user specified address, a Hex translation of the machine printer interface. These hard copy devices address. the engineer may begin entering code, the instruction mnemonic, and the may be used to maintain a permanent SCN68000 assembler instructions from instruction operands within the specified record of trace data, breakpoint lists, the keyboard. The instructions will be range. PROM contents, and other information assembled and stored at consecutive that the UWS firmware can provide. A serial port connection is provided for a The following is an example of the assemble command: PROM programmer interface. The firm- MA 1 ware contains drivers for the DATA 1/0 Model 19 and Kontron PROM program- >AS 10000 "CLR.L 00 mers. In addition, commands are present 010000010000 INS = 4280 CLR.L 00 to allow reading, writing, and verifying of "CLR.L 01 PROMs. The host computer interface is 010002010002 INS = 4281 CLR. L 01 deSigned to be compatible with standard "CRL.L 02 modems or short distance line drivers that 010004010004 INS = 4282 CLR.L 02 support the RS·232 interface. The UWS "MOVEA.L 10200,AO firmware supports transparent terminal to 010006010006 INS = 207900010200 MOVEA.L 102001\.L,AO host operation, downloading of object "MOVEA.L 10204,A1 code from the host to the UWS and up· 01000C 01000C INS = 227900010204 MOVEA.L 102041\.L,A1 loading of debugged or partially debugged object code from the UWS to the host. "MOVEA.L 10208,A2 010012010012 INS= 247900010208 MOVEA.L 102081\.L,A2 "MOVE.L OO,[AO] CONFIDENCE TESTS 010018010018 INS = 2080 MOVE.L OO,[AO] A set of ROM resident confidence tests "MOVE L 01,[A1] are included in the UWS. These tests are 01001A 01001A INS= 2281 MOVE L 01,[A1] intended to provide a set of known opera· "MOVE.L 02,[A2] tions on the serial and the parallel inter- 01001C 01001C INS= 2482 MOVE.L 02,[A2] faces that the UWS may be commanded to "AOO.L #1,[AO] execute to aid in the installation of the 01001E 01001E INS=5290 AOOO.L #1 ,[AO] unit. In addition, a test of the RAM "AOO.L #2,[A1] memory is executed each time the UWS 010020010020 INS= 5491 AOOO.L #2,[A1] power is turned on. If any errors are "AOOO.L #3,[A2] encountered in RAM memory, the "Power 010022010022 INS = 5692 AOOO.L #3,[A2] Fail" LEO on the front panel will remain lit "JMP 100001\.L and the UWS will halt. The execution of 010024010024 INS = 4EF900010000 JMP.L 100001\.L the confidence tests is controlled by switch settings in the UWS and is not dependent on a functioning console ter- minal or other peripheral devices. 7·2 Signetics MICROPROCESSOR DIVISION JANUARY 1983 SMDEV 10000 568000 USER WORK STATION (UWS) COMMAND SUMMARY Abort Manual Breakpoint Assemble Map Auto Dtack Mode Clock Patch Memory Configure Patch Registers Delete Breakpoint Read PROM Delete Offset Record Delete Trace Set Breakpoint Disassemble Set Offset Display Memory Set Trace Display Registers Single Step Mode Download Single Step • Does not restrict the user to one Centronics Parallel Printer Cable Go Start Output specific peripheral device Emulation Cable Host Stop Output Footprint™ probe List Breakpoint Trigger • Uses an established 68000 format Coaxial Clock Cable List History Upload • The results of a debug session can be List Offset Verify PROM stored and retrieved at a later time Physical Characteristics List Trace Write PROM • Offers increased timing flexibility and Height: 5.22 inches FEATURES permits debugging to occur with or Width: 16.88 inches without a target system Depth: 22 inches • The UWS is designed to allow software Weight: 21 pounds development to occur on mainframes • Gives a user greater control of the Shipping weight: 31 pounds or minicomputers debugging environment • The UWS has incorporated the most Electrical Requirements desirable features of more expensive OPERATING ENVIRONMENT 117 Volts AC± 10%, 60Hz± 15% emulation systems User Supplied Required Hardware • The UWS provides the capability for both hardware emulation and One asynchronous CRT terminal with EIA RS·232 interface. Environmental Characteristics 7 Operating temperature range: O· to 40·C software execution One modem or suitable substitute that Operating humidity range: 0 to 95% • Both the serial and parallel ports may provides an EIA RS·232 interface for asyn· relative humidity with no condensation. be reconfigured to match available chronous communication with the host peripherals computer. ORDERING INFORMATION • The UWS upload/download utility accepts object records in Motorola User Supplied Optional Hardware SMDEV10000 S68000 User Work S·record format Station (UWS), 110·120 volt One Data I/O Model 19 PROM programmer 60Hz • The UWS permits object code to be or Kontron PROM programmer. either downloaded or uploaded One asynchronous serial printer with SMDEV10010 S68000 UWS Footprint™ probe, spare • The UWS can use an internal or RS·232 interface. external clock One Centronics parallel interface printer. SMDEV10015 S68000 UWS 8M Hz Emulation Cable, spare • Up to 10 concurrent breakpoints are supported Required Software SMDEV10020 S68000 UWS Cable Set, spare. Includes: One or more Signetics language BENEFITS translators. Power Cable CRT Cable • Hardware which already exists in the Host resident upload/download software Test/PROM work environment can continue to be (included with Signetics language Programmer Cable used and shared for software translators). Centronics Parallel development Printer Cable • Provides a low cost solution for Equipment Supplied Coaxial Clock Cable 68000 code development UWS with power cord User Manual DOCUMENTATION ORDERING • Reduces development and debugging time and increases user CRT Cable INFORMATION productivity Test/PROM Programmer Cable SMMAN3100 S68000 UWS User Manual SMMAN7100 S68000 UWS Reference Card Signetics 7·3 JANUARY 1983 SMSFT10000 Signetics S68000 CROSS SOFTWARE MACRO ASSEMBLER PRODUCT BRIEF FEATURES DESCRIPTION • Powerful, Motorola-compatible The Signetics 68000 Macro Assembler is a powerful assembler that assembly language combines the convenience of Motorola compatible instruction mne- • Interfaces directly to monics with an unambiguous language definition and many useful con- Signetics 68000 Pascal structs usually found only in high level languages. The Signetics 68000 • Unambiguous source Macro Assembler is a perfect complement to high level languages and language definition an excellent implementation language with capabilities such as modu- • Registers may have symbolic lar programming support, record and field data definition ability, a names source library facility that includes source only when referenced, and • Highly flexible constant assembler directives that minimize the task of parameter passing to definition subroutines. The Signetics macro facility offers normal macro features • Both symbolic and mnemonic such as parameter substitution and nesting but is not a character ori- logical operators are ented facility and does not support concatenation of symbols. The supported linkage editor for linking separately assembled modules is included in • Jump instruction format is the package. This linkage editor may also be used with the object mod- optimized automatically ules generated by the Pascal cross compiler, or to link Pascal and • Full complement of assembler assembler generated modules together. The upload and download soft- directives ware that allows host communication is also included in the package. It • "Section" directive allows is designed to interface with the Signetics User Work Station (UWS) and complete control of code and allows transfer of object code between the host computer and the UWS data placement as well as between the UWS and the host computer. • Record and Field capabilities for highly structural data definitions • Structured conditional assembly directives • Modular programming support • Source library facility • Powerful macro facility • Linkage editor and download software included 7-4 Signetics MICROPROCESSOR DIVISION JANUARY 1983 SMSFT10000 568000 CROSS SOFTWARE MACRO ASSEMBLER BENEFITS • The Signetics 68000 Macro Assembler is Motorola instruction compatible, so no extensive retraining is required for software engineers. • The modular programming support allows sharing of program modules generated by the assembler or by high level languages such as Pascal. • Sections of source code identified as libraries by the "LIB" and "ENDUB" assembler will process automatically if they are referenced. • The use of subroutines is encouraged • The conditional and duplicated by the availability of assembler direc· assembly capabilities allow maximum tives that support the definition and flexibility in source code structure. manipulation of parameter lists. OPERATING ENVIRONMENT Operating System Computer Requirements VMS any VAX-11 computer (a.) VMS V2.4 or later (b.) 64Kb of real memory per active assembler user (c.) 10Mb of disk storage RSX-11M any PDp-11 computer; (a.) RSX·11M V3.2 or later any LSI-11/23 series computer (b.) minimum 128Kb total system memory to support one assembler user; 64Kb for each additional assembler user 7 (c.) 10Mb of disk storage Contact Rikki Kirzner for further product information on computers, operating systems, media, or formats not shown. ORDERING INFORMATION Order No. Product Operating System Media SMSFT10000 S68000 Macro Assembler' VMS Half·inch magnetic tape 800 BPI SMSFT10300 S68000 Macro Assembler' RSX-11M Half·inch magnetic tape 800 BPI SMSFT10390 S68000 Macro Assembler' RSX·11M 8-inch double density diskette DOCUMENTATION ORDERING INFORMATION Order Number Product SMMAN5205 S68000 Macro Assembler Reference Manual SMMAN7211 S68000 Macro Assembler Installation Guide, RSX·11M Operating System SMMAN7210 S68000 Macro Assembler Installation Guide, VMS Operating System SMMAN3231 S68000 Macro Assembler User Guide 'Requires software license agreement. Signetics 7·5 JANUARY 1983 SMSFT16000 Signetics S68000 CROSS SOFTWARE PASCAL CROSS COMPILER PRODUCT BRIEF FEATURES DESCRIPTION • High level structured The Signetics 68000 Pascal Cross Compiler is a powerful, flexible, high programming language level programming language. It complies with the IEEE 770-81 standard • Structured data types which is based on the Pascal language developed by Niklaus Wirth in - Array, string, record, 1968. The compiler provides a highly structured environment that boolean, character simplifies program development, produces more reliable code, and in· - User·defined data types creases the productivity of the software engineer. Programming errors are minimized by complete checking of data types within modules in- • Modular programming extensions cluding user defined data types. • Assembly language program The Signetics 68000 Pascal Cross Compiler is designed to be extremely interface modular with an emphasis on portability. The compiler, itself, is a result • Complies with IEEE 770·81 of utilizing truly state-of-the-art compiler design techniques to produce standard a superior language translator. • Generates 68000 native code The Pascal Cross Compiler allows the mass storage and development • PROM·able run·time code tools available on minicomputers and mainframes to be used in the • Full listing format control creation of microprocessor software. It is not necessary to purchase ex- pensive, special purpose computers that are typically used only for • Flexible compiler option microprocessor software development. The upload/download software control provides a convenient path for object code to be sent from the host • Cross linkage editor and computer to the Signetics User Work Station (UWS) and for partially or upload/download software completely debugged object code to be saved on the disk of the host included computer. All object code is sent utilizing a protocol that includes error detection and control facilities to insure the validity of the transmitted data. 7·6 Signetics MICROPROCESSOR DIVISION JANUARY 1983 SMSFT16000 568000 CROSS SOFTWARE PASCAL CROSS COMPILER SIGNETICS PASCAL EXTENSIONS Separate Compilation - Allows modular programming and facilitates sharing of routines by multiple programs and projects. Assembly Language Interface - Permits mixing Pascal and assembly language routines for maximum performance and ease of direct hardware control. INCLUDE Facility - Facilitates sharing of source code and declarations of constants and variables by multiple programs and projects. Compile Time Switches - Provides control of compiler options such as array index checking. Assembly Code Generation - Simplifies performance tuning of critical program modules. EXAMPLE The following Pascal program is an example of the structure of a Pascal program. This program is designed to eliminate all trailing blanks from the end of each line within a file such that the line termination character occurs after the last non-blank character in the line. It illu- strates the use of subroutines, typing of variables, and loop structures. The actual implementation of input and output routines is system dependent, but the read and write statements used are those of the IEEE 770·81 standard. program compact (source, destination); const BLANK=' '; LlNESIZE= 140; type linerange= 1.. LlNESIZE; linetype = packed array[linerange] of char; var source, destination: text; line: linetype; length, cur, lastnonblank : linerange: c: char; procedure getsourceline; 7 begin length:= 1; line[length] := BLANK; while not (eoln (source)) and (length < LlNESIZE) do begin read (source, c); line[length] := c; length := length + 1 end; readln (source); if length> 1 then length := length - 1 end; begin reset (source); rewrite (destination); while not eof(source) do begin getsourceline; lastnonblank:= 1; for cur:= 1 to length do if IIne[cur] < > BLANK then lastnonblank := cur; for cur := 1 to lastnonblank do write (destination, line[curl]); writeln (destination) end end. Signetics 7·7 MICROPROCESSOR DIVISION JANUARY 1983 SMSFT16000 S68000 CROSS SOFTWARE PASCAL CROSS COMPILER BENEFITS • Signetlcs Pascal provides a standard· ized environment for developing soft· ware for the 68000. • It allows individuals familiar with Pascal to be immediately productive. • It is easy to learn since the IEEE 770·81 standard it adheres to is based on the Niklaus Wirth software engi· neerlng teaching vehicle. • It has few machine specific extensions to maximize portability. • It improves productivity by allowing source code interlisted as comments storage allocation for maximum use of multiple programs and projects to to minimize the task of performance target system resources. share both source and object code. tuning in real time systems. • An object module .Iinker with library • An assembly language interface is pro· • A full range of listing controls is pro· capability is included with the Pascal, vided to allow direct manipulation of vided to enhance maintainability of the which links together Pascal and hardware and maximize the perfor· source code. assembly language modules and mance of time critical modules. • The compiler generated code is opti· allows specification of starting • The Pascal compiler can optionally mized in constant and sub·expresslon addresses of all modules. generate assembly language with usage, array indexing, jumps, and OPERATING ENVIRONMENT Operating Computers Requirements System VMS any VAX·ll computer (a.) 64Kb of real memory per active compiler user (b.) VMS V2.4 or later (c.) 10Mb of disk storage RSX·llM any PDp·l1 computer; (a.) RSX·llM operating system V3.2 or later any LSI·11/23 series computer (b.) minimum 128Kb total system memory to support one compiler user; 64Kb for each additional compiler user (c.) 10Mb of disk storage ORDERING INFORMATION Order Number Product Operating System Media SMSFT16000 PASCAL 68000' VMS Half·inch magnetic tape 800 BPI S68000 Macro Assembler' SMSFT16300 PASCAL 68000' RSX·llM Half·inch magnetic tape 800 BPI S68000 Macro Assembler' SMSFT16390 PASCAL 68000' RSX·llM 8·inch double density diskette S68000 Macro Assembler' Other host comp~ters, operating systems, or alternate media contact factory. DOCUMENTATION ORDERING INFORMATION Order Number Product SMMAN5200 S68000 Pascal Language Reference Manual SMMAN5205 S68000 Macro Assembler Reference Manual SMMAN7200 S68000 Pascal Installation Guide, VMS Operating System SMMAN7210 S68000 Macro Assembler Installation Guide, VMS Operating System SMMAN7201 S68000 Pascal Installation Guide, RSX·l1 M Operating System SMMAN7211 S68000 Macro Assembler Installation Guide, RSX·llM Operating System SMMAN3230 S68000 Pascal Compiler User Guide SMMAN3231 S68000 Macro Assembler User Guide • Requires software license agreement. 7.8 Signetics Section 8 Appendices Signetics I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I MICROPROCESSOR DIVISION JANUARY 1983 PACKAGES-GENERAL INFORMATION INTRODUCTION Plastic Only 11. Lid Material a. Nickel or tin plated nickel. weld seal. The following information applies to all 5. Lead material: Alloy 42 (Nickeiliron AI· b. CeramiC, gl.s. 8eal. packages unless otherwise specified on in- loy) Olin 194 (Copper Alloy) or equiv' c. ASTM alloy F·15 or equivalenl. gold plated, dividual package outline drawings. alents, solder dipped. alloy seel. 6. Body material: Plastic (Epoxy) d. BeO Ceramic with glas8 seal. General 7. Round hole in top corner denotes lead 12. Signetics symbol, angle cut, or lead tab 1_ Dimensions shown are metric units (mil- No.1. denotes Lead No.1. limeters), except those in parentheses 8. Body dimensions do not include molding 13. Recommended minimum offset before which are English units (inches). flash. lead bend. 2. Lead spacing shall be measured within 14. Maximum glass climb .010 inches. this zone. HermetiC Only 15. Maximum glass climb or lid skew is .010 a. Shoulder and lead tip dimensions are to inches. 9. Lead material centerline of leads. 16. Typical four places. a. ASTM alloy F'15 (KOVAR) or equivalent- 3. Tolerances non-cumulative gold plated, tin plated. or solder dipped. 17. Dimension also applies to seating plane. 4. Thermal resistance values are deter· b. ASTM alloy F-30 (Alloy 42) or equivalent- mined by utilizing the linear temperature tin plated, gold plated or solder dipped. dependence of the forward voltage drop c. ASTM alloy F-15 (KOVAR) or equivalent- across the substrate diode in a digital gold plated. device to monitor the junction tempera- 10. Body Material ture rise during known power applica- a. Eyelet, ASTM alloy F-15 or equivalent- tion across VCC and ground. The values gold or tin plated. gla .. body. are based upon 120 mils square die for b. Ceramic with glass seal at leads. plastic packages and a 90 mils square c. BeO ceramic with glass s8al at leads. die in the smallest available cavity for d. Ceramic with ASTM alloy F·30 or equiv- hermetic packages. All units were sol- alent. der mounted to P.C. boards, with stan- dard stand-off, for measurement. THERMAL RESISTANCE NO. OF LEADS 8 JA 8 JC Plastic DIP 14 150 65 16 24 28 160 106 116 75 49 53 8 40 70 50 Ceramic DIP 14 95 25 16 90 25 28 60 25 40 55 25 For other ratings not listed here, contact your nearest Signetics sales office. Signetics 8·1 MICROPROCESSOR DIVISION JANUARY 1982 PACKAGE OUTLINES N PACKAGE - PLASTIC (ill-PIN) I PACKAGE - HERMETIC (is·PIN) I~[~~]~~ I 20,10 tB1S) 19.93 (.7861 I J:;~~~~1~~~.~51~.5~'0!1~~.~r;~~~~~~::r~~~5~:~~1~8.~'3~1~.3~~~1~ 7.371.290 ~ NOTE 2 0.31 (.0121 T - - f - - j 0.20 (.OOB) I 8.741.3441.' 7.111.2801 2.79(.110) 2.291.0801 NON· CUMULATIVE 8·2 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PACKAGE OUTLINES N PACKAGE - PLASTIC SLIM LINE (24·PIN) LEAD NO. 1 r- 10.41(.410) "9.§'i'T.39o') 0.38(.015) 0.25(.010) I~I I-' 10.16(.400)--1 2.79(.110) 2.29T.ii9O) NON- CUMULATIVE 8 Signetics 8·3 MICROPROCESSOR DIVISION JANUARY 1982 PACKAGE OUTLINES N PACKAGE - PLASTIC (28·PIN) ~ 1.12(.0441 ~ 2.79 (.110) 2.161.0861 0.38 (.0151 2.2iT.09Oi 1.65 (.0651 NON· CUMULATIVE I PACKAGE - HERMETIC (28·PIN) rlEADNO.1 O.........-. . . . . . . .(JI ........... ~~~..~..~~~~~~~l j(. 14.n 580 I 36.32 (1.4301----11.78 (.070tt'15.74 (.6201 35.05(1.3801~ 14.98 (.5901 13.46(.5301 ~ J 12.95 (.5101 -.l..- 1,13.46(.530I 12.95 (.5101 1 ~ 0.31 (.01~!~ 0.20 (.0081 :-r- NOTE 2 .--l ~~ 0.53 (.0211 1.65 (.065) 16.36 (.6441-1 0.76 (.030) I' 14.n (.5801 -I 0.38(.0151 2.79 (.1101 ~ 4.45(.1751 1.52 (.0601 2.29 (.0901 2.03 (.OSOI 3.18 (.1251 1.14(.0451 NON· CUMULATIVE 8·4 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PACKAGE OUTLINES N PACKAGE - PLASTIC (40·PIN) LEAD NO. 1 17.651.665) 15.2iT.6Ooi I PACKAGE - HERMETIC (40·PIN) 8 D 3'05l'ZO) 2.031.060) ~15'741'620) 14.981.5901- 13'461'530) I • ~~1.012) ~~;:n:i'iJ~dii::R:i;a:EFi:1b=U;U=;:ru;:r;:;;l ....l_ _ _ _......_ _ "'1 95 51 -.------~f~lr .-.L-. NOTE 2 NON CUMULATIVE -:....-----.,;-f- l 16.361.644) l- i4.13T.68Oi -I 4.451.175) 3.i'iT.'i25i 0.201.0081 Signetics 8·5 MICROPROCESSOR DIVISION JANUARY 1983 PACKAGE OUTLINES I PACKAGE - HERMETIC (48·PIN) '.:::::::::[~:::J:::::::::{~ _ jt ' m . . ~~ 80.35 (2.3781 [=fl~~=W1fiDiifiDFilliViiFinFniiiT'i1ir'm~=""""--~ .. ,~- ~~_II- ~ ~ 0.100Bse ~~pq I.. ~~~ _1- • ~~. _.1 4.32(0.1801 1.524 (0.0801 I 3.05 (0.1201 -1- 4.19(0.1651 15.65(0.6161 ~ 2.54(0.1001 14.99(0.590} 0.361 (0.0151 I PACKAGE - HERMETIC (84·PIN) l.:::::::::::::[:;:;j:::::::::::::i~ 80.52 (3.170} I 4.32 (0.1701 C=UU[jD[j~f~fWm"1friFt~inIi'illFiIIi9IIFiIIi"illi"ilIIi"3Il'~:==-t=. 1.&2 (O.D8Ol nnnnnnnnnnnnnnnnI I .; ~L .. FJ=E:I ~ 3.05(0.1201 jt~ ~ 0.78(0.030} 0.53 (0.0211 ~~ 2.&4BSC 0.100 Bse - - 4.19(~.1851 I' 2.&4(0.1001 TO.2O(O.o08l -I 23.11 22.81 (0.910} (0.8901 NOTE: 1. If solder dipped terminals used, terminal dimension tolerances may beine,eased by.OO1. Signetics MICROPROCESSOR DIVISION JANUARY 1983 SALES OFFICES MICHIGAN CANADA PENNSYLVANIA SIGNETICS Farminaton HHis Etobicoke Tech-Trek, ltd_ PiltsbUfJ Phone: (313) 476-1610 Cove & Newman Co_ Phone: (416) 626-6676 Phone: (412) 531-2002 MINNESOTA Pointe Claire HEADQUARTERS Tech-Trek, Ltd_ UTAH 811 East Arques Avenue Edina Phone: (514) 697-3385 P.O_ Box 409 Phone: (612) 835-7455 Salt Lake City Sunnyvale, California 94086 CONNECTICUT Electrod~ne Phone: (408) 739-7700 NEW JERSEY Yalesville Phone: 01) 486-3801 Parsippany Kanan Associates Phone: (201) 334-4405 Phone: (203) 265-2404 WASHINGTON Bellevue ARIZONA NEW YORK ILLINOIS Western Technical Sales liverpool Schaumburg Phone: (206) 641-3900 Phoenix Phone: (315) 451-5470 Micro-Tex, Inc_ Phone: (602) 265-4444 Melville Phone: (312) 885-ll31 Spokane Phone: (516) 752-0130 Western Technical Sales CALIFORNIA Phone: (509) 922-7600 Wa,~ingers Falls IOWA Canoga Park one: (914) 297-4074 Cedar Rapids WISCONSIN Phone: (213) 340-1431 Comstrand Inc_ NORTH CAROLINA Phone: (319) 377-1575 Waukesha cu~ertino Raleigh Micro-Tex, Inc_ hone: (408) 725-8100 Phone: (414) 542-5352 Phone: (919) 851-2013 KANSAS In~ewood Kansas City hone: (213) 670-1101 OHIO B_ C. Electronic Sales Irvine Worthinaton Phone: (913) 342-1211 Phone: (71~ 833-8980 Phone: (614) 888-7143 (213) 588-3 81 MASSACHUSETTS San Diego PENNSYLVANIA Reading FOR SIGNETICS Phone: (714) 560-{)242 Horsham PRODUCTS Phone: (215) 443-5500 Kanan Associates COLORADO Phone: (617) 944-8484 WORLDWIDE: TENNESSEE Aurora Greeneville MICHIGAN Phone: (303) 751-5011 Phone: (615) 639-0251 Bloomfield Hills ARGENTINA Enco Marketing Philips Argentina S_A. CONNECTICUT TEXAS Phone: (313) 642-{)203 Buenos Aires Danbury Phone: (203) 748-3722 Austin Phone: (512) 458-2591 Richardson MINNESOTA Minnea~olis Phone: 541-7141 AUSTRALIA Philips Industries Holdings Ltd_ 8 FLORIDA Phone: (214) 644-3500 High Technolofl Sales lane-Cove, N.S,W. Clearwater Phone: (612) 8 8-8088 Phone: 61-2-427-{)888 Phone: (813) 796-7086 CANADA AUSTRIA SIGNETICS CANADA, lTD_ MISSOURI Osterrichische Philips Bauelemente Li~thouse Point Etobicoke, Ontario Wien hone: (305) 782-8225 Phone: (416) 626-6676 Bridgelon B. C. Electronic Sales Phone: 43-222-93-26-2 SIGNETICS CANADAblTD.llTEE, Phone: (314) 291-1101 BELGIUM GEORGIA Pointe-Claire, lIfe ec N, V, PhHips & MBlE Atlanta Phone: (514) 6 7-3385 NEW JERSEY Bruxelles Phone: (404) 953-{)067 Phone: 32-02-242-7400 East Hanover Emtec Sales, Inc. BRAZIL ILLINOIS Phone: (201) 428-0600 Ibrape Sao Paulo SChaumbu~ Phone: 55-{)1l-211-2600 Phone: ( 12) 843-7805 REPRESENTATIVES NEW MEXICO Albuquer~ue CHILE INDIANA Philips Chilena S,A, Power nterrrises Kokomo ALABAMA Phone: (505 298-1918 Santiago Phone: (317) 453-6462 Phone: 56-2-39-4001 Huntsville Electronic Sales, Inc. NEW YORK COLOMBIA KANSAS Phone: (205) 533-1735 Sadape S,A, Ithaca Overland Park ARIZONA Bob Dean, Inc. Bogota D.E_ Phone: (913) 341-8181 Thorn luke Sales, Inc. Phone: (607} 257-1111 Phone: 600 600 Phone: (602) 941-1901 Melville DENMARK MARYLAND Emiec Sales, Inc. CALIFORNIA Miniwatt AIS Glen Burnie Phone: (516) 752-1630 Kobenhavn N.V. Phone: (301) 787-0220 los Gatos Phone: 45-{)1-69-1622 Sierra TeChnOlon Phone: (408) 3 -1626 OREGON MASSACHUSETTS FINLAND San Diego Hillsboro Oy PhHips Ab Woburn Mesa En~neerinl Western Technical Sales Helsinki Phone: (617) 938-1000 Phone: ( 14) 27 -8021 Phone: (503) 640-4621 Phone: 358-l-7271 Signefics 8·7 MICROPROCESSOR DIVISION JANUARY 1983 SALES OFFICES FRANCE ITALY PERU TAIWAN R.T.C..La RadIotechniqu.compelec Phllip's S.p.A. Cadesa Philips Taiwan, LId. Pans Milano . lima Taipei Phone: 33-1·355-4499 Phone: 39·2-6994 Phone: 326070 Phone: 886-2·563-1717 GERMANY JAPAN PHILIPPINES THAILAND Valvo ~etics Japan, Ltd. Philips Industrial Dev., Inc. PhH~S Electrical Co. Hambu1 Phone: 9-4()'3296-19 okyo Phone: 813-230-1521 Makati.ftizal Phone: 868951 0'T ailand LId. Bangkok Phone: 233-6330-9 GREECE KOREA PORTUGAL Phlire $.A. Hellenlque PhiUps Elect Korea LId. PhHips Portuguesa SARL TURKEY At ens seoul lisboa Turk Phili§S Phone: 9215111 Phone: 7944202 Phone: 35H9-68-3121 Ticaret A.. HONG KONG SINGAPORE Istanbul MALAYSIA Phone: 43 59 10 Philips Honl KOIII. Ltd. Philips Malaysia $dn. Berhad Philips Project Dev. Pte., Ltd. Kwai chunf Kuala lumpur Sinl8Pore UNITED KINGDOM Phone: 85 .(1·245121 Phone: 77 44 11 Phone: 65-253-8811 Mullard, LId. INDIA MEXICO london SOUTH AFRICA Phone: 44-01·580-6633 Pelco Electronics & Elect. Ltd. Electronica S.A. de C.V. E.D.A.C. (PTY~ Ltd. p. Bombay Mexico OJ. Johannesburg Phone: 91·22·221.(112 Phone: 905·533·1180 UNITED STATES Phone: 27-11-614-2362 Signetics International Corp. INDONESIA NETHERLANDS Sunnyvale. California P.T. Philips-Ralill Electronics Nederland B.V. SPAIN Phone: (408) 739-7700 Jakarta Eindhoven Miniwall U. Phone: 716 131 Phone: 31-4()'79-3333 Barcelona URUGUAY Phone: 301 63 12 Luzilectron S.A. IRELAND NEW ZEALAND Montevideo Philips Electrical Ltd. Philips Eleetricallnd. Ltd. SWEDEN Phone: 91 43 21 Dublin Auckland A.B. Elcoma Phone: 353-1-69-3355 Phone: 64·9-894-160 Stockholm VENEZUELA Phone: 46.(18-67·9780 Industrias Venezolanas ISRAEL NORWAY Philips S.A. Ra~C Electronics. Ltd. Norsk A/S PhHips SWITZERLAND Caracas elAviv Oslo PhHips U. Phone: 58-2·36-0511 Phone: 972·3-47715 Phone: (02) 680200 Zurich Phone: 41-01-988-2211 8·8 Signetics