Erker Gregory J 1987 Sec.Pdf (7.429Mb)

Total Page:16

File Type:pdf, Size:1020Kb

Erker Gregory J 1987 Sec.Pdf (7.429Mb) A MICROPROCESSOR BASED PORTABLE BIOMEDICAL DATA RECORDER A Thesis Submitted to the Faculty of Graduate Studies and Research in Partial Fulfilment of the Requirements for the Degree of Ma�ter of Science in the Department of Electrical Engineering University of Saskatchewan by Gregory J. Erker Saskatoon, Saskatchewan March 1987 The author claims copyright. Use shall not be made of the material contained herein without proper acknowledgement, as indicated on the following page. ii The author has agreed that the Library, University of Saskatchewan, may make this thesis freely available for inspection. Moreover, the author has agreed that permission for extensive copying of this thesis for scholarly purposes may be granted by the professor or professors who supervised the thesis work recorded herein or, in their absence, by the Head of the Department or the Dean of the College in which the thesis work was done. It is understood that due recognition will be given to the author of this thesis and to the University of Saskatchewan in any use of the material in this thesis. Copying or publication or any other use of the thesis for financial gain without approval by the University of Saskatchewan and the author's written permission is prohibited. Requests for permission to copy or to make any other use of material in this thesis in whole or in part should be addressed to: Head of the Department of Electrical Engineering University of Saskatchewan SASKATOON, Canada. iii UNIVERSITY OF SASKATCHEWAN Electrical Engineering Abstract 87A281 A MICROPROCESSOR BASED PORTABLE BIOMEDICAL DATA RECORDER Student: Gregory J. Erker Supervisor: Dr. H. C. Wood M.Sc. Thesis Presented to the College of Graduate Studies and Research March 1987 ABSTRACT Data recorders collect and store data for later analysis. Many recorders do som� processing of the raw data immediately to separate out the data of interest and use the storage space more efficiently. The portable biomedical data recorder described here stores data from a human subject and is self contained and light enough to be worn by the subject. The medical data of interest is the acidity of the lower part of the esophagus and the relationship of this acidity to chest pains in a patient. Diagnosis of this problem can be done by monitoring this acidity for a 24 hour period and looking for a correlation between an increase in acidity and the chest pains. In the past the equipment to do this test was non-portable and used a paper strip-chart recorder to plot the variations in acidity. A portable recorder as described in this thesis can replace this equipment while allowing the patient freednm of movement and eliminating the requirement for a hospital stay for the 24 hour period. The microprocessor in the recorder allows the recorder to be reconfigured to maximize the usable data collected. In this thesis features of the recorder and its design are explained. The desk top microcomputer which is used to analyze the biomedical data is also described. iv ACKNOWLEDGEMENTS The author expresses his appreciation to Professor H. Wood for his guidance and encouragement. His assistance and advice is gratefully acknowledged. The author would also like to thank Professor K. Takaya for his help in setting up the relationship between the author and the medical personnel at the University Hospital. Finally the author would like to thank Dr. P. C. Ganguli and Dr. L. Worobetz for their advice and patience and for their help in the clinical testing of the recorder. Financial assistance provided by the University of Saskatchewan Graduate Scholarship program, and the Saskatchewan Health Research Board for part of this work is thankfully acknowledged. v TABLE OF CONTENTS Page COPYRIGHT ii ABSTRACT iii ACKNOWLEDGEMENTS iv TABLE OF CONTENTS v LIST OF FIGURES viii LIST OF SYMBOLS AND DEFINITIONS x 1. INTRODUCTION 1 1.1 Data Recorders 1 1.2 Medical Use 2 1.3 Proposed Recorder and Analysis System 3 2. RECORDER REQUIREMENTS 5 2.1 Type of Recorder 5 2.2 Functional Requirements 5 3. THE PH RECORDER 8 3.1 The pH Meter 8 3.1.1 pH and pH Measurements 8 3.1.2 The pH Meter and Probe Used 12 3.2 Recorder to pH Meter Interface 14 3.2.1 The AID Circuit 17 3.3 Data Storage 19 3.3.1 Storage Requirements 19 3.3.2 Devices Considered 21 3.3.3 Non-volatile Ram 23 vi Page 3.4 The Microprocessor Section 25 3.4.1 Microprocessor Selection 25 3.4.2 ROM and Input/Output 28 3.5 Serial Link 31 3.5.1 Function of Link 31 3.5.2 Implementation of the Link 34 3.6 Power Supply 35 3.6.1 Battery Selection 36 3.6.2 The Battery Charger and Power Supply 40 3.7 Packaging 44 3.7.1 Case and Connectors 44 3.7.2 Operator Controls 47 4. RECORDER SOFTWARE 52 4.1 Functions Required 52 4.2 Recording Software 54 4.2.1 Data Storage Method 63 4.3 Communication Software 67 4.3.1 Software DART 68 4.3.2 Commands Implemented 71 4.3.3 Description 78 4.4 Standby 81 5. ANALYSIS SYSTEM DESCRIPTION 85 5.1 Preparing to Record 87 5.2 Load�ng and Saving Data 92 5.3 Analysis of Data 94 vii Page 6. ANALYSIS SYSTEM SOFTWARE 99 6.1 Interface with User 99 6.2 Functions Required 101 6.3 Communication with Recorder ·104 6.4 Storage of the Data 112 6.5 Analysis of the Data 115 7. POWER SWITCHING TEST 119 7.1 Testing of Recorder Circuit 119 7.2 Proposed General Testing Procedure 121 8. TESTING OF THE SYSTEM 125 8.1 pH Meter Testing 125 8.2 Testing AID Section of the Recorder 126 8.3 Testing with Human Subject 130 9. RESULTS AND CONCLUSIONS 136 10. REFERENCES 138 APPENDICES 139 Appendix A: Users Manual for Recorder 140 Appendix B: Computer Program Listings 157 Recurder SW General Routines 157 Recorder SW Record Mode Routines 163 Recorder SW Communication Routines 172 CBM-8032 SW Assembly Language Routines 181 CBM-8032 SW BASIC Program 186 viii LIST OF FIGURES Page Figure 3.1 Block diagram of pH recorder 9 Figure 3.2 Schematic of AID Converter section 18 Figure 3.3 Schematic of RAM section 24 Figure 3.4 Schematic of CPU Address and Data Buses 27 Figure 3.5 Schematic of EPROM section 29 Figure 3.6 Schematic of CPU Input/Output 30 Figure 3.7 Schematic of Real Time Clock 32 Figure 3.8 Schematic of Battery and Regulator section 37 Figure 3.9 Schematic of Battery Charger 41 Figure 3.10 Configuration of Recorder 45 Figure 3.11 Cross-section of Recorder 48 Figure 4.1 State diagram of Recorder Software 53 Figure 4.2 Sub-states of Record State 55 Figure 4.3 Flowchart of Two speed recording algorithm 58 Figure 4.4 Flowchart of ChangeSpeed algorithm 61 Figure 4.5 Recorder Data RAM Special codes summary 65 Figure 4.6 Communication link command summary 73 Figure 4.7 Communication link reply summary 77 Figure 5.1 Block Diagram of Analysis System 86 Figure 5.2 Analysis Program Main Menu 87 Figure 5.3 Sub-menu for setting time in recorder 88 Figure 5.4 Sub-menu to change recorder parameters 90 Figure 5.5 Read sub-menu 92 Figure 5.6 Sub-menu for display of data 95 ix Page Figure 5.7 Sample of Annotated data 96 Figure 6.1 Flowchart of Analysis Program 103 Figure 6.2 Flowchart of Subroutine to send commands to recorder 105 Figure 6.3 Flowchart of ML routine which sends commands 107 Figure 6.4 Example of subroutine nesting in analysis program 113 Figure 8.1 Sample Plot of All Data 133 Figure 8.2 Sample Plot of "Slow" Data Only 134 x LIST OF SYMBOLS AND DEFINITIONS AID abbreviation for Analog to Digital converter. Bit a single Binary digit, it can have a value of 0 or 1 only. Byte an eight bit number, can range from 0 to 255. CBM acronym for Commodore Business Machines. Also used to refer to the CBM 8032 microcomputer. CMOS acronym for Complementary Metal Oxide Semiconductor, a technology for producing low power ICs. CPU acronym for Central Processing Unit. DIP acronym for Dual In-line Pin, a type of IC package with two parallel rows of pins. EEPROM acronym' for Electrically Erasable Programmable Read Only Memory. A device that retains it contents when power is no longer applied. It can be erased during operation with proper elecrical signals. EPROM acronym for Erasable Programmable Read Only Memory. A device that retains its contents when power is no longer applied. It is erased with ultraviolet light. IC acrortym for Integrated Circuit. LCD acronym for Liquid Crystal Display. LED acronym for Light Emitting Diode. NMOS acronym for Negative Metal Oxide Semiconductor, a technology that produces higher power ICs than CMOS. pH unit of acidity measurement. 0 is extremely acid, 7 is neutral and 14 is extremely alkaline. RAM acronym for Random Access Memory. RAMs normally lose their contents when power is removed. RTC acronym for Real Time Clock, a device that keeps the time of day. TTL acronym for Transistor Transistor Logic. UART acronym for Universal Asynchronous Receiver Transmitter. UARTs take a character of data and transmit it in serial fashion, adding timing information. They also receive a serial data stream and reconvert it to a character. 1 1. INTRODUCTION In this section the concept of data recorders will be discussed and the medical use for a specific type will be described.
Recommended publications
  • Commodore VIC 1541 Floppy Drive Users Manual
    . II U n. : VIC-154'1 I [ill [)] g 11II II II 11II III III III 11II II a II .. II !I'" n " II i" i., I II n :d:j ~ commodore COMPUTER VIC-1541 SINGLE DRIVE FLOPPY DISK USER'S MANUAL P/N 1540031-02 ~ commodore COMPUTER WARNING: This equipment has been certified to comply with the limits for I!, Class B computing device, pursuant to Subpart J of Part 15 of FCC Rules. Only computers certified to comply with the Class B limits may be attached to this printer. Operation with noncertified computers is likely to result in interference to radio and TV reception," This warning is valid for the equipment which has the following FCC label on its rear. CERTIFIED TO COMPLY WITH CLASS B LIMITS. PART 15 OF FCC RULES SEE INSTRUCTIONS IF INTERFERENCE TO RADIO RECEPTION IS SUS- PECTED. The information in this manual has been reviewed and is believed to be entirely reliable. No responsibility, however, is assumed for inaccuracies. The material in this manual is for information purposes only, and is subject to change without lIotice. @Commodore BusinessMachines, Inc., September 1981 "All rights reserved." Table of Contents Page 1. General Description .............. 3 2. Unpacking and Connecting . 6 Contents of Box . 6 Connection of Cables 7 PoweringOn ........ 7 Insertion of I)jskette . 8 Usingwith VlC 20 or Commodore 64 . 8 3. UsingPrograms.............. 9 Loading Pre-packaged Software 9 LOAD . 9 Directoryof Disk . 9 Pattern Matching & Wild Cards 11 SAVE . 12 SAVE and replace. 13 VERIFY.. .. .. .. 13 DOS Support Program 14 4. Disk Commands . 14 OPEN ANDPRINT # 14 NEW ..
    [Show full text]
  • Commodore Annual (1989)(Saturday Magazine)
    'BOh^.jLu^i:Mlli^aaj c0kami^^ *$5.95 t^ftiAA?-^ Commodore Annual 1 989 The C64 - still king of home computers <^ Beginners Guide c^. Best games to buy ^^ Why buy a disk drive? c^ Introduction to machine language K^ Which word processor? c^ Using Easy Script B^ Complete Software, User Group and BBS guides Registered b/ Australia Post Publicatfon No NBG 6656 'Recommended retail price TAKE YOUR PERSONAL COMPUTER OUT INTO THE BIG WIDE WORLD. WITH TELECOM VIATEL t-T-Tl-l H mvtrM^ri-rrrrrr, Until now, your personal computer was generally limited to your information input. Or to the software available. Now Telecom Viatel opens up a whole new world for PC owners. Utilizing the existing telephone network, Viatel distributes a wide range of information and services via a central computer. Direct to your home or office. Become an identity on the bulletin boards. Send electronic mail clear across Australia. Join clubs and user groups, Get the latest news on the computer industry, as well as advice from the experts. There's teleshopping for hardware, software and peripherals -24 hours a day. Even download new computer programs onto disk or cassette for your own use. Your persona! computer can be adapted to emulate a Viatel terminal. All you need are a Telecom approved 1200/75 baud modem and the appropriate software. These are now readily available for most PC's, Your dealer will know what is best for your particular PC. Talk to him first about your needs. To get more information on Viatel phone 008 033 342 (for the cost of a local call).
    [Show full text]
  • How to Get Hundreds of Free Programs for the VIC·20 And
    Second Class Mail Registration Pending The INDEPENDENT Commodore Users' Magazine No. 18 Mar.-Apr. 1983 How Your Computer r:J~ ~f).. VIC, PET and C-64 Can Help with School VVord Processors or Business Homework How to get Hundreds of Free Programs for the VIC·20 and Commodore 64 HAVE A PICNIC WITH THE VIC-NIC The Word Processor designed especially for your VIC-20_ Output Files compatible with: Word Pro Superscript Silicon Office Word Craft Paperc lip Final Word .... and many others wordwrap­ two story areas all expected commands such as insert, delete, move text, save, recall, etc. files created on the VIC-NIC maybe processed on many other word processors works with either tape or disk Unbelievable! But for $19.50 there will be sent to you a tape or 4040 format disk (designate which you 50 want or tape will be sent) that includes both the ONLY '19- standard tape version and the expanded tape/ disk Cash, Cheque or Money Order to: version and instructions (both on the tape or disk and in printed form). The system is designed so that you can use many of the popular existing word processors for output, or you can use the written in BASIC (so you can modify it SHELBURNE, ONTARIO if you have a special printer) printing/ output program that will be included on your tape or disk. CANADA LON ISO CONTENTS PAGE 2 VIC-20 Voted Computer of the Year . 2 New Regular Contributors. 2 New Editorial Board . 3 A Word of Warning . The Editor 4 What is a Word Processor.
    [Show full text]
  • €) EVA Brovrn B.Ed", U
    INFOR¡4ATION/WORD PROCESSING INSTRUCTION ÏN SELECTED CANADIAN SECONDARY PUBLIC SCHOOLS BY -€) EVA BRovrN B.Ed", U. of M., 1980 A THESIS Submitted to The University of Manitoba in partial fuLfillment of the requi-rements for the degree of MASTER OF EDUCATTON Department of Mathematics and Natural Sciences 1986 Permission has been granted Lrautorisation a êté accordée to the National Library of ã la Bibliothèque nationale Canada to mícrofilm this du Canada de microfilmer thesis and to lend or sell cette thèse et de prêter ou copies of the film. de vendre des exemplaires du f iIm. The author (copyright owner) Lrauteur ( titulaire du droit has reserved other d'auteur) se réserve l-es pubt icat ion rights and autres droits de publication; neither the thesis ' nor ni la thèse ni de longs extensive extracts from it extraits de celle-ci ne may be printed or otherwise doivent être imprimés ou reproduced without his/her autrement reproduits sans son written permission. autorisation écrite. tsBN Ø_3I5_33 g67_5 INFORMATION/WORD PRocESSING INSTRUCTION IN SELECTED CANADIAN SECONDARY PUBLIC SCHOOLS BY EVA BROI,]N A thesis submitted to the Faculty of Graduate Studies of the university of Manitoba in partial fulfillment of the requirements of the degree of MASTER OF EDUCATION o L986 Permissiorr has bee¡r granted to the LIBRARY oF THE UNIVER- SITY OF MANITOBA to lend or sell copies of this thesis. to the NATIONAL LIBRARY OF CANADA to microfilnr this thesis arrd to lend or sell copies of the film, and UNIVERSITY MICROFILMS to publish an absrract of this thesis.
    [Show full text]
  • How to Use The
    mdilithium Press How to Use The ---Computer--- jerry Wtllis and Deborrah Wtllis '";' \ •• \ , \ J ' How to Use the VIC 20™ Computer How to Use the VIC 20™ Computer Jerry Willis and Deborrah Willis dilithium Press Beaverton, Oregon © 1984 by dilithium Press. All rights reserved. No part of this book may be reproduced in any form or by any means, electronic or mechanical, including photocopying, recording or by any information storage and retrieval system without permission in writing from the publisher, with the following exceptions: any material may be copied or transcribed for the nonprofit use of the purchaser, and material (not to exceed 300 words and one figure) may be quoted in published reviews of this book. Where necessary, permission is granted by the copyright owner for libraries and others registered with the Copyright Clearance Center (CCC) to photocopy any material herein for a base fee of$1.00 and an additional fee of $0.20 per page. Payments should be sent directly to the Copyright Clearance Center, 21 Congress Street, Salem, Massachusetts 01970. 10 9 8 7 6 5 4 3 2 1 Library of Congress Cataloging in Publication Data Willis, Jerry. How to use the VIC 20 computer. Includes index. 1. VIC 20 (Computer)-Programming. 2. Basic (Computing program language)!. Willis, Deborrah. II. Title. III. Title: How to use the V.I. C. 20 computer~ QA76.8.V5W54 1984 001.64 83-17147 ISBN 0-88056-134-3 Cover: Vernon G. Groff Printed in the United States of America dilithium Press 8285 S.W. Nimbus Suite 151 Beaverton, Oregon 97005 Trademark Acknowledgements Apple II Apple Computer, Inc.
    [Show full text]
  • F L Com M Odore January 1983 £I.Aa Infcepnational
    f l commodore COMPUTING January 1983 £i.aa infcepnational USA $ 2 .5 0 BUSINESS TRAINING COURSE MICRO-SIMPLEX REVIEWED CROSS REFERENCE INTERFACING LIGHT PEN VIC Two sets of Fabulous Utilities in one! LIG H T PEN PROGRAMMERS TOOLKIT Gives extra commands: Auto, Number, Help, Delete, Change, D A M S P R IC E V * c k Trace, Step, Light Pen, Break etc. and ONLY MACHINE CODE MONITOR Gives Save, Memory Display, Load, Verify etc. S im ila rto T IM on PET. £17.35 + VAT Examine the VICS ROM Needs DAMS RAM/ROM board or similar FOR PET £19.95 + VAT 12" SCREEN £19.95 + VAT VICMON RAM ’N ROM THE ULTIMATE BOARD PROGRAMING AID FOR THE VIC 3K RAM In Hires area. T Also space for Full machine code VICAID and package with: j VICMON Assembler, Dissassembler, programming aids. Fill, Re-locate, Identify, Exchange, Compare, Printing, Dissassembler etc., etc. Needs DAMS RAM/ROM board or similar £22.95 +VAT £19.95 + VAT (Includes Cover) BUY THE 3K RAM N ROM BOARD WITH VICAID AND VICMON WITH MACHINE CODE MANUAL (WORTH £5.00) FROM MOS TECHNOLOGY FOR ONLY £ 6 7 .8 5 + VAT AND GET A F R E E VIC LIGHT PEN (WORTH £17.35) VIC REFERENCE GUIDE R.R.P. £14.95 D A M S P R IC E £ 1 4 .5 0 IEW VIC STARTER KIT (lTHi VIC 20 C2N Cassette Deck, 10 Blank Cassettes, User Manual, Vic Programmers Reference Guide, ANTIGLARE 1 Joystick. SCREENS FOR PET Worth £238.30 ONLY 0 + m A A 1Z 1H .U U +VAT 40 Column (VAT INCL.
    [Show full text]
  • University Microfilms International 300 N
    EVALUATION OF A SCHOTTKY BARRIER INFRARED CHARGE-COUPLED DEVICE. Item Type text; Thesis-Reproduction (electronic) Authors Hudson, Leland Ray. Publisher The University of Arizona. Rights Copyright © is held by the author. Digital access to this material is made possible by the University Libraries, University of Arizona. Further transmission, reproduction or presentation (such as public display or performance) of protected items is prohibited except with permission of the author. Download date 23/09/2021 19:38:36 Link to Item http://hdl.handle.net/10150/274692 INFORMATION TO USERS This reproduction was made from a copy of a document sent to us for microfilming. While the most advanced technology has been used to photograph and reproduce this document, the quality of the reproduction is heavily dependent upon the quality of the material submitted. The following explanation of techniques is provided to help clarify markings or notations which may appear on this reproduction. 1. The sign or "target" for pages apparently lacking from the document photographed is "Missing Page(s)". If it was possible to obtain the missing page(s) or section, they are spliced into the film along with adjacent pages. This may have necessitated cutting through an image and duplicating adjacent pages to assure complete continuity. 2. When an image on the film is obliterated with a round black mark, it is an indication of either blurred copy because of movement during exposure, duplicate copy, or copyrighted materials that should not have been filmed. For ' blurred pages, a good image of the page can be found in the adjacent frame.
    [Show full text]
  • Microcomputers. Goal Eased Education Program Hardware and Software Characteristics Are Presented As They Relate Finally, Profile
    DOCUMENT RESUME ED 225 557 IR 010 568 AUTHOR Smith; Ronald M. TITLE Improving Instructional Management with Microcomputers. Goal eased Education Program Occasional Paper. Number 1. INSTITUTION Northwest Regional Educational Lab., Portland, Oreg. SPONS AGENCY National Inst. of Education (ED), Washington, DC. PUB DATE Dec 81 GRANT 400-80-0105 NOTE 26p. PUB TYPE Guides Non-Classroom Use (055) Reports Descriptive (141) EDRS P CE MF01/PCO2 Plus Postage. DESCRIPTORS *Computer Managed Instruction; *Computer Programs; Glossaries; *Information Sources; Media Seolection; *MiCrocomputers; Program Descriptions; Program Development; *Program Implementation ABSTRACT Many aspects of computer managed instruction(CMI) are discussed ill this paperlahich focuses on the use of computer technology to support teachers in their efforts toprovide effective instruction. The nature,of instructional management is explained and links to picrocomputer capabilities are established.Microcomputer hardware and software characteristics are presented as theyrelate 'specifically to instructional management applications. The imformation presented is designed to help teachers get startedin the use of microcomputers to supporttheir instructional programs. Finally, profiles of seven diverse CMI programs provide aglimpse of microcomputer-based ,CMI concepts in practice. This paper emphasizes generalized CMI systems, those not tied to a particular curriculum content or computer assisted instruction program. A ,glossary and a list of CMI resources with addresses areincluded. 4 4 *********************************************************,************** Reproductions supplied by EDRS are the best that can be made from the original document. **********************************************************Ic************ U.S. DEPARTMENT OF EDUCATION NATIONAL INSTITUTE OF EDUCATION EDUCATIONAL RESOURCES INFORMATION CENTER IERICI . I talk This dolument has been reproduced as received from the person oforganitation of iginating ii Minor changes have been made to improve reproduction quality .
    [Show full text]
  • Jiffydos User's Manual
    JiffyDOS User’s Manual Version 6.01 1 Contents Introduction 4 GettingStarted..................................... 4 GettingHelp ...................................... 4 Installation Service . 4 What this Manual Includes . 5 What is JiffyDOS? 6 Features......................................... 6 Performance . 7 Compatibility...................................... 8 Using JiffyDOS 12 ROMSwitching..................................... 12 Using a Tape Drive with JiffyDOS . 13 Function Key Definitions . 13 Listing Freeze . 15 Getting Maximum Performance . 16 The JiffyDOS File Copier . 17 Setting the Sector Interleave . 21 If you’re not getting top Performance . 26 If a Program won’t Load or Operate . 28 What to do if a program won’t load . 28 Using JiffyDOS with RAM Units . 29 Using JiffyDOS Commands with BASIC . 30 The JiffyDOS Commands 31 Command Descriptions . 31 Setting the Default Device . 32 Displaying the Directory . 32 Reading the Disk Drive Error Channel . 33 Loading BASIC Programs . 33 Saving BASIC Programs . 34 Loading Machine-Language Programs . 34 Loading and Running the First Program on Disk . 35 Verifying Programs . 35 Listing BASIC Programs from Disk . 35 Listing ASCII Files from Disk . 36 “Un-NEWing” a BASIC Program . 36 Initializing the Disk Drive . 36 Resetting the Disk Drive . 37 2 ValidatingDisks .................................... 37 Formatting Disks . 37 Disabling the 1541 “Head Rattle” . 39 Copyingfiles ...................................... 39 Changing the Sector Interleave . 40 Combining Files and Creating Backups . 41 Renaming Files . 41 Scratching (Deleting) Files . 41 Locking and Unlocking Files . 42 Directing Output to a Printer . 43 PrintingtheScreen................................... 43 Disabling the JiffyDOS Function Keys . 43 Re-Enabling the JiffyDOS Function Keys . 44 Disabling the JiffyDOS Commands . 44 Re-Enabling the JiffyDOS Commands . 44 Special Command Features . 45 Enhancements to the DOS Wedge 46 Command Chaining .
    [Show full text]