BITS Pilani Pilani Campus Pawan Sharma 08-01-2013 ES C263 Microprocessor Programming and Interfacing.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Parul Polytechnic Institute
Dr. Rabie A. Ramadan Al-Azhar University Lecture 3
PCEL4303 MICROPROCESSOR & MICRO CONTROLLERS MODULE - I (10 hours) Microprocessor Architecture: Microprocessor and Microcomputer Architecture, Pins & Signals,
Programmable Interval Timer
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Microprocessor and Microcontroller
1 VR BIT MICROPROCESSOR โดย นางสาว พิลาวัณย์ พลับรู้การ นางสาว เพ็ญพรรณ อัศวนพเกียรติ
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 Hardware and Software Architecture Chapter 2 n The Intel Processor Architecture n History of PC Memory Usage (Real Mode)
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
Computer Hardware Processing and Internal Memory.
Chapter 1 Microprocessor-based systems EE314 Microprocessor Systems Based on "An Introduction to the Intel Family of Microprocessors" by James L. Antonakos.
ASPPRATECH.
Microcontroller based system design
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
Computer Organization & Assembly Language
1 Sensors and Measurements Penderia & Pengukuran ENT 164 Signal Processing Elements Hema C.R. School of Mechatronics Engineering Northern Malaysia University.
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
Dr. Rabie A. Ramadan Al-Azhar University Lecture 6
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
Computing and the Web Computer Hardware Components.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Module 8 Part B Adapted By and Prepared James Tan © 2001.
Computer Organization and Design Computer Abstractions and Technology
Cis303a_chapt04.ppt Chapter 4 Processor Technology and Architecture Internal Components CPU Operation (internal components) Control Unit Move data and.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Introduction to Computer Engineering CS/ECE 252, Fall 2009 Prof. Mark D. Hill Computer Sciences Department University of Wisconsin – Madison.
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture And Organization UNIT-II General System Architecture.
Computer Organization & Assembly Language © by DR. M. Amer.
Introduction to Microprocessors
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
1 chapter 1 Computer Architecture and Design ECE4480/5480 Computer Architecture and Design Department of Electrical and Computer Engineering University.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
I/O Interface. INTRO TO I/O INTERFACE I/O instructions (IN, INS, OUT, and OUTS) are explained. Also isolated (direct or I/O mapped I/O) and memory-mapped.
Ee314 Microprocessor Systems Dr. Mircea DABACAN Electrical Engineering & Computer Science Dept., Washington State University Office: EE/ME 504 Phone:
بسم الله الرحمن الرحيم MEMORY AND I/O.
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.
Capability of processor determine the capability of the computer system. Therefore, processor is the key element or heart of a computer system. Other.
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.
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
A computer consists of five functionally independent main parts.
The 8085A is a general-purpose microprocessor with low hardware overhead requirements. Within the 8085A are contained the functions of clock generation,
Introduction to Microcontroller Technology
ES C263 Microprocessor Programming and Interfacing
ES C263 Microprocessor Programming and Interfacing
Microprocessor Systems Design I
UNIT – Microcontroller.
Introduction of microprocessor
Dr. Michael Nasief Lecture 2
Introduction to Computer Engineering
CS703 - Advanced Operating Systems
Introduction to Microprocessors and Microcontrollers
Number Representations and Basic Processor Architecture
Microprocessor & Assembly Language
What is Computer Architecture?
COMPUTER ORGANIZATION AND ARCHITECTURE
Introduction to Computer Engineering
Introduction to Computer Engineering
Introduction to Computer Engineering
Chapter 4 The Von Neumann Model
Presentation transcript:

BITS Pilani Pilani Campus Pawan Sharma ES C263 Microprocessor Programming and Interfacing

BITS Pilani, Pilani Campus  Course Overview  Microprocessor based systems  Evolution of microprocessors  Moore’s law Last Lecture

BITS Pilani, Pilani Campus  Instruction Set Architecture  Design Example Today’s Lecture

BITS Pilani, Pilani Campus The Personal Computer Processor (8086 through Pentium System bus (data, address & control signals) System ROM Interrupt logic (8259) Keyboard logic (8255)DMA Controller (8237) Timer logic (8253) Coprocessor (8087 trough KB DRAM Expansion logic Keyboard Speaker Extension slots Video card Disk controller Serial port...

BITS Pilani, Pilani Campus  A clock signal is a particular type of signal that oscillates between a high and a low state and is utilized like a metronome (device that produces regular, metrical ticks (beats, clicks) to coordinate actions of circuits.  The clock rate or frequency of a CPU is determined by the frequency of the clock signal generated from an oscillator crystal. Clock

BITS Pilani, Pilani Campus  An instruction set architecture is the part of the computer architecture related to programming, including the native data types, instructions, registers, addressing modes, memory architecture, interrupt and execution and exception handling and external I/O.  ISA refers to the actual set of programmer visible instruction set.  Serves as a boundary between the hardware and software. Instruction Set Architecture (ISA)‏

BITS Pilani, Pilani Campus Class of ISA: nearly all ISAs are general purpose register architectures, where operands are either memory or register locations. Register memory (8086): can access memory as part of many instructions Load-store(ARM, MIPS): can access memory with only load and store instructions Memory Addressing: Byte addressing to access memory locations— aligned or un-aligned. Addressing Modes: specify the address of register, constant operands and memory objects-- register, immediate, displacement. Types and sizes of operands: supports operand sizes of 8 bit, 16 bit, 32 bit. Operations: data transfer, arithmetic, logic, control. Control flow instructions: support conditional branches, unconditional jumps, procedure calls and returns. Encoding an ISA: fixed length or variable length. Seven dimensions of ISA

BITS Pilani, Pilani Campus

Microprocessor -Fetches Instruction -Executes Instruction

BITS Pilani, Pilani Campus Computer Hardware Organization Control unit Arithmetic logic unit Registers common bus memory program storage data storage output unit input unit

BITS Pilani, Pilani Campus CPU Data Bus Control signals Add Bus

BITS Pilani, Pilani Campus Memory Add Bus Data Bus Read Write Memory – Registers to hold bits

BITS Pilani, Pilani Campus 4 bits Ex : 8 Registers Add lines : 3 (Unidirectional)‏ Data lines : 4 (Bidirectional)‏

BITS Pilani, Pilani Campus

RAM

BITS Pilani, Pilani Campus Design Example

BITS Pilani, Pilani Campus User enters desired pH (0-14) and controller gain Reactor tank is provided with three pH sensors, to compute the average pH. Reactor tank has three inputs. (acid flow, base flow effluent discharged from factory  controlled by valves) Design a microprocessor based system to control pH of a solution in a reactor tank. Motorised valve

BITS Pilani, Pilani Campus Valve Control - Controlled by stepper motors - 1 step is by 1.8 degrees rotation Valve opening = k P * error Where error = desired pH – measured pH. Error positive- close fully acid valve and open base valve accordingly Error negative- close fully base valve and open acid valve accordingly. 0 – 360 degrees correspond to 0 to 200 steps.

BITS Pilani, Pilani Campus Stepper Motor sequence: A B C D CW ACW Use a 4- bit port + driver (nearly 1 A current)

BITS Pilani, Pilani Campus pH sensor Vout pH Voltage output 60mV/pH -420mV mV

BITS Pilani, Pilani Campus Interfacing Analog to Digital Converter D0 D7 I0 I7 Start EOC 8-bit ADC ADC 0809 ABCABC ALE OE

BITS Pilani, Pilani Campus Input Keys - Numeric keys 0 – 9 - Function keys pH, k P, enter Matrix Keypad interfacing!! - 2 four bit ports.

BITS Pilani, Pilani Campus  Two digit Display  Two seven segment display devices to display pH  Memory Interfacing  ROM (4KB) - FF000H – FFFFFH - SRAM (4K) H – 00FFFH Display Device and storage

BITS Pilani, Pilani Campus CPU MemoryI/O Interface Parallel I/O Serial I/O Data Address Control System Block Diagram

BITS Pilani, Pilani Campus Method of Approach  Identify input and output devices  Memory requirements  Suitable memory and I/O interfacing  Assembly Language Programming  Assumptions made