EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Microprocessors A Beginning.
Microprocessors and Interfacing
PCEL4303 MICROPROCESSOR & MICRO CONTROLLERS MODULE - I (10 hours) Microprocessor Architecture: Microprocessor and Microcomputer Architecture, Pins & Signals,
Microprocessor and Microcontroller Fundamentals
Course Overview and The 8051 Architecture
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
1.21 Introduction to microprocessors KUEU 2135 / KBEB 2193 Mikropemproses dan Sistemnya.
Engr. M.K.Debnath1 Microcontroller and PLC Eng. ISRAFIL KHAN. DIPLOMA IN ELECTRONIC.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Parul Polytechnic Institute Subject Code : Name Of Subject : Microprocessor and assembly language programming Name of Unit : Introduction to Microprossor.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
GCSE Computing - The CPU
Microcontroller based system design
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
The Microcomputer System In this presentation you will: Investigate the microprocessor Title Page.
Computer Organization & Assembly Language
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
created by :Gaurav Shrivastava
Microcontrollers Microcontroller (MCU) – An integrated electronic computing device that includes three major components on a single chip Microprocessor.
Electrical Engineering Department Engineering College Prince Sattam bin Abdul Aziz University Text Book: - Triebel and Singh, "The 8088 and 8086 Microprocessors",
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Organization & Assembly Language © by DR. M. Amer.
Lecture 2 Microprocessor Architecture Image from:
Introduction to Microprocessors
INTRODUCTION.  Upon completing this topic, you should be able to: Illustrate a basic elements of digital computer system and their functions, Depicts.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Electronic Analog Computer Dr. Amin Danial Asham by.
MICROOCESSORS AND MICROCONTROLLER:
Programmable Logic Controllers LO1: Understand the design and operational characteristics of a PLC system.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Lecture 7: Overview Microprocessors / microcontrollers.
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Capability of processor determine the capability of the computer system. Therefore, processor is the key element or heart of a computer system. Other.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
15: Microprocessor and microcontroller
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
Unit Microprocessor.
Microprocessor and Microcontroller Fundamentals
COURSE OUTCOMES OF Microprocessor and programming
Microprocessor and Microcontroller Fundamentals
Chapter 1 Introduction.
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
UNIT – Microcontroller.
Chapter 7.2 Computer Architecture
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
Introduction of microprocessor
Microcomputer Architecture
Introduction to Microprocessors and Microcontrollers
Number Representations and Basic Processor Architecture
Computer Architecture Assembly Language
Presentation transcript:

EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM

Course Outcomes 1. Understand the architecture of microprocessor system 1. Understand the architecture of microprocessor system 2. Understand the assembly language 2. Understand the assembly language 3. Can program the microprocessor (8085) using assembly language 3. Can program the microprocessor (8085) using assembly language 4. Can interface the microprocessor to external devices such as switch, key pad, ADC, DAC, LCD and PC 4. Can interface the microprocessor to external devices such as switch, key pad, ADC, DAC, LCD and PC 5. Can apply the microprocessor in embedded system 5. Can apply the microprocessor in embedded system

Evaluation Scheme 100% Course work 100% Course work 1. hands on test – 15% 1. hands on test – 15% 2. Theoretical Test – 15% 2. Theoretical Test – 15% 3. Lab Report – 10% 3. Lab Report – 10% 4. Project – 60% 4. Project – 60% Lab Report Lab Report Flowchart Flowchart Block diagram Block diagram Program (assembly language) Program (assembly language)

Syllabus 1)Introduction-chapter 1 1)Introduction-chapter 1 2) Internal Microprocessor Architecture – chapter 2, chapter 3, chapter 4 2) Internal Microprocessor Architecture – chapter 2, chapter 3, chapter 4 3) Microprocessor Programming-chapter 6 and chapter 7. 3) Microprocessor Programming-chapter 6 and chapter 7. Text Book: Microprocessor Architecture, programming And Application With The Ramesh S. Gaonkar

Lab WeekActivityDescription 2Lab 1Introduction to 8085 microprocessor 3Lab 2Introduction to I/O device 4 Lab 3Keypad 5 Hands on test 7 Lab 4ADC and Serial port 8 Lab 5DAC 9 Lab 6Interrupt 10 Hands on test 11ProjectGroup 12ProjectGroup 13ProjectGroup 14Viva Project and theoretical Test Individual

Introduction Intel 8085 is an 8 bit microprocessor introduced by Intel in Intel 8085 is an 8 bit microprocessor introduced by Intel in The 8085 follows the von Neumann architecture with a 16 bit address bus and 8 bit data bus. The 8085 follows the von Neumann architecture with a 16 bit address bus and 8 bit data bus. It can access 2 16 (65536) individual 8 bit memory locations (64KB) It can access 2 16 (65536) individual 8 bit memory locations (64KB) Has built in register: Has built in register: A (accumulator), B,C,D,E,H and L (8 bit) A (accumulator), B,C,D,E,H and L (8 bit) Special purpose register: 16 bit program counter, stack pointer, and 8 bit flag register Special purpose register: 16 bit program counter, stack pointer, and 8 bit flag register

Von Neumann Architecture Share memory for program and data with one data bus and one address bus between processor and memory. Share memory for program and data with one data bus and one address bus between processor and memory. Instruction and data have to be fetched in sequential order, limiting the operation bandwidth. Instruction and data have to be fetched in sequential order, limiting the operation bandwidth. Its design is simpler than that of architecture. Its design is simpler than that of architecture. It is mostly used to interface to external memory. It is mostly used to interface to external memory.

Harvard Architecture Uses physically separate memories for instruction and data, requiring dedicated buses for each of them. Uses physically separate memories for instruction and data, requiring dedicated buses for each of them. Instruction and operands can be fetched simultaneously. Instruction and operands can be fetched simultaneously. Different program and data bus widths are possible, allowing program and data memory to be better optimized to the architectural requirements. Different program and data bus widths are possible, allowing program and data memory to be better optimized to the architectural requirements.

Von Neumann architecture vs Harvard architecture

Intel 8085

8085 microprocessor

Has single 5volt power supply Has single 5volt power supply Clock oscillator and system controller were integrated on the chip. Clock oscillator and system controller were integrated on the chip. The CPU included serial I/O port. The CPU included serial I/O port. Multiple version of 8085 microprocessor. Multiple version of 8085 microprocessor.

Version of 8085 microprocessor Original version without suffix A is from Intel. Original version without suffix A is from Intel. Then replaced by 8085A, HMOS version and CMOS version. Then replaced by 8085A, HMOS version and CMOS version. Second source manufacturer: AMD, mitsubishi, NEC, OKI, Siemens, Toshiba Second source manufacturer: AMD, mitsubishi, NEC, OKI, Siemens, Toshiba

Cont..

Introduction μp is a programmable integrated device that has computing and decision making capability, similar to CPU of a computer. μp is a programmable integrated device that has computing and decision making capability, similar to CPU of a computer. Can be: Can be: 1) embedded in a larger system 1) embedded in a larger system 2) a stand alone unit controlling processor 2) a stand alone unit controlling processor μp communicates and operates in the binary number 0 & 1, called bits. μp communicates and operates in the binary number 0 & 1, called bits. Each μp has a fixed set of instructions in the form of binary patterns called machine language. Each μp has a fixed set of instructions in the form of binary patterns called machine language. The binary instructions are given abbreviated names, called mnemonics, form the assembly language. The binary instructions are given abbreviated names, called mnemonics, form the assembly language.

Microprocessor A μp is a multipurpose, programmable, clock-driven, register based electronic device that reads binary instructions from a storage device called memory, accepts binary data as input and process data according to those instructions and provides results as output. A μp is a multipurpose, programmable, clock-driven, register based electronic device that reads binary instructions from a storage device called memory, accepts binary data as input and process data according to those instructions and provides results as output.

Cont.. A typical programmable machine can be represented with 4 components: A typical programmable machine can be represented with 4 components: Microprocessor Microprocessor Memory Memory Input Input Output Output These 4 components will form a system. These 4 components will form a system. The physical components --> hardware The physical components --> hardware A set of instructions  program A set of instructions  program A group of program is called software A group of program is called software

Cont.. The μp applications are clssified primarily in two categories: The μp applications are clssified primarily in two categories: Reprogrammable system (PC) Reprogrammable system (PC) Embedded system (washing machine) Embedded system (washing machine) In embedded system, μp is a part of a final product and is not available for reprogramming to the end user. In embedded system, μp is a part of a final product and is not available for reprogramming to the end user.

Binary Digits μp operates in binary digits, 0 & 1, known as bits. μp operates in binary digits, 0 & 1, known as bits. Represented in terms of electrical voltage. Represented in terms of electrical voltage. A group of bits called a word. A group of bits called a word. μp p with an 8 bit word is known as an 8 bit μp. μp p with an 8 bit word is known as an 8 bit μp.

μp as a CPU Figure 1.2 Figure 1.2 Figure μp is a primary components of a computer. μp is a primary components of a computer. The computer has 4 components: The computer has 4 components: Memory Memory Input Input Output Output CPU CPU CPU contains various registers to store data, the ALU to perform arithmetic and logical operations, instruction decoders, counter and control lines. CPU contains various registers to store data, the ALU to perform arithmetic and logical operations, instruction decoders, counter and control lines.

Arithmetic Logic unit Is the area of microprocessor where various computing functions are performed on data such as addition, subtraction, logic operations (AND, Or and exclusive OR). Is the area of microprocessor where various computing functions are performed on data such as addition, subtraction, logic operations (AND, Or and exclusive OR).

Register Array This area of μp identified by letters such as B, C, D, E,H and L. This area of μp identified by letters such as B, C, D, E,H and L. Used to store data temporarily during the execution of a program and are accessible to the user through instructions. Used to store data temporarily during the execution of a program and are accessible to the user through instructions.

Control Unit Provides the necessary timong and control signals to all the operations in the microcomputer. Provides the necessary timong and control signals to all the operations in the microcomputer. Control the flow of data between μp and memory and peripheral. Control the flow of data between μp and memory and peripheral.

Memory Two types of memory: Two types of memory: ROM (read only memory) ROM (read only memory) RAM ( random access memory) RAM ( random access memory)

Input/Output Used to communicate with the outside world. Used to communicate with the outside world. The I/O device is knows as peripherals. The I/O device is knows as peripherals. Input devices: Input devices: Keyboard Keyboard Switches Switches ADC ADC Output devices: Output devices: LED LED DAC DAC LCD LCD

System Bus Is a communication path between microprocessor and peripherals. Is a communication path between microprocessor and peripherals. A group of wires to carry bits. A group of wires to carry bits. Three types of bus: Three types of bus: Address bus Address bus Data bus Data bus Control bus Control bus

Cont..

High Level Language Programming languages that are intended to be machine –independent are called high level language. Programming languages that are intended to be machine –independent are called high level language. Examples: BASIC, PASCAL, C, C++ and Java. Examples: BASIC, PASCAL, C, C++ and Java. Instructions written in these langugaes are called statements rather than mnemonics. Instructions written in these langugaes are called statements rather than mnemonics. Compiler is used to convert the statements to binary languages. Compiler is used to convert the statements to binary languages.

Cont.. This translation in the machine language is called object code. This translation in the machine language is called object code. Compiler requires large memory space because the statements requires several machine codes to translate it to binary. Compiler requires large memory space because the statements requires several machine codes to translate it to binary. There is one to one correspondence between the assembly language mnemonics and the machine code. Thus assembly language are compact and use less memory space. There is one to one correspondence between the assembly language mnemonics and the machine code. Thus assembly language are compact and use less memory space. The advantage of high level language is in troubleshooting (debugging) programs. Much easier to find errors in a program, in high level language. The advantage of high level language is in troubleshooting (debugging) programs. Much easier to find errors in a program, in high level language. Application: traffic control-assembly language Application: traffic control-assembly language Application: video games, billing where memory is not a limitation- high level language Application: video games, billing where memory is not a limitation- high level language