Computer-Based Instrumentation 11/12/01 ISAT 300.

Slides:



Advertisements
Similar presentations
Number Systems and Codes
Advertisements

ICS312 Set 2 Representation of Numbers and Characters.
CHAPTER 4 Computerized Data-Acquisition Systems Since the late 1950s, computers have been used to monitor, and in many cases to control, the performance.
COE 202: Digital Logic Design Signed Numbers
Binary & Decimal numbers = 3* * *10 + 5*1 = 3* * * *10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:
CS 151 Digital Systems Design Lecture 3 More Number Systems.
Representing Information as Bit Patterns Lecture 4 CSCI 1405, CSCI 1301 Introduction to Computer Science Fall 2009.
ENGIN112 L3: More Number Systems September 8, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 3 More Number Systems.
Chapter 1 Number Systems and Codes William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper Saddle.
Chapter 12 Digital Logic Circuit Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Binary Representation and Computer Arithmetic
Revision Introductory Lesson
Chapter 1 Number Systems and Codes 1. Outline 1. NUMBER SYSTEMS AND CODES 2. DIGITAL ELECTRONIC SIGNALS AND SWITCHES 3. BASIC LOGIC GATES 4. PROGRAMMABLE.
Binary Addition Addition Rules: = = = = = carry 1 1 carry 1 Example 1: Example 2:
Computer Systems 1 Fundamentals of Computing Negative Binary.
ECE 2110: Introduction to Digital Systems Signed Number Conversions.
Programmable Logic Controllers
ES 244: Digital Logic Design Chapter 1 Chapter 1: Introduction Uchechukwu Ofoegbu Temple University.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
ISAT 300 Computer-Based Instrumentation (part 2) Sampling and A/D Converters 11/14/01.
EX_01.1/46 Numeric Systems. EX_01.2/46 Overview Numeric systems – general, Binary numbers, Octal numbers, Hexadecimal system, Data units, ASCII code,
ICS312 Set 1 Representation of Numbers and Characters.
Lecture Objectives: 1)Define the terms least significant bit and most significant bit. 2)Explain how unsigned integer numbers are represented in memory.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION.
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
Engineering 1040: Mechanisms & Electric Circuits Spring 2014 Number Systems.
Cosc 2150: Computer Organization Chapter 2 Part 1 Integers addition and subtraction.
Number Systems and Codes
Lecture 2 Binary Values and Number Systems. The number 943 is an example of a number written in positional notation. The relative positions of the digits.
1 Lecture 3 ENGRE 254 1/14/09. 2 Lecture 1 review Digital signals assume two values represented by “0” and “1”. Typically a “0” represents a voltage near.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.
AEEE2031 Data Representation and Numbering Systems.
Two’s Complement. A system used to represent a negative number in binary A system used to represent a negative number in binary Positive numbers start.
WEEK #2 NUMBER SYSTEMS, OPERATION & CODES (PART 1)
Digital Representations ME 4611 Binary Representation Only two states (0 and 1) Easy to implement electronically %0= (0) 10 %1= (1) 10 %10= (2) 10 %11=
Number Systems by Dr. Amin Danial Asham. References  Programmable Controllers- Theory and Implementation, 2nd Edition, L.A. Bryan and E.A. Bryan.
MECH1500 Chapter 3.
Introduction * Binary numbers are represented with a separate sign bit along with the magnitude. * For example, in an 8-bit binary number, the MSB is.
Digital Data-Acquisition Systems Since the late 1950s, computers have been used to monitor, and in many cases to control, the performance of large process.
Chapter 1 Number Systems Digital Electronics. Topics discussed in last lecture Digital systems Advantages of using digital signals over analog. Disadvantages.
CPEN Digital Logic Design Binary Systems Spring 2004 C. Gerousis © Digital Design 3 rd Ed., Mano Prentice Hall.
In decimal we are quite familiar with placing a “-” sign in front of a number to denote that it is negative The same is true for binary numbers a computer.
Numerical formats What’s the main idea? Want to represent numbers (eg: 45, -12, ) using only bits. We’ve already seen (or you can read in the book)
09/03/20161 Information Representation Two’s Complement & Binary Arithmetic.
Number Representation 1 Lecture 2. Outcomes By the end of the session you should: – Understand what bits/bytes/words are. – Understanding conversion between.
CSE370, Lecture 2 Lecture 2: Number Systems  Logistics Webpage is up! HW1 is posted on the web in the calender --- due.
Basic Electricity and Electronics Module Two Basic Electronics Copyright © Texas Education Agency, All rights reserved.
Software Design and Development Storing Data Computing Science.
Binary Addition The simplest arithmetic operation in binary is addition. Adding two single-digit binary numbers is relatively simple, using a form of carrying:
Number Systems Decimal Can you write 12,045 in expanded form? Base? Allowable digits for each place?
Programmable Logic Controller
MECH 373 Instrumentation and Measurements
Cosc 2150: Computer Organization
Binary & Decimal numbers
Addition and Subtraction
Number Systems and Codes
Negative Binary Numbers
CHAPTER 1 INTRODUCTION NUMBER SYSTEMS AND CONVERSION
CHAPTER 1 : INTRODUCTION
Logistics Always read the Calendar at
Negative Binary Numbers
Number System conversions
Binary Addition & Subtraction
Number Systems and Codes
Analog to Digital Data Conversion
Decimal System The radix or base of a number system determines
Unit 18: Computational Thinking
Binary Addition (1 of 2) Two 1-bit values A B A + B 1
Lecture 2: Number Systems
Presentation transcript:

Computer-Based Instrumentation 11/12/01 ISAT 300

The generalized measurement system – Figure 2.1 Sensing element Signal modification subsystem Indicator or recorder Measurand Computer E.g., for temperature measurement, could be a thermocouple or a thermistor

Computer-Based Instrumentation Connection Module Computer Thermocouple or thermistor

Computer-Based Instrumentation

Measurand Sensing element Signal modification subsystem Indicator or recorder

Computerized Data Acquisition System – Fig. 4.1 What we want to know about

What’s a MUX? (Multiplexer) – Fig. 4.4 What if we want to monitor several measurands? (several temperatures, pressure, humidity, illumination,etc.)  We need to monitor several sensors. In most cases, each sensor is connected to a separate channel of the computerized data acquisition system. The computer reads information from the various channels one at a time using a device called a multiplexer (MUX). The MUX is an electronic switch.

What’s a MUX? (Multiplexer) – Fig. 4.4 The computer instructs the MUX to select a particular channel and the data are then read and processed. The computer then instructs the MUX to select a another channel …

Computerized Data Acquisition System – Fig. 4.1 What we want to know about

Computerized Data Acquisition Information in computers is stored in bistable devices, called “flip-flops”. Flip-flops can have two possible states. The “on” state is assigned a numerical value of 1. The “off” state is assigned a numerical value of 0. We need to know a little bit about binary. The analog-to-digital converter converts an analog signal (generally a voltage) to a digital (binary) code.

Everything I need to know I learned in kindergarten “Sing a song of sixpence, a pocket full of rye, Four and twenty blackbirds baked in a pie” 24 2 tens + 4 ones

Another example (decimal system) digits = 10 possibilities 0, 1, 2, 3, 4, 5, 6, 7, 8, 9

Binary system digits = 2 possibilities 0, 1

Binary numbers--what’s it worth? b = 15 d b = 255 d b = 4095 d b = 65,535 d 8 bits = 1 byte

Examples: converting binary to decimal b = ? d b = ? d b = ? d b = ? d

Adding in binary

Subtracting in binary  0  1  1 

More adding in binary compare to decimal:

Converting decimal to binary least significant bit (lsb) most significant bit (msb) “zero padding” 92 d = b

Examples: converting decimal to binary 12 d = ? b 75 d = ? b 1215 d = ? b

Representing negative numbers – 2’s complement bits of numbers 3 bits of numbers, 1 bit of sign

2’s complement--hard for us, easy for the computer 1) Convert the magnitude of the number to binary-- have at least one “leading zero” 2) Invert all of the bits--0’s become 1’s, 0’s become 1’s 3) Add 1 to the result To get positive numbers: 1) Convert the magnitude to binary--but you must have at least one “leading zero” To get negative numbers:

1) Convert the magnitude of the number to binary-- have at least one “leading zero” 2) Leave it alone--it’s positive! 2’s complement--hard for us, easy for the computer Example:

1) Convert the magnitude of the number to binary-- have at least one “leading zero” 2) Invert all of the bits--0’s become 1’s, 0’s become 1’s 3) Add 1 to the result 2’s complement--hard for us, easy for the computer Example:

2’s complement--example +19 d = ? b -19 d = ? b Use one byte = 8 bits for both