GB2108735A - Electronic control means - Google Patents

Electronic control means Download PDF

Info

Publication number
GB2108735A
GB2108735A GB08113521A GB8113521A GB2108735A GB 2108735 A GB2108735 A GB 2108735A GB 08113521 A GB08113521 A GB 08113521A GB 8113521 A GB8113521 A GB 8113521A GB 2108735 A GB2108735 A GB 2108735A
Authority
GB
United Kingdom
Prior art keywords
eprom
chip
programming
read
switch
Prior art date
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.)
Withdrawn
Application number
GB08113521A
Inventor
M J Hampshire
Dr J Parkes
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.)
PMJH ELECTRONIC CONSULTANTS LI
Original Assignee
PMJH ELECTRONIC CONSULTANTS LI
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.)
Filing date
Publication date
Application filed by PMJH ELECTRONIC CONSULTANTS LI filed Critical PMJH ELECTRONIC CONSULTANTS LI
Priority to GB08113521A priority Critical patent/GB2108735A/en
Publication of GB2108735A publication Critical patent/GB2108735A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/10Programme control other than numerical control, i.e. in sequence controllers or logic controllers using selector switches
    • G05B19/102Programme control other than numerical control, i.e. in sequence controllers or logic controllers using selector switches for input of programme steps, i.e. setting up sequence
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/24Resetting means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • G06F9/45508Runtime interpretation or emulation, e g. emulator loops, bytecode interpretation

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention relates to the field of electronic microprocessor control equipment. The application describes a computer containing a resident high level language interpreter which provides for easy programming. The computer contains read-write memory (RAM) 4 and non-volatile programmable read-only memory (PROM) 8 and means to burn programmes into the read-write memory without the necessity for any external circuitry or equipment. The computer will, on power-up, search and find the area of contiguous RAM and will then execute a valid programme instruction starting in a specific address of PROM and so provide a turn-key operation by entering automatically the control mode of the system. If a valid programme is, however, not found the computer enters the command mode of the system and communicates with an external terminal. <IMAGE>

Description

SPECIFICATION Electronic means for control of machinery The present invention relates to electronic means for controlling and/or monitoring machinery or any system requiring complex logic with or without arithmetic capabilities.
For some time programmable logic controllers and computer systems have been available and have been used to control systems, or more specifically machinery, requiring complex logic, timing delays and arithmetic operations. The problem has been that the electronic system has required considerable programming skill if machine code were used. If a high-level language were used, then the electronic system carries a high cost penalty in that it is necessary to provide means to interpret the language or to compile it.
Turn-key systems, which are necessary in many control and monitoring applications, are usually achieved by holding the operating programme in a non-volatile memory. Any variable data would normally be loaded manually from a keypad input into a volatile memory and this operation would be necessary each time the system was poweredup. Any changes in the operating software of firmware would usually be achieved by using a separate development system, which had the capability of burning PROM, EPROMS or EAROMS. Consequently, unless they are expensive and sophisticated present systems are not especially versatile and do not find application in the general area of control and monitoring of cheaper machinery and systems.The present invention proposes a simple, cheap method of controlling machinery using a high-level language where the means for permanently burning a programme into a non-volatile memory are included in the control system. Consequently, the system is versatile in that variable data can be tried and then permanently committed to nonvolatile memory when satisfactory. Similarly, programme changes can be achieved within the proposed system and again committed to permanent memory when satisfactory, changed and tested without the requirement of a separate development system or PROM burning unit.
According to the present invention, there is provided a volatile read-write memory, a nonvolatile normally read-only memory, circuit means for writing to the non-volatile memory, and a processor for controlling the transfer of data from the volatile memory to the non-volatile memory using the circuit means for writing to the nonvolatile memory, said processor having means to run a programme stored in the non-volatile memory so providing a resident control mode for the system, and means to communicate with an external terminal so providing an external interactive command mode for the system, which also includes circuit means for determining whether the system is in the said resident control mode or the said interactive command mode.
A preferred embodiment of the apparatus may comprise one or more of the following advantageous features:~ (a) The system comprises permanent memory containing a programme to interpret a high level language.
(b) The system comprises means to handle one or more input/output lines which provide control and/or monitoring capability.
(c) The system comprises a serial input line and a serial output line for the purpose of providing communication with a VDU (visual display unit with keypad) or similar device such as a keypad and/or a printer.
(d) The system comprises electrical lines and connectors which will provide for expansion of the system. Such expansion may include one or more of the following:~ (1) extra memory (2) extra input/output lines (3) A/D and/or D/A channels (4) module for switching power (5) arithmetic (number-crunching) circuit means (6) real-time clock and/or calendar (7) keypad (8) visual display means (9) extra microprocessor (e) The system comprises switching means to enable a number of programme alternatives to be selected.
(f) The system comprises a microprocessor, which on power-up will check that ROM exists at a specified address and, if so, execute the programme starting there, if not will interact with and receive instructions from, an external terminal.
(g) The system comprises switching means to enable or disable the ROM resident at the specific address referred to in (f) above so that the system will operate a programme starting at the specific address, if the ROM is enabled, or, if disabled, will interact with an external terminal in an interactive command mode.
In order that the invention may be more clearly understood an embodiment of the invention will now be described with reference to the accompanying figures.
Figure 1 illustrates the circuit containing a microprocessor with power-up reset, together with address decode logic and means for generating RS232 serial communication.
Figure 2 illustrates a circuit containing RAM, EPROM together with a circuit for writing to the EPROM and including a programmable I/O circuit providing three, 8 bit parallel I/O ports.
Referring to figure 1, there is a microprocessor, 1, which is a National Semiconductor device number 8073 which contains a Tiny Basic Interpreter specifically intended for control application. On power-up this processor does an automatic search of the memory space and finds the area containing RAM giving great flexibility as to the location and amount of RAM which is included in the design. After the memory search the processor will execute any Basic programme starting in ROM at address location 8000 Hex.
The decoder chip, 2 is enabled at address 8000 H by the highest address line and CSO selects the 2Kx8 EPROM chip, 3, in figure 2. The chip select line CS2 is used to enable a 6116 which is a 2Kx8 CMOS RAM chip, 4, which could readily be made non-volatile by battery back-up although this feature is not shown.
Referring again to figure 1 , the circuit provides a serial input line 5 which is capable of receiving RS232 signals. Similarly, line 6, provides RS232 serial transmission, the -5V supply being derived from a 7660 chip, 7. The three switches, 8, enable three logic ones or three logic zeros or any of the eight possible combinations onto the data lines and provided the data bus is not being driven by any of the chips, the three digit binary number can be read by the microprocessor. This provides for the selection of any one of eight possible options which reside in the Basic Interpreter, and selects amongst other things, the baud rate of the serial communication. The resistors connecting the switches to +5V must be at least less than 3 of the value of the resistors connecting the other pole of each switch to ground.Also both resistors must be large enough so that any chip can drive the data bus high or low irrespective of the state of any of the switches, 8.
Figure 1 shows a reset circuit, which is activated when the system is powered up. The capacitor, 9, is charged through the resistor 10 and whilst pin 37 is held low the processor, 1, is reset. The transistor,11, inverts the signal and provides an active high reset, 12, which is used to reset the programmable 110 chip,13, which provides three parallel 8 bit 110 ports 14, 1 5 and 16 (see Figure 2). The I/O chip shown is the 8255 and is memory mapped being selected from# generated by the decode chip, 2, in figure 1.
The EPROM 3, shown in Figure 2 requires a 25V supply for programming which is generated from a standard TL497 switching regulator chip, 17. The regulator is enabled on closing the switch, 18 and through the exclusive OR gate, 19 connected as an inverterthe monostable, 20, is also enabled. When the processor 1 generates a low write enable pulse, and a low zeroeth chip select, CSO and WR are both active low and through the OR gate,21, the monostable 20 is triggered producing an active low WAIT pulse for fifty milliseconds. During this time the appropriate data required to write to the EPROM, 3, is held on the data bus.The PD/PGM signal (pin 18, chip 3) which is normally active low in the read mode, is inverted by the exclusive OR gate, 22, connected as an inverter to provide the correct level for programming. After programming is complete, verification is possible with the 25V level still enabled by performing a read on the EPROM, and comparing the data with the original information to be programmed. With switch 18 open the regulator chip 17 is disabled and has the feature that the 25V supply falls to just below 5V which is supplied to pin 21 of the EPROM 3. This 5V level is necessary for the normal read only operation of the EPROM.
Instead of activating the programming of the EPROM by a switch,18, it is possible to connect the active side of the switch to one bit of an output port say, 14. In this way the programming of the EPROM could be totally initiated by software.
The following programme is written in BASIC and provides the software initially necessary to move programmes from RAM to EPROM and vice versa, giving the hardware described a very high degree of versatility:~ 10 N=8000 20 M=19100 30 FOR l=0TO99 40 @(N+I)=@(M+I)@(N+l)=@(M+l) 50 NEXT I The above programme is by way of example and moves a hundred bytes of data stored from address M, in the above case 9100 Hex upwards, which is located in RAM in the specific embodiment described here, and moves the data sequentially one byte at a time to address 8000 Hex upwards which is the start of the EPROM memory space. Provided that the programming switch 18 is closed then this movement of data results in the permanent storage of the data into a virgin EPROM.
On power-up the microprocessor,1, will check that PROM exists at 8000 Hex, and if so, will execute the programme resident there. The system is then in the resident control mode. If the switch, 23 in figure 2 is opened then on power-up the microprocessor,1, will find no PROM exists at 8000 Hex because the switch, 23 has disabled the EPROM containing that address by not permitting the read pin 20 to be pulled low. Under these conditions the processor goes into command mode and will interact with external instruction input through the serial RS232 port. In this command mode it is possible to move programmes, modify them, to test them and to permanently commit them to EPROM as outlined above.
Claims (Filed on 28 April 1982) 1. A system comprising, volatile read-write memory, mono-volatile normally read-only memory, circuit means for writing to and programming the non-volatile memory, switching means to enable the aforesaid circuit means, a processor, means to execute a programme of instructions stored in memory, means to communicate to an external terminal, means to provide a resident control mode, means to provide a command mode interactive with the external terminal and means on power-up to determine
**WARNING** end of DESC field may overlap start of CLMS **.

Claims (7)

  1. **WARNING** start of CLMS field may overlap end of DESC **.
    the processor will execute any Basic programme starting in ROM at address location 8000 Hex.
    The decoder chip, 2 is enabled at address 8000 H by the highest address line and CSO selects the 2Kx8 EPROM chip, 3, in figure 2. The chip select line CS2 is used to enable a 6116 which is a 2Kx8 CMOS RAM chip, 4, which could readily be made non-volatile by battery back-up although this feature is not shown.
    Referring again to figure 1 , the circuit provides a serial input line 5 which is capable of receiving RS232 signals. Similarly, line 6, provides RS232 serial transmission, the -5V supply being derived from a 7660 chip, 7. The three switches, 8, enable three logic ones or three logic zeros or any of the eight possible combinations onto the data lines and provided the data bus is not being driven by any of the chips, the three digit binary number can be read by the microprocessor. This provides for the selection of any one of eight possible options which reside in the Basic Interpreter, and selects amongst other things, the baud rate of the serial communication. The resistors connecting the switches to +5V must be at least less than
    3 of the value of the resistors connecting the other pole of each switch to ground.Also both resistors must be large enough so that any chip can drive the data bus high or low irrespective of the state of any of the switches, 8.
    Figure 1 shows a reset circuit, which is activated when the system is powered up. The capacitor, 9, is charged through the resistor 10 and whilst pin 37 is held low the processor, 1, is reset. The transistor,11, inverts the signal and provides an active high reset, 12, which is used to reset the programmable 110 chip,13, which provides three parallel 8 bit 110 ports 14, 1 5 and
    16 (see Figure 2). The I/O chip shown is the 8255 and is memory mapped being selected from# generated by the decode chip, 2, in figure 1.
    The EPROM 3, shown in Figure 2 requires a 25V supply for programming which is generated from a standard TL497 switching regulator chip, 17. The regulator is enabled on closing the switch, 18 and through the exclusive OR gate, 19 connected as an inverterthe monostable, 20, is also enabled. When the processor 1 generates a low write enable pulse, and a low zeroeth chip select, CSO and WR are both active low and through the OR gate,21, the monostable 20 is triggered producing an active low WAIT pulse for fifty milliseconds. During this time the appropriate data required to write to the EPROM, 3, is held on the data bus.The PD/PGM signal (pin 18, chip 3) which is normally active low in the read mode, is inverted by the exclusive OR gate, 22, connected as an inverter to provide the correct level for programming. After programming is complete, verification is possible with the 25V level still enabled by performing a read on the EPROM, and comparing the data with the original information to be programmed. With switch 18 open the regulator chip 17 is disabled and has the feature that the 25V supply falls to just below 5V which is supplied to pin 21 of the EPROM 3. This 5V level is necessary for the normal read only operation of the EPROM.
    Instead of activating the programming of the EPROM by a switch,18, it is possible to connect the active side of the switch to one bit of an output port say, 14. In this way the programming of the EPROM could be totally initiated by software.
    The following programme is written in BASIC and provides the software initially necessary to move programmes from RAM to EPROM and vice versa, giving the hardware described a very high degree of versatility:~
    10 N=8000
    20 M=19100
    30 FOR l=0TO99
    40 @(N+I)=@(M+I)@(N+l)=@(M+l)
    50 NEXT I The above programme is by way of example and moves a hundred bytes of data stored from address M, in the above case 9100 Hex upwards, which is located in RAM in the specific embodiment described here, and moves the data sequentially one byte at a time to address 8000 Hex upwards which is the start of the EPROM memory space. Provided that the programming switch 18 is closed then this movement of data results in the permanent storage of the data into a virgin EPROM.
    On power-up the microprocessor,1, will check that PROM exists at 8000 Hex, and if so, will execute the programme resident there. The system is then in the resident control mode. If the switch, 23 in figure 2 is opened then on power-up the microprocessor,1, will find no PROM exists at
    8000 Hex because the switch, 23 has disabled the EPROM containing that address by not permitting the read pin 20 to be pulled low. Under these conditions the processor goes into command mode and will interact with external instruction input through the serial RS232 port. In this command mode it is possible to move programmes, modify them, to test them and to permanently commit them to EPROM as outlined above.
    Claims (Filed on 28 April 1982) 1. A system comprising, volatile read-write memory, mono-volatile normally read-only memory, circuit means for writing to and programming the non-volatile memory, switching means to enable the aforesaid circuit means, a processor, means to execute a programme of instructions stored in memory, means to communicate to an external terminal, means to provide a resident control mode, means to provide a command mode interactive with the external terminal and means on power-up to determine whether the control mode or the command mode is entered.
  2. 2. What is claimed in 1 where the means to execute a programme of instructions is a high level language interpreter.
  3. 3. What is claimed in 2 where the high level language is BASIC.
  4. 4. What is claimed in 1 and 2, where the high level language interpreter is stored in the processor.
  5. 5. What is claimed in 1 where the switching means enabling the circuit means for writing to and programming the non-volatile memory comprises a means responsive to a two-state logic voltage level.
  6. 6. What is claimed in 5 where the two state logic voltage level is generated by a mechanical switch.
  7. 7. What is claimed in 1 where the circuit means for writing to and programming the nonvolatile memory comprises a monostable.
GB08113521A 1981-05-01 1981-05-01 Electronic control means Withdrawn GB2108735A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
GB08113521A GB2108735A (en) 1981-05-01 1981-05-01 Electronic control means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GB08113521A GB2108735A (en) 1981-05-01 1981-05-01 Electronic control means

Publications (1)

Publication Number Publication Date
GB2108735A true GB2108735A (en) 1983-05-18

Family

ID=10521539

Family Applications (1)

Application Number Title Priority Date Filing Date
GB08113521A Withdrawn GB2108735A (en) 1981-05-01 1981-05-01 Electronic control means

Country Status (1)

Country Link
GB (1) GB2108735A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2508676A1 (en) * 1981-06-26 1982-12-31 Sony Corp MICROCOMPUTER SYSTEM
CN111813038A (en) * 2020-07-10 2020-10-23 四川爱联科技有限公司 Method and system for simultaneously supporting CCO (common client) mode and STA (station) mode on PLC (programmable logic controller) module

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2508676A1 (en) * 1981-06-26 1982-12-31 Sony Corp MICROCOMPUTER SYSTEM
CN111813038A (en) * 2020-07-10 2020-10-23 四川爱联科技有限公司 Method and system for simultaneously supporting CCO (common client) mode and STA (station) mode on PLC (programmable logic controller) module
CN111813038B (en) * 2020-07-10 2023-08-22 四川爱联科技股份有限公司 Method and system for simultaneously supporting CCO and STA modes on PLC module

Similar Documents

Publication Publication Date Title
US6009496A (en) Microcontroller with programmable embedded flash memory
US5327531A (en) Data processing system including corrupt flash ROM recovery
US6115814A (en) Memory paging scheme for 8051 class microcontrollers
JP3234331B2 (en) PC card with multiple communication protocols
US4796235A (en) Write protect mechanism for non-volatile memory
US5812867A (en) Integrated circuit comprising a microprocessor, a memory and internal configurable peripherals
US4498151A (en) On board non-volatile memory programming
KR100305490B1 (en) Nonvolatile memory control circuit
US4019175A (en) Program changeable sequence controller
US5768563A (en) System and method for ROM program development
KR0142033B1 (en) Micro computer
KR100286915B1 (en) Microcomputers with Flash Ipyrome inside
US5802268A (en) Digital processor with embedded eeprom memory
KR0172001B1 (en) Re-programming apparatus of bios memory
EP0587445B1 (en) Semiconductor integrated circuit and IC card using the same
GB2108735A (en) Electronic control means
US6697686B1 (en) Circuit configuration and method for storage management and execution of user programs in a small control unit
US4387442A (en) Controlled machine inhibition when control module is absent
US5974519A (en) Address re-designate circuit for microcontroller
US4188617A (en) System for converting analog signals to multiplexed digital data
US6182207B1 (en) Microcontroller with register system for the indirect accessing of internal memory via auxiliary register
KR0141079B1 (en) Automatic recognition device of memory map type I / O area
KR100290280B1 (en) Microcontroller with Programmable Flash Memory
US5384732A (en) Semiconductor device comprising a function change over switching circuit having a non-volatile storage device
KR20010052868A (en) Method and system for updating user memory in emulator systems

Legal Events

Date Code Title Description
WAP Application withdrawn, taken to be withdrawn or refused ** after publication under section 16(1)