GB1584681A

GB1584681A – Programmable controller using microprocessor
– Google Patents

GB1584681A – Programmable controller using microprocessor
– Google Patents
Programmable controller using microprocessor

Download PDF
Info

Publication number
GB1584681A

GB1584681A
GB19385/77A
GB1938577A
GB1584681A
GB 1584681 A
GB1584681 A
GB 1584681A
GB 19385/77 A
GB19385/77 A
GB 19385/77A
GB 1938577 A
GB1938577 A
GB 1938577A
GB 1584681 A
GB1584681 A
GB 1584681A
Authority
GB
United Kingdom
Prior art keywords
logic
line
data
terminals
lines
Prior art date
1976-07-01
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)

Expired

Application number
GB19385/77A
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)

Gulf and Western Industries Inc

Original Assignee
Gulf and Western Industries Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
1976-07-01
Filing date
1977-05-09
Publication date
1981-02-18

1977-05-09
Application filed by Gulf and Western Industries Inc
filed
Critical
Gulf and Western Industries Inc

1981-02-18
Publication of GB1584681A
publication
Critical
patent/GB1584681A/en

Status
Expired
legal-status
Critical
Current

Links

Espacenet

Global Dossier

Discuss

238000012545
processing
Methods

0.000
claims
description
58

230000004044
response
Effects

0.000
claims
description
10

230000002457
bidirectional effect
Effects

0.000
claims
description
8

230000002596
correlated effect
Effects

0.000
claims
description
3

230000001747
exhibiting effect
Effects

0.000
claims
2

230000015654
memory
Effects

0.000
description
144

238000012546
transfer
Methods

0.000
description
53

230000006870
function
Effects

0.000
description
50

238000000034
method
Methods

0.000
description
30

102000008016
Eukaryotic Initiation Factor-3
Human genes

0.000
description
27

108010089790
Eukaryotic Initiation Factor-3
Proteins

0.000
description
27

230000008569
process
Effects

0.000
description
24

240000007320
Pinus strobus
Species

0.000
description
16

238000010586
diagram
Methods

0.000
description
12

101100317378
Mus musculus Wnt3 gene
Proteins

0.000
description
11

230000008859
change
Effects

0.000
description
10

230000000875
corresponding effect
Effects

0.000
description
8

238000005516
engineering process
Methods

0.000
description
8

230000001276
controlling effect
Effects

0.000
description
7

238000012986
modification
Methods

0.000
description
6

230000004048
modification
Effects

0.000
description
6

238000004891
communication
Methods

0.000
description
5

230000000694
effects
Effects

0.000
description
5

230000036961
partial effect
Effects

0.000
description
5

238000006243
chemical reaction
Methods

0.000
description
4

230000000873
masking effect
Effects

0.000
description
4

238000012163
sequencing technique
Methods

0.000
description
3

101100446506
Mus musculus Fgf3 gene
Proteins

0.000
description
2

101100348848
Mus musculus Notch4 gene
Proteins

0.000
description
2

230000009286
beneficial effect
Effects

0.000
description
2

210000004899
c-terminal region
Anatomy

0.000
description
2

244000221110
common millet
Species

0.000
description
2

239000013078
crystal
Substances

0.000
description
2

230000006872
improvement
Effects

0.000
description
2

230000009191
jumping
Effects

0.000
description
2

230000000737
periodic effect
Effects

0.000
description
2

230000002093
peripheral effect
Effects

0.000
description
2

230000005855
radiation
Effects

0.000
description
2

238000012552
review
Methods

0.000
description
2

230000003068
static effect
Effects

0.000
description
2

241000836430
Hilda
Species

0.000
description
1

235000008331
Pinus X rigitaeda
Nutrition

0.000
description
1

235000011613
Pinus brutia
Nutrition

0.000
description
1

241000018646
Pinus brutia
Species

0.000
description
1

101000767160
Saccharomyces cerevisiae (strain ATCC 204508 / S288c) Intracellular protein transport protein USO1
Proteins

0.000
description
1

230000009471
action
Effects

0.000
description
1

230000003466
anti-cipated effect
Effects

0.000
description
1

230000008901
benefit
Effects

0.000
description
1

230000005540
biological transmission
Effects

0.000
description
1

210000004027
cell
Anatomy

0.000
description
1

239000003795
chemical substances by application
Substances

0.000
description
1

239000002131
composite material
Substances

0.000
description
1

239000004020
conductor
Substances

0.000
description
1

238000010276
construction
Methods

0.000
description
1

239000013256
coordination polymer
Substances

0.000
description
1

238000013461
design
Methods

0.000
description
1

230000008034
disappearance
Effects

0.000
description
1

230000005670
electromagnetic radiation
Effects

0.000
description
1

238000011156
evaluation
Methods

0.000
description
1

238000007667
floating
Methods

0.000
description
1

230000036039
immunity
Effects

0.000
description
1

230000000977
initiatory effect
Effects

0.000
description
1

238000009434
installation
Methods

0.000
description
1

230000003993
interaction
Effects

0.000
description
1

238000002955
isolation
Methods

0.000
description
1

230000000670
limiting effect
Effects

0.000
description
1

230000007774
longterm
Effects

0.000
description
1

238000004519
manufacturing process
Methods

0.000
description
1

239000013641
positive control
Substances

0.000
description
1

230000009467
reduction
Effects

0.000
description
1

230000002829
reductive effect
Effects

0.000
description
1

230000003252
repetitive effect
Effects

0.000
description
1

230000000717
retained effect
Effects

0.000
description
1

230000002441
reversible effect
Effects

0.000
description
1

230000000630
rising effect
Effects

0.000
description
1

239000004065
semiconductor
Substances

0.000
description
1

239000007787
solid
Substances

0.000
description
1

238000012360
testing method
Methods

0.000
description
1

238000013024
troubleshooting
Methods

0.000
description
1

230000000007
visual effect
Effects

0.000
description
1

Classifications

G—PHYSICS

G06—COMPUTING; CALCULATING OR COUNTING

G06F—ELECTRIC DIGITAL DATA PROCESSING

G06F9/00—Arrangements for program control, e.g. control units

G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs

G06F9/46—Multiprogramming arrangements

G06F9/48—Program initiating; Program switching, e.g. by interrupt

G06F9/4806—Task transfer initiation or dispatching

G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B19/00—Programme-control systems

G05B19/02—Programme-control systems electric

G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers

G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

G05B19/052—Linking several PLC’s

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B19/00—Programme-control systems

G05B19/02—Programme-control systems electric

G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers

G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

G05B19/054—Input/output

G—PHYSICS

G06—COMPUTING; CALCULATING OR COUNTING

G06F—ELECTRIC DIGITAL DATA PROCESSING

G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

G06F13/10—Program control for peripheral devices

G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor

G—PHYSICS

G06—COMPUTING; CALCULATING OR COUNTING

G06F—ELECTRIC DIGITAL DATA PROCESSING

G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units

G06F13/14—Handling requests for interconnection or transfer

G06F13/20—Handling requests for interconnection or transfer for access to input/output bus

G06F13/24—Handling requests for interconnection or transfer for access to input/output bus using interrupt

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B2219/00—Program-control systems

G05B2219/10—Plc systems

G05B2219/11—Plc I-O input output

G05B2219/1105—I-O

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B2219/00—Program-control systems

G05B2219/10—Plc systems

G05B2219/13—Plc programming

G05B2219/13001—Interrupt handling

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B2219/00—Program-control systems

G05B2219/10—Plc systems

G05B2219/14—Plc safety

G05B2219/14142—Low impedance bus

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B2219/00—Program-control systems

G05B2219/10—Plc systems

G05B2219/15—Plc structure of the system

G05B2219/15048—Microprocessor

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B2219/00—Program-control systems

G05B2219/10—Plc systems

G05B2219/15—Plc structure of the system

G05B2219/15056—DMA

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B2219/00—Program-control systems

G05B2219/10—Plc systems

G05B2219/15—Plc structure of the system

G05B2219/15105—Hardwired logic to accelerate, speed up execution of instructions

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B2219/00—Program-control systems

G05B2219/10—Plc systems

G05B2219/15—Plc structure of the system

G05B2219/15116—Pc implements plc, in application program, plc instruction register

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B2219/00—Program-control systems

G05B2219/10—Plc systems

G05B2219/15—Plc structure of the system

G05B2219/15122—Less frequent used subroutines arranged at high addresses

G—PHYSICS

G05—CONTROLLING; REGULATING

G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS

G05B2219/00—Program-control systems

G05B2219/10—Plc systems

G05B2219/15—Plc structure of the system

G05B2219/15127—Bit and word, byte oriented instructions, boolean and arithmetic operations

Description

PATENT SPECIFICATION
( 21) Application No 19385/77 ( 22) Filed 9 May 1977 ( 31) Convention Application No 701 858 ( 32) Filed 1 July 1976 in ( 33) United States of America (US) ( 44) Complete Specification published 18 Feb 1981 ( 51) INT CL’ G 05 B 15/02 ( 52) Index at acceptance G 3 N 292 404 BA 4 ( 54) PROGRAMMABLE CONTROLLER USING MICROPROCESSOR ( 71) We, GULF & WESTERN INDUSTRIES, INC, a Corporation organised and existing under the laws of the State of New York, United States of America, of 1 Gulf + Western Plaza, New York, N Y.
10023, United States of America, do hereby declare the invention, for which we pray that a patent may be granted to us, and the method by which it is to be performed, to be particularly described in and by the following statement:-
The present invention relates to the art of programmable controllers and more particularly to a programmable controller utilizing a standard microprocessor.
The invention is particularly applicable as a programmable controller to control a machine tool, or other mechanical system of the type generally controlled by input information and output conditions and it will be described with particular reference thereto; however, it should be appreciated that the invention has much broader applications and may be used in various types of installations wherein input and output information or conditions are to be processed digitally in accordance with a preselected program or in accordance with standard relay logic, logic diagrams or Boolean equations.
Incorporated by reference herein is prior United States Letters Patent 3,827,030 which discloses a programmable controller utilizing a random access memory to process input and output information in accordance with standard logic or relay terminology Also incorporated by reference herein is prior United States Patent No 4 180 862, filed November 17, 1975, by the present inventor and relating to a self-addressing feature for output modules of the type contemplated by the present invention.
In the last few years, a very advanced data processing device has become commercially available This device, known as a microprocessor, is sold by various companies and generally includes a plurality of address terminals, several bidirectional’ data terminals and internal control circuitry for determining several types of machine cycles to be performed These microprocessors are produced 50 in accordance with integrated circuit technology of the PMOS and NMOS type The versatility of these microprocessors or «microprocessing chips», as they are known, is well known in the art of controlling machine opera 55 tion A variety of attempts has been made to utilize the standard microprocessor,’ as the heart of programmable controller which can control machines and logic systems However, generally the attempts to use the micro-pro 60 cessor for a controller function have resulted in complex software requirements The microprocessor has relatively limited capabilities.
Four or eight bit data bus are generally available and only sixteen address lines In addi 65 tina, the internal orocessing by the microprocessor is somewhat limited so that a substantial number of software steps or program steps must be generated to perform even somewhat simple logic operations It is often 70 difficult to debug a system employing a microprocessor because there is a distinct inability to stop the microprocessor at a selected position and then read the internal condition of the internal registers and modify these registers 75 without complicated software Also, the ability to interrupt the microprocessor for jumping to a subroutine by external stimuli is limited by the circuitry or locations available for this purpose It is desirable to provide a 80 large number of interrupt call conditions, wherein the general or executive program can be temporarily stopped and a standard preset subroutine program processed This is very beneficial in reading or writing by the con 85 troller at certain isolated locations In other words, it is sometimes desirable to ignore several inputs until there is a change in their state, at which time a separate subroutine can be processed Consequently, the subroutines 90 are processed only when required In order to do this, it is necessary to provide a great number of separate and distinct interrupt call conditions An inexpensive simple arrange( 11)1 584 681 2 1,584,681 2 ment for expanding the number of interrupt call conditions is not now available in the technology of microprocessors.
Since a standard microprocessor includes four or eight data terminals, it is extremely difficult to process single bit information of the type contemplated in prior United States patent 3,827,030 Such single bit information requires extensive software for masking of data lines and for shifting data between lines.
This again makes the use of a microprocessor somewhat complicated, especially for relatively simple logic conditions such as AND, OR, COR, CAND, INVERT, etc Microprocessing technology also has limitations regarding debugging of output or input terminals In many instances, the terminal must actually be connected and operated before the system may be debugged This is a substantial disadvantage in use of a microprocessor for any machine or system control function.
The present invention relates to a programmable controller using a microprocessor and external hardwired circuitry to overcome distinct disadvantage of prior attempts to use a standard microprocessor chip for a machine or system control function In the past, the use of a microprocessor for control functions has required acceptance of the severe limitation of the microprocessor and have, therefore, utilized extensive and complex software for processing the desired input and output information Thus, a relatively large number of memory locations were required for storing the extensive software program to employ a microprocessor as a controlling system The programmable controller of the invention has overcome this disadvantage and has provided unique, novel external hardwired circuitry for allowing the use of a microprocessor, with all its standard limitations, in a programmable controller which can process eight bit data words and single bit data without extensive complex software Thus, software needed to convert the microprocessor chip to a viable control system is substantially reduced, with the resultant substantial reduction in the cost of programming and the probability of unavoidable error Consequently, the present invention relates to an improved programmable controller which employs a standard microprocessor This is distinguished from prior attempts which essentially programmed a microprocessor for a control function In those systems, all of the components where standard shelf items that are put together in known form to produce a control function under the auspices of a complex software program This is the antithesis of the present invention, wherein a standard microprocessor is a component, which is used with additional circuitary to produce a total programmable controller that requires a minimum of software and still produces desired control functions necessary for controlling even complex machinery and systems.
According to the present invention there is provided a programmable controller comprising a microprocessor having a plurality of bi-directional data terminals and a plurality of 70 address terminals upon which a binary code address of bits appears, a set of data lines, data input means for applying a byte of binary data on said set of data lines, said byte having a given bit on one of said data lines to be 75 applied to a selected one of said data terminals of said microprocess for processing by said microprocessor; first logic network means connected to said set of data lines for selecting said given bit on said selected one of said 80 data lines in said set in response to a coded address on said address terminals of said microprocessor; and second logic network means for directing said selected bit from said first logic network means to said selected 85 one of said data terminals of said microprocessor.
Therefore in one preferred embodiment, a byte of information can be converted to a bit for internal processing by the microprocessor 90 Consequently, a single bit of information from an eight bit word or byte can be processed by a single location in the microprocessor.
Standard logic functions can be performed without complex masking or shifting For 95 instance, if bit No 5 of one eight bit word or byte is to be AN Ded with bit No 2 of another eight bit word, the fifth bit of the first word can be externally shifted to a selected data terminal and then loaded into the accumulator 100 of the microprocessor Thereafter, the second bit of the next word can be shifted to the same data terminal and AN Ded with the accumulated information The output on the selected single line is then directed to an 105 addressed position, either in memory or at an output terminal Therefore, there is provided an arrangement whereby bit information can be processed by the microprocessor even though the microprocessor has been expanded 110 to include several bi-directional data terminals.
The expansion of microprocessors to include several data lines is considered an advance and is an advance when processing large words, such as eight bit or sixteen bit words How 115 ever, this capability is a distinct hinderance when attempting to logic function two individual terminals of the system By using the present controller, this disadvantage of an expanded, larger capability microprocessor is 120 overcome by selecting one bi-directional data terminal as a single bit processor In this fashion, the internal accumulator is, in effect, a one bit accumulator for bit processing.
Preferably, there is provided a program 125 mable controller of the type using a standard microprocessor which includes means for providing a binary status code on the data terminals indicative of the status of the machine cycle to be processed by the microprocessor 130 1,584,681 1,584,681 A logic decoder is used for producing a selected signal output in response to the logic signals on selected address terminals and in the binary status code on the data terminals.
In other words, the status code created at the beginning of a machine cycle is read and compared with certain addresses to produce a signal The created signal can be used internally of the controller for hardwired functions.
The provision of an internal circuit which is controlled by the status code of a microprocessor together with a selected address to produce a hardwired external signal which can perform a variety of logic functions during the normal operation of the programmable controller is not available on other microprocessor or control systems.
There may be provided a programmable controller including a microprocessor and using the binary status code on the data terminals indicative of the status of a machine cycle to be processed by the microprocessor.
In this system, there is provided a means responsive to the binary status code for latching the address lines to a logic true condition in the more significant bits of the address lines In this manner, when processing information based upon the status code, the more significant address lines are connected to high level locations in external memory circuits.
These memory locations are generally unused locations or little used locations and do not require continuous writing and rewriting which may affect the actual program steps stored in memory The program is generally written in lower level memory addresses This address increasing arrangement is used to assure that writing of random information into memory during certain functions of the programmable controller is at the seldom used high address levels.
The microprocessor can be shifted into the HOLD state by a software command This is accomplished by providing a hardwired circuit responsive to one data line of the microprocessor and a selected address terminal of the microprocessor In this manner, a HOLD command can be inserted at any software position for debugging the programmable controller without placing the microprocessor in a HALT state which is not desired and difficult to vacate.
The programmable controller is provided with a real time clock for producing an output pulse for shifting the controller to a subroutine at a preselected time interval A logic decoding means produces a selected signal in response to the logic at selected ones of the address terminals and the logic in the binary status code which appears at the data terminals.
Means are provided for disabling the real time clock upon production of this selected signal.
In this manner, the real time clock may be disabled by a software command by using the binary status code appearing at the first of the machine cycle in a microprocessor.
In the preferred embodiment of the present invention, the microprocessor includes the standard actuatable terminal means for shifting the microprocessor from a program being 70 processed to a selected subroutine program at a memory location having a binary coded address received by the microprocessor at the data terminals In this improved programmable controller system, there is provided a 75 plurality of input devices each of which has an assigned subroutine with a given memory address code for processing by the microprocessor when each of the input devices is actuated, a first set of data lines connected to 80 the data terminals, a second set of data lines connected to the external devices, data transfer means interconnecting the first and second sets of data lines, means for creating an INTERRUPT signal upon actuation of one 85 of the input devices, interrupt means responsive to said INTERRUPT signal for actuating the actuatable terminals means, isolation means responsive to the INTERRUPT signal for isolating the second set of data lines from the 90 first set of data lines, and decoding means for identifying the actuated input device and for producing a selected partial memory address code corresponding thereto This partial address code has fewer bits than a full memory 95 address for a stored subroutine There is also provided address input means for applying the selected partial memory address code and a fixed binary code to the first set of data lines for selection of a subroutine correspond 100 ing to the actuated input device In accordance with this aspect of the invention, a partial address is created during a selected interrupt cycle This partial address is combined with a fixed binary address code to locate the 105 memory address of the subroutine to be processed for a selected interrupt condition or call.
Consequently, a very minor code can be used for determining the location of the subroutine corresponding to various predetermined inter 110 rupt requests.
Preferably, there is provided an external means for storing a number of separate and distinct memory addresses corresponding to external interrupt request inputs When one of 115 the external interrupt request inputs is actuated, the microprocessor chip is shifted into a preselected priority interrupt level.
Thereafter, a separate and distinct memory address is applied to the data bust for loca 120 tion of the subroutine to be processed for the actuated external interrupt request In this manner, a large number of separate interrupts can be used without requiring complex circuits By using this aspect of the invention, a 125 selected one of a small number of interrupt levels can be used to accommodate a large number of external interrupt requests After actuation, a binary coded call to a given subroutine is directed through data bus to the 130 microprocessor This call includes a memory stored subroutine, without employing the normal hardware selected restart call of a subroutine used in a standard microprocessor, such as an Intel 8080 unit Indeed, the restart subroutine selecting circuit can be deactuated when the selected one of the interrupt levels is actuated to process a large number of addon interrupt requests This interrupt expansion at a selected priority level provides a simple means for using interrupt processing instead of repetitive review of external conditions by the executive program.
In one preferred embodiment of the present invention, there is provided a programmable controller comprising a microprocessor having output address terminals and input/output bidirectional data terminals wherein the address terminals, in accordance with normal practice, have a nominal high order impedance There is provided a plurality of output address bus lines having an integrated circuit for connecting the bus lines to the address terminals of the microprocessor In accordance with this aspect of the invention, the output bus terminals of the integrated circuit connecting means have a low order impedance with a value less than about 1 % of the high order impedance of the microprocessor address terminals In this manner, the normal address lines extending throughout the controller system have a lesser tendency to be affected by extraneous fields and electromagnetic noise.
Therefore, there is provided a programmarble controller, which programmable controller can employ a standard microprocessor without requiring the complex software generally associated with microprocessors.
The programmable controller employs external circuitry for reducing the software requirements of the microprocessor in controlling a machine or system.
The programmable controller includes an arrangement for reducing the impedance of external conductors used for addressing various external components and utilizes the binary status code of a standard microprocessor for developing hardwired signals to process information in the controller.
Advantageously, there is provided a programmable controller which can shift from a byte mode of operation to a bit mode of operation for individual processing steps and which provides an arrangement for software addressing of specific signals, such as a real time clock inhibit instruction.
Furthermore, programmable controller includes an arrangement for substantial expansion of the interrupt capabilities generally associated with the microprocessor.
An embodiment of the present invention will now be described by way of example with reference to the accompanying drawings, in which:
FIGURE 1 is schematic view setting forth a preferred embodiment of the invention and various modules employed therein; FIGURE 2 is a status chart indicating the data line status coding at the status conditions of each machine cycle; 70 FIGURES 2 A, 2 B and 2 C are address coding used for two input/output addresses and memory address, respectively; FIGURE 3 is a pulse chart for timing functions of the standard 8080 Intel microprocessor 75 as adapted for use in the preferred embodiment of the invention; FIGURE 4 is a composite view made up of separate and distinct sections labeled FIGURES 4 A, 4 B, 4 C, which sections are 80 to be taken together and are jointly referred to in the specification as FIGURE 4, and illustrating the central processing module of the preferred embodiment of the present invention and employing a major portion of 85 the inventive features of the present invention; FIGURE 5 is a schematic logic diagram illustrating the HOLD REQUEST function of the preferred embodiment, together with an abbreviated subroutine which may be em 90 ployed therewith; FIGURE 6 is a schematic logic diagram illustrating an expansion module for expanding the interrupt capability of the programmable controller; 95 FIGURE 6 A is a schematic wiring diagram illustrating certain primary features of the diagram illustrated in FIGURE 6 and combining certain related subject matter employed in the central processing module illustrated in 100 FIGURE 4; FIGURE 7 is a schematic wiring diagram illustrating a PROM module employed in the preferred embodiment of the present invention; 105 FIGURE 8 is a schematic diagram illustrating a RAM module of the type contemplated for use in the preferred embodiment of the present invention; FIGURE 9 is a logic diagram showing the 110 features employed in a byte module and certain circuitry used for converting a byte module to a bit output unit; FIGURE 10 is a schematic logic diagram showing a bit input/output module driver for 115 addressing several external input and/or output terminals; FIGURE 11 is a single input/output module of the type addressed by the module shown in FIGURE 10 and as contemplated 120 in the preferred embodiment of the present invention; FIGURE l A is a schematic diagram showing the transceiver function employed in the preferred embodiment of the present invention 125 and in the circuit shown in FIGURE 11; FIGURE 12 is a schematic view in representative program of a simple logic function which is to be programmed in a byte mode; FIGURE 13 is a smplified program to 130 1.584681 a 86 perform the function of the program shown in FIGURE 12 but when the bit mode of operation is employed in the preferred embodiment of the present invention; FIGURE 14 is a schematic illustration of the circuitry employed in FIGURE 4 for converting to a bit mode of operation on innut to the microprocessor with certain modifications for purposes of explanation; FIGURE 15 is a schematic view illustrating conversion of an output circuit to accept a single bit of information and similar to the bit circuit illustrated in FIGURE 9; FIGURE 16 illustrates a module for creating an interrupt condition to read external switch conditions to avoid continuous processing of these switches during the normal operation of programmable controllers; FIGURE 17 is a simplified view showing one feature from FIGURE 4 used in the INTERRUPT processing mode; FIGURE 17 A is a chart indicating the restart code appearing on the data lines after interrupt conditions have been acknowledged by the microprocessor; FIGURE 18 is a simplified view showing one gate employed during the INTERRUPT feature of the circuitry shown in FIGURE 4; FIGURE 19 is a simple program employed in one of the INTERRUPT states of the microprocessor shown in FIGURE 4; and, FIGURE 20 is a combined logic view and output graph for the device employed in the preferred’ embodiment of the invention to create hardwired signals in response to the binary status code appearing at the initial portion of the machine cycle in the microprocessor employed in the programmable controler.
GENERAL SYSTEM.
Referring now to the drawings wherein the showings are for the purpose of illustrating the preferred embodiment of the invention and not for the purpose of limiting same, FIGURE 1 shows a programmable controller A for controlling machines, processes and other systems in response to input information from inputs and existing conditions or other parameters The inputs, conditions and parameters are directed to the controller A from various external terminals and locations which are capable of providing binary information as single bit or multiple bits, i e bytes These external terminals may be switches, decoded thumbwheels, lights, decoded analog data and binary coded conditions In accordance with normal practice the controller includes memory locations and is processed in accordance with a program stored as a plurality of steps or instructions in such system memory Certain random access memories are provided for storing intermediate information or data This memory can also be used for some program storage although a program read only memory is generally used for storage of the program 65 information or steps.
As illustrated in FIGURE 1, programmable controller A is a digital processing system including a plurality of separate and distinct plug-in modules interconnected by a plurality 70 of control lines, which are generally in a motherboard connecting system, except for remote input/output modules The basic modules and control lines therefor are schematically illustrated in FIGURE 1 75 wherein a central processing unit module (CPU) 10 or module CP 711 employs a standard microprocessor as its central control unit The central processing unit is shown in FIGURE 4 This microprocessor is a known 80 MOS integrated circuit chip which includes internal registers, counters, pointers and associated logic circuitry well known in the art The microprocessor, which is shown in more detail in FIGURE 4, has a number of 85 output address terminals, a number of bidirectional data terminals, means for setting the chip into various known states and means for providing a status code on the data lines at the start of each separate command 90 Although a variety of microprocessors having these standard capabilities could be used, the preferred embodiment of the present invention involves the use of an Intel 8080 microprocessor which has sixteen address terminals 95 and eight bi-directional data terminals The controller A incorporates the various improvements relating to the use of a microprocessor for processing input and output information to control a preprogrammed series of events 100 of a machine, process, etc The input information in the preferred embodiment of the present invention is digital information both at the input and output; however, converters for conversion between analog and digital 105 could be used to interface between the system shown in FIGURE l and various analog inputs and/or outputs The CPU module 10 is communicated with the other modules to process input and output information on lines D,-,D 7, 110 A brief description of the separate modules will be sufficient to illustrate their intended use with the CPU module 10 and the overall operation of programmable controller A.
To initially program and debug the con 115 troller A, there is provided a direct access module 20 which takes over control of several control lines connected to CPU mfiodule 10; Thus, it is possible to directly program the memories in controller or system A by an 120 external device, such as a schematically represented digital computer 22 In the illustrated embodiment, the computer is connected to direct access module 20 by schematically represented lines 24 When a HOLD RE 125 QUEST signal is directed from module 20 to CPU module 10, computer 22, or other external control devices, obtains control over the address lines, the input designation line 1.5846 R 1 R 1,584,651 DBINP, the READ/WRITE line, and the Do-D 7 data lines, and other lines shown by the arrows in FIGURE 1 When this happens, the CPU module is essentially disconnected from the rest of the controller and computer 22 can load memories, i e to program the controller, and actually operate the controller, as in debugging and troubleshooting The direct access module is used to load all memories of system A with the desired logic, set inputs and outputs to the desired conditions, selectively read the contents of the memory or the various input and output circuits, reset controller A, provide intermediate stop and run operations for the controller A, and check the status of all the memory positions and registers of controller A including the registers of the microprocessor MP in CPU module 10 The direct access module is used for flow of data to and from system A under the control of an external unit such as a computer, external tape reading devices, teletype, etc.
In order to accomplish transfer of control to module 20, microprocessor MP of module is placed into the HOLD state, which will be explained later The external programmer, such as a computer or tape reader, sends data to and from controller A through data lines D,-D, and the location of the data is controlled by address lines A,-A,, By placing the microprocessor of module 10 in the HOLD condition or state, instead of the HALT state, the functions of the microprocessor can be taken over by a programmed signal or request from module 20 in a manner to be explained in connection with FIGURE 5 Also, control by the microprocessor can be reestablished by a simple command without complex programming required when the microprocessor shifts to a HALT state It is not necessary to provide an initiation pulse for again obtaining controlover system A by module 10 As soon as the HOLD condition is released, the CPU module ’10 again assumes control over the lines illustrated in FIGURE 1 This provides a convenient manner for giving direct access to the controller A for programming and debugging and then for releasing the controller for control, which is isolated from module 20.
As will be explained later, CPU module 10 may be interrupted by external conditions to interrupt the program and shift control over the microprocessor to a memory stored subroutine This is a standard INTERRUPT feature of most eight bit microprocessors; however, in accordance with one aspect of the invention, controller A includes a plurality of separate interrupt expansion modules, three of which are schematically illustrated as interrupt expansion modules I, II, III, or 30, 32 and 34, respectively Module 32 is schematically illustrated in more detail in FIGURE 6, which showing is representative of an interrupt expansion module connected to and controlled through the first interrupt expansion module 30 The difference between the first expansion module and subsequent expansion modules is that the enabled terminal E of module 30 is tied to a logic 1, which in practice is five volts throughout controller or system A The subsequent modules 32, 34, and any additional modules, include an input enable logic at terminal E which is controlled by the condition of preceding interrupt expansion modules This connection arrangement provides a priority level system wherein the interrupt inputs of module 30 have a priority over the interrupt inputs of subsequent interconnected expansion modules 32, 34, etc In each of the interrupt expansion modules, in the illustrated embodiment, there are provided sixteen separate interrupt inputs which are schematically illustrated as a plurality of single pole, grounded switches 30 a-30 x, 32 a-32 x and 34 a-34 x These interrupt inputs can be logic inputs which contain information requesting a shift of module 10 into the interrupt state for processing of a selected subroutine Thus, actuation of an input will cause the microprocessor MP of module 10 to interrupt and shift into the subroutine which is to be processed Then control is returned to the executive program of controller or system A By using this interrupt expansion arrangement, a great number of selectable subroutines can be provided and called by providing an interrupt request at one of the several schematically represented logic inputs The executive program of system A requires the processing of a «look» command or sequence for those data or logic inputs and outputs under interrupt control only when an interrupt request is received indicating that a certain terminal or terminals should be scanned and/or updated.
When an interrupt request is received by the CPU module from a terminal of an expansion module, the microprocessor shifts to an interrupt state and data from the expansion module selects or «calls» a given subroutine by an address on lines D-D 7 When the calling input or output will be processed according to the desired and requested interrupt subroutine Thereafter the subroutine will shift command back to the main program As will become more apparent when discussing in detail the interrupt features of the present invention, the various interrupt requests will have a certain, preselected priority order which will determine whether or not a called subroutine is interrupted by a subsequently called subroutine If there is no interrupt request, then the executive program is processed repeatedly without processing the interrupt subroutines Consequently, the subroutines are called and processed only when needed.
The number of expansion terminals of modules 30-34 can be increased to larger values The only practical limitations are the memory capacity which can be expanded to various 1,584,681 capacities and the time available for processing interrupt subroutines.
By providing the interrupt expansion modules, the microprocessor of system or controller A can be interrupted a substantially greater number of times than is available on known microprocessors Thus, the normal microprocessor interrupt concept of priority evaluation and jumping to a subroutine called by a particular interrupt can be used for many separate inputs or conditions This saves programming time and allows the use of subroutines which may be stored into the memories of system A for only periodic use.
The versatility of system A is thereby greatly expanded while still using a readily available, relatively inexpensive microprocessor.
Module 40 which will be discussed in more detail with respect to FIGURE 7 is a programmable read only memory (PROM) module This PROM module is used in system A for the purpose of retaining permanent logic at various addressed locations determined by the logic on lines A,-A 1 In practice, the executive program and the various subroutines are generally, permanently stored at various addressed locations within PROM module 40 This memory module is used for long term or permanent storage of the program and employs MOS memory chips that are erasable upon exposure to ultra violet light and are programmable by means, such as computer 22 or a tape reading device through direct access module 20 In practice, the PROM module has a capacity of 4,096 eight bit words The number of words available in the read only memory module 40 may vary according to the desired capacity of system A In practice, the memory technology used in module 40 is static siilcon gate MOS erasable and electrically reprogrammable read only memory chips.
During normal operation of controller A, data is directed from module 40 on lines D -D 1 The parallel transmission of binary data on these lines provides an eight bit word which is addressed by the logic on lines A,-A,, In FIGURE 1, it is indicated that the data lines D,,-D 7 are bi-directional at PROM module 40 This is only for the purposes of loading the memory during the programming and debugging operation through direct access module 20 The memory chips of module 40, in practice, are not erasable under normal circumstances; therefore, continuous application of power to this particular module is not required for the purpose of retaining the stored logic Of course, a variety of different types of read only memories could be used for storing the program information for system A without departing from the scope of the invention as schematically illustrated in FIGURE 1.
Referring now more particularly to the random access memory (RAM) module 50, this memory module can be updated periodically during use of system or controller A.
Various random access memory modules could be used in system A; however, the basic features of the RAM contemplated in the 70 illustrated embodiment of the invention is shown somewhat in detail in FIGURE 8 and will be described later The random access memory module 50 includes a somewhat standard parity checking circuit 52 schemati 75 cally illustrated in FIGURE 1 In this manner, information to and from the random access memory chips will be checked for parity in accordance with standard practice to determine an error In practice, module 50 employs 80 random access solid state memory chips with a capacity of 4,096 eight bit words In this module, an external battery supply is used for retaining the information or data at the several locations on module 50, until the infor 85 mation or data is changed intentionally by operation of controller A in a manner to be described later The semiconductor memory technology used in module 50 is static N-MOS random access technology The 90 module 50 is addressable for both reading and writing by the logic on lines A-A,,, which address selects the desired address of the RAM module and directs the eight bit word from that location in parallel onto data 95 lines D,,-D 7 The DBINP logic and the R/W logic determines whether or not the data is being inserted or read from module 50.
Operation of a random access memory in conjunction with a microprocessor or other type of 100 digital programmable controller is known and various systems could be employed.
In addition to the PROM module 40 and the RAM module 50, it is possible to provide additional memory which may be in the form 105 of PROM and/or RAM The parity circuit 52, in practice, is of the type which provides a nine bit word and circuitry necessary to generate and check one bit of odd parity for each word When an eight bit word is written 110 into the memory, parity generator tests the word and generates a ninth bit which will be either a logic 1 or a logic 0 such that the resulting nine bit word will always contain an odd number of logic 1 conditions When a 115 word is read from the memory, parity check circuitry checks to be certain that the word still contains an odd number of logic 1 signals.
If the check circuit encounters an even number of logic 1 signals, the processor is interrupted 120 in accordance with standard microprocessor practice Other parity checking circuits or systems could be employed so that errors in the accessed information can be detected.
Programmable controller A employs a 125 standard microprocessor which has eight data terminals and sixteen address terminals In this manner, an eight bit word or byte can be serviced simultaneously by the microprocessor.
This capacity provides distinct advantages 130 1,584,681 with respect to a reading of several inputs and writing into several outputs However, the logic processing of a single bit in an eight bit word such as AN Ding, O Ring, or INVERTing, presents substantial difficulty A substantial amount of software programming is required to logic process a single bit of an eight bit word or byte This requires memory space and extensive programming This disadvantage is even more serious in controlling machines and process because a great number of simple logic functions are required In duplicating a standard relay logic diagram or ladder diagram much of the processing is logic processing of single bit information Thus, to process this single bit information with an eight bit data capacity drastically increases program storage space and control complexity.
For instance, when a single input is to be compared with a single output, the use of eight bit input information is a disadvantage When memory addresses or binary coded data is being transferred or processed, then the large number of data lines is beneficial To overcome logic processing disadvantages caused by increasing the capacity of the microprocessor, there is provided circuitry for obtaining one bit information which can be logic processed on a preselected data line, such as line D,, in a manner similar to a single bit data processor.
Thus, it is a relatively simple process to AND, OR and INVERT logic at various inputs and outputs to provide logic functions which are rendered more complex with the advent of the expanded eight bit microprocessor To illustrate the use of both the byte and bit modes of operation, there is illustrated a byte input and output module 60 and a bit input and output module 70 Module 60 has a series of input words each of which has eight data bits These words are created by various inputs, such as thumbwheel network 62, which is illustrated in FIGURE 9 as thumbwheel units 62 a, 62 b.
In a like manner, the output words from module 60 are illustrated as display signals in a display unit 64, which in FIGURE 9 is illustrated as two output or display units 64 a, 64 b Thus, module 60 is used to input and output a byte of information as an eight bit word into various input or output locations.
A single bit of information is inputted or outputted from the system driver or module 70 on a single data line D, Thus, when a bit mode of operation is selected by circuitry the logic of line D only is processed The logic on the other bi-directional data lines is ignored To determine whether or not there is a single bit of information directed to the output units 80 through system driver 70, the system driver is controlled by the logic on the input line DBINP and the READ/ WRITE line R/W The details of this structure will be illustrated in connection with a detailed description of FIGURES 10 and
11 A power supply 12 provides five volts D.C for operation of the logic in system A and twelve volts D C for the operation of certain other components The 2 volt and 4 volt lines from the power supply 12 are used for retaining the logic of the RAM when 70 power is inadvertently interrupted These two lines are controlled by rechargeable batteries.
Of course, a variety of other power supplies could be provided in accordance with the desired power requirements of programmable 75 controller A.
CONTROL LINE DEFINITIONS.
Referring again to FIGURE 1, a number of control lines are illustrated as communicating between CPU module 10 and 80 the various other modules comprising the programmable controller system A These control lines are external of the CPU module; however, in many instances they correspond to or are logically associated with certain com 85 municating terminals on the 8080 Intel microprocessor used in the preferred embodiment of the present invention and as better illustrated in FIGURE 4 To appreciate the general operation of the preferred embodiment 90 of the invention, the basic function of each of the lines illustrated in FIGURE 1 will be described separately Throughout the specification the inverted form of a line designation indicates that a low logic condition, whether 95 pulse or continuous, is the true oryes» condition For instance, the READ/WRITE line labeled R/W indicates that the read condition is a logic 1 and the write condition is a logic 0 This convention is used in most equipment 100 employing microprocessors and similar digitally controlled numerical processingevices.
The synchronising signal line SYNC consists of a 10 Ons negative or low logic pulse indicating the beginning of each 8080 machine 105 cycle This pulse is not programmable and is used to latch the status word in each component or module which requires status information from the CPU for use during a total machine cycle which may contain one or more 110 words.
The external clock pulse + 2 is created by the CPU internal clocking generator and can be used to synchronize the operation of the various modules The signal may also be used 115 as an accurate time base In practice this clock has either a 2 0 M Hz or a 3 0 M Hz frequency.
The address lines A,-A,, are all logic 0 true, except for A,, The logic on these lines is used to provide the address to all memories 120 and I/O modules for controller system A.
These address lines are generally output lines from module 10; however, when using the direct access module 20, they are bi-directional and allow input of addresses to module 10 125 A is the least significant address bit in the addressing lines.
The DBINP line indicates the direction of communication of the data lines D,-D 7 This 0,8,8 control line is used to gate data onto the data bus lines from each of the modules of system A.
The R/W line is used in system A to gate data on the data buses to the addressed locations In view of the similarity between the BDINP line and the R/W line, they are generally used together The DBINP line is used to determine the direction of data flow and to gate the data onto the data buses The READ/WRITE line R/W is used to determine whether this data is written or read.
By providing these two control lines, the data on the data bus or lines Do-D 7 is stable during the reading and writing pulse on the R/W line.
The WAIT line is used in connection with the READY line These lines are communicated with the microprocessor, which allows an additional amount of time for reading slower memory or I/O (input/output) locations If during an addressed output, the module 10 does not receive a logic 1 condition on the READY line, the microprocessor will enter a WAIT state as long as the READY line is at a low logic In this state, a logic 0 is created on the WAIT line As soon as the READY input is received, the microprocessor passes out of the WAIT state and a logic 1 appears on the WAIT line This feature is clearly illustrated in FIGURE 3 which relates to the operation of the 8080 Intel microprocessor.
The INTE output indicates the content of an internal interrupt enable flip-4 flop 242 a on the 8080 microprocessor chip This internal flip-flop may be set or reset by enable and disable interrupt instructions and inhibits subsequent interrupt calls from being accepted by the microprocessor when the flip-flop is in the reset condition The internal flip-flop which is produced on the chip itself is automatically reset to disable further interrupts at the time T 1 of an Instruction Fetch cycle M 1 and when an interrupt has been accepted by the microprocessor This feature will be discussed in connection with the novel interrupt sequencing of system A in connection with FIGURES 4, 6 and 6 A.
The HLDA line is the Hold Acknowledge line This line shifts to a logic 0 when a HOLD REQUEST is acknowledged by the microprocessor MP This HOLD REQUEST is from the line HOLD REQUEST, as shown in FIGURE 1 The HOLD condition or stage of the microprocessor shifts the address and data terminals of the microprocessor to a high impedance state so that these terminals release control over the address lines AA 1, and the data lines D 0-D, These lines can be controlled by the access module 20 during programming and debugging The signal on the HILDA line begins at time T, for a read memory or input cycle For a write in memory or an output cycle or operation, the HLDA line is shifted at the clock period following the T, clocking period In practice and for the purpose of understanding the present invention, it is known that the signal on the HLDA line appears after a rising edge and 41 of the high impedance on the address lines and data lines occurs after the following edge of b 2.
The HOLD REQUEST line indicates that there has been an external request to shift the CPU, and more particularly the microprocessing chip, into the HOLD condition or state.
In this HOLD condition or state, external devices can control the address and data lines as soon as the CPU module has completed its use of these lines for processing the existing or current machine cycle Control is also relinquished by the CPU module over the DBINP line and the R/W line In other words, these lines may be controlled by the direct access module 20 for programming or other external control functions In summary, when a HOLD state is requested, the microprocessor shifts into the HOLD condition or state and gives an output signal on the HLD A line to indicate this HOLD condition This condition occurs after a certain amount of clean-up during a machine cycle being processed The HOLD condition or state comes into being at the next machine cycle and holds the existing internal logic or register conditions of the microprocessor chip.
A similar arrangement is used for the reset operation A Reset Request is created by the power supply 12 or by the direct access module 20 on the RESET REQUEST line.
When this request is received by module 10, the microprocessor is reset In this condition, the content of the internal program counter of the 8080 microprocessor is cleared After the reset pulse, the program will start a location word zero in the memory The internal INTE and HLDA flip-flops of the microprocessor chip are also reset The internal accumulator, stack pointer, and registers are not cleared When the reset condition is entered, the logic on the RESET line is shifted to reset the various flop-flops and other logics throughout system A This arrangement is used for starting controller system A into operation.
_ The bi-directional data buses or lines D,-D, provide eight bit data communication to and from CPU module 10 In addition, these lines are communicated with-the various memory modules and I/O modules The modules which perform only bit functions, as opposed to byte functions, utilise only one of these lines, at least for outputting data In the preferred embodiment this line is Do.
During the first clock cycle of each machine cycle of the microprocessor, the CPU module outputs a status word on the data line or bus Dp-D, This status word is an eight bit word which describes the current machine cycle In this status word, the D, line, in the preferred 1,584,681 q Il U embodiment, is the least significant bit The present invention relates to a program controller having a microprocessor of the type utilizing eight bits of data; however, a different number of data bits can be employed without departing from the intended scope of the invention With an eight data bit microprocessor the status word can have eight bits generated by the microprocessor according to the instruction or command received from the program.
In one aspect of the invention, a byte of information or data may be processed, or selectively, a single bit may be processed upon a selected one of the multiple, bi-directional data lines or buses.
In microprocessors now available, there is an interrupt capability which is briefly described above An INTERRUPT capability of the microprocessor allows it to store its present position in a program, jump to a called subroutine, process the subroutine and jump back to the proper location in the program that was being previously processed To perform this function, the microprocessor has an INT input and module 10 has several interrupt request terminals TNT 0-INT 7.
Logic on the INT terminal shifts the microprocessor into the interrupt state At that time, the INTE terminal (TATE line) is energized to prevent subsequent interrupts, until the selected subroutine has reset the INTE terminal at the proper time A higher priority interrupt can take over operation of the controller before a lower level priority interrupt subroutine is completed, if the INTE has been reset by the processed subroutine In the past, processing systems utilizing the microprocessor have involved the capability of receiving only a finite, relatively limited number of interrupt requests This limitation has been dictated by the limitations of the various codes available for subroutine selection or «call» The present invention employs a system which includes eight interruput inputs which will shift the microprocessor into the interrupt state In FIGURE 1, interrupts TINT 0-INT 3 and INT 5-INT 7 are illustrated In practice, these interrupts are assigned to external conditions, terminals or parameters, which may be inputs or outputs The priority of the interrupt requests is in reverse order to the numbering, with the highest priority having the lowest number.
The lowest priority has the highest number; therefore, the PWR condition, which is a logic 0 when power has been turned off, is the highest priority interrupt In this condition, irrespective of other interrupt conditions, the program will shift into the «power off» subroutine which is found at a selected position in memory, which in practice is octal 010 In practice, the next interrupt input is the BOOT which creates interrupt request INT 2 to a location in memory In this manner, a minimum program is available for initial operation of system A This initial minimum program is located at octal 020 of memory and is «called» by various means schematically represented as a push-button in FIGURE 1 Interrupt 70 request INT 3 is the module interlock and parity check condition, which is operated in accordance with known practice to maintain continuity of the various modules As will be explained later, the INT 4 interrupt request 75 is a real clock interrupt request, which shifts the program to the octal 040 position in memory This will be described in more detail with respect to the interrupt functions of system A INT 5 is a communication interrupt, 80 in the preferred embodiment of the invention.
This interrupt generates a location octal 050 in memory This allows communication from external means, such as the direct access module 20 The interrupt INT 7, which has 85 the lowest priority, places the microprocessor into the interrupt state to read or write from external devices, such as thumbwheels, lights, switches and visual display devices This leaves INT 6, which is used with modules’30, 32 and 90 34 to expand the amount of interrupt capability in system A, in accordance with another aspect of the present invention This aspect will be described in more detail later ITV 6 output acknowledges the receipt and processing of an 95 INT 6 interrupt request This signal line remains at a low logic while the interrupting device transmits a call from one of the modules 30-34 to the CPU module i 10 The call instruction is transmitted synchronously with 100 a 42 clock signal and provides the address in memory to which a call is placed during a selected additional interrupt provided by the add-on modules, only three of which are shown 105 This description of the basic lines or command paths directed to and from CPU module will be sufficient for a full appreciation of the invention which contemplates certain improvements in the CPU module 10 and various 110 selected modules comprising the schematically represented system A, as shown in FIGURE 1 These outputs and input lines correspond in nomenclature used by Intel Corporation for its 8080 microprocessor chip used in the 115 preferred embodiment of the present invention.
Corresponding nomenclature is used in other commercially available microprocessor chips which have the characteristics set forth generally herein as background and explana 120 tory information well known in the field The characteristics of this microprocessor chip are well known Module 10 could produce an ISTROBE control line for software production of a strobe to the various inputs and outputs, 125 if desired.
STATUS WORD FOR MICROPROCESSOR.
In the microprocessor utilized in module 10, 1,584,681 ^ AI 8 as in most microprocessors, a status word appears on the data terminals at the first of each machine cycle This status word indicates the operation to be performed by the microS processor during the current machine cycle.
Although a variety of status codes and conditions could be provided, the ten status words of the Intel 8080 microprocessor are illustrated in the chart shown in FIGURE 2 The data terminals have the coding indicated in the vertical columns for each of the various types of machine cycles during the initial part of the cycle The binary status code on terminals DI)D, is latched into the status latch SL shown in FIGURE 4 at the initial synchronization pulse in the SYNC line.
When the machine cycle is an INSTRUCTION FETCH, the coding on data lines D,-D as latched into status latch SL will be 01000101 The binary code on each of the data terminals during the initial part of the rvcle indirates a condition, as set forth in the status information column In accordance with Intel 8080 terminology, the logic of data bus D, is the interrupt acknowledge (INTA) This logic indicates whether an interrupt request has been acknowledged and can be used to gate a restart instruction onto the data buses when the DBIN or DIBINP line is active The logic on the D 1 line during the initial part of the machine cycle indicates whether or not there is a writing function.
This status is labeled Wand is a logic 0 when the machine cycle will write data into memory or into an output location When a logic 1 appears on the D 1 instruction line and is latched at the status latch, a memory or input location is read A logic 1 on the D, line during the instruction read portion of the cycle indicates that the address buses A 0-A 1, hold t’Je push down stack address from the stack pointer of the microprocessor This status labeled STACK, is active during only a STACK READ or a STACK WRITE machine cycle.
When a logic 1 appears upon the D, data line during the initial micro cycle of a machine cycle, this indicates that HALT has been acknowledged As can be seen in FIGURE 2, this occurs during a Halt Acknowledpe machine cycle or an Interrupt Acknowledge While Halt machine cycle Otherwise, during the initialmicro cycle, which is labeled T, in FIGURE 3, this data bus D 3 is a logic O During an output function, the logic on line D, is a logic 1 This occurs when the machine cycle is an Output Write cycle A logic 1 on the D, data line indicates that the address buses contain the address of an output device and that the data but will ultimately, during the cycle, contain the output data when the R/W line is at a logic 0 The logic on data line D, provides a signal to indicate that the microprocessor is in the FETCH cycle for the first byte of an instruction Thus, a logic 1 on D, during the initial portion of the machine cycle indicates that an instruction is to be obtained from memory or another location.
This is the status M, illustrated in FIGURE 2 The status INP is contained upon data line D,; A logic 1 on this line during the status portion of a machine cycle indicates that the address buses contain the address of an input device and the input data should be placed upon the data buses when the DBIN output of the microprocessor is active This output of course corresponds to the DBINP line of the CPU module 10 NEMR logic appears upon the D, data bus A logic 1 on this bus during the status information portion of the cycle designates that the data buses will be used for a memory read operation.
During the status portion of any cycle, the coding upon data lines D,-D 7 are the codes indicated in FIGURE 2 This coding is an inherent function of the 8080 microprocessor and is set forth only for the purpose of a more convenient arrangement for understanding the preferred embodiment of the present invention.
ADDRESS CODING 90 Referring now to FIGURES 2 A, 2 B and 2 C the coding of address lines A,-A,, is set forth for three separate types of addresses In FIGURE 2 A, an address is shown for an input/output location associated with the 95 chassis of system A shown in FIGURE 1.
Basically, in system A, a chassis location is a module in the main structure of the system and includes most input/output locations, except the external locations controlled by 100 common module or drive 70 and the individual driven modules 80 The logic of address lines A,,, A,, is a logic I when an input/ output (I/O) unit or location is addressed by lines A,-A 1, The logic at line A,: selects 105 either true or false data In other words, a logic 0 at line A 1, for an input/output address indicates a true condition for the addressed information.
As will be explained later, system A has 110 the capability of operating in a bit or byte mode for input and output information or data In the bit mode, a logic 1 appears at address line A 12 for either a chassis address, in FIGURE 2 A, or in a track address, in 115 FIGURE 2 B A logic 0 in line A 12, indicates that the input or output of data is to be done in a byte mode Address bit or line A 11 selects either a chassis address or an external track address A logic 1 at line A 11 indicates that 120 the address is a chassis address as opposed to a track address, which has a logic 0 in the A,1 bit or line When the address is a chassis address, a particular word or byte of information is addressed by lines A,-A,0 The 125 chassis location is addressed by lines A,-A, and the particular output or input, labeled as a «module» in FIGURE 2 A, is addressed by lines A,-A,.
1 l 1,584,681 As previously mentioned, external locations for input and output data may employ the addressing arrangement illustrated in FIGURE 2 B This arrangement sets forth an address for the tracks, i e individual input/output locations, indicated by modules 80 in FIGURE 1 These locations, in the illustrated embodiment, are single bit input and output terminals or units, such as on-off switches, lights and relays In this second addressing arrangement, a logic 0 is found at address line Al Otherwise, the addressing is similar to that illustrated in FIGURE 2 A.
A representative memory address arrangement is shown in FIGURE 2 C In this addressing scheme, a module is selected by the more significant address lines A 12-A 15.
If four memory chips or units are used on a module, only lines A 1,,-A,, are used for addressing the particular chip or unit If eight chips or units are used, address lines A,-A,,, are employed for addressing one of the units This determines the number of additional lines available for location addressing in the particular unit If there are four units, 1,024 eight-bit words are available for addressing by lines A,-A 9 within such memory units If eight memory units are employed, then lines A,-AA 8 are available for word addressing and 512, eight-bit words can be located in each memory unit See FIGURES 7-8 for an example of the addressing network.
Other addressing schemes for lines A,-A,, could be employed; however, the addressing arrangement illustrated in FIGURES 2 A2 C is employed in the preferred embodiment of the present invention and is utilized throughout the present description of the preferred embodiment.
BASIC INSTRUCTION CYCLE FOR CPU MODULE.
The microprocessor employed in the preferred embodiment of the present invention has a basic instruction cycle as illustrated in FIGURE 3 The microprocessor is timed by the input pulses q,1, 02, the first of which determines the initial portion of a micro cycle label T,-T, The micro cycle T, is set forth for the purpose of designating a wait condition which was described earlier iwth respect to the interplay between the READY logic and the WAIT logic If a memory is not ready, then the microprocessor goes into a WAIT state represented by a logic 1 on the WAIT line, i e a logic 0 on the WAIT line When the memory is then ready, the WAIT line shifts back to a logic 0 and the microprocessor continues into micro cycle T 3 For each machine cycle there is a synchronizing pulse labeled SYNC This synchronization pulse corresponds essentially to the internal synchronizing pulse of the 8080 microprocessor The pulse has been shaped somewhat The pulses shown in FIGURE 3 are those entering and leaving the module 10; however, they are basically the pulses from the microprocessor itself The logic correspondence between these two pulses, the CPU logic of FIGURE 3 and the actual microprocessor logic, is apparent from the circuit shown in FIGURE 4 During each of the micro cycles, the function set forth at the lower portion of FIGURE 3 takes place.
Sometimes three micro cycles are used In other instances, many micro cycles are required for a particular instruction For instance, in an Intel 8080 when memory is accessed, as many as eighteen micro cycles may be used in normal operation During the T 1 micro cycle of a machine cycle, the logic on lines Do-D, is read The address on lines A,-A 1,, (at the address terminals of microprocessor MP) is provided by either the internal program counter or another register within the microprocessor This address information is placed into the program counter or register during a prior machine cycle The DBINP line corresponds to the internal DBIN line.
This determines whether or not data is placed on the data lines Do-Dr, in a subsequent portion or micro cycle of the machine cycle.
During the initial portion, the data at the data terminals of the microprocessor indicates the type of cycle to be processed during the machine cycle which may require several micro cycles The logic on the lines designated in FIGURE 3 changes according to the type of instruction to be processed in accordance with well known practice in the microprocessing art These logic conditions will be employed throughout the description of the preferred embodiment of the present invention.
CENTRAL PROCESSING UNIT (CPU).
Referring now to FIGURE 4 which is divided into three separate views labeled 4 A, 4 B and 4 C These views are to be taken together and form the basic components of the central processing unit (CPU) module 10, as illustrated in FIGURE 1 The various components of the CPU module will be described with respect to the showings of FIGURE 4 The initial description shall involve the normal input and output of information to and from microprocessor MP together with certain peripheral equipment.
Thereafter, specific features of the preferred embodiment of the invention will be discussed in detail with respect to other components contained in FIGURES 4 A-4 C.
As each successive program step or command is called by the microprocessor, the command indicates the type of cycle to be performed If it is an input or output command, the data is applied to the data lines and the storage or output location is directed to the microprocessor on the data lines, which requests two bytes for the sixteen bit address.
In accordance with general practice an address 1,584,681 1 8 to be used for input or output (as shown in FIGURES 2 A-2 C) is stored at adjacent positions in memory By processing the total program, and any called subroutines, controller A is updated periodically at a rate which may be once each 1 0 ins Consequently, controller A can change conditions, read different results and perform all control functions in what appears to be instantaneous lo action In other words, if a switch is closed to give an input change that, by the program, demands an output change, the program will make the necssary change in the ouput during a single run of the program being processed which may take only about 1 0-l O ins.
Referring now to the CPU module shown in FIGURE 4, a divide by nine divider chip is controlled by a crystal 102 to produce a 18 megahertz input which is divided by nine by chip 100 to produce ‘1 b 1, 02 The SYNC line 104 from microprocessor Mi P is directed to the chip 100 to produce a shorter and more distinct SYNC pulse in line 106 Throughout this description, an inverted form of logic indicates that the negative condition, or low logic condition, is true Thus, the SYNC line is a logic 0 when true, i e at synchronization caused by a pulse in line 104 Double inverters 110, 112 control a line 113 which is the synchronizing output for module 10 At the output, a network 1,14, which is set forth in detail at line 113, is used at the various inputs and outputs to allow external control and positive control of the various leads and buses of module 10 The synchronizing line 106 is used in other components on module 10, for purposes to be hereinafter described The signal of line 106 is a pulse of approximately ns, whereas the SYNC pulse from microprocessor chip MP is approximately 500 ns in length This provides a sharper synchronizing pulse for further processing as illustrated in FIGURE 3.
The TTL 2 line is a clocking pulse corresponding to the other b 2 line This clocking pulse is inverted by inverter 122 to produce the inverted form of the clocking pulse in output line 124 This second 02 output is used to control various logic gates throughout module 10 and the other modules forming the control system A, as schematically illustrated in FIGURE 1.
A Reset Request pulse, as previously described, is applied to crystal control chip or divider 100 through line 130 This Reset Request line produces the reset output in line 131 which is inverted by inverter 132 to produce a RESET pulse in line 134, which resets certain logic on module 10 Line 134 also activates a NAND gate 140 to give a logic 1 on the main RESET line 143 In accordance with one aspect of the invention, the RESET line 143 can be activated by a line 142 which is the programmable OUT 1 command line from a special instruction decoder which will be described later and which is shown in more detail in FIGURE 20.
A Hold Request pulse or signal on line 160 creates a logic 1 at the HLDA or Hold Acknowledge terminal of microprocessor MP 70 This output signal appears in line 164 Inverter 166 produces inverted logic, or HLDA in line 165 This inverted logic is again inverted by inverter 168 to produce a HLDA logic in line 169 to disable certain logic cir 75 cuits on module 10 during a HOLD condition or state for the microprocessor MP The logic from line 169 is inverted by inverter 170 to produce a HLDA logic in output line 172 which is used in other modules of controller 80 system A.
The previously discussed DBINP line is controlled by the DBIN terminal of microprocessor MP which determines the logic of line 180 Inverter 182 inverts the DBIN logic 85 to a DBIN logic in output line 184 NAND gate 190 converts the logic on line 184 and this appears as the DBINP logic Thus, the DBINP logic is a combination of the DBIN logic and the Hold Acknowledge condition 90 of microprocessor chip MP In this manner, during the HOLD condition, the DBINP line is held to a high impedance state to allow access and control by direct access modile 20.
Under normal circumstances, the DBIN and 95 DBINP logic are correlated and inverter 194 inverts the PBIN logic on line 184 to produce the inverted logic, or DBIN, on line 196.
The DBIN line indicates whether or not data should be applied to the data bus D,-D 7, as 100 previously described.
The READ/WRITE line or terminal RJW of microprocessor MP is connected to line The logic of this line is inverted by inverter 202 to produce an inverted form of 105 this logic in output line 204 Inverter 206 reinverts this logic to produce the standard R/W logic in output line 208 In a like manner, the interrupt enable logic at the INTE terminal of microprocessor MP controls 110 the logic at line 210 This logic is inverted by inverter 212 and appears in the inverted form in output line 214 A further inversion by inverter 216 produces the non-inverted form of the INTE logic in output line 218 115 In a similar manner, the logic on the WAIT pin or terminal of the microprocessor MP is connected to line 220 which is inverted by inverter 222 to produce an inverted WAIT logic in output line 224 The input 240 to 120 microprocessor MP is the READY in Put which is used in connection with the WAIT output for the purpose of allowing additional time to access information in slower memory units.
The INT (Interrupt) logic is applied to chip 125 or microprocessor MP at the INT pin or terminal by line 242 The source of this logic will be described in connection with the interrupt aspect of the present invention.
Interrupt signal is produced by the interrupt 130 1,584,681 112 14,8,8 14 flip-flop 244 which will be set and reset in accordance with the subsequent discussion of the interrupt operation.
Upon receipt of a signal on line 242, microprocessor MP, in accordance with standard practice, goes into the INTERRUPT state.
This stops the internal program counter and shifts the data lines to receive a CALL instruction to a particular subroutine coded on the data lines or terminals D,,-D,, This subroutine stored in memory will handle the specific interrupt condition and then relinquish control over the microprocessor for subsequent processing of the interrupted program in the standard manner The INT signal resets the internal interrupt flip-flop 242 a to place a logic 0 on the INTE terminal or line This prevents creation of any other interrupt signal.
A program instruction or command designated EI which is the Enable Interrupt instruction is contained in the interrupt subroutines to then set the internal flip-flop 242 a for acceptance of higher priority interrupts or additional interrupts after one has been acknowledged.
This is standard operation for a microprocessor and is incorporated in the 8080 Intel microprocessor MOS chip.
When a code is to be sent along the address lines to various modules for selection of specific outputs, inputs and memories, the logic or code appears on the A,-A,, lines For a reason to be described later, the A 1:, logic is inverted by inverter 250 so that lesser used portions of certain memories are used in certain random storage operations of the microprocessor controller A Under normal operating conditions, the logic of addresses A,-A,, passes through logic transfer devices or control gates 252-258 and onto the buses A,-j A,4 and A 1, These devices or gates produce an inverted output to invert the address lines; therefore, since in the logic used the A:,t input is inverted, the A,5 output of module is in non-inverted form The other address outputs are in the inverted form for subsequent use by controller system A Gates 252-258 are standard logic transfer integrated circuit gates or transfer devices of the type which retains logic connection between the individual «OUT» terminals and the «BUS» terminals.
For instance a logic 1 on the «BUS» A 15 terminal produces a logic 0 on the A,, «OUT» terminal A logic 0 at both E terminals places the «BUS» terminals, under the control of the «IN» terminals A logic 1 at either E terminal allows the «BUS» terminals to float to a logic 1 and removes control of these terminals by the «IN» terminals.
If the HOLD ACKNOWLEDGE (HLDA) logic on line 169 is high gates 252-258 are disabled at the left terminal E and the «BUS» terminals float toward a logic 1 Thus, the «BUS» terminals and the external A,-A,5 lines can be controlled by external logic, i e.
from the direct access module 20 If the IN+ OUT line 259 is high, gates 252 and 254 are disabled at the right terminal E The output or «BUS» terminals of these gates are allowed to float toward a logic 1 when the gates are disabled This disabled state allows control by the random access module 20 during the HOLD state with gates 252-258 disabled.
Also, the disabled state of gates 252, 254 allows control by special instruction decoder during certain programmed outputs of the special instruction decoder Under normal operating conditions, without a programmed IN or OUT command, address logic passes through gates 252-258 to the system A.
Data on external data buses D,-D 7 is directed to the microprocessor MP through gates 260, 262 shown in FIGURE 4 B These gates or transfer devices operate in a manner similar to gates 252-258 Logic on the DBINP line 192 controls the direction of information flow through gates 260, 262 The logic 1 input signal on line 192, releases the «IN» terminals and allows control of the «BUS» and «OUT» terminals by lines Do,D, These gates are disabled in the HOLD state so that the data lines at the right hand side can float toward a logic 1 for control by the direct access module 20, as shown in FIGURE 1 Data at terminals Do-D, of microprocessor MP is directed to gates 260, 262 by gates 280, 282, shown in FIGURE 4 C.
As can be seen in FIGURE 4, the designation Do,-D 7 relates to data lines or data terminals and the logic or data on these data lines or terminals may be controlled by data transfer gates or devices In other words, logic on the Do, terminal of the microprocessor may be directed to the output D, line of module through gate 280 and gate 262 Thus, the several interconnecting lines are marked D.
even though they are not always being used to transmit the D logic, which may be conducted through an alternate path of D, lines These paths are controlled by gates or transfer devices and the operation of these gates or transfer devices is hereinexplained This same concept is used for the address lines A,,-A,,.
As so far described, the microprocessor MP can produce addresses in the address lines and receive or transmit information on the data buses Do-D 7 Hereinafter, certain features of the present invention will be described to modify the normal operation of inputting data and outputting data at the prescribed addresses, be they input, output or memory addresses.
Address control gates 252, 254, 256 and 258 are similar, commercially available IC chips which are enabled by a logic 0 at both enabled terminals E The output, «OUT», terminals of these chips are always connected to the inverted «BUS» lines for concurrent, inverted logic Consequently, at all times the «OUT» terminals and their connected leads 1,584,681 1 1 1 «read» the logic of the «BUS» or address lines A 1,-A, When a logic 0 appears on both enabled terminals E, the input side «IN» of each gate is connected in inverted form to the «BUS» side of the gate to control the lines on the «BUS» terminals A logic 1 on the HLDA line 169 isolates the «BUS» terminals from the «IN» terminals and allows the «BUS» terminals to float and be controlled by logic applied to the «BUS» terminals.
Thus, during a HOLD state of microprocessor MP, the logic on the addresses A,-A,, appears on the output leads «OUT» from gates 252-258 When a logic 1 appears on.
the IN+OUT line, the right hand enable terminal E disables gates 252 and 254 Thus, during an IN or OUT programmed command from the special instruction decoder 150, gates 252, 254 are disabled This creates a logic 1 at the «BUS» terminals if there is no external data applied to lines A,-A 1, A logic 1 appears in line A 1, and a logic 1 in lines A 8-_A 14 Thus, address A 15 is a logic 1 and addresses A,-A 14 are at a logic 0 Gates 256 and 258 are not affected by the logic on the IN + OUT line 259 and, thus carry the microprocessor addresses appearing on terminals Ao-As of the microprocessor, except during a HOLD state In this manner, any address during a programmed IN or OUT command, which will be explained in detail later, will appear at an address of 32 K plus the coding on lines A,-A,.
Gates 260, 262 operate in the same manner as gates 252-258 During an input operation, the DBINP line 192 shifts to a logic 1 This removes the » IN» terminals from control of gates 260, 262 The inverted «BUS» logic is, thus, controlled by external lines DI-D 7 and is applied to data gate 270 through gates 260, 262 At other times, a logic 0 appears on the DBINP line 192 and gates 260, 262 are enabled to connect the input «IN» terminals to the «BUS» terminals so that the external lines are controlled by lines DI-D, from gates 280, 282 Gates 280, 282 operate somewhat differentely than the previously explained commercially available transfer gates Gates 280, 282 are IC chips which include an enable terminal E and a direction terminal «Dir».
A logic 0 enables the operation of these gates.
A logic 0 on the direction terminal «Dir» connects the input «IN» terminals with the «BUS» terminals A logic 1 on terminal «Dir» connects the «BUS» terminals to the output terminals «OUT» or to the lines connected to these terminals Under normal circumstances, a logic 1 appears at the direction terminal «Dir» for outputting data through gates 280, 282 to the data control gates 260, 262.
During an interrupt condition, which will be described later, the direction terminal will have a logic 0 which will connect the input terminals «IN» to the «BUS» terminals to produce a restart subroutine call to a selected address.
When there is an INT 6 condition, there is a logic 0 in INT 6 line 290 This produces a logic 1 in output 294 of inverter 292 In this manner, IC chips 280, 282 are disabled and there is no logic or data transfer there 70 through In these chips, the disabled condition blocks all logic transfer so that a subroutine address can be sent from an external location during the INT 6 processing condition of microprocessor MP This will be described in 75 more detail with respect to the interrupt operation of the module, as shown in FIGURE 4.
LOW IMPEDANCE ADDRESS AND DATA BUS.
By using the integrated circuit chips or 80 gates 252-262, the lines connected directly to the microprocessor are separate from the lines external of module 10 The external address lines and external data lines are low impedance operating lines The lines connected 85 to microprocessor MP are high impedance lines in accordance with standard microprocessor design Thus, the integrated circuits or chips forming gates 252-262 convert the normally high impedance microprocessor lines, 90 such as used in an 8080 microprocessor, to low impedance lines externally of module 10.
High impedance lines of the type connected directly to the microprocessor chip produce high voltage changes upon exposure to electro 95 magnet radiation By using the low impedance external lines, in accordance with one aspect of the invention, any inadvertent electromagnetic radiation produces high induced currents, but only low voltage surges The logic of the 100 system shown in FIGURE 1 is generally voltage responsive Thus, the low voltage created by inadvertent, stray radiation to the external lines does not tend to affect the logic of system A This is true even if the external lines are 105 relatively long and act as somewhat efficient antennas When using the 8080 chip, the address terminals and the data terminals present an impedance of approximately 2 5 K ohms This produces 1 0 milliamp sink for 5 0 110 volt D C logic The impedance of each output of gates or chips 252-262 is approximately 2 ohms and produces a desired 50 milliamp sink for the controlled logic because of resistor networks 114 on each control line 115 In practice, it is desired that the low order impedance of the lines external of the module be less than about 1 % of the high order impedance of the microprocessor terminals The general range of this ratio should be 0 1 % to 120 1 % This produces a good noise immunity between the microprocessor chip and the external controlled logic of the system A.
BIT MODE OPERATION.
As so far described, the programmable con 125 troller system A and more particularly the CPU module 10 shown in FIGURE 4, operates on a byte basis wherein the data 1,584,681 -9 L ^ v 154,8 16input and data output of the microprocessor MP is an eight bit word, or byte In this type of system, masking techniques and data shifting are required to logically process a specific bit of a byte or word Thus, if two inputs are to be AN Ded, the inputs must be masked and/or shifted to produce the inputs at the same location within the microprocessor This requires a substantial amount of software In accordance with one aspect of the present invention, a microprocessor capable of multiple data bit process is provided with a bit mode of operation This aspect of the invention allows a byte to be introduced into CPU module 10 on the external bidirectional data lines Do-D 7 The specific bit is selected on the module and directed on a selected data line, such as line D, connected to the microprocessor Ml P Thus, bit data or information can be introduced into the microprocessor at a specific location and logically processed without requiring masking and shifting of the data within the microprocessor by extensive software programming The software to AND two normally opened switches l LS and 2 LS to produce a relay coil condition at SOLA requires the software program shown in FIGURE 12 if the data is introduced into module 10 upon a known, but random data line, and is processed in a byte mode as is standard practice with microprocessor control systems In accordance with one aspect of the present invention, a bit mode operation is provided on the basic CPU module 10, which operation produces a relatively simple software program for AN Ding switches l LS and 2 LS This more simple program is shown in FIGURE 13 The components necessary for shifting from a standard byte mode of operation to a bit mode is schematically illustrated in FIGURE 14 In FIGURES 2 A and 2 B, the bit mode of operation is addressed by placing a logic 1 in address A,2 Referring to FIGURE 1, module 70 produces only data on line D,; therefore, this data is only bit data and processed accordingly Information from the I/O chassis module 60 is introduced into CPU module 10 on lines Do-D 7, which is a byte of eight separate bits When this type of data is received, the bit mode of operation may be selected to process a selected bit of information from the input byte By employing this conversion system in the CPU module, a known bit of input data can be processed in bit mode even though it is contained in an input byte.
FIGURE 14 illustrates schematically a logic circuit for converting a byte of information into a selected bit of data for subsequent processing by microprocessor MP In this schematic representation, a data selector 300 is connected to data lines D,-D,, which carry an eight bit word, or byte Address lines A 8-A,, control terminals, A, B, C of selector 300 to select one of the eight bits of informiation or data contained on the input byte. This selected bit in the true condition appears
at the T terminal, or line 302, and the false condition of the bit, i e the inverted data, appears at the F terminal, or line 304 Thus, 70 the selected bit of information or data from the input byte is contained in inverted form on line 304 Inverter 306 directs a logic 0 to gate 130 when the logic of line 308 is a logic 1 This is controlled by address lines A 18 75 A,, which are all at a logic 1 when the inverted form of input/output (I/O) information is required AND gates 3,10, 312 direct either the true or the false information to gate 314, according to the logic on line 308 80 which is controlled by the input or output address A,, The NOR gate 314 has an output 316 which therefore carries a logic which is the true or false condition of a selected bit which is decoded by the logic on line D,-D, 85 of data selector 300 The data to microprocessor MP is contained on the output of NAND gates 320-0 to 320-7 The NAND gates 320-1 to 320-7 are controlled by the lines DI,-D 7 lines When the bit mode of 90 operation is contained at address line A,2, a logic 0 appears in line 322 This inhibits gates 320-1 to 320-7 Thus, a logic 1 appears in D,-D, lines and has not effect upon the 8080 data Inverter 324 converts the BIT 95 logic and applies it to gate 320-0 This information combines with the logic on line 316 to produce the desired logic in line D, at the microprocessor Thus, the Do line carries the desired logic to the microprocessor for pro 100 cessing in a bit mode This function will be described in more detail with respect to the actual circuitry illustrated in FIGURE 4 although the schematic circuitry of FIGURE 14 is representative of the basic concept em 105 ployed in module 10 for byte information into the bit operation.
Referring now to FIGURE 15, there is illustrated a schematic circuit to be used at various modules to accept the logic on line 110 Do which is the bit processed logic from the microprocessor, i e from CPU module 10.
This single bit logic appears on line Do which is inverted by inverter 330 and directed to an addressable latch decoder 332 The address 115 lines A 8-A,, at terminals A, B and C produce the logic from lines Do at the decoded output B,-B, of the addressable latch decoder 332 A logic O on the R/W line produces a logic 1 at the output of inverter 333 This 120 enables NAND gate 334 to enable the addressable latch or decoder 332 upon receipt of a module enable signal at line 335 Thus, when the particular module is addressed during an output or writing operation, a selected output 125 location receives a bit of logic from the Do line This type of logic can be used at various modules to output the processed bit of information and apply it to a single bit addressed output location Of course, this circuit would 130 1,584,681 be appropriate for either a memory or an output module In FIGURE 9, an output circuit similar to the circuit shown in FIGURE 15 is used in module 60 This bit mode output operation will be discussed in more detail with regard to its use on a byte input/output module, such as module 60.
Referring now to the actual input circuitry used in the preferred embodiment of the invention for selecting bit mode operation for input byte data, the logic on the BIT line 322 is conrolled by NAND gate 340 shown in FIGURE 4 This BIT gate receives logic from address lines A 1 r, A 14 and A,2 This gate produces a logic 0, or a bit mode signal -BIY, in line 322 when the address in an input/output address and bit mode is requested by address line A 12 The INV NAND gate 342 is controlled by the logic of address lines A 12, A 14 and A,3 The output 344 of gate 342 is the INV line The BIT line 322 and the INV line 344 combine at NOR gate 345 to produce the output 308, schematically illustrated a more simplified form in FIGURE 14 This output on line 308 is a logic 1 when there is a byte mode and inverted logic is requested If line 308 has a logic 0, gate 310 is actuated to produce the true form of logic at the input of gate 314, previously discussed in connection with the schematic showing of FIGURE 14 The output of gate 312 is a logic 0; therefore, line 316 includes the inverted form of the bit logic selected by selector 300 A logic 1 in line 308 produces the opposite effect and transmits the inverted form, or the false logic, in line 316 Thus, line 316 contains the input information or data which is to be used by the microprocessor during inpu of the bit mode of operation.
The BIT line 322 also controls data input or steering AND gates 340-1 to 340-7.
When the address indicates a bit mode of operation, a logic 0 appears in line 322 and these gates are disabled at a logic 0 output.
Line 322 also controls NAND gates 340-0 which regulate the Do input data line from gate or transfer device 262 A logic 0 in line 322 places a logic 1 at the third, or steering, input of gate 346 The other two inputs are the IN 3 and line_ 316 Thus, when there is no programmed IN 3 signal from the special instruction decoder 150, i e a logic on the IN 3 line, bit mode has been addressed, i e.
a logic 0 in the BIT line 322, the logic of line 3; 16 is transmitted to the input of NOR gate 348 instead of the logic on the D line at the input of gate 340-0 This gate is disabled by the logic of line 322 Gate 348 is activated until the IN 3 signal is received from decoder 150 Thus, during normal operation gate 348 is active and the logic of line 316 is inverted and applied to the input DI O of data gate 270 This logic is strobed to the DO, terminal of gate 270 at a DBIN pulse from the microprocessor The selected bit of information or data is, therefore, directed by gate 348 to the D,, data bus or terminal of microprocessor MP during the bit mode of operation During normal operation, line 322 is a logic 1; therefore, gates 340-0 to 340-7 are all active and transmit data for transfer devices or gates 260, 262 through gate data 270 to the microprocessor during each input cycle during which a DBIN pulse is created and used by module 10 With respect to the logic on the D line, the logic is, inverted first by gate 340-0 and then by gate 348 to produce the desired logic state for used by microprocessor MP when processing byte data.
In summary, when the BIT mode of operation is selected, the specific addressed bit of an input byte is transmitted by a special network from data selector 300 to the D, line at the microprocessor Of course, other networks could be used for processing a single bit of information Also, data line D, was selected only for convenience and other lines could be used.
STATUS READ AT IN 3.
Special instruction decoder 150 is used to 90 provide a wide variety of hardwired signals which can be produced by simple programmed commands to the microprocessor, especially input or output commands This novel decoder operates from the status code of the micro 95 processor and will be described later in some detail; however, since gates 346 and 348 of the previously described circuit are controlled by the IN 3 output signal or pulse from special instruction decoder 150, it is appropriate to 100 indicate the operation of this particular hardwired program controlled signal from decoder A logic network 350 includes gates 352, 354 and 356 The output of these gates is illustrated in FIGURE 4 C as being the inter 105 rupt enable condition INTE, the memory interlock condition MEN INT, and the input/ output interlock condition I/O INT These gates are controlled by lines 218, 354 a and 356 a, respectively When there is an IN 3 110 instruction or signal from decoder 150, network 350 places the condition of the logic of the designated sources to the D 7, D, and D 2 input data lines, respectively, by-lines 352 b, 354 b, and 356 b 115 The IN 3 pulse is a logic 1 when true and appears at the output of inverter or NAND gate 359 An AND gate 360 controls the logic on data input gate 348 during the IN 3 instruction Thus, during IN 3, gate 346 is disabled 120 and gate 360 is enabled to read the logic on the PWR line 358 This line represents the condition of the power supply of system A.
It is seen that the status of several conditions of system A can be read on separate data lines 125 during the program IN 3 instruction or signal from decoder 150 If other information were to be read, it could be placed upon the available data bus lines, such as D, and D 4-D O Con1,584,681 v R 1,58 8 18 S sequently, gate 348, which is used for control of logic flow during a bit mode of operation, is also used as a data selector for reading a condition of system A during an IN 3 instruction from special instruction decoder 150.
SPECIAL INSTRUCTION DECODER.
The special instruction decoder 150 is shown in more detail in FIGURE 20 and the peripheral equipment utilizing this decoder is shown in FIGURE 4 The purpose of the instruction decoder is to add instructions to a CPU module externally of the commercially available MOS chip microprocessor, but using information or data generated by the chip upon selected software commands As noted in FIGURE 2 if a certain instruction command is given to the microprocessor, a known status code appears at the bidirectional data terminals or lines D,,-D, During the synchronization pulse of each T 1 micro cycle shown in FIGURE 3, a status latch SL (FIGURE 4 B) can latch the D,-D, status code at its output terminals for subsequent use during a selected machine cycle This is known practice in microprocessor systems and the logic on specific output terminals, such as the D,-INTA, can be used in the system The latched binary status code at the output of the status latch can be logically combined with selected address logic to produce usable signals that are created by a programmed command.
For instance, if a program command is IN 3, an IN 3 pulse is created Since this is an Input Read command, a logic 1 appears at the D 6 terminal of the microprocessor during the status word and at synchronization Address lines A,, A, contain a binary three This logic produces a logic 0 pulse at the IN 3 terminal of the special instructions decoder With an OUT command, a logic 1 appears at the D 4 terminal to produce an OUT command signal Consequently, by either an IN or OUT programmed command to the microprocesor, a special decoded signal can be produced to perform many hardwired functions on module 10 or in other parts of controller A This procedure could be used with other commands, except for those which are automatic such as Instruction Fetch, which occurs at each process step.
In summary, instruction decoder 150 provides output signals which can be generated in response to a software command The concept expands the versatility of programmable controller A so that certain signals can be created conveniently without extensive software implementation In other words, a simple IN 3 program step, produces an IN 3 signal.
As shown in FIGURE 4, the status code logic for each separate command of FIGURE 2, as they appear on lines D,-D, of microprocessor MP, are latched into the output of status latch SL The output code or logic, as shown in FIGURE 2, appears at the output of latch SL after a synchronization pulse of a given machine cycle In accordance with one 65 aspect of the invention, this status code or information, which is available on standard microprocessors, is used to create output signals in response to selected, simple software instructions In the illustrated embodiment, 70 signals are created whenever the machine cycle is for an input (IN) or an output (OUT) cycle A logic 1 appears at the DO 4 output terminal of latch SL when an output (OUT) signal is requested A logic 1 appears at output 75 DO, when an input (IN) signal is requested.
This concept is apparent from the machine cycle coding shown in FIGURE 2 Thus, whenever the machine cycle is an IN status or an OUT status, a logic 1 appears upon the 80 IN or the OUT lines as shown in FIGURE and FIGURE 4 These command or status codes are decoded to produce a series of necessary hardwired signals The output condition of latch SL also produces a logic 1 at lines 85 other than the IN and OUT lines For instance, a logic 1 at the DO, output terminal produces an Interrupt Acknowledge sign of INTA This places a logic 1 on line 362 for use in the subsequent INTERRUPT processing A logic 1 90 on the DO, line of the status latch produces a Halt Acknowledge signal HLTA in line 364.
When this happens, gate 365 is grounded to turn on panel light 365 a This light is also controlled by a WAIT signal in line 220 95 Thus, it is seen that the latched in logic or status code from the D(-D 1 lines at the output of latch SL is used to produce output signals for subsequent processing of information on the CPU module This expands the capa 100 bility of the system A over systems of the past which required extensive software for accomplishing the results obtained by decoding the standard status code and using it for output pulses or signals The outputs 0-7 of special 105 instruction decoder 150 as set forth in FIGURE 20 are outputs INO-IN 3 and OUTO-OUT 3, respectively The function of these programmable signals and the combined status code and address logic to obtain them 110 are set forth in the truth table of FIGURE 20.
If a software instruction of INO appears, this produces an address of A O x 0 and A,:= 0.
In addition, the IN line from output DO, is 115 a logic 1 This produces a pulse output from decoder 150 at the INO line As the logic on line A,, A, changes, it is possible to get four separate pulses for either an IN signal or an OUT signal The IN and OUT signals are 120 connected to enabling NOR gate 370 to enable decoder 150 whenever either an IN or an OUT command is provided to the microprocessor DBIN line 196 and the R/W line 204 also enables decoder 150 by gate 3 RO to pro 125 duce the desired pulse outputs The output pulses from decoder 150 are pulsed by gate 380.
As explained in connection with the network 1,584,681 18 R 1,584,681 350, an IN 3 command decoded from A,,, A, and DO DO produces a logic 1 to feed the status of various information into the microprocessor on selected input lines D D, In FIGURE 20, it is shown that an INO command could be used to freeze the outnuts on modules 70 bv developing an I-STRORE.
This strobe could be removed by an OUTO command Other uses of the hardwired output signals created at the status latch will be appreciated from further description of the present invention When a software IN or OUT command is given, the status code shown in FIGURE 2 appears on the status lines and is latched into output of status latch SL Thereafter, this information is decoded to produce finite output signals.
The address lines during the use of decoder address specific output device This device is a memory location and in accordance with another aspect of the invention, the addresses are held at high order locations in memory.
This is accomplished by providing the lock line 372, shown in FIGURES 4 and 20, which line has a logic 0 whenever decoder is in operation An inverter 374 produces the logic on IN+OUT line 259, which has been previously discussed Thus, when the decoder 150 is in operation as determined by the output of gate 370, the output » BUS » terminals of the transfer devices or gates 252, 254 are allowed to float to a logic 1 Thus address lines A 8-A 14 are at a logic 0 and a logic 1 appears at line A,,.
This causes the address lines to address a memory location having an address number which exceeds 32,767, or octal 77,777 The location could be 32,768, or octal 100,000 for INO or OUTO Thereafter, the addresses could be incremented in binary fashion Thus, OUT 3 address, as shown in FIGURE 20, is at 32,771 in decimal numbers or octal 100,003.
Octal address for this number is illustrated also in FIGURE 20 Thus, the relatively unused portion of memory above the 32 K position or address is used for any IN or OUT command or instruction This feature is accomplished by using inverter 250 in the A, address of microprocessor MP The true condition of A,, when interconnecting the modules by a motherboard or otherwise is a logic 1.
Status latch SL shifts or strobes the logic or status code from microprocessor lines D,-D 7 to the output lines DOG-DO 7 upon a negative SYNC pulse created at the start of each machine cycle, as shown in FIGURE 3 This information or code remains the same until the next cycle As can be seen, this latched information or code can be provided directly to external logic, such as the INTA line 362, or can be decoded by special instruction decoder 150 to produce a series of output pulses in response to specific software instructions or commands Modifications could be made in the decoding arrangement or in the memory maping arrangement in accordance with the concepts described above.
As shown in FIGURE 3, after the information has been latched into the output of status latch SL, the DBIN or DBINP pulse is created In the same manner, the R/W pulse is created One of these signals activates decoder 150 after the gates or transfer devices 252, 254 are disabled by IN+OUT line 259.
When processing an IN command or an OUT command, only addresses A, -AG are active and these are mapped into a position above 32 K which is determined by a logic 1 in the A,, line.
A SYNC pulse on line 106, which is a logic 0 pulse transfers logic from the input terminals to the output terminals of the status latch SL In addition, during this synchronization pulse, special instruction decoder 150 is disabled This disables the special instruction decoder during reset of the microprocessor to prevent random IN or OUT commands during this unsettled condition.
During operation, the logic on the output 90 terminals of latch SL are decoded together with the logic of A,,, A, At a R/W inverted pulse, or a DBIN pulse, the information at the input or special instruction decoder 150 is strobed into the outputs as indicated in 95 FIGURES 4 and 20 This produces specific output pulses having a length determined by gate 380 These pulses then perform certain logic functions on module 10, which functions are generally set forth in the truth table of 100 FIGURE 20 The OUT 3 pulse is a programmed SYNC pulse in the preferred embodiment This pulse can be used externally of module 10 for program synchronization if desired The function of the I-Strobe pulse 105 has already been described together with the function of the INO and OUTO pulses The OUT 1 pulse has been described with respect to gate 140 for creating a RESET signal The OUT 2 pulse is used for restarting during the 110 interrupt process, which will be described later Of course, these software requested hardwired signals for use on the CPU module can be used for various other functions By using the special instruction decoder, a variety 115 of hardwired output pulses can be created by using the inherent status code function of the 8080 microprocessor and other microprocessor chips By providing the arrangement utilizing the lock line 372, microprocessor 120 addresses a high address during the IN and OUT commands decoded by decoder 150.
Thus, there is no tendency to rewrite or otherwise destroy information in lower level memory locations, which are generally used in pro 125 gramming and in other more common processing Actually the information written into the high order memory locations is insignificant and random and is not used in actual processing In other words, the high order memory 130 1,584,681 21 locations above about 32 K are the depositories for miscellaneous addressing during processing of the IN and OUT commands by the coded logic on lines D,-D, during the initial portion of the machine cycle Of course, these high order memory locations could be obtained by using a true condition for any of the more significant bits of a sixteen bit address By use of the most significant bit, i e bit Aa, the most remote memory area is used for storing the random information appearing on the address lines during the IN or OUT programmed commands In this manner, the IN and OUT command information can be stored in series at a location seldom used by a stored program of software instructions.
Any random data, is also stored in these advanced locations during the IN and OUT commands The IN and OUT signals are at logic 0 as noted by inverted form on the drawings; however, this inverted form is conventional and will not necessarily be identified in the discussion.
The instruction decoder 150 shown in FIGURES 4 and 20 use the latched status code at the output of status latch SL and addresses on lines A,, A, to activate one of the eight outputs 0-7 of decoder 150 Of course, the latched status code could be decoded by itself or with selected other address lines or selected data lines Do-D, to give the desired signals upon a software command.
In other words, the data latched at the output of status latch SL can be used by itself or with programmed logic from the memory as exhibited by data lines D,-D 7 This type of operation will require a call to memory to exhibit desired signals in response to software commands These signals are hardwired and may be used on CPU module 10 or at other locations in system A The use of the latched status code on latch SL with selected address lines A 0, A, is used in the illustrated embodiment and is preferred.
HOLD REQUEST CONCEPT.
With an Intel 8080 microprocesor chip, the internal registers can not be read or modified during the HOLD state, except by software procedures Programmable controller A includes a hardwired arrangement for enabling the HOLD condition of microprocessor MP and for allowing the use of software during the holding operation This concept is employed during debugging and programming primarily by the direct access module 20, as shown in FIGURE 1 The Hold Request signal is obtained by circuitry as schematically illustrated in FIGURE 5 In this hardwired circuitry, a NOR gate 390 controls the logic of the HOLD REQUES’1 line 160 as shown in FIGURE 4 A manual or computer controlled switch or logic, schematically illustrated as switch 392, applies a logic 0 to line 394 when a HOLD is requested by an external device such as computer 22 This logic 65 is inverted by inverter 396 to Produce a logic on one input of control gate 390 This applies a logic 0 to line 160 and requests a HOLD condition for the microprocessor MP When the HOLD state is reached the external 70 module 20 can control all address and data buses, as previously discussed This HOLD state produces a logic 1 at the HLDA terminal or line 164 for the Purpose of disconnecting the chin from the address lines by the logic 75 on line 169 Also, the data lines are disconnected at gates or transfer devices 260, 262.
This concept has been previously described.
Thus, at a specific command, either manually or by the computer microprocessor MP can 80 be placed in the HOLD state In accordance with one aspect of the invention, a software command can activate hardware to provide the HOLD condition for microprocessor MP In accordance with this aspect of the invention, 85 a programmed HOLD flip-flop 400 has a set line 402 and a reset line 404 The set line is controlled by a control gate 406 which is a NAND gate having inputs 408 from flip-flop 410, DBINP, A O and A, During an IN 1 corm 90 mand, A O is a logic 1 and A, is a logic 0.
Thus, these two inputs of gate 406 are at a logic 1 After the synchronization pulse of an IN command, the logic 1 of the D, data line, as shown in FIGURE 2, is clocked into 95 line 408 by flip-flop 410 At the DBINP pulse, all inputs to gate 406 are a logic 1.
This produces a logic 0 in set line 402 and a logic 1 in output 409 of flip-flop 400 Thus, on a programmed IN 1 command a HOLD 100 request is placed upon microprocessor MP.
Flip-flop 400 can then be manually reset by switch 412 By utilizing this HOLD request command which can be initiated by software, the program shown in the lower part of 105 FIGURE 5 may be used At the breakpoint (BREAK) selected by computer 22, the program subroutine illustrated in FIGURE 5 is processed At first, the registers A-E, H and L are stacked on a pushdown memory arrange 110 ment which is well known in the Intel 8080 technology Thereafter, the high and low registers H, L are set to a logic 0 At DAD, the stack pointer is added to the H and L registers Thereafter, the H and L registers are 115 stored in memory at the stack point This provides the re-entry address for the subroutine.
Thereafter, there is provided an IN 1 command This places the microprocessor in the HOLD state as shown in FIGURE 5 The 120 NOP step is then used to read and modify any registers of the microprocessor After this has been done, flip-flop 400 is manually reset and the subroutine is progressed by bringing out the register information by a last 125 in, first out basis After this has been completed, the RET command is given to return the subroutine to the executive program By providing a hardwired circuit controlled by a 1,584,681 72 n 1,584,681 software command, such as IN 1, the microprocessing chip may be placed into a HOLD state at any position in the program of controller A This is done by calling the subroutine shown in FIGURE 5 at any given location in the program by using an external computer 22 For instance, if an address below the address 121 appears to present difficulty, the call break subroutine can be called at address No 121 Whenever address 121 is reached, the subroutine is processed which includes an IN 1 command This stops the microprocessor and places it in the HOLD state for interrogation The subroutine shown in FIGURE 5 may be preceded by decrementing the return address by a selected number.
This allows the return to the basic program at a position above the break point which position will produce the proper return address which has been erased for the purpose of placing the break call instruction in the program; During the IN 1 command, a pulse is created on the IN 1 terminal of the special instruction decoder This is not used on CPU module 10; however, similar logic is duplicated at module 20 for the programmed hold request signal as shown in FIGURE 5 The IN status line D,, is used as hold request logic of module 20 and is needed for access by external devices, such as computer 22 This IN 1 output could be employed on module 10 for other processing In addition, this terminal could be used for the programmed HOLD request signal During the HOLD state, a logic 1 appears in the HLDA line 164 and the address terminals and data terminals are in the high impedance state Control is then obtained over the external address and data lines by the external device such as the direct access module.
REAL TIME CLOCK.
* A variety of real time clock circuits could be used for programmable controller A, as shown in FIGURE 1; however, in accordance with one aspect of the invention, the real time clock includes a counter 440, shown in FIGURE 4 B, which produces a pulse every 10.0 ms on output line 442 or a pulse every 1 0 ms on output line 444 A switch 446 is used to select one of the outputs for operation Counter 440 is driven by the TTL o 2 line 120 and may be turned on or off by a programmed control line 448 A selected binary logic on this line disables the real time clock or counter 440 and is produced by the Q output of flip-flop 450 This flip-flop is clocked by the IN 3 pulse as previously described The logic, after clocking on the Q output or line 448, is determined by the logic of A, at the time of the IN 3 pulse The set terminal S of flip-flop 450 is held by line 452 at a logic 1 so that the flip-flop can be reset by line 134, but is not set during operation Consequently, an IN 3 software command with a selected logic on address line A, can either turn the real time clock 440 on or off This produces a software control over the internal real time clock of the CPU module The condition of the real time clock or counter 440 is sensed by a flip-flop 454 having a clocking pulse connected to line 456 which is the output of switch 446 Thus, according to the setting of switch 446, flipflop 454 is clocked periodically During each clocking, a logic 1 is applied to the inactiveQ terminal A logic 0 is thus clocked into the terminal connected to line 462 which is the INT 4 r line This produces a requested interrupt for microprocessor MP at priority level 4, in accordance with the interrupt function to be discussed later When the interrupt has been processed, a logic 0 is produced in the Reset line 460 Thus, during normal operation flip-flop 454 is clocked at a known frequency to interrupt the program and shift it to the real time subroutine The subroutine immediately resets the flip-flop for the, next clocking period Thus, the real time clock program may be called up at a set time irrespective of the processing time required for the executive program used in controller system A Thus, a real time background is provided for system A and a timing function can be developed in the software by known techniques The real time clock can be activated or deactivated by an IN 2 programmed command with a set logic on one of the address’ lines, in this instance, address line A, The use of address line A, with the IN 2 command (formed from IN and A,, A,), means that in the software there can be an IN 6 command which is IN 2 combined with A 2 In this manner an IN 2 command (IN 2 =yes plus A,’= 0) enables the real time clock and an IN 6 (IN 2 =yes plus A 2 ‘= 1) disables the clock.
INTERRUPT CONCEPT.
Microprocessor chip MP is a standard 8080 Intel chip having an INT input terminal con 110 trolled by the logic on line 242, as previously described When an interrupt is requested by a logic on line 242, the interrupt enable INTE line 210 ( 218) receives a logic 0 which indicates that an interrupt is being processed 115 and prevents acceptance of another interrupt.
The interrupt feature of the microprocessor is controlled by a standard No 8214 interrupt decoder 500 produced by Intel Corporation.
This decoder includes, as primary function 120 terminals, the terminals illustrated in FIGURES 17 and 4 C Terminals W, X, Y and Z are connected to the data lines Do-D,, respectively, at the output side of gate or transfer device 280 Terminal G receives the 125 program initiated OUT 2 command from the special instruction decoder 150 which has been previously described in detail The binary has a logic 1 in the INTE line 218 which is connected to the ISE terminal of decoder 500, as shown in FIGURES 4 C and 17 This logic 1 enables decoder 500 for processing of negative pulses received on request terminals 1-7, 70 which terminals correspond to the numerical assigned priority levels of the interrupt signals as contained within standard decoder 500 Assuming now that counter 440 of the real time clock has been pulsed to clock flip 75 flop 454 This produces a logic 0 in the INT 4 line 462 When this happens, a binary logicfor the digit four is displayed at terminals I 0-I 2 connected to lines 502, 504, and 506, respectively At approximately the same time, 80 a negative interrupt acknowledge pulse is created at the TA terminal of decoder 500.
Thus, a negative pulse in line 508 resets flipflop 244 which places a logic 1 on INT line 242 This resets internal flip-flop 242 a of the 85 microprocessor to place a logic 0 on enable INTE line 218 This holds decoder 500 so that no other interrupt can be processed and coded on lines I 0-12 In this manner, the microprocessor MP receives an interrupt re 90 quest signal During the next machine cycle of microprocessor MP, the logic shown in FIGURE 2 for the INTERRUPT ACKNOWLEDGE status appears on data lines Do-D, This binary coding is latched 95 at the output side of status latch SL at the synchronization pulse of microprocessor MP.
This status code logic produces a logic 1 at the D Oo output terminal of status latch SL.
No other status code, except an Interrupt 100 Acknowledge While Halt, gives a logic 1 at terminal DO, Thus, the INTERRUPT ACKNOWLEDGE line 362 receives a logic 1 and this activates gate 510 that also receives input logic from line 290, which is the H 1 V 6 105 line Since the processed interrupt is not a INT 6 condition, line 290 is a logic 1, as will be described in connection with decoding network 524 Two logic 1 signals at gate 510 produce a logic 0 in the output 512 This 110 logic 0 turns off data gate 270, as previously described Thus, lines Do-D 7 connected directly to the microprocessor are released to float toward a logic 1, or false condition, and are controllable by data gates or transfer de 115 vices 280, 282, in a manner to be described later INTA signal on the D line is retained in a latched condition at terminal DO, until the next sync pulse Thus, this is a continuous logic 1 condition instead of a 120 pulsed logic 0 which is created at the output of special instruction decoder 150 The INTA logic 1 signal is also directed to the input of NAND 520 The other input to this gate is the DBIN line 196 Thus, at the DBIN 125 pulse, shown as a DBIN pulse in FIGURE 3, a logic 0 is strobed into line 522 This immediately shifts the » Dir» terminals of logic transfer devices 280, 282 to a logic 0, which allows transfer of data from the » IN » 130 logic on line Do-D, at an OUT 2 command indicates the level of interrupt which is to be given priority In other words, if the interrupt is at the fourth level, the INT 4 subroutine will provide a logic 0100 at output leads D,-D, This is a binary four and indicates that an interrupt below level 4 (higher priority) may be accepted by interrupt decoder 500 Interrupts INT 1-INT 3 will be accepted Interrupts INT 5-INT 7 will not be accepted by decoder 500 The interrupt decoder 500 produced by Intel has only the capabilities of processing eight separate levels.
In accordance with the illustrated embodiment, interrupt INT 0 is held to a logic 1, i e.
a false condition Thus, this terminal is not used Terminals 1-7 indicates the type of interrupt received by decoder 500 They are in the order of priority indicated previously.
The highest priority interrupt being received is processed If a lower order priority interrupt is being processed, the higher order interrupts, can obtain control and be processed before returning to the lower priority interrupt This ‘ is well known in the art and is a standard unit for accomplishing the priority selection The outputs I 0-I 2 carry the logic of the interrupt level being processed In other words, during an interrupt INT 4, the coding will be 001 on lines I 0-I 2, respectively The ISE terminal receives the INTE signal from microprocessor MP When an interrupt is first acknowledged by the decoder 500, a negative pulse is created at the TA terminal to set flip-flop 244, shown in FIGURE 4 C This produces a logic 1 in INT line 242 informing the microprocessor that an interrupt request has been received.
When the proper subroutine is started, an OUT 2 command is received in the OUT 2 line to reset flip-flop 244 This produces a logic 0 in line 242 and again creates a logic 1 in the interrupt enable INTE line ( 210) 218 These are the basic terminals which are provided on an Intel No 8214 interrupt decoder The function of this decoder is well known.
The use of interrupt decoder 500 in controller A on module 10 will be discussed in connection with the interrupt INT 4 which is the real time clock interrupt request This request occurs under normal circumstances at uniformly spaced time intervals determined by switch 446 The discussion of this particular interrupt request applies equally to the other interrupt requests, except for INT 6 which is used for interrupt expansion.
The description of the circuit shown in
FIGURE 4 with respect to the operation of an interrupt INT 4 negative request pulse on line 462 will illustrate the maner in which the interrupt feature of the present invention is performed The schematic showings of FIGURES 17, 17 A and 18 will be of assistance in this regard Prior to the acceptance of an interrupt request, microprocessor MP 1,584,681 1,584,681 terminals to the «BUS » terminals In this manner, the » IN » terminals of transfer devices 280, 282 are used to direct data into the microprocessor during the DBIN pulse, after an interrupt has been acknowledge by the D terminal of microprocessor MP.
Referring now to FIGURE 2 and FIGURE 17 A, when an interrupt acknowledge has been received, the microprocessor looks for an address to which the control of the microprocessor may be transferred to process the subroutine corresponding to a specific interrupt condition The input nature of the cycle is clearly shown in FIGURE 2 wherein the D, status line, or W line, is a logic 1 The microprocesor will read a subroutine address from the floating Do-D 7 lines The address for each of the separate interrupt restart routines used in the preferred embodiment is set forth in octal coding in FIGURE 17 A It is noted that in the preferred embodiment, the restart calls (which contain a call instruction and an address) all begin with octal 3 and end with octal 7 Thus, each of the subroutines is at a memory location as set forth in the right hand columns of FIGURE 17 A In these columns it is noted that Do, D,, D,, D, and D, are always logic 1 for a restart subroutine to be employed by the separate interrupt requests Thus, the input terminals corresponding to D,, D,, D,, D, and D, of the microprocessor can be latched to a logic 1 This is done by line 523.
The other lines to the «IN» sides of gates 280, 282 carry the logic of the coded lines 502, 504 and 506 Thus, D,, D 4 and D.
provide logic which varies according to the interrupt level which is being processed In the present example, the RST 4 address is used for the real time clock subroutine This is created by a logic 100 on line D,, D 4 and D,, respectively In this manner, the three lines I 0-I 2 control the memory location to which the microprocessor shifts for the interrupt subroutine The other data lines are latched to a logic 1 At the same time, decoding network 524 decodes the logic on lines 502, 504, and 506 together with the DBIN INTA strobing logic on line 522 Network 524 includes NAND gates 530, 532 which are controlled by the output of inverter 534, and the outputs of the » O » inverter 536 and the » 1 » inverter 538 Line 506 is directed to gates 530, 532 without being inverted Thus, at the INTA DBIN strobe, line 290 is shifted to a logic 0 if the interrupt is INT 6 If the interrupot is INT 4, as in the example, a logic 0 appears in line 460 and line 290 remains at a logic 1 This logic 0 in line 460 is directed to the reset terminal of flip-flop 454 to reset the real time clock for subsequent operation This decoding network for resetting the real time clock is schematically illustrated in FIGURE 18.
Referring now to FIGURE 19, a typical subroutine at address octal 040 is set forth in abbreviated form The first command is LA 004 This is a load to the microprocessor accumulator binary four The next command is the OUT 2 command This has been dis 70 cussed previously At that time, a logic 0 appears in the OUT 2 line at the output side of special instruction decoder 150 This logic 0 resets flip-flop 244 to a logic 0 at INT line 242 Then, the subroutine shifts to an El 75 command which sets internal flip-flop 242 a.
In this manner, the INTE line 218 shifts to a logic 1 to again allow acceptance of interrupts by decoder 500 Sinces there has been a new logic code latched into status latch SL, 80 there is no longer an INTA signal on line 362.
Thus, a logic 1 appears at the » Dir» terminals of logic transfer devices 280, 282.
The logic passes through these gates in a normal fashion between the «BUS » and the 85 » OUT » terminals At the OUT 2 pulse, the logic of the Do, D,, D, and D, is applied to the W, X, Y and Z terminals, respectively, of decoder 500 This logic, which is the accumulator logic 00000100 is decoded as 90 level 4, by decoder 500 Thus, interrupt requests INT 4-INT 7 are disabled and INT O-INT 3 can be accepted Of course, the next interrupt request must wait the short time needed to shift line 242 and set flip-flop 95 242 a Consequently, a logic 1 at the ISE enabling terminal indicates when decoder 500 can accept a next interrupt request In this manner, higher priority interrupts can cut into the subroutine being processed under the 100 INT 4 condition As will be apparent from the description of the additional interrupts, these higher interrupt priority levels are more drastic conditions, which conditions require immediate attention by an operator 105 INTE line 218 is then shifted to a logic 1 by the programmed El command in the subroutine Thereafter, subroutine No 4 is processed This subroutine may take a variety of forms and is not important to the under 110 standing of the present interrupt concept.
However, in practice, the accumulator of the microprocessor is loaded with the octal 010 at the end of the subroutine This is level eight on the priority scale, which is less than 115 any level on decoder 500 The internal accumulator receives a binary coding of 001000.
Then a programmed OUT 2 command is processed The octal 010 is applied to the D,-D, terminals to produce a logic 1 at 120 the D, terminal and a logic 0 at the Do-D 2 terminals This logic 0001 is applied to the priority decoding terminals W, X, Y, and Z, respectively, of decoder 500 Decoder 500 can now accept any interrupt below INT 8 Thus, 125 all interrupts can be accepted by the decoder.
The programmed OUT 2 command at the end of the subroutine for each interrupt condition clears the decoder for subsequent interrupt request signals 130 24 1,584,681 24 Other interrupts are processed in accordance with the same basis principles, as set forth with respect to interrupt INT 4, with the exception of the expansion interrupt concept, which is INT 6 and which will be described later In that instance, the IIV 6 line 290 is shifted to a logic 0 to deactivate gate 510 and logic transfer devices 280, 282 The subroutine addresses for INT 6 are contained on separate modules 30, 32 and 34, as shown in FIGURE 1, and as explained in detail with regard to the showings of FIGURES 6 and 6 A.
The various interrupt request input lines used in the preferred embodiment are schematically illustrated in FIGURE 1.
Pulses or signals on these lines enter module through networks 114 and a plurality of primary inverters 540 Certain secondary inverters 542 are employed in some situations where the incoming interrupt signal is a logic 0 signal An inverter 544 at the output of inverter 540 for the power interrupt, ACPWR, controls the logic in the PWR line 358 Thus, inverter 544 is used to read the condition of the power supply during a program IN 3 command, as previously described NAND gate 546 is used to join the I/0 interlock in the memory interlock as a common interrupt condition Inverter 548 shifts the logic of this condition before placing it on one of the level terminals 0-7 of interrupt decoder 500 A logic 0 at any of the interrupt terminals pro-.
duces an interrupt request For instance, when power is interrupted for any reason, the normal logic 0 on the AC PWR line shifts to a logic 1 This is inverted by one of the inverters 540 to produce a logic 0 request at the INT 1 terminal.
As previously described only interrupt levels having a higher priority than an interrupt being processed can force a disruption of one interrupt and a processing of another interrupt The power condition is the highest interrupt priority level in the illustrated embodiment The interrupt INTO has the highest priority level in decoder 500 and is maintained at a logic 1 This terminal is not used in the illustrated embodiment of the present invention because a reset performs the same function The BOOT interrupt input (INT 2) shifts the program to a subroutine at octal 020 in memory This address is contained on lines D,-DI, as shown in FIGURE 17 A Generally, this input is controlled by a pushbutton which is used to load a minimum program into the controller A or for other such purposes which should take precedent or priority over any condition of system A, except the power status The next interrupt level is the input/output (I/0) and memory (MEM) interlock systems If one of these interlock circuits is broken, a logic 1 appears on the input of the broken circuit A logic 0 appears at one input on gate 546 This gives a logic 0 at the output of inverter 548 to request a level INT 3 interrupt Thus, controller system A would go into a program subroutine and hold the subroutine and controller until the interlock error can be corrected The 70 next highest order of interrupt request is INT 4 This is the real time clock interrupt which has been described earlier in detail.
The interrupt request INT 5 is generally used with external communication devices for 75 interrupting the standard program so that external equipment can be used to control features of system A The next priority interrupt is INT 6 which will be described in detail in the next section and is used as one 80 important aspect of the present invention The last interrupt is INT 7 which is generally used for servicing various pushbutton and display devices of the type used on module 60 or other similar modules Whenever a signal is 85 received on the INT 7 line, a subroutine at octal 070 is processed to read the condition of the various switches and to change selected display devices according to current data or information In other words, the switches and 90 display devices in module 60 may be held at a given condition for several program cycles and until there is a call, i e INT 7 request, from that module indicating that there has been a change in conditions or a call from 95 another location indicating that there should be a change in the condition of output device module 60 or other similar modules At that time, INT 7 signal is created and the pushbuttons and displays are updated by an appro 100 priate subroutine.
It is implicit in the priority discussion that the priority levels of the interrupts are used basically for simultaneous hardwired calls by the interrupt circuits However, the priority 105 levels can also be used to determine the ability of a second interrupt call to disturb an interrupt subroutine being processed Under certain conditions, which may be programmed, the priority levels or the relative importance 110 thereof, may be modified This could be done by sending an OUT 2 command with a level which is different than the interrupt level being processed See FIGURE 19 for the OUT 2 priority command 115 It is apparent that the interrupt system provides an efficient manner for obtaining a jump signal to a selected subroutine which is coded on lines 502, 504 and 506 This hardwire subroutine selection arrangement substantially 120 reduces software demands of system A and locates the required subroutines at selected, convenient locations in either the RAM or PROM.
INTERRUPT EXPANSION In accordance with one aspect of the present invention, programmable controller system A can-process a substantial number of separate and distinct interrupt conditions on several 1,584,681 tv, 25 modules, three of which are shown as modules 30, 32 and 34 of FIGURE 1 Of course, other modules could be employed without departing from this aspect of the invention wherein a fixed interrupt level control device or interrupt decoder 500 is provided with an expandable interrupt position or level, which is the INT 6 condition By using the present invention, the INT 6 input to decoder 500 can be employed for a number of specific and selected » add-on » interrupts, which can be priority controlled externally or randomly processed The structure of system A, as so far described, is not modified to provide the greater number of interrupt request conditions.
Thus, a fixed number of interrupt terminals available on Intel 8214 interrupt decoder is not a limitation in the system shown in FIGURE 4 By a novel interrupt expansion concept, which will be hereinafter explained, the INT 6 position or level provides an interrupt window which may be filled by a multitude of separate and distinct interrupt conditions These interrupts are all nrocessed as an INT 6 priority The INT 6 prority is used for expansion of programming capability at specific addresses, which addresses are not used unless required by an external interrupt » call » The interrupt window could be provided at other levels.
Referring now to FIGURE 6, there is a schematic representation of the structure of module 32, which construction is used on each of the modules 30, 32 and 34, as shown in FIGURE 1 Interrupt switches 30 a-30 x control the logic on input terminals 0-15 of a sequence decoder 550 A sequence decoder of the type used in FIGURE 6 contemplates a periodic scanning by a strobe TTL 02 which «looks» at the input terminals in a preselected sequence As soon as the scanner notices an interrupt request signal, the interrupt is acknowledged and processed by a subroutine, assuming decoder 500 of FIGURE 4 C is not at a priority greater than INT 6, After the interrupt has been processed and turned off, the strobe continues from that interrupt position and progresses through the various input terminals looking for another interrupt request Thus, during normal operation the first interrupt condition acknowledged is processed and then the strobe continues in accordance with known sequencing until the next interrupt condition is acknowledged and processed The coding of the particular acknowledged interrupt appears on output terminals A, B, C and D of sequence decoder 550 Thus, these lines are decoded according to the number of the interrupt request being acknowledged by the strobe of sequence decoder 550 In other words, if interrupt position No 15 is acknowledged, a logic 1 appears in all lines 552-558.
Sequence decoder 550 is controlled by a SYNC pulse in line 560 which is connected by inverter 562 to the SYNC line 113 At the SYNC pulse, the interrupt requesting being processed is decoded and strobed into the output terminals A, B, C and D of decoder 550 To actuate the decoder of the particular 70 module 32 shown in FIGURE 6, the basic enabling line, INTE line 214 must have a logic 0 condition The logic on line 564, which is the output of inverter 566, is controlled by the INTE logic When micropro 75 cessor MP will accept an interrupt request, line 214 shifts to a logic 0 This applies logic 1 in line 564 to enable sequence decoder 550.
Another enable terminal E of decoder 550 is controlled by the logic on line 570, which is 80 a logic 1 if all higher priority expansion modules are not in use When a logic 1 appears in line 560 and line 570, decoder 550 can operate When there is an interrupt enable signal a logic 1 appears in line 564 85 This logic is also required for operating decoder 550 When one of the switches 30 a-30 x records an interrupt request, an output logic 1 is received on the interrupt signal line 572.
When this happens, NAND gate 580 is actua 90 ted to produce a logic 0 pulse in line 580 a.
This is the INT 6 pulse This pulse can be created only when the microprocessor chip is in the interrupt enable condition and the module 32 is enabled by a logic 1 in line 95 570 When there is a signal in line 572, or when the module 32 is not enabled by a logic 1 in line 570, the output 582 a of AND gate 582 is a logic 0 This disables all subsequent interrupt expansion modules Thus, if there 100 is an interrupt signal in any of the higher priority modules, those interrupts are processed and removed before subsequent modules can be processed After all interrupts have been processed from the uppermost module, 105 the next module is processed and so forth in sequence This produces module priority within the general INT 6 priority level Since the speed of the microprocessor is so great with respect to any normal operation of con 110 troller system A, all of these interrupts can be processed and removed or turned off without seriously affecting the time necessary to process a continuous program cycle If additional time is needed, the real time clock can be 115 shifted into the 10 0 ms mode to provide more time for the program cycle and necessary interrupts.
After an interrupt has been requested by one of the switches or switch means attached 120 to sequence decoder 550, a signal appears in lines 552-558 This Produces a coded signal at the input of a PROM unit 590 which contains the call instruction and subroutine addresses for all of the interrupt sequences of 125 switches 30 a-30 x Of course, the interrupt requests need not be switches They may take various forms to indicate that a special subroutine is needed for a special purpose which may be experienced at random times Memory 130 1,584,681 1) AZ 26 1,584,681 590 could be a RAM and the call instructions and addresses could be stored therein at program initialization of system A and/or altered by system A during different program sequences.
When a SYNC pulse is received in line 560, the coding on lines 552-558, representing an interrupt request 30 a-30 x, produces one byte of eight bit information on lines Do D, indicating a call to a particular subroutine in memory of system A, whose address is to follow Thereafter, the next two SYNC pulses produces two more bytes of information or data on Do-D, data lines These two bytes of information indicates the address of a memory location in system A in which the requested subroutine is stored The request is made by the coding on lines 552-558.
Memory 590 is a PROM which includes fixed memory cell addresses correlating to the specific inputs for the decoder 550 of module 32 or a RAM The other modules would have different subroutine call addresses, even though the lines 552-558 of each of the modules could carry similar codes for the input and/or interrupt requests Before the PROM 590 can send out a call, a 11 V 6 pulse must be received from line 290 This signal is created by network 524, shown in FIGURE 4 C, and is obtained after the microprocessor has acknowledged an interrupt request by line 522 and the level on lines 502, 504, 506 is INT 6 The IIV 6 logic 0 signal latches sequence decoder 550 to a given code and activates the PROM 590 through OR gate 590 a to transfer the logic from the PROM to lines D,-D, Gate 590 a is held at a non-operative logic 1 condition by inverter 590 b when Enable (E) line 570 is at a logic 0 Consequently, only PROM 590 of the active module is operative to multiplex data to lines D,-l), After the three bytes of output from PROM 590, sequence decoder 550 is unlatched by a shift of the IIV 6 line 290 to a logic 1 awaiting a new interrupt INT 6 condition A module receiving a logic 1 on E line’ 570 produces an interrupts signal on line 572 which disables all lower level modules Consequently, the PROM 590 of each of the lower level modules will be inactive and will produce no bytes in the Do-D, lines If an interrupt request is made, but has not been processed, the request will be processed during subsequent scanning of terminals 30 a-30 x If selected priority levels for each module 30-34 is desired, within the confines of the INT 6 overall level, an address decoder 592 can be provided on each interrupt expansion module and controlled by the logic on address lines A,-A,, The output of this decoder controls a priority memory unit 594 which produces the priority level signal on a Pine represented by a single line 596 in accordance with priority level select data inputted to memory unit 594 by data lines D,-D 7 This input operation can be controlled by the R/W line 208 These lines control the priority of module 550 through line 596 In other words, by pro 3 per coding of line 596 as obtained from data stored in memory unit 594, the relative 70 priority levels of interrupt inputs 0-15 on decoder 550 can be modified Also, if desired, lines 596 can selectively activate or deactivate input 0-15 of decoder 550 Of coirse, other priority arrangements could be developed for 75 the expansion modules In addition, it is possible to process all of the expansion interrupt switches or stations randomly These could all be processed and turned off in a short real time The turn off of a request can be 80 done by the subroutine or by any arrangement responsive to processing of a request or the disappearance of a request for any reason The limitation of the interrupt ex-pansion capability at the INT 6 level, or other 85 selected level, is by basically the capacity of the memory locations in the PROM 590 on the individual modules The memory unit 590 of the expansion modules actually stores the call instructions and subroutine addresses for 90 each of the expansion interrupt conditions or terminals The instruction could be fixed and hardwired.
As previously discussed, when there is an INTA on lines 362; gate 510 produces a logic 95 0 in line 512 to turn off data gate 270 This allows the data lines Do-D, to float toward a logic 1 for insert of the restart address for an interrupt, except for INT 6 In the INT 6 mode, a logic 0 appears in line 290 at the time 100 of the INTA logic 1 Consequently, gate 510 remains latched with a logic 1 in line 512.
Thus, gate or data transfer device 270 is not disconnected and data is transmittable from line Do-D, of modules 30-34 to the ter 105 minals Do-D, of microprocessor MP In addition, a logic 0 in lines 290 produces a logic 1 in lines 294 to disable gates or data transfer devices 280, 282 This releases control of these gates from the data lines Do-D, 110 for direct calling through the data lines to memory locations specified by the call address of PROM 590 Thus, it is apparent that a number of different interrupt requests can be provided in the window produced at INT 115 6 of the standard interrupt decoder 500, shown in FIGURE 4 Various modifications in this concept of expanding the interrupt capability by utilizing a finite position on an interrupt priority decoder 500 could be developed with 120 out departing from the basic concept utilized in the circuit schematically illustrated in FIGURE 6 By providing the expanding interrupt at the INT 6 window or level, the external expansion modules provide direct 125 vectoring to specific memory locations by means of a CALL instruction and the subroutine call addresses in memories 590 on external modules 32-34.
FIGURE 6 A illustrates a somewhat simpli 130 1,584,681 2-6 fied circuit for the interrupt expansion concept During normal interrupt operation, line 290 is a logic 1 while the INTA line is a logic, 1 during processing of the Interrupt Acknowledge machine cycle Thus, the output 512 of gate 510 is a logic 0 This turns off data gate 270, disconnecting input lines D,,-D, and giving control of the data terminals of the microprocessor to the data transfer devices or gates 280, 282 The logic of line 294 is also a logic 0 Thus, transfer devices 280, 282 are active At the DBIN signal, logic from the lower terminals of transfer devices 280, 282 is transferred to the output data lines D,,-D,.
Thus, the fixed logic 1 at input lines D,, D,, D,, D,, and D, addresses the restart subroutine for the particular interrupt level indicated by only the code on lines 502, 504 and 506.
When there is an external interrupt, an interrupt signal is created in line 572 By the circuitry illustrated in FIGURE 6, this produces an input at INT 6 of interrupt decoder 500 This, in turn, produces a logic 0 in line 290 which is the output of logic network 524.
The logic 0 inhibits gate 510 and places a logic 1 in line 512 Thus, data gate 270 is active during the INTERRUPT ACKNOWLEDGE machine cycle of microprocessor MP.
At the same time, a logic 1 appears in line 294 This deactivates transfer devices 280, 282 Thus, during the INTERRUPT ACKNOWLEDGE machine cycle, data gate 270 is active when an external, or add-on interrupt signal has been received Decoder 550 on each of the expansion modules then selects a proper subroutine memory address from call memory or PROM 590 This address is placed onto data lines Do-D, and directed to CPU module 10 and data gate 270 In practice, three separate bytes of information can be transferred by memory device 590 This can be done by having decoder 550 select a certain position and then index that position by subsequent synchronizing pulses These separate bytes of information are placed on the microprocessor for use in selecting the interrupt specific subroutine for the calling terminal It is seen that the add-on interrupt feature which can produce an expanded interrupt capability is applied to a given, selected terminal of the standard interrupt decoder 500 This expands the capabilities of system A at a given level, without complex circuits and software.
EXTERNAL HARDWIRED INTERRUPT CALL SYSTEM Although not specifically shown in FIGURE 1, the programmable controller system A can include an input/output module which uses interrupt request to process selected input or output information on the module, as opposed to interrupts from external locations which are processed in the expansion concept In this regard, if a given module is 65 to be processed by a special subroutine upon demand from the module, the demand could be at a terminal 30 a-30 x, etc of the expansion module, or it could be assigned its own interrupt level For instance, if a series of 70 special switches on a module are included in the controlled system or if an eight bit digit of word is available from an analog converter, it may not be advisable to read the condition of the module until there has been an actua 75 tion or a change in conditions or logic At that time, as in other interrupt functions, a subroutine for reading from or writing to the module may be processed This feature is accomplished in the preferred embodiment of 80 the present invention by using the INT 7 input line to interrupt decoder 500 A schematic circuit for this purpose is illustrated in FIGURE 16 In this illustrated embodiment, a switch network 600 includes a series 85 of switches SW 1-SW 4, each of which controls the logic on lines 600 a-600 d, respectively A series of inverters 602-608 control the logic on output lines 602 a-608 a A NAND gate 610 reads the switch logic and 90 produces an appropriate logic on line 612.
When the logic on line 612 shifts from logic 0 to a logic 1, flip-flop 614 is clocked The D terminal of this flip-flop is latched to a logic 1; therefore, upon clocking a logic 1 95 appears at the Q terminal of flip-flop 614.
This logic is inverted by inverter 614 a to produce an INT 7 signal This signal is processed in accordance with the previously discussed interrupt processing by the circuit 100 shown in FIGURE 4 As so far described, when a switch is closed, a logic 0 appears in the INT 7 line to request an interrupt at this priority level This places the microprocessor MP in the interrupt state, assuming that there 105 is no higher priority interrupt being processed.
When this happens, the octal 070 address is called by restart instruction code octal 377 and the subroutine at address 070 is processed This subroutine reads the condition of 110 the switches SW 1-SW 4 and can read other logic on the module shown in FIGURE 16 or other designated logic Of course, any one of a large number of switches or terminals could be used to create an INT 7 signal The 115 subroutine can then address a calling module for reading and writing into the various terminals, switches, etc by the D,-D, lines.
When the switches shown in FIGURE 16 are to be addressed during the subroutine process 120 ing, lines A,-A, contain an address recognized by module select network 620 This network can take a variety of forms one of which is generally shown in FIGURE 7, with inverter 643 omitted Basically, when the 125 module is addressed, an enabling signal is received In the illustrated embodiment, a logic 0 in line 626 is an enabling signal This signal is controlled by module select network 1,584,681 271 28 1,584,681 28 620 I/O select lines A,4, A,, and a chassis enable signal controlled by the logic on line A 4-A,, as shown in FIGURE 2 A.
When the subroutine or other program requests information or data from the module shown in FIGURE 16, the logic 1 in line 622 combines with a DBINP pulse to actuate a NAND gate 624 Output 626 of this gate is directed to an inverter 627 having an output line 628 Thus, a logic 0 enabling signal at the DBINP strobe appears in line 626.
This produces a logic 1 in line 628 to enable a logic transfer device or gate 629 Thus, the logic on lines 602 a-608 a appear in inverted form at the bidirectional data lines Do-D 3.
Consequently, after an INT 7 signal has placed the microprocessor in the INTERRUPT state, subsequent address from the selected subroutine directs the condition of the switches SW 1-SW 4 to four of the data lines When a logic 0 appears in line 626, this actuates NAND gate 632 which is also controlled by a RESET line from an inverter 630 The RESET line is normally a logic 1; therefore, a logic 0 in line 626 at the DBINP strobe actuates NAND gate 632 to place a logic 0 at the output 636 of inverter 634 This resets flip-flop 614 to a logic 1 in the INT 7 line Thus, when the logic has been read by transfer device 629 to data line D,-D%, flipflop 614 is reset to a logic 0 at the Q terminal.
This concludes the operation of the circuit schematically illustrated in FIGURE 16 which is representative of arrangements for utilizing the interrupt concept to selectively process information upon a change in input conditions of a module Modifications could be made in this particular structure without departing from the intended illustrative nature of FIGURE 16 For instance, all data lines D,-D, would generally be used to read from or write to a module giving a request call on the INT 7 line.
PROGRAMMABLE READ ONLY MEMORY MODULE As illustrated in FIGURE 1, the programmable controller system A includes a variety of memory units, one of which is designated generally as a programmable read only memory or PROM module 40 FIGURE 7 provides a schematic representation of an appropriate PROM module In accordance with this illustration, a module selector network 620 of the type previously described includes switches 640 a-640 d located within the motherboard MB of system A into which module 40 is plugged As in most control systems, the chassis of system A includes the motherboard MB which includes hardwired interconnections between separate modules in the chassis and interconnection between other interrelated, but separate units The motherboard may be several units or components used as a network to interconnect the eleinents of system A The permanent setting of 65 switches 640 a-640 d in the motherboard determines the specific address of the PROM module 40, which is in a particular location on the motherboard of the csassis used by system A Module selecting network 620 decodes 70 the logic on lines A 12-A 11 Since module 40 is a memory, a memory address as illustrated in FIGURE 2 C would be used to select the module and a specific memory address on the module Since an I/O address, shown in 75 FIGURES 2 A and 2 B, always includes a logic 1 at both the A 14 line and the A,, line in system A, one of these bits or address lines must be a logic 0 to designate a memory address EXCLUSIVE OR gates 642 a-642 d 80 compare the logic on address lines A 1,-A 1, to the position of switches 640 a-640 d, respectively Inverter 643 is used at gate 642 a because the logic on line A,, is not inverted on the motherboard MB of system A This 85 has been discussed previously If there is a comparison between the address on lines A,,-A 1, and switches 640 a-640 d, a logic 1 appears at all four inputs of control NAND gate 644 This produces a logic 0 in the 622 90 line This is an indication that the address being processed by system A is a memory address and has selected module 40 The output of gate 644 is inverted by an inverter 645 to produce a logic 1 in line 622 when module 95 has been enabled The logic 0 in line 622 enables an eight bit decoder 650 which produces a logic 0 in one of the output lines 650 a-650 h upon decoding of address lines A,-A,, The inverted outputs of decoder 100 650, as is normal in system A, are biased to a logic 1 which is false Thus, a logic 0 will appear in only one of the output lines 650 a-650 h The line will be determined by the coding address lines A,-A 1 l 105 As indicated in FIGURE 2 C, memory units may be addressed in groups of either 512 eight bit words or 1024 eight bit words When the former memory arrangement is used, the address shown in FIGURE 2 C can be directed 110 to eight separate chins or memory units This is shown in FIGURE 7 wherein eight PROM chips 652-1 to 652-8 are provided In the illustrated configuration, the interconnecting wires 654 are not used This senarates each 115 of the PROM chins 652-1 to 652-8 for independent operation and addressing Also, the interconnecting wire 656 is shown in the grounded position This releases address line A, for control of the eight bit decoder 650 120 Thus, the address on the address lines A,-A&, selects a particular one of eight outputs 650 a-650 h This energizes a selected one of PROM chips or units 652-1 to 652-8 The particular word is then selected by the multi 125 plexed logic on lines A,-A, A strobe gate 660 produces a logic 0 in strobe line 662 when network 620 has been enabled and there is a DBINP pulse With this strobe pulse, 1,584,681 the ST terminals are energized to strobe the requested information from the energized one of the PROM chips 652-1 to 652-8 to the output data lines D,-DI.
To provide memory in units of 1,024 eight bit words, connectors 654 are used and wire 656 is shifted to the ungrounded position.
This arrangement directs the logic of address line A, to the PROM chips In this option, PROM chips 652-2, 652-4, 652-6 and 652-8 are not used PROM chips 652-1, 652-3, 652-5 and 652-7 are replaced by PROM chips having the capacity of 1024 eight bit words Wire or connectors 654 are used so that decoder 650 can become, in effect, a one-in-four decoder controlled by lines A,(, A,, Although a certain memory arrangement is illustrated and is used in the preferred embodiment, it is not necessary for the operation of the preferred embodiment of the invention to provide for selection of different memory module connections.
As illustrated, the memory and I/O interlock lines extend from the motherboard MB through PROM module 40 If the module is connected properly, these interlock terminals provide electrical continuity Input circuits Al, A, and A, are data transfer blocks which shift data from input terminals to the internal circuitry of the module 40 to match or interface the parameters of module 40 with system A The address on address lines A,-A,, enables module 40 and selects the data to be placed upon output lines DO-D, In this manner, the eight-bit words addressed by system A can be applied to the data bus for use in processing of information in accordance with normal programmable controller technology This module is generally used for program steps and other permanent information and data in accordance with standard control terminology.
RAM MODULE.
Controller system A anticipates the use of both a read only memory (PROM) and a random access memory (RAM) which can be written into at selected addresses and read from at selected addresses A variety of RAM memory units are available In FIGURE 8, there is a schematic representation of a RAM which can be used in system A This RAM will be formed on module 50, as shown in FIGURE 1, and includes the self-addressing network or circuit 620 previously described.
This network includes switch controlled lines 620 a, 620 b, 620 c and 620 d, which are coded in the motherboard MB of system A to indicate the particular module 50 The coding on these lines is compared with the logic of address lines A 12-A 11 to produce a logic in output line 622 The logic of this line indicates whether the module 50 has been requested by the memory address, as shown in FIGURE 2 C Other components associated with the self-addressing network 620 have functions similar to those used in module 40, as shown in FIGURE 7 Since module 50 is a READ/ WRITE type of memory, the R/W line is used to control the function of this module A logic 1 on the R/W line indicates that the module is to be read A logic 0 on this line indicates that data is to be written into an addressed location on RAM module 50 The R/W line is designated line 670 and includes an inverter 672 which is used to control the WRITE gate 674 The logic on the output 675 of this gate determines whether or not module 50 is in the WRITE or READ mode.
A strobing gate 676, which is a NAND gate, is controlled by the logic on line 622, which is the selector logic, and the logic on the input DBINP strobe line During a strobe by the DBINP line, the output of NAND’gate 676 is a logic 0 to enable data transfer device or gate 677 According to the mode of operation, data is either transferred from an input line 677 a to data lines Do-D 7 or from data lines D,-D 7 to the output logic lines 677 b.
These lines are multiplexed to various memory chips schematically represented as chips or units 690-696 Of course, these chips may include a plurality of separate and distinct memory units without departing from the intended snirits and scope of the illustrated disclosure To select one of the memory circuits or chips 690-696, there is provided a four bit decoder 680 having outputs 680 a-680 d.
This decoder is enabled when a logic 0 apnears in the 622 line from the selector or self-addressing circuit 620 Thus, decoder 680 decodes the logic on lines Al,,, A,, to select one of the memory networks 690-696 when circuit 620 indicates that module 50 has been addressed The logic on lines A,-A, indicates the particular address or location into which data is written or from which data is read from memory units 690-696 The logic on lines 675 determines the direction of data flow to or from the random access memory module This is obtained by decoding lines A,2-A 1, and R/W line 670 Modifications could be made in this type of RAM memory unit without departing from the illustrative nature of the disclosure shown iin FIGURE
8.
INPUT/OUTPUT MODULE FOR BYTE OPERATION Module 60 shown in FIGURE 1 is a device for creating eight bit binary words as input words or output words These individual words 120 or bytes can take a variety of forms For instance, in the illustrated embodiment, module 60 is capable of creating two input bytes, or words, each having eight bits The words are used to read the condition of a 125 thumbwheel network 62, divided into two word units 62 a, 62 b As shown in FIGURE 9, network 62 can produce ‘logic on lines 1,584,681 1,584,681 IA 0-IA, as byte No 0 from unit 62 a Byte No 1 is the input logic on lines IB 1-1 87 to read unit 62 b of network 62 Consequently, two separate bytes, or words of data, can be read from network 62 In a similar manner, output information to a display device 64 is in the form of two bytes directed to separate units 64 a, 64 b Byte No 2 directs logic to display unit 64 a by control lines IQ-IQC.
Byte No 3 of output information is directed to unit 64 b by output lines ID,-IDI Of course, other bytes or words of data can be inputted and outputted by a module of the type schematically illustrated in FIGURE 9.
Bytes Nos 2 and 3 can be read also.
In module 60, a decoding network 700 is similar to the previously described network 620 This particular module selector network includes switches SW 4-SW 7 in motherboard MB of controller system A Lines 700 a-700 d contain the logic which is coded into the motherboard position for module 60, as shown in FIGURE 9 Address lines Ao-A, are directed through inverters 702 a-702 d to a network of comparing EXCLUSIVE OR gates 704 a-704 d The output of these gates is lines 706 a-706 d which contain logic indicating the comparison between the address being processed by system A and module 60 These output lines control NAND gates 710, 712, the former of which is the reading gate and the latter of which is the writing gate Gate 712 corresponds generally to gate 334 of the schematic illustration in FIGURE 15 Inverters 710 a, 710 b and 333 control gates 710, 712 together with the logic from the selector or decoding network 700 The outputs 714 a, 714 b control inverters 716, 718 to produce selected logic in lines 720, 722 The logic in line 720 controls the logic or data transfer gate 724 A logic 1 in line 720 directs logic or data from gate 724 to display devices 64 a, 64 b through lines 734 a, 734 b.
When the address on lines A,-A, selects module 60, gates 710, 712 are activated If a READ mode is being processed, a logic 0 appears in the output of gate 333 This disables gate 712 A logic 1 at the DBINP pulse produces a logic 1 at the output of inverter 710 b This pulses gate 710 to produce a logic 0 at output 714 a Thus, a logic 1 is directed through the READ line 722 Inverter 722 a then activates decoder 740 Lines 720, 722 control input/output transfer device or gate 724 A logic 1 in line 722 transfers logic from the input of device 724 onto the data line D,-D, The data accumulators 730-736 have data which can be read by lines 730 a, 732 a or read and/or loaded by lines 734 a, 736 a In the READ mode, data from line 730 a, 732 a and 736 a is directed through data transfer device 724 for use on data lines D 0-D 7 The coding on lines A 8-A 1,, as shown in FIGURE 2 A, controls the output of byte decoder 740 A negative logic on one of the output lines 740 a-740 d activates a selected one of the four bytes, so that the byte can be either read or written In the READ mode, bytes no 0 to No 3 may be read It is apparent that the system shown in FIGURE 70 9 could be expanded to have eight input words to be read and eight output words to be written, or anv combination thereof.
In the WRITE mode of operation, the output of inverter 333 is a logic 1 This activates 75 gate 712 Gate 710 is not activated because there is no DBINP pule during a write instruction Line 720 steers transfer device 724 for writing information from the Do-D.
line into the data accumulators 734, 736 of 80 bytes No 2 and No 3, respectively Again the selected written byte is determined by the logic on lines 740 a-740 d from byte decoder 740, which is controlled by the logic of address lines A,-A,,, 85 Data can be placed onto lines D,-D, or outputted from these lines to units 64 a 64 b, in accordance with the logic on lines R/W and DBINP.
Module 60 must be selected before the 90 addressed byte is selected by decoder 740 The byte decoder may be energized bv a logic 0 on address A,2, as shown in FIGURE 2 A, when there is a select logic 0 at the E terminal These conditions indicate that the 95 decoder 740 is operative, i e module 60 has been selected, and the byte mode of operation is being used As discussed in connection with FIGURE 17, some chassis output modules, such as the one shown in FIGURE 9, can 100 be provided with a BIT mode of operation, which is controlled by logic on address line A,, In the BIT mode of operation, module may include output terminals Be-B 1.
During the writing operation, i e output, a 105 bit latch 742 writes selected information or data appearing on the D, line into a selected one of B,-B, outputs This can be accomplished by the circuitry shown schematically in FIGURE 15 and superimposed in a some 110 what abbreviated form on the structure of FIGURE 9 The decoder 742 is enabled by line 720 when module 60 is enabled and in a write mode Latch 742 corresponds basically to the addressable latch or decoder 332 115 of FIGURE 15 According to the logic on lines A 8-A,,, latch 742 transfers the logic at the output of inverter 330 onto one of the output terminals 742 a-742 h These correspond to the outputs B,-B,, as shown in FIGURE 120 Thus, during a BIT mode of operation for a byte module, such as module 60, the data above the selected Do line is transmitted to a selected one of eight separate output terminals and latched therein by latch 125 742 These separate output terminals B,-0, are a fifth byte of module 60, as shown in FIGURE 9, and can be selected by logic on 740 a-740 b to read into line D,-D 7 This byte logic is directed to the CPU module 130 2,8,8 31when selected and a bit selection is made at that module as previously discussed If the byte from lines Bo-Be is to be operated in the normal byte type of operation, a standard data transfer device 746 is used This device is activated by line 744 a and READ line 722.
This device may be activated or addressed by decoded information on lines 740 a-740 d from byte decoder 740 Thus, the fifth byte of information may be operated in the byte mode as well as being written into the bit latch 742 If a BIT mode of input is requested, the selection is made by the circuitry on module 10, as best shown in FIGURE 4.
is The circuitary of FIGURE 9 illustrates the ability to provide a circuit on an output module 60, having an address such as shown in FIGURE 2 A, whereby a single bit of logic or data may be written into a given output location Thus, even though a byte mode of operation is standard for a given output module, such as module 60 shown in FIGURE 9, it can be addressed in certain instances for a bit output into a certain bit of an output byte Various modifications could be incorporated using bit processing of output data in a byte input/output module, such as module 60.
INPUT/OUTPUT SYSTEM FOR BIT INFORMATION MODULE Referring now to FIGURE 1, modules 80 each include a series of output or input terminals These terminals are controlled by a single I/O driver module, shown as module 70, and illustrated in more detail in FIGURE In this illustrated embodiment of the input/output (I/O) bit driver type module, there is provided a selector NAND gate 750 which is controlled by comparing the logic of switches SW 10, SW 11 and SW 12, on the module, with the logic on address lines As-A,, EXCLUSIVE OR gates 752 a-752 c are used for performing the logic comparison and directing the results onto the input side of selector gate 750 Inverters 754 invert the logic on address lines A to Al, and line A,,.
Since module 70 controls I/O tracks or modules 80, an address, such as that shown in FIGURE 2 B, is used when module 70 is addressed to drive a particular input or output terminal on a selected module 80 When module or driver 70 is addressed, this is a track I/O and a logic 0 appears in line All, as shown in FIGURE 2 B This produces a logic 1 at the input of one inverter 754 A second inverter 756 on the line connected to the address line A,, produces a logic 1 at the input of gate 750 As previously mentioned, when an I/O track is being addressed, a logic 1 appears at both Al, and A,- Thus, a logic 0 appears in A 14 As shown in FIGURE 10, these lines are decoded and the logic of line A,, is reinverted by a second inverter 756 to produce a logic 1 at the input of gate 750.
When the logic on lines A,-A,, corresponds 65 to the module 70 all inputs to gate 750 are at a logic 1 When this happens during a machine cycle, a logic 0 appears at the input of inverter 758 This produces a logic 1 at the output 760 Inverters 760 a, 760 b control 70 the block data transfer device 770 and the track decoder or selector 772 Thus, when all inputs to selector gate 750 are a logic 1, transfer device 770 and track decoder 772 are enabled In the illustrated embodiment, the 75 logic at block selector lines BAO-BA 3 is the inverted form of the logic on lines A-A, and can select one of sixteen different circuits.
Thus, lines A,-A, address a particular block or input/output circuit or terminal The block, 80 as used herein is an input or an output circuit or unit on one of the modules or tracks 80.
Line BAO-BA 3 can contain sixteen different binary codes It is appreciated that this block decoder arangement is used to select one out 85 of sixteen different blocks on each module or track Address lines A 4-A, are used to produce a logic 0 in one of the sixteen track or module selector lines TA,-TA,, Thus, decoder 772 produces an enabling signal in 90 one of the sixteen track lines TA(-TA,,.
As so far described, one of sixteen blocks addressed by lines BAO-BA 3 is called by device 770 and one out of sixteen tracks or modules is called by the decoder 772 To 95 direct information to and from the selected circuit or block on a selected track or module, there is provided a data gate 774 which is enabled by a logic 1 in module select line 760.
Thus, gate 774 is enabled whenever module 100 has been selected Gate 774 is also control-led by the logic on the R/W line and the DBINP line This logic is inverted by inverter 774 a, 774 b, respectively A data transfer device 776 is controlled by the logic on line 105 778, which is the output of gate 774 A logic 1 in line 778 directs a single bit of data from the right to the left of transfer device 776, as indicated by the arrows A logic 0 in line 778 directs a single bit of logic from the left to the 110 lower terminal of transfer device 776, as indicated by the arrows Consequently, if the machine cycle being processed is a READ cycle, a logic 1 is applied to inverter 774 a.
This produces a logic 0 at one input of gate 115 774 Consequently, a logic 1 appears in line 778 This directs logic from line DI to the data line D Thus, module 70 is in the reading mode and reads the logic on the DI terminal from a selected circuit of a module 120 80, shown in FIGURE 1 and, in more detail, in FIGURE 11 If the machine cycle is a WRITE or output cycle, a logic 0 appears at the input side of inverter 774 a Thus, a logic 1 is directed to gate 774 Since DBINP is a 125 logic 0 when writing, a logic 1 appears at the output of inverter 774 b These logic conditions, with the logic 1 enabling pulse in line 760, produces a logic 0 in line 778 A logic 1,584,681 1,584,681 0 at the direction terminal of transfer device 776 directs data from the Do, line to the DO line In this manner, a single data bit is written into a given input/output location of a selected one of modules 80, as shown in FIGURE 11, An EXCLUSIVE OR gate 780 transfers inverted or non-inverted data from the DI line to the data transfer device 776 in accordance with the logic on address line A 13.
Thus, either a true or false data transfer can be inputted from a selected external location or terminal This hardwire conversion concept is very helpful in logic processing when inverted logic is to be loaded into the microprocessor MP.
In summary, FIGURE 10 shows a circuit for requesting information from a DI line or for applying data to a DO line The DI and DO lines are connectable to a specifically addressed data external terminal or location.
This information is multiplexed with respect to all modules 80 Only the addressed module 80, which may number as high as sixteen modules, can accept or provide data.
The interlock line 782 is used to assure that I/O driver of module 70 is in place A variety of structures could be used for this purpose; however, a simple interconnecting line as shown in FIGURE 10 is sufficient and preferred.
In practice the module shown in FIGURE is operated in byte mode and simulates bit mode of operation by reading and writing to single bit logic terminals with a single input and output data line D, This module simulates bit mode because of the conflict of definition in the effect of address lines A,, A,.
The CPU module assumes that address lines A,, A, and A 1, are used for bit selection when in bit mode Thus, a complete byte is used to input bit information and the CPU module makes the data selection.
INPUT/OUTPUT LOGIC TERMINALS.
The I/O driver or module of FIGURE 10 controls several separate modules 80 which are addressed by the track address lines TA,-TA 1, In FIGURE 11, one of these modules 80 is schematically illustrated A logic 0 on one of sixteen output leads B,-Bs, indicates that the terminal or location corresponding to the lead is at a » true » or » on » state This situation exists whether or not the terminal is an output or an input terminal In other words, a logic 0 on the output terminals, shown in FIGURE 1, indicates that the terminal is active The circuitry of FIGURE 11 is used to set various output devices connected to the terminals B,-B,, and to read a condition of the terminals whether they are connected to an input device 784 or on output device 786 Both of these devices are » on » or true with a logic O at the connected line, shown as lines BO and B,, respectively These input and output devices are representative and show how a logic 0 can correspond to an 65 «on» condition for both an input unit and an output unit, so that the lines B,-Bl, are universal and can be used with either an input or an output The block address is coded on lines BA,-BA, These lines correspond essen 70 tially to address lines A,-A 3 In accordance with the disclosure shown in FIGURE 11, two logic devices 790, 792 are used for » reading » logic from selected output or input terminals B,-B 1,, These reading units include 75 input lines 1-I, connected to the input side of circuit or block selector 790 and input lines I,-I,, connected to the input terminals of circuit or block selector 792 According to the code received upon terminals A, B and C, 80 these two selectors output binary logic on lines 790 a, 792 a Thus, according to the logic received at the A, B and C terminals, the enabled one of the two selectors 790, 792 outputs logic information on either line 790 a 85 or line 792 a, respectively Thus, the logic at any line Bo-B,, can be read by lines 790 a, 792 a.
The track or module 80 shown in FIGURE 11 includes memory devices 794, 796 which 90 create data or logic at output terminals OP 1-OP,, This output data or logic is the current reading of sixteen separate memory addresses The addresses are determined by the logic on input terminals A, B and C Until 95 a different logic is written in a selected memory address, the logic on lines OP,-OP,, remains constant To write at the various memory addresses, an input binry logic condition is received at lines 794 a, 796 a from in 100 put line 797 connected to the D, line from the driver circuit 70, shown in FIGURE 10.
The memory addresses are obtained from the code on lines BAO-BA 3.
The input lines Il-Il, and the output line 105 P,-OP 1,, are connected to transceivers TR 1-TR, These transceivers, which control logic or data to and from the lines or terminals B,-Bl,, may be a variety of forms.
However, in accordance with one aspect of the 110 invention, the circuit schematically illustrated in FIGURE 11 A is used in the preferred embodiment As previously mentioned, a logic 0 at lines or terminals To-B,, indicates a «yes» or «on» condition, whether or not 115 the terminal is an input or an output terminal.
Thus, the terminals may be used for driving either an input circuit, illustrated as unit 784 attached to line B,, or an output device or circuit, illustrated as unit 786 attached to lines 120 B,, These circuits can be either D C or A.C and still operate on the basis of a logic 0 indicating a » yes » condition Referring now to FIGURE 11 A, the transceiver circuit TR is illustrated for one controlled line or ter 125 minal B, As can be seen, the single channel transceiver logic circuit 800 connects input line I, to output line OP Power inverters 802, 804 are used in this circuit to provide logic received from inverters 822, 824 As long as a logic 0 is introduced into gate 820 by both of these inverters, NOR gate 820 has a logic 1 output in line 820 a, which enables memory devices or data latches 794, 796 Con 70 sequently, memory units 794, 796, which are RAM units, are activated when there is no reset or power failure.
Assuming that an address being processed by system A addresses the module 80 shown 75 in FIGURE 11, the addresses at lines BA&-BA,, which are address lines A,-A,, are directed by lines 830, 832 and 834 to the input terminals A, B and C of selectors 790, 792 and memory devices or data latches 794, 80 796 Thus, the addresses are multiplexed to all input and output devices shown in FIGURE 11 During this processing, a control logic network 840 determines which of the units shown in FIGURE 11 is active This 85 control network decodes the logic on line BA, (A 1) and the R/W line The first line includes an inverter 840 a, and the second line includes an inverter 840 b Reading NOR gates 842, 844 have output terminals 842 a, 844 a 90 connected to the enabling lines Tof block data selectors 790, 792, respectively In a like manner, the WRITE gates 846, 848 have output lines 846 a, 848 a, which are directed to the enabling terminals E of data latches 794, 796, 95 respectively Thus, the logic on the R/W line and the A&(BO,) line determines the active condition of the circuit shown in FIGURE 11.
Assuming that data is to be readsi e inputted, a logic 1 appears in the R/W line This 100 produces a logic 0 at the output of an inverter 840 b This deactivates the WRITE gates 846, 848 Thus, no information can be written into the latches 794, 796 According to the address on line A,(BA,), either READ gate 105 842 or READ gate 844 is active Thus, the address on A, produces a selection between data selector 790 and data selector 792 The coding on terminals A, B and C of the selector activated determines the logic on lines I,-I,, 110 which is directed from terminals Dor by line 790 a or line 792 a to gate 850 and then to input line DI Of course, a single selector could be used with four separate decoding terminals to produce a selected output accord 115 ing to the sixteen different logic conditions possible on four binary coded lines Whichever selector 790, 792 is active according to the address on line A,, the selected logic decoded by lines 830, 832 and 834 appears in 120 output 790 a or 792 a The other inputs are at a logic 0 Thus, the inverted logic appears at the output of a reading gate 850 This logic is again inverted by inverter 852 and is applied to the DI terminal shown in FIGURE 125 11 As indicated in FIGURE 11 A, the logic at the input of either selector 790 or selector 792 is in the inverted form Thus, the logic at the output terminal DI is in the inverted form In this manner, the logic from the 130 sufficient driving power Thus, the logic at output terminal OP 8 can be read by data selector 790 when a selected address is received on decoding terminals A, B and C Selector 790 must be activated to apply this single bit of logic onto DI, terminal A logic 1 on the OP 8 line indicates a «yes» condition If the logic terminal BT is an output, the terminal is made active by the logic 1 on the output line OP 8 If the logic on terminal B, controls an input unit, when the unit is » on » a logic 0 from the unit takes precedence over the OP 8 logic A logic 0 at the logic terminal B 7 when it is an input, holds the terminal at a logic 0 By this arrangement, system A can be debugged without actually connecting the various terminals B,-B,, By setting a given logic in the memory devices 794, 796, system A operates in accordance with preselected pattern terminal information Thus, a simulated activated input can be accomplished by writing a logic 1 at the addressed position or location in one of the memory devices 794, 796 In this manner, there is no need to connect these controlled logic terminals B(-B,, to either an input or an output for debugging or other preliminary review of controller system A A logic 0 at the output of a gate or inverter 802 for a given terminal indicates that that terminal is in the «yes» condition If the terminal is to be used for an input, there is no need to connect an input unit to accomplish this internal setting It can be seen that by using the circuit shown in FIGURE 1 l A, together with the circuitry shown in FIGURE 11, the system A can be operated without connecting the system to the various input and output devices.
Referring again to FIGURE 11, logic transfer devices 810, 812 are activated by logic 1 at the respective E terminals This is accomplished by a «yes «, i e logic 0 signal, at the TA, line The TAO-TA 1, lines are selfaddressing lines which are interconnected with motherboard MB and arranged in stairstep fashion so that the particular signal energized by track decoder 772 of module 70 shown in FIGURE 10 energizes a specific module 80.
In the preferred embodiment, if the first output terminal of decoder 772 is activated, i e is at a logic 0, the first external track or module is energized This sequencing is continued through sixteen different tracks 80 Each module 80 is activated by an internal network such as line 814 through inverter 816 The module 80 shown in FIGURE 11 is activated by TA O The next module is activated by TA,.
This could be done by wiring on the module or by advancing the lines TA,-TA,, at each separate location of a module 80 by a motherboard connection and keeping the addressing circuits of module 80 the same.
To assure that the system A is not in a reset condition and that there is operating power, a control gate 820 is used This gate has input 1,584,681 1,584,681 various input terminals I,-I,, can be read and directed to module 70 on the DI line.
To write at a Liven terminal B,-B 1, of module 80, the R/W line is shifted to a logic 0 This is inverted by inverter 840 b to activate gates 846, 848 The address on line A, determines which of these WRITE gates is active According to the active gate, the information from the DO line in line 797 is written at a selected address in either output data latch 794 or output data latch 796 Thus, the output lines OP,-OP 1, include the desired logic pattern for the various logic terminals B,-B,, This pattern can be updated during a » write » command at an address in data latches 794, 796 This writing function does not affect the existing logic on nonaddressed locations in latches 794, 796 The existing data at the sixteen addressable locations is latched into lines OP,-OP,, If the terminals are used to control outputs, this logic controls the state of the output If these terminals are inputs, then the input data takes precedent over the logic on lines OP,-O Pi,, as previously described in connection with the circuitry shown in FIGURE 11 A.
SUMMARY.
The programmable controller system A has been described in connection with the several components illustrated basically in FIGURE 1 Each of these components perform the functions and operations discussed in connection with each of the separate modules It is appreciated that various modules can be interchanged and additional modules can be used or modules can be removed according to the needs of a particular programmable controller system A which employs the microprocessor and CPU circuitry as best shown in FIGURE 4.
As a microprocessor processes the program generally contained in the PROM module 40, various inputs and outputs are reviewed in accordance with a preselected software instruction Outputs are set in accordance with desired preprogrammed logic in the programmable controller In addition, interrupt conditions which may be switches or other terminals can interrupt the programmable controller by placing microprocessor MP in the interrupt condition and then jump to a subroutine which may be stored at a selected position in one of the various memory units or modules System A, shown in FIGURE 1, includes the basic modules making up the preferred embodiment of the present invention.
Of course, additional interrupt modules could be used, additional input/output modules 80 could be provided to increase the logic terminals capabilities and a variety of bit or byte modules 70 could be employed This system can be adapted for controlling several inputs and outputs and for processing a variety of information anticipated when using a programmable controller.

Claims (9)

WHAT WE CLAIM IS:-

1 A programmable controller comprising a microprocessor having a plurality of bidirectional data terminals and a plurality of address terminals upon which a binary code 70 address of bits appears, a set of data lines, data input means for applying a byte of binary data on said set of data lines, said byte having a given bit on one of said data lines to be applied to a selected one of said data terminals 75 of said microprocessor for processing by said microprocessor; first logic network means connected to said set of data lines for selecting said given bit on said selected one of said data lines in said set in response to a coded address 80 on said address terminals of said microprocessor; and second logic network means for directing said selected bit from said first logic network to said selected one of said data terminals of said microprocessor 85

2 A programmable controller as claimed in claim 1, wherein said first logic network means includes inputs each arranged to carry a bit of said binary code at said address terminals and means for selecting said given bit 90 of a particular byte by decoding said address code at said inputs.

3 A programmable controller as claimed in claim 1 or 2, including means responsive to a bit of said binary code at said address ter 95 minals for inverting said given bit of said byte.

4 A programmable controller as claimed in claim 1, 2 or 3, wherein said first logic network means comprises decoding means having a single bit input terminal and a number of 100 single bit output terminals; and said controller further comprises means for connecting said single bit input terminal to said selected one of said data terminals of said microprocessor; circuit means connected to a number of said 105 address terminals of said microprocessor for applying data from said input terminal to a selected one of said single bit output terminals determined by the binary code on said number of address terminals; and, means for con 110 necting said output terminals to selected output devices for said controller.

A programmable controller as claimed in any one of claims 1 to 4, wherein said microprocessor comprises said addressed terminals 115 having a nominal impedance of a high order; multiple output address bus lines; integrated circuit means having input terminals connected to said address terminals and correlated output bus terminals, said output bus terminals 120 each exhibiting a low order impedance with a value of less than 1 % of said high order impedance, and means for connecting said address bus lines of said controller to said bus terminals of said integrated circuit means’125 whereby said output bus lines have low order impedance.

6 A programmable controller as claimed in 1584,681 claim 5, wherein said nominal resistance is 2.5 K oms.

7 A programmable controller as claimed in claim 5 or 6, wherein said low order impedance is in the range of 0 1-1 % of said high order impedance.

8 A programmable controller as claimed in any one of claims 5 to 7, wherein said bidirectional data terminals of said microprocessor each has a nominal impedance of a high order; multiple data bus lines; second integrated circuit means having input terminals connected to said data terminals and correlated output bus terminals; said output bus terminals of said second integrated circuit means each exhibiting a low order impedance with a value of less than about 1 % of said high order impedance; and, means for connecting said data bus lines of said controller to said bus terminals of said second integrated circuit means.

9 A programmable controller substantially as hereinbefore described with reference to the accompanying drawings.
LANGNER PARRY, Chartered Patent Agents, High Holbom House, 52-54 Hiah Holborn, London, WC 1 V 6 RR, Agents for the Applicants.
Printed for Her Majesty’s Stationery Office by the Courier Press, Leamington Spa, 1981.
Published by the Patent Office, 25 Southampton Buildings, London, WC 2 A l AY, from which copies may be obtained.

GB19385/77A
1976-07-01
1977-05-09
Programmable controller using microprocessor

Expired

GB1584681A
(en)

Applications Claiming Priority (1)

Application Number
Priority Date
Filing Date
Title

US05/701,858

US4107785A
(en)

1976-07-01
1976-07-01
Programmable controller using microprocessor

Publications (1)

Publication Number
Publication Date

GB1584681A
true

GB1584681A
(en)

1981-02-18

Family
ID=24818967
Family Applications (1)

Application Number
Title
Priority Date
Filing Date

GB19385/77A
Expired

GB1584681A
(en)

1976-07-01
1977-05-09
Programmable controller using microprocessor

Country Status (11)

Country
Link

US
(1)

US4107785A
(en)

AU
(1)

AU509173B2
(en)

CA
(1)

CA1091356A
(en)

CH
(1)

CH630735A5
(en)

DE
(1)

DE2727876B2
(en)

FR
(1)

FR2357007A1
(en)

GB
(1)

GB1584681A
(en)

IL
(1)

IL52228A
(en)

IT
(1)

IT1079041B
(en)

NZ
(1)

NZ184127A
(en)

SE
(1)

SE7707594L
(en)

Families Citing this family (34)

* Cited by examiner, † Cited by third party

Publication number
Priority date
Publication date
Assignee
Title

JPS5317240A
(en)

*

1976-07-31
1978-02-17
Toshiba Corp
Controller

US4165534A
(en)

*

1977-04-25
1979-08-21
Allen-Bradley Company
Digital control system with Boolean processor

US4178634A
(en)

*

1977-07-11
1979-12-11
Automation Systems Inc.
Programmable logic controller

US4275455A
(en)

*

1977-07-11
1981-06-23
Automation Systems, Inc.
Output interface card suitable for use with a programmable logic controller

US4270184A
(en)

*

1978-03-16
1981-05-26
Tokyo Shibaura Denki Kabushiki Kaisha
Microprocessor-based programmable logic controller

US4298933A
(en)

*

1978-07-08
1981-11-03
Tokyo Shibaura Denki Kabushiki Kaisha
Data-processing device including means to suppress the execution of unnecessary instructions

US4228495A
(en)

*

1978-12-19
1980-10-14
Allen-Bradley Company
Multiprocessor numerical control system

US4266281A
(en)

*

1979-04-02
1981-05-05
Allen-Bradley Company
Microprogrammed programmable controller

US4282584A
(en)

*

1979-05-30
1981-08-04
Allen-Bradley Company
Mini-programmable controller

US4794558A
(en)

*

1979-06-12
1988-12-27
Motorola, Inc.
Microprocessor having self-programmed eprom

JPS5636709A
(en)

*

1979-09-04
1981-04-10
Fanuc Ltd
Numerical control system

FR2471628A1
(en)

*

1979-12-12
1981-06-19
Auteg
Microprocessor based sequential automation controller – controls keyboard input, transducer input, output, and timing in accordance with preset programme

US4314329A
(en)

*

1980-02-04
1982-02-02
Cincinnati Milacron Inc.
Method and apparatus for using a computer numerical control to control a machine cycle of operation

JPS58195902A
(en)

*

1982-05-12
1983-11-15
Hitachi Ltd
Sequence controller

JPS58222310A
(en)

*

1982-06-21
1983-12-24
Omron Tateisi Electronics Co
Programmable controller provided with state pattern comparison function

FR2549988B1
(en)

*

1983-07-06
1986-03-21
Semy Engineering Sarl

PROGRAMMABLE INDUSTRIAL PROCESS CONTROLLER WITH INDUSTRIAL NOISE

US4638452A
(en)

*

1984-02-27
1987-01-20
Allen-Bradley Company, Inc.
Programmable controller with dynamically altered programmable real time interrupt interval

JPS6145354A
(en)

*

1984-08-10
1986-03-05
Nec Corp
Microprocessor

US4587613A
(en)

*

1985-02-21
1986-05-06
Solid Controls, Inc.
Microprocessor control system with a bit/byte memory array

US4723219A
(en)

*

1985-06-21
1988-02-02
Amca International Corporation
Programmed path for automatic tool retraction and return responsive to degradation threshold

DE3750132T2
(en)

*

1986-10-08
1994-10-20
Hitachi Ltd

POST CONTROL DEVICE.

US5235221A
(en)

*

1992-04-08
1993-08-10
Micron Technology, Inc.
Field programmable logic array with speed optimized architecture

US5331227A
(en)

*

1992-05-15
1994-07-19
Micron Semiconductor, Inc.
Programmable logic device macrocell with an exclusive feedback line and an exclusive external input line

US5384500A
(en)

*

1992-05-15
1995-01-24
Micron Semiconductor, Inc.
Programmable logic device macrocell with an exclusive feedback and an exclusive external input line for a combinatorial mode and accommodating two separate programmable or planes

US5287017A
(en)

*

1992-05-15
1994-02-15
Micron Technology, Inc.
Programmable logic device macrocell with two OR array inputs

US5300830A
(en)

*

1992-05-15
1994-04-05
Micron Semiconductor, Inc.
Programmable logic device macrocell with an exclusive feedback and exclusive external input lines for registered and combinatorial modes using a dedicated product term for control

US5220215A
(en)

*

1992-05-15
1993-06-15
Micron Technology, Inc.
Field programmable logic array with two or planes

US5298803A
(en)

*

1992-07-15
1994-03-29
Micron Semiconductor, Inc.
Programmable logic device having low power microcells with selectable registered and combinatorial output signals

DE69331061T2
(en)

*

1992-08-10
2002-06-06
Monolithic System Tech Inc

Fault-tolerant hierarchical bus system

US5313640A
(en)

*

1992-09-23
1994-05-17
International Business Machines Corporation
Method and system for the efficient response to multiple different types of interrupts

WO1995001601A1
(en)

*

1993-07-02
1995-01-12
Oakleigh Systems, Inc.
High-speed cpu interconnect bus architecture

US6898648B2
(en)

*

2002-02-21
2005-05-24
Micron Technology, Inc.
Memory bus polarity indicator system and method for reducing the affects of simultaneous switching outputs (SSO) on memory bus timing

US8573097B2
(en)

*

2005-12-14
2013-11-05
Siemens Product Lifecycle Management Software Inc.
System and method for automatic local return for lathe NC-machining cycle interruption

WO2017161439A1
(en)

*

2016-03-21
2017-09-28
Mobile Electronics, Inc.
Method and system for a universal programmable voltage module

Family Cites Families (5)

* Cited by examiner, † Cited by third party

Publication number
Priority date
Publication date
Assignee
Title

US3810118A
(en)

*

1971-04-27
1974-05-07
Allen Bradley Co
Programmable matrix controller

US3798612A
(en)

*

1971-09-13
1974-03-19
Allen Bradly Co
Controller programmer

US3959776A
(en)

*

1974-02-19
1976-05-25
Modicon Corporation
Programmable printer

US3942158A
(en)

*

1974-05-24
1976-03-02
Allen-Bradley Company
Programmable logic controller

US3970992A
(en)

*

1974-06-25
1976-07-20
Ibm Corporation
Transaction terminal with unlimited range of functions

1976

1976-07-01
US
US05/701,858
patent/US4107785A/en
not_active
Expired – Lifetime

1977

1977-05-09
GB
GB19385/77A
patent/GB1584681A/en
not_active
Expired

1977-05-17
NZ
NZ184127A
patent/NZ184127A/en
unknown

1977-06-02
IL
IL52228A
patent/IL52228A/en
unknown

1977-06-07
CA
CA280,066A
patent/CA1091356A/en
not_active
Expired

1977-06-13
IT
IT49797/77A
patent/IT1079041B/en
active

1977-06-21
DE
DE2727876A
patent/DE2727876B2/en
not_active
Withdrawn

1977-06-24
CH
CH780477A
patent/CH630735A5/en
not_active
IP Right Cessation

1977-06-28
AU
AU26536/77A
patent/AU509173B2/en
not_active
Ceased

1977-06-30
SE
SE7707594A
patent/SE7707594L/en
unknown

1977-06-30
FR
FR7720121A
patent/FR2357007A1/en
not_active
Withdrawn

Also Published As

Publication number
Publication date

AU509173B2
(en)

1980-04-24

FR2357007A1
(en)

1978-01-27

AU2653677A
(en)

1979-01-04

DE2727876A1
(en)

1978-01-05

US4107785A
(en)

1978-08-15

CA1091356A
(en)

1980-12-09

DE2727876B2
(en)

1980-02-21

CH630735A5
(en)

1982-06-30

IL52228A0
(en)

1977-08-31

IT1079041B
(en)

1985-05-08

NZ184127A
(en)

1981-03-16

IL52228A
(en)

1979-10-31

SE7707594L
(en)

1978-01-02

Similar Documents

Publication
Publication Date
Title

GB1584681A
(en)

1981-02-18

Programmable controller using microprocessor

US4303990A
(en)

1981-12-01

Programmable controller using microprocessor

US4078259A
(en)

1978-03-07

Programmable controller having a system for monitoring the logic conditions at external locations

US4093998A
(en)

1978-06-06

Programming module for programmable controller using a microprocessor

US4200916A
(en)

1980-04-29

Programmable controller using microprocessor

US4006464A
(en)

1977-02-01

Industrial process controller

US4180862A
(en)

1979-12-25

Programmable controller using microprocessor

US3978454A
(en)

1976-08-31

System and method for programmable sequence control

US3798612A
(en)

1974-03-19

Controller programmer

US3470542A
(en)

1969-09-30

Modular system design

US4564913A
(en)

1986-01-14

Flexible transfer machine

US4281392A
(en)

1981-07-28

Memory circuit for programmable machines

EP0158430B1
(en)

1991-05-15

Programming controller having automatic contact line solving

US4118792A
(en)

1978-10-03

Malfunction detection system for a microprocessor based programmable controller

US4165534A
(en)

1979-08-21

Digital control system with Boolean processor

US4275455A
(en)

1981-06-23

Output interface card suitable for use with a programmable logic controller

US3579201A
(en)

1971-05-18

Method of performing digital computations using multipurpose integrated circuits and apparatus therefor

US3283308A
(en)

1966-11-01

Data processing system with autonomous input-output control

US4158226A
(en)

1979-06-12

Programmable controller with limit detection

KR860003559A
(en)

1986-05-26

Small computer

US3395392A
(en)

1968-07-30

Expanded memory system

US4200914A
(en)

1980-04-29

Memory programming control system for storing a wire number program of a ladder diagram for a programmable controller

US3623022A
(en)

1971-11-23

Multiplexing system for interleaving operations of a processing unit

US4178634A
(en)

1979-12-11

Programmable logic controller

US4553224A
(en)

1985-11-12

Multiplexed data handler for programmable controller

Legal Events

Date
Code
Title
Description

1981-05-28
PS
Patent sealed [section 19, patents act 1949]

1983-12-21
PCNP
Patent ceased through non-payment of renewal fee

Download PDF in English

None