KW11-L line time clock manual

Similar documents
KW11-L line time clock manual

DEC-II-HDBAA-B-D DB11-A. bus repeater manual DIGITAL EQUIPMENT CORPORATION MAYNARD,MASSACHUSETTS

BUSES IN COMPUTER ARCHITECTURE

KW11-P program.m~ble real-time clock Illtlior user's manual LPA b (~ (Etch Rev F and up)

Asynchronous (Ripple) Counters

Counters

Registers and Counters

Counter dan Register

Name Of The Experiment: Sequential circuit design Latch, Flip-flop and Registers

Digital Fundamentals: A Systems Approach

3 Flip-Flops. The latch is a logic block that has 2 stable states (0) or (1). The RS latch can be forced to hold a 1 when the Set line is asserted.

VARIABLE FREQUENCY CLOCKING HARDWARE

Figure 30.1a Timing diagram of the divide by 60 minutes/seconds counter

ASYNCHRONOUS COUNTER CIRCUITS

Registers and Counters

GT40/GT42 user's guide. digital equipment corporation maynard. massachusetts

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Last time, we saw how latches can be used as memory in a circuit

Logic Design. Flip Flops, Registers and Counters

Design and Implementation of Timer, GPIO, and 7-segment Peripherals

Laboratory 4. Figure 1: Serdes Transceiver

PROCESSOR BASED TIMING SIGNAL GENERATOR FOR RADAR AND SENSOR APPLICATIONS

Point System (for instructor and TA use only)

COMP2611: Computer Organization. Introduction to Digital Logic

Experiment # 4 Counters and Logic Analyzer

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

The University of Texas at Dallas Department of Computer Science CS 4141: Digital Systems Lab

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

LATCHES & FLIP-FLOP. Chapter 7

Logic Devices for Interfacing, The 8085 MPU Lecture 4

EECS150 - Digital Design Lecture 3 Synchronous Digital Systems Review. Announcements

S6B CH SEGMENT DRIVER FOR DOT MATRIX LCD

IT T35 Digital system desigm y - ii /s - iii

64CH SEGMENT DRIVER FOR DOT MATRIX LCD

Register Transfer Level in Verilog: Part II

Digital Circuits 4: Sequential Circuits

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

Experiment 8 Introduction to Latches and Flip-Flops and registers

CS61C : Machine Structures

Laboratory Exercise 4

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

RS flip-flop using NOR gate

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

Registers. Unit 12 Registers and Counters. Registers (D Flip-Flop based) Register Transfers (example not out of text) Accumulator Registers

Rensselaer Polytechnic Institute Computer Hardware Design ECSE Report. Lab Three Xilinx Richards Controller and Logic Analyzer Laboratory

Chapter 9 Counters. Clock Edge Output Q 2 Q 1 Q

Slide 1. Flip-Flops. Cross-NOR SR flip-flop S R Q Q. hold reset set not used. Cross-NAND SR flip-flop S R Q Q. not used reset set hold 1 Q.

Logic. Andrew Mark Allen March 4, 2012

Experiment # 9. Clock generator circuits & Counters. Digital Design LAB

CS3350B Computer Architecture Winter 2015

Introduction. Serial In - Serial Out Shift Registers (SISO)

Digital Delay / Pulse Generator DG535 Digital delay and pulse generator (4-channel)

Physics 217A LAB 4 Spring 2016 Shift Registers Tri-State Bus. Part I

6. Sequential Logic Flip-Flops

Decade Counters Mod-5 counter: Decade Counter:

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

T 2 : WR = 0, AD 7 -AD 0 (μp Internal Reg.) T 3 : WR = 1,, M(AB) AD 7 -AD 0 or BDB

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

M68HC11 Timer. Definition

Chapter 2. Digital Circuits

EET2411 DIGITAL ELECTRONICS

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Chapter 3 Unit Combinational

Computer Systems Architecture

A MISSILE INSTRUMENTATION ENCODER

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

CHAPTER 4: Logic Circuits

Synchronous Sequential Logic

D Latch (Transparent Latch)

Digital Phase Adjustment Scheme 0 6/3/98, Chaney. A Digital Phase Adjustment Circuit for ATM and ATM- like Data Formats. by Thomas J.

UC Berkeley CS61C : Machine Structures

CHAPTER 4: Logic Circuits

FLIP-FLOPS AND RELATED DEVICES

UNIVERSITI TEKNOLOGI MALAYSIA

IMS B007 A transputer based graphics board

MC9211 Computer Organization

Design and Simulation of a Digital CMOS Synchronous 4-bit Up-Counter with Set and Reset

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

Flip-Flops. Because of this the state of the latch may keep changing in circuits with feedback as long as the clock pulse remains active.

Logic Analyzer Triggering Techniques to Capture Elusive Problems

Chapter 5 Flip-Flops and Related Devices

ELE2120 Digital Circuits and Systems. Tutorial Note 8

RS flip-flop using NOR gate

Flip-Flops and Related Devices. Wen-Hung Liao, Ph.D. 4/11/2001

1. Convert the decimal number to binary, octal, and hexadecimal.

Contents Circuits... 1

Design of a Binary Number Lock (using schematic entry method) 1. Synopsis: 2. Description of the Circuit:

Digital Circuits I and II Nov. 17, 1999

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Digital Circuits ECS 371

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

Chapter 8 Sequential Circuits

Principles of Computer Architecture. Appendix A: Digital Logic

Open book/open notes. No electronic devices permitted. Do not write on the back side of any of the pages. Page 1) 14 points Page 2) 16 points

Novel Digital Pileup Inspection Circuit for a Gamma Ray Spectroscopy System

Page 1) 7 points Page 2) 16 points Page 3) 22 points Page 4) 21 points Page 5) 22 points Page 6) 12 points. TOTAL out of 100

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

ELCT201: DIGITAL LOGIC DESIGN

Transcription:

DEC-ll HKWB-D KW11-L line time clock manual DIGITAL EQUIPMENT CORPORATION MAYNARD, MASSACHUSETTS

1st Edition February 1971 2nd Printing (Rev) December 1971 3rd Printing July 1972 4th Printing October 1972 5th Printing April 1973 Copyright 1971, 1972, 1973 by Digital Equipment Corporation The material in this manual is for informational purposes and is subject to change without notice. The following are trademarks of Digital Equipment Corporation, Maynard, Massachusetts: DEC FLIP CHIP DIGITAL UNIBUS PDP FOCAL COMPUTER LAB

CONTENTS ILLUSTRATIONS Chapter Page Figure No. Title Art No. Page CHAPTER 1 INTRODUCTION 1-1 2-1 KW 11-L Block Diagram 11-0197 2-1 3-1 KW11-L Address Word 11-0199 3-1 CHAPTER 2 GENERAL DESCRIPTION 2-1 3-2 Interrupt Request Section, Simplified Logic Diagram 11-0196 3-1 3-3 Status Register, Simplified Logic Diagram 11-0198 3-2 CHAPTER 3 DETAILED DESCRIPTION 3.1 Address Selector 3-1 3.2 Threshold Detector 3-1 3.3 Interrupt Control 3-1 3.4 Status Register 3-2 TABLES CHAPTER 4 PROGRAMMING INFORMATION 4.1 Interrupt Mode 4-1 4.2 Noninterrupt Mode 4-1 Table No. Title Page 3-1 Interrupt Control Flip-Flops :i-! CHAPTER 5 KWII-L ENGINEERING DRAWINGS 5-l iii

CHAPTER 1 INTRODUCTION The KW 11-L Line Time Clock is an option that provides the PDP-11 System with a method of accurately dividing time into intervals. The KWll-L consists of a single-height M787 Line Time Clock Module that generates a repetitive interrupt request to the processor. The rate of interrupt is the same as the line frequency, either 50 or 60Hz. This manual describes the manner in which the KWll-L functions and presents general and detailed descriptions of the KW 11-L. It is assumed that the reader is familiar with basic digital theory. Line time clock signals pass through the Unibus@>; it is beyond the scope of this manual to describe the operation of the Unibus. A detailed description of the Unibus is available in the PDP-11 Unibus Interface Manual, DEC-11-HIAB-D. Installation of the KWll-L is accomplished by plugging the M787 Module into slot B 12 of the KA 11 or KCll and removing the j urn per wire from B 12V2 to B 12 R2. @ Unibus is a trademark of Digital Equipment Corporation. 1-1

CHAPTER 2 GENERAL DESCRIPTION The KW Il-L accurately divides time into intervals for more efficient use of PDP-11 computer time. The intervals are determined by the line frequency, either SO or 60 Hz. The accuracy of the clock period is that of the frequency source. The KW 11-L includes an address selector. threshold detector, interrupt control, and a two-bit status register (see Figure 2-1 ). The address selector is permanently wired to respond to a single incoming address, 777546. Before the KW 11-L begins to operate, the processor must send out that address, a master synchronization (MSYN) signal. and a gating control signal. MSYN indicates to the device that address and control information are present. The gating control signal determines the direction of the data transfer operation desired: DATI for transfer of data from slave to master, DA TO for transfer from master to slave. A valid combination of these three sets of signals controls data transfers between the two-bit status register of the KW 11-L and the processor. These transfers determine whether the device is in the interrupt or the noninterru pt mode. In the interrupt mode, the KW 1 1-L signals the processor for an interrupt each time it receives a pulse from the line frequency source. In the noninterrupt mode, the KW 11-L acts as a program switch that the processor can examine or ignore. ~ >- u A(17:01) c 1 MSYN SSYN N I B D (06 07) u I NIT s BR6 BG6 IN BG6 OUT SACK INTR BBSY ADDRESS SELECTOR STATUS REGISTER INTERRUPT CONTROL ~~NE~UENCY- I THRESHOLD DETECTOR D06 ssyn 11-019 ~ 7 Figure 2-l KW 11-L Block Diagram J When the KW 11-L is in the interrupt mode, the interrupt control section of the device provides the circuits and logic required to make bus requests, gain bus control, and generate interrupts. When the threshold detector provides a pulse from the line frequency source, the interrupt control section initiates a bus request on priority level 6, which is the priority level of the KWll-L. The priority arbitration logic in the processor recognizes the request and issues a bus grant signal, if this device is the highest priority device requesting an interrupt. The KWll-L responds with a selection acknowledge (SACK) signal. When the requirements for becoming bus master have been fulfilled, the KW11-L asserts bus busy (BBSY), an interrupt (INTR) signal, and an interrupt vector address of 100. The processor generates a slave synchronization (SSYN) signal, then responds to the interrupt with an interrupt service routine. The interrupt control section of the KW 11-L then goes to a rest state until the next initialization. The two-bit status register of the KWll-L consists of bits 6 and 7 on the data bus line. When bit 6 is set, the device is in the interrupt mode; when it is clear, the device is in the noninterrupt mode. Bit 6 is set or cleared by a processor DATO to the KW 11-L; it is also cleared by a processor INIT. Bit 7 is set by a line clock pulse from the threshold detector or by a processor INIT; it is cleared by any processor DATO to the KW 11-L. Bit 7 can be used by the processor to determine which device caused an interrupt. The interrupt service routine should include a DATI which reads the interrupt monitor bit (bit 7) to serve as a partial check on the origin of the interrupt vector. Thus, if bit 7 is clear, there is an indication to the processor that this device did not request the interrupt. In the noninterrupt mode, the KW Il-L performs a more passive function. The KW 11-L acts as a program switch that the processor can examine or ignore. The interrupt control section is disabled so that the KWll-L cannot assert a bus request (BR6) and, therefore, cannot go into an interrupt sequence. A programmed DATO must be used to return the KWll-L to the interrupt mode; programmed OATis must be used to examine the status of the device. In the noninterrupt mode, the KWll-L is controlled by programmed instruction from the processor. A more detailed description of KW 11-L operation is presented in Chapter 3. Chapter 4 contains programming information for both the interrupt and the noninterrupt modes. KW11-L specifications are as follows: Register Address Vector Address Function Bit 6 Bit 7 Rate Bus Cycles Priority Level Modes Two-bit status register; bits 6 and 7 on the data bus line Permanently wired to 777546 Permanently wired to 100 8 Generates repetitive time interval indications to processor Interrupt enable bit Interrupt monitor bit Same as line frequency; 50 or 60Hz DATO, DATI Permanently wired to BR6 Interrupt and noninterrupt 2-1

CHAPTER 3 DETAILED DESCRIPTION The KWll-L includes an address selector, threshold detector, interrupt control, and a two-bit status register. Each section is discussed with regard to its operation and interrelationship to the other sections of the device. 3.1 ADDRESS SELECTOR The address selector section of the KWll-L is permanently wired to respond to incoming address 777546. Input signals enter on 17 address lines, A(l7:01 ), one bus control line, Cl, and a master synchronization (MSYN) line (see drawing D-BS-KW11-L-O 1 ). Address line AOO is not brought into the device because its only function is to select between bytes; the KWII-L deals only with complete words. The address format used to select the KWII-L is shown in Figure 3-1 and is decoded by the address selector. This decoded address, together with a I on MSYN, ADDRESS H BUS C1 H 2 INTERRUPT REQUEST BR6 L causes the output of gate E3 to go high (drawing D-BS-KWll-L-01 ), signalling that the device has been addressed. BUS S SYN H 3.2 THRESHOLD DETECTOR The threshold detector section (Q2 and Ell on drawing D-BS-KW11-L-01) of the KW11-L detects a point on a waveform (LTC L) produced by the H720 Power Supply. A regulator circuit board in that power supply in BUS INTR L cludes a circuit that provides a clipped waveform based on the input-line voltage. Signal LTC Lis inverted to cause a high pulse at the clock input of the flip-flop for bit 7 of the status register, setting that bit and, if bit 6 is set, the internal interrupt request flip-flop (E6). BUS SACKL BG 6 OUT II- 0199 Figure 3-1 KWll-L Address Word 3.3 INTERRUPT CONTROL The interrupt control section of the KWll-L provides the logic circuits to make bus requests, gain bus control, and generate interrupts. This section of the device uses three flip-flops: the interrupt request, FFI and FF2 (see Figure 3-2). Table 3-1 lists the settings of these flip-flops in relation to the bus states and the signals asserted. Figure 3-2 Interrupt Request Section, Simplified Logic Diagram 11-0196 3-1

Table 3-1 Interrupt Control Flip-Flops Interrupt Request FFl FF2 State Signals 0 0 0 Not Requesting None the KWll-L by holding the interrupt request flip-flop (in the interrupt control section of the KWII-L) in the cleared state when D06 is in the 0 state. DATI and ADDRESS provide gating that reads the content of D06 onto bus line D06 and the content of D07 onto bus line D07. 1 0 0 Requesting BR6 1 I 0 Granted SACK, inhibit BG6 OUT I 1 1 Master BBSYN, INTR, D06 (Vector address) BUS Cl L ADDRESS H When the KWll-L is not requesting, all three flip-flops are in the 0 state, and no signals are asserted on the bus. The requesting state is entered when the interrupt request flip-flop is set by a line clock pulse. This setting of the flip-flop can occur only when the status bit 6 flip-flop (interrupt enable) is in the 1 state. Setting the interrupt request flip-flop generates a bus request priority level 6 (BR6). The priority arbitration logic of the processor determines whether priority level 6 is the highest level requesting. If priority level 6 is the highest level requesting, the processor asserts a bus grant signal (BG6 IN high) that sets the FFI flip-flop. Signal BG6 is blocked from being passed on to the next device and the assertion of the bus request (BR6) is dropped. With flip-flop FF1 a 1 and flip-flop FF2 a 0, the selection acknowledge signal (SACK) is asserted on the bus. On receiving the SACK signal, the processor drops BG6 IN, and flip-flop FF2 is set if SSYN and BBSY are unasserted. Signals BBSY and INTR are then asserted on the bus, as well as interrupt vector address I 00 (D06). The processor responds to these signals by asserting a slave synchronization signal (SSYN) that clears the interrupt request flip-flop. Flip-flops FF I and FF2 are subsequently cleared; the interrupt control section of the KWll-L is returned to the not requesting state. At the same time the SSYN is asserted, the processor goes into the interrupt service routine at vector address 100. BUS 5 SYN L Figure 3-3 Status Register, Simplified Logic Diagram 11-0198 3.4 STATUS REGISTER The status register of the KWII-L contains the interrupt enable (D06) and the interrupt monitor (D07) flip-flops (see Figure 3-3). Operation of the status register circuits is controlled by INIT, the line clock pulse. DATO. and DATI. Signal INIT is generated either by depressing the START switch on the console or by issuing a programmed RE SET instruction. This signal clears D06 and sets D07 to initialize the status register for a new operation. The line clock pulse is supplied by the threshold detector section of the KW Il-L and is used to set D07. DA TO and ADDRESS clear D07 when BUS D07 is 0, by applying a signal to the direct clear input. For DATO and DATI to affect the circuits of the status register section, the address of the KW1 1-L and MSYN must be asserted on the bus to provide the ADDRESS H signal shown as an input on Figure 3-3. This ADDRESS signal is also used, after a delay, to assert a SSYN signal on the bus. The combination of DATO and ADDRESS provide a signal to the clock input of D06. Depending on BUS D06, the flip-flop is either set or cleared. Thus, the processor can read a bit into this flip-flop by issuing a DATO and D06 = I for a I, and DATO and D06 = 0 for a 0. The 0 side output of D06 controls the interrupt function c.f 3-2

CHAPTER 4 PROGRAMMING INFORMATION This chapter presents general programming information for software control of the KW 11-L Line Time Clock. Although typical program examples for both the interrupt and noninterrupt modes of operation are included, it is beyond the scope of this manual to provide detailed programs. If more detailed programming information is desired, refer to the PDP-11 Paper Tape Software Program.ming Handbook, DEC-11-GGPA-D. All software control of the KWII-L is performed by means of a two-bit status register, which has been assigned memory address 777546 and the mnemonic LKS. This register can be read or loaded by using any PDP-II instrudion that refers to its address. 4.1 INTERRUPT MODE The following program is an example of one way the KW11-L can be used in the interrupt mode. The purpose of this program is to enter the routine TIME after every N interrupts. The mnemonic LKS represents the permanent memory address of the KW 11-L, 777 546; LKV represents the vector address, I 00. When the main program is interrupted, it is directed to LKV, and then to LKV + 2, which is I 02. The word in location 100 is the address of the first instruction in the interrupt service routine; this address is transferred into the program counter of the processor. The word in location I 02 is the new status word, which is transferred into the status register of the processor. The new status word contains the number 300, which indicates a priority level of 6, with all five condition codes, T, Z, N, V, and C equal to 0. MAIN: LKS = 777546 LKV = 100 MOV#N,CNTR MOV #1 00, LKS ;ENB INTR 4.2 NONINTERRUPT MODE The following program is an example of one way the KWII-L can be used in the noninterrupt mode. In this example, it is assumed that an INIT or a previous DATO with D06 = 0 has placed the KW11-L in the noninterrupt mode. This program alternates between two program routines; each routine lasts for approximately the time period between line clock changes, which is either 16.67 ms or 20 ms. Each routine contains a program loop that lasts for a considerably shorter time than the period between line clock changes. The mnemonic LKS represents the permanent memory address of the KWII-L, 777546. LKS = 777546 START: CLRB LKS ;Reset bit 7 SYNC: TSTB LKS ;Wait until bit 7 is set, BPL SYNC ;Then reset it CLRB LKS ;Clear bit ON: ;Do first routine OFF: TSTB LKS ;Each time through loop test bit 7 BPL ON ;When bit is set CLRB LKS ;Clear bit ;Do second routine TSTB LKS ;Test bit 7 BPL OFF ;If not set, do loop again CLRB LKS ;If set, clear bit JMP ON ;Do first program again LKV: LKSERV: TIME: LKSERV 300 MOV #I 00, LKS DEC CNTR BEQ TIME RTI MOV #N, CNTR ;Clear bit 7. This instruction is optional ;If counter is zero, go to time. ;If counter is not ;zero, continue. ;Reset counter RTI 4-1

CHAPTER 5 KW11-L ENGINEERING DRAWINGS The engineering drawings for the KWll-L are contained in the print set that is shipped with the equipment. The drawings that relate to this manual are: D-TD-KWll-L-02 D-BS-KWll-L-0 1 Timing Diagram (KWll-L) Line Frequency Interval Clock 5-l

READER'S COMMENTS PDP-II KWII-L LINE TIME CLOCK DEC-11-HKWB-D Your comments and suggestions will help us in our continuous effort to improve the quality and usefulness of our publications. What is your general reaction to this manual? In your judgment is it complete, accurate, well organized, well written, etc.? Is it easy to use? What features are most useful? ------------------------------------------------------------------- Does this manual satisfy the need you think it was intended to satisfy?----------------------------- Does it satisfy your needs? Why? Would you please indicate any factual errors you have found. Please describe your position. Name Organization ---------------------------------------- Street --------------------------------- Department City----------- State ------------ Zip or Country ----------

--------- - -------- Fold Here -------------- ----- -- --- - - - - - - - ---- Do Not Tear -Fold Here and Staple - - - - - - - - - - - - - FIRST CLASS PERMIT NO. 33 MAYNARD, MASS. BUSINESS REPLY MAIL NO POSTAGE STAMP NECESSARY IF MAILED IN THE UNITED STA1FS Postage w11l be pa1d by: mamooma Digital Equipment Corporation Technical Documentation Department 146 Main Street Maynard, Massachusetts 01754