~ro!lt, chip enable (CE), byte ~.E=1~~~~__; select (BYTE), and readlwrite 1i'i1W) inputs (PROCESSOR SHOULD LOAD TxDB) before each data bus transfer operation. During a read operation (R/W = 0>, the leading edge of DB EN will initiate an MPCC read cycle. The addressed register will place Its contents on the data bus. If BYTE = 1, the 8-bit byte is placed on DB15-08 or DB07-00 depending on the H/L status olthe register addressed. Unused bits In ROSRL are zero. If BYTE = 0, all 16 bits (DB15-00> TxBE: 1 (pROCESSOR SHOULD contain MPCC Information. The trailing CLEAR TEOM AND DROPTxI!) edge of OBEN will reset RxOA andlor RxSA If RDSRL or ROSRH is addressed respec- tively. DB EN acts as the enable and strobe so that the MPCC will not begin its internal read TxA = 0 - - - - - - - - i cycle until OBEN is asserted. During a write operation (~IW = 1), data Figure 7 must be stable on DB,5-08 andlor DB07-00 prior to the leading edge of DBEN. The and retransmit the message to recover This LRC or CRC, TEOM should be set only If stable data is strobed into the addressed is not compatible with IBM's BISYNC, so SYNC's are required at the end of the register by DBEN. TxBE will be cleared if the that the user must not underrun when sup- message block. addressed register was TDSRH or TDSRL. porting that protocol. Special Case CRC-16, if specified by PCSARs-,o, IS gen- The capability to transmit 16 spaces IS pro- erated on each character transmitted from vided for line turnaround in half duplex TDSRL 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 TEOM, clearing TEOM 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 TEOM = 1. If SYNCs are not PROGRAMMING desired after CRC-16 transmission, the pro- Prior to initiating data transmission or re- cessor should clear TEOM 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. Signetics 1·23 MICROPROCESSOR DIVISION JANUARY 1982 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 A2 Al AO REGISTER BYTE = 0 16-BIT DATA BUS = DB15 - DBOO a a x RDSR a 1 x TDSR 1 a x PCSAR 1 1 X PCR' BYTE = 1 8-BIT DATA BUS = DB7_0 or DB 15-8" a a a RDSRl a a 1 RDSRH a 1 a TDSRl a 1 1 TDSRH 1 a a PCSARl 1 a 1 PCSARH 1 1 a 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 pms must be tied together Table 4 MPCC REGISTER ADDRESSING 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 (bits) a a a 8 a a 1 1 a 1 a 2 a 1 1 3 1 a a 4 1 a 1 5 1 1 a 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 Table 5 PARAMETER CONTROL REGISTER (PCR)-(R/W) 1-24 Signefics MICROPROCESSOR DIVISION JANUARY 1982 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 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 (TxU 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 secondary 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, REaM 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 10 the middle of a message will not be stripped SS/GA = 0, presents any SYNC's after the mltlal two SYNC's to the processor 14 PROTO Determmes 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 6 PARAMETER CONTROL SYNC/ADDRESS REGISTER (PCSAR)-(R/W) BIT NAME MODE FUNCTION 00-07 TxDB BOP/BCP Transmit Data Buffer. Contains processor loaded characters to be serialized 10 TxSR and transmitted on TxSO. 08 TSOM Transmitter Start of Message. Set by the processor.to mitiate 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._ 1o , 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 (,f specified) begins Table 7 TRANSMIT DATA/STATUS REGISTER (TDSR) (R/W except TDSR 15) Signetics 1-25 MICROPROCESSOR DIVISION JANUARY 1982 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 BIT NAME MODE FUNCTION 09 TEOM Transmit End of Message. Used to terminate a transmitted message. 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 IIDLE = 0 or 1). Clearing TEOM prior to the end of CRC-16 transmission (when TxBE = 1) causes TxSO to be marked following theCRC-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 IIDLE = 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 -1/2 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 IIDLE = 0 or 1) BCP SYNC's or MARK's are sent as fill characters IIDLE = 0 or 1), For IDLE = 1 the last character before underrun is not valid. Table 7 TRANSMIT DATA/STATUS REGISTER (TDSR) (R/W except TDSR 15) (Cont'd) 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. 08 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 ABORT/GA 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,or droppingof RxE. 12-14 ABC BOP Assembled Bit Count. Specifies the numberof bits in the last received data character of a message and should be exam ined 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 resiaual cnaracter is rignt justified In RDSRL. 15 RERR BOP/BCP Receiver Error indicator should be examined by the processor when REOM 1 in BOP, 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/0's as specified by PCSARs-10: RERR = 1 indicates FCS error (CRC ¥ FOB81 ¥ 01 RERR = a indicates FCS received correctly (CRC = FOB /=01 CRC-16 preset to a's on 8-bit data characters specified by PSCARs-10: RERR = 1 mdicates CRC-16 received correctly (CRC = 01. RERR = a indicates CRC-16 error (CRC ¥ 01 VRC specified by PCSARs-1o: RERR = 1 indicates VRC error RERR = a indicates VRC is correct Table 8 RECEIVER DATA/STATUS REGISTER (RDSR)-(Read Only) 1·26 Signetics MICROPROCESSOR DIVISION JANUARY 1982 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 ABSOLUTE MAXIMUM RATINGSI PARAMETER RATING UNIT TA Operating ambient temperature2 o to +70 ·C TSTG 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 CHARACTERISTICS TA; O·C to +70·C, Vcc; +5V ±5%4,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"A 2.4 Icc Power supply current Vcc; 5.25V, TA - O·C 150 mA Leakage current "A ilL Input VIN ; 0 to 5.25V 10 IOL Output VOUT; 0 to 5.25V 10 Capacitance pF CIN Input VIN; OV, f ; lMHz 20 COUT Output VOUT; OV, I ; lMHz 20 AC ELECTRICAL CHARACTERISTICS TA; O·C to 70·C, Vcc ; 5V ± 5%4,5.6 2652 2652-1 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 m' 200 m' Delay time ns too Data bus (read) 200 170 ITxo Transmit serial data 325 250 tOBENO DB EN to DBEN delay 200 200 tOF Data bus Iloat time (read) 150 150 ns f Clock (RxC, TxC) frequency 1.0 2.0 MHz tCLKl Clock high (MM - 0) 340 165 ns tCLKl Clock high (MM; 1) 490 240 tCLKO Clock low 490 240 Signetics 1·27 , MICROPROCESSOR DIVISION JANUARY 1982 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 NOTES 1 Stresses above those listed under "Absolute MaXimum Ratings" may cause Parameters are valid over operating temperature range unless otherwise speCified permanent damage to the deVice. This IS a stress ratmg only and functional operation All voltage measurements are referenced to ground All time measurements are at 0 BV of the deVice at these or at any other condition above those indicated In the operation or 2.0V. Input voltage levels for testing are O.4V and 2.4V. sections of this specification IS not Implied 8 Output load CL .. 100pF. 2 For operating al elevated temperatures the deVice must be derated based on +150°C 7 m = TxC low and applies to writing to TDSRH only maximum JunctIOn temperature and thermal resistance of 60 0 elW Junctton to ambient (lQ ceramiC package) 3 This product Includes circuitry specifically deSigned for the protectron of Its Internal 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 DBEN':.._ _ _ _ ~===::==~------- tDBEN_ RESET-1='RES=f-- D -===+V-==-....-:::=t-V--::==:-- Dor 15 ("EAD)'_===+"":~~'1'"....;.;=t-"'I':-:'-=DF:,FL;;O;;;AT.:..;';.;;NG=-_ ---V+------t-V------ (WRITE)_..,-_++______ DocrD15 t-II'--,._____ 'D" CLOCK TxSO Vi A ----~~I~----------+------------- I-TXD_I I i I R'O,I 1 I / l-tcLKO I -:-tCLK1- . . .____ , ...J I I I I l~tRxs-l_tRXH-I O,SI ~! X~----- I : I 1-28 Signetics MICROPROCESSOR DIVISION JANUARY 1982 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 TIMING DIAGRAMS ICont'dl TRANSMIT-START OF MESSAGE T = 1.S0 TxBE DBEN T>. _ _...J T,A _ _ _ _ _ _..1 NOTES SYNC may be 5 to 8 bits and will contam panty bit as specIfied TxA goes high relative to TxC nSlng edge after TSOM has been set and TxE has been raised 3 TxBE goes low relatIVe to DBEN fallIng edge on the fIrst write transfer Into TDSA. It IS reasserted 1 TxC time before the 'Irst bit of the transmitted SYNC/FLAG TxBE then goes low relatIVe to DBEN failing edge when writing mto TDSRH and/or TDSRL It IS reasserted on the rasing edge of the TxC that corresponds to the transmlsston afthe last bit of each character, except In BOP mode when the CRC IS to 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 -----~---~----~--~ RESET TEOM DB EN TxE 5 r-j-----r---- "A~6------------------------------------------------------~,·--------- \I NOTES 4 TxBE goes low relative to the failing edge of OBEN corresponding to loading TOSAH/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 FLAG) 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. Signetics 1·29 MICROPROCESSOR DIVISION JANUARY 1982 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 TIMING DIAGRAMS (Cont'dl TRANSMIT TIMING-END OF BCP MESSAGE T)[50 NEXT TO LAST CHAR LAST CHAR MARK T~BE~ LOAD LAST CHAR SET TEOM RESET TEOM DBEN J""--__. . .nl...._ _ _--InI...._ _ _ _ _ _ _ __ T,E 1------------------------ TxA NOTES r--------- 7 When 2652 generated CRG 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 fast character' When CRG IS required, TxE must be dropped before CRC transmiSSion IS complete Otherwise, the contents 01 TxDB will be shifted out on TxSO This faCilitates transmiSSion of con- tiguous messages TRANSMIT UNDERRUN T,C T.U~ _ _____________~SETTSOM DBEN 11-- NOTES 8 TxU goes active relative to TxC failing edge If TxBE has not been serviced after n-1/2 TxC times (where n = transmit character length) TxU IS reset on the TxC failing edge follOwtng 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 tnto the TxDB 1-30 Signetics MICROPROCESSOR DIVISION JANUARY 1982 ~ MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 I ~ TIMING DIAGRAMS (Cont'dl RECEIVE-START OF MESSAGE I R,A TO BE READ -r+----...., 1ST CHAR READY -r---...., 2NO CHAR READY TO BE READ OBEN SIF" ~......_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ R.E J NOTES 9 RxA goes high relative to failing 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 RxDB (BOP primary station mode) c Character following FLAG IS In AxDB and character matches the secondary station address or All Parties Address (BOP secondary station model 10 RxDA goes high on Rxe failing edge when a character In RxDB IS ready to be read It comes up before RxSA and goes low on the failing edge of DB EN when RxDB IS read 11 S/F goes high relative to riSing edge of Rxe anytime a SYNC (BCPl or FLAG (BOP) IS detected RECEIVE END OF MESSAGE ~-------------------------- 1-------------------------------_· RI(A 14 1------------, NOTES 12 At the end of a BOP message, RxSA goes high when FLAG detection (S/F = 1) forces REaM to be set Processor should read the last data character (ROSRL) and status (ROSRH) which resets RxDA and RxSA respectively For BCP end of message, RxSA may not be set and SI F = a The processor should read the last data character and status 13 RxE must be dropped for BCP with non-contiguous messages It may be left on at the end of a BOP message (see BOP Receive Operation) 14 RxA IS reset relative to the failing edge of Rxe after the closing FLAG of a BOP message (REOM = 1 and RxSA actIve,) or when AxE IS dropped Signetics 1·31 MICROPROCESSOR DIVISION JANUARY 1982 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 TYPICAL APPLICATIONS 2652 MPCC MICROPROCESSOR INTERFACE r RESET I~ Bb- T5 BUFFER T,C PO" DATA BUS '"'1..::.1 8 BIT 080.7 MPCC "'C -G- SYNCHRONOUS uP 2652 MODEM B.- ADDRESS CONTROL A2-G, AIW DBEN CE 0-me- lxSO RxSI -B-- -G- R.. T,E RTS, CTS, DTR, OS A, OCD MODEM DCD CTS '---- CONTROL LOGIC NOTES 1 Possible ~p mterrupt requests are RxDA, RxSA, TxBE, TxU 2 Other 2652 status signals and possible uses are S/F hne Idle indicator, frame delimiter RxA handshake on RxE, Ime turn around control TxA handshake on TxE, hne turn around control 3 Line Drivers/Receivers (LD/LR) convert EIA to TTL voltages and vice-versa 4 ATS should be dropped after the CAe (Bep) or FLAG (BOP) has been transmitted ThiS forces CTS 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 ~~ RDREQ ~} DB U .. OO ~~ DATA BUS 1 DATA BUS WORD COUNT RaDA A"" ADDRESS PTR TO PAofESSOA A,E I R/W CONTROL I RaSA WRREQ T,A TaBE OMA CONTROLLER .... T,E T,U PROCESSOR (P) AND SUPPORT LOGIC -A,OA -T,BE AIW MEMORY S/F 1 INITIALIZES 2652 2 SETS/RESETS TSOM, A2·AO TEOM 2652 BYTE 3 RESPONDS TO ADDRESS AND RESET RISA CONTROL l!IW CE MM DBEN . ADDRESS, RIW CONTROLS ~ A,C noc t J~oAL 1 RxSl T.sO ADDRESS, RM, CONTROL ADDRESS, CEo RM , 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 1·32 Signetics MICROPROCESSOR DIVISION JANUARY 1982 MULTI-PROTOCOL COMMUNICATIONS CONTROLLER (MPCC) SC2652 TYPICAL APPLICATIONS (Cont'd) CHANNEL INTERFACE COMPUTER COMPUTER MPCC MPCC OR 2652 OR 2652 TERMINAL TERMINAL TxSO G--G--- RxSI No Modem-DC Baseband Transmission 2652/2653 INTERFACE TYPICAL PROTOCOLS: BISYNC, DDCMP, SDLC, HOLC INTERRUPTS TxBE TxU RxDA RxSA U 087 - DBO II 2652 MPCC r--- hO A2 ~R.D A1 AD I - TxC R/W DBEN f-+- Rxe CPU CE PBOBO 4 CEO A1 2653 PGC Fi/w AO CE1 f iNf I t5V (OPEN DRAIN) Signetics 1·33 MICROPROCESSOR DIVISION JANUARY 1982 POLYNOMIAL GENERATOR CHECKER (PGC) SC2653 DESCRIPTION Communications Interface (EPCI). When PIN CONFIGURATION The Signetics 2653 Polynomial Generator used in BISYNC modes with the 2661, soft- Checker (PGC) is a polynomial generator ware requirements are minimized by the Vee checker I character comparator circuit that 2653-2661 control character comparisons, complements a receiver Itransmitter (R/T or character sequence comparisons, and auto- USART I USRT I UART) in the support of matic OLE insertion I detection. character oriented data link controls. Table Other bus oriented R/Ts can be interfaced 1 defines many of the more commonly used to the PGC with a minimum of external cir- PGC terms and abbreviations. 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 TIL compatible, the PGC which performs block check char- operates from a single + 5V supply and is acter (BCC) and parity (VRC) genera- contained in a 16 pin dual in line package. TOP VIEW tion I checking, single character detection, and two character sequence detection. FEATURES Since the PGC operates on parallel charac- • Parallel Block Check Character ters, the data transmission format may be accumulation/checking: CRC-16, APPLICATIONS serial (synchronous or asynchronous) or CRC-12, LRC-8 • Character oriented data link control: parallel. • BISYNC normal and transparent modes -dedicated to one USART /USRT There are four modes of BCC accumulation • Automatic or single character accumu- -multiplexed among several and each mode can select one of three poly- lation modes USART/USRTs nomials to compute the BCC. In the BISYNC • Character detection - up to 128 charac- • Automated BISYNC with 2661 (minimal normal and transparent modes, the PGC de- ters software Intervention) termines which characters are to be accu- • Two character sequence detection; ex- • acc and VRC generation / detection on mulated and which characters are to be ex- amples: DLE-STX, ACK 0, ACK 1, a block of memory or peripheral data cluded 'rom the accumulation. The block WACK, RVI, DISC, WBT • Programmable character array compa- terminating characters and the initiation and • 6, 7, or 8-bit characters rator termination of BISYNC transparent text can • VRC generation / checking on data bus be detected and an interrupt generated. The • Four maskable Interrupt conditions single interrupt output represents the inclu~ • Four classes of characters BLOCK DIAGRAM sive OR of four maskable status conditions. • Internal power-on reset The PGC consists 01 six major sections. • Maximum character accumulation rate These are the operation control, character In the automatic accumulation mode, all of 500 kHz (4 Mbps) class array, OLE ROM, character register, characters are accumulated while the single • Directly compatible with Signetics BCC and parity generators, and BCC regis- accumulate mode requires a specific accu~ 2651, 2652 and 2661 ters. These sections communicate with mulation command for each character to be • No system clock required each other via an internal data bus and an accumulated. • TTL compatible Inputs and outputs internal control bus. The internal data bus Character accumulation control and charac- • Single 5V supply interfaces to the CPU data bus via a data ter comparisons are facilitated by a charac- • la-pin dual In line package bus buffer. ter class array which places each of 128 characters into one of four character ORDERING CODE classes. The four classes are normal, COMMERCIAL RANGES SYN I BISYNC not included, block terminat- PACKAGES VCC = 5V ± 5%, TA = O"C to 70"C ing character (BTC) I search character (SC), and secondary search character (SSC). Ceramic DIP SC2653CSI16 Additional PGC applications include off-line Plastic DIP SC2653CSN16 R IT operation where the BCC is generated on data not sent to the R/T, BCC multiplex- ing by sharing the PGC among several R/Ts and reading I writing the partial BCC accu- mulation on a character by cnaracter basis, VRC generation I 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 compatible with the Signetics 2651 Programmable Communications Interface (PCI) and 2661 Enhanced Programmable 1-34 MICROPROCESSOR DIVISION JANUARY 1982 I I ~ POLYNOMIAL GENERATOR CHECKER (PGC) SC2653 BLOCK DIAGRAM 00-07 .1 DATA BUS K .1 CHARACTER REGISTER BUFFER DATA BUS + r-- I l'· ~ 8 \. Dl.E DETECT OPERATION CONTROL '--- ace AND VRC GENERATION UNIT ~i 0 , MOOE REGISTER , COMMAND REGISTER I ~'"I w STATUS REGISTER I ~ J. _.t 0 ~ ~ § BCCUPPER II acc LOWER I BI"I B" CHARACTER CLASS i~ II U ARRAY ~ " I PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION VCC 16 I +5V: Power supply GND a I Ground Al-AO 11,12 I Address LInes: Used to select internal PGC registers or character class array Fi/w 13 I Read/Write: Read command when low, write command when high CEO 15 I Chip Enable: Connected to chip enable input of a receiver Itransmitter (R IT) circuit. It is used to strobe data being transferred between the CPU and the Fi IT into the PGC character register. CE1 14 I ChIp Enable: Used in conjunction with the Fi I W signal to enable the transfer of data between the PGC and the CPU or DMA controller and to initialize the PGC registers. 07-00 9,7-1 1/0 Data BU8: a-bit three-state bidirectional bus used to transfer data to or from the PGC via CEO or CE 1. All data, mode words, command words, and status information are transferred on this bus. DO is the least significant bit; 07 is the most significant bit. iNi' 10 0 Interrupt: Open drain active low interrupt output that signals the CPU that one or more maskable conditions are true: acc error, VRC error, BTC I SC detect, SSC detect. The true conditions can be determined by reading the status register which in turn deactivates INT. A power on, clear BCC, or master reset command causes INT to be inactive (high). Signetics 1·35 MICROPROCESSOR DIVISION JANUARY 1982 POLYNOMIAL GENERATOR CHECKER (PGC) SC2653 Table 1. GLOSSARY Operation Control Unit This functional block stores configuration TERM/ABBREVIATION DEFINITION and operation instructions from the CPU and BCC Block check character generates appropriate signals to control the device operation. It also contains read and BTC Block terminating character write circuits to permit communications be- SC Search character tween the CPU and the PGC registers via SSC Second search character (preceded by OLE) the data bus. The mode, command, and sta- CRC-1S X 16 + X 15 + X2 + 1 divisor, dividend pre-cleared tus registers are in this logic block. CRC-12 X12 + X" + X3 + X2 + X + 1 divisor, dividend Character Register pre-cleared Characters to be considered for BCC gen- LRC-8 Horizontal parity on least significant 7 bits; vertical eration, parity generation and checking, or parity on most significant bit character comparisons are loaded into this register by either CEO or CE 1. This register VRC Vertical redundancy check (character parity) serves as an input to the BCC and VRC gen- R/T Receiver/transmitter circuit. Also known as erator, where the accumulation and parity USART / USRT / UART / PCI/ MPCC generation takes place. The character reg- BISYNC IBM binary synchronous communications (BSC), ister also sarves as the input for character ANSI X3.28, ISO 1745 class array and OLE comparisons. MSB Most significant bit Character Class Array LSB Least significant bit This 128 x 2 array holds the character class Rx Receive associated with each of 128 possible 7-bit characters. The array is zero after a master Tx Transmit reset. When the character class array is loaded (see PGC Addressing), the charac- ter on the data bus is placed in the class specified by the contents of command regis- TYPICAL SYSTEM CONFIGURATION ter bits CR2 and CR3. The PGC uses these nc two command bits to represent four different ~ ~ character classes. These are: 1. Normal class (included in the accumula- tion) USART OR 2. SYN character/BISYNC not included USRT class I-- JF 00-07 3. Block terminating character / search • class 4 4. Second search character class (preced- lk CEO ed by OLE) CPU . R"/W .0 These encoded character classes are used by the PGC: 2653 1. To control the BCC accumulation of as- PGC ill sociated characters in BISYNC modes only. BCC accumulation in automatic or single accumulation modes is carried out INT independent of the character classes. NOTES 2. To detect characters and two character 1 Open drain iNf may be OR tied with 2651 PCI. 266 t EPCI. or other open dram Interrupt sequences in all rnodes of accumulation OUtPU1S and to set the control character detect 2 No external CirCUitry necessary If 2651 or 2661 18 the USAAT bits in the status register. Figure 1 It should be noted that any number of char- acters (up to 128 for CRC-16 or LRC-8; up to 64 for CRC-12) can be put into anyone class. I! VRC is specified along with CRC-16 then the least significant 7 bits of the character are used for character array comparison. I! VRC is not enabled, but CRC-16 is, the MSB of the character then determines whether a 1·36 Signe1ics MICROPROCESSOR DIVISION JANUARY 1982 POLYNOMIAL GENERATOR CHECKER (PGC) SC2653 character comparison is to take place. If the CHARACTER CLASS ARRAY COMPARISON OPERATION MSB is 0, the comparison takes place; if the MSB is I, the comparison does not take place and the character is processed as 1 =--= though it were in the normal class. This en- .) CRC - 16 ables the PGC to detect all communication control characters and OLE-SSC se- quences. Only the first 64 locations of the array are accessed if CRC-12 is selected. The user should right justify each six bit character (00-05) to be written into the character class array. Bit 6 must be zero. If VRC is enabled, the generated parity be- comes the most significant bit of the charac- ENABLE COMPARISON ter to be compared. VRC is not allowed in ON LOWER 7 BITS (06 - DO) BISYNC transparent mode. MSB IS IGNORED The method in which the character register contents is compared against the character class array depends on the BCC polynomial chosen. Figure 2 illustrates the comparison process. .) I CRC-12 OLE Read Only Memory The OLE characters are stored internally ! and are selected by the error polynomial as ENABLE COMPARISON follows: ON LOWER 6 BITS (D5 - DO) CRC-12: 01 1111 USB IS IGNORED BIT 6 MUST BE ZERO LCR-8 or CRC-16: No VRC or odd VRC: 0001 0000 Even VRC 1001 0000 BCC and Parity Generator oJ LRC-B This functional block performs all the neces- sary computation to generate and update the BCC accumulation on a character by character basis. It contains the three gener- ator polynomials (CRC-16, CRC-12, and ! LRC-a) that can be selected to compute the ENABlE COMPARtSQN BCC. This block also checks and generates ON LOWER 7 BITS (06 - DO) odd or even parity for 7 ·bit (ASCII) charac- MSB IS IGNORED ters. BCC Registers NOTE This block consists of two 8-bit registers Transparent mode always disables the sse companson (BCC upper and BCC lower) which contain the high and low order bytes of the BCC Figure 2 accumulation. The result of the accumula- tion from the BCC and parity generator is The length of the block check character de- The BCC register(s) are read by the CPU stored in these registers. A recirculating pends on the error checking polynomial that after the last data character is transmitted. register address pointer is initialized by a is selected. If LRC-8 is chosen, the BCC They can then be sent to the R IT to com- power on, master reset, or clear Bee com~ result is stored entirely in BCC upper. The plete a transmitted block of data. These reg- mand. The pointer alternately selects BCC BCC lower remains unchanged from pre- isters are read and loaded when one PGC is upper and lower on successive BCC register vious setting. Both BCC registers are used time-shared by several R ITs. Refer to Appli- accesses for CRC-16 or CRC-12. For LRC- when CRC-16 is specified. When CRC-12 is cations Information - Multiplexed PGC. 8, BCC upper is always selected. selected, the block check character is 12 BCC upper and lower are cleared by a clear bits long. The six least significant bits of the PGC Addressing BCC or master reset command. The highest BCC are stored in the least significant bits All internal registers and the character class of the BCC lower. The remaining upper six array are selected by the unique address term of the BCC polynomial is always repre- bits of the BCC are stored in least signifi- codes shown in table 2. sented by bit 0 of BCC upper; the lowest term is always represented by bit 7 of BCC cant bits of BCC upper. The two most signifi- lower (see figure 3, Orientation of BCC Poly- cant bits in each BCC register are filled with nomials.) zero. Signetics 1·37 MICROPROCESSOR DIVISION JANUARV1982 POLYNOMIAL GENERATOR CHECKER (PGe) 5C2653 ORIENTATION OF ace POLYNOMIALS a-= Q IX) +-Hf-. WHERE R IX) =AnI" + An - ,Xn - 1-- + AoXD II (X) • BINARY POLYNOMIAL (DATA STREAM) G (X) FIXED DIVISOR TO GENERATE ace Q (X) • QUOTIENT AFTER ace O!NERATION R (X) REMAINDER AFTER ace QEfERATION acc LOWER accUPPER (8 BITS) (BBITS) I 07 - - - - - - - - - - DO I I D7 - - - - - - - - - - DO I AoX0 - - - - - - - - A7X7 "aXI - - - - - - - A1sX 1S CRC-18" X18+ x15+ X2 +, D7 DB os - - - - - - - 00 D7 DB os - - - - - - DO Holtl It I 1010ltl )<1 AoX0 - - - - - AsKS AeXI - - - - AUX11 CRC-12 = X12 +X11 +X3+X2+X+ 1 D7 - - - - - - - - - - DO D7 DB - - - - - - - - DO Ix ----------- x I 1·I-LRc-1 (DON'T CARE) PARITY + (7~T LAC) LAC - 8 ., HORIZONTAL PARITY ON 7 LSB VERTICAL PARITY ON USB RECEIVED. OR TRANSMm'ED CHARACTER BITS (TO BE INCLUDED II ace ACCUMULATION) 3 4 5 8 7 8 • ~ 11 12 13 M 15 FEEDBACK DATA OPERATION OF ICC RECJlSTER FOR CRC - 1. ace OPERATION OF ace REGISTER FOR LAC ace ACCUMULATION (SN'LFEDI ACCUMlLATION (SIMPLIFIED) Figure 3 1·38 MICROPROCESSOR DIVISION JANUARY 1982 POLYNOMIAL GENERATOR CHECKER (PGC) SC2653 Table 2. ADDRESS CODES into the character register when in receive mode (MR2 = 0 and R IW = 0) while 1 CEO CE1 A1 AO R/W FUNCTION CPU I DMA characters are loaded into the 0 0 x x X Operation not guaranteed character register when in transmit mode 0 1 0 0 0 If MR2 = 0 load data bus into character register (MR2 =1 and R/W =1). The time between consecutive chip enables is given by tCEC If MR2 = 1 PGC not selected' or tCED. 0 1 0 0 1 If MR2 = 1 load data bus into charactar register If MR2 = 0 PGC not selected' The open drain active low interrupt signal (lNT) goes active whenever one or more of 0 1 0 1 X PGC not selected' four maskabla status conditions (SRO-SR3) 0 1 1 0 X PGC not selected' are true (= 1). A status read deactivates 0 1 1 1 X PGC not selected' INT. 1 0 0 0 0 Read character register The same techniques used in interfacing the 1 0 0 0 1 Load data bus into character register if MR 1,0 2651 PCI to 8-bit microprocessors can be * 002 ; write character class array using CR3, used to interface the 2653 PGC (consult Ap- CR2 class code if MR 1,0 = 003 .• plication Note M22). Note that when ad- 1 0 0 1 0 Read Status register dressing the R IT's holding registers, the 1 0 0 1 1 Write command register PGC pins must have A I,AO = 00 and that the 1 0 1 0 0 Read mode register address and R I W signals must be stable (set up) prior to the active low chip enable. 1 0 1 0 1 Write mode register When using the 2651 or 2661 as the R/T, 1 0 1 1 0 Read sec upper I lowers the PGC's A I, AO, R/W, and CEO are direct- 1 0 1 1 1 Write BCC upper I lowers ly connected to comparable 2651 or 2661 1 1 X X X PGC not selected' signals. Schematics of a 2653 monitoring data transfers to I from the Signetics NOTES 285112661 and 2652 are shown in figures 4 1 Data bus 18 a-state 2 Character wUI not be accumulated unless MR3 ... 1 and 5. 3. Character will not be accumulated aven If MR3 = 1 An alternate interfacing techniqua is to traat 4 The mode bits MRl and MAO are cleared to 00 by power-on-reset, master reset, or by loading the mode register bits MRl and MRO the PGC as an independent peripheral de- 5 Recirculating IOlemal pOinter selects BCe Upper on first access, BCe towaro" next vice. This necessitates a write character access for all BCCs except for LRC-8; in case of LRC·B, the pointer only selects BCe registar instruction aftar the CPU reads or upper. writes a character to or from the R/T. INTERFACE SIGNALS AND TIMING 2651 OR 2661/2653 INTERFACE PGC data transfers ara controlled by A I, AO, and R/W which must be stable prior to the active low going chip enable pulse. CEO is D~nM~TS 'fiJiI)Y, RxJii5V, 'f'infI'!D§CHG R +5V ------ used for PGC monitoring of data transfars between a CPU/DMA controller and a R/T; -en is used for direct CPU-to-PGC trans- 087 - DBO R,D fers. MR3 must be set prior to loading the character register in order to accumulate or ~ 2651/61 --- PC' fi!w, A1, AO ~ compare characters via CE 1. The active low (leading) edge of chip enable initiates a - ~ PGC read/write cycle; the rising (trailing) - r==-- edge ends the cycle and also serves as a write strobe. CPU When loading the character, mode, or com- mand register, the data bus is strobed into the selected register on the trailing (rising) ~ edge of the appropriate CEo When writing 2853 into the character class array, the data on m PGC the bus (the special character) Is placed in ffi the class specified by command register bits CR3 and CR2. Characters are transferred into the charac- ter register when CEO is active (low) de- t lilT 1 R +5V pending on the state of MR2 and the R/W Figure 4 input. Characters from the R/T are loaded Signetics 1·39 MICROPROCESSOR DIVISION JANUARY 1982 POLYNOMIAL GENERATOR CHECKER (PGC) SC2653 register for BCC accumulation, VRC 2652/2653 INTERFACE generation/checking, BTC/SC and OLE- TYPICAL PROTOCOLS: BISYNC, DDCMP, SDLC, HDLC SSC comparisons, See table 3 for a sum- INTERRUPTS TxBE TxU RxDA RxSA mary of BCC accumulation modes. D 087 - DBD II - - . . TxD BCC accumulation depends on the mode se- lected. 2652 MPCC BISYNC Normal _R,O In BISYNC normal mode, all characters load- A2 A1 ed into the character register are accumu- AD _TxC lated except those in the SYN / BISYNC not R/W included class. During receive (MR2 = 0), a ~RxC BTC / SC match will cause the BCC accumu- DBEN CPU CE 080.BO lation to stop alter the next one (LRC-8) or 4 two (CRC-12 or CRC-16) characters have been accumulated. At that time, if the BCC CEO accumulation does not equal zero, the BCC 2653 error bit (SRO) will be sel and INT will go A1 PGC active ilthe corresponding mask bit (CR4) IS enabled (= I). In transmit (MR2 = I), the R/W AO BCC accumulation is automatically stopped CE1 once the BTC / SC character has been accu- mulated. The CPU must read the BCC upper i iN'f I and BCC lower (CRC-12 or CRC-16) regis- teres) and transmit them to the R / T. 1 (OPEN DRAIN} Note that the received BCCs are not subject +sv to VRC if CRC-16 is selected. If LRC-8 is Figure 5 selected, the received BCC is subject to VRC. An incorrect result will set the VRC error bit (SR I). After its accumulation, the PGC PROGRAMMING places all characters in the normal class (included in the BCC accumulation). least significant 7 bits of BCC upper are The PGC operational mode must be initially checked and a non-zero result will set the programmed by the CPU (see figure 6). The BCC error bit (SRO). BCCs are not checked mode register, command register and char- OPERATION against the character class array nor are acter class array should be written into, The PGC should be initially configured by they compared to the OLE ROM. alter a power-on-reset or a master reset the CPU (via CE I) prior to systems oper- command. The character class array should ation. This is done by loading the mode reg- Second search character (SSC) detection be programmed only for the classes perti- ister, command register and character class is enabled so that a OLE-STX or two charac- nent to the application. After a master reset, array (see PGC PROGRAMMING). Charac- ter communication control sequence can be the character class array is zero which ters may then be loaded into the character detected. Table 3_ SUMMARY OF BCC ACCUMULATION MODES ACCUMULATION START STOP CHARACTERS EXCLUDED MODES ACCUMULATION ACCUMULATION FROM ACCUMULATION BISYNC normal and Clear BCC registers command After BTC has been detected SYN/BISYNC not included BISYNC transparent and received BCC is class in normal mode Mode register is loaded with accumulated BISYNC or automatic mode OLE-SYN / not Included class After transmitted BTC has been and first OLE of a OLE non SYN Start accumulation command accumulated pair in transparent mode These characters are not ex- Load BCC registers Single mode is selected cluded If preceded by an odd number of OLEs Automatic Same as above Single mode selected None Single Start accumulation command After each character has been Up to user who must generate accumulated start accumulation command for each character to be includ- ed 1·40 Signetics MICROPROCESSOR DIVISION JANUARY 1982 POLYNOMIAL GENERATOR CHECKER (PGC) SC2653 PGC PROGRAMMING are accumulated (depending on LRC-B or CRC-12/16, respectively) and the PGC will = --i-- automatically stop further accumulation. However, the PGC can continue the = accumulation if a start accumulate com- mand is issued or either BISYNC mode is loaded into the mode register. The start ac- cumulate command should be given to the PGC before loading the character that fol- lows the detected BTC I SC. This procedure enables a special search character to be detected (the BTC I SC detect bit (SR2) will be set and an interrupt generated if CR6 = 1) with the BCC accumulation continuing (see figures 7 and B). Automatic Accumulate All characters loaded into the character register are accumulated, BTCI SC and SSC detection is enabled. The BCC accumulation is not automatically terminated. (The CPU must use single accumulate mode to stop the accumulation). When in receive mode, the BCC error bit (SRO) is sell reset after accumulating each character so that the CPU must examine this bit after the last character is accumulated. SRO = 0 if the accumulated remainder in the BCC regis- ter(s) is zero; otherwise SRO = 1. Examples of use of automatic accumulate mode usage include an R/T (265112661) in transparent OLE/SYN strip mode and asynchro- nous I synchronous I parallel ODCMP. Single Accumulate All characters for which a start accumulate command (CR I, CRO = 01) is given are ac- cumulated and compared against the char- acter class array. If not given, the BCC ac- cumulation is not updated and BTC I SC and ( OPERATE) SSC detection is disabled. Operation in this mode is otherwise identical to automatic ac- cumulate. Figure 6 Single accumulate mode can be used to se- BISYNC Transparent In receive and transmit modes, the termina- lectively accumulate characters under CPU tion of BCC accumulation works exactly as control or to accumulate characters that BISYNC transparent mode should be used were unintentionally excluded in one of the for data blocks beginning with OLE-STX if in BISYNC normal, except that the BTC I SC must be immediately preceded by an odd other modes. the OLEs are transferred between CPU and R IT (CEO) or CPU and PGC (CE I), i.e., OLEs number of OLEs to be identified as a Polynomial Selection and OLE are not stripped. VRC should be disabled in BTC/SC. this mode. Characters excluded from the Comparison BCC accumulation are the first OLE of a Second search character detection is not The sec polynomial may be CRC-16, CRC- enabled in BISYNC transparent. 12 or LRC-B. The cyclic redundancy check OLE-non SYN sequence pair and the OLE- (CRC) is generated by dividing the binary SYN sequence if not preceded by an odd After a BTCI SC class character is detected by the PGC when receiving in either BISYNC value of a character in the character regis- number of OLEs. For example, consider the ter by the selected polynomial. The quotient following transparent mode character string: mode, the following one or two characters is discarded and the remainder is used as the BCC (two 6-bit characters for CRC-12, OLE exclude T OLE SYN include OLE OLE / exclude \ include --t OLE SYN exclude OLE exclude ETX include two B-bit characters for CRC-16). CRC-,16 uses all B bits of each BCC register. CRC-12 uses the least significant 6 bitS of the BCC registers. The two most significant bits of the BCC registers are cleared to zero when- both both ever CRC-12 is selected (see figure 3). Signe1ics 1·41 MICROPROCESSOR DIVISION JANUARY 1982 POLYNOMIAL GENERATOR CHECKER (PGC) SC2653 EXAMPLES - BISYNC TEXT MESSAGE acc ACCUMULATION SHADED AREAS ACCUMULATED CHARACTER CLASS ARRAY Ax '" RECEIVE MODE SYN/BISYNC NOT INCLUDED 5YH, SOH NO OLE/SYN STAFPING BTC/SC ETX, ETB, ITB, ENQ sse STX CRC-16ORCRC-12 syo SYN SOH I "' __ STXI _ _ _ "'!!"ETX! laccJaccl I PAD BTC + ace ERROR (Rx) IF DETECT ACCI.IUU1.ATlON *" 0 ACCUMlA.A1lON STOPPED AFTER 2ND acc NO PARITY CtEeK ON aces LRC-8 SVO SYN ISTxi "'-~::e svo SVO E11! l l,apcl.1 PAD + + ace ERROR (Ax) IF 7 LS BITS CPU RESETS ace aTC REGISTERS AFTER DETECT OF BCCu *" 0 VAC ERROR IF SOFTWARE DETECT MS 1fT IS INCORRECT PARITY OF STX 11IS ACClMJLATION STOPPED AFTER EFFECTIVELY 1 ace EXCLUDES 8TX BLOCK 1 ----srx.t----ITBJ BTC OPTIONAL sse arc PDSSIBLE DETECT DETECT DETECT ace ERROR SETBlSVNC TR........NT POSSIILE ace ERROR (F so RESET ace REGISTERS) RESET ace REGISTERS OR "SET BISYNC NORMAL sse arc POSSIBLE DETECT DETECT ace ERROR SET BISYNC TRANSPARENT MOOE ~1.~-------------------------BL~1--------------------------.'~I.~-----BL~K2~ sse BTC POSSIBLE aTC DETECT DETECT ace ERROR DETECT lEY BISYNC TRANSPARENT AND POSSIILE RESET ace REGISTERS RESET ace aceER",," REGISTERS (F ace ERROR) NOTES AND SET BISYNC 1. ace .rror on/yfor receIVe mode In transmit moda, CPU must respond to BTC detect by NORMAL reading the BCC regl8ter(s) and sending them to the R IT The accumulatIOn IS stopped after the BTC 18 accumulated 2. ENQ (OLE-ENQ) In a text measage should be treated as an abort 3. Opening SYNa may be stripped by the R IT 4 The alngle accumulate mode and command can be used to accumulate a character that Inadvertently wa. excluded (For example, the OLE of a OLE-STX If the PGe was 1ft transparent mode and there was not a hne turnaround pnor to the OLE) The Single accumulation should be done uSing CET after the BCC----+ RECEIVE DATA I -- HOLDING REGISTER (22) DiR (3) I ~ RECEIVE R,D ~ (16) SHIFT REGISTER DCD CTS (17) • ~ MODEM (23) CONTROL ffi (24) DTR TxEMTJ* DSCHG (18) ...£!L- Vcc ~ OND NOTE *Open drain output pin BLOCK DIAGRAM Table 1 BAUD RATE GENERATOR CHARACTERISTICS The EPCI consists of six major sections. SC2661A (BRCLK = 4.9152MHz) These are the transmitter, receiver, timing, operation control, modem control and ACTUAL SYN I DLE control. These sections communi- BAUD FREQUENCY PERCENT cate with each other via an internal data bus MR23-20 RATE 16XCLOCK 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.Q1 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- 1110 9600 153.6 - 32 sented in the EPCI programming section of 1111 19200 307.2 - 16 this data sheet. Signefics 1-53 MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 Timing Table 1 BAUD RATE GENERATOR CHRACTERISTICS (Cont'd) The EPCI contains a baud rate generator SC2661 B (BRCLK = 4.9152MHz) (BRG) which is programmable to accept ex- ternal transmit or receive clocks or to divide ACTUAL 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 rates, anyone of which can be 0000 45.5 0.7279kHz 0.005 6752 selected for fuli 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 RxO 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 TxO output pin. SC2661C (BRCLK = 5.0688MHz) Modem Control ACTUAL The modem control section provides inter- BAUD FREQUENCY PERCENT MR23-20 RATE 16XCLOCK 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 I, 0110 600 9.6 - 528 SYN2, and OLE characters provided 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 316.8 3.125 16 NOTE l6X clock 18 used In asynchronous mode In synchronous mode, clock multIplier IS 1X and BRG can be used only for TxC 1·54 Signe1ics MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 Table 2 CPU-RELATED SIGNALS OPERATION The lunctional operation 01 the 2661 is pro· INPUTI grammed by a set 01 control words supplied PIN NAME PIN NO. OUTPUT FUNCTION by the CPU. These control words specify 26 I +5V supply input items such as synchronous or asynchronous VCC mode, baud rste, number 01 bits per charac- GND 4 I Ground ter, etc. The programming procedure is de· RESET 21 I A high on this input performs a master scribed in the EPCI programming section 01 reset on the 2661. This signal asynchro· the data sheet. nously terminates any device activity and clears the mode, command and status reg· Alter programming, the EPCI is ready to per- lorm the desired communications lunctions. isters. The device assumes the idle state The receiver performs serial to parallel con- and remains there until initializad with the appropriate control words. version 01 data received Irom a modem or equivalent device. The transmitter converts Al- AO 10,12 I Address lines usad to select internal EPCI parallel data received from the CPU to a regIsters. serial bit stream. These actions are accom- R/W 13 I Read command when low, write command plishad within the Iramework specilied by when high. the control words. CE 11 I Chip enable command. When low, indi- cates that control and data lines to the Receiver EPCI are valid and that the operation The 2661 is conditioned to receive data specilied by the R/W, AI and AO inputs when the DCD Input Is low and the RxEN bit should be performed. When high, places in tha command register is true. In the asyn- tha DO-D7 lines in the three-state condi- chronous mode, the receiver looks lor a high tion. to low (mark to space) transition 01 the start Dr Do 8,7,6,5, 1/0 8-bit, three-state data bus used to transler bit on the RxD Input line. II a transition is 2,1,28,17 commands, data and status between EPCI detected, the state 01 the RxD line Is sam· and the CPU. DO is the least signilicant bit; pled again after a delay 01 one-hall of a bit D7 the most signilicant bit. time. If RxD is now high, the aearch lor a valid atart bit is begun again. II RxD Is still TxRDY 15 0 This output is the complement 01 status low, a valid start bit Is assumed and the register bit SRO. When low, it indicates receiver continues to ssmple the input line that the trensmit data holding register at one bit time Intervals until the proper num· (THR) is ready to accept a data character ber 01 data bits, the parity bit, and one stop Irom the CPU. It goes high when the data bit have been assembled. The data are then character is loaded. This output is valid translerred to the receive data holding reg· only when the transmitter is enabled. It is ister, the RxRDY bit in the status register is an open drain output which can be used 8S set, and the RxRDY output is asserted. If the an Interrupt to the CPU. character length is less than 8 bita, the high RxRDY 14 0 This output is the complement 01 status order unused bits In the holding regiater are register bit SR 1. When low, it indicates set to zero. The parity error, Iramlng error, that the receive data holding register and overrun error status bits are strobed (RHR) has a character ready lor input to Into the atatus register on the positive going the CPU. It goes high when the RHR is read edge 01 RiC correaponding to the received by the CPU. and also when the receiver is character boundary. II the stop bit is disabled. It is an open drain output which present, the receiver will immediately begin can be used as an interrupt to the CPU. its search lor the next atart bit. If the stop bit TxEMTI is absent (Iraming error), the receiver will DSCHG 18 0 This output is the complement 01 status interpret a space aa a atart bit il it peralsta register bit SR2. When low, it indicates Into the next bit time Interval. II a break con- that the transmitter has completed serial- dition ia detected (RxD is low for the entire ization 01 the last character loaded by the character as well aa the atop bit), only one CPU, or that a change of state 01 the DSR character conaisting 01 all zeros (with the or DCD inputs has occurred. This output FE status bit SR5 set) will be transferred to goes high when the status register is read the holding register. The RxD Input must re- by the CPU, il the TxEMT condition does turn to a high condition before a search lor not exist. Otherwise, the THR must be the next start bit begins. loaded by the CPU lor this line to go high. It Pin 25 can be programmed to be a break is an open drain output which can be used detect output by appropriate setting 01 as an interrupt to the CPU. MR27-MR24. II so, a detected break will cauae that pin to go high. When RxD returns to mark lor one RxC time, pin 25 will go low. ReIer to the break detection timing diagram. 1·55 -------_.- MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 Table 3 DEVICE-RELATED SIGNALS When the EPCI is initialized into the synchro- nous mode, the receiver first enters the hunt INPUT/ mode on a 0 to 1 tranSition of RxEN(CR2). In PIN NAME PIN NO. OUTPUT FUNCTION this mode, as data are shifted into the re- ceiver shift register a bit at a time, the con- BRCLK 20 I Clock input to the internal baud rate gener- tents of the register are compared to the ator (see teble 1). Not required if external contents of the SYN 1 register If the two are receiver and transmiller clocks are used. not equal, the next bit is shifted in and the 'RxC/BKDET 25 I/O 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 IX, 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 lX/16X clock der for the SYN DETECT bit to be set. Other- or a break detect output pin. wise, the EPCI returns to the hunt mode. 'TxC/XSYNC 9 I/O Transmiller clock. If external transmiller (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 IX, 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 transmilled 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 miller clock is programmed, this pin can transferred. The PE and OE status bits are be a lX/16X clock output or an external set as appropriate. Further receipt of the jam synchronization input. appropriate SYN sequence sets the SYN RxD 3 I Serial data input to the receiver. "Mark" IS DETECT status bit. If the SYN stripping high, "space n is low. mode is commanded, SYN characters are TxD 19 0 Serial data output from the transmiller. 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 transmiller is dis- initial synchronization are not transferred to abled. the holding register In any case. DSR 22 I 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 seiling 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 SYN I, SYN I-SYN2, and DLE- TxEMT/DSCHG when its state changes if SYN 1 detection is disabled Each positive CR2 or CRO = 1. going signal on XSYNC will cause the re- DCD 16 I 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 /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. CTS 17 I Clear to send input. Must be low in order for the transmiller 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 indi- DTR 24 0 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 seiling the TxRDY mally used to indicate data terminal ready. status bit and asserting the TxRDY output "R'rn 23 0 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 transmilled. TxRDY conditions are then asserted again Thus, one full character time of buffering is NOTE •J!!iiC and ~ outputa have &hort circuli protection max. CL - 100pF Outputs become provided . open olreutted upon detection of • zero pulled hlgh or a one pulled low. 1·56 Signetics MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 In the asynchronous mode, the transmitter Table 4 2661 REGISTER ADDRESSING automatically sends a start bit followed by the programmed number of data bits, the least significant bit being sent first. It then CE A1 AO R/W FUNCTION 1 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. If, 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 1I SYN2 IDLE 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 tlmmg reqUirements can be forced to output a continuous low (BREAK) condition by setting the send 2661 INITIALIZATION FLOW CHART 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 by the CPU. Subsequent to this, a continuo NOTE ous stream of characters is transmitted. No Mode register 1 must be wntten before 2 can be wntten Mode register 2 extra bits (other than parity, if commanded) need not be programmed If external are generated by the EPCI unless the CPU clocks are used 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 NOTE TxEMT and automatically "fills" the gap by SYNI regIster must be wntten transmitting SYN 1s, SYN I-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. If 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. In addi- tion, if synchronous operation is pro- grammed, the appropriate SYN IDLE 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 applying specific signals to the CE, R/W, AI and AO inputs. The conditions necessary to address each register are shown in table 4. The SYN1, SYN2, and OLE registers are accessed by performing write operations Figure 1 with the conditions AI = 0, AO = 1, and Signe1ics 1·57 MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 R/W = 1. The first operation loads the acter and the receiver performs a parity To effect assembly / disassembly of the next SYN 1 register. The next loads the SYN2 check on incoming data. MR 15 selects odd received Itransmitted character, MR 12·15 register, and the third loads the OLE regis· or even parity when parity is enabled by must be changed within n bit times of the ter. Reading or loading the mode registers is MRI4. active gOing state of RxROY /TxROY. Trans· done in a similar manner. The first write (or parent and non·transparent mode changes read) operation addresses mode register 1, In asynchronous mode, MR17 and MR16 se· (MR 16) must occur within n·l bitlimes of the and a subsequent operation addresses lect character framing of 1, 1.5, or 2 stop character to be affected when the receiver mode register 2. If more than the required bits. (If IX 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 MR 17 = 1, and SYN I·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, OLE·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 MR 14 = 0) are enabled. synchronous mode and IX multiplier. IX, 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 MRI6) 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 w bit search (aaync mode) or hunt mode (sync MR 13 and MR 12 select a character length chronous mode, changes should be made mode) on the second RxC rising edge. Dis· of 5, 6, 7 or 8 bits. The character length only in half duplex mode (RxEN = 1 or abling the receiver causes RxROY to go does not include the parity bit, if pro· TxEN = 1, but not both simultaneously = 1). high (inactive). If the transmitter is disabled, grammed, and does not include the start and In asynchronous mode, character changes it will complete the transmission of the char· stop bits in 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 MRll 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.n asynchronous applies only If external clock IS selected Factor IS l6X If Internal clock 18 selected Mode must be selected (MRll, MR10) 10 any case 1·58 Signetics MICROPROCESSOR DIVISION JANUARY 1982 j' ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 ! I Table 6 0000 MODE REGISTER 2 (MR2) TxC E RxC E Pin 9 TxC Pin 25 RxC MR27-MR24 1000 TxC E RxC E Pin 9 XSYNC' Pin 25 RxC/TxC Mode sync MR23-MR20 Baud Rate Selection T 0001 E I TxC IX 1001 E I TxC BKOET async 0010 I E IX RxC 1010 I E XSYNC' RxC sync 0011 I I IX IX 1011 I I IX BKOET async See baud rates in table 1 0100 E E TxC RxC 1100 E E XSYNC' RxC/TxC sync 0101 E I TxC 16X 1101 E I TxC BKOET asyne 0110 I E lex RxC 1110 I E XSYNC' RxC sync 0111 I I lex 16X 1111 I I lex BKOET async NOTES 1 When pin 9 i8 programmed 88 XSVNC Input. SYN 1, SVN 1 SYN2, and DLE-SYN 1 detec- 4 tion i8 disabled. E .. External clock I= Internal clock (BRG) 1X and l6X are clock outputs Table 7 COMMAND REGISTER (CR) CR7 CR6 CR5 CR4 CR3 CR2 CRI CRO Receive Transmit Request Control Data Terminal Control Operating Mode To Send R••et Error Sync/Async (RxEN) Ready ITxEN) 00 - Normal operation 0- Force RTS 0= Normal Aaync: 01 = Async: oulput high 1 = 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 t or serialization (FE. OE. PEtOLE 1 = Force OTR OLE stripping mode 1 =- Force RTS detect) output low 10 = Local loop baok ou,put low 11 = Remote loop baok Sync: Send OLE 0= Normal 1 = Send OLE Table 8 STATUS REGISTER (SR) SR7 SR6 SR5 SR4 SR3 SR2 SR1 SRO Data Set Data Carrier Ready Detect FE/SYN Detect Overrun PE IDLE Detect TxEMT IDSCHG RxROY TxRDY 0= oSR input 0= oCD input Async: 0= Normal Async: is high IS high 0= Normal 1 = Overrun 0= Normal 0= Normal 0= Receive 0= Transmit 1 = 'i5S'R Input 1 = OCO ,"put 1 = Framing Error 1 = Parity error 1 = Change In holding holding IS low IS low Error DSR, or DCO,or register empty register busy transmit shift 1 = Receive 1 = Transmit register is holdmg register holding register empty has data empty Sync: Sync: 0= Normal 0= Normal 1 = SYN 1 = Panty error or detected OLE received (high) while TxROY and TxEMT will go high In asynchronous mode, selling CR3 will data holding register. Since this is a one (inactive). If the receiver is disabled. it will force and hold the TxO output low (spacing time command. CR3 does not have to be terminate operation immediately. Any char- condition) at the end of the current transmit- reset by software. CR3 should be set when acter being assembled will be neglected. A ted character. Normal operation resumes entering and exiting transparent mode and o to 1 transition of CR2 will initiate start bit when CR3 is cleared. The TxO line will go for all OLE-non-OLE character sequences. search (async) or hunt mode (sync). high for at least one bit time before begin· ning transmission of the next character in Bits CR 1 (OTR) and CR5 (RTS) control the the transmit data Ilolding register. In syn· Setting CR4 causes the error flags in the OTR and RfS outputs. Data at the outputs chronous mode, setting CR3 causes the status register (SR3, SR4. and SR5) to be are the logical complement of the register transmission of the OLE register contents Cleared. This is a one time command. There data. prior to sending the character in the transmit is no internal latch for this bit. Signetics 1·59 MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 Table 9 SC2661 EPCI vs SC2651 PCI only the first OLE of a OLE-OLE pair is stripped. FEATURE EPCI PCI Note that automatic stripping mode does not 1. MR2 Bit 6, 7 Control pin 9, 25 Not used affect the setting of the OLE detect and SYN 2. OLE detect-SR3 = SR3 0 for OLE-OLE, SR3 = 1 for OLE-OLE, detect status bits (SR3 and SR5). OLE-SYNC 1 OLE-SYNC 1 Two diagnostic sub-modes can also be 3. Reset of SR3, OLE Second character after Receiver disable, or CR4 =1 configured. In local loop back mode (CR7- detect OLE, or receiver disable, CR6 = 10), the following loops are connect- orCR4 = 1 ed internally: 4. Send OLE-CR3 One time command Reset via CR3 on next TxROY 1. The transmitter output is connected to 5. OLE stuffing .n Automatic OLE stuffing when None the receiver input. transparent mode OLE is loaded except if 2. OTR is connected to OCO and RTS is con- CR3 = 1 nected to CTS. 6. SYNC 1 stripping All SYNCI First SYNC 1 of pair 3. The receiver is clocked by the transmit in double sync clock. non-transparent 4. The OTR, RTS and TxO outputs are held mode high. 7. Baud rate Three One 5. The CTS, OCO, OSR and RxO inputs are versions ignored. 8. Terminate ASYNC Reset CR5 in response to Reset CRO when TxEMT Additional requirements to operate in the lo- transmission TxROY changing from 1 to 0 goes from 1 to O. Then reset cal loop back mode are that CRO (TxEN), (drop RTS) CR5 when TxEMT goes from CR 1 (OTR), and CR5 (RTS) must be set to 1. o to 1 CR2 (RxEN) is ignored by the EPCI. 9. Break detect Pin 25' FE and null character The second diagnostic mode is the remote to. Stop bit searched Dna Two loop back mode (CR7-CR6 = 11). In this 11. External jam sync Pin g2 No mode: 12. Data bus timing Improved over 2651 - 1. Data assembled by the receiver are 13. Data bus drivers Sink 2.2mA Sink 1.6mA automatically placed in the transmit hold- Source 4001LA Source 100ltA ing register and retransmitted by the NOTES transmitter on the TxO output. 1. Internal BRG used for Rxe. 2. The transmitter is clocked by the receive 2. Internal BRG used for TxC clock. When CR5 (RTS) is set, the RTS pin is 1. Data assembled by the receiver are 3. No data are sent to the local CPU, but the forced low and the transmit serial logic is automatically placed in the transmit hold- error status conditions (PE, DE, FE) are enabled. A 1 to 0 transition of CR5 will cause ing register and retransmitted by the set. RTS to go high (inactive) one TxC time after transmitter on the TxO output. 4. The RxROY, TxROY, 'and TxEMT 10SCHG the last serial bit has been transmitted (if 2. The transmitter is clocked by the receive outputs are held high. the transmit shift register was not empty). clock. 5. CRI (TxEN) is ignored. 3. TxROY output = 1. 6. All other signals operate normally. The EPCI can operate in one of four sub- 4. The TxEMT/OSCHG pin will reflect only modes within each major mode (synchro- the data set change condition. nous or asynchronous). The operational Status Register 5. The TxEN command (CRO) is ignored. sub-mode is determined by CR7 and CR6. The data contained in the status register (as CR7-CR6 = 00 Is the normal mode, with the In synchronous mode, CR7-CR6 = 01 places shown in table 8) indicate receiver and transmitter and receiver operating indepen- the EPCI in the automatic SYN IDLE strip- transmitter conditions and modem I data set dently in accordance with the mode and sta- ping mode. The exact action taken depends status. tus register instructions. on the setting of bits MR 17 and MR 16: SRO is the transmitter ready (TxROY) status In asynchronous mode, CR7-CR6 = 01 1. In the non-transparent, Single SYN mode bit. It, and its corresponding output, are valid places the EPCI In the automat!c echo (MR17-MRI6 = 10), characters in the only when the transmitter is enabled. If equal mode. Clocked, regenerated received data data streem matching SYN 1 are not to 0, it indicates that the transmit data hold- are automatically directed to the TxO line transferred to the receive data holding ing register has been loaded by the CPU and while normal receiver operation continues. register (RHR). the data has not been transferred to the The receiver must be enabled (CR2 I), but = 2. In the non-transperent, double SYN mode transmit shift register. If set equal to 1, it the transmitter need not be enabled. CPU to (MR17-MRI6 = 00), characters in the indicates that the holding register is ready receiver communications continues normal- data stream matching SYN I, or SYN2 if to accept data from the CPU. This bit is ly, but the CPU to transmitter link is dis- immediately preceded by SYN I, are not initially set when the transmitter is enabled abled. Only the first character of a break transferred to the RHR. by CRO, unless a character has previously condition is echoed. The TxO output will go 3. In transparent mode (MRI6 = I), charac· been loaded into the holding register. It is high until the next valid start is detected. ters in the data stream matching OLE, or not set when the automatic echo or remote The following conditions are true while in SYN 1 if immediately preceded by OLE, loopback modes are programmed. When automatic echo mode: are not transferred to the RHR. However, this bit is set, the TxROY output pin is low. In 1·60 Signetics MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 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. SR I, the receiver ready (RxRDY) status bit, register. The DSCHG condition is enabled when TxEN = 1 or RxEN = 1. It is cleared when the status register is read by the error command, CR4. In asynchronous mode, bit SRS signifies that 1 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, Le., only the first stop bit is SR2 = 1 while SR6 and SR7 remain un· character has been loaded into the holding changed, then a TxEMT condition exists. = = checked. If RHR 0 when SRS I, a break 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 (MRI6 = 0), it indicates is low. zero, there is no new character in the hold· receipt olthe 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 I-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 transparent mode (MRI6 = I), (MRI6 = I), 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 OLE regisler was received or SYN I-SYN2) and, after synchronization The TxEMT I DSCHG bit, SR2, when set, indio and Ihe present character is neither SYN 1 has been achieved, when a DLE·SYN 1 pair cates either a change of state of the DSR or nor OLE. This bit is cleared when the next is received. The bit is reset when the receiv· DCD inputs (when CR2 or CRO = 1) or that character following the above sequence is er is disabled, when the reset error com· the transmit shift register has completed loaded into RHR, when the receiver is dis· mand is given in asynchronous mode, or transmission of a character and no new abled, or by a reset error command, CR4. when the status register is read by the CPU character has been loaded into the transmit in the synchronous mode. data holding register. Note that in synchro· The overrun error status bit, SR4, indicates nous mode this bit will be set even though that the previous character loaded into the SR6 and SR7 reflect the conditions of the the appropriate "fiU" character is transmit- receive holding register was not read by the DCD and DSR inputs respectively. A low in· ted. TxEMT will not go active until at least CPU at the time a new received character put sets its corresponding status bit, and a one character has been transmitted. It is was transferred into it. This bit is cleared high input clears it. ABSOLUTE MAXIMUM RATINGS 1 PARAMETER RATING UNIT Operating ambient temperalure 2 o to +70 °c Siorage temperature -6Slo +IS0 °c All voltages wilh respecllo ground 3 -O.Slo +6.0 V DC ELECTRICAL CHARACTERISTICS TA = O°C 10 HO°C, VCC = S.OV ± S% 4.5 •• LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Input voltage V VIL Low O.B VIH High 2.0 Outpul voltage V VOL Low IOL = 2.2mA 0.4 VOH 7 High IOH = -400/LA 2.4 IlL Input leakage currenl VIN = 010 S.S V 10 /LA 3-slale outpul leakage current /LA ILH Data bus high Vo = 4.0V 10 ILL Dala bus low Vo = 0.4SV 10 ICC Power supply current ISO mA CAPACITANCE TA = 2SoC, VCC = OV LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Capacitance pF CIN Input 20 COUT Output fc = lMHz 20 CliO In pull Outpul Unmeasured pins tied 10 ground 20 Notes on follOWing page Signe1ics 1·61 MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 AC ELECTRICAL CHARACTERISTICS TA = O·C to HO·C, vcc = 5.0V ± 5% 4.5.6 PARAMETER TEST CONDITIONS Min Typ Max UNIT ... Pulse width ns tRES Reset 1000 tCE Chip enable 250 Setup and hold time ns tAS Address setup 10 tAH Address hold 10 tcs AI W control setup 10 tCH AI W control hold 10 tos Data setup for write 150 tOH 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 tOF Data bus floating time for read Cl = 150pF 100 tCEO 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'o TxC or RxC dc 1.0 Clock width ns tBRH" Baud rate high (2661A,B) 75 tBRH" Baud rate high (2661C) 70 tBRl S Baud rate low (2661A,B) 75 tBRl S Baud rate low (2661C) 70 tR/TH TxC or RxC high 480 tRITl'o TxC or RxC low 480 tTXD TxD delay from falling edgeof~ Cl = 150pF 650 ns tTCS Skew between TxD changing and falling edge of TxC output 8 CL = 150pF 0 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°C maximum ,unction temperature and thermal resistance of 60°C/W Junc- tion to ambient (10 ceramic package) 3 This product Includes cIrcUitry speClflcally designed for the protection of Its inter- nal devices from the damaging effects of excessive statiC charge Nonetheless, It 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. 5. All voltage measurements are referenced to ground All time measurements are at the 50% level for Inputs (except IBAH and tSAL) and at 0 BV and 2 OV for outputs Input levels sWing between 04V and 2.4V, with a transition time of 20 ns maxI- mum 6 TYPical values are at + 20°C, tYPical supply voltages and tYPical processing parameters 7 TxADY, 'RX'Ff5Y and"TxEMT/B'SCHG outputs are open drain 8. Parameter apphes when Internal transmItter clock IS used 9 Under test conditions of 5.0688 MHzfBRG (2661 C) and 4 9152 MHz fSRG (2661A,B), leRH and teRL measured at VIH and VIL respectively 10 In asynchronous localloopback mode, uSing 1X clock, the follOWing parameters apply' fAIT=OB3 MHz max tRITL = 700 ns min 1·62 Signetics MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 TIMING DIAGRAMS RESET CLOCK RESET-1_'"ES_r~-- BACLK, TiC, RiC -'/lBRG- - - - lJ1RIT ---1 TRANSMIT RECEIVE 1 BIT TIME (1 16 OR 64 CLOCK PERIODS) fie (INPUT) T.D TiC (OUTPUT) READ AND WRITE CE---... Do-D7 (WRITE) ---+---- 00-0 7 (READ) ....;.;==+,'-..;.;;:;;;;...,I'-___~-' Signelics 1·63 MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 TIMING DIAGRAMS (Cont'd) TxRDY, TxEMT (Shown for 5-bit characters, no parity, 2 stop bits [in asynchronous mode] ) DATA 1 DATA 4 - D I I' A I 2 I 3 I • I ' I" I I' ~A;A ~ 1" CI A,1_ 2 3 4 : 5," C A I 2 • I ' ! ! ! DATA 3 : • C_D_A I SDATA 4 I I TxEN ~ I I I I I I ----+------+---_--\----~'_______'c ~~: 0 ~ I ~ t5 ) TxRDY Ii ~ ~ t TxEMT CEFOR~ ) WRITE OFTHR DATA 1 NOTES A = Start bIt B=Stopbitl C=Stopbit2 o = TxD marking conditIOn TxEMT goes low at the beglnnmg of the last data bit, or, If panty IS enabled, at the beglnnmg of the panty bit 1·64 Signetics MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 TIMING DIAGRAMS (Conl'd) EXTERNAL SYNCHRONIZATION WITH XSYNC 1XRxC Ie. -1 1-- t8S = XSYNC SETUP TIME = 300n. IH = XSYNC HOLD TIME = ONE Rxe XSYNC I II I. I I ---j I R'D v CHARACTER ASSEMBLY BREAK DETECTION TIMING Rx CHARACTER = 5 BITS, NO PARITY AxC-16or64 R,D I I LOOK FOR START BIT = LOW (IF RxO IS HIGH, LOOK FOR HIGH TO LOW TRANSITION) i FALSE START BIT CHECK MADE (RxD LOW) I MlsstNG STOP BIT DETECTED, SET FE BIT O-RHR. ACTIVATE RxRIW SET BKDET PIN RxD INPUT- RxSR UNTIL A MARK TO SPACE TRANSITION OCCURS NOTE * If the stop bit 18 present, the start bit search will commence ImmedIately Signetics 1·65 MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 TIMING DIAGRAMS (Cont'd) RxRDY (Shown for 5·b,t characters, no parity, 2 stops bits [in asynchronous mode] ) i:;~~ UJ I -~~--'----~._------'-----~~ RiADY t ~ ~ ~-r------- I IGNORED - = ~ ----, I U READ STATUS ~ READ STATUS READ AHA (DATA 1) READ AHA (DATA 2) READ AHA ~------~, (DATA 3) U READ AHA ~,-------- (DATA 3) c I -, 0 , - I _ A l' I 2 I 3 I 4 I 5 DATA 3 II I _ . B I C A, 1 I 2 I 3 I DATA 4 I IU RxEN ~ IL ___________________ L-o----' ~--~------~, OVERRUN STATUS BIT ------------------~~~----------------------~ CE FOA READ READ READ RHR RHR (DATAt) (DATA3) NOTES A=Startbit = B Stop bit 1 C=Stopblt2 o = TxD marking condition Only one stop bit IS detected 1·66 SigneIics MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) SC2661 TYPICAL APPLICATIONS ASYNCHRONOUS INTERFACE TO CRT TERMINAL ADDRESS IUS CONTROL BUS DATA BUS r------, ..., R,O T,O 1··0----11 ElATa TTL 1-----i~~r_----Co-:-~-;rr-----J-__, '-....___-1 kIv 1 ....r----JF1n----.==---.-~ BAlI) RATE CLOCK I CRT .....,~'" L..._ _ _ _ _._R_CLK L -_ _O_._C'_LLA_T_OR_ _..... TERMINAL ASYNCHRONOUS INTERFACE TO TELEPHONE LINES DATA BUS PHONE ASYNC LINE MODEM INTERFACE BRCLK BAUD RATE CLOCK OSCILLATOR T!lEPHONE LINE 1·67 MICROPROCESSOR DIVISION JANUARY 1982 ENHANCED PROGRAMMABLE COMMUNICATIONS INTERFACE (EPCI) 'SC2661 TYPICAL APPLICATIONS (Cont'd) SYNCHRONOUS INTERFACE TO TERMINAL OR PERIPHERAL DEVICE \ ADDRESS BUS \ I CONTROL BUS \ I I \ DATA BUS \ JD~ R.D T.D SYNCHRONOUS RiC TERMINAL OR PERIPHERAL '66' TiC DEVICE SYNCHRONOUS INTERFACE TO TELEPHONE LINES PHONE LINE INTERFACE SYNC MODEM r TELEPHONE LINE 1·68 Signettcs MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES '4'Mi4Y' DESCRIPTION FEATURES PIN CONFIGURATION TheSIgnetlcsSC2681 Dual Universal Asyn- chronous ReceiverlTransmitter (DUART) Is • Dual full-duplax asynchronous racelver/ transmlter 1 a single chip MOS-LSI communications • Quadruple buffered receiver data regis- Vee device that provides two Independent full- ters ,p, duplex asynchronous receiver/transmitter ,p> • Programmable data format channels in a single package. It interfaces -5 to 8 data bits plus parity ,po directly with microprocessors and may be -Odd. even, no parity or force parity used in s polled or interrupt driven sys- '.2 -1,1.5 or 2 stop bits programmable In CSN tem. 1/16 bit Increments RESET The operating mode and data format of • Programmable baud rate for each re- X1lelK each channel can be programmed inde- celvar and transmlter selectable from: pendently. Additionally, each receiver and -18 fixed rates: 50 to 38.4K baud X2 transmitter can select its operating speed -One user defined rate derived from RXDS RXDA as one of eighteen fixed baud rates, a 16x programmable timer/counter clock derived from a programmable - External 1x or 16x clock OPl counter/timer, or an external 1x or 16x • Parity. framing. and overrun error detec· OP' clock. The baud rate generator and tlon OPS counter/timer can operate directly from a crystal or from external clock inputs. The • False start bit detection OP7 OP~ ability to independently program the • LIne break detection and generation Dl DO operating speed of the receiver and trans- • Programmable channel mode D' D2 mitter make the DUART particularly attrac- -Normal (full duplex) DS D' tive for dual-speed channel applications -Automatic echo D7 DO such as clustered terminal systems. -Localloopback GND Each receiver is quadruply buffered to -Remote loopback 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 • Multl·functlon 7·blt Input port Vee control capability Is provided to disable a -Can serve as clock or control Inputs 'P2 remote DUART transmitter when the buf- -Change of state detection on four CSN fer of the receiving device Is full. Inputs RESET Also provided on the SC2681 are a multi- • Multl·functlon 6-blt output port XlICLK purpose 7-blt input port and a multipur- -Individual bit set/raset capability X2 pose 8-blt output port. These can be used -Outputs can be programmed to be RXDA 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 OPO -Single Interrupt output with eight program contro\. maskable Interrupting conditions Dl DO The SC2681 is available In three package -Output port can be configured to pro- D2 versions to satisfy various system require- vide a total of up to six separate wire· DS D' ments: 4O-pln and 28-pin, both 0.6" wide OR'able Interrupt outputs D7 DO DIPs, and a compact 24-pln, 0.4" wide, • Maximum data transfer: 1X - 1MB/sec, GND INTRN DIP. 16X - 125KB/sec • Automatic wake-up mode for multidrop applications AD • Start·end break Interrupt/status Vee • Detects break which originates In the CSN middle of a character RESET • On·chlp crystal oscillator X1/CLK • TTL compatible RXDA • Single + 5V power supply TXDA ORDERING CODE DO Vcc=5V :t5%, TA=O·C to 70·C 02 PACKAGES OS 24 Pin' 28 Pln 2 40 Pln 2 0' DO Ceramic DIP SC2681CSI24 SC2681CSI28 SC2681CSI40 SC2681CSN40 OND INTRN Plastic DIP SC2681CSN24 SC2681CSN28 1400 mil wide DIP TOP VIEWS 2eoo mil Wide DIP Signetics 1·69 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 'Q'¥'Weii BLOCK DIAGRAM r- DO-D7 ( 8 .1)I BUS BUFFER I CHANNEL A I " J.;:::: r-- TRANSMIT HOLDING REG TxDA TRANSMIT SHIFT REGISTER OPERATION RON ~ I'-- CONTROL WRN .. • I r-- RECEIVE HOLDING REG CEN • I ADDRESS (3) .. - DECODE RxDA RECEIVE I I 4/ AO-A3 SHIFT REG RESET • RIW CONTROL INTERRUPT ~ CRA SRA CONTROL j.- f-- TxDB BE:) INTRN CHANNELB (AS ABOVE) RxDB ISR f-- ~ ,,1- " ."' INPUT PORT .....~ CHANGE OF z STATE 7/ TIMING iii DETECTORS (4) IPO-IPS ;:: I BAUD RATE I z 0: ~ w GENERATOR .... f-- t-- ! ACR I CLOCK SELECTORS I OUTPUT PORT '-- I COUNTERI TIMER J FUNCTION SELECT 8 LOGIC OPO-OP7 • I I ~ XlICLK X2 .. XTALOSC V- OPR r-csRA : CSRB .. Vee : ACR CTUR .. ·GND ~ 1·70 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 'i't"" PIN DESIGNATION APPLICABLE MNEMONIC TYPE NAME AND FUNCTION 40 28 24 00-07 X X X I/O Data BUB: Bidlrectlonal3-state data bus used to transfer commands, data and status between the OUART and the CPU. DO 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-D7 as controlled by the WRN, RON and AO-A3Inputs. When high, places the DO-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. RDN 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 RDN. AO-A3 X X X I Address Inputs: Select the OUART internal registers and ports for read/write operations. RESET X X X I Re..t: A high level clears internal registers (SRA, SRB, IMR, ISR, OPR, OPCR), puts OPO-OP7 in the high state, stops the counter/timer, and puts channels A and B In the inactive state, with the TxDA and TxDB 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. X2 X X I Crystal 2: Connection for other side of the crystal. Should be open if crystal is not used. 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 Trensmltter 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 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 counter/timer 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, RxROYAlFFULLA out· put. OP5 X 0 OutputS: General purpose output, or channel B open drain, active low, RxROYB/FFULLB out· put. OPS X 0 OutputS: General purpose output, or channel A open drain, active low, TxROYA output. OP7 X 0 Output 7: General purpose output, or channel B open drain, active low, TxROYB 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 counter/timer external clock input. 1P3 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 failing edge of the clock. Signetics 1-71 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVERITRANSMITTER (DUART) SC2681 SERIES 'Rit)i;;' PIN DESIGNATION (Continued) APPLICABLE MNEMONIC TYPE NAME AND FUNCTION 40 28 24 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 (RxCA). 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-blt counterltlmer, 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, generator (BRG), the counterltim'er, and busses. It is controlled by the operation inserts the appropriate start, stop, and op· other internal circuits. A clock Signal 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 TxD 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 DUART. the RxD 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 timer to produce a 16X clock for any other The Inputs to this unlatched 7·blt port can with the microprocessor via the data bus 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 D16. A high input reo selectors allow the independent selection, suits in a logic 1 while a low Input results Interrupt Control for each receiver and transmitter, of any of In a logic O. The pins of this port can also A Single active low interrupt output these baud rates or an external timing sig- serve as auxiliary inputs to certain por· (INTRN) is provided which Is activated nal. tions of the DUART logic. upon the occurence of any of eight inter· nal events. Associated with the interrupt The counterltimer (CIT) can be program· Four change·of·state detectors are pro- system are the Interrupt mask register med to use one of several timing sources vided which are assoCiated with inputs (IMR) and the interrupt status register as its input. The output of the CIT is avail· IP3, IP2, IP1, and IPO. A high-to-Iow or low- (ISR). The IMR may be programmed to able to the clock selectors and can also be to-high transition of these inputs lasting select only certain conditions to cause programmed to be output at OP3. In the longer than 25-50"s will set the corre- INTRN to be asserted. The ISR can be read counter mode, the contents of the CIT can sponding bit in the input port change reg- by the CPU to determine all currently ac· be read by the CPU and It can be stopped ister. The bits are cleared when the regis- tive interrupting conditions. and started under program control. In the ter is read by the CPU. Any change of state timer mode, the CIT acts as a program· can also be programmed to generate an in- Outputs OP3-0P7 can be programmed to mabie divider. terrupt to the CPU. provide discrete Interrupt outputs for the transmitters, receivers, and counter/timer. 1-72 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES IQ i49 i£i, Output Port low condition by issuing a send break strobed into the SR at the received charac· The 8·bit multi·purpose output port can be used as a general purpose output port, in command. The transmitter can be reset through a ter boundary, before the RxRDY status bit is set. If a break condition is detected (RxD is low for the entire character in· 1 which case the outputs are the comple· software command. If it is reset, operation 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[nj= 1 results in OP[nj= 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 enabled, 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 E'6 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 F '6 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 bit 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 FI FO (overrun is not). to the CPU that it is ready to accept a each 16X clock for 7·1/2 clocks (16X clock Status can be provided in two ways, as character by setting the TxRDY bit in the mode) or at the next rising edge of the bit programmed by the error mode control bit status register. This condition can be pro· 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 FIFO. 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 when it is idle or has completed transmis· at the theoretical center of the bit, until OR of the status for all characters coming sion of the previous character. The TxRDY the proper number of data bits and the to the top of the FIFO since the last 'reset conditions are then asserted again which parity bit (if any) have been assembled, error' command was issued. In either and one stop bit has been detected. The mode reading the SR does not affect the means one full character time of buffering is provided. Characters cannot be loaded least sigificant 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 a~ 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. and the programmed number of stop bits. of the FI FO are not affected: the character After the stop bit is detected, the receiver previously in the shift register 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 reo 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 bit transition had been detected at that when a valid start bit was received and the new character into the THR. If the trans· point (one·half bit time after the stop bit FIFO is full. When a FIFO position be· mitter is disabled, it continues operating was sampled). comes available, the RTSN output will be until the character currently being trans· 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 Signetics 1-73 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 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 enabled. Register 1 device. MRIA is accessed when the channel A MR 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 reo The operation of the DUART is program- mand applied via CRA. After reading or celver Is enabled again. If the receiver Is med by writing control words into the ap- writing MR1A, the pointer will pOint to reset, the FIFO 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 MR1AI7J - 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 FI FO is full. bits MR1A[4:3) or MR1B[4:3) to 'II' 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 the receiver(s) and transmltter(s) are not receivers that are normally disabled, ex· input of the transmitting device. enabled, and certain changes to the ACR amine the received data stream and 'wake· should only be made while the CIT Is up' the CPU (by setting RxRDy) only upon MR1A18) - Channel A Receiver Interrupt receipt of an address character. The CPU stopped. 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 address/data (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- MRI B[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 CounteriTImer Upper (CTU) CIT Upper Register (CTUR) ceived AID bit is a one (address tag), but 0 1 1 1 CounteriTImer lower (CTl) CIT lower Register (CTlR) discards the received character If the 1 0 0 0 Mode Register B (MRI B, 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) fe,rred 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 1 1 1 1 Stop Counter Command Reset Output Port Bits Command error, overrun error, and break detect oper· 1·74 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES '4'00'#4 Table 2. REGISTER BIT FORMATS BIT7 RX RTS BIT6 RXINT BITS ERROR BIT4 BIT3 BIT2 PARITY BIT1 BITO 1 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 = force parity 1 =odd 01 =6 10= no parity 10=7 11 = special mode 11 = 8 BIT7 BIT6 BITS BIT4 BIT3 BIT2 BIT1 BITO Tx RTS CTS CHANNEL MODE STOP BIT LENGTH* CONTROL ENABLE Tx MR2A 00= Normal O=no 0= no 0= 0.563 4=0.813 8= 1.S63 C= 1.813 MR2B 01 = Auto echo 1 =yes 1 =yes 1 =0.625 5=0.875 9= 1.625 D= 1.875 10= Local loop 2=0.688 6=0.938 A= 1.688 E= 1.938 11 = Remote loop 3= 0.7S0 7= 1.000 B= 1.7S0 F= 2.000 • Add 0.5 to values shown for 0-7 If channel IS programmed for 5 bits/char BIT7 BIT6 BITS BIT4 BIT3 BIT2 BIT1 BITO CSRA RECEIVER CLOCK SELECT TRANSMITTER CLOCK SELECT 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 O=no 0= 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 0= no O=no 0= no 0= no 0= 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 corresponding 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 40 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[7] 0=OPR[6] O=OPR[S] 0=OPR[4] 00= OPR[3] 00= OPR[2] 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 BIT1 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 0=011 0=011 0=011 1 = set2 1 =on 1 =on 1 =on 1 =on BIT7 BIT6 BITS BIT4 BIT3 BIT2 BIT1 BITO DELTA DELTA DELTA DELTA IP3 IP2 IP1 IPO IPCR IP3 IP2 IP1 IPO O=no 0= no 0= no O=no O=low O=low O=low O=low 1 = yes 1 =yes 1 =yes 1 =yes 1 = high 1 = high 1 = high 1 = high Signetics 1·75 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES '4'ii'.' Table 2. REGISTER BIT FORMATS (continued) BIT7 BIT8 BITS BIT4 BIT3 BIT2 BIT1 BITO INPUT DELTA RxRDYI COUNTER DELTA RxRDYI PORT TxRDYB TxRDYA BREAK B FFULLB READY BREAK A FFULLA ISR CHANGE O=no O=no O=no O=no O=no O=no O=no O=no 1=yes 1=yes 1 = yes 1 = yes 1=yes 1 = yes 1=yes 1 = yes BIT7 BIT8 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 0=011 O=off O=off O=off 0=011 O=off O=off 0=011 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 contin- MR1A[4: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- MR2A[7:8) - Channel A Mode Select - Two diagnostic modes can also be config- mitted character and the receiver per· ured. MR2A[7:6]= 10 selects local loop- forms a parity check on Incoming data. Each channel of the DUART can operate In one of four modes. MR2A[7:6]= 00 is the back mode. In this mode: MR1A[4:3]= 11 selects channel A to oper- ate In the special multidrop mode de- normal mode, with the transmitter and re- 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 re- echo mode, which automatically retrans- ceiver. MR1A12J - Channel A Parity Type Select mits the received data. The following con- - This bit selects the parity type (odd or 3. The TxDA output Is held high. ditions are true while in automatic echo 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 MR2A[7:6]= 11. In this mode: MR1A[1:0)- Channel A Bits per Character 4. The channel A TxRDY and TxEMT Select - This field selects the number of status bits are Inactive. 1. Received data is reclocked 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. 1·76 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES IQi4\tMi 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 are i nact ive. ter. If IPO is asserted (low), the character is transmitted. If it is negated (high), the TxDA output remains in the marking state CSRA[7:4] a a a a ACR[7J=O so ACRI7] = 1 7S 1 4. The received parity is not checked and and the transmission is delayed until a a a 1 110 110 is not regenerated for transmission, CTSAN goes low. Changes in CTSAN a a 1 a 134.S 134.S i.e., transmitted parity bit is as re- while a character is being transmitted do a a 1 1 200 1S0 ceived. not affect the transmission of that charac· a 1 a a 300 300 S. The receiver must be enabled. ter. a 1 a 1 600 600 6. Character framing is not checked, and a 1 1 a 1,200 1,200 the stop bits are retransmitted as re- MR2A[3:0] - Channel A Stop Bit Length a 1 1 1 1,OSO 2,000 ceived. 1 a a a 2,400 2,400 Select - This field programs the length of 1 a a 1 4,800 4,800 7. A received break is echoed as received the stop bit appended to the transmitted until the next valid start bit is detected. 1 a 1 a 7,200 1,800 character. Stop bit lengths of 9/16 to 1 and 1 a 1 1 9,600 9,600 1-9/16 to 2 bits, in increments of 1/16 bit, 1 1 a a 38.4K 19.2K The user must exercise care when switch- can be programmed for character lengths 1 1 a 1 Timer Timer ing into and out of the various modes. The of 6,7, and 8 bits. For a character length of 1 1 1 0 IP4-16X IP4-16X selected mode will be activated immedi- S bits, 1-1/16 to 2 stop bits can be pro- 1 1 1 1 IP4-1X IP4-1X ately upon mode selection, even if this oc- grammed in increments of 1/16 bit. The re- curs in the middle of a received or trans- ceiver only checks for a 'mark' condition The receiver clock is always a 16X clock mitted character. Likewise, if a mode is de- at the center of the first stop bit position except for CSRA[7:4]= 1111. selected, the device will switch out of the (one bit time after the last data bit, or after mode immediately. An exception to this is the parity bit if parity is enabled) in all CSRAI3:0] - Channel A Transmitter Clock switching out of autoecho or remote loop- cases. Select - This field selects the baud rate back modes: if the de-selection occurs clock for the channel A transmitter. The If an external 1X clock Is used for the just after the receiver has sampled the field definition is as per CSRA[7:4) except transmitter, MR2A[3) = 0 selects one stop as follows: stop bit (indicated in autoecho by asser- bit and M R2A[3) = 1 selects two stop bits tion of RxRDY), and the transmitter is Baud Rate to be transmitted. enabled, the transmitter will remain in CSRA[3:0] ACR[7] = 0 ACR[7] = 1 autoecho mode until the entire stop bit MR1 B - Channel B Mode has been retransmitted. 1 1 1 a IP3-16X IP3-16X Register 1 1 1 1 1 IP3-1X IP3-1X MR2A15] - Channel A Transmitter Re- MR1 B Is accessed when the channel B MR The transmitter clock is always a 16X quest-to-Send Control - This bit controls pointer points to MR1. The painter is set clock except for CSRA[3:0) = 1111. the deactivation of the RTSAN output to MR1 by RESET or by a 'set pointer' com- (0 PO) by the transmitter. This output is mand applied via CRB. After reading or CSRB - Channel B Clock Select normally asserted by setting OPR[O] and writing MR1 B, the pointer will point to Register - Access Type: Write negated by resetting OPR[O]. MR2A[S)= 1 MR2B. Only causes OPR[O) to be reset automatically The bit definitions for this register are CSRBI7:4] - Channel B Receiver Clock one bit time after the characters in the identical to the bit definitions for MR1A, Select - This field selects the baud rate channel A transmit shift register and in except that all control actions apply to the clock for the channel B receiver. The field the THR, if any, are completely transmit· channel B receiver and transmitter and the definition is as per CSRA[7:4) except as ted, including the programmed number of corresponding inputs and outputs. follows: stop bits, if the transmitter is not enabled. This feature can be used to automatically MR2B - Channel B Mode Baud Rate terminate the transmission of a message CSRB[7:4] ACRI7] = 0 ACRI7] = 1 Register 2 as follows: 1 1 1 a IP6-16X IP6-16X M R2B is accessed when the channel B M R 1. Program auto-reset mode: MR2A[S) = 1. 1 1 1 1 IP6-1X IP6-1X pointer paints to MR2, which occurs after 2. Enable transmitter. any access to MR1 B. 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) = 1111. 4. Send message. The bit definitions for this register are CSRBI3:0] - Channel B Transmitter Clock S. 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·to·Send Con· CSRA[7:4] - Channel A Receiver Clock 1 1 1 a IPS-16X IPS-16X trol - If this bit is 0, CTSAN has no effect Select - This field selects the baud rate 1 1 1 1 IPS-1X IPS-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. Signetics 1·77 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 'p"nA'", CRA - Channel A Command times. TXDA will remain high for When this bit is set, the channel A 'change Register one bit time before the next in break' bit in the ISR (ISR[2]) is set. ISR[2] character, if any, is transmitted. is also set when the end of the break con- CRA is a register used to supply com- dition, as defined above, is detected. 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 as long as the commands are non-conflict- breaks that originate in the middle of a 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 'reset transmitter' commands cannot be begins in the middle of a character, it must 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:41 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[5) - 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. SRA[4) - 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. the break condition will be de- THR is loaded by the CPU or when the 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 transmission 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 TH R, 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. 1-78 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES '4'41'" SRA[1[ - Channel A FIFO Full (FFULLA) OPCR[4! - OP4 Output Select - This bit OPCR[1:0! - OP2 Output Select - This - This bit IS set when a character is trans· ferred from the receive shift register to the receive FIFO and the transfer causes the programs the OP4 output to provide one of the following: - The complement of OPR[4] field programs the OP2 output to provide one of the following: 1 - The complement of OPR[2] FIFO to become full, Le., 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 CSRA[3:0], and will be a 1X clock if waiting in the receive shift register be· collector output. Note that this output CSRA[3:0] = 1111. cause the FIFO is full, FFULL will not be is not masked by the contents of the - The 1X clock for the channel A trans· reset when the CPU reads the RHR. IMR. mitter, which is the clock that shifts the SRA[O! - Channel A Receiver Ready transmitted data. If data is not being OPCR[3:2! - OP3 Output Select - This (RxRDYA) - 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 counterltimer 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 ACR[7)- 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 carre· 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 OPCR[7! - OP7 Output Select - 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 clock that samples the use by the channel A and B receivers and - The channel B transmitter interrupt received data. If data is not being reo 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 can· tents of the IMR. Table 3. BAUD RATE GENERATOR CHARACTERISTICS CRYSTAL OR CLOCK = 3.6864MHz OPCR[6! - OP6 Output Select - This bit programs the OP6 output to provide one of NOMINAL RATE (BAUD) ACTUAL 16X CLOCK (KHz) ERROR (PERCENT) 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 can· 600 9.6 0 tents of the IMR. 1050 16.756 -0.260 OPCR[S! - 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 16X clock IS 50% :t: 1% Signetics 1-79 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 14'4i"41" ACR[6:4)-CounterITlmer Mode and Clock Table 4. ACR [6:4) FIELD DEFINITION Source Select - This field selects the operating mode of the counterltimer and ACR[6:4) MODE CLOCK SOURCE its clock source as shown in table 4. 00 0 Counter External (IP2) 00 1 Counter TXCA - 1X clock of channel A transmitter ACR[3:0) - IP3, IP2, IP1, IPO Change of State Interrupt Enable - This field selects 01 0 Counter TXCB - 1X clock of channel B transmitter which bits of the Input Port Change regis· o11 Counter Crystal or external clock (X1fCLK) divided by 16 ter (IPCR) cause the input change bit In 1 00 Timer External (I P2) the Interrupt status register (ISR[7)) to be 1 0 1 Timer External (IP2) divided by 16 set. If a bit is In the 'on' state, the setting 1 1 0 Timer Crystal or external clock (X1fCLK) of the corresponding bit In the IPCR will also result in the setting of ISR[7], which 111 Timer Crystal or external clock (X1fCLK) 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[&) - 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- )PCR - 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, IP1, IPO Change of break change interrupt' command. break change Interrupt' command. State - These bits are set when a change of state, as defined in the Input Port sec· ISR[S) - Channel B Receiver Ready or ISR[1) - Channel A Recelvar Ready or tion of this data sheet, occurs at the re- 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 MR2B[5]. If programmed as grammed by MR2A[5]. If programmed as the IPCR Is read by the CPU. A read of the receiver ready, it indicates that a character receiver ready, it indicates that a character IPCR also clears ISR[7], the input change has been received In channel B and is has been received in channel A and is bit in the interrupt status register. waiting in the FIFO to be read by the CPU. waiting in the FIFO 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 FI FO from the receive shift register to the FIFO and reset when the CPU reads the RHA. If and reset when the CPU reads the RHA. If IPCR[3:0) -IP3,IP2,IP1,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 FI FO is 'popped'. If programmed after the FI FO 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 I PCR 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, This register provides the status of all i.e., all three FIFO positions are occupied. I.e., all three FIFO pOSitions are occupied. It is reset when the CPU reads the RHR. If It is reset when the CPU reads the RHA. If potential interrupt sources. The contents of this register are masked by the interrupt a character is waiting in the receive shift a character is waiting in the receive shift mask register (IMR). If a bit in the ISR is a register because the FIFO is full, the bit register because the FIFO Is full, the bit '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 IMA. 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'6 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. ISR[7) - Input Port Change Status - This corresponding bit in the IMR Is also a '1', 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 IP31nputs 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 counterltlmer 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 counterftimer. puts OP3-0P7 or the reading of the ISA. 1·80 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 'A'iitA';' CTUR and CTLR - Counter/Timer once each cycle of the square wave. The CPU may change the values of CTUR and Registers The CTUR and CTlR hold the eight MSB's bit IS reset by a stop counter command (read with A3-AO= 1110). The command, however, does not stop the CIT. The gen· CTlR at any time, but the new count be· comes effective only on the next start counter command. If new values have not 1 and eight lSB's respectively of the value erated square wave is output on OP3 if it is been loaded, the previous count values to be used by the counterltimer in either programmed to be the CIT output. are preserved and used for the next count the counter or timer modes of operation. cycle. In the counter mode, the CIT counts down In the timer (programmable divider) mode, the number of pulses loaded into CTUR In the counter mode, the current value of the CIT generates a square wave with a and CTlR by the CPU. Counting begins the upper and lower 8 bits of the counter period of twice the value (in clock periods) upon receipt of a start counter command. may be read by the CPU. It is recom· of the CTUR and CTlA. If the value in Upon reaching terminal count (0000 16), the mended that the counter be stopped when CTUR or CTlR is changed, the current counter ready interrupt bit (ISR[3]) is set. reading to prevent potential problems half·period will not be affected, but subse· The counter continues counting past the which may occur if a carry from the lower quent half periods will be. In this mode the terminal count until stopped by the CPU. If 8·bits to the upper 8·bits occurs between CIT runs continuously. Receipt of a start OP3 is programmed to be the output of the the times that both halves of the counter counter command (read with A3-AO = CIT, the output remains high until terminal are read. However, note that a subsequent 1111) causes the counter to terminate the count is reached, at which time it goes start counter command will cause the current timing cycle and to begin a new low. The output returns to the high state counter to begin a new count cycle using cycle using the values in CTUR and CTlR. and ISR[3] is cleared when the counter is the values in CTUR and CTlR. The counter ready status bit (ISR[3]) is set stopped by a stop counter command. The 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 15 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 and thermal resistance of 60"C/W Junction to ambient for ceramic package (116"CIW for plastiC package) 3 ThiS product Includes circuitry specifically designed for the protection of ItS mternal devices from damaging ef- fects of excessive static charge Nonetheless, It IS suggested that conventional precautions be taken to aVOId ap- plymg any voltages larger than the rated maxima DC ELECTRICAL CHARACTERISTICS TA = O'c to + 70'C, Vee= 5.0V ± 5%4,5.6 liMITS PARAMETER TEST CON DITIONS UNIT Min Typ Max V,L Input low voltage 0.8 V V,H Input high voltage (except X1/ClK) 2.0 V V,H Input high voltage (X1/ClK) 3.0 V VOL Output low voltage 10L = 2.4mA 0.4 V V OH Output high voltage (except o.c. outputs) 10H= - 400~A 2.4 V I'L Input leakage current V ,N = 0 to Vcc -10 10 ~A ILL Data bus 3·state leakage current Vo= 0 to Vee -10 10 ~A loe Open collector output leakage current Vo=OtoV ee -10 10 ~A lee Power supply current 150 mA NOTES 4 Parameters are valid over specified temperature range 5 All voltage measurements are referenced to ground (GNO) Fortestlng, all Input signals sWing between 0 4V and 2 4V with a tranSition tlmeof 20ns maximum All time measure- ments are referenced at Input voltages of 0 BV and 20V and output voltages of 0 BV and 2 OV as appropnate 6 TYPical values are at + 25°C, tYPical supply voltages, and tYPical processing parameters Signetics 1·81 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 'P't"#4 AC ELECTRICAL CHARACTERISTICS TA=O·C to + 70 ·C, Vcc =5.0V ± 5~ 4,5,6,7 TENTATIVE LIMITS PARAMETER UNIT Min Typ Max Reset Timing (figure 1) t RES RESET pulse width 1.0 /LS Bus Timing (figure 2)6 t AS AO-A3 setup time to RON, WRN low 10 n8 tAH AO-A3 hold time from RON, WRN high 10 n8 tcs CEN setup, time to RON, WRN low 0 n8 tCH CEN hold time from RON, WRN high 0 n8 tRW WRN, RON pulse width 225 ns too Data valid after RON low 150 ns tOF Data bus floating after RON high 100 ns tos Data setup time before WRN high 100 n8 tOH Data hold time after WRN high 0 ns tcc Time between READs and/or WRITEs 600 ns Port Timing (figure 3)8 t ps Port input setup time before RON low 0 ns t pH Port input hold time after RON high 0 ns t po 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) 200 ns Clock Timing (figure 5) tCLK X1ICLK high or low time 100 ns fCLK X1/CLK frequency 2.0 3.6864 4.0 MHz t CTC CTCLK (IP2) high or low time 200 ns f CTC CTCLK (IP2) frequency 0 2.0 MHz tRX RxC high or low time 220 ns f RX RxC frequency (16X) 0 2.0 MHz (1X) 0 1.0 MHz tTX TxC high or low time 220 ns f TX TxC frequency (16X) 0 2.0 MHz (1X) 0 1.0 MHz Transmitter Timing (figure 6) t Txo TxD output delay from TxC low 350 ns t TCS TxC output skew from TxD output data -75 0 75 ns Receiver Timing (figure 7) t RXS RxD data setup time to RXC high 200 ns tRXH 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) Fortestlng, alilOput signals sWing between 0 4Vand 2 4V wltl1a transition time of 20n8 maximum All time measure· ments are referenced at Input voltages of 0 BV and 20V and output voltages of 0 BV and 2 OV as approprtate TYPical values are at + 25 D C, tYPical supply voltages, and tYPical proceSSing parameters Test condition for outputs CL = 150pF 8 Timing IS Illustrated and referenced to the WRN and RON Inputs The deVice may also be operated with CEN as the 'strobing' input. In this case, all timing specifications apply referenced to the failing and rlsmg edges of CEN 1·82 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 'A'WU;;' 1 RESET TIMING RESET --' r l-IRES~ ~_ , FIGURE 1 BUS TIMING M_M~ lAS CEN leH 1 - - - - tRW-------' RON 00-07 FLOAT (READ) WRN FIGURE 2 Signefics 1·83 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES '4itlt4i,ii PORT TIMING "'~_4"~)L....-_-_-_-_~-_-_-_-_~-_~- ,~~ j{"- WRN\'----_i~j- OPO·OP7 X. OLD DATA NEW DATA FIGURE 3 INTERRUPT TIMING J£\'-----i,";-_ INTRN OR OP3·0P7 FIGURE 4 --- --- CLOCK TIMING tcLK tCTC X1/CLK CTCLK - tA, t" - / RxC TxC / - --- -- teLK tCTC tA, t" --- r- FIGURE 5 1·84 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 'i'Ai';4 TRANSMIT 1 (1 O~~~6~~~Ks)--=t TxC - } (INPUn - ITXD t TxD ~r---:{.---"\x TxC (IX OUTPUn - / FIGURE 6 RECEIVE RxC (IX INPUT) \ r \"'---_ RXD--f···~ ~~]--- FIGURE 7 TRANSMITTER TIMING TRANSMITTER ENABLED TIlRDY (SR2) WRN D' 03 START BREAK D4 STOP BREAK D5W1L.L NOT BE D. TRANSMITTED CTSN1 (IPO) _ _ _- - ' RTSN 2 A (OPO) i"1-----------------------~----- OPR(O)= 1 NOTES 1. TIMING SHOWN FOR MR2(4)=1 2 TIMING SHOWN FOR MR2(5) 1 = FIGURE 8 Signetics 1·85 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC2681 SERIES 'P'4it:i' RECEIVER TIMING RxO RECEIVER ENABLED RxRDY (8RO) _ _ _ _ _ _....... FFULL (8R1) _ _ _ _ _ _ _ _ _ _ _ +-__________-' RxRDYf--------, FFUlL (OP5)2 RON OVERRUN (8R4) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ + __..;;;;=..I RESET BY COMMAND RTS1 (OPO) NOTES 1. TIMING SHOWN FOR MR1(7)=1. = 2. SHOWN FOR OPCR(4) 1 AND MR1(8)=O. FIGURE 9 WAKEUP MODE L.CI---I--- MASTER STATION BIT9 I BIT9 !oI i --------1','8 11-', IAoo"!'1 B,T9 TxO !AOO_", I DO ~I-I ---------1,\----'---'---'-' _ I I TRANSM'TTER~' II ENA,BLED I ;)---1'~~----'I\ (wSR ~ TxRDY I I 1 - - ' ,_ _ _ " _ _ _ _ _ _ _ _--\' \ ,'--_ _ _ _ _ _ _ _ _ _ _ __ ,. i )- MR1(4·3)=11 ADO#1 MR1(2)=ODO MR1(2)=1 ADD#2 MR1(2)=1 PERIPHERAL STATION BIT 9 BIT9 BIT9 !,'~ BIT 9 9-,;1- .-.....,B;:.:'T... IADD., H 1i ............ ioI::1 '""""II-, \: ----------1, ~ IAoo*", I 1:1L.....L_..;.;I0;..l1 II'II- Of RXD---' !oI I -DO ....... RECEIVER ENABLED _ _ _ _ _ _ _ _ _ _ _ _...:'_ _---I I ,--;-, I -----------------+,----"L-- I R;~~~ ________.....J~ ~I-: ______----I~~ RDN/WRNLJ MR2(4.3):::11 -V- ~ ADO#1 S~S~TA ~ STATUS DATA DO ADD#2 FIGURE 10 1·86 Signetics Section 2 Video Display Signetics MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 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 acter generator. It contains 128 10X9 char- • Character and line address latches acters placed in a 10X16 matrix, and has • Internal descend logic the capability of shifting certain characters, • 300nsec character select access such as j, y, g, p and q, that normally extend maximum below the baseline. Character shilling, pre- • Control character output inhibit logic Viously requiring additional external circuit- • Static operation-no clocks required ry, is now accomplished internally by the • Single 5V power supply DCGG; effectively, the 9 active lines are • TTL compatible inputs and outputs lowered within the matrix to compensate for the character's position. Seven bits of an 8-bit address code are used to select 1 of the 128 available charac- ters. The eighth bit functions as a chip en- able signal. Each character is defined by a pattern of logic Is and Os stored in a 10X9 matrix. When a specific 4-bit binary line ad- dress code is applied, a word of 10 parallel bits appears at the output. The lines can be TOP VIEW 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- COMMERCIAL RANGES tially addressed, the device will automati- PACKAGES vcc = sv ± 5%, TA = O'C to 70'C cally place the 1OX9 character in 1 of 2 pre- Ceramic DIP SC2670'CS128 programmed positions on the 16-line matrix with the positions defined by the 4-line ad- Plastic DIP SC2670'CSN28 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 shift, 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 is also provided. The 2670 also includes a graphics capability, wherein the 8-bit char- acter code is translated directly 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. => DO-DO 2-2 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 'ilA'"'''''-''' PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION CAO·CA7 3·6.6·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 trio stated when CA7=0. In graphics mode (GM= I), the outputs are active and CAO thru CA7 select one of 256 possible graphic patterns to be output. 2 CSTROBE 7 I Character Strobe: Used to store the character address (CAO thru CA7) 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. TYPICAL APPLICATION Part No. Quant. Price TDt.3.1 i L r-Pi/?4 °JI _'J. ?C 15.00 375.901 i...~ E :X9009 .-r J 100 J"t,~b 3486.001 1"1. ..... s A~jW-2AI 50 0.95 47.501 ! .,., Figure 1 76 ,f .. 78 l 80 81 Slgnatics 2·3 MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 Imti"lI,t.!lj FUNCTIONAL DESCRIPTION of the 128 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'S5'. The outputs from Line and character codes are strobed into the graphics logic go to the line select Read Only Memory multiplexers. The multiplexers route the the line and character latches. The charac- The 11 ,S48-bit ROM stores the fonts for the graphic symbol data to the outputs when ter latch outputs are presented to the three 128 matrix-defined characters. The data for GM = 1. sources of data; the ROM through an ad- each character consists of 91 bits. Ninety dress decoder, the graphics logic, and the bits represent the 10X9 matrix and one bit output inhibit control. The output inhibit con- Thin Graphics Option specifies whether the character data is out- trol (together with the SCO input) sup- As a customer specified option, 1S of the put at the normal (unshilled) lines or at the presses the ROM data for selected charac- possible graphic codes (H'80' to H'8F') may descended (shilled) 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 drive the line address translation ROM characters illustrated in figure 3. For each of multiplexers. The descend control bit is an these characters, the vertical component which maps the character ROM data onto 9 input to the line address translation ROM. of 1S line positions. Finally, the line select appears on the 04 output. The horizontal multiplexers route the ROM or graphics data Graphics 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 customer. 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 graphics mode. addresses zero thru LH and LH thru filleen, In graphics mode, output data is generated respectively. The character latch is a 9-bit edge triggered latch used to store the character address by the graphics logic instead of the ROM. The graphics logic maps the latched char- Line Select Multiplexers (CAO thru CA7) and graphics mode (GM) acter address (CAO thru CA7) to the outputs The ten line select multiplexers select ROM inputs. The data is stored on the falling edge data as specified by the line address trans- of CSTROBE. Seven latched 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 CAS) 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 CAS is output on DO thru are the nine line outputs from the ROM, an (GM=O), CA7 operates as a chip enable. output from the graphics logic and a logic The output drivers are enabled when CA7= 1 04 and CA 1, CA3, CA5 or CA7 is output on zero (ground). and are tri-stated when CA7=0. In graphics 05 thru 09. The outputs are paired: When mode (GM= 1), the output drivers are always CAO is output on DO thru 04, CA 1 is output Output Drivers enabled and the CAO thru CA7 outputs of the on 05 thru 09 and likewise for CA2-CA3, Ten output drivers with 3-state capability latch are used to generate graphic symbols. CA4-CA5 and CAS-CA7. serve as buffers between the line select A ROM within the graphics logic allows the multiplexers and external logic. The 3-state Character Address Decoder specific line numbers for which each pair of control input to these drivers is supplied This circuit 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= 1, the outputs are always active. GRAPHICS SYMBOLS-GENERAL FORMAT UNEADDRE5S ~ }-~, LF=O- 0- ,- CAO CA' ,- ,- ,- 3- 3- 4- CA' CA3 } GMWP' 4- 5- 5- G~UP3 6- S- ,- CA. CAS } ,- 6- 6- 9- '0- CAS CA' } OROUP 4 '0- I......-DO -04'---'I-+-----D5 - 09----"'1 I 8QSS!l!l8~ I 1 1 I I I ~ I I 3 GROUP LINE AOOAESSES ARE SPECIFIED BY THE CUSTOMER EXAMPLE' CA7 - CAO = HiSS' GROUP 1 SPECIFIED FOR LINES 0, 1, 2 GROUP 2 SPECIFIED FOR LINES 3, 4, 5 GROUP 3 SPECIFIED FOR LINES 6, 7, 8 GROUP 4 SPECIFIED FOR LINES 9, 10, 11 SPACE SPECIFIED FOR LINES 12, 13, 14, 15 Figure 2 2·4 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 Output Inhibit Control SPECIAL GRAPHIC CHARACTERS The output inhibit control logic operates only if GM=O. It causes the output of the line GENERAL FORMAT 10 X 18 CHARACTER BLOCK select multiplexers to be logic zero if the SCD input is high and CA6 and CAS of the LO latched character address are 00. If the SCD input is low, normal operation occurs. (This feature is useful in ASCII coded appli- 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 This 32X 10 ROM translates the S-bit code consisting of the 4 outputs from the line ad- dress latch and the descend control bit from the ROM into a l-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- acters. 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 un shifted and shifted characters), the translation ROM forces ze- "5 ros at the outputs of the line select DO D4 DO multiplexers. THIN GRAPHIC FONTS FOR This circuitry only operates if GM=O. When CA7 - CAO '" HEX 80 - HEX SF GM= I, the line select multiplexers are forced to select the outputs from the graph- ics logic. Figure 4 shows an example of data outputs where the customer has specified line 14 as 80 ., .2 .3 the first line for unshifted characters, line 11 as the first line for shifted characters and line address combinations in descending order. CUSTOM PATTERN PROGRAMMING INSTRUCTIONS UJDJcarn 84 .. .5 .7 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 Signetics with a deck of standard BO-column computer cards describing the data to be . .9 SA 88 stored in the ROM array, the programmable line address translation ROM, thin graphics option, and the graphics line font translation ROM. 5JBJ@tE .e 8D BE 8F Figure 3 Signetics 2·5 MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 CUSTOMER SPECIFIED EXAMPLE Y!!i ~ r- ~~ ,. (') "'" ?'< ,. 13 ,~ " r--- !II >< 11 10 ( 7'" () I 1 (J X L-_____________________ ~mER~QAm ____________________ ~ Figure 4 On receipt of a card deck, Signetics will CUSTOMER 10 CARD #2 CUSTOMER 10 CARD #5 THRU N translate the card deck to a truth table using the Signetics Computer Aided Design (CAD) COLUMN DATA COLUMN DATA facility. The truth table and font diagrams 1 C 1 C will then be sent to the customer for final 2 blank 2 blank approval. On receipt of final approval, 3-70 Customer contact 3-70 Any information desired Signetics will produce masks and proceed person name I 71-80 blank with manufacturing. phone number Programming information can also be input 71-80 blank on TTY 7-level tape as card images. Each card Image must be terminated with a car- riage return-line feed. An EOT character must signify the end of the data set. CUSTOMER 10 CARD #3 Customer identification cards are always COLUMN DATA labeled with a C in column 1. For customer identification, four cards are required. Any 1 C number of additional customer identification 2 blank cards are permitted. The following data 3-70 Customer address should be included: 71-80 blank CUSTOMER 10 CARD # 1 COLUMN DATA CUSTOMER 10 CARD #4 1 C COLUMN DATA 2 blank 3-g 2670/CP 1 C 10-14 blank 2 blank 15-70 Company name I 3-70 Customer cily, state, company part number zip code 71-60 blank 71-80 blank 2·6 Signatlcs MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 The following masking information cards must be included: Mask Information Card # 1: MASK INFORMATION CARD #2: Shift and Nonshlft Character Translation Data Graphics Translation Data COLUMN DATA COLUMN DATA 1-9 NONSHIFT= 1-14 THIN GRAPHICS= 10 Line address in hex which outputs the first font 15-17 YES or NOI6, where ~ = blank. Specifies wheth- word for nonshifted ROM fonts er graphics address hex 80 thru hex 8F will 11 select the special thin graphics font. 12 Line address in hex which outputs the second 18-19 blank font word for nonshifted ROM fonts 20-23 HOR= 13 , 24 The line address in hex for the horizontal seg- 14 third ments of line graphics fonts. Leave blank if col- 15 , umns 15 thru 17 are NO 16 fourth 25-29 blank 17 , 30-45 Graphics group number 1 or 2 or 3 or 4 or blank. 18 fifth Columns 30 thru 45 correspond to line address 19 , hex 0 thru hex F respectively. The group num- 20 sixth ber specified in each column will cause the 21 , graphics data generated by that group to be 22 seventh output at the corresponding line address. A 23 , blank specifies no data for that address. 24 eighth 46-80 blank 25 , 26 ninth 27-29 blank MASK INFORMATION CARD #3 THRU #130: 30-35 SHIFT= ROM Font Data 36 Line address in hex which outputs the first font COLUMN DATA word for shifted ROM fonts 1-2 Character address in hex (CA6 thru CAO)' 37 3 blank 38 second 4 S for shifted; N for nonshifted. 39 , blank 5 40 third 6-8 Data for first ROM font word in hex (09 thru ~O). 41 , 9 blank 42 fourth 10-12 second 43 , 13 blank 44 fifth 14-16 1hird 45 , 17 blank 46 sixth 18-20 fourth 47 , 21 blank 48 seventh 22-24 fifth 49 , 25 blank 50 eighth 26-28 sixth 51 , 29 blank 52 ninth 30-32 seventh 53-59 blank 33 blank 60' o or 1 34-36 eighth 61-64 blank 37 blank 65' o or 1 38-40 ninth 66-80 blank 41-80 blank NOTES NOTe 1 Column 60 specifies the font truth table hOrizontal for- • A separate card IS required for each character address mal 0 specifies left to right prmting of DO thru 09 1 hex 00 thru hex 7F specifies 09 thru DO 2 Column 65 speclfles the font truth table vertical printout formal 0 specIfies top to bottom printing of Ime address hex 0 thru F 1 specifies hex F thru 0 Signetics 2·7 MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 Imii"lI.i.i(i Printouts SAMPLE CARD DECK INPUT Signetics will translate the card deck to the SlGN[TICS C 2670/CPIOOOPA 2670 TE:ST RUN 0 .. /16179 following printouts to be submitted to the customer for approval: THIN GRAPHICS=YES HOR=7 111122223333'+l+ljll NONSHIFr=l, 2 • .5 ... t". 6.7. S.9 ::'HIFT=3. 11.5. EO. 7.8.9. A. B • A rapeat of all customer information. 00 N 022 026 02A n32 OAA oe8 088 088 070 1+0 N 078 08,+ 082 nCA 08A 072 002 08'+ 078 • A separate font drawing for each of the 01 N Ole 002 DOC 1'110 OBE 086 OF'8 088 088 '+1 NOlO 028 Ottl+ nS2 082 OFE 0~2 082 OB2 128 ROM characters and 256 graphics 02 N Ole 002 DOC 010 DBE 050 020 050 088 1f2 N 03E 01+1+ 08'+ 0'+11- 03e Olt'+ 0811- 01+1+ 03£. fonts. The font drawings are positioned on 03 N DIE 002 ODE 002 09E 050 020 050 088 '+3 N 07S 08'+ 002 002 002 002 002 081+ 078 all- N DIE 002 ODE n02 DIE OF'8 020 020 U20 '+1+ N 03£ 0'+1+ 08'+ n8'+ 08'+ 084 081f Olfl+ 03E a 10 X 16 matrix as specified by the cus· 05 N DIE 002 ODE 002 OGE 090 O~O 000 OED 11-5 N OFE 002 002 n02 03E 002 002 002 OFE tomer's translation data. 06 N DOc 012 DIE n12 092 050 030 050 090 11-6 N OF[ 002 002 n02 03( 002 002 002 002 07 NODE 012 ODE 012 ODE 010 010 010 OFD 1+7 N 018 OS~ 002 002 002 OE2 082 Oe'+ 088 08 NODE 012 ODE 012 DEE 010 060 oeD 070 48 NOS.:! 082 082 n82 Of( 082 082 082 082 09 N 012 012 DIE 012 012 OF'8 020 OZG 020 '+9 N 07C 010 010 010 010 010 010 010 07C OA N 002 002 002 olE OFO 010 070 010 010 itA N OED 040 0'+0 oltO 01+0 0'+0 042 042 03C DB N 022 022 022 011+ 008 OF8 ()20 020 020 48 N 082 042 022 n12 aDA 016 0'2 0,+2 082 DC N DIE 002 00£ 002 OF2 010 070 010 010 4C N 002 002 002 n02 002 002 002 002 on 00 N OlC 002 002 002 07C 090 PO 050 0'90 '+0 N 082 oe6 OAA n'92 0'92 082 082 082 082 DE N OlC 002 DOC 010 06E 09() 0'30 0'90 0&0 '+E N 082 082 086 n8A 092 OA2 oe2 082 082 OF N OlC 002 DOC 010 DEE O~O 01+0 01+0 OED II-F N 038 0'+'+ 082 n82 082 08o! 082 01+'+ 038 10 NODE 012 012 012 DOE 010 010 010 OFO 50 N 01[ 082 082 n82 07E 002 002 002 002 11 NODE 012 012 012 0'+( 060 01+0 01+0 oro 51 N 0313 01+'+ 082 n82 082 092 !lA2 01+'+ 088 12 NODE 012 012 '112 06E 090 O~O 020 OFO 52 N 07E 082 082 082 07£. 012 022 042 08.:! 13 NODE 012 012 n12 ObE 080 060 oeD 070 53 N 078 084 002 n04 038 040 080 042 03e III- NODE 012 012 n12 OI+E 060 050 OF8 040 51+ N OFE 010 010 nlO 010 010 ulO el0 CIO 15 N 012 016 OlA 012 092 050 030 050 0'30 55 N 082 082 082 n82 082 082 0132 16 N Olc 002 oDe 310 08E 050 U20 020 020 56 N 082 082 082 n!flt 044 028 0'8 010 010 ''" 17 N DIE 002 ODE 002 07[ 090 C70 neJo 070 57 !II 08;1: 082 082 n82 082 092 ,)q::,> OAII 04'+ 18 N Ole 002 002 002 Ole 090 l'PO liDO 58 N 082 082 0'+4 n28 010 028 0'+1+ 082 082 n N OlE 002 ODE 002 OlE 088 008 OAIl Ollll 59 N 082 082 01+'+ 028 010 010 010 010 010 lA N OlC 002 DOC 1110 07E 090 070 0'90 070 SA N OF( 080 01+0 020 010 008 00,+ 002 OF[ IB N DIE 002 OO( n02 Ol( 0(0 010 010 OED 58 N 07C 001+ 00'+ 00,+ 001+ 00'+ 001+ DOli- 07C lC N Ol( 002 OO( 002 O(l 010 Of-O 080 070 !5C N 000 002 00,+ nOa 010 020 0,+0 080 000 10 N Ole 002 OlA 012 DEC 010 060 080 070 50 N 07e 0,.0 0"0 n"o 0'+0 0'+0 040 0'+0 07C IE N OO( O1l ODE 1I0A OFl 010 060 080 070 5E NOlO 038 051+ 010 010 010 010 010 010 IF N 012 012 012 012 DEC 010 060 080 070 SF N 000 000 008 00" OFE 00,. 008 000 000 20 N 000 000 000 000 000 000 000 000 000 60 N 018 018 010 020 000 000 000 000 000 21 N 010 010 010 010 010 000 000 010 010 61 N 000 000 000 03C 01+0 01C 011-2 0"2 OBC 22 N 028 028 028 028 000 000 000 000 000 62 N 002 002 002 03A 0'+6 0'+2 0'+2 011-6 03tt 23 N 028 028 OF( 028 02B 028 OF( 02a 028 63 N 000 000 000 03C C,+2 002 002 0,+2 03e 2 .. N 028 OFe 02A 02A 07C OAS 01\8 07E 028 6" N 01+0 O~O 0'+0 oSC 062 01+2 0'+2 062 OSC 25 N 001+ 08A 01+11- 020 010 008 Oil-II- OA2 0'+0 65 N 000 000 000 03C 0'+2 07E 002 002 03e 26 N DOC 012 012 DOC OOC 012 OAl 0,+2 OBC 66 N 030 01+8 008 008 03E 008 008 008 008 27 N 018 018 008 nO~ 000 000 000 000 000 67 S 000 OSC 062 n,+2 062 OSC 01+0 011-2 03e 28 N 020 010 008 n08 008 008 ceo 010 020 68 N 002 002 002 03A 046 0'+2 042 0'+2 0'+2 29 N OOa OlD 020 020 020 020 020 010 OOa 6'iI N 000 010 000 018 010 010 010 010 038 2A N 000 010 05'!- n38 OF( 038 O!SI+ 010 000 &A S 000 060 01+0 n'!-O 011-0 01t0 01+0 01+1+ 038 28 N 000 010 010 010 OF( 010 010 010 000 68 N 002 002 002 n22 012 OOA 016 022 042 2C S 000 000 000 000 000 018 018 008 001+ 6C N 018 010 010 010 010 010 010 010 038 20 N 000 000 000 000 OFE 000 000 000 000 60 N 000 000 000 06A 0'96 0~2 0~2 0~2 0'2 2£ N 000 000 000 000 000 000 000 018 {l18 6( N 000 000 000 03A 0'+6 011-2 01+2 011-2 Olt2 2F N 000 080 01t0 n20 010 008 OOtt 002 000 6F N 000 000 000 03C 042 0~2 0'+2 01+2 03e 30 N 038 01+1t OC2 oA2 092 08A 086 04'+ 038 70 S 000 03A 01+6 Olt2 011-6 03A 002 002 002 31 N 010 018 Oh 010 010 010 010 010 07C 71 S 000 OSC 062 011-2 062 OSC 0'+0 0 .. 0 0'+0 32 N 07C 082 080 0'+0 038 00'+ 002 002 OF( 72 N 000 000 000 03A 0~6 002 002 002 002 33 N 07C 082 080 080 070 080 080 082 01C 73 N 000 000 000 o3C O~2 OOC 030 0'+2 03C 3tt N Otto 060 OSO nlf8 Oillf OFE 01f0 0'+0 0110 7'1- N gOO 008 008 {lIe 008 008 008 01+8 030 35 N OFt 002 002 n02 07E oeD 080 082 01C 7S N 000 000 000 nll-2 0'+2 0,+2 042 062 OSC 36 N 078 081f 002 002 07A 086 0132 082 07C 76 N 000 000 000 nlt'!- 011-1+ 0~4 0'+1+ 028 010 31 N OFF:: 080 080 01+0 020 010 008 DOli- 002 77 N 000 000 000 082 082 092 092 0'92 06C 38 N 07c 082 082 0'+'1 038 0'+11- 082 082 07C 78 N 000 000 000 0'+2 02'+ 018 018 021+ 0~2 39 N 07C 082 082 OC2 OBC 080 060 0'12 03C 79 S 000 01+2 011-2 nll-2 062 05C 0"0 01+2 03C 3A N 000 000 000 018 018 000 000 018 018 7A N 000 000 000 n7E 020 010 008 00,+ 07E 38 SODa 018 018 nOD 000 016 018 008 00'+ 78 N 030 008 008 008 001+ 008 008 008 030 3C N 020 010 008 00'1 002 00'1 008 010 020 7C NOlO 010 010 000 000 000 010 010 010 30 N 000 000 000 nFE 000 000 QFE 000 000 70 N 018 020 020 020 0'+0 020 020 020 016 3E N 008 010 020 0'10 080 01f0 020 010 008 7E: N 000 000 000 noc 092 060 000 000 000 3F N 07C 082 082 n80 060 010 010 000 010 7F N OU 05,+ OAA 05~ OAA 05'+ OAA 05,. OAA 2·8 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 l:tQii"ii,t·'¢1 ABSOLUTE MAXIMUM RATINGS1 PARAMETER RATING UNIT Supply vollage 6.0 V Operaling ambienllemperalure2 010 +70 °c Siorage lemperalure -6510 +150 °c All vollages wilh respecllo ground 3 -0.310 +6.0 V NOTES 1 Stresses above those hsted under Absolute MaXimum Ratings may cause permanent damage to the deVice This 18 a stress rating only and functional operation of the deVice at these or any other condition above those mdlcated In the operation section of thiS specification 18 not Implied 2 For operating at elevated temperatures. the deVice muat be derated based on + 150"C maximum Junction temperature and thermal retustsnce of 60"C/W Junction to ambient (ceramic package) 3 This product Includes circuitry specifICally deSigned for the protection of Its Internal deVices from the damagmg effects of excessive static charge Nonetheless It IS suggested that conventional precautions be taken to aVOid applymg any voltages larger than the maxima DC ELECTRICAL CHARACTERISTICS TA = O°C 10 70'C, VCC = 5.0V ± 5% 1.2.3 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max VIL Inpul low vollage 0 0.8 V VIH Inpul high vollage 2.0 VCC V VOL Oulp"1 low vollage = 1.6mA 10 0 0.45 V VOH Oulpul high vollage 10 = -1001tA 2.4 VCC V IlL Inpul leakage currenl VIN = 0 10 4.25V 10 p.A 10L Oulpul leakage currenl Vo = 0.410 4V ±10 p.A ICC Supply currenl VCC = 5.25V 50 100 mA CIN Inpul capacilance All olher pins grounded 10 pF COUT Oulpul capacilance 15 pF AC CHARACTERISTICS TA = O°C 10 +70'C, VCC = 5V ± 5% 1.2.3 TENTATIVE LIMITS PARAMETER UNIT Min Max IWS Sirobe pulse widlh 100 ns lAS Address selup 50 ns IAH Address hold 25 ns ICA Characler seleci access 300 ns ILA Line select access 500 ns ISEL Chip selecl delay' 250 ns IDES Chip deseleci delay' 200 ns ISC Special characler blank I unblank lime 1 p's NOTES Parameters are valid over operatmg temperature range unless otherwise specified All voltage measurements are referenced to ground All time measurements are at 50% level for mputs and at the 0 BV or 2 OV level for outputs Input levels are 0 45V and 2.V 3 TYPical values are at +25°C. typical supply voltages and typical proceSSing parameters 4 Test conditions CL = 100pF and 1 TTL load Signetics 2·9 MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 'mu", ..t.", TIMING DIAGRAMS _ ' _ '_'LA_ C CAS,CAO NOTE 1 WHEN GM= 1, SCD INPUT IS INACTIVE CSTROBE CAO-CA7,OM ___c CSTROBE ---I~ 00-00 _ _-::;OlJ11!UTB:;;,,;,;;:,;TIII-II=t:;,;:'TE=-_ _ - .... -1 0lJ11!UTB...... } - - NOTE 1 CA7 OPERATES AS OUTPUT ENABLE ONLY IN CHARACTER MODE (GM=O) 2·10 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 l:mil"JI,t.!lj = 2 Signetics 2·11 MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 l81ii"jj,(.I'I 2·12 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 1#1 11 "",1.1,, = 2 Signetics 2·13 MICROPROCESSOR DIVISION JANUARY 1962 DISPLAY CHARACTER AND GRAPHICS GENERATOR (DCGG) SC2670 'm""n,[.I" 2·14 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE KEYBOARD & COMM CONTROLLER (PKCC) SC2671 DESCRIPTION FEATURES PIN CONFIGURATION The Signetics 2671 Programmable Key- • Keyboard Interface board and Communications Controller Contact or capacitive kayboard (PKCC) is an MOS LSI device which pro- Up to 128 key. on .n 8 X 16 matrix vides a versatile keyboard encoder and an Encoded or unencoded operation Vee independent full duplex asynchronous com- munications controller. It is intended for use in microprocessor based systems and pro- vides en eight bit deta bus interface. Four code level. per key Latched key optlon- ••p.rat. d.press .nd r.I•••• code. Programmabl. acan rata .nd debounc. AxO .,0 XTAL2/BRClK 2 ==== tim. XTAL1 The keyboard encoder handles the scsn- Progr.mm.bl. rollov.r mod•• Axe ning, debounce, and encoding of a keyboard Progr.mm.ble .uto-r.p.at for matrix with a maximum of 128 keys. It pro- TXe ••I.cted k.ys vides four levels of key encoding corre- sponding to the separate SHIFT and CON- TROL input combinations. Four keyboard Ton. output-two fr.qu.ncl.s • Asynchronous communication .,•• Int.rfac. rollover modes can be programmed includ- xAO M Int.rn.1 baud rat. g.ner.tor-16 rates Ing provisions for up to 16 latched keys. REPEAT ~ Full dupl.x op.r.tlon Control outputs are provided for interfacing liii D.t.ctlon of stert .nd .nd of br•• k !lRIrT with contact or capacitive keyboards. An Programm.bl. br••k g.neratlon el5IITIIl![ WIi eight bit keyboard status register provides Progr.mmable ch.r.ct.r p.r.m.t.rs status information to the CPU. TONE lIlfA Auto-acho .nd m.lnt.nsnce loopb.ck xAET 07 The receiver section of the communications modes controller accepts serial data from the RxD • PolI.d or Int.rrupt op.r.tlon DO DO pin and converts it to parallel data charac- • Int.rrupt priority controll.r .nd vector 01 os ters. Simultaneously, the transmitter section g.n.rator accepts parallel data from the data bus end • Operat.s dlr.ctly from cryst.1 or D. O' outputs serialized data onto the TxD pin. Re- .xt.rn.1 clocks d. IIITII ceived data is checked for parity and fram- • TTL compatlbl. Vss mTII ing errors, and break conditions are flagged. • Slngl. +5 volt pow.r .upply Character lengths can be programmed as 5, • 40 pin dual In-line packag. 6, 7, or 8 bits not Including parity, start or stop bits. An internal baud rate generator APPLICATIONS (BRG) with 16 divider ratios can be used to • CRT t.rmlnal. Operation Control derive the receive and I or transmit clocks. • Hard copy t.rmlnals This functional block stores configuration The BRG can accept an external clock or • Word proc.sslng syst.ma and operation commands from the CPU and operate directly from a crystal. An eight bit • Data .ntry t.rmlnals generates appropriate signals to various in- communications status register provides • Small busln.ss comput.rs ternal sections to control the overall device status Information to the CPU. op.ration. It contains read and write circuits FUNCTIONAL DESCRIPTION to permit communications with the The PKCC has an interrupt mask register to The PKCC consists of six major sections selectively enable certain keyboard and (see block diagram). These are the trans- microprocessor via the data bus and con- mitter, receiver, timing, operation control, tains mode registers KMR and CMR, the communications status bits to generate in· command d.coder, and status registers terrupts. Priority encoded interrupt keyboard encoder, and a priority encoded int.rrupt control unit. These sections com- KSR and CSR. Details of operating mod.s vectoring is available. Upon receipt of an interrupt acknowledge, an interrupt vector municate with each other via an Internal and status information are pr.s.nted In the data bus and an internal control bus. Th. Operation section of this data sheet. The will be output on 00-07 reflecting the source regist.r addressing is sp.cified in table 1. of the interrupt. The interrupt source can internal data bus interfaces to the also be read from an interrupt status regis- microprocessor data bus via a bidir.ctional ter. data bus buff.r. Timing The PKCC contains a baud rate generator (BRG) which is programmable to accept .x- ternal transmit or receive clocks or to divide an external clock to perform data communi- cations. The unit can g.nerat. 16 baud rates, any of which can be s.l.ct.d for full duplex operation. Th. external clock to the baud rate generator can be appli.d directly ORDERING CODE to the XTAL2 input (see figure 21) or can be generated internally by connecting a crystal COMMERCIAL RANGES across the XTAL 1, XTAL2 Input pins. The PACKAGES VCC= 5V ±5%, TA= O"C to 7O"C clock input is also utilized by the keyboard Ceramic DIP SC2671 ACSI40 encoder section. Thus, a clock must b. pro- vided even if external transmitter and re- Plastic DIP SC2671 ACSN40 ceiver clocks are used. Signetlcs 2·15 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE KEYBOARD Ik COMM CONTROLLER (PKCC) SC2671 'PI""II,I.", PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION 00-07 16·19, 1/0 Data Bus: 8-bitthree-atate bidirectional data bus. All data, command and atatustransfers are 23·26 msde using this bua. DO is the least aignificant bit; 07 ia the moat significant bit. AO·A2 31·33 I Address Unes: Used to select internal PKCC registers or commands. RD 29 I Read Strobe: When low, gates the selected PKCC register onto the data bus if CE ia alao low. WJ!i 28 I Write Strobe: When low, gates the contenta of the data bus into the selected PKCC register if CE is also low. CE 30 I Chip Enable: When high, places the 00-07 output drivers in a three-state condition. If CE is low, data transfers are enabled in conjuction with the RD and WR inputs. INTR 22 0 Interrupt Reque.t: Several conditions may be programmed to requeat an interrupt to the CPU. It ia an active low open-drain output. Thia pin will be inactive aiter power on reaet or a maater reaet command. INTA 27 I Interrupt Acknowledge: Used to indicate that an interrupt request has been accepted by the CPU. When INTA goes low, the PKCC outputs an 8-bit address vector on 00-07 corresponding to the highest priority interrupt currently active. XINTR 21 I External Interrupt: An active low external interrupt input to the PKCC interrupt priority resolver. TxC 34 1/0 Transmitter Clock: The function of this pin depends on bit 7 of the baud rate control register = (BRR7). If external transmitter clock is aelected (BRR7 0), it is an input for the transmiller clock. If internal transmitter clock is aelected (BRR7 = 1), this pin is an output which ia a multiple of the actual baud rate (1 X, 16X) as selected by BRR5. The data is transmitted on the falling edge of TxC. It is an input after power on and aiter master reset or communications reaet commands. RxC 35 1/0 Receiver Clock: The function of this pin depends on BRR6. If external receiver clock is = selected (BRR6 0), it is an input for the receiver clock. If internal receiver clock is selected (BRR6 = I), this pin is an output which is a multiple of the actual baud rate (IX, 16X) as selected by BRR4. The received dsta is aampled on the rising edge of RxC. It ia an input aiter power on and after master reset or communications reset commands. TxD 38 0 Transmitter Data: This output is the transmitted aerial data; the least significant bit is transmitted first. This pin is high after power on reset or a reset command that affecta the tranamitter. RxO 39 I Receiver Data: This input is the serial data input to the receiver. The least significant bit ia received first. XTALI 36,37 I Connections for Crystal: Provides an on-chip clock generator for the internal baud rate XTAL2/BRCLK generator and the keyboard interface logic. If an external clock is provided, use XTAL2 as the clock input. See figures 20 and 21. All timing parametera such as keyboard scan time, tone frequency, and baud rate assume a clock input at the specified BRG input frequency. If this frequency is different, the timing parameters will vary proportionately. KRO-KR2 10-8 0 Keyboard Row Scan: Decoded externally; selects one of eight rows. KCO-KC3 7-4 0 Keyboard Column Scan: Decoded externally; selects one of 16 columns. KRET 15 I Key Return: An active high level indicates that the key being scanned is closed. SHIFT 12 I SHIFT Key: Active low input from the SHIFT key. The combination of SHIFT and CONTROL inputs select one of four possible codes from the internal key encoding ROM. CONTROL 13 I CONTROL Key: Active low input from the CONTROL key. The combination of SHIFT and CONTROL inputs select one of four possible codes from the internal key encoding ROM. 2-16 Signetlcs MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE KEYBOARD & COMM CONTROLLER (PKCC) SC2671 'w""n"·"t PIN DESIGNATION (Cont.) REPEAT 11 I REPEAT Key: Active low input from the REPEAT key. Causes the key depression currently active to be repeated at a rate of approximately 15 times per second. KCLK 3 0 Keyboard Clock: High frequency (approximately 400 kHz) output used to scan capacitive keyboards. KDRES 2 0 Key Detect Reset: Resets the analog detector before scanning a key. Used for capacitive keyboards. HYS 1 0 Hysteresis Output: Sent to the analog detector for capacitive keyboard applications. A low indicates the key currently being scanned has been recognized on previous scan cycles. TONE 14 0 Square Wave Output: Used for tone generation. VCC 40 I +5V power supply. VSS 20 I Ground. Receiver scanning signals for a matrix keyboard. Key OPERATION The receiver accepts serial data on the RxD depressions are detected on the KRET in- Keyboard Encoder pin, converts this serial input to parallel for- put. The debounced and verified key codes The keyboard is continuously scanned by mat, checks for break conditions, framing (or matrix addresses) are loaded into the KCO-KC3 and KRO-KR2 which are decoded and parity errors, and loads an "assembled" key holding register for access by the CPU. externally to handle 128 possible keys (see character in the receive holding register for Figures 1 and 2 illustrate the PKCC interface figures 1 and 2). KCO-KC3 select one of 16 access by the CPU. to contact and capacitive keyboards, re- columns and KRO-KR2 multiplex the eight spectively. row return lines into the KRET pin. Transmitter Debouncing is accomplished by remember- The transmitter accepts parallel data load- Interrupt Control ing a 1 state at the KRET pin when a key is ed by the CPU into the transmit holding reg- The interrupt controller unit contains a soli- being addressed and verifying it one scan ister and converts It to a serial bit stream ware programmable interrupt mask register later. Once the key is verified, a key code is framed by the start bit, calculated parity bit which selactively enables status conditions loaded into the keyboard data register (if specified), and stop bites). The compos- from the keyboard encoder and communica- (KDR). " the keyboard holding register ite serial stream of data is transmitted on tion controller to generate interrupts. The (KHR) is empty, the contents of the KDR will the TxD output pin. intarrupts are priority encoded and individ- be transferred to the KHR immediately; if the ually generate an eight bit vector which is Keyboard Encoder KHR IS full (i.e., the CPU has not read the output on the data bus in response to a CPU previous key code), the transfer will be held The keyboard encoder provides ancoded interrupt acknowledge on the INTA input pin. off until the KHR is read. The data transfer to the KHR causes keyboard data ready (KRDY) to be set in the keyboard status register. CE A2 AI AO RD/WR FUNCTION For capacitive keyboards, the high frequen- cy output KCLK can be used to gate the 1 X X X X Three-state data bus column scan to the keyboard (see figure 2). 0 0 0 0 WR Reset command (see table 6) The key detector reset (KDRES) output 0 0 0 0 AD Read interrupt status register (lSR) resets the analog detector prior to scanning 0 0 0 1 AD,WR Read/write communications mode register each key location. The output from the ana- (CMR) log multiplexer is sensed and then latched in 0 0 1 0 WR Write transmit holding register (TxHR) the analog detector. The HYS output con- 0 0 1 0 AD Read receiver holding register (RxHR) trols the sense level. A 0 will lower the 0 0 1 1 WR Write baud rate mode register (BRR) sense level causing hysteresis, and a 1 will 0 0 1 1 AD Read communications status register (CSR) raise the sense level with no hysteresis. 0 1 0 0 AD,WR Read/write interrupt mask register (IMR) 0 1 0 1 RD,WR Read/write keyboard mode register (KMR) The REPEAT input enables the keyboard 0 1 1 0 AD Read keyboard holding register (KHR) logic to recognize any key repeatedly, 15 0 1 1 1 RD Read keyboard status register (KSR) times per second. Additionally, certain keys 0 1 1 1 Wi!i Miscellaneous commands (see description) can be programmed to repeat automatically if depressed for more than one-half second. NOTE x - don't care. A square wave is output on the TONE pin when the CPU issues a ring tone command Table 1. 2671 REGISTER ADDRESSING to the PKCC. Signetics 2·17 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE KEYBOARD & COMM CONTROLLER (PKCC) SC2671 'am",,"·i-"i BLOCK DIAGRAM 080-7 .1)I BUS BUFFER K DATA KEYBOARD ENCODER KCLK t MODE & TIMING CONTROL I KDRES Ali OPERATION CONTROL. eMR t------< 1 VIR a;; KMR CSR I. KEYBOARD KCO-3 SCANNER & KRET KSR ENCODER/DECODER 2 } I COMMAND DECODER I ,- KRO-2 r------i I I 4X128X8 READ-ONLY I MEMORY ~ I - XINTR INTERRUPT CONTROL • VECTOR GENERATOR !------i urn; [:J KEYBOARD DATA REGISTER ~ Vec_ GND_ I KEY HOL.DING REGISTER 1 TIMING I TONE GENERATOR I TONE T,C I BAUD RATE GENERATOR I -- I I R,C BAUD RATE CONTROL - TRANSMITIER REGISTER -" TRANSMIT -y HOLDING REGISTER TRANSMIT >-- SHIFT REGISTER XTAL1! BRCLK f XTAL2 r RECEIVER INTE';;uP'; RECEIVE HOLDING REGISTER TIMING RECEIVE CONTROLS SHIFT REGISTER 2·18 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE KEYBOARD & COMM CONTROLLER (PKCC) SC2671 'm"..lIel·'N the code in the KDR is transferred to the CONTACT KEYBOARD INTERFACE KHR and the KRDY status bit is set (KSRO). KRET N-Key Rollover With Latched Keys: This KR2-0 )I DIGITAL MULTIPLEXER I mode is the same as regular N-key rollover, except that the keys which are assigned to row a of the keyboard matrix 2 8 ROWS (KR2-KRO = 000) produce a code both PKCC when depressed and when released. The r---- codes are independent of the states of the inputs at SHIFT and CONTROL. If one ~ KC3-0 1 OF 16 16 or more of the latched keys are de- DECODE COLUMNS pressed when the keyboard is enabled (after a keyboard reset), the corre- '-- sponding codes will be sent out as the CONTACT KEYBOARD keys are scanned and debounced. Note MATRIX that simultaneous latched keys will not set KERR (KSR 1) and that latched keys will not be auto-repeat and will not be affected by the REPEAT input. Figure 1 Two-Key Rollover: The first key code is loaded into the KDR immediately and the second code is loaded only after the first key is released. Simultaneous keys will CAPACITIVE KEYBOARD INTERFACE set KERR (KSR1). If three or more keys ANALOG remain closed at any given time, the DETECTOR KERR bit will also be set. All keys must KRET then be released before the next KRET HV! KDRES J'f will be processed. Two-Key Inhibit: All keys must be re- leased between keystrokes; otherwise, KR2-0 )I ANALOG MULTIPLEXER I KERR (KSR1) will be set. Bit KMR4 specifies the key encoding mode. PKCC BROWS Each key is assigned four S-bit codes, cor- responding to the states of the SHIFT and ;---- CONTROL inputs. If the encoded mode is programmed, the row/column address of KeLK ~ the detected key is used to load one of the 1 OF 16 DECODE 16 COLUMNS four key codes into the KDR. See table 2 for KC3-0 key code assignments. If the non-encoded mode is programmed, the row / column ad- ~ CAPACITIVE dress is loaded directly into the KDR with KEYBOARD the following format: MATRIX Figure 2 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 Bits KMR6-KMR5 select the rollover modes for keyboard processing: N-key Rollover: In this mode, the code corresponding to each key depression is loaded into the KDR as soon as that key [TLL KC3, KC2. KC 1. KCD "0" for momentary keys "1" for latched keys release is debounced, independent of the re- normal operation, this bit should always be "0" for latched keys depress lease of other keys. Two or more clo- 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 (KSR1). As soon as the keyboard holding register is empty, Signetics 2·19 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE KEYBOARD &COMM CONTROLLER (PKCC) SC2671 'Wn"ii,l.iu ROW (KR2-KRO) COLUMN (KC3-KCO) 0 1 2 3 4 S 6 7 EO CO lB ESC 09 HT IF US lA SUB 30 0 2B + a FO DO lB ESC 09 HT IF US lA SUB 30 0 3B ; EO FO CO DO lB lB ESC ESC 09 09 • HT IF IF US US 5A 7A ,Z 30 30 0 a 2B 38 +; • HT El Cl 21 I 11 DCl 01 SOH 18 CAN 3D = 2A 1 Fl 01 31 1 11 DCl 01 SOH 18 CAN 20 - 3A . : El Fl E2 Cl 01 C2 21 31 22 I 1 " 51 71 17 0 q ET8 41 61 13 A a DC3 58 78 03 X , ETX 3D 20 IE ·- •= RS 2A 3A IF : US 13 03 ETX IE IF ·· - 2 F2 02 32 2 17 ET8 DC3 RS US E2 C2 22 57 W 53 S 43 C 7E 7F DEL "2 ~ F2 02 32 77 w 73 s 63 c 5E I 5F E3 C3 23 # 05 ENO 04 EDT 16 SVN lC FS 18 ESC 3 F3 E3 F3 E4 03 C3 03 e4 33 23 33 24 3 # 3 $ 05 45 65 12 . ENO E DC2 04 44 64 06 EDT 0 d ACK 16 56 76 02 SVN V v STX lC 7C 5C 06 FS : \ BS 18 78 58 10 ESC { [ GS 4 F4 04 34 4 12 DC2 06 ACK 02 STX 08 BS 10 GS E4 C4 24 $ 52 R 46 F 42 8 08 • BS 10 I F4 04 34 4 72 r 66 f 62 b 08 • 8S 50 1 ES CS 25 % 14 DC4 07 8EL DE SO 10 OLE 08 8S S FS OS 35 5 14 DC4 07 8EL DE SO 10 OLE 08 8S E5 C5 25 % 54 T 47 G 4E N 50 P 08 8S F5 05 35 5 74 t 67 9 6E n 70 p 08 • 8S E6 C6 26 & 19 EM 08 8S 00 eR 00 NUL 09 HT 6 F6 06 36 6 19 EM 08 8S 00 eR 00 NUL 09 HT E6 C6 26 & 59 V 48 H 40 M 60 09 • HT F6 06 36 6 79 y 68 h 60 m 40 @ 09 • 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 3C 2C < 7F 7F DEL DEL 20 20 • SP J "HT • SP E8 C8 28 ( 09 08 VT 3E > OA LF 08 VT 8 F8 E8 08 C8 38 28 8 ( 09 49 , HT 08 48 VT K 2E 3E > OA OA LF LF 08 08 VT F8 08 38 8 69 , 68 k 2E OA LF 08 • VT • VT E9 C9 29 ) OF S, DC FF 3F ? 00 CR OA LF 9 F9 09 39 9 OF S, OC FF 2F / 00 CR OA LF E9 C9 29 ) 4F 0 4C L 3F ? 00 eR OA F9 09 39 9 6F 0 6C , 2F / 00 CR OA • LF • LF EA CA 37 7 34 4 31 1 30 0 AD A6 A FA DA 37 7 34 4 31 1 30 0 BO 86 EA CA 37 7 34 4 31 1 30 0 AD AS FA DA 37 7 34 4 31 1 30 0 80 86 E8 C8 38 8 35 5 32 2 2E AI A7 8 F8 DB 38 8 35 5 32 2 2E 81 87 E8 CB 38 8 35 5 32 2 2E AI A7 F8 08 38 8 35 5 32 2 2E 81 87 EC CC 39 9 36 6 33 3 8F A2 A8 C FC DC 39 9 36 6 33 3 AF 82 88 EC CC 39 9 36 6 33 3 9F A2 A8 FC DC 39 9 36 6 33 3 8F B2 88 ED CD 90 93 82 95 A3 A9 0 FD DO 90 93 82 95 83 89 ED FD EE CD DO CE 90 90 91 93 93 80 82 62 84 95 95 61 A3 83 A4 · A9 B9 AA · E 91 84 81 · FE DE 80 B4 8A EE CE 91 80 84 81 A4 AA , FE EF DE CF 91 92 80 94 84 83 81 96 B4 A5 ------ BA AB · 94 ·· F FF OF 92 83 96 85 88 EF FF CF OF 92 92 94 94 83 83 . 96 96 A5 B5 · A8 88 T CONTROL, = ""1: XX .. Vyy yyy I ml'f (Pon 12 = 0) I I (Pin 13 0) XX XX yyy ~ Latched key code fa r release Th,. row contaon. the 'atched XX YVY ~ Latched key code for depres keys when that mode 18 selected (KMRe. KMR5 = 00) Key code. on he, tV ------.J IL.______ . ASCII equivalent t .. DO-7 I /' I .,,' .... DRIVERS j I¢==I~~~~;~~~~~::I: : :t-='~ =' ' _'TROSE~ LJ rux," ""'. . L_____~_"__" __~r---IL___________~_ooo_'_:_~~____________~ CH... j 2-36 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 ':tA"..",I_"j ORDERING CODE COMMERCIAL RANGES PACKAGES VCC = SV ±S%, TA = O'C to 70'C Ceramic DIP SC2672C4140 Plastic DIP SC2672C4N40 2 PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION AO-A2 37-39 I Address Lines: Used to select PVTC internal registers for read / write operations and for commands. DO-D7 8-15 1/0 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 DO-D7 as controlled by the WR, RD, and AO-A2 inputs. When CE is high, the PVTC is effectively isolated from the data bus and DO-D7 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 DADD 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. CTRll 4 1/0 Handshake Control 1: In independent mode, provides an active low write 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 (PBREa) input which indicates that the CPU desires to access the display memory. This control output has no meaning in row buffer mode CTRl2 5 0 Handshake Control 2: In independent mode, provides an active low read data buffer (RDB) 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-DADDI3 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 DADD' command. In row buffer mode, it is an active low bus request (BREO) output which halts the CPU during a line DMA. Signetics 2·37 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'w""""_,,, PIN DESIGNATION (cont.) 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 character codes from system memory to the row display buffer. DADDO-DADD 13 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/L1 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 Li9ht 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). DADD11/BLINK Blink frequency: Provides an output divided down from the vertical sync rate. DADD12/0DD 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 A1 AO READ (RD=O) WRITE (WR=O) contains the following major blocks: • Data bus buffer 0 0 0 Interrupt register Initialization registers 1 • 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 Inltlahzatlon registers which are accessed sequentlaUy via a smgle address The pvre mamtams an ses. It is controlled by the operation control Internal pOinter to these registers which IS Incremented after each wrtte at thIS address until the last register (lR10, block to allow read and write operations to the split screen register) IS accessed. The pomter then continues to pOint to the split screen register Upon take place between the controlling CPU and power-up or a master reset command, the internal pOinter IS reset to pOint to the first register (lRO) of the Initialization register group The Internal pOinter can also be preset to any register of the group via the 'load IR 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. 2·38 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'am""'..!··,, 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- play format and operating mode, the inter· rupt logic, and the status register which pro- are supported. These are described below. form different functions for each mode and are named accordingly in the deScription of 2 SYSTEM CONFIGURATIONS each mode. 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 screenload 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 does 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 designated the independent, transparent, ation is performed at the address contained programmed values. Additional functions in the cursor address register or the pointer shared, and row buffer modes. The first 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 CRT TERMINAL BLOCK DIAGRAM CP\J Figure 1 Signetics 2·39 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'm"""'!·"t The CPU manages the data transfers by supplying commands to the PVTC. The com- INDEPENDENT BUFFER MODE CONFIGURATION mands used are: 2672 REFRESH 1. Read / Write at pOinter address. PYle RAM 2. Read/Write at cursor address (with op- - OAOD DISPLAY ADDRESS ADR tional increment of address) ;;a; 3. Write from cursor address to pOinter ad- CTRL3 co dress. CTRL1 w. DATA 1/0 The operational sequence for a write oper- CTRl2 - ation is: """ 1. CPU checks RDFLG status bit to assure that any previous operation has been TO DISPLAY DATA BUS VIDEO completed. LOGIC 2. CPU loads data to be written to display memory into the Interface latch. 3. CPU writes address Into cursor or pOInter ;, registers. 4. CPU issues 'write at cursor with/without y~ 74LS364 I (jE cp 74LS364 increment' or 'write at pointer' command. 5. PVTC generates control signals and out· RD ViR FROM CPU FROM CPU puts specified address to perform re- { quested operation. Data is copied from SYSTEM DATA BUS I the Interface latch into the memory. 6. PVTC sets RDFLG status to indicate that the write is completed Figure 2 Similarly, a read operation proceeds as fol- lows: 3. CPU writes beginning address of memory play window (defined as first scan line of the 1. Steps 1 and 3 as above. block into cursor address regIster and first character row to the last scan line of 2. CPU Issues 'read at cursor with /without ending address of 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 from cursor to painter' terval, as Illustrated in figure 3. If the com- puts specified address to perform re- command. mand is gIven during the vertical blanking quested operatIon. Data is copied from 5. PVTC generates control signals and out- interval, or while the display has been com· memory to the interface latch and PVTC puts block addresses to copy data from manded blanked, the operation takes place sets RDFLG status to indicate that the the Interface latch into the specified Immediately. In the latter case, the execu- read is completed. block of memory. tion tIme for the command IS approxImately 4 CPU checks RDFLG status to see if 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 from interface latch. Similar sequences can be implemented on TimIng for the 'write from cursor to pointer' LoadIng the same data into a block of dIs· an interrupt driven basis using the READY operation is shown In figure 5. The BLANK play memory is accomplished via the 'write interrupt output to advise the CPU that a output is asserted automatically and re- from cursor to pOinter' command: previously requested command has been mains asserted until the vertical retrace in· CPU checks RDFLG status bIt to assure completed. lerval following completion of the command. that any previous operation has been The memory is filled at a rate of one location completed. Two timing sequences are possible for 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 of overhead. memory Into the Interface latch. the command is given during the active dis- 2·40 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'pmllnllel·"t READ/WRITE AT CURSOR/POINTER COMMAND TIMING (Command received during active display window) ~, '~ 2 ~ ~ ~ ;U ~ LANK ~ 1/ HORIZONTAL BLANKING INTERVAL \ r- _;n. ~?:- Y OA oo YLAST Y CURSOR OR ADDRESS POINTER ADDRESS Y "X X XPVTC CONTROLSIGNAlSI 1ST CHAR TO VAC AND DCG ADDRESS I ~ I_REFRESH AOORESSES_ ----------------~~ ---- ~~-------------------------------- I I I 22 I'f'---' I I 22 '--I I \ 1,--, ! \ NOTE Wnte waveforms shown In dotted hnes Figure 3 READ/WRITE AT CURSOR/POINTER COMMAND TIMING (Command received while display Is blanked) BUNK PYle READ COMMAND OADO ADDRESS ~_.-------------RE-FR-E-SH-A-O-D~-S-S-ES-~--------~~.~l----------------________~--~------------------__ Figure 4 Signetics 2·41 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'W""IIe1·"1 WRITE FROM CURSOR TO POINTER COMMAND TIMING BLANK BLANK IS SET UNTIL FIRST VBLNK AFTER LAST WRITE """----------------j Figure 5 Shared and Transparent Buffer PVTC SHARED OR TRANSPARENT BUFFER MODES Modes In these modes the display buffer RAM IS a part of the CPU memory domain and is ad- REFRESH dressed dlreclly by the CPU. Both modes 2672 use the same hardware configuration with pVle t-~====~~~~~======~ DISPLAY ADDRESS ADR RAM the CPU accessing Ihe display buffer via PBR>Q three-state drivers (see figure 6). The pro- CPu { cessor bus request (PBREO) control signal Informs the PVTC thallhe CPU is requesting = ID'f access to Ihe display buffer. In response to Ihls request, the PVTC raises bus acknowl- edge (BACK) unlll its bus external (BEXT) outpul has freed the display address and data busses for CPU access. BACK, which can be used as a 'hold' input 10 the CPU, is then lowered 10 indicate that the CPU can access the buffer In transparent mode, the PVTC delays the granting of the buffer to Ihe CPU until a verti- calor horizonlal blanking interval, Ihereby SYSTEM DATA BUS causing minimum disturbance of the display. In shared mode, Ihe PVTC will blank Ihe dis- play and grant Immediale access 10 the CPU. Timing for these modes is illuslrated in Figure 6 figures 7, 8, and 9 2·42 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'm""""·"j TRANSPARENT BUFFER MODE TIMING ~~(1) ,------ ~;-------------~~----------------. ~~----~--~------~~-- ______ I 221 \'----~2~~~_--AI ____ J------------~?------------------ w ; W BLANK I/r-------H-O.-lz-O-NT-.-L-.LA...;~INl~...IN-G-,N-TE-.-V.-L------""\'------------i2------\ ------~2~ . \----------- SYSTEM ADDRESSES CADDX;>..I= NOTES 1 PBREO must be asserted prior to the rlsmg edge of BLANK In order for sequence to begm dunng that blanking penod 2 If PBREQ IS negated after the next to last CCLK of the hOrizontal blanking mterval, the next scan hne will also be blanked Figure 7 SHARED BUFFER MODE TIMING ~ {c;---------~~-------------- '--____I-__-+____ +-~~ --- ___ __ J 2~ r---- r--------~~------------- ~ ____ ~,~-------J (1) BLANK ~~ \--------~~ - ---\._-------- -------' CADD NOTE 1 If PBRea IS negated after the next to last CCLK of the honzontal blanking Interval, the next scan hne Wilt also be blanked Figure 8 Signetics 2·43 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'amn..""••" SHARED AND TRANSPARENT MODE TIMING ,.j '" PBREQ ----------------~~----------------. 12 VBLANK OR DBLANK BL.ANK DAD~ _REFRESH ADDRESSES- B----cI: ~ --1 SYSTEM PROCESSOR HAS lJONTINUOUS BUS CONTROL. OAoo\'-_ _ _ _ _ _~il~~---------J }- ADDRESSES a) During Vertical Blank or after 'display off' command b) After 'display off and 3-slate' command Figure 9 Row Buffer Mode Figures 10 and 11 show the timing and a ROW BUFFER MODE CONFIGURATION typical hardware implementation for the 2X2111 row buffer mode. During the first scan line ROW (line 0) of each character row, the PVTC REFRESH halts the CPU and DMA's the next row of character data from the system memory to BREQ the row buffer memory. The PVTC then reo TO CPU 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 falling 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 reo turns high to grant memory control back to the CPU. Figure 10 ROW BUFFER MODE TIMING J\JV~f\J\J\J\J\.I'-I1JLF :----rc~ ~"-":: =< I I I Ir-.:,....I_ __ 1 ~r--- MBC _ _ _ _ ~I~ 12 \...._ _ __ Figure 11 2·44 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'tam""n,I_'" OPERATION groups, the PVTC is ready to control the INITIALIZATION REGISTERS monitor screen. Prior to executing the PVTC After power is applled,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· ation. Two register groups exist within the PVTC: the initialization registers and the dis- Durmg operation, the PVTC will sequentially address the display memory within the limits an internal pointer to these registers which - - - - is incremented after each write at this ad- dress until the last register (lR 10, the split 2 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 seroal 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 pomt 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 lell corner of screen), the cursor posi- command These registers are write only ters, if reqUired. Interrupts and status condI- toon, 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 Alter initial loading of the two register proper time frame. INITIALIZATION REGISTER FORMATS am BIT7 ·....!!!!-·....!!!!.·AC~IV::...:,T: ... :.,Wam .~.JBIT. ~I - . . . .. . . . =00000010 3 CHARACTERS 0000"" 1l_ =SLIES [ 00000011 "" • CHARACTaIS ... 0G01- 2LMS 0010 = 3UN1S 0001 0010 =7 LIES o '" VSYNC 00 =INDEPEMJENT .:C NOT USED 1 =CSYNe 01 =TRANSPARENT 11111110 =-255 CHARACTERS 1",1111 "" 256 CHARACTERS 10"" SHARED 1110= 15UNES 1110= 31 LINES 11 =ROW ------------ 1111"'"18L1N1S 1111 = UNDEFIED L.----'_ _ '._---'-_ _ _ _-'------'_ _ ..,..orr, ....... B1T7 ·ARS~.... ~~:.. Br , lIT, .LA~7...~~~.JBrro ~~;·-~~~~I 0000 .. SCAN LINE 0 0000 = SCAN LINED [ 000' .. SCAN LINE 1 0001 .. SCAN LINE 1 lA, IMl .- -.- -. 1110.:SCAN LINE 14 . .-. 111:=SCAN LlNE14 "IT ' 1111 = SCAN LINE 15 1111=-SCANLlNE15 ',11110_127CCLK 1111111 .. 128 CCLK '-_.....L_ _• _ _ • _ _ • _ _• _ _ • _ _ • -- - ~~~~~~.Jarro BlT7 • IIT6 BITS BlT4 BITO ~AL.sy.:,rr':";:C81T3 = 0000 ~~.J"': 2 CQJ( 0001 '" 4 CCLK 000 = 1 CCLK 001 = II CQJ( It7 I-~-== 00 =SCAN UNE 3 01=SCANUM:5 10='SCANUfiE7 -- O=NO -- CHAR O=NO 8IT3 . . . WI2 NOT. • 11 "'SCANLINE8 1=YES 1=YES 1110 = SCAN UNE 14 USED . / . • 1111 '" SCAN LIE 15 .- 1110=30CCLJ( 110 = 2I!iCCLK -- -.- -- 1111 =32ca.K 111 =2SlCCLK -- 81T7 ---..!!!!.-- r!~Y:U~!~';ADD'"!'ESS~S8~1T2 -~-J.rro BIT.. ~~:;~BIT' .JIIT. ~::..r:"'I";· [ If000'= 0 H'001'= 1 .. .. 000 - 4 SCM LINES 00000 "" 4 SCAN LINES - NOTE MY'S ARE .. 001 =8 SCAN LINES 00001 "'" 6 SCAN UtES IR8 - 1RII(30) H'FF£' = 4,094 IR3 H'FFF' "" 4,085 110 = 28 SCAN LINES 11110 = 84 SCAN LINES -- --- --- --- --- --- -- 1--,-: :. :.:. .:. -I : : . :. : :.:.: :. :. .: 111 = 32 SCAN LINES 11111=HSCANUNES ----1-. -_ _ •_ _•_ _ • am 1I11I.IfTS.1IIT4. BIT3.8IT2_BlT1. BrrG CHAIIM:mo ACTIVE CHARACTER ROWS IleA ICfEEN (NOTE]! 0000 - 1,023 0001'" 2,047 I ... ~ BUNK VSYNC 00000oo 0000001 . =1 ROW =2 ROWS -: .__.__. 1110= 15,3119 1111"" 18,383 .__.__. -~ 1 = 1/32 1111110= 127 ROWS 1111111 = 128 ROWS VSYNC L _ _L - _ · _ _ • _ _ • _ _ • _ _ • _ _ • NOTE BIT7 CURSOR BITe ...... :rr~~= . BIT, .J"". 1 In Interlace mode with odd total character rows per screen the last cha!Jcter BUNK row will be the programmed scan lines per character row minus one ~ IR10 0"" 1/16 __.__.__.__.__. VSYNC 1 = 1132 1111110 =·ROW 126 VSYNC 1111111 '" ROW 127 '---'---'. Figure 12 Signetics 2-45 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'm",,",I-,'j IR0[6:3]-Scan Lines per IR1[6:0]-Equallzlng 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 dIfferent formats can be compatIble CSYNC. The value for this field screen. The sum of thIS value, the horizontal implemented, depending on the is the total number of character clocks front porch, the horizontal sync width, and interconnectIon between the PVTC and the (CCLK) during a horizontal line period divid- the horizontal back porch is the horizontal character generator (see IR1(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' HACT + HFP + HSYNe + Hap nique. As scanning occurs, the scan line EC = -2(HSYNC) count is output on the LAO-LA3 and LI pins. IR6[7:4]. IR6[3:0]-First and Last The definition of the individual parameters is Scan Line of Cursor Illustrated in figure 14. These two fields specify the height and po- IR0[2]-VS/CS Enable Note that when using the 2673 VAC, it will SItion of the cursor on the character block. This bit selects either vertical sync pulses delay the blank pulse three CCLKs relative The 'first' line IS the topmost line when scan- or composite sync pulses on the to the HSYNC pulse. ning from the top to the bottom of the VSYNC/CSYNC output (pIn 18). The com- screen. posite sync waveform conforms to EIA RS 170 standards, with the vertical interval IR2[6:3]-Horizontal Sync Pulse composed of six equalizing pulses, six verti- Width IR7[7:6]-Light Pen Line Position cal sync pulses, and six more equalizing This field specifies the width of the HSYNC This field defines which of four scan lines of pulses. pulse in CCLK periods. the character row will be used for the light pen strike-thru attribute by the 2673 VAC. The tIming signal is multiplexed onto the IR0[1:0]-Buffer Mode Select IR2[2:0]-Horlzontal Back Porch DADD91 LPL output during the falling edge Four buffer memory modes may be selec- This field defines the number of CCLKs be- of BLANK. tively enabled to accommodate the desired tween the trailing edge of HSYNC and the system configuration. See System Configu- trailing edge of BLANK. ration. IR7[5]-Cursor Blink Enable IR3[7:5]-Vertlcal Front Porch ThIS bit controls whether or not the cursor IR1[7]-lnterlace Enable Programs the number of scan line periods output pin will be blinked at the selected SpecIfies interlaced or noninterlaced timing between the rising edges of BLANK and rate (lR 10(7)). The blink duty cycle for the operation. Two modes of interlaced oper- VSYNC during a vertical retrace interval. cursor IS 50%. ation are available, depending on whether The width of the VSYNC pulse is fixed at LO-L3 or LI, LO-L2 are used as the line three scan lines. address for the character generator The re- IR7[4]-Double Height Character sulting displays are shown in figure 13. Row Enable IR3[4:0]-Vertical Back Porch For 'interlaced sync' operatIon, the same This fIeld determines the number of scan line If enabled, the number of each scan line will information is displayed in both odd and peroods between the falhng edges of the be repeated twice in succession, causing even fields, resulting in enhanced VSYNC and BLANK outputs. the height of the character row to double. readability. The PVTC outputs successive This bit can be changed at any time but will line numbers in ascending order on the only become effective at the begInning of LAO-LA3 lines, one per scan line for each IR4[7]-Character Blink Rate the character row following the tIme it is field. Specifies the frequency for the character ehanged. This allows selected character blink attribute timing. The blink rate can be rows to be of double height. The split screen The 'onterlaced sync and video' format dou- specified as 1/16 or 1/32 of the vertical onterrupt can be used to notify the CPU when bles the character density on the screen fIeld rate. The timing signal has a duty cycle to effectuate changes to this bit. For each The PVTC outputs successIve line numbers of 75% and is multiplexed onto the double height row which replaces a normal in ascending order on the LI, LAO-LA2 lines, DADD 111 BLINK output at the falhng edge of row, one row count should be subtracted one per scan line for each field, but alter- each BLANK. from the 'character rows per screen' field nates beginning the count with even and odd (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]-Underllne 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 different loading of the CRT anode supply vertical sync pulse width (three scan lines) is multiplexed onto the DADD10/UL output between fields. IS the vertical scan period in scan lines. during the falling edge of BLANK. 2·46 5ignetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 INTERLACED DISPLAY MODES 2 LINE ADDRESS LINE ADDRESS LINE ADDRESS TO CHAR GEN TO CHARGEN TO CHAR GEN 8~ ...... o SCAN ROW / 1 2 3 4 --e-e-e-e-e---- --.-------------- --.--------------- - - . -. -. ---------- 17 SCAN UNES/ ROW 1 3 2 4 0--------------- -e-e-e-e-e--- --.~~~~~~~~ --. - 5--.'~~ 1 -0-0-0-0-0--- 2-0 3-0 ••• 4-0 0-0 o SCAN UNO.I ROW {--.:-.:::====== 4 8 8 1-00000---- 3-0 5-0 ~~.~===== 7-00000---- o 6-0 5 --.--------------- 5-0 1 - •••••- - - - 8 --.--------------- 8 --. 2-0======= 3 -. 7 -e-e-e-e-e---- 7 -e-e-e-e-e---- 4-000--------- 7 -0-0-0-0-0--- 5 --. -------- 8- 0 - - - - - - - - - - - - - 7 - •••••- - - - 1 -0-0-0-0-0--- 1 -e-e-e-e-e---- 1 -e-e-e-e-e--- 1-00000------- 2 3 --. ------------- - - . --------------- 2-.====== 3 2-0------------- 3-0 --.::;:::-;===== 4-0 0 0 2 4 8 - . ------------- 3-0~~~~~~~ -- ••• -. 5-0 --.:~.~.~::::::::: 4 --. -. -.---------- 7-00000---- 4 5-0 5 -- .--------------- 5 6-0====== --. 1 - o •••••- - - - 6-02-0~~~~~~~ 8 --.--------------- 6 -. 7 -0-0-0-0-0--- 3 -. 7 -e-e-e-e-e---- 7 -e-e-e-e-e---- 4-000 5 --. 7 - •••••- - - - NONINTERlACED INTERLACED SYNC INTERLACED SYNC & VIDEO IRO=1000, TOTAL LINESlROW=9 IRO = 0111; TOTALUNES/ROW = 17 IRO =0011; TOTALUNES/ROW =9 Figure 13 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 PVTC 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- PVTC sets the split screen status bit, and 'display buffer first address'. If 'last ad- rupt feature of the PVTC. 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 be specified at zero of the split screen character row. dress' is the last character position of the 1/16 or 1/32 of the vertical scan frequency. Signe1ics 2-47 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'am""""·'fJ HORIZONTAL AND VERTICAL TIMING r-----___ CH~:::5~OW - - - - - - 1 HBLANK~ L- ----j I-- FRONT PORCH (IR1) BACK PORCH {IR21 --I I- HSYNC ---1I~ ______________--,n,--___ r- ~AR VBLANK --t ~r------;I HSYNC (lA2) ROWS/SCREEN (1R4)------I I-- SCAN LINES PER ROW (lRO) I Ii----'L --I I-- FRONT PORCH (lR3) --I BACK PORCH (IR3) I- VSYNC---IlL...-_ _ _ _ _ _ _ _ _ _ _ _ _ --.lnL...-___ ----1 r- VSVNC (FIXED AT 3) EQUALIZING LINES/ROW CONSTANT I I 100 IL-LI-II-----'-.I-11--,-1-'--'--' 101 IL...LI-'--'-.LI-,IL-L-'--I HSYNC HBACK YFRONT VBACK WIDTH , PORCH POACH , PORCH , I I I 102 1I I I I I I I CHAR ROWS/SCREEN CHARACTERS PER ROW , , 104 I I I I 105 I 1I I 1 Figure 14 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 occurenC8. 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 aUrlng verhcal Dlanklng 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 2·48 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 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- menting of the memory address counter the Cursor Address Registers illustrated in figure 15. The command regis- 'display buffer last address' (IR9[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 MANOS section of this data sheet. The re- (IR9[3:0], 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 /wlthout 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 + 1') 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 pomter' 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 'wnte 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 10 the diS' memory refresh to occur durmg the vertical cause the value stored in the light pen regis- play memory is displayed sequentially start- retrace mterval. 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. display buffer last address IS encountered, DISPLAY CONTROL REGISTER FORMATS [ ~7 .~.~a~~~~~~_~B::.'~'JBITO ._---_.__.__.__.__. COMMAND REGISTER (Write only) F-~~ '1-"'--0 -~~.- O--"'-0J"ITO B1T7 •....!!!!..... "1T5LO;E''':,';.~'S;'' ~':""'~' H'OOOO' 0 2!!!. . .JBITO [ H'OOO1' =1 Not., MSB', Ire In ~..--~.--.--.--.--.--. Upper Regl.ter {5:0] SCREEN START REGISTERS .- -.- -.- -.- -.- -.- -. (READ AND WRITE) H'3FFE' H'3FFF' = 16,382 = 16,383 CURSOR ADDRESS REGISTERS (READ AND WRITE) POINTER ADDRESS REGISTER (WRITE ONLY) UGHT PEN ADDRESS REGISTER (READ ONLY) Figure 15 Signetics 2·49 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'RI""II,I-"i INTERRUPTISTATUS REGISTERS DISPLAY ADDRESSING OPERATION The interrupt and status registers provide information to the CPU to allow it to interact wIth the PVTC to effect desired changes to implement various display operations. The f - - - - - - - - l ... DISPLAY BUFFER START interrupt register provides information on five possible interrupting conditions, as BOnOU OF SCREEN ... f - - - - - - - - l shown in figure 17. These conditions may be selectiyely enabled or disabled (masked) from causing Interrupts by certain PVTC 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 bit in the interrupt MONITOR DI.....Y register to be set upon occurrence of the interrupting condition. An interrupt condition whIch is disabled (mask bit equal to zero) has no effect on either the INTR output or 16. ' -_ _ _ _ _----' the interrupt register. MEMOFlY The status register provides six bits of sta- la) DISPLAY MEMORY WRAPAROUND tus information: the five possible interrupting conditions plus the NOT BUSY bit. For this register, however, the contents are not effected by the state 01 the mask bits. f - - - - - - - - I ... DISPLAY BUFFER START 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 executing the prevIously issued command. A MONITOR DISPLAY one indicates that the PVTC is ready to ac- cept a new command. 16. ' -_ _ _ _ _----' I/SR[4] - VBLANK MEMORY Indicates the beginning of a vertical blanking (b) DISPLAY MEMORY SPliT SCREEN WITH WRAPAROUND interval. Is set to a one at the beginning of the first scan line of the vertical front porch. Figure 16 I/SR[3] - Line Zero Is set to a one at the beginning 01 the f,rst INTERRUPT AND STATUS REGISTER FORMAT scan line (line 0) of each active character row. BIT7 BIT6 BITS BIT4 BIT3 BIT2 BIT1 BITO I/SR[2] - Spilt Screen LINE SPLIT LIGHT This bit is set when a match occurs between the current character row number and the I RDFLG 0= Busy 0= No VBLANK ZERO SCREEN READY PEN Not used 0= No 0= No 0= Busy 0= No value contained in the split screen interrupt always read as 0 1 = Ready 1 = Yes 1 = Yes 1 = Yes 1 = Ready 1 = Yes register, IR 10[6:0). The equality condition is only checked at the beginning 01 line zero of I each character row. This bit is reset when NOTE ·Status reglater only Always 0 when readlRg Interrupt register either 01 the screen start registers is loaded by the CPU. Figure 17 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 completed. 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- 01 the command has been completed. No curred and that the contents of the light pen 2-50 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'am"") ..i.',, COMMANDS Table 3_ PVTC Command Formats The PVTC commands are divided into two D7 D6 05 04 03 02 01 DO COMMAND classes the instantaneous commands, which are executed Immediately after they Instantaneous Commands: are invoked, and the delayed commands 0 0 0 0 0 0 0 0 Master reset which may need to wait for a blanking inter- 0 0 0 1 V V V V load 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 0 1 d d d 1 Enable light pen are asserted by performing a write oper- 0 0 1 d 1 N d 0' Display off. Float DADO bus If N = 1 ation to the command register with the ap- 12 0 0 1 d 1 N d Display on Next field (N = 1) or scan line propriate bit pattern as the data byte. (N =0) 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 interrupt! 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 interupts and resets the RDFlG or READY Interrupt! 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 0 1 0 0 1 0 0 A4 Read at pointer address This command initializes the PVTC and may 1 0 1 0 0 0 1 0 A2 Write at pOinter address be invoked at any time to return the PVTC to 1 0 1 0 1 0 0 1 A9 Increment cursor address ItS ,"itial state. Upon power-up, two 1 0 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 0 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 0 1 1 BB Write from cursor address to pOinter address 1. VSYNC and HSYNC are driven low for the duration of RESET and BLANK goes high. , NOTES Any combmatlon of these three commands IS valid BLANK remains high until a 'display on' 2 Any combmatlon of these three commands IS valid 3 d = don't care command is received. 2. The interrupt and status bits and masks are set to zero, except for the RDFlG flag be optionally placed in the three-state con- Disable Interrupts 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 disable 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. Restores normal blanking operation either address IRO. 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 buffer mode of 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 and status flag to be set Once load- also be used in other modes. With the ex- Reset Interrupt/Status Bits ed, further loads are inhibited until either ception of the 'write from 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. If 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 mterval. If invoked during a vertical retrace Asserts the BLANK output The DADDO thru Bit 3 - Line zero Inlerval or a 'display off' state, the command DADO 13 display address bus outputs may Bit 4 - Vertical blank IS executed immediately. Signefics 2·51 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'am""II,I_"t 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 PVTC 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- CCLK 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 betwaen the display buffer then adds one (modulo 16K) to the cursor during its execution. BLANK will not be re- and the bus interface latch using the ad- address register.< leased until the beginning of the vertical dress contained In the pointer register. blanking interval following the last write op- 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 buffar 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 PVTC will assert the dress contained in the cursor register. pOinter address registers, inclusive. After READY / RDFLG 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 temperature2 o to +70 ·C Storage temperature -65 to +150 ·C All voltages with respect to ground' -0.5 to +6.0 V DC ELECTRICAL CHARACTERISTICS TA=O·Cto + 70·C, Vcc =5.0V ±50/0 4 •5.6 LIMITS PARAMETER TEST CONDtTIONS UNIT J Min Typ Max VIL Input low voltage 0.6 V VIH Input high voltage 2.0 V VOL Output low voltage 10L = 1 SmA 0.4 V VOH Output high voltage (except INTR output) 10H = -100 uA 2.4 V IlL Input leakage current VIN = Oto VCC -10 10 fAA ILL Data bus 3-state laakage current Vo = Oto VCC -10 10 fAA 100 INTR open drain output leakage current Vo = Oto VCC ) 10 fAA ICC Power supply current 160 mA NOTES See next page 2·52 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'm""""·"A AC ELECTRICAL CHARACTERISTICS TA =O'C 10 + 70'C, Vee =5.0V ± 5% 4,5,6,7,8 TENTATIVE LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max Bus Timing (Fig. 18)9 lAS AO-A2 setup time to WR, RD low 30 ns tAH AO-A2 hold time from WR, RD high 0 ns tcs CE setup time to WR, RD low 0 ns tCH CE hold time from WR, RD high 0 ns tRW WR, RD pulse width 250 ns tDD Data valid after RD low 200 ns tDF Data bus floating after RD high 100 ns tDS Data setup time to WR high 150 ns tDH Data hold time from WR high 0 ns tcc Time between READs and/or WRITEs'o 600 ns CCLK Timing (Fig. 19) tccp CCLK period 250 ns tCCH CCLK high time 100 ns tCCL CCLK low time 100 ns tCCD Output delay from CCLK edge 150 ns Other Timings (Fig. 20) tRDL READY IRDFLG low from WR high 9 600 ns tBAK BACK high from PBREO low 150 ns tBXT BEXT high from PBREO high 150 ns tLPS Light pen strobe setup time to CCLK low 120 ns tLPH Light pen strobe hold time from CCLK low -10 ns tlRL INTR low from CCLK low 150 ns tlRH INTR high from WR, RD high 9 600 ns Notes: 1 Stresses above those hsted under Absolute MaXimum Ratmgs may cause permanent 5 All voltage measurements are referenced to ground (GND) damage to the deVice This IS 8 stress ratmg only and functional operation of the deVIce 6 TYPical values are at +25°C, tYPical supply voltages, and typical processmg param- at these or at any other condition above those In the operation section of this specliI- eters cation 18 not Implied 7 For testing, all Input signals sWing between 0 4V and 2 4V with a transition time of 20ns 2 For operating at elevated temperatures, the deVice must be derated based on + 150°C maximum All time measurements are referenced at Input voltages of 0 8V and 2 OVand maximum Junction temperature and thermal resistance of 55°C/W Junction to ambient output voltages of 0 8V and 2 OV as appropriate (IWA ceramiC package) 8 Test condition for outputs CL = 150pF 3 ThiS product Includes CirCUitry specIfically deSigned for the protection of Its Internal deVices from damaging effects of excessIve static charge Nonetheless, It IS suggest- 9 Timing IS Illustrated and specified referenced to WR end AD Inputs DeVice may also be ed that conventional precautions be taken to avoid applYing any voltages larger than operated with CE as the 'strobing' Input In this case, all timing speCifications apply the rated maxima referenced to falhng and rising edges of CE 4 Parameters are valid over specified temperature range 10 1 microsecond minimum after 'master reset' command Signetics 2·53 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'Wnull.I·'tA BUS TIMING A~A2 ~-------:---_ 00-D7 FLOAT FLOAT (READ) riDS 00-07 _ _ _ _ _ _ _ _ _ (WRITE) ~\A ~ VALID Figure 18 CCLK TIMING NOTES 1 DADDO·DAOD13, BLANK. HSVNC, CSYNCIVSVNC, CURSOR, BEXT. BREQ, BCE, OUTPUTS MBC. BACK (NOTE 1) -----...1 2 BCE changes state on both CC'["R edges-(see FIgures 3 and 4) OUTPUTS WIiIi,_,1ft Figure 19 2·54 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'm""II.i_"t OTHER TIMINGS BLANK _---Ir VERTICAL BUNKING INTERVAL 2 = F1RSTHSYNC HSYNC OFYIILANK VOlANI< STATUS BIT BLANK DADD3- DADD13 UNEZERO AND SPUT SCREEN STAruS BITS IITII ----------l~ ______ LPS UGHT .... STATUS Bff DADDO- CHARACTER DADD13 ADDRESS n Figure 20 Signetics 2·55 MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO TIMING CONTROLLER (PVTC) SC2672 'RI"..II.'-III OTHER TIMINGS (Continued) ~r WliFORA DELAYED COMMAND READY OR RDFLG STATUS BITS \1:....-_- ~ WlfORlW WHICH RESETS INTERRUPT ___---.J/ Figure 20 COMPOSITE SYNC TIMING . +- VERTICAL SYNC PULSE VERTICAL BACK PORCH ---1 FIRST DtSPlAYED SCAN ~ULSES OF/EVEN FIELD HORIZONTAL SYNC ' - - - - - - - - - - - - - - - - YERTICALBlANKING INTERVAL I~_I _ _________ - Un L - ODD FIELD LAST DISPLAYED SCAN Of EVEN FE\, CSYNC~JW r- VERTJCAL FRONT PORCH-l-iI H + VERTICAL SYNC PULSE ---t- VERTICAL BACK POACH _ --I ~ H I-- *H ~ ~ FIRST DISPLAYED SCAN I OF 000 FIELD BlANK.JU..-- _ I-- r--'2 _ _ _ _ _ _ _ _ _ _ _ _ _ VERTICAL BtANKING INTERVAl ---------------I--Lf-I1- I~ II .1 HPERIOD NOTES HORIZONTAL BLANKING INTERVAL 1 In non-mterlaced operation the even 'Ield 18 repeated continuously, and the odd 'Ield IS not 2 In Interlaced operation the even 'Ield alternates with the odd field Figure 21 2·56 MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 ':tQii"ii,j.'" DESCRIPTION FEATURES PIN CONFIGURATION The Signetics 2673A and 26738 Video Attrl· • 25MHz video dot rate butes Controllers (VAC) are bipolar LSI de· • Three level current driven (75 ohms) Vee vices designed for CRT terminals and display video output systems that employ raster scan techniques. 02 • Three level encoded TTL video outputs Each contains a high speed video shift regis· • Character Ifleld attribute logiC 01 ter, field and character attributes lagle, attri· bute latch, cursor format logic and half dot Reverse video Character blank 2 shift control. Character blink = ceo = Underline The VAC provides control of visual attributes Highlight ee1 on a field or character by character. Internal Light pen strlke-thru or graphics ee2 logic preserves field attribute data from char· control acter row to character row so that an attribute • Field attributes extend from row to row OCLK byte Is not required at the beginning of each • Light or dark field CBLANK row. The 26738 provides for reverse video, • Cursor reverse video logic TTLVID1 blank (non·displaY), blink, underline and high· • Up to 10 dot. per character light attributes and a graphic smode attribute • CompOSite blanking for light field TTLVID2 to work in conjunction with the Signetics retrace VIDEO 2670 Display Character and Graphics Gener· • Optional field graphics control output HOOT ator (bCGG). The 2673A substitutes a light • High .peed bipolar de.lgn ABLANK pen (strike·thru) attribute for the graphics • 40 pin dual In-line package attribute. • TTL compatible ABUNK • Compatible with Signetics 2672 PVTC AU' The horizontal dot frequency is the basic and 2670 DCGG AHILT timing input to the VAC. Internally, this clock is divided down to provide a character clock APPLICATIONS ARVID output for system synchronization. Up to ten • CRT terminal. AlTPEN/AGM bits of video dot data are parallel loaded • Word proce.slng sy.tems into the video shift register on each charac- • Small business computer. TOP VIEW ter boundary. The video data is shifted out on three outputs at the dot frequency. On ORDERING CODE the VIDEO output, the data is presented as a COMMERCIAL RANGES PACKAGES three level signal representing low, medium VCC = 5V ± 5%, VBB = 1.5V ± 10%, TA = O'C to 70"C and high intensities. The three intensities GRAPHICS ATTRIBUTE LIGHT PEN ATIRIBUTE are also encoded on two TIL compatible Ceramic DIP SC2673BC5140 SC2673AC5140 video outputs. Light or dark screen back· ground can be selected. Plastic DIP SC2673BC5N40 I SC2673AC5N40 BLOCK DIAGRAM VIDEO ATTRIBUTES CONTROLLER ceo CHAAACTER ee1 CLOCK COUNTER ee2 DCLK t 10 ~~ DOT ~ 00-09 I DATA vtDeOSHIFT VIDEO REGISTER DRIVER '1 -12BITS- ~ VIDEO TTLVID1 AND HOOT DRIVERS TTLVID2 CURSOR ..c=- ATTRIBUTE HIERARCHY LOGIC ARVID ABLANK BKGND ABLINK CBI..ANK AHILT AJJ' ATTRtBUTE AND ALTPEN/AGM CURSOR CONTROL t . LOGIC AND AFLG BI..ANK PIPELINE AUODE RESET ACD BLINK UL LL lPL/GMD -- Vee VBB GND Signetics 2-57 MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 l:W il "",,.,?_ 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 twellth 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 may be specified. DO-D9 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. HDOT 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 (2673): This input is latched and synchronized to provide a field GMD output for the 2670 DCGG. AMODE 12 I Attribute Mode: Specifies character (AM ODE = 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. II 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 (AMODE = 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. II ACD = I, the first character and the attributes are displayed. This input has no effect in character mode (AMODE = 0). 2·58 $ignetics MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 'm""jj,t·'ti PIN DESIGNATION (continued) MNEMONIC PIN NO. TYPE NAME AND FUNCTION BLINK 17 I Blink: ThiS input IS sampled on the failing 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 Ilne(s) for the underline attribute. Latched on the failing edge of BLANK. LPLlGMD 19 I Light Pen Line (2673A): Indicates the scan Ilne(s) for the light pen stnke·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 boundanes Latched on the failing edge of BLANK. ThiS Input has no effect in character mode (AM ODE = 0). VIDEO 28 0 Video: A three level serial Video output which corresponds to the composite dot pattern of characters, attributes and cursor. TTLVIDl 30 0 TTL Video 1: ThiS output corresponds to the senal, non·hlghllghted Video dot pattern TTLVID2 29 0 TTL Video 2: ThiS output corresponds to the highlighted senal 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 attnbute latches. Normally used for testing. VCC 40 I Power Supply: +5 Volts ± 5% VBB 1 I Bias Supply: +1.5 Volts ± 10% GND 20 I Ground: OV reference FUNCTIONAL DESCRIPTION CCLK The VAC consists of four major sections (see block diagram). The high speed dot CC2 CC1 CCO DOTS/CHARACTER DUTY CYCLE clock input is divided internally to provide a character clock for system timing. The par· a a 0 6 3/3 allel dot data is loaded into the video shift a a 1 6 3/3 register on each character boundary and a 1 a 7 4/3 shifted into the video logic block at the dot a 1 1 8 4/4 rate. The six attribute inputs are latched in· 1 a a 9 5/4 ternally and combined with the serial dot 1 a 1 10 5/5 data to prOVide a three level video source 1 1 a 11 6/5 1 1 1 12 6/6 for the monitor. A separate BLANK input defines the active screen area. When BLANK = 0, the video case, raster retrace Video suppression is out before DO. For 12 dots/ character, a a is levels are derived internally by the combina· accomphshed by raising the BKGND Input also shifted out after 09. The serial dot data tions of dot data, attributes, cursor, and the dUring hOrizontal and vertical retrace inter· is shifted into the video logic where it is state of the BKGND input. Either black or vals For black background, tie BKGND high. combined with the cursor and attributes to white background can be selected. Symbols Tie CBLANK Input low for both cases. encode three levels of video. (dot data) are normally gray and can be highlighted to white or black as shown in Character Clock Counter Attribute and Cursor Control figure 1. Note that the VIDEO output is in· The VAC visual attributes capabilities in· The character clock counter divides the fre· verted as referenced to the TTL video out- quency on the OCLK input to generate the elude: reverse video, character blank, blink, puts. underline, highlight, and light pen strike·thru. character clock (CCLK). The divide factor is The six attributes and the three attribute specified by the clock control inputs (CCO- DUring the inactive screen area (BLANK = control inputs (AMOOE, AFLG, and ACO) are CC2) as follows: 1), the video level produced by the TTL out· clocked into the VAC on the falling edge of puts is either white (BKGND = 1) or black CCLK. If AFLG is high, the attributes are (BKGND = 0). A separate composite blank Video Shift Register latched internally and are effective for either (CBLANK) input is provided to suppress ras· On each character boundary, the parallel one character time (AMOOE = 0) or until ter retrace video when white background is data (00-09) is loaded into the video shift another set of attributes is latched (AMOOE specified. During the inactive screen area register. The data is shifted out least signifi· = 1). The attributes set is double buffered (BLANK = 1), the video level produced by cant bit first (DO) by the OCLK. If 11 or 12 on a row by row basis internally. Using this the VIDEO output is either black (BKGND = dots/character are specified (CC2-CCO = technique, field attributes can extend 1) or white (BKGND = 0). For the latter 110 or 111), a a (blank dot) is always shifted across character row boundaries thereby Signetics 2·59 MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 l;mil"jj,t.ilj ENCODED VIDEO OUTPUTS DClK VIDE01 .~ LflJt: ~ 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:::Whlte G '" Gray B "" Black Figure 1 eliminating the necessity of starting each TTLVID2 TTLVIDI INTENSITY row with an attribute set. 0 0 Black (or CBLANK) When field attribute mode is selected, 0 1 Gray (on black surround) (AMODE = 1), the VAG will accommodate 1 0 Gray (on white surround) two attribute storage configurations. In one 1 1 White configuration, the attribute control data is stored in the refresh RAM, taking the place NOTE of the first character code in the field to be The TTLVID1 output can be used independently to generate a two level non-highlighted video affected. For this mode, the AGO input is tied low and blank characters will be dis· three level current source on the VIDEO out· ing input is active. Underline and symbol vid- played in the screen positions occupied by put. The three levels (white, gray, and black) eo are always the same intensity. the attribute data (see figure 10). In the sec· are also encoded on the two TTL compatible Strike-thru video is enabled by the ALTPEN ond configuration, (AGO = 1), the character outputs TTLVIDI and TTLVID2. The three attribute and is generated when the LPL tim- codes and attribute data are presented to levels are encoded as shown. ing input is active. This video is always the VAG in parallel. In this mode, dot data is The video is normally shifted out on the lead- highlighted and takes precedence over the displayed at each character position (see ing edge of the DCLK. When the HOOT input symbol and underline video. This feature ap- figure 11). is asserted, the corresponding dot data is plies to the 2673A only. The CURSOR and the attribute input signals delayed by one-half DCLK. This half dot Surround video is the absence of symbol, are pipelined internally to allow for system s~ifting, when used on selected lines of underline and strike-tnru video or the pres- propagations (one GGLK for refresh RAM, character video, can be used to effect eye- ence of the non-display attributes (ABLANK one CGLK for dot generator). The attribute pleasing character rounding as shown in or ABLINK • BLINK). timing signals BLINK, UL, LPL and LL are figure 2. clocked into the VAG at the beginning of The relative intensities of the four video each scan line by the falling edge of the components are determined by the remain- BLANK input. Thus, these signals must be in Attribute Hierarchy ing attributes (AHILT, ABLANK, ABLlNK, their ~roper state at the falling edge of The video of each character block consists ARVID) and the BKGND and CURSOR inputs BLANK preceding the scan line at which of four components as shown in figure 3. as illustrated in table 1. they are to be active (see figure 4). Symbol video is generated from the dot data inputs 00-09. Video Logic The serial dot data and the pipelined cursor Underline video is enabled by the AUL and attributes are combined to generate the attribute and is generated when the UL tim- 2-60 Signetics MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 Imli"jj,i.ilj "AT" SYMBOL WITH AND WITHOUT HALF DOT SHIFTING VIDEO COMPONENTS OF CHARACTER BLOCK I I I I I I 1/ I I I I 0000 0000 ~0'1--- SURROUND o 0 000 VIDEO o 00 000 o 0 0 000 000 o 0 0 000000 o 000 o o 000 0000 H "'" LINeS SHIFTED Figure 2 Figure 3 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 REVERSE' DISPLAY' AHILT VIDE03 VIDE03,' VIDE03 0 0 0 0 W G B 0 0 0 1 W W B 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. CURSOR + ARVID. CURSOR 2 Non-display:: ABLANK + ABLINK • BLINK 3 See figure 3 Symbol and underline video are always the same mtenslty Reverse sense for VIDEO output Table 1. ATTRIBUTES HIERARCHY ABSOLUTE MAXIMUM RATINGS1 PARAMETER RATING UNIT Operating ambient temperature' o to +70 ·C Storage temperature -65 to +150 ·C All voltages with respect to ground -0.5 to +6.0 V NOTES 1 StresS8S above those listed under Absolute Maximum Ratings may cause permanent damage to the device nus is 8tre88 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 operatmg at elevated temperaturea, the device muat be derated baaed on +l50°C maximum Junctton temperature and thermal realstance of 60 0 C/W junction to ambient (ceramic package) Signetics 2·61 MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 'M""n,[.I. DC ELECTRICAL CHARACTERISTICS TA" 0'0 to +70'0, VoO" 5V ±5%, Vaa = +1.5V ± 10%3.4·6 LIMITS PARAMETER TEST CONDITIONS UNIT Min Typ Max VIL Input low voltage 0.8 V VIH Input high voltage 2.0 V VOL Output low voltage IOL = 1.6mA 0.4 V (except VIDEO) VOH Output high voltage IOH = -100,.A 2.4 V (except VIDEO) VB VIDEO black level RL .. 750 to GNO 0 V VG VIDEO gray level \ RL .. 750 to GNO 0.225 V Vw VIDEO white level RL = 750 to GNO 0.50 V IlL Input low current VIN" 0.4V -4001 /LA -800 10 IIH Input high current VIN" 2.4V 20/40 10 /LA 100 V00 supply current VIN = OV, VOO = max 50 mA IBB VBB aupply current VBB" max 100 mA AC ELECTRICAL CHARACTERISTICS TA" 0'0 to +70'0, VOC" 5V ±5%, vBB = +1.5V ± 10%3.4·6 TENTATIVE LIMITS PARAMETER· TEST CONDITIONS UNIT Min Typ Max Dot clock8 fO frequency 25 MHz tOH high 15 na tOL low 15 na Setup tlmea to CCIJ(7 tBS BLANK 35 na tso BLINK, UL, LPL, LL (ref to BLANK) 20 na tSA Attributea 35 na tso Dot deta 00·09 70 na tSK OURSOR 35 na tFS AFLG 50 ns tSH HOOT 35 ns Hold limes from CC[j(7 tHO BLINK, UL, LPL, LL (ref to BLANK) 20 ns tHA Attributes 35 ns tHO Dot data 00·09 0 ns tHK CURSOR 35 na tFH AFLG 50 na tHH HOOT 35 n8 Setup timea to 00LK8 tSG BKGNO 15 na tSB OBLANK 15 na Hold limes from 00LK8 tHG BKGNO 15 na tHB OBLANK 15 na Oelaytlmes9 0L" 150pF tOGM GMO from OOLK 60 ns too OOLK from OOLK 60 na tov VIDEO, TTLVI01, and TTLVI02 from OCLK 75 na NOTES 3 Parameters are valid over operating temperature range unleas otherwise speci- 6. See figure 7. Half dot shift feature 18MHz max fied. 7. See figures 4, 5, 6, and 9 4. All voltage measurements are referenced to ground (VSs). All Input signals sWing 8. see figure 8 between 0 4V and 2 4V All time measurements are referenced at mput voltages of 9 See figures 6 and 7. O.8V, 2.0V and at output voltages of 0 BV, 2.0V 8S appropriate. 10 For DCLK mput 5 TYPical values are at + 2S-C, typical supply voltages and typical processing parameters ~Ics 2·62 \IIW'I ..... MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 IPmli"ii.t.'fj VAC PIPELINE nMING ..------=~T'---~-_+__-+__ - - -- J ... ~~------------------------ 1--1 BUNIC,lL LPi.,LL ATTRIBUTES' .. DOTDATAi ".. BKGND4 ,.. 2nd - - - - - ....,~UST=--~,..,.-'~LAST=--r-BK-- .....- ....;""""=_....._c.;;.... _ _ _ _....._.;;""",;;.;;......L.....;""""=_...... _ _ _ _ _ _ ..... ::;:;,.....,j"-_ _ NOTES 1. Attnbut•• include: ABLiNK. ABLANK, ARVID. AUL. AHILT, and ALTPEN. 2. One ~ delay lor dot data (obtained from delay through oh....ct... generator). 3 S•• figure 7 for detail timing of VIDEO, mVID1. TTLVID2. 4. Non-active scan time. VIDEO reverts to polarity Hlected by the BKGND Input. Flgur.4 CURSOR PIPELINE TIMING Flgur.5 Signatlcs 2·63 MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 '$",,11,[.,,1 CHARACTER (AMODE = 0), FIELD (AMODE = 1), AND GMD ATTRIBUTE TIMING r~~ I ~~ 'AI\ ~ I jS-.-A;__ 1 ?Si"ijI 'FLO IA-=~.l--.....JI -J -= "____. . .__ VIlEO ---,----,-- ......1_ _ __ I I 1---.. Gml _ _ _ _ _ _ _ _ _ _ _~rl------------------------' (AlKIDE ==1 ) . L-_ _.;...._ _ _ _ _ _ _ __ NOTE 1 GMD output In 2873 version only See figure 7 for detail timing Figure 6 VIDEO AND GMD PIPELINE TIMING DCLK ~ ~~-~------------------- VIDEO TTLVID1,2 ~ I CHARACTER N - 1 CHARACTER N I -Jr''''''' (A":~~ 1) . - - - - - - - - - - (___________ _ NOTE 1 GMD output In 2673 version only Figure 7 2·64 Signatics MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 Imil .. lI.i·!,i BKGND AND CBLANK TIMING DURING INACTIVE SCAN TIME (BLANK = 1) 2 DCLK ---.:::l r- ~I:- r:HG _ _ _ _ _~21_2_ _ = --- "OND \J'- __---Jf VOl. ~ df.-I-~2~ VIDED ----WHl-"'-- \ BLACK ,r-----W-H'--TE--=D,._ I Figure 8 HALF DOT SHIFT TIMING DCLK :::11:..._ _ _ _ _ _ _ -= =:: 1 ....._ __ tSH 1----1---1 tHH HOOT~ FIRST PIXEL CHARN+1 Figure 9 Signetics 2·65 MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 Imfi .. jj,t.lkl SYSTEM BLOCK DIAGRAM OF THE 2673 IN FIELD ATTRIBUTE MODE USING THE NARROW RAM (8 WIDE) CONFIGURATION o CRT CONTROLLER eeLK~T ! rpAGEN-i I I 2670 61~ BLANK BLINK UL LL 2673 DCLK 0 REFRESH RAM I 8 7 '0 ~ I c~o 0.0 0.0 2KX8 PAGE 1 f-t- --f---,) cA6 I Og GMO Og GMO VIDEO J 7 AGM I~ ARVID Vee U'Kn AHILT AUL I ABLINK ABLANK RAM BYTE FORMAT AFLG 7 AMODE CHAR CODE °I CHARACTER BYTE .....--.&--CAUSES 10 1 AeolI ATTRIBUTE BYTE TO BE DISPLAYED + AS A BLANK CHARACTER NOT USED ABLINK ~~ jltlll~IEltIL':::BVTE ~ ~ ARVID AHllT ABLANK AUL Figure 10 ,-- SYSTEM BLOCK DIAGRAM OF THE 2673 IN FIELD OR CHARACTER ATTRIBUTE MODE ; ~,~~-=-~ l~ ( I USING THE WIDE RAM CONFIGURATION TO CRT CONTROLLER ' - ' -_ _ _ _ _- - - ' BYTE ceo< BLANK DCLK .- PAGEN-l BUNK UL RE:=~SH : 2670 LL 2673 I 00 2KXB VIDEO 09 PAGE 1 j GMO~-----~ GMO Vee lkn ACO FIELD ATTRIBUTES 'PAGEN--l ATTRIBUTE I ,~ I I RAt.II I .... foIODE ~ ~ACTER I I 2KX8 ATTRIBUTES PAGE 1 ...J NOTUS::L~~U t 7 u 0 . ,1_IL......JIL......JIL......J!-ll-l-ll-JI ~~~~BUTE ABLINK ~ ASLANt< t L~R:':· L AUL AHILT Figure 11 NOTE 1 For operation In character attnbute mode, tie AFLG high 2·66 Signetics MICROPROCESSOR DIVISION JANUARY 1982 VIDEO ATTRIBUTES CONTROLLER (VAC) SC2673 VIDEO OUTPUT STAGES OF THE 2673 PARTOFH73 Vee Vee 76n 76n m. m. OlIVER DRIVER 760 Figure 12 2·67 MICROPROCESSOR DIVISION JANUARY 1982 VIDEOTEXT TIMING CHAIN (VTC) SAA5020/SAA5025 PRODUCT BRIEF, contact your Signetlcs sales offices for complete Information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SAA5020/SAA5025 Video- • Compatible with British videotext text Timing Chains (VTIC) are MOS stenderds N-channel Integrated circuits which per- • 625 line (PAl) and 525 line (NTSC) RACK form the timing functions necessary for versions A4 \ the display of viewdata and teletext Infor- • 40 characters per row, 20 or 24 rows per mation on an Interlaced or non-interlaced screen A3 CRT monitor. A2 • Sync Inputs allow synchronlzallon with The SAA5020/SAA5025 are compatible other video sources Al with the British videotext standards, cur- • Composite sync output AO rently implemented in systems such as Prestel, Ceefax, and Oracle. The SAA5020 • Display addressing outputs 'fIB Is Intended for use with PAL (625 line) tele- • Double height character capability I!CS vision standards, while the SAA5025 is in- • Character rounding output to SAA5050 HIE tended for use with systems employing • Single 5·volt power supply the NTSC (525 line) television standard. FS m CRS DEW The basic Input to the VTIC Is a 6MHz clock signal. This is subdivided internally Vee LOSE to produce various synchronized timing TOP VIEW outputs Including the character and dot rate clocks for the character generator, a composite sync output for the monitor, and row address outputs and a column address clock for the display memory. Several versions of the VTIC are available to meet the requirements of various appli- cations. Basic characteristics of the vari- ants are: TYPE LINES ROWS LINES/ROW SAA5020 625 24 10 SAA5025A 525 20 10 SAA5025B 525 24 10 SAA5025C 525 24 8 The VTIC operates from a single 5-volt power supply and Is packaged in a 24-pin dual-In-line package. 2·68 Signetics MICROPROCESSOR DIVISION JANUARY 1982 VIDEOTEXT TIMING CHAIN (VTC) SAA5020/SAA5025 PIN DESIGNATION MNEMONIC PIN TYPE FUNCTION F6 2 I 6MHz Input. Master clock signal used to derive the basic timing for the display. TR6 3 0 6MHz output. Buffered 6MHz dot rate clock output to the SAA5050 character generator. Fl 4 0 1MHz output. Character clock rate output signal, synchronous with TR6, to the character generator and other external circuits. AHS 5 0 Alter hours sync. Active low composite sync output to the display. FLR 6 I Fast line reset. Input used to reset the internal line rate counter. GIR 7 0 General line reset. Line frequency active low signal used for reset and clock functions in the charac· ter generator and other external circuits. PL 8 0 Phase lock. Line frequency active low output to the teletext video processor used to phase lock the 6MHz display clock to the incoming television video signal. CBii 9 0 Color burst blanking. Active low output to the teletext video processor. FS 10 I Field sync. Input signal used to reset the field rate counter to maintain correct field sync with incom· ing video. CRS 11 0 Character rounding select. Output used by the character generator for character rounding. LOSE 13 0 Load output shllt register enable. Output signal to the SAA5050 character generator used to reset in· ternal control flip·flops prior to the start of each line and to define the character display period. DEW 14 0 Data entry window. Output required by the teletext acquisition circuit and character generator which defines the period during which data may be extracted from the incoming TV signal and written into page memory. TLC 15 I Transmitted large character. Input from the character generator used to enable the correct display of large characters under attribute control. HIE 16 I High impedance enable. A high input switches the AO-A4 and RACK outputs to their high Impedance state. BCS 17 I Big character select. When low causes all characters to be displayed at double height. Used in con· junction with TIB input. TIB 18 I Top or bottom select. When BCS is low this input controls the row address outputs to cause the top half to be displayed when low and the bottom half to be displayed when high. AO-A4 19-23 0 Display memory row address. Provides a binary count sequence during the display period which is in· cremented every 10 (8 for SAA5025C) lines in normal character mode and every 20 (16 for SAA5025C) lines in large character mode. If any row contains attributed large characters the address is Incre· mented by two after 20 (16) lines. RACK 24 0 Column address clock. lMHz clock used to clock the RAM column address counter. It occurs only during the active display period of each scan line. Vee 12 I + 5 volts power input. Vss 1 I Signal and power ground. Signetics 2·69 MICROPROCESSOR DIVISION JANUARY 1982 VIDEOTEXT TIMING CHAIN (VTC) SAA5020/SAA5025 SAA5020 BLOCK DIAGRAM TR6 F1 FLR FS Voo Vss F6 DEW LOSE CRS TIB CBB PI GiJI AHS SAA5025 BLOCK DIAGRAM TR6 F1 FLR FS Voo Vss F6 DEW LOSE CRS TIB CBB PI GLR AHS ·SAA5025A ··SAA5025C 2·70 Signetics MICROPROCESSOR DIVISION JANUARY 1982 VIDEOTEXT CHARACTER GENERATOR (VCG) SAASOSO SERIES PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION PIN CONFIGURATION The Signetlcs SAA5050 Series Videotext The SAA5050 series devices are func· Character Generators (VCG) are MOS tlonally Identical except for the character N·channel integrated circuits which per· font stored In the character generator DE form the attribute decoding and character ROM. The part types currently available generation functions necessary for the display of viewdata and teletext informa· tlon on a color or black and white CRT monitor. They are compatible with the are: TYPE CHARACTER SET PO lOSE BLANK T = SAA5050 English British vledotext standards, currently 1m· SAA5051 German plemented in systems such as Prestel, SAA5052 Swedish Ceefax, and Oracle. SAA5055 American The VCG incorporates a character gener· ator read only memory (ROM), decoding The VCG operates from a single Sovolt F1 for the 32 videotext control and attribute power supply and Is packaged in a 28·pin characters, video shift registers, and D7 TAe dual·in·line package. decoding for some of the remote control DUM vee functions generated by compatible reo GOi NC mote control circuits. The circuit gener· DEW TlC ates 96 alphanumeric and 64 graphic characters. The basic input to the VCG Is character FEATURES TOP VIEW data from the display page memory. Each character code defines a dot matrix pat· • Compatible with British videotext tern. Each character block Is six dots wide st.nd.rds and ten TV lines high, with dot rate of • 40 ch.racters par row, 10 or 20 SClin 6MHz and character period of one micro· line, par row second. Alphanumeric characters are gen· • 98 alphanumeric characters with erated on a 5 x 9 matrix, allowing space for rounding lower case descenders, with one dot be· • 84 graphic ch.r.ctera, contiguous or tween characters and one TV line between separ.ted character rows. The alphanumeric char· • Double height and blinking character acters are rounded, I.e. a half dot Is In· Cllpability serted before or after a whole dot during the interlace frame of the TV picture In the • Decoding of control and attribute presence of a diagonal In the character ch.ract.... matrix. • Decoding of remote control commands Each of the 64 graphic characters is de- • RGB and monochrome output, coded to form a 2 x 3 block arrangement • Overlay and In..rted box Cllpability which occupies the complete 6x 10 • Single S·volt power supply matrix. Graphic characters may be either contiguous or separated. The character video signals comprise a monochrome signal and RGB signals for a color monitor. The monochrome data slg· nal can be used to Inlay characters Into TV video. A blanking output is provided to blank out the TV picture signal for In· serted box applications. Sig1e11cs 2·71 MICROPROCESSOR DIVISION JANUARY 1982 VIDEOTEXT CHARACTER GENERATOR (VCG) SAA5050 SERIES PIN DESIGNATION MNEMONIC PIN TYPE FUNCTION SUP 2 110 Superimpose. As an open drain output, it is low when the superimpose mode is selected to allow contrast reduction of the TV picture if required. As an input, if held low, the internal 'TV mode' flip· flop is held in the 'text' state. This is for VDU applications when remote control is not used. DATA 3 I Remote control data. This input accepts a 7·bit serial data stream from the remote control decoder. D1-D7 4-10 I Character code. 7·bit parallel code from the page memory which specifies alphanumeric, graphic, or control characters. DUM 11 I Remote control clock. Clock used to sample the input at the DATA pin. The positive edge of every second clock pulse is at the nominal center of the data bit. GLA 12 I General line reset. Active low input from the SAA5020lSAA5025 VTIC used for internal synchroniza· tion of remote control data signals. DEW 13 I Data entry window. Input from the SAA5020lSAA5025 VTIC used to reset the AOM row address counter prior to the display period. Also used to derive the character blink period. CAS 14 I Character rounding select. Input from the SAA5020lSAA5025 VTIC used to effect rounding of charac· ters. BCS 15 I Big character select. When low causes all characters to be displayed at double height. TLC 16 0 Transmitted large character. Output to the VTIC used to enable the correct display of large charac· ters under attribute control. TA6 19 I Dot rate clock. 6MHz clock from the VTIC. F1 20 I Character rate clock. 1MHz clock from the VTIC used to latch the incoming character data and to syn· chronize internal circuits. Y 21 0 Monochrome output. Open drain serial video output which is in the high state whenever an alpha· numeric or graphic character is required on the display. B,G,A 22-24 0 Blue, green, and red outputs. Open drain serial video outputs to the monitor drive circuits. They are high whenever the corresponding color gun is to be active. The video is a composite of background and foreground (character) information. BLANK 25 0 Blanking. Open drain output which provides TV picture blanking. It is active for a duration of a box when the PO and DE inputs are on. It is also activated permanently when no TV picture is required (PO low). LOSE 26 I Load output shift register enable. Input signal from the VTIC used to reset internal control flip·flops prior to the start of each line and to define the character display period. PO 27 I Picture on. Input used to control the character video and blanking outputs. When high, only text in boxes is displayed unless in superimpose mode. The input is high for TV picture video on, low for pic· ture off. DE 28 I Display enable. Input used to control the videotext display. High for display on, low for display off. Vcc 18 I + 5 volts power Input. Vss 1 I Signal and power ground. 2·72 Signetics MICROPROCESSOR DIVISION JANUARY 1982 VIDEOTEXT CHARACTER GENERATOR (VCG) SAA5050 SERIES SAA5050 BLOCK DIAGRAM Voo Vss NC 18 01 ~:".L-r--. 02 03 04 CRS 05 BCS ~£~~;Md==:!:=~F1 06 07 TR6 LOSE DEW B G BLAN~gjtE~~~~~~~~~~~=:i==:i=~~~~~~~~~~~LJ DE PO Signetics 2·73 MICROPROCESSOR DIVISION JANUARY 1982 VIDEOTEXT CHARACTER GENERATOR (VCG) SAA5050 SERIES SAA5050 CHARACTER SET ~. 0 0 0 1 1 1 1 b6 II 0 0 o 1 1 0 0 1 1 BITS b5 II 0 1 0 1 0 1 0 1 b4:b3:b2:b1!,~OL 0 1 2 : 2. 3 : 3. 4 5 6 : 6. 7 : 7. I I I IROW o 0 o 0 0 NUL' OLE' 0:0 0~ ~ 0 B:Q G~ o 0 o 1 1 ALPHA" RED GRAPHICS RED [!]I~ 8~ 0 G 01~ GCJ I I o 0 1 0 2 ALPHA" GREEN GRAPHICS GREEN tJl[j 0~ 0 0 GI~ ~~ o 0 1 1 3 ALPHA" YELLOW GRAPHICS YELLOW 0:~ 0~ @] 0 G:~ 0= 01~ 0iJ ~ ~ 01~ ~1iJ ALPHA" GRAPHICS o 1 o 0 4 BLUE BLUE I I 81~ 01J ~ G GI~ G~ o 1 o 1 5 ALPHA" GRAPHICS MAGENTA MAGENTA G:~ 0~ 0 G 0:~ Gil ALPHA" GRAPHICS o 1 1 0 6 CYAN CYAN DI~ 011 @] El 01~ ALPHAn .. GRAPHICS I B-= o 1 1 1 7 WHITE WHITE I 1 0 o 0 8 FLASH CONCEAL DISPLAY 01[3 0~ 8 0 GICi 0~ 1 0 o 1 9 STEADY'" CONTIGUOUS" GRAPHICS 0:~ 0~ 0 0 0:~ G:~ GI~ D~ 0 0 [!]I[) GI~ SEPARATED 1 0 1 0 10 END BOX" GRAPHICS I I I 1 0 1 1 11 START FOX ESC· ElI~ DI~ 0 EJ 01~ EJICI 1 1 o 0 12 NORMAL*" HEIGHT BLACK" BACKGROUND D:~ B:~ ~ EJ 0:~ G:. BI~ 8 113 El B BI~ Glii DOUBLE NEW 1 1 o 1 13 HEIGHT BACKGROUND I I I I DI~ GI~ 0 [IJ Gilt Bli HOLD 1 1 1 0 14 SO' 0:" I:. GRAPHICS 1 1 1 1 15 S1' RELEASE" GRAPHICS 0:~ G:I! @] G Control characters shown In columns a and 1 are normally displayed as spaces. The SAA5050 character set IS shown as an example *These control cnaracters are reserved for compatlblilty with O1her codes • *These control characters are presumed before each row beings o Character rectangle Black represents display color White represents background 2·74 Signetics MICROPROCESSOR DIVISION JANUARY 1982 VIEWDATA INPUT/OUTPUT PERIPHERAL (VIOP) SAA5070 PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SAA5070 Viewdata Input! • Multiplexed addressldata bus Output Peripheral (VIOP) is a complex compatible with scao and SCa4 Series microprocessor peripheral integrated cir· microcomputers DON cuit intended for use in wired communica- • Modem CARDET tions systems, notably viewdata systems such as Prestel in the UK and Antiope in France. It is implemented in N-channel - 1200 baud demodulator - 75/1200 baud modulator FSKIN DOCDI 2 • Line asynchronous receiver and MOS technology and packaged in a 40-pin transmitter dual-in-line package. Autodlaling circuit The VIOP provides several peripheral func- • Tape recorder 1300 baud modem iiii tions required in viewdata terminals. It (modified KC standard) 07 contains an autodialing circuit, a 1200 baud demodulator and asynchronous re- • Tape recorder asynchronous receiver 06 ceiver, and a 75 baud modulator and asyn- and transmitter chronous transmitter. The 75 baud modu- • Remote control receiver and lator and asynchronous transmitter can be transmitter programmed to operate at 1200 baud for • 1_5 and 60 second timers use on private telecommunications sys- Two general purpose 1/0 ports tems. The input to the VIOP's demodulator is a filtered and squared FSK signal from the phone line. This signal is internally pro- cessed to produce a pseudo-analog out- put signal which, after external filtering and squaring, serves as the input to the line receiver. The modulator generates a pseudo-analog output from a serial shift register which is loaded with patterns from an internal ROM. Each sine wave TOP VIEW cycle is comprised of a 92-bit pattern which provides a suitable FSK signal out- put with minimal external filtering. The sine wave frequency is determined by the selected baud rate and the value of the transmitted data. The device also includes a tape interface circuit suitable for the recording and re- trieval of character codes of pages of text from an audio cassette recorder. This is performed at 1300 baud using a modified 'Kansas City' standard. Other on-chip facilities include 1.5 and 60 second timers and two general purpose quasi-bidirectional input/output ports. One port could, for example, be used as an interface to a nonvolatile RAM that stores telephone numbers for autodialing and user passwords, while the second port could be used for display control func- tions. The SAA5070 has been partitioned for flex- ibility of use. For example, an external modem can be used in conjunction with the internal receiver and transmitter, or the internal modem can be used indepen- dently of the internal receiver and trans- mitter. Signetics 2·75 MICROPROCESSOR DIVISION JANUARY 1982 VIEWDATA INPUT/OUTPUT PERIPHERAL (VIOP) SAA5070 PIN DESIGNATION MNEMONIC PIN TYPE FUNCTIONS Vss 1 I Signal and power ground IMP 2 0 Dialing pulse output TFSKIN 3 I FSK input from tape player TFSKOUT 4 0 FSK output to tape recorder FSKOUT 5 0 Line modulator output TXDATA 6 1/0 Line transmitter output or modulator input RXDATA 7 I Line data input F1 8 I 1MHz clock input DUMB 9 1/0 Remote control receiver B clock input or transmitter B clock output DATAB 10 1/0 Remote control receiver B data input or transmitter B data output DLENB 11 1/0 Remote control receiver B bus enable input or transmitter B bus enable output DATAA 12 I Remote control receiver A data input DUMA/DLENA 13 I Remote control receiver A clock or bus enable input IBCLCK 14 I/O 62.5kHz clock input or output PA4-PAO 15-19 1/0 General purpose 1/0 port A Vcc 20 I + 5·volt power input PB3-PBO 24-21 1/0 General purpose 1/0 port B ALE 25 I Address latch enable input from microprocessor DO-D7 26-33 1/0 8·bit bidirectional addressldata bus RD 34 I Read strobe WR 35 I Write strobe CS 36 I Chip select DOCDI 37 1/0 Line demodulator output or external carrier detect input FSKIN 38 I Filtered and squared line FSK "input CARDET 39 I Unfiltered line FSK input DON 40 0 Dialing in progress output 2·76 Signetics MICROPROCESSOR DIVISION JANUARY 1982 VIEWDATA INPUT/OUTPUT PERIPHERAL (VIOP) SAA5070 BLOCK DIAGRAM OF TYPICAL VIEWDATA RECEIVER r------...,TIMINGr------, R 2 SAA5020 SAA50S0 B VTIC VCG G ROW ADDRESS BUS MICRO- PROCESSOR 8049 TER~II~!TING RECEIVE FSK ,....._ _ _--l"-..., UNIT (SAFETY AND RETURN FSK ISOLATION SAA5070 COMPONENTS VIIOP DIALING RELAYS FILTERING) t TELEPHONE LINE FROM COMMAND KEYPAD Signefics 2·77 ~ SIMPLIFIED BLOCK DIAGRAM ;;: 00 < iii 0 el =e C "U ;v 0 0 IBUSA IBUSB ~ )I' !ll0 ;v DOCDI RXDATA DATA A DliM AlOLEN A IBCLCK DATA B DLiM B OLEN B CJ FSKIN 38 LINE f37 7 r r 14 rr 11 20 , Z "'V c:: -I <: en 0 Z 38 DEMODULATOR AND CARRIER DETECT LINE RECEIVER IBUSA RECEIVER 1-.... IBUSB RECEIVERI TRANSMITIER VDD 0c:: CARDET -I "'V " c:: FSKOUT 5 LINE MODULATOR fc l1 11 Vss -I "'V m 22 r- 36 "'V Vi r [1 35 cs :::z: m Viii I~ ;IU » ~ TXDATA !..- ... LINE TRANSMITIER R 34 jjjj -< ~ ~ ~ I REGISTERS STATUS .11 MODE REGISTER II COMMAND REGISTER J --"-" MICROPROCESSOR 33 0 I.:!! ~~ 07-00 ~ INTERFACE IV lV tv TAPE DEMODULATOR p.. TFSKIN 3 AND r- TAPE RECEIVER r-v' ~ CARRIER DETECT V- V- V- SR1; TO SRO <: ADDRESS LATCH AND REGISTER ADDRESS 25 DECODER ALE TFSKOUT 4 TAPE ~ TAPE V<- IV-- II Jl I q MODULATOR TRANSMITIER DIALING PORTA PORTB CIRCUIT I , TIMING I· 8 FI en -- PAO 1918 171615 PA2 PA4 2423 2221 PBO PB2 2 IMP 40 DON ~ UI 0 PAl PA3 PBl PB3 ..... ~ 0 '" CO '" Section 3 Single Chip Microcomputers Signetics MICROPROCESSOR DIVISION JANUARY 1982 SINGLE CHIP 8-BIT MICROCOMPUTERS SC80SERIES PRODUCT BRIEF, contact your Signetics sales offices for complete Information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SCBO Series microcom- • 8-bit CPU, ROM, RAM, 1/0 in a 4O·pln puters are self-contained, 8-bit processors package which contain the system timing, control • 24 quasi bidirectional 1/0 lines logic, RAM data memory, ROM program vee • Two test inputs memory (8048149/50 only), and 1/0 lines T1 necessary to implement dedicated control • Internal counterltlmer P27 functions. All seeo Series devices are pin • Single·level vectored Interrupts: exter· P26 and program compatible, differing only in nal, counterltlmer the size of the on-board program ROM and • Over 90 Instructions, 70% single byte P25 data RAM, as follows: • 1.36J'S or 2.5J'S instruction cycle, all In· P24 structlons one or two cycles P17 TYPE RAM SIZE ROM SIZE • Expandable memory and 1/0 P18 8048 64x8 1KxB • Low voltage standby P15 8049 128x8 2KxB • TTL compatible inputs and outputs \iii B050 258xB 4KxB P14 • Single + 5V power supply B035 64x8 - ALE P13 8039 128xB - FUNCTIONAL DESCRIPTION DBO P12 B040 258 x 8 - DB1 P11 The following is a general functional Program memory can be expanded exter- description of the seeo Series microcom- DB2 P10 nally up to a maximum total of 4K bytes puters. Refer to the block diagram. DB3 V•• without paging_ Data memory can also be DB4 PROG expanded externally. 110 capabilities can PROGRAM MEMORY DB5 P23 be expanded using standard devices or Resident program memory consists of up the 8243 1/0 expander. DB8 P22 to 4K bytes of ROM. The program memory is divided Into pages of 258 bytes each. As DB7 P21 The SCBO Series processors are designed to be efficient control processors as well shown In the memory map, figure 1, pro- vss P20 as arithmetic processors. They provide an gram memory Is also divided Into two instruction set which allows the user to 2048-byte banks, MBO and MB1. 4096 TOP VIEW directly set and reset individual lines with- bytes can be addressed directly. If more In Its 1/0 ports as well as test individual memory Is required, an 1/0 port can be bits within the accumulator. A large vari- used to address locations over 4095. ety of branch and table look-up instruc- There are three locations in program memo tions make these processors very efficient ory of special importance. These locations In Implementing standard logic functions. contain the first instruction to be ex· Also, special attention has been given to ecuted upon the occurrence of one of code efficiency. Over 70% of the instruc- three events. tions are a single byte long and all others are only 2 bytes long. LOCATION EVENT An on-chip 8-blt counter is provided which 0 Activation then deactiva- can count, under program control, either tion of the ~ line. Internal clock pulses (with a divide by 32 3 Activation of the jjij'f line prescaler) or external events. The counter when the external Inter- can be programmed to cause an Interrupt rupt is enabled. on terminal count. 7 An overflow of the tlmerl counter if the TIC interrupt is enabled. ) 3·2 Signe1ics MICROPROCESSOR DIVISION JANUARY 1982 SINGLE CHIP 8-BIT MICROCOMPUTERS SC80SERIES PIN DESIGNATION MNEMONIC PIN NO. TYPE NAME AND FUNCTION DBO-DB7 12-19 I/O Bus. Bidirectional 110 port can be read from or written into using the RD orWR 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 ijijf! determine whether the access is an in· struction fetch or a RAM read/write. Pl0-P17 27-34 I/O Port 1. 8·bit quasi·bidirectionalliO port.' P20-P27 21-24, 35-38 I/O Port 2. 8·bit quasi·bidirectionall/O port.' P20-P23 contain the 4 higher order address bits during an access of external program memory and also serve as a 4·bit I/O expander bus for the 8243. 3 PROG 25 I/O Output strobe (active low) for the 8243 I/O expander. TO 1 110 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 JTl and J NTl instructions. Can be designated as the timer/counter 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 aiter a RESET. RESET 4 I Reset Input pin is that used to initialize the microcomputer. Active low. Internal pullup -75kIl 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. XTAll 2 I One side of crystal (or l) input for internal oscillator. Can also be used as an input for an external timing source2 . XTAl2 3 I Other side of crystal. Vss 20 I Circuit ground. Vcc 40 I Power Input, + 5VDC. • Voo 26 I RAM power input; low power standby pin. NOTES 1 Each pm on these 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 pm RESET sets all PinS to the Input mode Each pin has an Internal pullup of approximately 50kn 2 Non-standard TTL VIH Signetics 3·3 MICROPROCESSOR DIVISION JANUARY 1982 SINGLE CHIP 8·BIT MICROCOMPUTERS SC80SERIES BLOCK DIAGRAM P20 OBO P27 DB7 RESIDENT ROM (8048149/50 ONLy) PORT 1 PlO BUS .-________~------~------~--------~----~~----------~~--v1B~:~R LATCH REGISTER 2 REGISTER 3 REGISTER 4 POWER SUPPLY B DD ----. RAM SUPPLY VS£. + 5V MAIN SUPPLY V~GND REGISTER 5 REGISTER 6 REGISTER 7 8 LEVEL STACK (VARIABLE LENGTH) OPTIONAL SECOND REGISTER BANK DATA STORE RESIDENT RAM ARRAY TIMING INTERRUPT INITIALIZE EXPANDER CPU OSCILLATOR PROGRAM SINGLE READIWRITE OUTPUT STROBE MEMORY XTAL MEMORY STEP STROBES SEPARATE ENABLE ADDRESS LATCH ENABLE 3·4 Signefics MICROPROCESSOR DIVISION JANUARY 1982 SINGLE CHIP 8·BIT MICROCOMPUTERS SC80 SERIES DATA MEMORY PROGRAM COUNTER AND rupt results in the program counter con- STACK tents being transferred to locations 8 and Resident data memory, as shown in figure 9 of the RAM array. The stack pointer is 2, consists of up to 256 bytes of RAM. All The Program Counter (PC) is a 12-bit then incremented by one to point to loca- locations are indirectly addressable by counter/register that points to the loca- tions 10 and 11 in anticipation of another either of two RAM pOinter registers at tion from which the next instruction is to CALL. Nesting of subroutines within sub- locations 0 and 1. The first eight locations be fetched. The 8048 and 8049 will auto- routines can continue up to eight times of RAM (0-7) are designated as working matically address exernal memory when without overflowing the stack. If overflow registers and are directly addressable by the boundary of their internal memory is several instructions. By selecting register bank 1, RAM loca- exceeded. All processors access external memory if EA is high. does occur the deepest address stored (location 8 and 9) will be overwritten and lost since the stack pOinter overflows 3 tions 24-31 become the working registers, An interrupt or CALL to a subroutine from 111 to 000. It also underflows from replacing those in register bank 0 (0-7). causes the contents of the program 000 to 111. RAM locations 8-23 are designated as the counter to be stored in one of the 8 regis- The end of a subroutine, which is sig- stack. Two locations (bytes) are used per ter pairs of the program counter stack. The nalled by a return instruction (RET or CALL, allowing nesting of up to eight sub· pair to be used is determined by a 3-bit RETR), causes the stack pointer to be routines. stack pointer which is part of the Program decremented and the contents of the re- Status Word (PSW). Data RAM locations 8 sulting register pair to be transferred to If additional RAM is required, up to 256 through 23 are available as stack registers the program counter. bytes may be added and addressed direct· and are used to store the program counter Iy using the MOVX instructions. If more and 4 bits of PSW. The stack pOinter, when RAM is required an I/O port can be used to initialized to 000, pOints to RAM locations select one (256-byte) bank of external 8 and 9. The first subroutine jump or inter- memory at a time. DATA MEMORY MAP PROGRAM MEMORY MAP 255 8040/8050 USER RAM ~'D 128 x8 128 127 803918049 USER RAM 64x 8 64 -BI~'." 63 803518048 USER RAM -, - 32 32x 8 ~ SEL MBO ~ 2047 31 .mB BANK 1 WORKING DIRECTLY REGISTERS ADDRESSABLE 8x8 WHEN BANK 1 ---'R1"---- IS SELECTED ---'RO,---- 1023 24 23 -.-J ADDRESSED 8 LEVEL STACK ~ OR INDIRECTLY THROUGH USER RAM R1 OR RO - lOCATION7-TIMER 16)( 8 8 (RO' OR R1 ') i. 7 6 I-------- INTERRUPT VECTORS PROGRAM HERE 8 ;: Y z 5 7 BANKO WORKING ~ DIRECTLY 4 0 LOCATION 3-EXTERNAl REGISTERS ADDRESSABLE 3 - - INTERRUPT VECTORS 8x8 WHEN BANK 0 2 PROGRAM HERE -------- ISSELErED 1 RESET VECTORS 716151413121'10 ----- PROGRAM HERE ---~---- '-'- ~O 0 ADDRESS IN ADDITION, RD OR R1 (RO' OR R1 ') MAY BE USED TO ADDRESS 256 WORDS OF EXTERNAL RAM Figure 1 Figure 2 Signetics 3·5 MICROPROCESSOR DIVISION JANUARY 1982 SINGLE CHIP 8-BIT MICROCOMPUTERS SC84 SERIES PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SC84 Series microcom- • 8·bit CPU, ROM, RAM, I/O In a 28·pln puters are self-contained 8-bit processors package which contain the system timing, control • 20 quasi bidirectional I/O lines logic, RAM data memory, ROM program vee • Two test Inputs, one with zero voltage memory, and serial and parallel 1/0 lines P21 crossover detection necessary to implement dedicated control P20 functions. All SC84 Series devices are pin • Serial I/O hardware and program compatible, differing only in • Internal counter/timer P17 the size of the on-board program ROM and • Single· level vectored interrupts: exter- P16 data RAM, as follows: nal, counterltimer, serial I/O P15 • Over 90 instructions, 70% single byte P14 TYPE RAM SIZE ROM SIZE • 6.77"s Instruction cycle, all instructions P13 8400 128x8 - one or two cycles P12 8405 32x8 512x8 • High current drive on four outputs 8410 64x8 1Kx8 P06 P11 • TTL compatible Inputs and outputs 8420 64x8 1Kx8 P07 P10 8440 128x8 4Kx8 • Single + 5V power supply INT/TO RESET T1 XTAl2 The 8400 is a ROM-less piggyback version which can be used with standard EPROMs vss XTAl1 for emulating any of the other devices of TOP VIEW the family. The SC84 Series processors are designed to be efficient control processors as well as arithmetic processors. They provide an instruction set which allows the user to directly set and reset individual lines with- in its I/O ports as well as test individual bits within the accumulator. A large vari- PIN DESIGNATION ety of branch and table look-up instruc- MNEMONIC PIN FUNCTION tions make these processors very efficient POO-P07 4-11 8-bit quasi bidirectional I/O port (Port 0) in implementing standard logic functions. Also, special attention has been given to P10-P17 18-25 8-bit quasi bidirectional I/O port (Port 1) code efficiency. Over 70% of the instruc- P20-P23 26,27,1,2 4-bit quasi bidirectional 1/0 port (Port 2); P23 is the serial tions are a single byte long and all others data input/output in serial I/O mode are only 2 bytes long. The instruction set SCLK 3 Bidirectional clock for serial I/O is based on that of the SCBO Series. INTITO 12 External interrupt input (active iow); testable using the JTO, A special feature of the SC84 Series is the JNTO instructions. serial I/O interface. This eliminates the T1 13 Input pin testable using the JT1, JNT1 instructions. Can be heavy processing load imposed upon a designated the event counter input, using the STRT CNT in- normal microcomputer performing serial struction. Also allows zero crossover sensing of slowly data transfer, and facilitates the design of moving AC inputs. multi-microcomputer systems using serial RESET 17 Input. Used to initialize the processor (active high). communications. XTAL1 Connection to timing component (usually a crystal) which 15 An on-Chip 8-bit counter is provided which determines the frequency of the internal oscillator. Aiso the can count, under program control, either input for an external clock source. internal clock pulses (with an optional XTAL2 16 Connection to other side of timing component. divide by 32 prescaler) or external events. 14 Ground Vss The counter can be programmed to cause an interrupt on terminal count. Vee 28 + 5V power supply 3·6 Signetics MICROPROCESSOR DIVISION JANUARY 1982 SINGLE CHIP 8-BIT MICROCOMPUTERS SC84 SERIES BLOCK DIAGRAM SERIAL OATA/P23 (PIN 2) SCLK (PIN 3) RESIDENT ROM 8405 O,5K BYTES P17-P10 P07-POQ = 3 8410· 1 K BYTES 8420 2 K BYTES 8440 4 K BYTES CLOCK REGISTER 2 REGISTER 3 INSTRUCTION REGISTER REGISTER 4 AND REGISTER 5 DECODER o REGISTER 6 E C REGISTER 7 o o 8 LEVEL STACK (VARIABLE LENGTH) - E Vee TEST 0 OPTIONAL SECOND POWER { REGISTER BANK SUPPLY Vss CONDITIONAL ---+- GND BRANCH LOGIC DATA STORE ACC CONTROL AND TIMING ACe BIT iNTlTO RESET XTAL1 TEST RESIDENT RAM ARRAY t INTERRUPT t INITIALIZE t OSCILLATOR 8400· 128 BYTES 8405: 32 BYTES 8410 64 BYTES XTAL 8420· 64 BYTES 8440 128 BYTES Signetics 3·7 MICROPROCESSOR DIVISION JANUARY 1982 SINGLE CHIP 8-BIT MICROCOMPUTERS SC84 SERIES Serial 1/0 The 8400 serial I/O interface has been Interconnected by the two-line serial bus. invoked arbitration procedure prevents designed to eliminate the heavy process- The ability of any two devices to communi- two or more devices from continuing ing load imposed upon a normal micro- cate, without interrupting the operation of simultaneous transmission. computer performing serial data transfer. any other devices on the bus, is an out· Whereas a normal microcomputer must standing attribute of the system. This is Serial 1/0 Interface regularly monitor the serial dat bus for the achieved by allocating a specific l·bit ad- Figure 1 shows the serial I/O interface. presence of data, the 8400 serial I/O inter- dress to each device and providing a sys- The clock line of the serial bus has exclu- face detects, receives and converts the tem whereby a device reacts only to mes- sive use of pin 3 (SCLK), while the data line serial data stream into parallel format sages prefixed with its own address or the shares pin 2 (serial data) with the I/O line without interrupting the execution of the 'general call' address. Address recogni- P23 of Port 2. When the serial I/O is en- current program. An interrupt is sent to tion is performed by the interface hard- abled, P23 is disabled as a parallel port the microcomputer only when a complete ware so that operation of the microcom· line. byte Is received. Then, the microcomputer puter need only be interrupted when a reads the data byte In one instruction. valid address has been received. This The microcomputer and interface com· Likewise, for transmission, the serial I/O saves significant processing time and municate via the Internal microcomputer interface performs parallel-to-serial con- memory space compared with a conven· bus and the serial interrupt request line. version and subsequent serial output of tional microcomputer employing a soft- Data and information controlling the the data and the microcomputer is only in- ware serial interface. When the address· operation of the interface are stored in terrupted in the execution of its program- ing facility is not required, for instance in four registers: med tasks when a complete byte has been a system with only two microcomputers, - Data shift register SO transmitted. direct data transfer without addressing - Serial I/O interface status word SI can be performed. - Serial clock control word S2 The design of the 8400 serial I/O system allows any number of 8400 devices to be In multimaster systems, an automatically - Address register. 3·8 Signetics 1/0 LOGIC DIAGRAM s:: en () 8400 SERIES SERIAL 110 LOGIC Z ~ ., ." G> r- m R m ~ 0 ., 0 ::z: INTERRUPT INTREQ =v 0 <: en C» (5 LOGIC W• Z II1I I SERIAL DATA (PIN 2) ~ .6nnDr:\C:~ I":nUD.6D.6TnD ·1 LENSI DISS1 =i 3: 0;U , , , DATA CONTROL ~ nATA . . SHIFT REGISTER . ~WRSOI 0 - RDSO 0 0 3: "V .... c: 1 AL I I I I LRB I IAAS~ADOI I PIN I m ;U en oen INTERNAL MICROCOMPUTER BUS BIT 0 SCLK (PIN 3) ESO WRSI PIN AL RDSI CLOCK SYNC LOGIC AND CONTROL en 0 INTERNAL CLOCK C» ~ '- »z en m »c !! m ~ ~ Figure 1 en :0 00 CD I\) 1111wll~ I I I I i I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I i I I I I I I I I I I I I I I I Section 4 SC68000 16-Bit Family Signetics MICROPROCESSOR DIVISION JANUARY 1982 16-811 MICROPROCESSOR SC68000 PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION FEATURES PIN CONFIGURATION Advances in semiconductor technology • 32-bit data and address registers have provided the capability to place on a • 16-megabyte direct addressing range single chip a microprocessor at least an • 56 powerful instruction types order of magnitude higher in performance 05 and circuit complexity than has been pre- • Operations on five main data types 06 viously available. The SCS8000 is the first • Memory mapped 1/0 07 of a family of such VLSI microprocessors • 14 addressing modes from Signetics. It combines state-of-the- D8 art technology and advanced circuit de- 09 sign techniques with computer sciences Dl0 to achieve an architecturally advanced lS-bit microproceSSing unit. The SCS8000 D11 offers seventeen 32-bit registers in addi- 012 tion to the 32-bit program counter and a D13 lS-bit status register (see the program- ming model in figure 1). The first eight registers (00-07) are used as data regis- = BG Dl. D1S ters for byte (B-bit), word (1S-bit), and long BGACK GND word (32-bit) data operations. The second set of seven registers (AO-AS) and the sys- BR A23 tem stack pointer can be used as software Vee A22 stack pointers and base address registers. ClK A21 In addition, these registers can be used GND Vee for word and long word address opera- tions. All 17 registers can be used as index HALT A20 registers. RESET A19 VMA A18 PROGRAMMING MODEL A17 31 16 15 8 7 VPA A16 DO BERR A1S Dl IPl2 Al' D2 IPLl A13 D3 EIGHT IPlO A12 DATA D. REGISTERS FC2 A11 DS FCl Al0 06 FCO A9 07 Al A8 31 16 15 A2 A7 AO l- I - A3 A6 I Al AS I- I - A' I A2 l- I - SEVEN TOP VIEW A3 ADDRESS f- I - REGISTERS I A. f- I - AS I- I - A6 I ~--------------------l USER STACK POINTER TWO STACK POINTERS PROGRAM COUNTER 15 8 7 0 I SYSTEM BYTE: USER BYTE I STATUS REGISTER Figure 1 4·2 Signetics MICROPROCESSOR DIVISION JANUARY 1982 16·BIT MICROPROCESSOR SC68000 A 23-bit address bus provides a memory Table 1. DATA ADDRESSING MODES addressing range of greater than 16 mega- bytes. This large range of addressing MODE GENERATION capability, coupled with a memory man- Register Direct Addressing agement unit, allows large, modular pro- Data Register Direct EA=Dn grams to be developed and operated with- Address Register Direct EA=An out resorting to cumbersome and time Absolute Data Addressing consuming software bookkeeping and Absolute Short EA = (Next Word) paging techniques. Absolute Long EA = (Next Two Words) Five basic data types are supported: Program Counter Relative Addressing • Bits Relative with Offset EA=(PC)+d '6 • BCD digits (4 bits) Relative with Index and Offset EA = (PC) + (Xn) + d s • Bytes (8 bits) Register Indirect Addressing • Word (16 bits) Register Indirect EA=(An) • Long words (32 bits) Postincrement Register Indirect EA = (An), An_An + N In addition, operations on other data Predecrement Register Indirect An .... An-N, EA=(An) types, such as memory addresses, status Register Indirect with Offset EA=(An)+d ,6 word data, etc., are provided for in the in- Indexed Register Indirect with Offset EA = (An) + (Xn) + d s struction set. The 14 addressing modes Immediate Data Addressing (see table 1) include six basic types: Immediate DATA = Next Word(s) • Register direct Quick Immediate Inherent Data • Register indirect Implied Addressing • Absolute Implied Register EA = SR, USP, SP, PC • Immediate NOTES • Program counter relative EA = Effective Address • Implied An = Address Register Dn = Data Register Included in the register indirect address- Xn = Address or Data Register used as Index Register ing modes is the capability to do post- SR = Status Register PC = Program Counter Incrementing, predecrementing, offset- ( )= Contents of ting, and indexing. Program counter rela- dB = B·btt Offset (displacement) tive mode can also be modified via index- d16 = 16·blt Offset (displacement) ing and offsetting. N = 1 for Byte, 2 for Words and 4 for Long Words ~-= Replaces Signetics 4·3 MICROPROCESSOR DIVISION JANUARY 1982 16-811 MICROPROCESSOR SC68000 The SC68000 instruction set is shown in Table 2. INSTRUCTION SET table 2. Some additional instructions are variations, or subsets, of these and appear MNEMONIC DESCRIPTION in table 3. Special emphasis has been ABCD Add Decimal with Extend given to the instruction set's support of ADD Add structured high·level languages to facili- I AND Logical AND tate ease of programming. Each instruc- ASL Arithmetic Shift Left tion, with a few exceptions, operates on ASR Arithmetic Shift Right bytes, words, and long words, and most in- Bcc Branch Conditionally structions can use any of the 14 address- BCHG Bit Test and Change ing modes. Combining instruction types, BCLR Bit Test and Clear data types, and addressing modes, over BRA Branch Always 1000 useful instructions are provided. BSET Bit Test and Set These instructions include signed and un- BSR Branch to Subroutine signed multiply and divide, 'quick' arith· BTST Bit Test metic operations, BCD arithmetic and ex- panded operations (through traps). CHK Check Register against Bounds CLR Clear Operand CMP Compare DBcc Test Condition, Decrement and Branch DIVS Signed Divide DIVU Unsigned Divide EOR Exclusive OR EXG Exchange Registers EXT Sign Extend JMP Jump JSR Jump to Subroutine LEA Load Effective Address LINK Link Stack LSL Logical Shift Left LSR Logical Shift Right MOVE Move MOVEM Move Multiple Registers MOVEP Move Peripheral Data MULS Signed Multiply MULU Unsigned Multiply NBCD Negate Decimal with Extend NEG Negate NOP No Operation NOT One's Complement OR Logical OR PEA Push Effective Address RESET Reset External Devices ROL " Rotate Left without Extend ROR ' Rotate Right without Extend ROXL Rotate Left with Extend ROXR Rotate Right with Extend RTE Return from Exception RTR Retu rn and Restore RTS Return from Subroutine SBCD Subtract Decimal with Extend Scc Set Conditional STOP Stop SUB Subtract SWAP Swap Data Register Halves TAS Test and Set Operand TRAP Trap TRAPV Trap on Overflow TST Test UNLK Unlink 4·4 Signetics MICROPROCESSOR DIVISION JANUARY 1982 16·811 MICROPROCESSOR SC68000 Table 3. VARIATIONS OF INSTRUCTION TYPES INSTRUCTION TYPE VARIATION DESCRIPTION ADD ADD Add ADDA Add Address ADDQ Add Quick ADDI Add Immediate ADDX Add with Extend AND AND Logical AND ANDI AND Immediate CMP CMP Compare CMPA Compare Address CMPM Compare Memory CMPI Compare Immediate EOR EOR Exclusive OR EORI Exclusive OR Immediate MOVE MOVE Move MOVEA Move Address MOVEQ Move Quick MOVE from SR Move from Status Register MOVE to SR Move to Status Register MOVE to CCR Move to Condition Codes MOVE USP Move User Stack Pointer NEG NEG Negate NEGX Negate with Extend OR OR Logical OR ORI OR Immediate SUB SUB Subtract SUBA Subtract Address SUBI Subtract Immediate SUBQ Subtract Quick SUBX Subtract with Extend Signetics 4·5 MICROPROCESSOR DIVISION JANUARY 1982 INTELLIGENT PERIPHERAL CONTROLLER SC68120 PRODUCT BRIEF, contact your Signetlcs sales offices for complete information. DESCRIPTION FEATURES PIN CONFIGURATION The SC68120 Intelligent Peripheral Con· • Bus compatible with the 16·blt SC6BOOO troller (IPC) is a general·purpose, user· and with B·blt microprocessors programmable peripheral controller. It • Bus compatible with B·bit peripherals contains a system interface, an 8·bit CPU, RESEi' • TTL compatible 110 a serial communications interface, 21 P24 parallel 110 lines, a 16·bit timer, 2048 bytes • B·blt CPU P23 of ROM, and eight operating modes. In ad· • 2K bytes ROM dition, the SC68120 features 128 bytes of • 12B bytes dual·ported RAM P22 dual·ported RAM and six semaphore • Six shared semaphore registers P21 registers that are accessible to both the P20 • 16·blt timer internal CPU and an external processor or device through the system interface. The • 21 parallel 110 and two handshake lines SC2 SC68120 provides all the control signals • Serial communications Interface SCI necessary to interface with the asyn· • Interrupt capability P30 chronous bus of the SC68000. • Operates In slngle·chlp mode or ex· P31 S.AS pandable to 64K·byte addressing range S.A4 P32 • DMA capability Vee P33 • B)( B·blt multiply S.A3 P34 S.A2 P35 S.Al P36 S.AO P37 S.DO P40 S.Dl P41 S.D2 P42 PROGRAMMING MODEL S.D3 P43 5.04 P44 K----~ -__ ~U~ -- -..!---- 3 S.DS P4S 5.06 P46 8·BITACCUMULATORSAAND B 15 D O O R la-BIT DOUBLE ACCUMULATOR D S.D7 P47 1'5 I o INDEX REGISTER (X) TOP VIEW '1IT! 1'5 SP I o STACK POINTER (SP) 1'5 PC o I PROGRAM COUNTER (PC) 7 0 H 1 N Z V C CONDITION CODE REGISTER (CCR) CARRY/BORROW FROM MSB OVERFLOW ZERO NEGATIVE INTERRUPT HALF CARRY (FROM BIT 3) 4·6 Signetics MICROPROCESSOR DIVISION JANUARY 1982 INTELLIGENT PERIPHERAL CONTROLLER SC68120 BLOCK DIAGRAM CS 8._ DTACK S.DO 5.Dl S.D2 S.D3 5.D4 .,::> 5.D5 S.De Ii: .. lI! w 5.D7 2 E 5.AO SAl 5.A2 S.A3 4 S.M 5.AS S.AI S.A7 DATA ADDRESS SINGLE CHIP I gggggggg9~ gggggggg In EXPANDED NON·MULTIPLEXED I !;UUSUU :c~:a:l~:O!C:il}; EXPANDED MULTIPLEXED I !;!8iHISESa .. ~~5~~~~:I i ~UU~Uii!C ii:UUiU .. iUnU!!U SUMMARY OF OPERATING MODES Expanded non·multiplexed mode - External memory space accessed Common to all modes: Mode 5 through: System bus Interface 2048 bytes of ROM (internal) Port 3 as a multiplexed address/data Reserved register area 256 bytes of external memory space bus Six semaphore registers Port 3 is an a·bit data bus Port 4 as an address bus (high) I/O port 2 Port 4 Is an address bus SC1 Is address strobe (AS) Input 16·bit programmable timer SC1 is Input/output select (lOS) SC2 is read/write (RIW) Serial communications interface SC2 Is read/write (R/W) Test modes - Modes 0, 4 128 bytes of dual·ported RAM Expanded multiplexed modes - Modes 1, Expanded multiplexed test mode - may Single chip mode - Mode 7 2,3,6 be used to test RAM and ROM 2048 bytes of ROM (Internal) Four memory space options (64K ad· Single chip and non·multlplexed test Port 3 is a parallel I/O port with two dress space); mode - may be used to test ports 3 control lines (1) MOOS compatible and 4 as I/O ports Port 4 is a parallel I/O port (2) No ROM SC1 Is input strobe 3 (IS3) (3) External vector space SC2 Is output strobe 3 (OS3) (4) ROM with partial address bus Sigletics 4·7 -----.-~ -- -- -.--. .. - . - - - - ---. MICROPROCESSOR DIVISION JANUARY 1982 PARALLEL INTERFACE/TIMER SC68230 PRODUCT BRIEF, contact your Signetics sales offices for complete Information. DESCRIPTION FEATURES FUNCTIONAL DIAGRAM The SC68230 ParaliellnterfacelTlmer (PIIT) o 24 programmable I/O lines is a general·purpose, programmable paral- o Port modes include: lel interface device which meets most Bit mode system parallel 1/0 and timing needs. The PAD-PA7 Unidirectional B·blt mode parallel interfaces of the PI/T may be used Unidirectional 16·blt mode to connect a wide variety of peripheral Bidirectional B-blt mode PBO-P87 devices to the SC68000 bus. The PI/T can Bidirectional 16·bit mode be programmed to generate interrupt re- o Selectable handshaking modes PORT c/DMAREQ quests to the SC68000, or DMA requests PORT c/INTR o 24·blt programmable timer to the SC68450 Direct Memory Access PORTC/IACK Controller, on demand of the peripheral. o Several timer modes PORTC/TIMER No external logic Is needed to connect the o Contains interrupt prioritization logic PORT C/TIMER PI/T to the DMAC or to the SC68000. The o Unique interrupt vectors for each source PORTC/TIMER PI/T also provides complete port and timer o Supports Interrupt and DMA service PORTC status information. requests PORTC The SC68230 contains two multi-mode, o Contains port and timer status registers double-buffered 1/0 ports (Port A and Port o SC680DO bus compatible CA1 B), a third &bit 1/0 port, and a 24-blt pro- CA2 grammable timer. The PI/T also contains C81 flexible prioritization logic for generating unique interrupt vectors. Autovectored in- C82 terrupts are also supported. Port C pins provide either another port pin or special functions consisting of Interrupt, timer, or direct memory access control lines. 4·8 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DMA CONTROLLER SC68450 PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION FEATURES FUNCTIONAL DIAGRAM The SC68450 Direct Memory Access Con· • Compatible with both SC68000 family troller (DMAC) offers the system designer and B-blt peripherals unparalleled performance where both • Four fully-Independent channels A8-A23/ speed and flexibility In data transfer are 00-D15 REOD • Single or dual address transfers required. Sophisticated chaining tech· • Byte, word, or long word transfers A1-A7 ACKO niques, memory-to-memory block trans- PCLD fers, and variable bus bandwidth utiliza- • Memory-to-memory block transfers RiW tion result in optimum data transfers. In- • Supports both chained and unchained Cli ternal 32-bit address registers provide operations lIEQi All upward software compatibility with future • Transfer rates up to 4 megabytes per UDS £K1 SC68000 family processors second LDS PCL1 • Supports vectored Interrupts DTACK • Supports array or linked array chaining • 16-blt data bus • Programmable priorities Iml2 ~ 4 PCL2 lffil3 ACK3 PCL3 OWN iiU HIBYTE IiiiEIiI DliIII ClK FCD Vee FC1 GND FC2 Signetics 4-9 MICROPROCESSOR DIVISION JANUARY 1982 DMA CONTROLLER SC68450 INTERNAL ORGANIZATION CHANNEL CHANNEL STATUS RECJISTER STATUS REGISTER CHANNEL CHANNEL ERROR REGISTER ERROR REGISTER DEVICE DEVICE CONTROL REGISTER CONTROL REGISTER OPERATION OPERATION CONTROL REGISTER CONTROL REGISTER SEQUENCE SEQUENCE CONTROL REGISTER CONTROL REGISTER CHANNEL CHANNEL CONTROL REGISTER CONTROL REGISTER NORMAL NORMAL CHANNEL 0 CHANNEL 1 INTERRUPT VECTOR INTERRUPT VECTOR ERROR ERROR INTERRUPT VECTOR INTERRUPT VECTOR CHANNEL CHANNEL PRIORITY REGISTER PRIORITY REGISTER MEMORY MEMORY FUNCTION CODES FUNCTION CODES DEVICE DEVICE FUNCTION CODES FUNCTION CODES BASE BASE FUNCTION CODES 15 FUNCTION CODES " MEMORY TRANSFER COUNTER I MEMORY TRANSFER COUNTER I BASE TRANSFER COUNTER I " BASE TRANSFER COUNTER I 31 MEMORY ADDRESS REGISTER MEMORY ADDRESS REGISTER DEVICE ADDRESS REQISTER DEVICE ADDRESS REGIST!R BASE ADDRESS REGISTER SASE ADDRESS REGISTER CHANNEL CHANNEL STATUS REGISTER STATUS REGISTER CHANNEL CHANNEL ERROR REGISTER ERROR REGISTER DEVICE DeVICE CONTROL REGISTER CONTROL REGISTER OPERATION OPERATION CONTROL REGISTER CONTROL REGISTER SEQUENCE SEQUENCE CONTROL REGISTER CONTROL REGISTER CHANNEL CHANNEL CONTROL REGISTER CONTROL REGISTER NORMAL NORMAL INTERRUPT VECTOR CHANNEL 2 INTERRUPT VECTOR CHANNEL3 ERROR ERROR INTERRUPT VECTOR INTERRUPT VECTOR CHANNEL CHANNEL PRIORITY REGISTER PRIORITY REGISTER MEMORY MEMORY FUNCTION CODES FUNCTION CODES DEVICE DEVICE FUNCTION CODES FUNCTION CODES BASE BASE 16 FUNCTION CODES " FUNCTION CODES MeMORY TRANSFER COUNTER I MEMORY TRANSFER COUNTER I BASE TRANSFER COUNTER I 31 BASE TRANSFER COUNT!R I 31 MEMORY ADDRESS REGISTER MEMORY ADDRESS REGISTER DEVICE ADDRESS REGISTER DEY1CE ADDREIS REGISTER BASE ADDRESS REGISTER BASE ADDRESS REGISTER 4-10 Signetics MICROPROCESSOR DIVISION JANUARY 1982 MEMORY MANAGEMENT UNIT SC68451 PRODUCT BRIEF, contact your Signetics sales offices for complete Information. DESCRIPTION FEATURES FUNCTIONAL DIAGRAM The SC68451 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 space of the SC68000. The MMU can be • Increases system reliability accessed by any potential bus master, such as Instruction set processors, or • Provides efficient memory allocation DMA controllers. Each bus master (or pro· • Allows interprocess communication cessor) In the SC68000 family provides a through shared resource. function code and an address during each bus cycle. The function code specifies an • Simplifies programming model of ad· dress space IMEMORY MANAGEMENT UNIT CONTROL address space while the address specifies • Minimizes operating system overhead a location within that address space. The with quick context switches function codes are provided by the SC68000 to distinguish between program and data spaces as well as supervisor and • 32 segments with variable segment sizes SC88451 IMULTIPLEXER CONTROL 4 user spaces. This separation of address • Multiple MMU system capability spaces provides the basis of protection in • Supports both paging and segmentation an operating system. By simplifying the • DMA compatible GLOBAL programming model of the address space, • Provides virtual memory support } HANDSHAKE LINES the MMU also Increases the reliability of a • SC88000 bus compatible complex multiprocess system. BERR IiESE'f FCO CLK FC1 MAPPING LOGICAL SEGMENTS TO PHYSICAL MEMORY Vee -FC2 GND -FC3 READ ONLY READ ONLY A READI SHARED WRITE DATA UNDEFINED READ A ONLY B READ ONLY B UNDEFINED READI WRITE B READI PHYSICAL WRITE MEMORY LOGICAL ADDRESS SPACE Signetics 4·11 MICROPROCESSOR DIVISION JANUARV1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUARij SC68681 PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics SC68681 Dual Universal • SC68000 compatible bus interface Asynchronous Receiver/Transmitter • Dual, full·duplex, asynchronous (DUARl) Is a single chip MOS-LSI com· receiver/transmitter munications device that provides two in· • Quadruple buffered receiver data vee dependent, full·duplex, asynchronous registers IP4 receiver/transmitter channels in a 40'pin package. It interfaces directly with the • Programmable data format IP5 SC68000 16·bit CPU and other micropro' - 5 to 8 data bits plus parity 1P2 cessors and may be used In a polled or - Odd, even, no parity or forca parity IACKN interrupt driven system. - 1, 1.5 or 2 stop bits programmable In l/1a·blt Increments CSN The operating mode and data format of • Progremmable baud rate for each re- RESETN each channel can be programmed inde- ceiver and transmitter selectable from Xl/ClK pendently. Additionally, each receiver and - 18 fixed rates: 50 to 38.4K baud transmitter can select Its operating speed DTACKN X2 - One user-deflned rate derived from as one of 18 fixed baud rates, a 16x clock programmeble timer/counter RXDS RXDA derived from a programmable counter/ - ExternallX or laX clock TXDB TXDA timer, or an external 1 x or 16 x clock. The • Parity, framing, and overrun error detec· OPI OPO baud rate generator and counter/timer can tlon operate directly from a crystal or from ex· OP3 OP2 ternal clock Inputs. The ability to Inde· • False start bit detection OP5 OP4 pendently program the operating speed of • Line brake detection and generation OP7 OPS the receiver and transmitter make the • Programmable channel mode DUART particularly attractive for dual· Dl DO - Normal (full duplex) speed channel applications such as clus· - Automatic echo D3 D2 tered terminal systems. - Localloopback D5 D4 Each receiver is quadruply buffered to - Remote loopback D7 De minimize the potential of receiver overrun • Multl·function programmable la·blt OND INTRN or to reduce interrupt overhead In inter· counter/timer rupt driven systems. In addition, a hand· • Multi·functlon II-blt Input port TOP VIEW shaking capability Is provided to disable a - Can serve as clock or control inputs remote DUART transmitter when the buf· - Change of state detection on four in· fer of the receiving device Is full. puts Also provided on the SC68681 are a multi· • Multl·f,unctlon II-blt output port purpose 6-blt input port and a multipur· - Individual bit setlreset capability pose B-bit output port. These can be used - Outputs can ba programmed to be as general·purpose I/O ports or_can be status/lnterrupt Blgnals assigned specific functions (such as clock • Versatile Interrupt systam Inputs or status/Interrupt outputs) under .... Single Interrupt output with alght program control. maskabla Interrupting conditions - Interrupt vector output on interrupt The SC68681 is similar to the Signetics acknowladge SC2681, differing primarily in that the - Output port can be configured to pro- SC68681 bus interface Is compatible with vide a total of up to six saparata wlr&- the SC68000 16·bit microprocessor. Refer OR'able Interrupt outputs to the SC2681 data sheet for operational details. • Maximum data transfer: lX - 1MB/sec, laX - 125KB/sec • Automatic wake·up mode for multidrop applications • Start·end break Interruptlstatus • Detacts break which originates In the middle of a character • On·chlp crystal oscillator • TTL compatlbla • Single + 5V power supply 4-12 Signetics MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC68681 BLOCK DIAGRAM r- ~ k 8/ DO-D7 < BUS BUFFER CHANNEL A I 14- r- I TRANSMIT HOLDING REG I TRANSMIT TxDA R/WN OPERATION CONTROL I-- - SHIFT REGISTER RECEIVE 4 DTACKN CEN • I ADDRESS DECODE I r- HOLDING REG (3) AxDA RECEIVE I I 4/ AO-A3 >-- SHIFT REG RESETN RIW CONTROL INTERRUPT ~ CRA SRA CONTROL I- >-- TxOB INTRN r""'j'M'jj"" CHANNELB IACKN • ~ ~ --- - lAS ABOVE) RxDB TIMING . ~ ;: - !!!ID :! ~ ... c INPUT PORT CHANGE OF STATE DETECTORS (4) 6/ IPO-IPS I BAUD RATE I zII: I GENERATOR CLOCK I --- - i ~ ACR SELECTORS I - OUTPUT PORT I COUNTER! TIMER FUNCTION SELECT lOGIC 8 OPO-OP7 ~ X1/ClK X2 I XTAlOSC I L...- OPR "'"'CsRA ~ • Vee ~ CTUR • GND ~ signetics 4·13 MICROPROCESSOR DIVISION JANUARY 1982 DUAL ASYNCHRONOUS RECEIVER/TRANSMITTER (DUART) SC68681 BLOCK DIAGRAM The SC68681 DUART consists of the fol- clock selectors. The crystal oscillator op- pin. The receiver accepts serial data on lowing eight major sections: data bus buf- erates directly from a 3.6864MHz crystal the RxD pin, converts this serial input to fer, operation control, Interrupt control, connected across the Xl/ClK and X2 in- parallel format, checks for start bit, stop timing, communications channels A and puts. If an external clock of the appropri- bit, parity bit (If any), or break condition B, Input port and output port. Refer to the ate frequency Is available, It may be con- and sends an assembled character to the block diagram. nected to Xl/ClK. The clock serves as the CPU. basic timing reference for the baud rate Data Bus Buffer generator (BRG), the timer/counter, and other Internal circuits. A clock signal must The data bus buffer provides the interface always be supplied to the OUART. Input Port between the external and Internal data busses. It is controlled by the operation The baud rate generator operates from the The inputs to this unlatched port can be control block to allow read and write oscillator or external clock Input and Is read by the CPU by performing a read op- operations to take place between the con- capable of generating 18 commonly used eration at address 0 16 , A high input trolling CPU and the DUART. data communications baud rates ranging results In a logic 1 while a low input re- from 50 to 38.4K baud. The clock outputs sults In a logic O. The pins of this port can Operation Control from the BRG are at 16X, the actual baud also serve as auxiliary inputs to certain rate. The counter/timer can be used as a portions of the OUART logic. The operation control logiC receives timer to produce a 16X clock for any other operation commands from the CPU and Four change-of-state ,detectors are pro- baud rate by counting down the crystal generates appropriate signals to internal vided which are associated with inputs clock or an external clock. The four clock sections to control device operation. It IP3, IP2, IP1, and IPO. A high-ta-Iow or low- selectors allow the Independent selection, contains address decoding and read and to-high transition of these inputs lasting for each receiver and transmitter, of any of write circuits to permit communications longer than 25-50l's Will set the cor- these baud rates or an external timing with the microprocessor via the data bus responding bit In the input port change signal. buffer. register. The bits are cleared when the reg- The counter/timer (CIT) can be program- ister Is read by the CPU. Any change of Interrupt Control med to use one of several timing sources state can also be programmed to generate as Its input. The output of the CIT is avail- an interrupt to the CPU. A single active-low interrupt output (INTRN) is provided which Is activated able to the clock selectors and can also be programmed to be output at OP3. In the upon the occurrence of any of eight Inter- cou nter mode, the contents of the CIT can nal events. Upon receiving an interrupt acknowledge from the CPU, the SC68681 be read by the CPU and it can be stopped Output Port and started under program control. In the responds by placing a programmable 8-bit The 8-blt multi-purpose output port can be timer mode, the CIT acts as a program- Interrupt vector on the data bus. used as a general-purpose output port, In mable divider. which case the outputs are the comple- Associated with the Interrupt system are ments of the output port register (OPR). the interrupt mask register (lMR) and the Communications Channels OPR[n] = 1 results In OPn = low and vice- interrupt status register (ISR). The IMR versa. Bits of the OPR can be individually may be programmed to select only certain A and B set and reset. A bit Is set by performing a conditions to cause INTRN to be asserted. Each communications channel of the write operation at address E16 with the ac- The ISR can be read by tbe CPU to deter- SC68681 comprises a full-duplex, asyn- companying data specifying the bits to be mine all currently active Interrupting con- chronous receiver/transmitter (UART). The set (1 = set, 0 = no change). Likewise, a bit ditions. operating frequency for each receiver and is reset by a write at address F16 with the Outputs OP3-0P7 can be programmed to transmitter can be selected Independently accompanying data specifying the bits to provide discrete interrupt outputs for the from the baud rate generator, the counter = = be reset (1 reset, 0 no change). transmitters, receivers, and counter/timer. timer, or from an external Input. Outputs can also be individually assigned The transmitter accepts parallel data from specific functions by appropriate pro- Timing Circuits the CPU, converts it to a serial bit stream, gramming of the channel A mode registers The timing block consists of a crystal Inserts the appropriate start, stop, and op- ' (MR1A, MR2A), the channel B mode regis- OSCillator, a baud rate generator, a pro- tional parity bits and outputs a compOSite ters (MRl B, MR2B), and the output port grammable 16-blt counter/timer, and four serial stream of data on the TxO output configuration register (OPCR). 4·14 5ignetics Section 5 Video Game Signetics MICROPROCESSOR DIVISION JANUARY 1982 UNIVERSAL SYNC GENERATORS (USG) SC2621 (PAl), SC2622(NTSC) PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION PIN CONFIGURATION The Signeties.2621 Universal Sync Gener- The Signetics 2622 Universal Sync Gener- ator (USG) provides the timing and control ator (USG) provides the timing and control signals necessary for generating and dis- signals necessary for generating and dis- playing TV video information in the PAL for- playing TV video information in the NTSC mat. format. The USG accepts a single 3.55MHz input The USG accepts a single 3.5795MHz input clock and generates various timing outputs clock and generates various timing outputs including vertical, horizont,el and composite including vertical, horizontal, and compOSite blanking, composite sync and color burst blanking, composite sync and coior burst flag. Several auxiliary clock outputs are also flag. Several auxiliary clock outputs are also provided. provided. The USG is primarily intended for use in microprocessor-controlled video The USG is primarily intended for use in games. A typical game configuration consists microprocessor-controlled video games. A TOP VIEW of a 2622 USG, a 2650A microprocessor, a typical game configuration consists of a 2636 Programmable Video Interface, a 2616 2621 USG, a 2650A microprocessor, a 2636 16K ROM, and video summer circuitry. The Programmable Video Interface, a 2616 16K 2622 is constructed using Signetics silicon ROM, and digital video summer circuitry. gate N-channel depletion load technology and The 2621 is constructed using Signetics sili- operates from a single + 5 volt power supply. con gate N·channel depletion load techno· logy and oparates from a single +5 volt pow- er supply. BLOCK DIAGRAM 1----,--- VRST CBLANK VSR RESET --------+--=======4----1 CLOCK r--""";:':"'---l-:±=-++-- 1 - - - -..... HRST L ________=-.J=~ 0' -C8' PCK Q-CK' &CK4 5·2 Signetics MICROPROCESSOR DIVISION JANUARY 1982 PROGRAMMABLE VIDEO INTERFACE (PVI) SC2636 PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics 2636 Programmable Video In- terface (PVI) is intended for use In • Four general-purpose, RAM-resident object modules microprocessor-controlled game systems, GND and provides all of the common game cir- • Object duplication permitting INTREQ generation of up to 80 object Images cuits on a single chip. Circuits are provided on the screen R/W for player inputs, background, moving ob- jects, scoring, and audio signals. • 280ns object resoluUon VAST • Object size and pOSition under HR8T A typical system configuration consists of program control Cl five LSI circuits: a PVI, a 2616 16K ROM, an • Programmable score NE549 Digital Video Summer (DVS) a Uni- Programmable sound C2 versal Sync Generator (USG), and a 2650A • Programmable background Ci microprocessor. • Eight programmable colors with QBJ/SCR multiple brightness levels A, INTACK Additional PVls as well as random logic can • 37-byte scratch pad memory easily be interfaced to enhance game com- • Chip Enable outputs for system ROMs Ae Do pleXity. Since the system is microprocessor and PROMs vee D, based, the actual game itself need not be • 1/0 facilities for switch scanning and "hardwired" into the system. Game defini- potentiometer Inputs A. D:! tion is completely contained in the ROM. To change games, one simply replaces one ROM with another. Each ROM can contain • WIre-OR expansion capability to multiple PVls • Forty-pin dual-in-line package A,O A11 D. D. 5 --==-- CE, DS several games, depending on game com- APPLICATIONS OI'ACK Do plexity and similarity between games. • Consumer programmable video games OPREQ D7 The 2636 PVI is constructed uSing • Arcade games ffi SOUND Signetics' silicon gate N-Channel depletion • Simulators POT> POT' load technology and operates from a Single • Special purpose graphic displays +5 volt power supply. • Home computer center TOP VIEW PVI BLOCK DIAGRAM -'---~ CE' POT' POT. SOUNC Signetics 5-3 MICROPROCESSOR DIVISION JANUARY 1982 UNIVERSAL VIDEO INTERFACE (UVI) SC2637 PRODUCT BRIEF, contact your Signetics sales offices for complete information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics 2637 Universal Video Inter- face (UVI), using a new design approach, • Four general purpose, RAM-resident enables a microprocessor based system to objects D2 • 280nsec object resolution ., - be interfaced more efficiently with a color or black and white television receiver or moni- • Object size and pOSition under program control DO tor. For the first time, the 2637 UVI com- bines an object oriented approach with • Programmable multi-level sound and character generation (alphanumencs or oth- noise generators A. er displayable forms) plus RAM-mapped • 16 characters per display row A1 color graphics. • 13 or 26 character rows per screen The UVl's primary use is in microprocessor • 40 alphanumeric characters •• • 16 background characters A3 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- meric and graphics data is desired. In par- • 8 programmable color codes • Chip enable outputs for I I 0 logic POT2 POT1 . AS . ticular, the UVI has been designed to require • 1/0 facilities for switch scanning and Cli A7 a minimum of support components thereby potentiometer (RCI inputs allowing a system configuration that is opti- CI • Operates with both U_S_ and European mized for the user's needs. standards ~ a The UVI reads data and operational com- • Single +5 volt power supply C! CI! mands from a memory and produces video • Forty-pin package SOUND R/W signals that result in the generation of alpha- R/W aPJilR numeric or graphics color TV displays. Many APPLICATIONS of the common display circuits have been YRST cs • Video games incorporated in a single chip, including: HAST • Home computers • Communications terminals PC_ • Analog to digital converters which accept potentiometer inputs • Educational systemB TOP VIEW • Alphanumeric and special character • Process control displays generators • Medical electronics • Moving object circuits • Audio signal generators With the 2637, a typical system configura- tion consists of a UVI, a 2616/2632 ROM, a 2622 (NTSC) or 2621 (PAL) Universal Sync Generator (USG), a 2650 senes micro- processor, four 2112 RAMs, and video sum- ming circuitry. Additional UVls, Pro- grammable Video Interfaces (PVls), as well as random logic can be interfaced to en- hance 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 2637 UVI is a bus oriented device with which can be read by the system's CPU. CPU; for example, collisions 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 ad- Address Block The color multiplexer generates the color dress 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 resel 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 generator sending out pulses at a user character lonts. coordinate representation of the television 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 5-4 Signe1ics MICROPROCESSOR DIVISION JANUARY 1982 UNIVERSAL VIDEO INTERFACE (UVI) SC2637 BLOCK DIAGRAM 8-8IT DATA BUS DO - D7 -- HCIIIZOHTAi. COUNtER, VERTl- CAL COUNTER, DIM. ADDRESS BUS ~----------------~l~ RIW[E] _COUIfmI _ _NG RIW PROCE88OR STAlUSOf' iIII!II LOGIC COW8ION lII'm! CBJECT MODULE 1 .-------,L..-..-IO Cl OPRED RCE Cl!1 ....... DI!CODER ~ l:! CO .....,.---._---,.._-..1 L-~-~~ t!fi(OBJECT vtDEO) ADDRESS MJS AO - AS + 5 VOLTS QND o 0 Signetics 5·5 MICROPROCESSOR DIVISION JANUARY 1982 MICROPROCESSOR SC2650A PRODUCT BRIEF, contact your Signetics sales offices for complete Information. DESCRIPTION FEATURES PIN CONFIGURATION The Signetics 2650A series are B-blt general • Stetlc 8 bit parallel NMOS microproc- purpose microprocessors constructed using essor Signetics n-channel silicon gate MOS tectl- • Single power supply of +6 volts nology. The 2650 series executes a fixed In- • TTL level single phase clock struction set, with each Instruction being one • Tll compatible Input. and outputa to three bytes In length. • Vsrlabl. length Instructions of I, 2 or 3 bytes The 2650 InstNctlon set consists of many • ,,32K byte addressing rang. powerful InstNctlons which are all ...IIy • Coding efficiency with multiple ad- understood and are typical of larger corn- dressing modes puters. There are one-, two-, and three-byte In- • Synchronous or a.ynchronous memory structions as a result of the multiplicity of and 1/0 Int.rfac. addressing modes. • Interface. directly with Indu.try stan- dard memorl•• Addressing range of these processors Is • Single bit aerial 110 path 32K bytes of memory snd 268 1/ 0 devices. • Seven 8 bit addr....ble g.nersl pur- A single level hardware vectored Interrupt pose r.glst.rs capability is provided. • Vectored Int.rrupt • Subroutln. return address stack TOP VIEW MICROPROCESSOR BLOCK DIAGRAM 8UBROUTINE .ETURN ADDR." STACK ADDRESS8US I/O ..... WRITE, INTIRRUPT DECODING AND CDNTROL CONTROL _ITOP LINES LOGIC TIMING LOGIC CLOCK Figure 1 5-6 SigneIics MICROPROCESSOR DIVISION JANUARY 1982 MICROPROCESSOR SC2650A PIN DESIGNATION MNEMONIC NUMBER NAME TYPE FUNCTION ADRO-ADR12 14-2 Address lines 0 Low order memory address lines for Instruction or operand fetch. ADRO Is the least significant bit and ADR 12 is the most significant bit. ADRO through ADR7 are also used as the 110 device address for extended 110 Instructions. ADRl3-E/NE 19 Address 13- 0 Low order memory page sddress line during memory reference Extended I Non extended instructions. For 1/0 inatructions this line discriminates between extended and non-extended 110 inatructions. ADR14-D/~ 18 Address 14- 0 High order memory page address line during memory reference Data I Control instructions. It also serves as the 1/0 device address for non-ex- tended 110 Instructions. AmmiI 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 communicetion 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 38 Operation request Operation acknowledge 0 I Indicates to external devices that all address, data and control information is valid. Active low input indicating completion of an external operation. This = 5 allows asynchronous functioning of external devices. M/iO 20 Memory I input-output 0 Indicates whether the current operation references memory or 1/0. R/W 23 Read/Wrlte 0 Indicates a read or a write operation. WRP 22 Write pulse 0 This is a timing signal from the 2850 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 senss 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. IIiiTRm 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 2850 is ready to receive the interrupt vector (relative address byte) from the interrupting device. ~ 37 Pause I This active low input is used to suspend processor operation at the end of the currant Instruction. RUN/WAiT 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 pauae line, the run I walt line will go low. RESET 18 Reset I Resets the Instruction address register to zero. Clesrs interrupt inhibit. CLOCK 38 Clock I A positive going pulse train that determines the instruction execution time. VCC 39 +5V supply I +5Vpower GND 21 Ground I Ground Signetics 5·7 MICROPROCESSOR DIVISION JANUARY 1982 MICROPROCESSOR SC2650A FUNCTIONAL DESCRIPTION instruction. The IR contents are decoded accessed. The operand address register The 2650 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- The arithmetic logic unit (ALU) is used to turn instruction is executed, the RAS pro- ecutes variable length instructions of one to perform all of the data manIpulatIon oper- vides the last return address for the three bytes in length. ations, including load, store, add, subtract, processor's IAR. The stack contains eight The 2650 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 I/O 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 The program status word (PSW) is a major one, two, or three bytes long, depending on one of the two banks to be accessed by feature of the 2650 which greatly increases the instruction. Variable length instructions instructions. In order to accommodate the its flexibility and processing power. The tend to conserve memory space since a register-to register instructions, register PSW is a special purpose register within the one-or-two byte instruction may often be zero (RO) is outside the array. Thus, register processor that contains status and control used rather than a three byte instruction. zero is always available along with one set 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 I/O 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 2650 series (fig- PSU7 S Sense equals the state of the sense input. ure 1) shows the major internal components PSLO C Carry stores any carry from the high-order bit of ALU. and the data paths that interconnect them. PSLI COM Compare determines if a logical or arithmetic comparison is to be In order for the processor to execute an in- made. struction, it performs the following general PSL2 OVF Overflow is set if a two's complement overflow occurs. steps: 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 allected by compare, test and arithmetic instructions. register. 3. The instruction register (IR) is decoded to determine the type of instruction and the addressing mode. PSU I ~ I : I ~ I~ I~ Is~21 S~l IS~O I 4. If an operand from memory is required, the operand address ;s 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 byte SPO Stack pOinter zero OVF Overflow of each instruction and directs the subse- COM Logical arithmetic compare quent operations required to execute each C Carry / borrow 5·8 Signetics MICROPROCESSOR DIVISION JANUARY 1982 MICROPROCESSOR SC2650A INPUT/OUTPUTINTERFACE be used for 1/ 0 operations. When an instruc- the interrupt vector, on the data bus. The The 2650 series microprocessor has a set tion is executed, the address may be de- relative and relative indirect addressing of versatile I/O instructions and can perlorm coded by the 1/ 0 device rather than mem- modes combined with this 8-bit address al- I/O operations in a variety of ways. One-and ory. low interrupt service routines to begin at any two byte 1/ 0 instructions are provided, as addressable memory location. MEMORY INTERFACE well as a special single-bit I/O facility. The The memory interlace consists of the ad- INSTRUCTION SET 1/ 0 modes provided by the 2650 are desig- dress bus, the 6-bit data bus and several The 2650 instruction set consists of many nated as data, control, and extended 1/ O. signals that operate in an interlocked or powerful instructions which are all easily Data or controlI/O instructions, also called handshaking mode. understood and are typical of larger com· non-extended 1/ 0 Instructions, are one byte The write pulse signal is designed to be puters. There are one-, two-, and three-byte long. Any general purpose register can be used as a memory strobe signal for any instructions as a result of the multiplicity of used as the source or destination. A special memory type. It has been particularly opti- addressing modes. control line indicates if either a data or con- mized to be used as the chip enable or Automatic incrementing or decrementing of trol instruction is being executed. read/write signal. an index register is available 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 1/ 0 branch instructions except indexed branch- instruction will cause an 6-bit address, tak- CAPABILITY ing can be conditional. en from the second byte of the instruction, to The 2650 series has a single level hardware vectored interrupt capability. When an inter- Register-to-register instructions are one be placed on the low order eight address lines. The data, which can originate or termi- nate with any general purpose register, is rupt occurs, the processor finishes the cur- rent instruction and sets the interrupt inhibit byte; register-to-storage instructions are two or three bytes long. The two-byte regis- ter-to-memory instructions are either imme- 5 placed on the data bus. This type of 1/ 0 can bit in the PSW. The processor then executes a branch to subroutine relative to location diate or relative addressing types. be used to simultaneously select a device and send data to it. zero (ZBSRl Instruction and sends out inter- rupt acknowledge and operation request Memory reference instructions that address signals. On receipt of the INTACK signal, the data outside of physical memory may also interrupting device inputs an 6-bit address, Signetics 5-9 Section 6 Application Notes Signetics MICROPROCESSOR DIVISION JANUARY 1982 INTERFACE TECHNIQUES FOR THE 2651 PCI App Note M22 INTRODUCTION READ WRITE TlMfNG DIAGRAM The Signetlcs2651 Programmable Commu- nications Interface (PCI) is a universal syn- chronouslasynchronous data communica- tions controller chip designed for microcomputer systems. The 2651 accepts I------Ico - - - - - . J programmed instructions from a micro- processor and supports many senal data communication disciplines, synchronous and asynchronous, in the full or half-duplex mode. Although designed pnmarily to Interface to a 2650 microprocessor, the 2651 can be easily integrated Into systems emploYing other CPUs. This application note descnbes 0 0-0 7 methods to interface the PCI to 8080A, SC/MP, Z80, 8085, and 6800-based micro- (WRITE' _________ J I'-- computer systems 1- IOS-- INTERFACE SIGNALS Do-Dr BUS DATA VAllO BUS FLOATING The PCI interface signals can be grouped (READ) FLOATING Into two types' the CPU-related signals, which interface the 2651 to the microproc- essor system, and the device-related sig- nals, which are used to Interface to the Figure 1 communications device or system. The functions of the CPU-related signals of interest in this application note are detailed in Table 1 Timing signals for the CPU-PC I Interface are Illustrated in Figure 1, with relevant specificatIOns summanzed in Table 2 PIN NAME PIN NO. INPUTIOUTPUT FUNCTION A1-Ao 10,12 I Address lines used to select internal PCI registers 'R/W 13 I Read command when low, wnte command when high. CE 11 I Chip enable command When low, Indicates that control and data linesto the PCI are valid and that the operation specified by the R/W, A1 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 Table 1 CPU-RELATED INTERFACE SIGNALS LIMITS PARAMETER TEST CONDITIONS1 UNIT Min Max tCE Chip enable pulse Width 300 ns Setup and hold time ns tAS Address setup 20 tAH Address hold 20 tcs tCH R/W control setup R/W control hold I 20 20 tDS Data setup for write 225 tDH Data hold for write 0 tDD Data delay time for read CL - 100pF 250 ns tDF Data bus floating time for read CL = 100pF 150 ns NOTES Table 2 AC ELECTRICAL CHARACTERISTICS FOR CPU INTERFACE SIGNALS 1 TA=OQCto + 70°C, VCC=5V ±5% 2 ParametriC values listed are from 2651 data sheet Consult latest data sheet for possible changes to specifications 6·2 Signetics MICROPROCESSOR DIVISION JANUARY 19S2 INTERFACE TECHNIQUES FOR THE 2651 PCI AppNoteM22 2650 INTERFACE 2650-2651 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 memory reference instructions. As shown In Figure 2, the 2651 chip enable (CE) Input IS ADRO ADR1 ii/w ." IIIW generated by "NAN Ding" OPREQ with the appropriate control signals (depending on the addressing mode used) and the higher DBUSO- V " .... DBUS7 DBD-' order address lines required to select the r;NOTE1 g-:NOTE3 y 2851 PCI. / :;.::- NOTE 2 M/iO ,"// / 8080A INTERFACE With regard to interfacing to the 2651, the E/NE OPREQ """P-74LS CE major difference between a 2650 CPU and j:1 NAND GATE an 80S0A system consisting of an SOSOA CPU, S224 Clock Generator, and 822S/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 the 2651 RIW input. Instead, the 8080A sys- tem provides separate lOR and lOW (or MEMR and MEMW) outputs which specify NOTES both the direction of data flow and the data Inverter reqUired only If 2651 addreSSing IS by extended 110 instructions (Wnte, Read) transfer timing ThiS Input required only If 2651 addreSSing IS by extended 1/0 instructIOns and non- extended addreSSing IS also used In the system The simplest way to accomplish the inter- 3 These Inputs not reqUired If aU I/O addreSSing IS memory mapped face IS to utilize an address line from the Figure 2 S080A for the R/W Input and to 'OR' the lOR and lOW (or MEMR and MEMW) signals for ultimate use as the 2651 chip enable signal, as illustrated in Figure 4 The only impact on OPERATION A2 (R/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 Table3 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 Table 3 PCI REGISTER ADDRESSING FOR 8080A INTERFACE 2651 and the SOSOA specifications at the minimum 8OS0A clock period of 480ns The timing waveforms and calculations for the read and write cycles are shown In Figures 5 and 6. Signetics 6·3 MICROPROCESSOR DIVISION JANUARY 1982 INTERFACE TECHNIQUES FOR THE 2651 PCI AppNoteM22 8080A SYSTEM GNO---_ 2 A. 2S A. 20 26 +5V_ A, A, 11 27 -5V---_ A, A, 28 29 +12V---_ A, A, 3. A, A, 31 8080A CPU .. A, A, 32 33 A, A, A, ADDRESS BUS 34 A, A, SYSTEM OMA REO - 13 HOLD A, A" 35 1 A, A" A" •• A" 37 14 Au Au SYSTEM tNT REO INT 38 A" A" 16 39 INT ENABLE INTE A" A" 36 A" A" 18 WR 17 OBIN t,;m~r HDLA 21 .1,1 .,., 14 15 2\ TANK OSC ~ - 13 11 ,. 22 15 DD~~ 0, ~ ---2.:. OB ~- DB, ~---- DB, (TTL) ----!. ~ WAIT D,~~ ~- DB, 2 of T3 to AQ, Al, Fi/w changmg 4BOns Mm } tAH, tCH for 2651 Delay from 4>2 of T3 to CE changmg 200n8 Max are satisfIed 4 Delay from $2 of T1 to B080A data bus valid 690n5 Max} tOS1, 1052 for Time from $2 of T1 to BOaOA data required 810ns Max BOBOA are satisfIed Figure 5 Signetics 6·5 MICROPROCESSOR DIVISION JANUARY 1982 INTERFACE TECHNIQUES FOR THE 2651 PCI App Note M22 8080A-2651 WRITE TIMING ,... T1 ) I 12 I' TO ---~II--- n - - .,J\ n n ~ ______~r-\~____ .. --' \ I \ \ I - 1-;5.'N 4i1iiii ~=x- j - I - _t--- ii'iiii OMIN :::x-H- \ X _MIN !-'52.,N_ f0- C .- HMIN .- DATA FRO._ VALID ~ DATA' ROM • • .1!!!1!.. .. MAX I- VALID - t-- I-! 2SSID AUINSPEe ~ ~ 100,¥_MIN MIN NOTES All times In nanoseconds. 4. Data available to 2651 pnor to ee, therefore tos for 2651 18 satisfied Time pnor to WR Ao. A" RIw val,d 683ns Min} tAS. tcs for 2651 5. Time after WR data...!,v81lable at 2651 125n8 Min} toH for 2651 Time after WR CE valid 508 Min are UllSfl8d Delay from WR to CE 7508 Max IS satisfied 3 Time after iNA Ao. A,. Rtw valid 12008 Min} Wi. tCH for 2651 Delay from WR to CE 75nl Min are satisfied Figure 8 Z80-2851 INTERFACE zaG INTERFACE The zeo CPU provides separate RD and WR signals to indicate read and write operations respectively. In addition, an MREO signal ..... .. (for memory operations) or an 10RO signal (for 1/0 operations) are also provided. Al- . A, IIiW though the RD signal could logically be used as the RIW input for the ~, with either MREO or 10RO used as the CE Input, i 0" < De.. as appropriate, the Z80 timing specifica- tions are such that the control hold time I - 2SS' specification (tCH) for the265f could"llOiDe ~ _ORRmI ....... - .... guaranteed . I . 4y- To overcome this problem, a technique IWIiI OR in utilizing an address line for the RIW Input is "'GHOR". ill recommended, as previously discussed for ADDAE88 LiNea FOR CHIP IILlCT. the 8080A interface. AlRI!QUIRI!D I Interfaces for memory mapped and 1/0 74 OR 74LS SIRlES map!!!,d operations are shown in Figure 7. The M1 signal inhibits 2651 operation dur- NOTE' Ing interrupt acknowledge cycles, Similarly, MRm. RFSH used for memory mapped 1/0 RFSH inhibits operation of the 2651 during 10RO, hIi usad lor standard 110 memory refresh cycles. A detailed timing analysis shows that all pertinent 2651 and Z80 timing specifications are satisfied with Figure 7 the techniques illustrated, 6-6 MICROPROCESSOR DIVISION JANUARY 1982 INTERFACE TECHNIQUES FOR THE 2651 PCI AppNoteM22 SC/MP II INTERFACE SC/MP 11-2651 INTERFACE The bus interface signals for the SC/MP II are similar to those previously described for the 8080A and Z80, except that only memo- ry reference operations are available. Again, a technique using an address line for the 2651 R/W input is recommended, as shown . A, . A, in Figure 8. All timing requirements for the A, RIW 2651 and SC/MP II are easily satisfied. 6800 INTERFACE The 6800 microprocessor provides a R/W D8 0 ? < DO" 265' PC. signal which, when inverted, is suitable for RDS ~ use by the 2651. The remainder of the inter- WDS face logic required consists of gating of the appropriate bus signals to generate the CE signal for the 2651, as shown in Figure 9. H. GH ORDER ADD AESS LINES FOR CHIP SELECT, I co The only timing parameter which is not A. REQUIRED I easily satisfied is the write data hold time 74 OR 74LS NAND GATES for the 2651 (t OH )' which is specified at Ons 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 2 clock. To guaran- Figure 8 tee worst-case operation, the DBE signal should be skewed with respect to 2 to guarantee the minimum data hold time at 6 the 2651. Consult the M6800 System De- ,--------------------------------------------, sign Data Manual for detailed information. 6800-2651 INTERFACE 8085 INTERFACE The bus signals of an 8085 microcomputer system are similar to those ofthe 8080A sys- tem shown in Figure 3. The major d.ffer- ences are the multiplexing of the eight least .. A, .. A, significant bits of address on the data bus R/W ..... RIW and the use of an 101M control line to Y distingUIsh between memory and 1/0 refer- ~ -" enees. m DBof < . DBa·, ..., Since a single RIW control line is not avail- able, the same addressing technique forthe ~ PC' 2651 registers as described for the 8080A I •• interface .s recommended. Thus, the inter- face will be similar to the one shown in Figure 4 YMA H. OH ORDER ADD AESS LINES FOR CHIP SELECT, I : p,- i:I If I/O addressing .s used, AO-A2 in Figure 4 A. REQUIRED can be replaced by the non-multiplexed 74 OR 7iQ.S SEAlES higher order address lines A8-A 10, since the 8085 provides the 1/0 address on both AO- A7 and A8-A15 during an INPUT and OUT- PUT instruction. In addition, the inverted 101M signal must be used as an input to the Figure 9 final NAND gate. If memory addressing is used for the 2651, REFERENCES AO-A2 must be obtained by demultiplexing 1. Signetics 2651 PCI Specificalton 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 SC/MP II 2653 CEO PGC Use of PCI Transparent .,., Mode Features • Send OLE (CR3) Command To ensure that there IS no transmitter underrun between a OLE and the control f iN'f I R +5v Figure 1 character or OLE character to follow, the Signetics 6·9 MICROPROCESSOR DIVISION JANUARY 1982 APPLICATIONS TECHNIQUES FOR THE 2651 PCI App Note M26 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 nicatIOns Interface (PCI) IS a universal Interface techniques best fit his application. Asynchronous-wait for TxEMT synchronous! asynchronous data communi- PROCEDURES FOR TERMINATING 1 Load last character Into THR in response cations controller chip designed for use with to TxRDY microcomputers and minicomputers The TRANSMISSION 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 senal data com- 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 (0- 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 8080A, SC/MP, Z80, ting; false otherwise) time after TxEMT goes active 8085, and 6800 Techniques for uSing the Synchronous-use a closing PAD 2651 PCI to support BISYNC are detailed in 1 Load an all 1'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 vanous interface and ing serialized CONDITIONS The DSCHG condilion 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 Pln(s) 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 m each when TxRDY goes active. local loopback mode The DCD and DSR procedure, the techniques shown should not 3. Drop RTS (0 - CR5). One or more bits of status bits (SR6, SR?) reflect the pin status at the time the status register IS read, i e., PCI INTERRUPT REQUESTS iR1 AND IR2 they are not latched. A Status Read will WHEN TxEMT/DSCHG MUST BE SEPARATED FROM TxRDY clear the DSCHG condilion. +5V The TxEMT condition goes active dunng transmitter underrun. The condition is Imme- diately reset when a character IS loaded into fiRI5Y THR It IS reset after the linefill is sent once RxRDV iifj the transmitter IS disabled (TxEN = 0) 2651 TxEMT +sv ENBL iR2 }~ LOGIC Smce both of these conditions share a pin (18) and a status register bit (SR2), it IS necessary to determine which or both condi- tions are present when the pin I status bit IS DSCHG active (Figure 2) Figure 1 , - - - - - . . . . FLOWCHART TO DISTINGUISH BETWEEN TxEMT & DSCHG Figure 2 6-10 Signetics MICROPROCESSOR DIVISION JANUARY 1982 APPLICATIONS TECHNIQUES FOR THE 2651 PCI App Note M26 GENERATING CORRECT LOGIC TO GUARANTEE TxD = 1 ON POWER UP OR RESET INITIALIZATION STATE GATeD OFTxD 19r------i~~----------_f--, After a power-on or RESET all Mode register bits will be zero Specifically, MR25 will se- 2651 lect external TxC The TxD pin requires at Vee least one high to low transition on TxC for RESET TxD 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 dunng a power on or RESET b) Input a system clock or the BRCLK into TxC through a 1K resistor. c) Inclusive OR RTS and TxD to produce the Tx serial data to the modem ACTIVE LOW d) Use external logic (Figure 3) to insure TxD comes up in the" 1" state. Figure 3 USING THE PCI BEYOND THE SPECIFIED SERIAL DATA RATE 1Mbps DC BASEBAND LINK ---- -------- 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 6 ns. A 1 Mbps DC baseband link between two PCI's is therefore quite acceptable. The only requirement is a synchronizing 2651 j flip flop at the transmitter to compensate for the uncertainty in t TXD• the TxD delay from the falling edge of TxC. That time can be anywhere from 150 ns to 650 ns (Fig. 4). Figure 4 ANALYSIS OF PULL UP RESISTOR 1. Rx mm Wish to mamtaln acceptable "0" V output VALUES FOR 2651 PCI WIRE-OR OF OPEN DRAIN OUTPUTS Vee max - VOL max AxmlO = -""'--------'=---- This diSCUSSion IS Intended to assist the 'OL max + IlL ,uP user in determlnmg pull up resistor values for open drain output TxRDY, RxRDY, (5 25 - 45) volts 48 kl! TxEMT IDSCHG shown In Figure 1 (Rx, Ry) (16+ 01)mA 161 only one output sonklng (low) = 3kf! 2 Rx max Wish to mamtam acceptable" 1" V output Vee max - VOH min (475 - 24)V Rxmax = -""'--------'''-'-- =1175kll 3 x 'OH - IlL J1P (3x 01 - 01)mA all outputs sourcing (high) Signe1ics 6·11 MICROPROCESSOR DIVISION JANUARY 1982 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 cyclic way to ensure a correct transfer Is to per- receiverltransmitter (RIT, 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. " the error using two PGCs. A unique feature of the {!lodes: BISYNC normal, BISYNC checking is perjOrmed correctly, the 2653 is its 'character class array', a 12Sx2 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-S) 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 programmable and can be changed for for IBM BISYNC, ANSI 3.2S, ISO 1745, the above error checking capability while each application. Figure I illustrates the DEC DDCMP, and other disciplines. operating with asynchronous, syn- block diagram of the PGC, while figure 2 chronous or parallel receivers or transmit- describes the formats of the registers 1See the 2653 data sheet for full opera- ters at a speed of up to 500K characters used to program its operation. 1 tional description. BLOCK DIAGRAM ~ I. 00-07 < DATA BUS 'I DATA BUS BUFFER >I CHARACTER REGISTER + I r- I8 t, 18 ~ {.Jo OLE act ANDVRC r- . OPERATION CONTROL R GENERATION UNIT AO ~ 1 MODE REGISTER -I ~'.1 E1 w COMMAND REGISTER STATUS REGISTER n ~ i§ B I! EO ~ i § ace UPPeR II ace LOWER I B8 Bn CHARACTER CLASS ARRAY 8 ~ ~ -8 II I U Figure I 6·12 Signettcs MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER App Note 400 PGC REGISTER BIT FORMATS ACCUMULATION MODES ~ 00 SINGLE 01 AUTOMATIC 10 BISYNC NORMAL 11 BISYNC TRANSPARENT ODD/EVEN PARITY - - - - - - - - - ' ' - - - - - - - RECEIVE/TRANSMIT 0000 o RECEIVE 1 eVEN 1 TRANSMIT VRCENABLE _ _ _ _ _ _ _ _ _ _ _ _ _-1 ' - - - - - - - - - ENABLE ACCUMULATION ('" 1) WITH ffi (= 1) MODE REGISTER = 6 ---- SECOND SEARCH CHARACTER DETECT INTERRUPT ENABLE = 1 BTC/SC DETECT _ _ _ _ _ _J INTERRUPT ENABLE'" 1 VRC ERROR INTERRUPT ENABLE = 1 Bee ERROR INTERRUPT ENABLE = 1 COMMAND REGISTER CR' BCe ERROR (= 1) CR6------I L _ _ _ _ _ VRC ERROR (= 1) L-_ _ _ _ _ _ _ _ BTC/SC DETECT CRS - - - - - - - - - ' (oo 1) L _ _ _ _ _ _ _ _ _ _ _ sse DETECT CR4------------' (= 1) STATUS REGISTER Figure 2 Signetics 6·13 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 A companion chip, the Signetics 2661 Enhanced Programmable Communica- BISYNC TEXT MESSAGE FORMAT tions Interface (EPCi), directly combines with the 2653 to effect a synchronous/ asynchronous character oriented commu- SYN SYN SOH Header STX Text ETX BCC LRC-B, CRC-12, or nications link. If a complete multi-protocol CRC-16, depending interface is desired, it can be obtained on character using the PGC in conjunction with the Sig- code (ASCII, netics 2652 Multi-Protocol Communica- tions Controller (MPCC). transcode, EBCDIC) Figure 3 PROTOCOLS Protocols provide the necessary ground rules to assure the orderly and accurate 3. Identify sender and receiver through means of identifying pure data characters transfer of data between digital equip- polling or selection. from the characters of the information ments. Data communications protocols 4. Handle special control functions such code set. For example, packed BCD, float- are becoming increasingly important as as requests for status, station reset, ing point numbers or memory image data the terminal population increases, dis- reset acknowledge, start, start ac- would be sent in the transparent mode tributed processing becomes widespread, knowledge, and disconnect. such that the receiver would not interpret and new communications technologies, that data as code set characters. such as packet switching and satellite Data link controls can be classified into Transparent mode is initiated by the se- links, become commonplace. character oriented protocols (COPs) and quence DLE-STX and terminated by a OLE bit oriented protocols (BOPs). COPs can followed by a block terminating character The protocols associated with the data be further subdivided into byte control (ETX, ETB, ITB, or ENO). communications have been classified into protocols (BCPs) and character count pro- several major levels, or layers, that define tocols (CCPs). Byte controlled protocols utilize a stop and various functions and operations. Each wait automatic repeat request (ARO) level is designed to be functionally inde- which limits operation to two way alternate pendent of the others, but each depends (half duplex). Each transmitted message on the correct operation of the previous BYTE CONTROL PROTOCOLS block must be acknowledged before the level to operate. The protocols embodied In BCPs, a defined set of commUnication next message may be sent. A negative ac- in these levels range from those that control characters effects the orderly knowledgement is achieved by sending a define the physical and electrical links, operation of the data link. IBM BISYNC, NAK, a positive acknowledgement is sent e.g. RS232C and CCITT V.35, to those ANSI 3.2B and ISO 1745 are all byte con- as an ACKO or ACKI for even and odd which are responsible for functions such trolled. Control characters and two blocks respectively. The acknowledge- as message buffering, code conversion, character sequences configure and ment is sent after one or more Block recognizing and reporting faulty condi- manage the data link between sender and Check Characters (BCCs) have been tions in terminals or lines, communication receiver. Control messages or acknowl- received and checked (one character for with the host mainframe, and management edgements consist of one or two charac- LRC-B, two characters for CRC-12 or of the communication network. These pro- ters while data messages usually contain CRC-16). Table I presents error checking tocols are implemented by software less than 1,000 characters. For text requirements for byte controlled pro- packages such as IBM's Systems Network messages, shown in figure 3, an optional tocols. Architecture (SNA), CCITT's X.25, and header may precede each text (informa- DEC's DECnet. tion) block. The entire message block is For control and acknowledgement error checked based on the information messages the receiving processor must In the remainder of this application note, code set used (ASCII, EBCDIC, SBT) and detect various single and two character we shall concern ourselves with data link the operational status of a transparent text sequences. These are defined in tables 2 control protocols (DLC's), which are the mode. The transparent text mode is a and 3. sets of rules necessary for effective com- munications between terminals and com- puters over conventional communications Table 1 ERROR CHECKING REQUIREMENTS FOR cnannels. DLe's are concernea wltn nan- BISYNCI ANSI 3.28 dling the communications link itself and moving information across it efficiently Information No Transparency Transparency and accurately. Code Transparency Operating Not Operating The basic functions of a DLC are to: I. Establish and terminate a connection EBCDIC CRC-16 CRC-16 CRC-16 between two stations. ASCII VRC-LRC CRC-16 VRC-CRC-16 2. Assure message integrity through error SBT CRC-12 CRC-12 CRC-12 detection, requests for retransmission, and positive or negative acknowledg- ments. 6-14 Signetics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 Table 2 COMMUNICATION CONTROL CHARACTERS FOR BISYNC Mnemonic Name Function SOH Start of heading Start of message which is used as heading. STX Start of text Start of any message. Information code characters follow. ETX End of text Signals the end of a text. BCC(s) follow. ETB End of transmittal block Signals the end of a transmittal block. BCC(s) follow. EOT End of transmission If used by the master, it signals the end of a transmission. As a slave response, it indicates an abnormal termination of the transmission (abort). In multipoint systems, it is' used by the control station to acti- vate address decoding functions within the tributary stations. NAK Negative acknowledgement Signals back to the master station that the last data block was not ac- cepted. It may also represent a negative response to an initialize se- quence, I.e. not ready. ENQ Enquiry Request to send back status, or abort a block of transmitted data. Also used by the master station to end a polling sequence. ITB Intermediate block Blocks of the received message are released to the program via inter- mediate interrupts for faster processing. BCC(s) follow the ITB. DLE Data link escape Used as leader in control sequences (see table 3). ACK Acknowledgement Used as OLE trailers in control sequences (see table 3). SYN Synchronization character SYN-SYN establishes character synchronization. Inserted au- tomatically into the data stream by the transmitter. Does not enter main storage of the receiver. 6 Table 3 BISYNC CONTROL CHARACTER SEQUENCES Mnemonic Function OLE-RVI Indicates to the transmitting statton that the receiving station wants to transmit data. Implies acknowl- edgement of last received block. OLE-SAK Indicates to the transmitter that the last message was received free of errors, but the receiver cannot continue. OLE-STX Enters transparent text mode. Allows all 256 characters to be used as data. OLE-EOT ~isconnect sequence on a switched network. OLE-ETX End-of-text signal in transparent mode. BCCs follow. OLE-ETB End-of-transmitlal-block Signal in transparent mode. BCCs follow. OLE-ITB Intermediate-block-checking signal in transparent text mode. BCCs follow. OLE-O/l Used as positive reply to even/odd blocks respectively. OLE-ENQ Aborts block of transparent data. BCCs do not follow. SYN-SYN Establishes character synchronization. Automatically inserted into the data stream during underrun in normal text mode. Used to maintain synchronization, and to recognize line interruptions. Does not enter main storage of receiver. OLE-SYN Automatically inserted into the data stream during underrun in transparent text mode. Used to maintain synchronization, and to recognize line interruptions. Does not enter main storage of receiver. OLE-WBT Signals to the transmitting station that the last block was received correctly, but the receiver cannot continue immediately because other operations have to be performed first. STX-ENQ Temporary text delay. Abort sequence used by the master station to announce an abnormal termina- tion of the transmission. Signetics 6015 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 Character Count Protocols Bit Oriented Protocols 2653 FUNCTIONS AND Digital Equipment Corporation's DDCMP APPLICATIONS and its associated versions used by Bell BOPs make use of only two or three spe- Labs are character count protocols. A cific control characters for operation of BCC Accumulation character count specifies the number of the data link. These characters are used to data characters in the information field of delimit the beginning (FLAG) and end The primary function of the PGC is the ac- a message: positional significance is used (FLAG, ABORT, GA) of a message frame. cumulation of the BCC for character to identify control information in the Upon receipt of the opening FLAG, POSI- oriented protocol (BCP and CCP) header of the block which is verified by a tional signficance is used to delineate the messages. As described previously, there separate cyclic redundancy check. There bIt sequence that follows into prescnbed are four modes of BCC accumulation and are three control charac;ters in DDCMP fields, as shown in figure 5. These fields each mode can select one of three (SOH, ENQ, DLE) - each identifies the start area address, control, information, and generating polynomials to compute the of a different type of message. Figure 4 frame check sequence. The address, con- BCC(s). The polynomials are X'6 + depicts the DDCMP text message format. trol, and frame check field are fixed length; X'5 +x 2 +1 (CRC-16), X'2 +x 3 +X 2 +X+1 the information field is variable and may be (CRC-12), and x 8 + I (LRC-8). The four ac- A "go bac;k N blocks" type of error control zero. Examples of BOPs are IBM's Syn- cumulation modes are BISYNC normal, is used in this protocol. Up to 255 blocks chronous Data Link Control (SDLC), BISYNC transparent, automatic accumu- may remain outstanding before an ac- ANSI's Advanced Data Communication late and single accumulate. knowledgement is required. This is Control Procedures (ADCCP), ISO's High- achieved by separate 8-bit send and Level Data Link Control (HDLC), Bur- In BISYNC normal mode, all characters receive block counts. When an acknowl- roughs' Data Link Control (BDLC), and loaded Into the PGC's character register edgement is sent the received block count various other protocols developed by com- are accumulated except those in the SYNI indicates the number of message blocks puter mainframe manufacturers. All of the Not Included class. During receive opera- correctly received. This is compared with above mentioned protocols are sImIlar and tions, a detected block terminating the send block count. The difference, if can be treated as subsets of ADCCP. character (BTC) will cause the BCC ac- any, is the number of blocks that must be BOPs also utilize a "go back N" type of cumulation to stop after the next one retransmitted. error control. (LRC-8) or two (CRC-12 or CRC-16) DDCMP MESSAGE FORMAT SYN SYN SOH Count Flags Response Sequence Address CRC-16 Information CRC-16 (14 bits) (2 bits) (8 bits) (8 bits) (8 bits) (16 bits) (any number (16 bits) of 8 bit characters) Figure 4 BIT ORIENTED PROTOCOL (BOP) MESSAGE FORMAT Header I Flag Address Control Information FCS Flag (8 bits) I I I (any number of bits) (16 bits, CRC-CCITT, Inverted (8 bits) I Zero irertlon/deletion, CRC accumulation remainder) Figure 5 6·16 Signetics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 characters have been accumulated. At In Single accumulate mode all characters Figure g depicts an arrangement where that time, If the BCC accumulation does are accumulated, but only after an ac- the OMA controller or slave CPU handles not equal zero there has been a block cumulate command Is given by the CPU. If data bus transfers, the PGC interrogates check error. The BCC error bit will be set not given, the BCC accumulation is stop- the data bus, and the host CPU responds and an interrupt generated If the corre- ped. Operation in this mode is otherwise to PGC interrupts. sponding mask bit was enabled. In identical to automatic accumulate. Single transmit mode, the BCC accumulation is accumulate mode can be used to selec- c. BUS PARITY CHECKER automatically stopped once the BTC tively accumulate characters under CPU The PGC can be used to check the panty character has been accumulated. The control or to accumulate characters that of transactions on a system's data bus. CPU must read the BCC upper and BCC were unintentionally excluded In one of The processor first writes control informa- lower (for CRC-12 or CRC-16 only) the other modes. tion into the PGC via the CEl pin. All other register(s) and transmit them to the R/T or bus operations are then checked for parity parallel peripheral. Since the accumula- with external address decoding used to tion has been stopped, the transfer of the Figures 6 and 7 illustrate the operation of generate an active low CEO. Bus parity first BCC to the R/T will not effect BCC the 2653 on various types of text and con- checking is useful in data transfers be- lower. This assures that the second BCC trol messages. tween CPU and peripherals or memory will be correct when it is reed by the CPU. and CPU. Some computers check panty on both halves of a 16-bit word during all Note that BCCs are not checked against system bus transfers. the character class array nor are they Some Other Applications compared to the OLE ROM. This prevents The PGC can be employed in a variety of false character detections when transmit- applications other than a dedicated BCC ting or receiving BCCs. generator for a single channel. For exam- MULTI-PROTOCOL SYNCHRONOUS CHIP SET Second search character (SSC) detection is enabled in BISYNC normal allowing a ple, it can be multiplexed among several data channels, used as a programmable character comparator or It can be used to The Signetics 2652 Multi-Protocol Com- munications Controller (2652), originally 6 two character communication control se- check parity on a system address or data targeted for bit oriented protocols and ~~~~~ quence such as OLE-STX to be detected. bus. A brief description of each of these OOCMP, can send and receive EBCDIC, applications is given below. ASCII, and SBT data. However, the 2652 In BISYNC transparent mode characters doesn't support many of the functions of excluded from the BCC accumulation are a. MULTIPLEXED POC byte controlled protocols. In particular, the the first OLE of a OLE-OLE pair, the OLE of One PGC may be time-shared among a 2652 has no way of knowing which a OLE-BTC pair, or OLE-SYN sequences few RlT's if the CPU saves and restores characters to include or exclude in the (the SYN is also excluded). the mode register and partial BCC result in BCC accumulation. ThiS makes the on the BCC registers. These registers are ac- board CRC-16 generator/checker useless In receive and transmit modes, the ter- cessed via CE1. There must be separate for BISYNC. Furthermore, there are no mination of BCC accumuiatlon works save area for each RIT (serial channel) provisions In the 2652 for transparent exactly as in BISYNC normai, except that and a channel pointer Indicating the last mode OLE handling, special character the BTC must be immediately preceded by RfT that transferred or received a data detection or two character sequence an odd number of OLEs to be properly character (see figure 8). detection. But the PGC encompases all of identified. these missing functionsl Thus, the 2652 - The loading of the BCC registers will clear 2653 combination can totally support Second search character detection is not SRO-SR3 and all previously detected spe- character controlled protocols as well as enabled in BISYNC transparent since cial characters, i.e., OLE, BTC/SC, BCC bit oriented and character count discip- OLE-SSC sequences are only valid in (BISYNC modes). The BCC accumulation lines. The PGC can be used for single BISYNC normal mode. will start again when the next character IS character compares in SOLC/HOLC or loaded into the character register In all ac- OOCMP applications to reduce software In Automatic accumulate mode all charac- cumulation modes except Single. That overhead. ters loaded into the character register are mode requires a start accumUlation com- accumulated; BTC and SSC detection Is mand. As shown in figure 10, only a single enabled and the BCC accumUlation is not Inverter is required to interface the 2652 automatically terminated. The CPU must b. CHARACTER COMPARATOR and 2653 such that 2652 data bus use single accumulate mode to stop the The PGC can be used as a programmable transfers are monitored. accumulation. When in receive mode, the data bus character comparator which BCC error bit Is sel/reset after accumulat- monitors data bus character transfers ing each character so that the CPU must (CPU to peripheral, CPU to CPU, CPU to A BISYNC!ASYNC CHIP SET examine this bit after the last character Is memory, memory to Rerlpheral via OMA). Although the 2653 complements any RIT accumulated. The user selectively loads the character in the support of character controlled pro- class array with BTC/SC and SSC charac- tocols it is optimized for use with the Sig- Examples of use of the automatic accumu- ters to be compared. Status bits will be set netics 2661 Enhanced Programmable late mode are a system where the RfT and an interrupt can be generated upon Communications Interface (EPCI). That (265112661) operates with OLE/SYN SC and OLE-SSC detection. A match on device is a USART with on chip baud rate stripping or in support of character count one to 128 different characters or OLE- generator that has special features for protocols such as OOCMP. SSC sequences can be programmed. BISYNC. There are two loadable SYN SIgnetics 6·17 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 EXAMPLES - BISYNC TEXT MESSAGE BCC ACCUMULATION SHADED AREAS ACCUMULATED CHARACTER CLASS ARRAY Rx "" RECEIVE MODE SYN/BISYNC NOT INCLUDED 5VN, SOH NO DLE/$YN STRIPPING BTc/se ETX, ETB, ITB, ENC sse STX CRe - 16 DR CRe - 12 SYN $YN SOH 1-. . . . . . - STXII+tT---ETXI iscclaccl I PAD BTC + acc ERROR (Rx) IF DETECT ACCUMULATION "* 0 ACCUMULATION STOPPED AFTER 2ND ace NO PARITY CHECK ON BCC5 LRC - 8 SYN SYN I ,I STX SVN SVN ETO) I BCe~ PAD ace OTe ace ERROR (Rx) IF 7 LS BITS CPU RESETS REGISTERS AFTER DETECT OF BCC u '* 0 VRC ERROR IF MS BIT IS INCORRECT PARITY SOFTWARE DETECT OF STX THIS ACCUMULATION STOPPED AFTER EFFECTIVELY 1 BCe EXCLUDES STX BLOCK 1 _ _ _ _ STXI--"--ITSJ OTe OPTIONAL sse Brc POSSIBLE DETECT DETECT OETECT ace ERROR SET BISYNC TRANSPARENT POSSIBLE BCC ERROR (IF SO RESET BCC REGISTERS) RESET acc REGISTERS OR SET BISYNC NORMAL sse BTC POSSIBLE DETECT DETECT acc ERROR SET BISYNC TRANSPARENT MODE I-I_o--------------BLOCK 1 .\_ BLOCK 2 -----..t sse BTC POSSIBLE OTe DETECT DETECT acc ERROR DETECT SET BISYNC TRANSPARENT AND POSSIBLE RESET BeC REGISTERS RESET sec ace ERROR REGISTERS (IF BCC ERROR) NOTES AND SET BISYNC 1 BGe error only for receive mode In transmit mode, GPU must respond to BTG detect by NORMAL reading the BGG reglster(s) and sending them to the R IT The accumulation IS stopped after the BTG IS accumulated 2 ENO (OLE-ENO) In a text message should be treated as an abort 3 Opemng SYNs may be stripped by the RfT 4 The Single accumulate mode and command can be used to accumulate a character that madvertently was excluded (For example, the OLE of a OLE-STX If the PGG was In transparent mode and there was not a hne turnaround prior to the OLE) The Single accumulation should be done uSing GE 1 after the BGC(s) have been accumulated Figure 6 6·18 Signetics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 EXAMPLES - BISYNC CONTROL MESSAGES BTC/SC EDT, NAK sse ACKO, ACK1, WACK, RVI SINGLE ACCUMUlATION MODE STOPS sec ACCUMULATION 8YH 8TN I I I EaT PAD 8VH 5TH a- - ENO CONTROL STATION POLL OR SELECTION OF A TRIBUTARY STATION BTC/SC 8TC/SC DETeCT DETECT ex REPRESENTS A UNIQUE POLLING OR SELECTION ADDRESS TRIBUTARY STATION PREPAR£D TO 8YN 8TN RECEIVE OR POSITIVE ACKNOWLEDGMENT OF EVEN NUMBERED TEXT BLOCK sse DETECT 5YN 8TH I I I NAK PAD TRIBUTARY STATION NOT READY TO RECEIVE OR NEGATIVE ACKNOWLEDGMENT OF TeXT BLOCK ~ STC/se DETECT TRIBUTARY STATION TEMPORARILY 5YH 5YN WACK NOT READY TO RECEIVE sse DETECT 6 REVERSE INTERRUPT FROM REceiVING SYN 8YN RVI STATION TO REQUEST TERMINATION OF THE CURRENT TRANSMISSION BECAUSE THE RECEIVER WANTS TO TRANSMIT sse DETECT NOTES 1 BCC accumulation should be Ignored for control messages thiS can be effected by 81ngle accumulate mode Without smgle accumulate commands 2 Characters programmed as S8Cs should be the binary eqUivalent of the second character of the OLE-SSe sequence Figure 7 registers and a loadable OLE Register in A Send OLE command in the 2661 's required when receiving and transmitting the EPCI. Figure 11 IS a schematic show- transmitter can be used to prevent a pos- BISYNC text messages in both normal and Ing the 2653 and 2661 Interfaced to an 8- sible underrun between the DLE and a transparent modes of operation It IS not bit CPU. subsequent control character. Such an implied that the actual software program to underrun would cause an Incorrect control handle these tasks necessarily follow the A transparent operating mode causes the sequence to be transmitted. For example, flow charts step by step. In an actual EPCI to automatically change the detected consider an underrun between a DLE- application, an interrupt driven structure synchronization sequence and underrun STX, the sequence used to enter would be more appropriate. Assumptions linefill from SYN-SYN to DLE-SYN. This is transparent mode. The transmitted se- are half-duplex operation (normal for the necessary to prevent an unrecoverable quence becomes DLE-SYN-SYN-STX. But BISYNC protocol) and use of the EBCDIC problem at the receiver. If a USART sent or a DLE-SYN IS illegal unless transparent code. received the normal mode SYN-SYN se- mode has been entered. Furthermore, the quence it would be interpreted as STX would set normal text mode not The receive flow, figure 12, starts With int- transparent data rather than actual syn- transparent mode. tlallzatlon of the PGC and EPCI for the nor- chronization Information. mal mode Modem handshaking IS then performed. Upon detection of carner, indi- Another transparent mode function is FLOW CHARTS FOR BISYNC cated by assertion of the 2661 's DCD sta- detecting and stripping received DLE's. OPERATION tus bit, the receiver IS enabled, the PGC IS Normally a software job, this task is com- Figures 12 through 15 Illustrate functional setup for receive, and miscellaneous flags pletely and properly handled by the 2661. flow charts for the operation of the 2653 - are reset. Data is then read from the 2661 The DLE Detect status bit is even au- 2661 pair in BISYNC. The intent of these receive holding register and acted upon tomatically reset at the proper time. flow charts is to illustrate the procedures according to the BISYNC protocol The Signetics 6-19 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 PGC SERVICES MULTIPLE RECEIVERSITRANSMITTERS I ADDRESS I DATA : R/W CEO READ/WRITE MEMORY ,D m CI'U ADDReSS, DATA, R/W, eEO ~TAD u;- I- eEl I PGC iiiT I ONE PGC IS TIMe-SHARED BY THREE RiTa THE CPU ReADS AND RESTORES THE PARTIAL ace REMAINDeR FOR EACH SERIAL CHANNEL Figure 8 PGC DATA BUS MONITORING WITH DMA TRANSFERS lIlT APPLICATIONS IrICWDE CHARACTER ARRAY COIIPAFUIONS, YRC AND/OR ICC CHECKS ON THE DATA BUS. NOTE ·CPU Inltlahzes DMA controller for each block transfer of data, Figure 9 6·20 Signetics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 2652/2653 INTERFACE TYPICAL PROTOCOLS: BISYNC, OOCMP, SOLC, HOLC INTERRUPTS Tl(BE, TxU, RxDA, AxSA U 087 - DBO II t---- 2852 TxD MPCC A2 I - RxD A1 AO I - TxC R/w DOEN f - Axe 4 CPU DB{}DBO ~ 2653 A1 PGC fi/w AO m f R I t +SV iiiT (OPEN DRA.., I 6 Figure 10 2651 OR 2661/2653 INTERFACE R ll~~S +5V TiRIri',IGlm'i',TiEJiIT~ - TKO 087 - DBO r--'" 2651/61 --- RxD --- PCI A/w, Al, AO r-- I > t-- ~ --- CPU ~ 2653 ~ PGC CEi f iNf (OPEN DRAIN) I R +SV Figure 11 Signe1ics 6·21 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 PGC status flags are utilized to determine must remove the extranecus 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. OLEs 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 automallcally add a OLE if one is loaded to accumulate characters loaded via CEI. 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. 8·22 MICROPROCESSOR DIVISION JANUARY 1962 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 BISYNC RECEIVE FLOW CHART SWITCH WRtTEPCI POCAND .R> DATA - 4C ""TO TRANSPARENT MODe,SET TRANSPARENT WRITEPGC MOOEFLAG MR DATA-Ol INCREMENT POINTER AND STORE CHARACTER IN BUFFER BISYNC NORMAL RECEIVE CRO 18 Figure 12 6·23 ------ - ----- MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 BISYNC RECEIVE FLOW CHART CONTINUED BISYNC RECEIVE FLOW CHART NOTES FFLAG = the first non~sync character has been received TFLAG = operating In transparent mode EFLAG = BCe or PAD error 81 FLAG = Received block terminating character (BTC) eo, TEST Awaiting BCe '" 82FlAG = Received first BCe character Awaiting RESET second BCe TFLAG,B,FlAG WRITEPCI 2 sse detect IS disabled by PGC while In transparent mode M" DATA~OC INITIALIZE FLAGS FOR 3 Pomter IS decremented to overwrite prevIOusly stored NEXT BLOCK. 'OLE' which was part of a 'DLE~SYN' Ime flll WRIT€PGC RESET BCC. C, SWITCH TO BISYNC NORMAL 4 Test for closing PAD of at least four ones at end of DATA ~ 02 MODE message WRITEPGC 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 First non·sync character of a new message, or first two If message starts In transparent mode, are excluded from the TEST RXRDY BCC accumulation (NOTE 4) R€ADPCI '"' LOGICAL 'OR CHARACTER WITH'FO' NEGATEOTR OISABLERX Figure 12 continued 6·24 Signetics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 BISYNC TRANSMIT FLOW CHART '" CHARACTER FAOM8UFFER INCREMENT '" 'SENDDlE' POINTER AND DECREMENT COUNTER = --0 NORMALLY 00" 0' '" WRITETQ 'GC ACCUMULATE RESET CHARACTER 'OLE '" (NOTE 3) REGISTER USINGCFi DATA-l0 iNTOTHEBCC RESET 'CC (NOTE 3) ,co (NOTEZI ENABLETX ASSERTRTS (NOTE 11 WRITEPCI SISYNCNORMAL "" DATA~4C SWITCHPGC AND PCI TO TRANSPARENT ACCUM WITHCEl WRITEPGC MODE,SET TRANSMIT CRC'6 "' TRANSPARENT MODE FLAG INITIALIZE BUFFER POINTER AND CHARACTER COUNTER RESET FFLAG,TFLAG Figure 13 Signetics 6·25 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 BISYNC TRANSMIT FLOW CHART CONTINUED RESET TRANSPARENT ~~~T~;:' :ci-~GS. ANOpetTO NORMAL MODE RESETBCC ACCUMULATION READPGC '" REGISTER TRANSMIT '" UPPER (NOTESI TEST TXRDY BISYNC TRANSMIT FLOW CHART NOTES 1 Transmitter Will not operate until Clear to Send leTS) Input IS asserted 2 A DLE al thiS pOint In the transmit sequence can only be followed by an STX, which Will place the system In transparent mode The 'Send OLE' capability of the pel IS used In order to prevent underrun between the DLE and '" REGISTER TRANSMIT STX characters, and possible miSinterpretation of the sequence by the receiving stabon WRITETOPCI '" 3 First non-sync character of a new message, or first two If message starts In transparent mode, are excluded from the BCC accumulation '"" 4 DFLAG IS used to mdlcate that a DLE must precede the next transmItted character 5 In transparent mode, the 2661 Will automatically send an extra DLE when a DLE IS loaded Into the THR 6 Underrun of PCI IS not permitted at pOints shown OtherWise, received data may be misinterpreted Figure 13 continued 6·26 Signetics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2653 POLYNOMIAL GENERATOR AND CHECKER AppNote400 2661 INITIALIZATION 2653 INITIALIZATION RESET MASTER RESET REGISTER PUT INTO START -UP MODE POINTER SYNC FORMAT, aBITS, NO PARITY, SET UP FOR DOUBLE SYNC, SYNfNI CLASS NON-TRANSPARENT MODE EXTERNAL CLOCKS SYN/NI CLASS SYN 6 EBCDIC'SYN' SET UP FOR BTc/se CLASS EBCDIC 'SYN' WRITE TO BTC/se CLASS CHARACTER REG ETX DATA = 03 DATA = IF ITB ETB DATA = 26 DATA = 20 ENO EBCDIC 'OLE' SET UP FOR sse CLASS sse CLASS STX Figure 14 Figure 15 Signetics 6·27 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 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 screenload (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- lines per row and rows per screen), viously consisted of 100 to 200 ICs can MAJOR ELEMENTS OF A CRT generation of a cursor signal at the now be realized with a few dozen MSI and TERMINAL appropriate scan position, and generation 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. CRT TERMINAL BLOCK DIAGRAM CPU Figure 1 6-28 Signetics MICROPROCESSOR DIVISION JANUARY 1982 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 rate) circuits necessary to convert the reader is referred to the individual data sheets for full operational details. four memory access modes may be programmed: independent mode, trans- 6 2672 PROGRAMMABLE VIDEO TIMING CONTROLLER I' ' ' ' ' '"' ' I ...."'" DISf'LAY '" ...,,' READ/ ,,., ~ - HANDSHAKE DISPlAV COQ>C """'''''' "'''''' REGISTERS L..-_ _- ' ADDRESS I ~==:>I L...-_--' ~= ¢:: I DECODER ·~i71 11 ".,m, Figure 2 Signe1ics 6·29 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 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 I n 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- reflecting the source of the interrupt. The programmed for a light or dark screen rupts based upon several internal condi- mask enabled interrupt sources can also background. tions. By using these interrupts (or by poll- be read directly. 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 AMODE input is low, the generator. It contains 1281 Ox9 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 j, 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 MaS 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 boundaries 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- defined by a pattern of logiC 1s and Os character clock output for system syn- 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- bit binary line address code is applied, a parallel loaded into the video shift register 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 put. The lines can be sequentially data is shifted out on three outputs at the 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- 10 parallel bits per word for each video is presented as a three level signal rate shift and control input combinations. character selected by the address inputs. representing low, medium and high inien- An eight bit keyboard status register As the line address inputs are sequentially sities, and the three intensities are also transmits status infoiiiiaticii 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- automaltc 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. 6·30 Signetics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 2671 PROGRAMMABLE KEYBOARD AND COMMUNICATIONS CONTROLLER 080-7 { .1 )I BUS BUFFER K DATA KEYBOARD ENCODER REPEAT I KCL.K f MODE & TIMING CONTAOL KDRES liV! Ii1l WII OPERATION CONTROL CMR "MR -- I . 1 KCO-3 ~ CSR KEYBOARD SCANNER & KAET "SR ENCODER/DECODER AO- 2 I COMMAND DECODER I - KRO-2 r------i I l!HiI'f I 4X128X8 I READ-ONLY MEMORY ~ I-- I XiNTJi IIITA INTERRUPT CONTROL • VECTOR GENERATOR l------i 6 iNi'li c:J KEYBOARD DATA REGISTER ! VCC~ GND~ I KEY HOLDING REGISTER TIMING I TONE GENERATOR I TONE T,C I BAUD RATE GENERATOR I - I I R,C BAUD RATe CONTROL RfGISTER f-- TRANSMITIER TRANSMIT HOLDING REGISTER TRANSMIT ~ SHIFT REGISTER XTAL11 BRCLK f XTAI.2 1 RECEIVER INTERRuPTS RECEIVE HOLDING REGISTER TIMING RECEIVE CONTROLS SHIFT REGISTER Figure 3 Signetics 6·31 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 2870 DISPLAY CHARACTER AND GRAPHICS GENERATOR _Vee - .... 8CD OIl CAD-CA7 DO-DO .... -..... ...- -----' Figure 4 2873 VIDEO AND ATTRIBUTES CONTROLLER CCO CCl I CHARA'''. . CLOCK COUNTER CC2 DCLK L r - - DOT • 10 V:= II .1 ~ DATA DO-DI , 'I -12111TS- VIDEO CURSOR A8LANK HOOT ARVID ,-- VIDEO AND ATTIIIIIITE HIERARCHY LOGIC -- .~ :::::I DRIVERS t=: TTLVID1 TTLVID2 BKGND . . .IIK ..... CBUNK AHILT -y AUL An.UTEAND ALTPEN/AGM CURSOR COH11IOL LOGIC..., t AFLO AMaDE AOD BLINK ......- ... BLAH• iI!IH Vee VB!! :I I UL GNO LPl/GMD LL . FigureS 6·32 Signetics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/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. (R'D'B), 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 non-contention type of operation that does not require address multiplexers. The CPU command to the PVTC. 5. The PVTC negates 'RDFLG', outputs the specified address, and generates of the memory block into the PVTC's cursor address register and the ending address of the block into the pointer 6 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. INDEPENDENT BUFFER MODE CONFIGURATION 2672 REFRESH pyre RAM DAOO DtSPLAY ADDRESS ADR IICI! CTRL3 19! WIllI CTRL1 \Wi CTAL' I - - lUll ~ TO DtSPLAY DATA BUS VIDEO LOGIC 1" y; 74lS3B4 I C~74LS3641 116 VIII FROM CPU FROM CPU I SYSTEM DATA BUS / I Figure 6 Signetics 6·33 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 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 interval 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 until its bus external (BEXT) output has memory bus control (MBC) signal will start while the display has been commanded freed the display address and data busses at the next falling edge of BLANK. The blanked, the operation takes place for CPU access. BACK, which can be used CPU must release the address and data immediately. as a 'hold' input to the CPU, is then busses before this time to prevent bus PVTe SHARED OR TRANSPARENT BUFFER MODES Figure 7 6-34 Signe1ics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 ROW BUFFER MODE CONFIGURATION 2X2111 jjjjEll TO CPU Figure 8 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 charactenstlcs. 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 correctly • Blink • Reverse Video service interrupts from different sources. Display Format· In a typical system, there are three inter- • 24 or 25 character rows • Highlight rupt sources' the keyboard, the com- • 80 characters per row • Underline • Non-display munications Interface, and the Video tim- Character Format. Ing controller. The latter must usually be • 7x9 dot matnx 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 tionallatch such as the 74LS37 4 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 Signetlcs. Signetics 6·35 ~ ~ c: en Z G) CPU DATA BUS \ CPU ADDRESS BUS J o 49152MHZ Ir---------------------- DETACHABLE KEYBOARD 7 Pl~TAL2 "--1"",-,,,-------,2'1 1J:!!.!.L,--,2!!jB Pl1 I"'':illIli.:--'29!!j P12 : : A2 32 At 33 A2 30 CE 36 31 AO XTAL1 37 XTA~C",1'-7---"I KG1 6 KC2 5 K~ KG1 Kb Kb I 22 21 C1 --" N " 1"'=<",,-----,30"1 P13 : KC3 -4 20 1-"'""",,-----,,""1' Pl4 AS + 5V W I-"''''''.!......----'~~2 P15 M 1-"''''''''-----'''1 Pt6 A7 74159 0;g T6 i: "-+""",,,,-----,34"1 PH lK ,. Z i -t -t "-+""'-"''-~2<.!jl P20 INTA 27 ~~ c m 1-!'!!..!.!!_-,2:- r- en m KR2 8 10 KR2 r- -t i Tx5 r-" KRET 15 11 K~ET 00 I R7 I I I I I REPEAT 11 12 REitirr REPEAT SHIFT 12 13 SHfFr SHIFT CONTROL 13 14 CO~RO CONmOL CAPS I L_ CAPS LOCK >- 'tJ 'tJ Z ~ ~ '"..... ~:0 C 0> '" c: !:!! z (j) VSYNC ---<> HSYNe DtSPlA Y ADDRESS BUS FROM~C-· VAC TO 8049 FROM ~ ~CCLK _I~--=- ('lIN ..... 8049 ~RD FROM .... WH HU 351tNTR '1- 31- OM -..... ~ ..... DA12100D 8049 r - - - - - o W R DAlt/BUNK 23 OAS 1 LAO W Ao 24 19 27 LA1 ~ A1 DA10/UL AtO DAfj 0 A2 '!!! 39 DA9/LPL 25 DA8/lNZ 26 DA7ILA3 27 22 A9 23 AS 1 A7 ~~~ VAC ;r: Z ........ ,g DAS/lA2 28 2 A6 1/08 2673 ic: m "1\ OA5/lA t 29 3 A5 117 ;r: ,g .g' CPU 16 3: s- 0 ADDRESS BUS OM/LAO 30 4 A4 ;; DA3/L1 31 5 A3 15 :z: ~~~ DA2 32 6 A2 14 "ii Z » CD ~ 0 (; OAt 33 7 At 0 o DAO 34 8 AD c: r- :a :i' 00' BCE 6 18 CS Z -I 0 =: ot 21 WE OE -I ! 02 03 !.-"- .!.! 20 FROM SWITCH +5V m :II ;r: ""U 04 12 z en 05 06 07 13 14 15 WDB 5 14 IWOe 9 t i l " til O! <1-1 .l! <:1 _IIllll:UDO. • • II UD71 ceo '" E4 rur, > r- ....m RDB RESET We CBLANK AS 11M OL- HZOR 1685MHZ IT ~,~7~~TT CPU DATA BUS AD S1ON~ J- 504 '-----+150 !l ~01MF » '0 I IZ '0 - 0 CD ~ en W ..... ....0 :0 00 '" IIII~IIII MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 Often, a multi-level interrupt structure will be required sc that a high priority Interrupt BASIC TERMINAL SOFTWARE FLOWCHART 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 the desired keyboard and serial Inter- face modes. 5. Read any mode switches (e.g., full or half duplex, baud rate, cursor type, etc.) and set system param- eters as required. The processor can now enable its inter- rupts and walt 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 Figure 10 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 I.' 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 Signetlcs 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, whiie 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 94088 &·38 c: s:0 en e3 Z ." (i) '"00 -t m CI) :z: m 1S '" .... ~z N 0- ~. -- 0 ........ ~ I 1° ~ PROGRAM MEMORY CURSOR AD-All ~ 2716(2) 7 ...... P07 A. WR TTLV2 TTLV1 .... 0 Z 0 r- 0 A5 Ali FROMfHSYNC 0 0 :z: pyre ) VSYNC 0 ;l1li g =ii CPU DATA BUS 50 en m 00-05 'lI I . 1_- K,!~~ ,. G) :II I: -t 87 KEY MATRIX PKCC I I I ~ L........J -(~ y I 175 MHZ 2671 WR_ ~ RxD 49152c::::J RxD '".~ SHIFT Y L.......J II I I:s!> MHZ CONTROl V Z o _ 5; Z CD §; ~ ::i! . m ~ .... '"~ 0 ~ IIII 0- MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 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-l 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 Modes of Operation processed automatically by the PKCC. 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 9x12 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 locklunlock 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 I there are 25 display rows, the total number Typamatic operation ETX/CR/XOFF) of active scan lines will be 12 x 25, or 300. EIA RS232 interface To this we must add some number of scan Communication line speed: 50 to lines for the vertical retrace, which IS Edit Functions 9,600 baud typically 5 to 10 percent of the active scan Cursor controls: up, down, left, right, lines. For a screen refresh rate of 60 Hz, home Screen Refresh Rate this yields Cursor address read and write - 60Hz 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 mon itor 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 ai, 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 interval. For massive display updates required to specify a field. back porch (HBP) values. An estimate of (clear screen, load form, etc.) the PVTC is the character period can be made initially The bipolar VAC circuit serializes the dot instructed to blank the display and service 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 ~ 1118,900 ~ tinuously. Additional memory contention 52.9 us cirCUitry is not necessary since the PVTC video outputs provide three levels of video: blaCK, white, and gray. Horizontal active = total - blank = provides all of the timing and addreSSing 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 6·40 5ignetics MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 CRT TERMINAL CHIP SET AppNote401 HORIZONTAL AND VERTICAL TIMING 1------CH~:;5~W---------I ~----~ ~----~ HOlAN" --1 L- '-I I-- FRONT PORCH (IR1) BACK PORCH (lR2) --I I- HSYNC - I I_______________--'Il...____ r-- HSYNC (1A2) CHAR ROWS/SCREEN ( I A 4 ) - - - I ~LlNESPERROW(IRO) I VBlANK --.Jr--------il rl ------~L --I r-- FRONT PORCH (IR3) --l BACK PORCH (IR3) r- VSYNC---I"ll..-_ _ _ _ _ _ _ _ _ _ _ _ ---Inl...-___ ----1 r- VSYNC (FIXED AT 3) eOUALIZING . LINES/ROW CONSTANT lAO I I I I I IA1 I I HSYNC HBACK VFRONT VBACK WIDTH PORCH PORCH PORCH 0 o o I I IIIIII LI-.LI.....L--,-IL-.LI-,-..L-l IA' CHAR ROWS/SCREEN IA3 CHARACTERS PER ROW 6 o o IR4 IIIIII IA5 III Figure 12 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 - 01 20 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 in i- system reset the 8035 Interrupts are dis- Signetics 6-41 MICROPROCESSOR DIVISION JANUARY 1982 USING THE 2670/71/72/73 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 flashes 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 15. HORIZONTAL RETRACE INTERVAL (step 13 + step 14) 17 to execute the routine. This would limit the 16. TOTAL CHARACTER TIME UNITS IN ONE HORIZONTAL maximum received character rate to ap- proximately one per 80 scan lines or about 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 2J - [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) 0512 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) . 1757052 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 1914 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 the 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 ware commands 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 frame and disables the PVTC and PKCC internal registers are ini- memory which IS eight bytes deep for both line zero interrupt. tilized for the selected operation Finally, receiviiig or transmitting characters (the If scrolling is reqUIred the screen start the initial 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 6·42 Signetics MICROPROCESSOR DIVISION JANUARY 1982 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 Signetics 6·43 MICROPROCESSOR DIVISION JANUARY 1982 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 (EPCil causes TXEMT/OSCHG 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 cheracter, 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) MODETONORMAL 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. Walt for TXEMT (either TXEMTI operation Is Initiated by enabling both the necessary in certain applications, the OSCHG 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 character. Two potential problems may The TXEMT timing shown above is only been sent out. applicable when switching modes. Note arise: the calculated parity Instead of the 5. Change mode from echoplex to normal. that in normal operation, TXEMT is driven received parity may be transmitted, and 6. Load new character Into the transmit active at the beginning of the last data bit data rate may be shortened or lengthened. holding register, THR. Further com- or parity bit upon underrun condition. 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 TXEMTI 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 TXEMTIDSCHG OPERATION FOR ECHOPLEX MODE SWITCHING exceptions: 1. No handshaking with RXRDY is • required. ~L~~~':"-1L?~2~2~2~2~2~2~2~/2~2~2~2~/2~2~2~4ac2P~"~~~tl~~~w~t----------------- 2. During step 3 of the previous pro- I cedure, CR2 goes to zero, and I CR7:CR6 should be simultaneously I I changed from 11 to 01 (remote to echo- I I ;";;:EM:::';;'DS:::C:;::'O:---------------------------ii - - -1 plex). This Is necessary because the ORlvENACnvEH:::' ':.:' c.:ON=:':.::s,:.::oP'--__ !-, BIT IS SELECTED- _ -----+.,---------- logic Implemented to drive TXEMT active relies on echoplex information. I I However, this requirement does not I I need additional service from the con- I I troller because remote-to-echoplex ~~A~:~~c~~~E._,,_mo_s_'o_p_~I~_ _,: switching Is done at the same time as Figure 1 disabling the receiver. NORMAL OPERATION TO SWITCHING FROM NORMAL TO ECHOPLEX OR REMOTE LOOPBACK ECHOPLEX OR REMOTE I To avoid garbling the last transmitted vz?//'lZ2V'L/~ I .'0"" ·--_. Ie I\'U~-- "'"'0' data, a mode switch from normal operation to echoplex or remote operation should be performed as follows: 1. Walt for TXEMT (either TXEMTI DSCHG Interrupt or status read) to be asserted. 2. Disable the transmitter by, setting CRO ~~:i~,,",, ~! I to zero. 3. Walt for TXEMT to be negated. CHANGE TO ECHOPLEX OR REMOTE Figure 2 ---.I 4. Change the mode from normal opera- tion to echoplex or remote. The timing Is illustrated In figure 2. 6·44 SigneHcs Section 7 Appendices Signetics MICROPROCESSOR DIVISION JANUARY 1982 PACKAGE OUTLINES INTRODUCTION Plastic Only 11. Lid Material a. Nickel or tin plated nickel, weld The following Information applies to all 5. Lead material: Alloy 42 (Nickel/Iron seal. packages unless otherwise specified on Alloy) Olin 194 (Copper Alloy) or b. Ceramic, glass seal. Individual package outline drawings. equivalents, solder dipped. c. ASTM alloy F·15 or equivalent, gold 6. Body material: Plastic (Epoxy) plated, alloy seal. General 7. Round hole In top corner denotes lead d. BeO ceramic with glass seal. 1. Dimensions shown are metric units No.1. 12. Signetics symbol, angle cut, or lead (millimeters), except those In par· 8. Body dimensions do not Include tab denotes Lead No.1. entheses which are English units molding flash. 13. Recommended minimum offset ba- (Inches). fore lead bend. 2. Lead spacing shall be measured with· Hermetic Only 14. Maximum glass climb 0.010 inches. in this zone. 9. Lead material 15. Maximum glass climb or lid skew is a. Shoulder and lead tip dimensions a. ASTM alloy F·15 (KOVAR) or equiv· 0.010 inches. are to center·line of leads. alent-gold plated, tin plated, or 16. Typical four piaces. 3. Tolerances non·cumulatlve. solder dipped. 17. Dimension also applies to seating 4. Thermal resistance values are deter· b. ASTM alloy F·30 (Alloy 42) or equiv· plane. mined by utilizing the linear temper· alent-tin plated, gold plated, or ature dependence of the forward volt· solder dipped. age drop across the substrate diode in c. ASTM alloy F·15 (KOVAR) or equlv· a digital device to monitor the Junc-, alent-gold plated. tlon temperature rise during known 10. Body Material power application across Vee and a. Eyelet, ASTM alloy F·15 or equlv· ground. The values are based upon alent-gold or tin plated, glass 120 mils square die for plastic pack· body. ages and a go mils square die In the b. Ceramic with glass seal at leads. smallest available cavity for hermetic c. BeO ceramic with glass seal at packages. All units were solder leads. mounted to P.C. boards, with standard d. Ceramic with ASTM alloy F·30 or stand·off, for measurement. equivalent. 7·2 SIgletics MICROPROCESSOR DIVISION JANUARY 1982 PACKAGE OUTLINES N PACKAGE - PLASTIC (16·PIN) I PACKAGE - HERMETIC (16·PIN) 7 I ~[~~]~fj ,• =-=-=--I 2070 calS) 19.93 (785) 1 _I ~ OZOl 165(.065) o S1 ( 12.95(.510) 12.45 (.490) 0.63 f.025J 8.13(.3201 7.37(2901 ,3, 005"I.N~.~~~~~~~ryOJ;!~~l~~~~~~~~~i::i 031 (012) _-+__ 0.20(008) ~ , .8.741.3441 7.11 (.280) .1 2.79 (110) 2.29 (.090) NON· CUMULATIVE Signetics 7·3 MI~ROPROCESSOR DIVISION JANUARY 1982 PACKAGE OUTLINES N PACKAGE - PLASTIC SLIM LINE (24-PIN) LEAD NO 1 r-- 0381.015) D.25To1Oi 053 (021) 2.791110) 0381015) 2291.090) NON· CUMULATIVE I PACKAGE - HERMETIC SLIM LINE (24·PIN) CONTACT YOUR SIGNETICS SALES OFFICE 7·4 Signefics MICROPROCESSOR DIVISION JANUARY 1982 PACKAGE OUTLINES N PACKAGE - PLASTIC (28·PIN) LEAONQ 1 o 01 1410(555) hn~TTrM~TrrnTTrn~TTrn~::L·~O' IV V V V V "'36.86/1.465/ V V V V I~~~ :.:: r--~----'~" I--~~~ ~ .94 .,00,1,...'4.99(.0.0'""'\1.1:.(060' mT.'14si '-~0.3!::.~(.:::O'~0'~ 0.25 (010) 1.32 (.052) :!:!! I-- 17 65 ( 6951--..1 1.l2T044i (~1~1 I 15.2iT.6OOi I ~ 2.79(.110) ~ (.12ijj 0.38 (0151 fi9T.'09ijj' 165 (.0651 NON· CUMULATIVE I PACKAGE - HERMETIC (2S·PIN) 7 ! ,.,.................................---. LEAD NO 1 D NON· CUMULATIVE Signetics 7·5 MICROPROCESSOR DIVISION JANUARY 1982 PACKAGE OUTLINES N PACKAGE - PLASTIC (40·PIN) LEAD NO.1 17.651.6951 0.51.0201 15.241.6001 NON· 0.4 (.016) CUMULATIVE I PACKAGE - HERMETIC (40·PIN) [~~~~~~[::::]~~~~~~1~ ",.,." ~ ~::~.~~~:~ ~~,~~ -L ~15.741.620I-l ''''=, •• ,=, t:~t~1 1- 1295(.510)--' 0.76(,030) 3.05t201 12.95(.510 T J ~ ~ ;~ ~ g~~: I I- ~ I~!====If=;::J ~ l :.~: ~ g:~: ~ i - 16.36 1.6441 --J I - 14731.5801--' 4.451.1751 0.20 (.OOSI ~.... NON 3'i'iT.i'2si 038 (015) CUMULATIVE 7·6 Signetics MICROPROCESSOR DIVISION JANUARY 1982 SALES OFFICES Melville MARYLAND WISCONSIN SIGNETICS Phone (516) 752-0130 Baltimore Waukesha HEADQUARTERS wa~~~nn~erfgftll~974074 MlCro-Comp, Inc Phone (301) 247-0400 Mlcro-Tex, Inc Phone (414) 542-5352 811 East Arques Avenue NORTH CAROLINA MASSACHUSETTS PO Box 409 Raleigh Reading DISTRIBUTORS Sunnyvale, Cahlorma 94086 Phone (919) 851-2013 Kanan Associates ALABAMA Phone (408) 739-7700 Phone' (617) 944-8484 OHIO Huntsville ARIZONA Worthington MICHIGAN Hall-Mark Electromcs Phoenix Phone (614) 888-7143 Bloomlield Hills Phone (205) 837-8700 Phone (602) 2654444 Enco Marketing HamlltonlAvnet Electromcs TENNESSEE Phone (313) 642-0203 CALIFORNIA Phone (205) 837-7210 Greeneville Canoga Park Phone (615) 639-0251 MINNESOTA Pioneer Electromcs Phone, (213) 340-1431 Phone (205) 837-9300 TEXAS Edina Mel Foster Techmcal Sales cu~~r~~~o (408) 725-8100 Austin Phone (512) 458-2591 Phone (612) 941-9790 ARIZONA Phoenix In~ewood Dallas MISSOURI Ham"ton/Avnet ElectroniCS hone (213) 670-1101 Phone (214) 661-1296 Phone (602) 894-9600 SI. LoUIS Irvine B C Electromc Sales Phone (7l~ 833-8980 (213) 588-3 81 UTAH Bountilul Phone (314) 731-1255 ~~b~~'M~~I~~~~~~'¥' San Diego Phone (801) 298-2624 NEVADA CALIFORNIA Phone (714) 560-0242 CANADA ~~~~e TI~~~)o~o5~-9986 Costa Mesa Avnet Electromcs COLORADO SIGNETICS CANADA, LTD, Etoblcoke, OntarIo NEWMEXtCO Phone (714) 754-611l Aurora Phone (416) 626-6675 Hamilton Electro Sales Phone (303) 7515011 StGNETICS CANADA, LTD.!lTEE, AlbpUo~:~~~~erprlses Phone (714) 6414100 CONNECTtCUT POlnte-Cla"e, &uebeC Phone (505) 298-1918 Culver City Danbury Phone (514) 6 7-3385 HamlltonlAvnet Electromcs Phone (203) 744-6066 NEW YORK Phone (213) 558-2121 REPRESENTATIVES Ithaca HamlltonlAvnet Electromcs DELAWARE Bob Dean, Inc Call Micro-Camp, Baltimore Phone (301) 247-0400 ALABAMA Huntsville Phone (607) 272-2187 Ph~ri~ta[!13) 558-2901 FLORID Lighthouse pOint~ ElectronIC Sales, Inc Phone (205) 533-1735 OHIO Cleveland Norm Case ASSOCiates EI Segundo Wyle DlSt"bulion Group Phone (213)322-8100 7 hone (~05)7828225 813)7'''- CALIFORNIA Los Gatos Phone (216) 333-4120 Irvine Schweber Electromcs GEORGIA-----.,.. Atlanta :JO~(, ~'~~r;e T(1~~)\On-9986 Da~~r~ Case ASSOCiates Phone (714)556-3880 Phone (800)362-6631 Wyle DlSt"bulion Group Phone (404) 953-{1067 ~ San Diego ILLINOIS <\t. ) ~~~~eE(m)efin/8021 OKLAHOMA Tulsa Phone (714)979-2125 San Diego sC~~~~~U[Jl2) 843-7805 CONNECTICUT Cunmngham Co Phone (918)492-0390 Anthem Electromcs Phone (714)279-5200 INDIANA Danbury HamlltonlAvnet Electromcs Kanan ASSOCiates OREGON Phone (714) 571-7510 Kokomo Phone (203)265-2404 Hillsboro Phone (317) 453-6462 Western Techmcal Sales Wyle DlSt"butlon Group FLORIDA Phone (503) 640-4621 Phone (714)565-9171 KANSAS San Jose Overland Park TEXAS Anthem Electromcs Inc Phone (913) e41-8181 Phone (408) 946-8000 Ausltn MARYLAND Cunningham Co Santa Clara Glen Burnie Phone (512)459-8947 Schweber Electromcs Phone (301)787-0220 Dallas Phone (408)496-0200 Cunmngham Co MASSACHUSETTS Woburn Elk Grove Village Phone (214)233-4303 ~Kben~'il~~I~~~%~W' Mlcro-Tex, Inc Houston Sunnyvale Phone (617)938-1000 Phone (312)640-9633 Cunningham Co Phone (713)461-4197 A"ow Electromcs MICHIGAN Phone (408)745-6600 INDIANA Farmington Hills VIRGINIA HamlllonlAvnet Electromcs Phone (313)476-1610 FO[:~f~~e s, Inc Phone (408)743-3366 MINNESOTA Phone &19)482-1596 LY~~~~~mp, Inc Phone (804)237-6221 CANADA Edina Indianapolis Phone (612)835-7455 Insul-Re~s, Inc Phone (317)842-5203 WASHINGTON Calr,~ill~I~/~J~et Electromcs NEW JERSEY Bellevue Phone (403)230-3586 IOWA Western TechnICal Sales Cherry Hill Phone (206)641-3900 Downsvlew, Ontario Phone (609) 665-5071 Cedar Rapids Cesco Electromcs Comstrand Inc Spokane Phone (416)661-0220 Piscataway Phone (319)377-1575 Western Techmcal Sales Phone (201)981-0126 Phone' (509)9227600 Mississauga, Ontario KANSAS HamlltonlAvnet ElectroniCs NEW YORK WASHINGTON, D,C, Phone (416)677-7432 Shawnee Mission Liverpool Phone (315)451-5470 B C Electromc Sales Phone (913) 888-6680 ~~lbn~'I%tof4M:ri~more Zentromcs Phone (416)451-9600 Signetics 7·7 MICROPROCESSOR DIVISION JANUARY 1982 SALES OFFICES NEW HAMPSHIRE D"ri~o~ilton/Avnet Electromcs Montreal, Quebec Elk Grove Cesco Electronics Schweber Electronics Manchester Phone (514) 735-5511 Phone (311) 364-3750 Arrow Electronics Phone- (513) 433-0610 Schaumburg Phone' (603) 668-6968 Pioneer Standard Elecrromcs Zentromcs Phone (514) 735-5361 Arrow Electromcs NEW JERSEY Phone' (513) 136-9900 Phone (311) 893-9410 Cherry Hill Solon Ottawa, Ontario Bensenville HamlltonlAvnet Eleerromes Arrow Electromcs Ceseo Electronics HamlltonlAvnet Electromcs Phone (609) 414-0100 Phone: (116) 148-3990 Phone (613) 719-5118 Phone (311) 8607700 Fairfield HamlltonlAvnet Elecrromes INDIANA HamlltonlAvnet Electronics OKLAHOMA Phone (613) 116-1700 Indianapolis Phone (101) 575-3390 Tulsa Zentromcs Pioneer Electronics Schweber E~clromes ~uahty Components Phone (613) 138-6411 Phone (317) 849-7300 Phone (101) 117-7880 hone: (918) 664-8811 Arrow Eleerromcs Moorestown OREGON Quebec City Phone (317) 143-9353 Arrow Eleetromcs Ceseo Eleetromcs HamlltonlAvnet Electronics Phone' (609) 135-1900 Lake Oswego Phone (418) 514-4641 Phone (317) 844-9333 Saddlebrook HamiltonlAvnet Electromes Arrow Eleetromcs Phone (503) 635-8831 Ville 51. Laurent, Quebec KANSAS HamlltonlAvnet Electromes Overland Park Phone (101) 797-5800 PENNSLYVANfA Phone (514) 331-6443 HamlltonlAvnet Electronics NEW MEXICO Horsham Phone (913) 888-8900 Albuquerque Sehweber Eleetromes COLORADO HamlltonlAvnet Electronics MARYLAND Phone (115) 441-0600 Denver Baltimore Phone (505) 765-1500 Arrow Electromes Arrow Electronics NEW YORK Pittsburgh Phone (303) 758-1100 Phone (301) 147-5100 Arrow Electromes BuHalo Phone, (412) 856-7000 Wyle DlStnbution Group Columbia Summit DlStnbutors ~ho~n':.r;~lmb7~~~300 Phone (303) 457-9953 HamlitonlAvnet Eleetromcs Phone' (716) 887-2800 Phone (301) 995-3500 East Syracuse Englewood GaitherSbUW HamlltonlAvnet Eleetromcs Arrow Electromes TEXAS Pioneer ashlnYion Electronics Phone (315) 652-1000 Phone (303) 740-1000 Phone (301) 94 -0710 Austin Sehweber Eleetromes HamlltonlAvnet Electromcs HamlltonlAvnet Electromcs CONNECTICUT Phone' (315) 437-2642 Phone' (301) 840-5900 Phone (512) 837-8911 Danbury Farmingdale, L.I. MASSACHUSETIS Arrow Electronics ~uahty Components HamlltonlAvnet Eleetromes Bedford hone' (512) 835-0220 Phone (203) 797-2800 Phone' (516) 694-6800 Sehweber Eleetromes Dallas Schweber Eleetromes Phone (617) 275-5100 Liverpool Arrow Eleetromes Hall-Mark Electromcs Phone (203) 792-3500 Burlington Phone' (214) 341-1147 Phone (315) 651-1000 Wallingtord ~'~~n': ~3[Y) 272-9400 Melville HamlltonlAvnet Electromcs Arrow ElectroniCS Phone (203) 265-7741 FLORIDA Woburn Arrow Eleetromes Phone (617) 9338130 HamlltonlAvnet Eleetromes HamlltonlAvnet Electronics Phone (516) 454-6012 Rochester Arrow Electromes . Phone' (214) 659-4111 ~uaity Components , :, ilione, (214) 387-4949 '- 'Sehweber,!:leetromcs FI. Lauderdale Phone (617) 173-7500 Phone (716) 175-0300 , J'fi'one"(2r4) 661-5010 Arrow ElectroniCS HamlitonlAvnet Electromcs Phone (305) 176-7790 MICHIGAN Houst.. Ann Arbor Phone (716) 475-9130 HamlltonlAvnet Electromcs ~a~'lton/Avnet Eleetromes Arrow Eleerromes Sehweber Eleetromcs Ph ne: (713) 780-1771 Phone (305) 971-2900 Phone (716) 424-2222 Phone (313) 971-8220 Hollywood Grand RapIds ~uahty Components Westbury, LI. hone. (713) 771-7100 Schweber Electromes HamlltonlAvnet Eleetromes Sehweber Electromcs Phone (305) 927-0511 Phone (616) 243-8805 Phone' (516) 334-7474 Schweber Electromes Livonia Phone. (713) 784-3600 Palm Bay NORTH CAROLINA HamlltonlAvnet Eleetromes Greensboro UTAH Arrow Electromes Phone' (313) 522-4700 Pioneer Electromcs Phone (305) 725-1480 Pioneer Electromes Phone (919) 273-4441 Salt Lake Ci% Phone (313) 525-1800 Hamlltonl vnet Electromes 51. Petersburg Sehweber Electromes Raleigh Phone (801) 972-4300 HamlltonlAvnet Electromes Phone (813) 576-3930 Phone (313) 525-8100 ~~~~~o(~~~r~~§lio~~mes WASHINGTON MINNESOTA Winston-Saillm Bellevue GEORGIA Eden Prairie Sehweber Eleetromes Arrow Elee~omcs Arrow Eleetromcs Atlanta Phone (91 ) 725-8711 Phone (206) 643-4800 Sehweber Eleetromcs Phone (612) 941-5280 Minneapohs OHIO HamlltonlAvnet Eleetromes Phone (404) 449-9170 Beeetrwood Phone (206) 453-5844 Arrow Electromes Norcross Phone (612) 830-1800 Sehweber Eleetromes Wyle DIStribution Group Arrow Eleetromcs HamlltonlAvnet Eleetromes Phone (216) 464-1970 Phone' (206) 453-8300 Phone (404) 449-8252 Phone (612) 932-0600 Cleveland HamlltonlAvnet Eleetromes WISCONSIN HamlltonlAvne! Eleeiromes MISSOURI Phone' (216) 831-3500 Phone (404) 447-7500 Earth City Oak Creek Hamllton/Avnet Electromes Pioneer Eleetromes Arrow Electromcs ILLINOIS Phone (314) 344-1200 Phone (216) 587-3600 Phone (414) 764·6600 Chicago 51. Louis Centerville New Berlin Bellindust"es Arrow Electromes Arrow Electronics Hamiiton/Avne! Eleetromes Phone (312) 982-9210 Phone (314) 567-6888 Phone. (513) 435-5563 Phone, (414) 784-4510 7·8 Signetics Iii nOliC bf U.S. Philips Corporation Signetics Corporation en East Arques Avenue Po. Box 40.9 Sunnyvo~ California 94086 Telephone 408/ 739-770.0. Copyrig ht 1981 Signe ti cs Co rporat ion 800000 Pr inted in U.S.A 15M0182