PC Based Instrumentation and Control
eBook - ePub

PC Based Instrumentation and Control

  1. 512 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

PC Based Instrumentation and Control

Book details
Book preview
Table of contents
Citations

About This Book

PC Based Instrumentation and Control is a guide to implementing computer control, instrumentation and data acquisition using a standard PC and some of the more traditional computer languages.Numerous examples of configurations and working circuits, as well as representative software, make this a practical, hands-on guide to implementing PC-based testing and calibration systems and increasing efficiency without compromising quality or reliability. Guidance is given on modifying the circuits and software routines to meet the reader's specific needs.The third edition includes updated coverage of PC hardware and bus systems, a new chapter on virtual instruments and an introduction to programming and software development in a modern 32-bit environment. Additional examples have been included, with source code and executables available for download from the companion website www.key2control.com.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access PC Based Instrumentation and Control by Mike Tooley in PDF and/or ePUB format, as well as other popular books in Informatica & Elaborazione di dati. We have over one million books available in our catalogue for you to explore.

Information

Publisher
Routledge
Year
2013
ISBN
9781136374487

1 The PC

Ever since IBM entered the personal computer scene, it was clear that its ‘PC’ (first announced in 1981) would gain an immense following. In a specification that now seems totally inadequate, the original PC had an 8088 processor, 64–256 kilobyte (KB) of system board RAM (expandable to 640 KB with 384 KB fitted in expansion slots). It supported two 360 KB floppy disk drives, an 80 columns × 25 lines display, and 16 colours with an IBM colour graphics adapter.
The original PC was quickly followed by the PC-XT. This machine, an improved PC, with a single 5Âź in. 360 KB floppy disk drive and a 10 megabyte (MB) hard disk, was introduced in 1983. In 1984, the PC-XT was followed by a yet further enhanced machine, the PC-AT (where XT and AT stood for eXtended and Advanced Technology, respectively). The PC-AT used an 80286 microprocessor and catered for a 5Âź in. 1.2 MB floppy drive together with a 20 MB hard disk.
While IBM were blazing a trail, many other manufacturers were close behind. The standards set by IBM attracted much interest from other manufacturers, notable among whom were Compaq and Olivetti. These companies were not merely content to produce machines with an identical specification but went on to make further significant improvements. Other manufacturers were happy to simply ‘clone’ the PC; indeed, one could be excused for thinking that the highest accolade that could be offered by the computer press was that a machine was ‘IBM compatible’.
image
Photo 1.1 Setting up a PC requires access to both hardware and software
Table 1.1 Typical PC specifications from 1981 to the present day
image
image
Photo 1.2 A modern high-specification dual-BIOS PC motherboard
This chapter sets out to introduce the PC and provide an insight into the architecture, construction, and operation of a ‘generic PC’. It should, perhaps, be stated that the term ‘PC’ now applies to such a wide range of equipment that it is difficult to pin down the essential ingredients of such a machine. However, at the risk of oversimplifying matters, a ‘PC’ need only satisfy two essential criteria:
image
Be based upon an Intel 16-, 32-, or 64-bit processor, such as a ’x86, Pentium, or a compatible device (such as a Celeron, Athlon, or Duron processor).
image
Be able to support the Microsoft MS-DOS operating system, Microsoft Windows, or a compatible operating system.
Other factors, such as available memory size, disk capacity, and display technology remain secondary.
To illustrate the progress in technology over the last 20 or so years, Table 1.1 shows typical specifications for various types of PC. However, before considering PC architecture in more detail, we shall begin by briefly describing the basic elements of a microcomputer system.

Microcomputer
systems

The principal elements within a microcomputer system consist of a central processing unit (CPU), read/write memory (RAM), read-only memory (ROM), together with one (or more) input/output (I/O) devices. These elements are connected together by a bus system along which data, address, and control signals are passed, as shown in Figure 1.1.
image
Figure 1.1 Elements of a microcomputer system
The CPU is the microprocessor itself (e.g. a x86 or Pentium device), whilst the read/write and read-only memory are implemented using a number of semiconductor memory devices (RAM and ROM, respectively).The semiconductor ROM provides non-volatile storage for part of the operating system code (the code remains intact when the power supply is disconnected, whereas the semiconductor RAM provides storage for the remainder of the operating system code, applications programs, and transient data. It is important to note that this memory is volatile, and any program or data stored within it will be lost when the power supply is disconnected.
The operating system is a collection of programs and software utilities that provide an environment in which applications software can easily interact with system hardware. The operating system also provides the user with a means of carrying out general housekeeping tasks, such as disk formatting, disk copying, etc. In order to provide a means of interaction with the user (via keyboard entered commands and onscreen prompts and messages), the operating system incorporates a shell program (e.g. the COMMAND.COM program provided within MSDOS).
Part of the semiconductor RAM is reserved for operating system use and for storage of a graphic/text display (as appropriate). In order to optimize the use of the available memory, most modern operating systems employ memory management techniques which allocate memory to transient programs and then release the memory when the program is terminated. A special type of program (known as a ‘terminate and stay resident’ program) can, however, remain resident in memory for immediate execution at some later stage (e.g. when another application program is running).
I/O devices provide a means of connecting external hardware, such as keyboards, displays, and disk controllers. I/O is usually handled by a number of specialized VLSI devices, each dedicated to a particular I/O function (such as disk control, graphics control, etc.). Such I/O devices are, in themselves, very complex and are generally programmable (requiring software configuration during system initialization).
image
Photo 1.3 Arcom's Pegasus embedded PC controller (photo courtesy of Arcom)
The elements within the microcomputer system shown in Figure 1.1 (CPU, ROM, RAM, and I/O) are connected together by three distinct bus systems:
1 The address bus along which address information is passed.
2 The data bus along which data is passed.
3 The control bus along which control signals are passed.

Data representation

The information present on the bus lines is digital and is represented by the two binary logic states: logic 1 (or high) and logic 0 (or low). All addresses and data values must therefore be coded in binary format with the most significant bit (MSB) present on the uppermost address or data line and the least significant bit (LSB) on the lowermost address or data line (labelled A0 and D0, respectively).
The bus lines (whether they be address, data, or control) are common to all four elements of the system. Data is passed via the data bus line in parallel groups of either 8, 16, 32, or 64 bits. An 8-bit group of data is commonly known as a byte whereas a 16-bit group is usually referred to as a word.
As an example, assume that the state of the eight data bus lines in a system at a particular instant of time is as shown in Figure 1.2.
The binary value (MSB first, LSB last) is 10100111 and its decimal value (found by adding together the decimal equivalents wherever a ‘1’ is present in the corresponding bit position) is 167.
It is often more convenient to express values in hexadecimal (base 16) format (see Appendix D). The value of the byte (found by grouping the binary digits into two 4-bit nibbles and then converting each to its corresponding hexadecimal character, is A7 (variously shown as...

Table of contents

  1. Front cover
  2. Halftitle
  3. Title Page
  4. Copyright
  5. Contents
  6. Preface
  7. 1 The PC
  8. 2 PC expansion bus systems
  9. 3 Using the command line interface
  10. 4 Programming
  11. 5 Assembly language programming
  12. 6 BASIC programming
  13. 7 C and C++ programming
  14. 8 The IEEE-488 bus
  15. 9 Interfacing
  16. 10 Software packages
  17. 11 Virtual instruments
  18. 12 Applications
  19. 13 Reliability and fault-finding
  20. Appendix A Glossary of terms
  21. Appendix B SI units
  22. Appendix C Multiples and sub-multiples
  23. Appendix D Decimal, hexadecimal, binary and, ASCII table
  24. Appendix E Powers of 2
  25. Appendix F Processor sockets
  26. Appendix G Processor data
  27. Appendix H Common file extensions
  28. Appendix I BIOS error codes
  29. Appendix J Manufacturers, suppliers and distributors
  30. Appendix K Useful websites
  31. Appendix L Bibliography
  32. Appendix M Reference material available from the Web
  33. Index