EC4205 Microprocessor and Microcontroller

Similar documents
EC4205 Microprocessor and Microcontroller

Computer Architecture and Organization:

Computer Architecture and Organization: L08: Design Control Lines

ICS312 Machine-level and Systems Programming

Unit-6 PROGRAMMABLE INTERRUPT CONTROLLERS 8259A-PROGRAMMABLE INTERRUPT CONTROLLER (PIC) INTRODUCTION

Data output signals May or may not be same a input signals

Lecture 18. BUS and MEMORY

Lecture Topics. Announcements. Today: Pipelined Processors (P&H ) Next: continued. Milestone #4 (due 2/23) Milestone #5 (due 3/2)

RISC Central Processing Unit

CS521 CSE IITG 11/23/2012

Data Sheet. HCTL-2000 Quadrature Decoder/Counter Interface ICs HCTL-2000, HCTL-2016, HCTL-2020

arxiv:physics/ v1 [physics.ed-ph] 19 Oct 2004

ECEN 449: Microprocessor System Design Department of Electrical and Computer Engineering Texas A&M University

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

Understanding Engineers #2

CS61c: Introduction to Synchronous Digital Systems

EE 308 Spring 2006 FINAL PROJECT: INTERFACING AND MOTOR CONTROL WEEK 1 PORT EXPANSION FOR THE MC9S12

CMP 301B Computer Architecture. Appendix C

Lecture 02: Digital Logic Review

CS/ECE/EEE/INSTR F241 MICROPROCESSOR PROGRAMMING & INTERFACING MODULE 8: I/O INTERFACING QUESTIONS ANUPAMA KR BITS, PILANI KK BIRLA GOA CAMPUS

-SQA- SCOTTISH QUALIFICATIONS AUTHORITY HIGHER NATIONAL UNIT SPECIFICATION GENERAL INFORMATION

a8259 Features General Description Programmable Interrupt Controller

Topics. Low Power Techniques. Based on Penn State CSE477 Lecture Notes 2002 M.J. Irwin and adapted from Digital Integrated Circuits 2002 J.

GATE Online Free Material

Controller Implementation--Part I. Cascading Edge-triggered Flip-Flops

8253 functions ( General overview )

Microprocessor & Interfacing Lecture Programmable Interval Timer

MICROPROCESSORS AND MICROCONTROLLER 1

Pipelined Beta. Handouts: Lecture Slides. Where are the registers? Spring /10/01. L16 Pipelined Beta 1


Computer Science 246. Advanced Computer Architecture. Spring 2010 Harvard University. Instructor: Prof. David Brooks

ELCN100 Electronic Lab. Instruments and Measurements Spring Lecture 01: Introduction

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

Digital Integrated CircuitDesign

dspic30f Quadrature Encoder Interface Module

Instructor: Dr. Mainak Chaudhuri. Instructor: Dr. S. K. Aggarwal. Instructor: Dr. Rajat Moona

Option 1: A programmable Digital (FIR) Filter

CS/EE Homework 9 Solutions

Chapter 3 Digital Logic Structures

6.S084 Tutorial Problems L19 Control Hazards in Pipelined Processors

DS1267B Dual Digital Potentiometer

B.Sc. Electronics Semester-V Microprocessors and Microcontroller Paper code: BSE-21

VLSI Design 11. Sequential Elements

DS1868B Dual Digital Potentiometer

Design and Implementation of High Speed Carry Select Adder

INTERFACING ADC/DAC. DAC INTERFACE SECTION: DAC 0800 is a monolithic, high speed, current output D/A Converter. Its unique features are:

CS 110 Computer Architecture Lecture 11: Pipelining

NEX-PCI32SWL & NEX-PCI3264SWL

Micro Controller Based Ac Power Controller

EE-301-F COMMUNICATION Engg EE-303-F ELECTRONIC MEASUREMENT & INSTRUMENTATION (EL,EI,IC,EE,EEE,AEI)

FPGA Circuits. na A simple FPGA model. nfull-adder realization

Lab 6. Binary Counter

EMBEDDED SYSTEM DESIGN FOR A DIGITAL MULTIMETER USING MOTOROLA HCS12 MICROCONTROLLER

Imaging serial interface ROM

Freescale Semiconductor, I SECTION 11 TIME PROCESSOR UNIT

2014 Paper E2.1: Digital Electronics II

Department Computer Science and Engineering IIT Kanpur

Propagation Delay, Circuit Timing & Adder Design. ECE 152A Winter 2012

Propagation Delay, Circuit Timing & Adder Design

LECTURE 8. Pipelining: Datapath and Control

Low Power Design Part I Introduction and VHDL design. Ricardo Santos LSCAD/FACOM/UFMS

EECS150 - Digital Design Lecture 2 - Synchronous Digital Systems Review Part 1. Outline

Lecture Topics. Announcements. Today: Memory Management (Stallings, chapter ) Next: continued. Self-Study Exercise #6. Project #4 (due 10/11)

Formal Hardware Verification: Theory Meets Practice

IES Digital Mock Test

Combinational Logic Design CH002

Parallel in parallel out universal shift register

Computer Arithmetic (2)

ME 4447 / ME 6405 MICROPROCESSOR CONTROL OF MANUFACTURING SYSTEMS / INTRODUCTION TO MECHATRONICS

CHAPTER 4 HARDWARE DEVELOPMENT OF STATCOM

CS 61C: Great Ideas in Computer Architecture Finite State Machines, Functional Units

Low Power Microphone Acquisition and Processing for Always-on Applications Based on Microcontrollers

DM74ALS652 Octal 3-STATE Bus Transceiver and Register

DS1802 Dual Audio Taper Potentiometer With Pushbutton Control

Lecture 1 Introduction to Electronic

EECS 470 Lecture 5. Intro to Dynamic Scheduling (Scoreboarding) Fall 2018 Jon Beaumont

CSE502: Computer Architecture CSE 502: Computer Architecture

Pipelined Processor Design

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

Implementation of dual stack technique for reducing leakage and dynamic power

Application Note, V 1.0, Feb AP C16xx. Timing, Reading the AC Characteristics. Microcontrollers. Never stop thinking.

Seminar Report Railway Gate Control 1. INTRODUCTION

Lecture 8: Memory Peripherals

ICS Low Skew Fan Out Buffers. Integrated Circuit Systems, Inc. General Description. Pin Configuration. Block Diagram. 28-Pin SSOP & TSSOP

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

Lecture 16. Complementary metal oxide semiconductor (CMOS) CMOS 1-1

CMOS Process Variations: A Critical Operation Point Hypothesis

Design and Simulation of Convolution Using Booth Encoded Wallace Tree Multiplier

DESIGN OF 32-BIT ARITHMETIC LOGIC UNIT (ALU) USING VHDL Saif Abbas* 1, Bhavya Chaturvedi 1, Rituraj Akhauri 1, Rupali Singh 2

EITF35: Introduction to Structured VLSI Design

Mohit Arora. The Art of Hardware Architecture. Design Methods and Techniques. for Digital Circuits. Springer

Lecture #4 Outline. Announcements Project Proposal. AVR Processor Resources

CZ3001 ADVANCED COMPUTER ARCHITECTURE

"SIGNAL IDENTIFICATION USING A MICROPROCESSOR BASED PHASE LOCKED LOOP SYSTEM"

FLEX 10K. Features... Embedded Programmable Logic Family. Preliminary Information

Low Power and High Performance ALU using Dual Mode Transmission Gate Diffusion Input (DMTGDI)

Low Power Design of Successive Approximation Registers

EE : ELECTRICAL ENGINEERING Module 8 : Analog and Digital Electronics INDEX

USING MICROPROCESSORS FOR TELEPHONE TUAFFIC MONITORING

EECS 427 Lecture 21: Design for Test (DFT) Reminders

Transcription:

EC4205 Microprocessor and Microcontroller Webcast link: https://sites.google.com/a/bitmesra.ac.in/aminulislam/home All announcement made through webpage: check back often Students are welcome outside the class (right after class) Dr. A. Islam Dept. of ECE BIT, Mesra, Ranchi Prepared and presented by Dr. A. Islam 1

EC4205 Lecture notes based on material From me, Prof. (Dr.) R. Sukesh Kumar and following text books: 1. Digital Computer Electronics, 2/e, by A. P. Malvino. 2. Microprocessor Architecture, Programming and Applications with 8085, by R. S. Gaonkar. 3. Microprocessor and Interfacing, Programming of Hardware, by D. Hall. 4. Microprocessor and Peripherals, by S. P. Chowdhury and S. Chowdhury. 5. INTEL 8086/8088 Microprocessor, Architecture, Programming, Design and Interfacing, 3/e, by B. S. Chhabra. 6. Microprocessor, Microcomputer and their Applications, 2/e, by A, K. Mukhopadhyay. 7. The Intel Microprocessors 8086/888, 80186/80188, 80286, 80386, 80486, Pentium and Pentium Pro processor architecture, programming and interfacing, 4/e, by B. B. Brey. 8. Microprocessors with applications in process control, by SI Ahson. 9. Microprocessors theory and applications: Intel and Motorola, by M. Rafiquzzaman. Use the material without violating copyright act involved with original books. Prepared and presented by Dr. A. Islam 2

Module-I: Outline 1. Revision of logic circuits with emphasis on control lines 2. SAP concepts with stress on timing diagrams 3. Microinstructions 4. Microprogramming 5. Variable machine cycle 6. Architecture of 8085 Processor 7. Functions of all signals 8. Bus concepts 9. Multiplexed and De-multiplexed Bus 10.Minimum system Prepared and presented by Dr. A. Islam 3

Fig. 10.3 (Malvino) LDA Routine (a) T4 state; (b) T5 state (c) T6 state Prepared and presented by Dr. A. Islam 4

T states T4 T5 LDA routine (Execution cycle) Active control signals E I bar L M bar CE bar L A bar Active parts of SAP-1 MAR IR CON MAR RAM IR CON T6 None None NOP A Operation takes place As low EI bar enables tristated o/p buffer of IR, its content (address field out of the two nibbles) is outputted onto W bus. Low L M bar makes MAR enabled to be loaded. when +ve CLK edge hits in the middle of T4 state MAR gets loaded with the address available on the W bus. In T5 state CE bar is active (low). CE bar enables tristated o/p of RAM making addressed RAM content available onto W bus. As L A bar is active (low), it makes A enabled to be loaded with W bus content, i.e. addressed RAM data is transferred to accumulator on +ve CLK edge. Prepared and presented by Dr. A. Islam 5

ADD routine (Execution cycle) T states T4 T5 T6 Active control signals E I bar L M bar CE bar L B bar L A bar E U Active parts SAP-1 MAR IR CON MAR RAM IR CON B IR CON A B of Operation takes place During T4 state the instruction field goes to controller-sequencer. As low EI bar enables tristated o/p buffer of IR, its content (address field out of the two fields) is outputted onto W bus. Low L M bar makes MAR enabled to be loaded. when +ve CLK edge hits in the middle of T4 state MAR gets loaded with the address available on the W bus. In T5 state CE bar is active (low). CE bar enables tristated o/p of RAM making addressed RAM content available onto W bus. As L B bar is active, it makes B enabled to be loaded with W bus content, i.e. addressed RAM data is transferred to accumulator on +ve CLK edge. The high E U enables tristated o/p buffer of adder/sub making result available onto W and as L A bar is active (low), it makes A enabled to be loaded with W bus content (i.e. result gets loaded into accumulator and as usual loading takes place midway through the state when the positive clock edge hits the CLK i/p of A register). SUB routine is similar to ADD routine. Active control signals & parts are same except that during T6 state S U goes high making subtraction possible in stead of addition. Prepared and presented by Dr. A. Islam 6

Fig. 10.5 (Malvino) Fetch and LDA timing diagram Prepared and presented by Dr. A. Islam 7

The setup and propagation delay prevent racing of accumulator during the final execution (T6 state). When the +ve CLK edge hits in Fig. 10.6(c) (Malvino), the accumulator contents change, forcing the adder/subtracter contents to change. The new contents return to the accumulator input, but the new content don t get there until two propagation delays after the +ve CLK edge (one for the accumulator and one for the adder/subtracter). By then it is too late to change the accumulator. This prevents the accumulator racing (loading more than once on the same CLK edge). Fig. 10.6(Malvino) ADD and SUB routines: (a) T4 state; (b) T5 state; (c) T6 state. Prepared and presented by Dr. A. Islam 8

Address state of Fetch cycle : T1: active control signals are E P and L M bar Increment state of Fetch cycle : T2: active control signals are C P Memory state of Fetch cycle : T3: active control signals are C E bar and L E bar Execution cycle of ADD/SUB routine: T4: active control signals are L M bar and E I bar Execution cycle of ADD/SUB routine: T5: active control signals are C E bar and L B bar Execution cycle of ADD/SUB routine: T6: active control signals are L A bar and E U (In addition to these, the control signal S U will be high in case of SUB routine during T6 state). Fig. 10.7(Malvino) Fetch and ADD timing diagram Prepared and presented by Dr. A. Islam 9

Prepared and presented by Dr. A. Islam 10

During T4 state the instruction field goes to the controller-sequencer for decoding. Then controllersequencer sends out the control word needed to load the accumulator contents into the output register. Execution cycle of OUT routine: T4: active control signals are L O bar and E A. E A makes tristated o/p buffer of A register enabled thereby placing its content onto the W bus. L O bar enables output register to be loaded with the content of W bus when the +ve CLK edge hits the o/p register. Timing diagram includes the fetch cycle also which is same for all instructions. T5 and T6 states of OUT instructions are NOPs. HLT: does not require a control word because no registers are involved in the execution of an HLT instruction. When it is executed, the instruction field containing 1111 goes to controller-sequencer which stops the computer by turning off the clock circuitry. Fig. 10.8(Malvino) T4 of OUT instruction Prepared and presented by Dr. A. Islam 11