Lecture 2. Digital Basics

Similar documents
Lecture 2: Data Representation

Aim. Lecture 1: Overview Digital Concepts. Objectives. 15 Lectures

Digital Logic ircuits Circuits Fundamentals I Fundamentals I

BEE 2233 Digital Electronics. Chapter 1: Introduction

EE19D Digital Electronics. Lecture 1: General Introduction

Digital Fundamentals

Digital Fundamentals 8/25/2016. Summary. Summary. Floyd. Chapter 1. Analog Quantities

EE292: Fundamentals of ECE

IES Digital Mock Test

Digital Electronics 8. Multiplexer & Demultiplexer

Dr. Cahit Karakuş ANALOG SİNYALLER

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

Chapter 1: Digital logic

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

Design IV. E232 Fall 07

Lecture #1. Course Overview

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

INTEGRATED CIRCUITS. 74F583 4-bit BCD adder. Product specification Apr 06. IC15 Data Handbook

Electronics. Digital Electronics

Microprocessor & Interfacing Lecture Programmable Interval Timer

Analog to Digital Converters

Lab 5. Binary Counter

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

INTRODUCTION TO DIGITAL CONCEPT

Lab 6. Binary Counter

Analog-to-Digital Converter (ADC) And Digital-to-Analog Converter (DAC)

CS302 - Digital Logic Design Glossary By

Learning Objectives:

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

DS1307/DS X 8 Serial Real Time Clock

4-bit counter circa bit counter circa 1990

Chapter 7. Introduction. Analog Signal and Discrete Time Series. Sampling, Digital Devices, and Data Acquisition

UNIT-IV Combinational Logic

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

CHW 261: Logic Design

EEE312: Electrical measurement & instrumentation

DS in 1 High Speed Silicon Delay Line FEATURES PIN ASSIGNMENT

DS Tap High Speed Silicon Delay Line

Classic. Feature. EPLD Family. Table 1. Classic Device Features

Analog to Digital Conversion

NTE74S188 Integrated Circuit 256 Bit Open Collector PROM 16 Lead DIP Type Package

DS in-1 Low Voltage Silicon Delay Line

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

Unit 1.1: Information representation

COMBINATIONAL CIRCUIT

Outline. Analog/Digital Conversion

Chapter 5: Signal conversion

DM Segment Decoder/Driver/Latch with Constant Current Sink Outputs

EE 210 Lab Exercise #4 D/A & A/D Converters

Sr. No. Instrument Specifications. TTL (Transistor-Transistor Logic) based on bipolar junction transistors

ENGR 210 Lab 12: Analog to Digital Conversion

IN1307N/D/IZ1307 CMOS IC of Real Time Watch with Serial Interface, 56 Х 8 RAM

Digital Fundamentals. Introductory Digital Concepts

DS1202, DS1202S. Serial Timekeeping Chip FEATURES PIN ASSIGNMENT. ORDERING INFORMATION DS pin DIP DS1202S 16 pin SOIC DS1202S8 8 pin SOIC

4-bit counter circa bit counter circa 1990

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

AD557 SPECIFICATIONS. T A = 25 C, V CC = 5 V unless otherwise noted) REV. B

Philips Semiconductors Programmable Logic Devices

Ch 5 Hardware Components for Automation

Pulse Code Modulation (PCM)

6-Bit A/D converter (parallel outputs)

DS1307ZN. 64 X 8 Serial Real Time Clock

DS Tap Silicon Delay Line

Course Outline Cover Page

74F583 4-Bit BCD Adder

Reading: Schwarz and Oldham (light on non-ideal) and comparator viewgraphs. Lecture 14: October 17, 2001

Fan in: The number of inputs of a logic gate can handle.

DS1040 Programmable One-Shot Pulse Generator

Digital Logic Circuits

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

. HIGH SPEED .LOW POWER DISSIPATION .HIGH NOISE IMMUNITY M54HC155 M74HC155 DUAL 2 TO 4 LINE DECODER 3 TO 8 LINE DECODER. tpd = 12 ns (TYP.

Multiplexer for Capacitive sensors

Unit 1 Foundations in Electronics - Lesson 1.1 Introduction to Electronics Standards Essential Question Enduring Understandings

256K (32K x 8) OTP EPROM AT27C256R

EECS 42 Introduction to Electronics for Computer Science

Data Converters. Dr.Trushit Upadhyaya EC Department, CSPIT, CHARUSAT

DS1806 Digital Sextet Potentiometer

1-Megabit (128K x 8) Unregulated Battery-Voltage OTP EPROM AT27BV010

Section 1. Fundamentals of DDS Technology

INTEGRATED CIRCUITS. 74F input AND-OR-invert gate. Product specification 1996 Mar 14 IC15 Data Handbook

CONTENTS Sl. No. Experiment Page No

BCD Adder. Lecture 21 1

QUIZ. What do these bits represent?

Microprocessors & Interfacing

DS1801 Dual Audio Taper Potentiometer

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

EE40 Lecture 35. Prof. Chang-Hasnain. 12/5/07 Reading: Ch 7, Supplementary Reader

Digital Electronics. Functions of Combinational Logic

Unit level 4 Credit value 15. Introduction. Learning Outcomes

DIGITAL ELECTRONICS QUESTION BANK

Lab Exercise 6: Digital/Analog conversion

. HIGH SPEED .LOW POWER DISSIPATION .COMPATIBLE WITH TTL OUTPUTS M54HCT139 M74HCT139 DUAL 2 TO 4 DECODER/DEMULTIPLEXER. tpd = 17 ns (TYP.

CD74HCT4514, CD74HCT LINE TO 16-LINE DECODERS/DEMULTIPLEXERS WITH INPUT LATCHES

Digital Integrated CircuitDesign

16 Multiplexers and De-multiplexers using gates and ICs. (74150, 74154)

DS1267 Dual Digital Potentiometer Chip

INTEGRATED CIRCUITS. 74ALS139 Dual 1-of-4 decoder/demultiplexer. Product specification 1991 Feb 08 IC05 Data Handbook

Lecture 11. Operational Amplifier (opamp)

1 IC Logic Families and Characteristics

Transcription:

Lecture Digital Basics Peter Cheung Department of Electrical & Electronic Engineering Imperial College London URL: www.ee.ic.ac.uk/pcheung/teaching/de1_ee/ E-mail: p.cheung@imperial.ac.uk Lecture Slide 1 Learning outcomes on digital electronics Understand the formalism of logic and able to analyse logical processes. Implement simple logical operations using combinational logic circuits. Understand common forms of number representation in digital electronic circuits and to be able to convert between different representations. Understand the logical operation of simple arithmetic and other MSI circuits (Medium Scale Integrated Circuits) Understand the concepts of sequential circuits enabling you to analyse sequential systems in terms of state machines and counters. Understand how digital storage (e.g. memory) works and how its content is accessed. Understand the basics of microprocessors and microcontrollers. Able to integrate hardware and software together in a simple electronic system. Interface electronic circuits to the physical world and process analogue signals on microcontroller systems in digital form. Lecture Slide

Analogue vs Digital? A/D Conv. Encoding Compression Modulation Decoding Decompressio n Filtering D/A Conv. Most physical phenomena are in the analogue domain. Most modern electronics systems operate in the digital domain. Analogue-to-Digital (A/D) converters, and Digital-to-Analogue (D/A) converters links the two worlds together. P717 Lecture Slide 3 Binary Digits, Logic Levels The conventional numbering system uses ten digits: 0 to 9. The binary numbering system uses just two digits: 0 and 1. They can also be called LOW and HIGH, FALSE and TRUE, or 0 and 1. Binary values are also represented by voltage levels. V H V CC 3.3 5.0 V CC Not valid V OH.4.7 V OH V L V IH.0.0 V IH VCC Logic supply voltage level VOH Logic high output level VIH Logic high input level VIL Logic low input level 3.3v Logic Levels V IL V OL 0.8 0.5 0.8 0.4 V IL V OL TTL Logic Levels VOL Logic low output level GND 0 0 GND Lecture Slide 4

Digital Waveforms Major parts of a digital pulse Base line Amplitude Rise time (t r ) Pulse width (t w ) Fall time (t f ) Period (T) Frequency (f) f = 1/T in Hz The duty cycle of a binary waveform is defined as: Duty Cycle = (t w /T ) x 100 % P79 Lecture Slide 5 Basic Logic Operations There are only three basic logic operations: NOT gate P718-7 Lecture Slide 6

Common integrated circuit packages Dual in-line package (DIP) Small-outline IC (SOIC) Plastic-leaded chip carrier (PLCC) Flat pack (FP) Ball Grid Array (BGA) Lecture Slide 7 What do we mean by data? Many definitions are possible depending on context We will say that: data is a physical representation of information Data can be stored e.g. computer disk, memory chips Data can be transmitted e.g. internet Data can be processed e.g. inside a microprocessor Lecture Slide 8

Electronic Representation of Data Information can be very complicated e.g.: Numbers Sounds Pictures Codes We need a simple electronic representation What can we do with electronics? Set up voltages and currents Change the voltages and currents 5 Volts A useful device is a switch R Switch Closed: V = 0 Volts Switch Open: V = 5 Volts Switch V Lecture Slide 9 Decimal Numbers The decimal number system has ten digits: 0, 1,, 3, 4, 5, 6, 7, 8, and 9 The decimal numbering system has a base of 10 with each position weighted by a factor of 10: Lecture Slide 10

Binary Numbers The binary number system has two digits: 0 and 1 The binary numbering system has a base of with each position weighted by a factor of : Lecture Slide 11 Binary Number System Uses symbols by our previous rule 0 and 1 Example: 10011 in binary is 1 x 4 + 1 x 1 + 1 x 0 =19 Binary is the base number system Most common in digital electronics 4 3 1 0 1 0 0 1 1 Lecture Slide 1

Integer and Fractional Parts Binary numbers can contain fractional parts as well as integer parts This 8-bit number is in Q3 format 3 bits after the binary point How could 19.376 best be represented using an 8-bit binary number? Quantization error 4 3 1 0-1 - -3 1 0 0 1 1 0 1 1 Binary Point (19.375) 10 Lecture Slide 13 Conversion: decimal to binary (Method 1) The decimal number is simply expressed as a sum of powers of, and then 1s and 0s are written in the appropriate bit positions. 50 50 10 10 = 3+ 18 = 3 + 16 + = 1 = 110010 5 + 1 4 + 1 1 346 10 = 56 + 90 = 56 + 64 + 6 = 56 + 64 + 16 + 10 = 56 + 64 + 16 + 8 + 346 10 = 1 8 + 1 = 101011010 6 + 1 4 + 1 3 + 1 1 Lecture Slide 14

Conversion: decimal to binary (method ) Repeated division quotient remainder 50/ = 5 0 LSB 5/ = 1 1 1/ = 6 0 6/ = 3 0 3/ = 1 1 1/ = 0 1 MSB 50 10 =110010 Lecture Slide 15 Conversion: binary to decimal The simplest way is to represent an n-bit binary number as a n x n-1 +... + a x + a 1 x 1 + a 0 x 0 The conversion can be done by substituting the a's with the given bits then multiplying and adding: eg: Convert (1101) into decimal 1 x 3 + 1 x + 0 x 1 + 1 x 0 = (13) 10 Other algorithms can be used as alternatives if you prefer Lecture Slide 16

First recall decimal addition In binary addition we follow the same pattern but 0 + 0 = 0 carry-out 0 0 + 1 = 1 carry-out 0 1 + 0 = 1 carry-out 0 1 + 1 = 0 carry-out 1 1 + 1 + carry-in = 1 carry-out 1 Binary Addition 1 1 1 A 1 3 4 + B 9 8 7 Sum 1 A 0 1 1 1 + B 0 1 1 0 Sum 1 1 0 1 1 Lecture Slide 17 Note that we need to consider 3 inputs per bit of binary number A, B and carry-in Each bit of binary addition generates outputs sum and carry-out Lecture Slide 18

Hexadecimal Numbers Decimal, binary, and hexadecimal numbers Lecture Slide 19 Hexadecimal Numbers conversions Binary-to-hexadecimal conversion 1.. Break the binary number into 4-bit groups Replace each group with the hexadecimal equivalent Hexadecimal-to-decimal conversion 1.. Convert the hexadecimal to groups of 4-bit binary Convert the binary to decimal Decimal-to-hexadecimal conversion Repeated division by 16 Lecture Slide 0

Binary Coded Decimal (BCD) Use 4-bit binary to represent one decimal digit Easy conversion Wasting bits (4-bits can represent 16 different values, but only 10 values are used) Used extensively in financial applications Lecture Slide 1 Binary Coded Decimal (BCD) Convert 0110100000111001(BCD) to its decimal equivalent. 0110 1000 0011 1001 6 8 3 9 Convert the BCD number 011111000001 to its decimal equivalent. 0111 1100 0001 7 1 The forbidden code group indicated an error Lecture Slide

Summary binary, hexadecimal and BCD Lecture Slide 3 P73 ASCII code Lecture Slide 4