LABORATORY USE OF A MICROCOMPUTER (Last Revision: August 27, 2000)

Similar documents
1 Digital tools. 1.1 Introduction

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Digital Fundamentals

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Microcomputer Architecture and Programming

Today s lecture is all about the System Unit, the Motherboard, and the Central Processing Unit, Oh My!

Segment 1A. Introduction to Microcomputer and Microprocessor

2.2 THE MARIE Instruction Set Architecture

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming

Memory Addressing, Binary, and Hexadecimal Review

Introduction to a Typical PC. Freedom High School

Laboratory: Introduction to Mechatronics. Instructor TA: Edgar Martinez Soberanes Lab 2. PIC and Programming

User. Application program. Interfaces. Operating system. Hardware

Week 1. Introduction to Microcomputers and Microprocessors, Computer Codes, Programming, and Operating Systems

For the A+ Certification exams, you should be able to identify the names, functions, and characteristics of the major components and ports of a Pc.

Lecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer

C H A P T E R 1. Introduction to Computers and Programming

What is the typical configuration of a computer sold today? 1-1

CC411: Introduction To Microprocessors

Computer Systems A Background Review

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

An Overview of the Computer System. Kafui A. Prebbie 24


8/16/12. Computer Organization. Architecture. Computer Organization. Computer Basics

Number Systems. Dr. Tarek A. Tutunji Philadelphia University, Jordan

Sencer Yeralan and Helen Emery Gainesville, Florida January 2000

Microcontroller & Interfacing

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software.

Information Science 1

In this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors.

Microprocessors/Microcontrollers

Parts of the Computer System. Parts of the Computer System. Parts of the Computer System. Essential Computer Hardware. Information Processing Cycle

THE MICROCOMPUTER SYSTEM CHAPTER - 2

Introduction to Computers - Chapter 4

Chapter Two. Hardware Basics: Inside the Box

Bits and Bytes. Here is a sort of glossary of computer buzzwords you will encounter in computer use:

Digital Fundamentals

DAQFactory U3 Tutorial Getting Started with DAQFactory-Express and your LabJack U3 11/3/06

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

Full file at

Machine Architecture and Number Systems

9/7/2012. Introduction. Peeking into Computer Science. Jalal Kawash Mandatory: Chapter 1 Optional: None. Reading Assignment

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

CHAPTER 1 MICROCOMPUTER SYSTEMS. 1.1 Introduction. 1.2 Microcontroller Evolution

CS 101, Mock Computer Architecture

Computer Basics 1/6/16. Computer Organization. Computer systems consist of hardware and software.

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE0501. Subject Name: Microprocessor Fundamentals & Programming

Chapter 3 DATA REPRESENTATION

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

4 Categories Of 8085 Instructions That Manipulate Data

3.1 Description of Microprocessor. 3.2 History of Microprocessor

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

The x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language

IBM 370 Basic Data Types

lesson 3 Transforming Data into Information

COP 1170 Introduction to Computer Programming using Visual Basic

Chapter 1 : Introduction

Logic and Computer Design Fundamentals. Chapter 1 Digital Computers and Information

Dec Hex Bin ORG ; ZERO. Introduction To Computing

Bits, bytes, binary numbers, and the representation of information

Control Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.

Architecture of 8085 microprocessor

ELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller

St. Benedict s High School. Computing Science. Software Design & Development. (Part 2 Computer Architecture) National 5

5. a computer which CPU speed around 100 million instruction per second and with the word length of around 64 bits is known as

Agenda EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 1: Introduction. Go over the syllabus 3/31/2010

ESSSg^Pi»ter. The most important features of MULBY 3 at a glance

Downloaded from various sources on the NET

Machine Architecture and Number Systems CMSC104. Von Neumann Machine. Major Computer Components. Schematic Diagram of a Computer. First Computer?

INTRODUCTION OF MICROPROCESSOR& INTERFACING DEVICES Introduction to Microprocessor Evolutions of Microprocessor

SARDAR RAJA COLLEGES SARDAR RAJA COLLEGE OF ENGINEERING ALANGULAM

The Instruction Set. Chapter 5

TUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.

CMSC 104 -Lecture 2 John Y. Park, adapted by C Grasso

FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)

Homeschool Enrichment. The System Unit: Processing & Memory

Hands-on Lab 2: LabVIEW NI-DAQ Basics 2

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

Number System (Different Ways To Say How Many) Fall 2016

Lecture #2 January 30, 2004 The 6502 Architecture

About the Presentations

The data acquisition components, and their relationship to each other, are shown below.

Chap 1. Digital Computers and Information

Unit - II. Computer Concepts and C Programming 06CCP13. Unit II

Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Lecture (01) Digital Systems and Binary Numbers By: Dr. Ahmed ElShafee

INTRODUCTION TO COMPUTERS

built-in socket located on the bottom of the computer. T1850C uses a Super Twisted Nematic (STN) color display which displays up to 512 colors.

ECE2049 E17 Lecture 4 MSP430 Architecture & Intro to Digital I/O

Computer Technology Flash Card 2

An Introduction to Computers and Java CSC 121 Spring 2015 Howard Rosenthal

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

FE Review Computer Terms

ENE 334 Microprocessors

The Building Blocks: Binary Numbers, Boolean Logic, and Gates. Purpose of Chapter. External Representation of Information.

Chapter 1 Review of Number Systems

Introduction to Numbering Systems

8051 Instruction Opcodes In Hexadecimal Order

Chapter 1: An Overview of Computers and Programming Languages. Objectives. Objectives (cont d.) Introduction

Transcription:

LABORATORY USE OF A MICROCOMPUTER (Last Revision: August 27, 2000) ABSTRACT: A program, LabVIEW, is used to enable a microcomputer to acquire and manipulate data and to generate output voltages. TEXT REFERENCE: Sime, Rodney J., "Physical Chemistry - Methods, Techniques and Experiments," Saunders Pub., Philadelphia, PA, 1990. Chapt. 9-10. OTHER REFERENCES: LabVIEW Manuals. GENERAL DESCRIPTION AND THEORY: A microprocessor is a small computer element. It has all the elements of a computer except for the memory and input/output devices and it is contained in a very small package. In the case of the 8088 or 80286, which are the microprocessors for the IBM PC and AT, respectively, the package is about one by two inches. (The 80386, 80486 and pentium are a little larger.) In spite of its small size the microprocessor has most of the computing power associated with larger computers, however, because of its small size and low cost it is now being used in the construction of many modern chemical instruments. Instruments such as mass spectrometers, nmr spectrometers, gas chromatographs, etc., often come equipped with a microprocessor and memory to accomplish many of the tasks that used to require a large amount of sophisticated electronic hardware. The advantage of the microprocessor is that the electronic package is always the same for each instrument. It is the software or programs for the microprocessor which are different in each of the instruments. Another advantage of the software is that it can be changed easily (much more easily than hardware) and so improvements in instrumentation can often be accommodated by simply changing the program for the microprocessor. In addition, the microprocessor allows an instrument to be "customized" for a particular analysis or purpose at relatively low cost, in fact it can often be accomplished by one of the laboratory workers. Since these microprocessors are becoming so prevalent in chemical instrumentation, it is important that chemistry students have the opportunity to get familiar with the operation and use of the microprocessor in the laboratory. A processor or microprocessor is only part of a computer. It is the part that contains the logic and arithmetic functions together with some special memory locations called registers. The instructions that enable the computer to compute, read information, operate switches, etc., are executed in the processor section of the computer. However, a computer is composed of several additional components besides the processor. A sketch of a typical computer arrangement is shown in figure one below:

Memory RAM Input/ Memory Keyboard Output Processor ROM Control Timer/Clock Printer Aux. Memory Disk Figure 1. Computer System As can be seen from the figure, memory and input/output functions are usually part of any computer system. The memory serves the function of holding the list of instructions for the processor and also stores data for the programs. There are several different kinds of memory that are used by a computer. The memory immediately accessible to the processor for reading from and writing to is called random access memory (RAM). This form of memory is necessary when the memory contents are to be changed during the execution of a program. Another form of memory is read only memory (ROM) from which a processor may receive instructions or data but on which it cannot write anything. ROM memory is often used in microcomputer systems to contain programs which will used over and over again. It is most useful to put the monitor or operating control program in ROM so that it is always available and cannot be destroyed by another program writing over it. A mini-operating system for the IBM is contained in ROM but the main operating systems are read in from a magnetic disk. A magnetic disk is an auxiliary memory system. It is usually much larger than the RAM memory but not always. Auxiliary memory in the form of a floppy disk is quite portable and can be used to store and transport programs and data from one computer system to another. Probably one of the most important parts of the computer system is the input/output control system since it is by means of this section that the processor communicates with the outside world either through devices such as typewriter or keyboard-display system or to the instrument control world of electrical signals. The microcomputer system will do the former as it is delivered from the company. It is able to do the latter by means of ICS AI08 I/O or National Instruments AT-MIO-16 boards for data acquisition and control applications. Among other features, these boards contain timers, analog to digital and digital to analog converters. The timer is used to enable the computer system to operate according to definite time signals. For example, a timer will allow the computer to take readings every ten seconds if the program provides for this. The microcomputer has an interrupt system which allows the timer to interrupt a program in execution so that a particular operation

can be carried out by an "interrupt program." When the interrupt program has complete its action, the original program will continue from where it was interrupted. Most computer systems are rated in terms of the number of bytes in the memory. A byte consists of eight bits. A bit is the fundamental unit of the computer memory and is either a 0 or a 1. Since electronic instruments are stupid they can only tell if something is on (1) or off(0). This means that computers can only use a binary number system. Therefore all information that goes into a computer has be changed into binary representation. Decimal numbers are changed into their corresponding binary form and alphabetic characters are represented by a binary code called ASCII. It may seem obvious to you that both data and instructions are represented by a set of binary digits, and that what is a computer instruction in one case will be just a piece of data in another case. The difference to the processor lies in when they are delivered to the processor. If the set of binary digits comes to the processor during the instruction fetch cycle it is an instruction, while if it comes to the processor during a data fetch cycle it is a piece of data. The processor will execute a series of instructions in order, one after another unless told to deviate from this order by either a branch or jump instruction. A special register called the program counter stores the location of the next instruction to be called. There are other registers to be found in a processor. One which is always found is the accumulator or main register. It is often called the A register and here is where the arithmetic operations are carried out. Another type of register which is useful is the index register. There are many uses of an index register. One use to address a series of data by constructing the address from the contents of the index register and from the address part of the computer instruction code. The index register may also be used to count down the number of times that a certain operation or series of instructions are carried out. When the register is counted down to zero or a negative value, a branch instruction may be used to go to another part of the program. We have mentioned that the computer uses only binary numbers. This presents a problem to the programmer who normally does not think in binary. There is no easy conversion from binary to decimal. However, there is an easy conversion from binary to octal or hexadecimal. Most systems now use the hexadecimal notation for binary numbers. The hexadecimal system starts with the single digit, 0, and goes the single digit, F, (0 to 15 in decimal) before starting the two digit sequence at 10 (16 in decimal). The conversion is given below for numbers from 1 to 16: Hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F 10 Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Tables for the conversions are available from a number of sources. EQUIPMENT:

The microcomputer system used is equipped with the following features: 1) 32 Megabytes of RAM memory. 2) ROM memory containing a minimum operating system. 3) Input/output in the form of a keyboard/display. 4) Auxiliary storage in the form of a hard disk and floppy disk drives. 5) A data acquisition board equipped with analog to digital and digital to analog converters and several timers. 6) A pentium computer chip which includes a floating point processing unit. PROGRAMS: The computer program used is the LabVIEW program developed by the National Instrument Company. LABORATORY PROCEDURE: Before using the computer system look to see that the computer board is connected to the flat cable coming out of the back of the computer. The LabVIEW program may be started by double clicking the LabVIEW icon on the display. Part I: The Use of the LabVIEW Program

The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location. The opening panel of LabVIEW is shown above and this is the starting point for each section of the tutorials covered in this experiment. For this introductory experiment you will follow the procedures outlined in the LabVIEW Quick Start Guide. In this guide you should carry out the procedures described in Chapters 1-3 and Chapters 5-6. Omit Chapter 4 since there are no instruments attached to the computer. When you get to chapter 3, read the material in part II of this manual. Part II: Data Acquisition and Voltage Output One of the important functions of a computer system for data acquisition is the ability to sample and store data at variety of rates, from very small intervals of time to long periods of time. The data recorded can be saved on a floppy disk for later use or further manipulation. The data acquisition system used in the IBM PC AT can sample eight different analog signals. The signal can be either AC or DC but it must be in the range of -5 to +5 volts. The A to D converter used in the data acquisition system is located on a board in the computer housing. It is a 12 bit analog to digital converter. The A to D converter can function either as a 12 bit converter or an 8 bit converter depending on the signal received from the computer program. The A to D converter starts the conversion of the voltage value when it receives a signal from the computer. When the conversion is complete (the analog values is converted to an 8 or 12 bit digital value) the converter sends a signal to the computer. Then the computer can read the digital value from the converter and store it in the computer memory or write the value to a floppy disk. In the case of the data acquisition used in this experiment the A to D converter is multiplexed to eight different lines. This means that the converter can be switched to each of eight different lines so that eight different analog signals can be monitored simultaneously. In this part of the experiment, the voltages of several batteries will be determined. The connection block is illustrated below in Figure 1. Connect one battery to

The linked image cannot be displayed. The file may have been moved, renamed, or deleted. Verify that the link points to the correct file and location. channel 0 - ACH0 and ACH8 the polarity will not matter since the value will be read as either negative or positive. Connect the second battery to channel 1 - ACH1 and ACH9 When the connections have been made continue with Chapter 3. If you have time at the end of the period you can try to set up and use the output channels listed below: channel 0 - AO Gnd and DAC0 or to channel 1 - AO Gnd and DAC1 Figure 1 It is important to gain familiarity with the system since it will be used in several other experiments.