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

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

BUSES IN COMPUTER ARCHITECTURE

Counters

Registers and Counters

Asynchronous (Ripple) Counters

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

Digital Fundamentals: A Systems Approach

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

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

Registers and Counters

Counter dan Register

Reaction Game Kit MitchElectronics 2019

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

Laboratory 4. Figure 1: Serdes Transceiver

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

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.

Digital Systems Laboratory 3 Counters & Registers Time 4 hours

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

Experiment # 4 Counters and Logic Analyzer

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

ASYNCHRONOUS COUNTER CIRCUITS

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

Logic Design. Flip Flops, Registers and Counters

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

Timing Pulses. Important element of laboratory electronics. Pulses can control logical sequences with precise timing.

RS flip-flop using NOR gate

Logic Analyzer Triggering Techniques to Capture Elusive Problems

COMP2611: Computer Organization. Introduction to Digital Logic

Digital Circuits 4: Sequential Circuits

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

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

Chapter 5 Flip-Flops and Related Devices

PRE J. Figure 25.1a J-K flip-flop with Asynchronous Preset and Clear inputs

VARIABLE FREQUENCY CLOCKING HARDWARE

Chapter 3 Unit Combinational

Digital Circuits I and II Nov. 17, 1999

PHYSICS 5620 LAB 9 Basic Digital Circuits and Flip-Flops

PROCESSOR BASED TIMING SIGNAL GENERATOR FOR RADAR AND SENSOR APPLICATIONS

LATCHES & FLIP-FLOP. Chapter 7

Chapter 2. Digital Circuits

Point System (for instructor and TA use only)

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

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

S6B CH SEGMENT DRIVER FOR DOT MATRIX LCD

D Latch (Transparent Latch)

ECE 263 Digital Systems, Fall 2015

CARLETON UNIVERSITY. Facts without theory is trivia. Theory without facts is bull 2607-LRB

RS flip-flop using NOR gate

Computer Systems Architecture

Experiment 8 Introduction to Latches and Flip-Flops and registers

CS61C : Machine Structures

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

Logic Design II (17.342) Spring Lecture Outline

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.

64CH SEGMENT DRIVER FOR DOT MATRIX LCD

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

Laboratory 9 Digital Circuits: Flip Flops, One-Shot, Shift Register, Ripple Counter

Review C program: foo.c Compiler Assembly program: foo.s Assembler Object(mach lang module): foo.o. Lecture #14

A MISSILE INSTRUMENTATION ENCODER

CS61C : Machine Structures

Physics 120 Lab 10 (2018): Flip-flops and Registers

CHAPTER 4: Logic Circuits

Laboratory Exercise 4

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

successive approximation register (SAR) Q digital estimate

Factory configured macros for the user logic

Flip Flop. S-R Flip Flop. Sequential Circuits. Block diagram. Prepared by:- Anwar Bari

Logic. Andrew Mark Allen March 4, 2012

ECE 2274 Pre-Lab for Experiment Timer Chip

CHAPTER 4: Logic Circuits

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

CS3350B Computer Architecture Winter 2015

ELE2120 Digital Circuits and Systems. Tutorial Note 8

Decade Counters Mod-5 counter: Decade Counter:

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

Synchronous Sequential Logic

EE 367 Lab Part 1: Sequential Logic

FLIP-FLOPS AND RELATED DEVICES

MC9211 Computer Organization

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

ELECTRICAL ENGINEERING DEPARTMENT California Polytechnic State University

IMS B007 A transputer based graphics board

The outputs are formed by a combinational logic function of the inputs to the circuit or the values stored in the flip-flops (or both).

Logic Devices for Interfacing, The 8085 MPU Lecture 4

6. Sequential Logic Flip-Flops

MUHAMMAD NAEEM LATIF MCS 3 RD SEMESTER KHANEWAL

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

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

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

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

M68HC11 Timer. Definition

EET2411 DIGITAL ELECTRONICS

Principles of Computer Architecture. Appendix A: Digital Logic

VTU NOTES QUESTION PAPERS NEWS RESULTS FORUMS Registers

Chapter 8. The MAP Circuit Discussion. The MAP Circuit 53

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

Register Transfer Level in Verilog: Part II

Notes on Digital Circuits

Transcription:

EK-KWllL-TM-002 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 6th Printing September 1973 7th Printing July 1974 Copyright 1971, 1972, 1973, 1974 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 Chapter Page CHAPTER 1 INTRODUCTION 1-1 CHAPTER 2 GENERAL DESCRIPTION 2-1 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 CHAPTER4 PROGRAMMING INFORMATION 4.1 Interrupt Mode 4-1 4.2 Noninterrupt Mode 4-1 CHAPTER 5 KW11-L ENGINEERING DRAWINGS 5-1 ILLUSTRATIONS Figure No. Title Art No. Page 2-1 KW11-L Block Diagram 11-0197 2-1 3-1 KW11-L Address Word 11-0199 3-1 3-2 Interrupt Request Section, Simplified Logic Diagram 11-0196 3-1 3-3 Status Register, Simplified Logic Diagram 11-0198 3-2 TABLES Table No. Title Page 3-1 Interrupt Control Flip-Flops 3-2 iii

CHAPTER 1 INTRODUCTION The KWll-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 KWll-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 opera-. tion of the Unibus. A detailed description of the Unibus is available in the PDP-11 Peripherals Handbook. Installation of the KW11-L is accomplished by plugging the M787 Module into the appropriate slot for the type of system used and removing a jumper wire as follows: M787 Jumper Wire System Processor Slot Terminals PDP-11/15 KCll Bl2 B12V2 Bl2R2 PDPll/20 KAll B12 B12V2 Bl2R2 PDP-11/35/40 KDll-A F3 F3V2 F3R2 PDP-11/45 KB11-A Cl C1V2 C1R2 PDP-11/70 KBll-B Dl D1V2 DIR2 @ Unibus is a trademark of Digital Equipment Corporation. 1-1

CHAPTER 2 GENERAL DESCRIPTION The KW 11-L accurately divides time into intervals for more efficient use of PDP-11 computer time. The intervals are determined by the line frequency, either 50 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 KWll-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, DATO 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 KWll-L and the processor. These transfers determine whether the device is in the interrupt or the noninterrupt mode. In the interrupt mode, the KWll-L signals the processor for an interrupt each time it receives a pulse from the line frequency source. In the noninterrupt mode, the KWll-L acts as a program switch that the processor can examine or ignore. 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 KW11-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 KW11-L responds with a selection acknowledge (SACK) signal. When the requirements for becoming bus master have been fulfilled, the KWll-L asserts bus busy (BBSY), an interrupt (INTR) signal, and an interrupt vector address of I 00. 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. 2-1

f\ A(17 01) C1 MSYN SSYN ADDRESS SELECTOR u N I B D (06:07) u s I NIT STATUS REGISTER ~~tt:~uency_. I THRESHOLD DETECTOR BR6 BG6 IN BG6 OUT SACK INTR BBSY D06 VSSYN INTERRUPT CONTROL J 11-019 Figure 2-1 KW 11-L Block Diagram 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 KWll-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 KWll-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 KWll-L performs a more passive function. The KWll-L acts as a program switch that the processor can examine or ignore. The. interrupt control section is disabled so that the KW 11-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 DATis 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. KWll-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-2

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(17:01 ), one bus control line, Cl, and a master synchronization (MSYN) line (see drawing D-BS-KWll-L-01). Address line AOO is not brought into the device because its only function is to select between bytes; the KWll-L deals only with complete words. The address format used to select the KWll-L is shown in Figure 3-1 and is decoded by the address selector. This decoded address, together with a 1 on MSYN, causes the output of gate E3 to go high (drawing D-BS-KWll-L-01), signalling that the device has been addressed. 3.2 THRESHOLD DETECTOR The threshold detector section (Q2 and Ell on drawing D-BS-KWll-L-01) of the KWll-L detects a point on a waveform (LTC L) produced by the H720 Power Supply. A regulator circuit board in that power supply includes 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). 17 16 1~ 14 13 12 11 10 09 08 07 06 0~ 04 03 02 01!1 l1l1l1l1 l1 1111 l1l1lo l1l1lo lo 11 l1l 7 7 7 5 4 6 11-0199 Figure 3-1 KWll-L Address Word 3-1

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, FFl 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. ADDRESS H BUS C1 H INTERRUPT REQUEST 2 6 t---..----1 BR6 L BUS S SYN H BUS DO 6 BUS INTR L BUS SACKL BG 6 OUT 11-0196 Figure 3-2 Interrupt Request Section, Simplified Logic Diagram 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 FFl 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-flopffl a 1 and flip-flop FF2 a 0, the selection acknowledge signal (SACK) is asserted on the bus. 3-2

0 Table 3-1 Interrupt Control Flip-Flops Interrupt Request FFl FF2 State Signals 0 0 0 Not Requesting None 1 \ 0 0 Requesting BR6 1 1 ~ Granted SACK, inhibit BG60UT 1 1 1 Master BBSYN, INTR, D06 (Vector address) 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 IN'i~R are then asserted on the bus, as well as interrupt vector address 1 00 (D06). The processor responds to tht: se signals by asserting a slave synchronization signal (SSYN) that clears the interrupt request flip-flop. Flip-flops FFl 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. 3.4 STATUS REGISTER The status register of the KW ll-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 KWll-L and is used to set D07. DATO 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 KWll-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 = 1 for a 1, and DATO and D06 = 0 for a 0. The 0 side output of D06 controls the interrupt function of the KWll-L by holding the interrupt request flip-flop (in the interrupt control section of the KWll-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 on to bus line D07. 3-3

ADDRESS H BUS C1 L BUS!5 SYN L 11-0198 Figure 3-3 Status Register, Simplified Logic Diagram 3-4

CHAPTER 4 PROGRAMMING INFORMATION This chapter presents general programming information for software control of the KWll-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 Programming Handbook, DEC-11-XPTSA-A-D. All software control of the KWll-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-11 instruction that refers to its address. 4.1 INTERRUPT MODE The following program is an example of one way the KWll-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 KW11-L, 777546; LKV represents the vector address, 100. When the main program is interrupted, it is directed to LKV, and then to LKV + 2, which is 102. 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 102 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 #100, LKS ;ENB INTR LKV: LKSERV: TIME: LKSERV 300 MOV #1 00, LKS DECCNTR BEQTIME 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

4.2 NONINTERRUPT MODE The following program is an example of one way the KW Il-L can be used in the noninterrupt mode. In this example, itis assumed that an INIT or a previous DATO with D06 = 0 has placed the KWll-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 KWll-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 4-2

CHAPTER 5 KW11-L ENGINEERING o:rawings 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-01 Timing Diagram (KWll-L) Line Frequency Interval Clock 5-1

PDP-11 KW11-L LINE TIME CLOCK EK-KW11L-TM-002 Reader's Comments 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 usc? I I (..LJ I~ What features are most useful? ----------------------------------------------------------. What faults do you find with the manual? 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 STATfS Postag~ will b~ paid by: momoama Digital Equipment Corporation Technical Documentation Department 146 Main Street Maynard, Massachusetts 01754

UNLESS OTHERWISE >NDICATEO: RESISTORS ARE I/4W,5% CAPACITORS ARE.01 uf, IOOV, 20% OEC380 E;, E5,E8,EIO,E9 DEC7430 E2 OEC8815 E3 DEC7400 E4 DEC7404 ~Ell OEC8881-EI5,EI2,EI4 OCC/474 E6,E7, El3 ~i~ ~~~~eon EI,E8,E9,EIO,E5 ~:~~:~~eon E2,E3,E4,EII,EI2,E14.E13,E7,El5.E6