Introduction to digital systems. Juan P Bello

Similar documents
Digital Electronics Part 1: Binary Logic

ENG2410 Digital Design Introduction to Digital Systems. Fall 2017 S. Areibi School of Engineering University of Guelph

Week No. 06: Numbering Systems

EE 521: Instrumentation and Measurements

of Digital Electronics

Topic 1: Digital Data

12/31/2010. Digital Operations and Computations Course Notes. 01-Number Systems Text: Unit 1. Overview. What is a Digital System?

Digital Signal 2 N Most Significant Bit (MSB) Least. Bit (LSB)

Introduction to Digital Logic Missouri S&T University CPE 2210 Number Systems

EE260: Digital Design, Spring n Digital Computers. n Number Systems. n Representations. n Conversions. n Arithmetic Operations.

Students should be able to (a) produce a truth table from a given logic diagram

Analog to Digital Conversion

ETSF15 Analog/Digital. Stefan Höst

Four Important Number Systems

ENGIN 112 Intro to Electrical and Computer Engineering

Digital Electronic Meters

Measurement and Instrumentation. Sampling, Digital Devices, and Data Acquisition

Mark Redekopp, All rights reserved. Lecture 1 Slides. Intro Number Systems Logic Functions

Data Converter Fundamentals

Digital Circuits, Binary Numbering, and Logic Gates Cornerstone Electronics Technology and Robotics II

CSE 241 Digital Systems Spring 2013

Hakim Weatherspoon CS 3410 Computer Science Cornell University

Analog Digital Sampling & Discrete Time Discrete Values & Noise Digital-to-Analog Conversion Analog-to-Digital Conversion

14:332:231 DIGITAL LOGIC DESIGN. Why Binary Number System?

Chapter 1 CSCI

CSEN102 Introduction to Computer Science

ELEN E4810: Digital Signal Processing Topic 11: Continuous Signals. 1. Sampling and Reconstruction 2. Quantization

Introduction to Digital Logic Missouri S&T University CPE 2210 Number Systems

Principles of Communications

1 Computing System 2. 2 Data Representation Number Systems 22

Analog to Digital Converters (ADCs)

Menu. Review of Number Systems EEL3701 EEL3701. Math. Review of number systems >Binary math >Signed number systems

EEO 401 Digital Signal Processing Prof. Mark Fowler

Numbering Systems. Contents: Binary & Decimal. Converting From: B D, D B. Arithmetic operation on Binary.

MATH Dr. Halimah Alshehri Dr. Halimah Alshehri

Simple Interactions CS 105 Lecture 2 Jan 26. Matthew Stone

Exam for Physics 4051, October 31, 2008

ECE380 Digital Logic. Positional representation

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

7.1 Sampling and Reconstruction

Numbers and Arithmetic

Binary addition example worked out

8/13/16. Data analysis and modeling: the tools of the trade. Ø Set of numbers. Ø Binary representation of numbers. Ø Floating points.

hexadecimal-to-decimal conversion

Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

CS1800: Hex & Logic. Professor Kevin Gold

6.003: Signals and Systems. Sampling and Quantization

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Modern Digital Communication Techniques Prof. Suvra Sekhar Das G. S. Sanyal School of Telecommunication Indian Institute of Technology, Kharagpur

Conversions between Decimal and Binary

CISC 1400 Discrete Structures

Why digital? Overview. Number Systems. Binary to Decimal conversion

CPE100: Digital Logic Design I

ECE 372 Microcontroller Design

Sistemas de Aquisição de Dados. Mestrado Integrado em Eng. Física Tecnológica 2016/17 Aula 4, 10th October

Counting in Different Number Systems

CMPT 889: Lecture 3 Fundamentals of Digital Audio, Discrete-Time Signals

ENGIN 112 Intro to Electrical and Computer Engineering

Combinational Logic. By : Ali Mustafa

Signals & Systems. Chapter 7: Sampling. Adapted from: Lecture notes from MIT, Binghamton University, and Purdue. Dr. Hamid R.

Physics 310 Lecture 10 Microprocessors

Oversampling Converters

Chapter 2: Problem Solutions

CHAPTER 2 NUMBER SYSTEMS

Digital Systems and Information Part II

Math 230 Assembly Language Programming (Computer Organization) Numeric Data Lecture 2

NUMBERS AND CODES CHAPTER Numbers

Number Theory: Representations of Integers

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Number Representation and Waveform Quantization

EE123 Digital Signal Processing

PCM Reference Chapter 12.1, Communication Systems, Carlson. PCM.1

Number System conversions

Numbers and Arithmetic

The information loss in quantization

14:332:231 DIGITAL LOGIC DESIGN. 2 s-complement Representation

Chapter 5 Synchronous Sequential Logic

We say that the base of the decimal number system is ten, represented by the symbol

Informatics 1 - Computation & Logic: Tutorial 3

Chapter 2 (Part 3): The Fundamentals: Algorithms, the Integers & Matrices. Integers & Algorithms (2.5)

Logic Theory in Designing of Digital Circuit & Microprocessor

Design of Sequential Circuits

EE123 Digital Signal Processing

IMPERIAL COLLEGE OF SCIENCE, TECHNOLOGY AND MEDICINE UNIVERSITY OF LONDON DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2005

Section 4.2. Place-Value or Positional- Value Numeration Systems. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

Lecture January, 2011

Discrete mathematics is the study of techniques, ideas and modes of

Cs302 Quiz for MID TERM Exam Solved

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

FROM ANALOGUE TO DIGITAL

From Fourier Series to Analysis of Non-stationary Signals - II

Digital Electronics Final Examination. Part A

Fundamentals of Digital Design

DSP Design Lecture 2. Fredrik Edman.

DE58/DC58 LOGIC DESIGN DEC 2014

10/14/2009. Reading: Hambley Chapters

CHAPTER 7. Exercises 17/ / /2 2 0

EE 230 Lecture 40. Data Converters. Amplitude Quantization. Quantization Noise

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

UNSIGNED BINARY NUMBERS DIGITAL ELECTRONICS SYSTEM DESIGN WHAT ABOUT NEGATIVE NUMBERS? BINARY ADDITION 11/9/2018

Transcription:

Introduction to digital systems Juan P Bello

Analogue vs Digital (1) Analog information is made up of a continuum of values within a given range At its most basic, digital information can assume only one of two possible values: one/zero, on/off, high/low, true/false, etc.

Analogue vs Digital (2) Digital Information is less susceptible to noise than analog information Exact voltage values are not important, only their class (1 or 0) The complexity of operations is reduced, thus it is easier to implement them with high accuracy in digital form BUT: Most physical quantities are analog, thus a conversion is needed

Logical operations (1) Truth table

Logical operations (2) These logic gates are the basic building blocks of all digital systems

Numeral Systems Notation system using a limited set of symbols to express numbers uniquely We are most familiar with the positional, base-10 (decimal), Hindu-Arabic numeral system: Least significant digit, to the right, assumes its own value. As we move to the left, the value is multiplied by the base.

Binary system (1) Digital systems represent information using a binary system, where data can assume one of only two possible values: zero or one. Appropriate for implementation in electronic circuitry, where values are characterized by the absence/presence of an electrical current flow. Pulse code modulation (PCM) is used to represent binary numbers electrically, as a string of high and low voltages

Binary system (2) The binary system represents numbers using binary digits (bits) where each digit corresponds to a power of two. binary 1 1 1 0 0 1 0 1 Power of two 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 decimal 128 64 32 16 8 4 2 1 The total (in decimal) is 128 + 64 + 32 + 4 + 1 = 229 Since we begin counting from zero, n bits can represent 2 n values: from 0 to 2 n 1 inclusive (e.g. 256 values, from 0 to 255, for 8 bits). Groups of bits form binary words

Binary system (3) MSB x 2 7 LSB x 2 0 binary 1 1 1 0 0 1 0 1 Power of two 2 7 2 6 2 5 2 4 2 3 2 2 2 1 2 0 decimal 128 64 32 16 8 4 2 1 binary word 4 bits = 1 nybble 4 bits = 1 nybble Unit Value Kilobyte (KB) 1024 Bytes Megabyte (MB) 1024 KBytes Gigabyte (GB) 1024 MBytes Terabyte (TB) 1024 GBytes 8 bits = 1 byte (from by eight) byte byte byte MSbyte LSbyte

Binary system (4) How to convert from decimal to binary? Repeat division by 2 Example: Convert 29 10 to binary 29/2 = 14 remainder 1 (LSB) 14/2 = 7 remainder 0 7/2 = 3 remainder 1 3/2 = 1 remainder 1 1/2 = 0 remainder 1 (MSB) 29 10 => 11101 2

Octal system To avoid writing down long binary words, it is often easier to use larger base systems. Two commonly-used systems are octal and hexadecimal. The octal number system is base eight, i.e. values can be represented using an 8-symbol dictionary: 0-7 To convert from binary to octal, binary numbers are grouped on 3-bits words such that: 000 2 = 0 8, 001 = 1, 010 = 2, 011 = 3, 100 = 4, 101 = 5, 110 = 6, and 111 = 7 To convert from octal to decimal: 24 8 = 2x8 1 + 4x8 0 = 20 10 From decimal to octal (and from there to binary), Repeat divide by 8: 20/8 = 2 remainder 4 (LSB) 2/8 = 0 remainder 2 (MSB) 20 10 = 24 8

Hexadecimal numbers The hexadecimal number system (AKA hex) is a base 16 notation. It is the most popular large-base system for representing binary numbers. Values in MIDI implementation charts are often expressed as hexadecimal numbers. Each symbol represents 4-bits (1 nybble), that can take one of 16 different values: the values 0-9 are represented by the digits 0-9, and the values 10-15 are represented by the capital letters A-F. Conversions are performed as with the other number systems. Bin Hex Dec Bin Hex Dec Bin Hex Dec Bin Hex Dec 0000 0 0 0100 4 4 1000 8 8 1100 C 12 0001 1 1 0101 5 5 1001 9 9 1101 D 13 0010 2 2 0110 6 6 1010 A 10 1110 E 14 0011 3 3 0111 7 7 1011 B 11 1111 F 15

A/D Conversion (1) The conversion of an analog (continuous) voltage x(t) into a discrete sequence of numbers x(n) is performed by an Analog-todigital Converter (ADC) The ADC samples the amplitude of the analog signal at regular intervals in time, and encodes (quantizes) those values as binary numbers. The regular time intervals are known as the sampling period (T s ) and are determined by the ADC clock. This period defines the frequency at which the sampling will be done, such that the sampling frequency (in Hertz) is: fs =1/T s

A/D Conversion (2) ADC The outgoing sequence x(n) is a discrete-time signal with quantized amplitude Each element of the sequence is referred to as a sample....,x[n 1],x[n],x[n +1],...

A/D Conversion (3) Sampling is the process of converting a continuous signal into a discrete sequence Our intuition tells us that we will loose information in the process However this is not necessarily the case and the sampling theorem simply formalizes this fact It states that in order to be able to reconstruct a bandlimited signal, the sampling frequency must be at least twice the highest frequency of the signal being sampled (Nyquist, 1928) The Nyquist frequency

A/D Conversion (4) What happens when fs < 2B There is another, lower-frequency, signal that share samples with the original signal (aliasing). Related to the wagon-wheel effect: http://www.michaelbach.de/ot/mot_strob/index.html LPF Anti-aliasing

A/D Conversion (5) The accuracy of the quantization depends on the number of bits used to encode each amplitude value from the analog signal. Example: to quantize the position of a control knob, it is necessary to determine the nearest point of the scale This conversion implies an error (max. half a point) fs =1/T s

A/D Conversion (6) Quantization error: is the distortion produced by the rounding-up of the continuous values of the analog signal during the ADC process to the values allowed by the bit-resolution of each sample. This depends on the quantization accuracy (# of bits) Example: a sound with progressively worsening quantization noise:

D/A Conversion Just as we used an ADC to go from x(t) to x(n), we can turn a discrete sequence into a continuous voltage level using a digital-toanalog converter (DAC). However, the quantized nature of the digital signal produces a Zero- Order Hold effect that distorts the converted signal, introducing some step (fast) changes (know as imaging). To avoid this, we use an anti-imaging filter (AKA smoothing or reconstruction filter) that smoothes out those fast changes.

Useful References Francis Rumsey (1994). MIDI Systems and Control, Focal Press. Chapter 1: An Introduction to Computer Systems and Terminology Francis Rumsey and Tim McCormick (2002). Sound and Recording: An Introduction, Focal Press. Chapter 13: MIDI Peter Lau (2001). Digital System Tutorial on the Web, University of Sydney: http://www.eelab.usyd.edu.au/digital_tutorial/toc.html Curtis Roads (1996). The Computer Music Tutorial, The MIT Press