Imperial College of Science and Technology (University of London

Total Page:16

File Type:pdf, Size:1020Kb

Imperial College of Science and Technology (University of London Imperial College of Science and Technology (University of London) MICROCOMPUTER CONTROL SYSTEM FOR DIESEL ENGINES by S. Wijeyakumar BSc (Eng), DIC, MSc (Lond) January, 1981 This thesis forms part of the requirements for the Doctor of Philosophy degree of the University of London Mechanical Engineering Dept Exhibition Road South Kensington London SW7 2BX - i i - TO My Dad, Sister and Brothers and the memory of my Mother - i i i - ABSTRACT This thesis presents the details of a microcomputer based controller intended for diesel engine test-beds. It is based on a 16-bit TMS 9900 microprocessor and provides the necessary capability to conduct steady- state and transient test operation. In addition, a "Fail Safe" software alarm system is included to pro- tect the engine. A LSI-11 based microcomputer system, currently being developed, will provide the test-points to the above controller, control data-logging and pro- cessing and provide the user interface. Detailed hardware design analysis of the controller (i.e. selection of microprocessor, ADC, DAC etc), and software construction based on a "Modular Programming" concept are described. Mathematical modelling techniques for engine- load dynamics, using continuous control theory and sam- pled data concept are outlined. Formulation of speed and torque control algorithms are presented. For speed control, a proportional control algorithm is used and the integration is performed by the actuator, the stepping motor. This algorithm provides feedforward compensation for the anticipated load change demand. A 3-mode controller is employed for torque control, with a sampling frequency of 20 Hz. Optimization of the controller is described. - i v - To demonstrate the capability of the system, a part of the proposed 1979 US heavy duty diesel Federal Smoke and Emission Schedule, (to be implemented in 1983) was conducted. The results show high accuracy and repeatability. - v - ACKNOWLEDGEMENTS I wish to acknowledge Dr. N. WATSON for his constant encouragement and supervision of this work. My thanks are also due to MR. R.D. BLOXHAM for designing and constructing the Hardware of the Control System and MR. C. HALL for setting up the engine test-bed. I am greatly in debt to MR. K. PATHMANATHAN for his invaluable help in preparing the diagrams of this manuscript. My appreciation is also due to MRS. SAKU KARUNARATNE for her valuable contribution of a neatly typed text. Finally, I wish to express my sincere gratitude to my brother DR. S. BALACHANDRAN for giving me this oppor- tunity to complete my studies. - VI - CONTENTS Page NOTATION 1 CHAPTER 1. INTRODUCTION 1.,1 . Introduction and Background 5 1. 2. Microprocessor, Memory and Assessment 12 1.2. 1. History of Microprocessors 12 1.2. 2. Bus Architecture 14 1.2. 3. Memory 17 1.2.3. 1. Volatile Memory 18 1.2.3. 2. Non-Volatile Memory 19 1.2. 4. Assessment 20 1. 3. Microprocessor-Based Engine-Test Facility 21 1.3. 1. Control Module 22 1.3. 2. Data-Acquisition Module 24 1. 4. Objectives 27 1. 5. Outline of the Present Work 29 CHAPTER 2. SUMMARY OF PREVIOUS WORK 2. 1. Computerised Engine Test-Beds 35 2. 2. Microcomputers in Automotive Technology 37 2. 3. DDC (Direct Digital Control) System 42 2.3. 1. DDC Algorithms 43 2.3. 2. DDC System design 48 2.3. 3. Analysis of Sampling Rates 50 2.3. 4. Tuning PID Controllers 52 2. 4. Engine Modelling 53 - VII - Page CHAPTER 3. SYSTEM DESIGN ANALYSIS 3.1. Introduction 56 3.2. Microprocessor Selection 56 3.3. TMS 9900 Microprocessor 63 3.4. Microcomputer Control System at Imperial College 64 3.5. Test Bed 71 3.5.1. Engine 71 3.5.2. Eddy-Current Dynamometer 73 3.6. Description of Subsystems 7 5 3.6.1. Speed Control System 75 3.6.1.1. Speed Control Interface 76 3.6.2. Torque Control System 8 3 3.6.2.1. ADC Selection 86 3.6.2.2. Torque Control Interface 91 3.6.3. Interrupt Control System 9 4 CHAPTER 4. THEORETICAL ANALYSIS 4.1. Introduction 96 4.2. Engine Load Dynamics 99 4.3. Sampled Data Model for Compression Ignition Engines 105 4.4. Review of Engine-Test System 108 4.5. Torque Control 110 4.5.1. PID Control 115 4.5.2. Modifications to Improve PID 119 4.5.3. Improved Derivative Action 121 4.5.4. Tuning of PID Control 123 - VIII - Page 4.5.5. Effects of Sampling 126 4.6. Speed Control 130 4.7. Software Design Considerations 135 CHAPTER 5. CONTROL SOFTWARE DESIGN 5.1. Introduction 138 5.2. Modular Programming and Control Software Structure 141 5.3. Key Features Unique to Programming TMS 9900 151 5.4. Description of Control Software 154 5.4.1. Main Program 155 5.4.2. Shared Subprograms 171 5.5. Fail Safe and Alarm System 175 5.6. Program Development Tools 177 CHAPTER 6. EXPERIMENTATION AND EVALUATION 6.1. Introduction 17 9 6.2. Speed Control Implementation 181 6.3. Torque Control Implementation 187 6.3.1. Static Calibration 188 6.3.2. Dynamic Calibration 190 6.3.3. PID Control 195 6.3.3.1. Tuning of PID 195 6.3.4. Review of Torque Control System 198 6.4. Optimization of Torque Control 205 6.4.1. Basic PID 205 6.4.2. Modified PID-1 206 - IX - Page 6.4.3. Modified PID-2 207 6.5. Proposed 197 9 USA Federal Smoke and Emission Test 213 CHAPTER .7. CONCLUSION AND RECOMMENDATIONS 7.1. CONCLUSION 2 24 7.2. RECOMMENDATIONS 225 7.2.1. Speed Measurement 2 25 227 7.2.2. Speed Control 7.2.3. Torque Control 2 30 7.2.4. Digital Filtering 231 7.2.5. Software Development 2 31 REFERENCES 2 35 APPENDICES APPENDIX 1. TMS 9900 Assembly Language and Cross-Compiler 2 59 APPENDIX 2. Proposed 197 9 USA Federal Smoke and Emission Schedule 274 APPENDIX 3. Curve Fit Routine 280 APPENDIX 4. Source listing of Control Software 283 APPENDIX 5. Specification of Control and Data logging system 339 - 1 - NOTATION SYMBOL C : Coefficient of viscous damping th C' n : Controlled process output at the N sampling instant C(s) : Output signal f C(t) : Controlled process output at time 't 4- Vi e : Error at the N sampling instant N e : Steady state error u O e(t) : Error at time ' t' E : BEC unit input (mV) E(s) : Error signal G (s) : Transfer function of Controller c I : Dynamometer stator coil current J : Polar moment of inertia K : Torsional Stiffness K : Controller gain c ^ K : Speed gain/torque at constant governor lever R posn. Kgp : Speed controller gain K : Speed gain/governor lever posn. at constant t torque K^ : Derivative gain for 3-mode controller K^. : Integral gain for 3-mode controller Kp : Proportional gain for 3-mode controller K : Torque gain/torque at constant governor lever R posn. - 2 - K : Torque gain/governor lever posn at constant speed L : Dead time th : Controller output at the N sampling instant M(S) : Actuating Signal N : Number of samples R : Governor lever position or max. open-loop reaction rate for unit-step input RCs) : Reference input T : Torque (mKp) : Derivative time constant : Filter time constant T. : Integral time constant l T : Sampling period s V : Initial off-set m ft : angular speed SUFFIX e : Engine d : Dynamometer f : Final i : initial ABBREVIATION ADC : Analoque to Digital convertor ALU : Arithmetic logical Unit - 3 - BEC : Brake Excitation Control Unit CPU : Central Processing Unit CRU : Communication Register Unit CU : Control Unit CUTS : Computer User's Tape System DAC : Digital to Analoque Convertor DDC : Direct Digital Control DMAC : Direct Memory Access Controller FIFO : First-in-First-out FVC : Frequency to Voltage Convertor GSCL : Governor Speed Control Lever IAE : Integral Absolute Error I.C : Imperial College LED : Light Emitting Diode LP : Line Printer LSB : Least Significant Bit LSI : Large Scale Integration MSB : Most Significant Bit MT : Magnetic Tape Unit PC : Program Counter PID : Proportional-Integral-Derivative RAM : Random Access Memory ROM : Read Only Memory S/H : Sample-and-Hold SMS : Stepping Motor Steps ST : Status Register TDC : Top Dead Centre TTY : Teletype UART : Universal Asynchronous Receive and Transmission - 4 - VDU : Visual Display Unit WP : Workspace Pointer - 5 - CHAPTER 1 INTRODUCTION 1.1 Introduction and Background Present trends towards stricter vehicle Exhaust Emission Standards and sharply rising fuel costs have intensified research and development programmes in Automobile Manufacturing Industries. The prime task is to make vehicles with low exhaust emission and high fuel economy while maintaining acceptable drive characteristics. The long-term task will be a major redesign of present-day automobiles, with emphasis on reduced size, weight, and alternative powertrain systems (19). This has led to a major increase in the demand for diesel engines. Although diesel engines are attract- ive due to their good fuel consumption, they are not wholely without faults. In the past, diesel engines have been developed mainly by trial and error, combined with some inspired intution from a few individuals.•However, the high cost of this approach today, combined with the rapid changes in Exhaust Emission Standards, has led to renewed interest in understanding and developing of theo- retical models of the most significant processes involved in the engine system, especially under driving conditions. The complexity of some of these processes (e.g. - 6 - Combustion) means that certain simplifying assump- tions have to be made. To check the validity of these assumptions, the overall accuracy of predic- tions , and the effects of conventional trial and « error development, large amount of data must be obtained from test engines under a controlled envi- ronment (speed and load).
Recommended publications
  • Vcf Pnw 2019
    VCF PNW 2019 http://vcfed.org/vcf-pnw/ Schedule Saturday 10:00 AM Museum opens and VCF PNW 2019 starts 11:00 AM Erik Klein, opening comments from VCFed.org Stephen M. Jones, opening comments from Living Computers:Museum+Labs 1:00 PM Joe Decuir, IEEE Fellow, Three generations of animation machines: Atari and Amiga 2:30 PM Geoff Pool, From Minix to GNU/Linux - A Retrospective 4:00 PM Chris Rutkowski, The birth of the Business PC - How volatile markets evolve 5:00 PM Museum closes - come back tomorrow! Sunday 10:00 AM Day two of VCF PNW 2019 begins 11:00 AM John Durno, The Lost Art of Telidon 1:00 PM Lars Brinkhoff, ITS: Incompatible Timesharing System 2:30 PM Steve Jamieson, A Brief History of British Computing 4:00 PM Presentation of show awards and wrap-up Exhibitors One of the defining attributes of a Vintage Computer Festival is that exhibits are interactive; VCF exhibitors put in an amazing amount of effort to not only bring their favorite pieces of computing history, but to make them come alive. Be sure to visit all of them, ask questions, play, learn, take pictures, etc. And consider coming back one day as an exhibitor yourself! Rick Bensene, Wang Laboratories’ Electronic Calculators, An exhibit of Wang Labs electronic calculators from their first mass-market calculator, the Wang LOCI-2, through the last of their calculators, the C-Series. The exhibit includes examples of nearly every series of electronic calculator that Wang Laboratories sold, unusual and rare peripheral devices, documentation, and ephemera relating to Wang Labs calculator business.
    [Show full text]
  • Microcomputer Market for the Ten Year Period, This Article, Published at SCAMP's Intro­ 1974-1984
    Copyright © 1975 by Microcomputer Associates Inc. Seasons Greetings! Printed in U.S.A. Volume 2, Number 6 December, 1975 AMD & RAYTHEON SIGN 2900 AGREEMENT NEW Low-END 8-BIT MICROPROCESSOR Advanced Micro Devices has licensed Ray­ Electronic Arrays is about to enter the theon Semiconductor to build its proprietary low-end 8-bit microprocessor market. Slated 2900 bipolar microprocessor integrated cir­ for entrance in the first quarter of 1976 is cuit family. the EA9002 N-channel silicon gate MOS micro­ The pact, signed by W. J. Sanders III, processor. AMD's president, and Francis Dowd, Raytheon Labeled by the firm as a microcontroller, Semiconductor's vice president and general . the chip's design ·is directed toward the hard­ manager, initially transfers technical assis­ wired control logic applications market. How­ tance for production of the Am2901 micropro­ ever, the 2 ~s instruction fetch and execution grammable processor slice and t~e Am2909 mi­ time allows the chip to be used in nearly all croprogram sequencer. 8-bit microprocessor applications. Under terms of the license, for an undis­ (cont'd on page 4) closed sum, AMD will supply detailed assi$­ tance for all current circuits in the family INTERACTIVE BASIC COMPUTER STAT·ION as well as those to be introduced through the A new interactive BASIC compu~er station end of 1976. (cont'd on page 2) that combines built-in computing, local mag tape, and storage display for graphics and GI AND SEMI ENTER TRANSFER PACT alphanumerics has been unveiled by Tektronix. General Instrument's CP 1600 single chip, The unit is priced at $6995 and closely com­ 16-bit microprocessor will be second-sourced pares with IBM's recently announced 5100.
    [Show full text]
  • The Computer History Simulation Project
    The Computer History Simulation Project The Computer History Simulation Project The Computer History Simulation Project is a loose Internet-based collective of people interested in restoring historically significant computer hardware and software systems by simulation. The goal of the project is to create highly portable system simulators and to publish them as freeware on the Internet, with freely available copies of significant or representative software. Simulators SIMH is a highly portable, multi-system simulator. ● Download the latest sources for SIMH (V3.5-1 updated 15-Oct-2005 - see change log). ● Download a zip file containing Windows executables for all the SIMH simulators. The VAX and PDP-11 are compiled without Ethernet support. Versions with Ethernet support are available here. If you download the executables, you should download the source archive as well, as it contains the documentation and other supporting files. ● If your host system is Alpha/VMS, and you want Ethernet support, you need to download the VMS Pcap library and execlet here. SIMH implements simulators for: ● Data General Nova, Eclipse ● Digital Equipment Corporation PDP-1, PDP-4, PDP-7, PDP-8, PDP-9, PDP-10, PDP-11, PDP- 15, VAX ● GRI Corporation GRI-909 ● IBM 1401, 1620, 1130, System 3 ● Interdata (Perkin-Elmer) 16b and 32b systems ● Hewlett-Packard 2116, 2100, 21MX ● Honeywell H316/H516 ● MITS Altair 8800, with both 8080 and Z80 ● Royal-Mcbee LGP-30, LGP-21 ● Scientific Data Systems SDS 940 Also available is a collection of tools for manipulating simulator file formats and for cross- assembling code for the PDP-1, PDP-7, PDP-8, and PDP-11.
    [Show full text]
  • Storia Delle Tecnologie Dell'informatica
    1 Storia delle tecnologie dell’informatica Il minicomputer Carlo Spinedi 31 marzo 2017 C.Spinedi 2 Che cosa è un minicomputer (midrange computer) ? • Generazione di computer introdotta partire all’inizio degli anni ’60 • Da una definizione del 1970: – computer a “basso costo < 25’000 $”(di allora) … ma poi sono stati costruiti minicomputer da 500’000 $ ! – computer interattivo: l’utente ha il controllo dell’avanzamento programma • Si contrappone al mainframe diffuso durante gli anni ’50 – costo dell’ ordine di milioni di dollari – esecuzione dei programmi in batch (a lotti) • Programmabile con linguaggi ad alto livello (Fortran, Basic, …) • Usato all’inizio sovente per il controllo di processi, switch di comunicazione, … • assemblati talvolta con componenti di produttori diversi, specialmente per quanto riguarda i dispositivi periferici. 31/03/2017 C.Spinedi 3 Primi computer interattivi sperimentali • 1956 : TX-0 (Transistorized Experimental computer zero) – Sviluppato al Massachusetts Institute of Technology (MIT) – Processore a 16 bit, 3600 transistor – Core memory – Display 12” (oscilloscopio), 512 x 512 punti – Nessun sistema operativo Video 1: 31/03/2017 C.Spinedi 4 Primi minicomputer commercializzati • 1959: DEC PDP-1 (Programmed Data Processor) – derivato dal TX-2, [Ken Olsen (1926-2011) Digital Equipement Corporation] – nel 1961 fu programmato il primo gioco elettronico: le guerre stellari – costo del computer: 120’000$ (950’000 odierni). – venduti: 53 fino al 1969 negli USA. – 3 sono conservati presso il Computer Hystory Museum,
    [Show full text]
  • Tychon Incorporated the New Microprocessors And
    THE IMPACT OF MICROCOMPUTERS ON AUTOMATED INSTRUMENTATION IN MEDICINE. ADVANCES IN HARDWARE AND INTEGRATED CIRCUITS Jonathan A. Titus Tychon Incorporated P. 0. Box 242 Blacksburg, VA 24060 Introduction The new microprocessors and microcomputers have allowed a wide range of instruments to be automated and they Recent advances in the areas of linear and digital have spawned new instruments which could not be eco- electronics have provided functional building nomically produced in the past. There are some factors blocks which were unavailable, if not unheard of a which must be considered when thinking about micro- few years ago. The revolution in microcomputers is computer applications: a good example. During the 1960's manufacturers were building electronic calculators using hundreds Simplicity When using microcomputers in instruments, of integrated-circuits which represented discreet not only is the circuitry simplified, but so are the gates, flip-flops and registers. In 1970 Texas actions required by the user. Many of the new micro- Instruments announced its integrated-circuit "chip" computer-based instruments are self-calibrating and calculator device and shortly thereafter Intel self-testing and they can perform complex mathematical Corporation announced the first microprocessor chips operations upon the raw data obtained. Evaluation of in the 4004, four-bit family of devices. test results based upon the computer's "past experience" is also possible. These developments were quickly followed by eight, twelve and sixteen-bit microprocessor chips and it Even though computers may be present in instruments, we is now possible to purchase a complete microcomputer do not have to be computer experts to use them.
    [Show full text]
  • Great Microprocessors of the Past and Present Editor's Note: John's Remote Copy May Be More Up-To-Date
    Great Microprocessors of the Past and Present Editor's Note: John's Remote Copy may be more up-to-date. Great Microprocessors of the Past and Present (V 11.7.0) last major update: February 2000 last minor update: February 2000 Feel free to send me comments at (new email address): [email protected] Laugh at my own amateur attempt at designing a processor architecture at: http://www.cs.uregina.ca/~bayko/design/design.html Introduction: What's a "Great CPU"? This list is not intended to be an exhaustive compilation of microprocessors, but rather a description of designs that are either unique (such as the RCA 1802, Acorn ARM, or INMOS Transputer), or representative designs typical of the period (such as the 6502 or 8080, 68000, and R2000). Not necessarily the first of their kind, or the best. A microprocessor generally means a CPU on a single silicon chip, but exceptions have been made (and are documented) when the CPU includes particularly interesting design ideas, and is generally the result of the microprocessor design philosophy. However, towards the more modern designs, design from other fields overlap, and this criterion becomes rather fuzzy. In addition, parts that used to be separate (FPU, MMU) are now usually considered part of the CPU design. Another note on terminology - because of the muddling of the term "RISC" by marketroids, I've avoided using those terms here to refer to architectures. And anyway, there are in fact four architecture families, not two. So I use "memory-data" and "load-store" to refer to CISC and RISC architectures.
    [Show full text]
  • Introduction Microcomputers in Psychology
    Behavior Research Methods & Instrumentation 1978, Vol. 10 (4), 463-467 Special Issue: Microprocessors and Microcomputers Introduction Microcomputers in psychology JOSEPH B. SIDOWSKI University ofSouth Florida, Tampa, Florida33620 A simple introduction to microcomputers is provided. References are provided for more detailed descriptions of some systems and applications in psychology. The purpose of this issue of Behavior Research article on "Microcomputer Programmming Languages: Methods & Instrumentation is to provide the behavioral When to Use Which and Why?" (EDN, 270 St. Paul scientist with some selected examples of uses and Street, Denver, Colorado 80206). applications of microprocessors and microcomputers. The introductions to some of the articles in this issue also present elementary information concerning MICROCOMPUTERS this area. Additional information on microprocessor technology directed to the psychologist may be, found In the past few years, much has been written in both in the April 1978 issue of Behavior Research Metltods & popular and technical publications on microcomputer­ Instrumentation, which reports on the Seventh National based technology. So I shall provide relatively superficial Conference on the Use of On-Line Computers in coverage. The interested reader can refer to the Psychology (listing provided in References section of following articles, which are written simply and clearly this paper). and require no technical background for understanding. I believe that the first attempt by a psychologist to educate psychologists about microcomputers was a talk Frenzel, 1. How to choose a microprocessor. Byte, 1978, presented by Mclean to the 1973 meetings of the 3,124-139. national computer conference noted above. The Gray, S. B. Selecting a micro. Creative Computing, 1977, reprinted version of that presentation is also tutorial 3, 31-33.
    [Show full text]
  • How to Choose a Microprocessor, July 1978, BYTE Magazine
    How to Choose a Microprocessor Lou Frenzel All personal and hobby computers are With this wide variety, is it any wonder Heath Company microprocessor based. That is, they use a that it is a difficult choice? Yet with all of Benton Harbor MI 49022 single processor integrated circuit chip. these available devices, the choice narrows One of the most important decisions you down rather quickly when several important will ever make in purchasing a personal factors are considered. What makes things computer is choosing the type of micro- even more confusing is the fact that many of processor. The semiconductor manufacturers the above microprocessors will undergo have provided computer designers with a changes and improvements. Semiconductor wide range of microprocessing units having manufacturers will also develop and intro- varying degrees of power and sophistication. duce even newer improved microprocessors. As a result, there are at least a half dozen The whole microprocessor business is a different processors available in hobby dynamic one. Changes occur almost daily. computers. This wide variety of products The biggest dilemma is not so much the makes your choice somewhat flexible, or changes themselves but the rapidity with at least it seems that way. In reality, having which they occur. Today you may make a so many processor styles to choose from, decision to use a particular microprocessor your decision becomes much tougher. If only to find that six months later the choice you are a beginner, it may be particularly is apparently incorrect because a newer, difficult to make an intelligent choice. The better, improved device has become avail- purpose of this article is to provide you with able.
    [Show full text]