Microprocessors.

Slides:



Advertisements
Similar presentations
Microprocessors A Beginning.
Advertisements

Microprocessors and Interfacing
Parul Polytechnic Institute
Programming 68HC11.
ARITHMETIC LOGIC SHIFT UNIT
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Processor Function Topic 3.
Microprocessor and Microcontroller
Processor System Architecture
TK 2633 Microprocessor & Interfacing
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Memory - Registers Instruction Sets
Assembly Language for Intel-Based Computers Chapter 2: IA-32 Processor Architecture Kip Irvine.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
Gursharan Singh Tatla Block Diagram of Intel 8086 Gursharan Singh Tatla 19-Apr-17.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
Rabel Talpur:12BME#025.  40-pin chip  Developed by Motorola in 1975  16 address lines and 8 data lines  Used only +5V.
Lecture 8 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
1 Microprocessor-based systems Course 2 General structure of a computer.
MICROCOMPUTER ARCHITECTURE 1.  2.1 Basic Blocks of a Microcomputer  2.2 Typical Microcomputer Architecture  2.3 Single-Chip Microprocessor  2.4 Program.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
Lecture 14 Today’s topics MARIE Architecture Registers Buses
Microprocessor. Interrupts The processor has 5 interrupts. CALL instruction (3 byte instruction). The processor calls the subroutine, address of which.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Z80 Overview internal architecture and major elements of the Z80 CPU.
1 Introduction to Microcontroller Microcontroller Fundamentals & Programming.
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
Dale & Lewis Chapter 5 Computing components
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Overview von Neumann Architecture Computer component Computer function
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Execution Architecture MTT CPU08 Core M CPU08 INTRODUCTION.
CS61C L20 Datapath © UC Regents 1 Microprocessor James Tan Adapted from D. Patterson’s CS61C Copyright 2000.
ECE 447: Lecture 11 Introduction to Programming in Assembly Language.
An Adder A Subtractor. A and B are the inputs of the adder/ subtractor R is the output of the adder/ subtractor F is the control to tell it to add or.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
The 8085 Microprocessor Architecture. What 8085 meant for? 80 - year of invention bit processor 5 - uses +5V for power.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
George W. Woodruff School of Mechanical Engineering, Georgia Tech ME4447/6405 ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction.
Lec. 10 Assembly Programming Dr. Tamer Samy Gaafar Microprocessors.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Block diagram of a computer system Basic components of a computer system using block diagrams: Cpu Memory Input and output unit Evolution of microprocessor.
Intel 8086 MICROPROCESSOR ARCHITECTURE
8086 Microprocessor J Srinivasa Rao.
Gandhinagar Institute of Technology
8085 Microprocessor Architecture
Control Unit Lecture 6.
Gunjeet Kaur Dronacharya Group of institutions
Introduction to microprocessor (Continued) Unit 1 Lecture 2
ECE 3430 – Intro to Microcomputer Systems
Lecture on Microcomputer
Introduction of microprocessor
Microcomputer Programming
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Number Representations and Basic Processor Architecture
MICROCOMPUTER ARCHITECTURE
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
Sequencing, Selection, and Loops in Machine Language
Md. Mojahidul Islam Lecturer Dept. of Computer Science & Engineering
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Register sets The register section/array consists completely of circuitry used to temporarily store data or program codes until they are sent to the.
Computer Operation 6/22/2019.
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
ME 4447/6405 Microprocessor Control of Manufacturing Systems and
Presentation transcript:

Microprocessors

Functions of 68HC11 Microprocessor Providing tuning and control signal for all elements of microcomputer Fetching instruction and data from memory Transferring data from memory Decoding instruction Performing arithmetic and logic operations called for by instructions Responding to I/O generated control signals such as reset and interrupt

68 HC MPU 5 16 bit registers 2 8 bit accumulators 8 bit condition code registers Control bus signals are expandable

Timing and control section Control Bus signal AS signal E clock Reset

Functions of reset Fetches the content of ROM address FFFE and loads into PCH Fetches the content of ROM address FFFF and load it into PC1 so that (PC) is now 2AC6 Begin fetching and executing instruction at address 2AC6

Microprocessor common function Initialize MPU registers Initialize I/O device control registers Perform test on system RAM Check status of I/O devices Send messages to output devices

Instruction register When the MPU fetches an instruction word from memory it sends to the IR

Program Counter (PC) Contains in the memory address of the next instruction code that the MPU is to fetch.

Accumulator Register that takes part in most of the operations performed by the ALU It is also the register in which the result are being placed after most ALU operations The source of the operand and destination of the result

Data Address Register Memory address register Address latching register Used when executing ADD instruction

General Purpose register GPR the accumulators can perform the function of a general purpose register in many programming situations.

Common GPR instruction access codes Load GP from memory [M] > [GP] Store GP in memory [GP] > [M] Transfer contents of one GP register to another GP register : [GP1] > [GP2] Increment GP by 1: [GP +1 ] > [GP] Decrement GP by 1: [GP-1] > [GP]

If [GP] not = 0 branch back to 2 This set [GP] = COUNT Start 1 Load [GP] with value = COUNT Fron the memory Program Loop 2 Instruction Sequence to be Executed a number of times = COUNT 3 Decrement [GP] [GP -1] > [GP] If [GP] not = 0 branch back to 2 4 Is [GP] = 0? Yes 5 If [GP] =0 go to the next instruction in sequence Next portion of program

Index register 68HC11 has two 16 bit index register (index register Y and index register X) Similar to general purpose register Its operation is called index addressing It holds address base C45016 for X and Y index register

Offset instruction illustration for register X Address Instruction code Mnemonic Description C000 A6 LDAA $04,X Load accumulator A from address [X]+04. C001 04 Offset byte Effective Address = offset + [X] = 04 + C450 = C454

Y register instruction illustration Address Instruction code Mnemonic Description C000 18 LDAA $04,Y Load accumulator A A6 from address [Y]+04. C001 04 Offset byte Effective Address = offset + [Y] = 04 + C450 = C454

Important process during the operation Accumulator A and B are cleared to zero before any ADD operation occurs Index register [X] is initially loaded with the number 2067 Accumulator B is initially loaded with 07 which the number of memory locations to be added. ACCB is being used to count down the number of times that blocks 5-8 are executed Blocks 5-8 are executed a total of seven times before ACCB is decrement to 00 program goes to block 9 to store the final sum in memory location 2068 The ADD operation (block 5) are executed using data from different address each time starting with 2067 and ending with 2061.this means the data is now loaded to the accumulator

Start 1 Clear [ACCA] 2 Clear [ACCB] 3 Load [X] with Value 2067 4 Load [ACCB] with value 07 Add data stored at address [X] +00 to [ACAA] 5 Decrement [X] 6 9 7 Decrement ACCB No 10 Store [ACCA] in memory location 2068 Is [ACCB]=0? HALT 8

Condition Code register Consist of individual bits Each bits is called Flags This is the 68HC11code register b7 b6 b5 b4 b3 b2 b1 b0 S X H I N Z V C

Condition Code functions C – Carry flag reflects the carry status of arithmetic operation. V – the overflow use to indicate overflow whenever signed numbers are being added or subtracted Z – zero flag is automatically set to 1 N – negative used to indicate any sign result of any arithmetic data manipulation I- interrupt mask flag is used to indicate effects on the IRQ H – Half carry flag is change only by addition instruction X – X interrupt mask used to indicate not XIRQ S – stop disable flag is used to prevent the stop instruction

Conditional branching It examine the value of the zero flag If zero flag is = 0 The next instruction will be taken at a normal sequence If zero flag is = 1 The program will branch into new address for the next instruction If carry clear (BCC) or set booth will examine the carry flag

Two operands operators Add Subtract

Accumulator and memory instructions

Load, Store and transfer instruction

Arithmetic operation instruction

Continuation..

Multiply and divide instruction

Logical operation instruction

Shift and rotate instructions

Stack and index register instruction

Condition code register instruction

Branch instructions