ES C263 Microprocessor Programming and Interfacing

Slides:



Advertisements
Similar presentations
P3- Represent how data flows around a computer system
Advertisements

PC bootup Presented by: Rahul Garg (2003CS10183) Rajat Sahni (2003CS10184) Varun Gulshan(2003CS10191)
System Setup CGS2564. What Happens When You Start up a Computer? BIOS Basic Input Output System A set of programs stored in ROM Contain instructions on.
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Microprocessors. Microprocessor Buses Address Bus Address Bus One way street over which microprocessor sends an address code to memory or other external.
Genesis: from raw hardware to processes System booting sequence: how does a machine come into life.
EET 450 Chapter 2 – How hardware and Software Work Together.
CS2422 Assembly Language & System Programming November 2, 2006.
The Microprocessor-based PC System Prima Dewi Purnamasari Microprocessor Electrical Engineering Department University of Indonesia.
CP1610: Introduction to Computer Components Basic PC Components.
ASPPRATECH.
1 Input/Output. 2 Principles of I/O Hardware Some typical device, network, and data base rates.
Computer Startup Sequence Overview
Chapter 5 Basic Input/Output System (BIOS)
Basic Input Output System
Linux Booting Procedure
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
Organization of a computer: The motherboard and its components.
CPU Interfacing Memory.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Chapter 2 Instruction Addressing and Execution. Lesson plan Review some concepts in the first week First assembly program with EMU8086 Related concepts.
I T Essentials I Chapter 1 JEOPARDY HardwareConnector/CablesMemoryAcronymsPotpourri
2.1 Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
Low Level Programming Lecturer: Duncan Smeed Recap.
2003 Dominic Swayne1 Microsoft Disk Operating System and PC DOS CS-550-1: Operating Systems Fall 2003 Dominic Swayne.
Representing Numerical Data Analog Any signal that varies continuously over time Mechanical Pneumatic Hydraulic Electrical Digital Quantities are represented.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
Input ProcessOutput Data is input.The cpu decides what to do with it is output.
Problem Solving Techniques Using Pascal Allen C.-H. Wu Department of Computer Science Tsing Hua University Hsinchu, Taiwan 30043, ROC
Feb/18/2014 Mazen Alzyoud Early Term Exam Review.
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.
Copyright © Genetic Computer School 2008 Computer Systems Architecture SA 8- 0 Lesson 8 Secondary Management.
Memory Systems 3/17/ Memory Classes Main Memory Invariably comprises solid state semiconductor devices Interfaces directly with the three bus architecture.
NON STANDARD HARDWARE By the end of this lesson you will be able to: 1. Identify non standard computer hardware 2. Understand ACRONYMS used to describe.
OS Boot Sequence and File System (implication to “Boot Sector Viruses”) Department of Computer Science Southern Illinois University Edwardsville Spring,
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
BITS Pilani Pilani Campus Pawan Sharma ES C263 Microprocessor Programming and Interfacing.
Chapter 2 Instruction Addressing and Execution. Lesson plan Review some concepts in the first week First assembly program with EMU8086 Related concepts.
IT Chapter 2 Part A How Computers Work Input, process, output, and storage The operating system helps the computer perform four basic operations,
One area where in which microprocessor and microcomputers have a major impact is industrial processor control systems. Process control involves first.
Tech Level Cyber Security
Popular Microcontrollers and their Selection by Lachit Dutta
Microprocessor and Microcontroller Fundamentals
Microprocessor and Microcontroller Fundamentals
Chapter Objectives In this chapter, you will learn:
ES C263 Microprocessor Programming and Interfacing
Chapter 2: Computer-System Structures
UNIT 9 Computer architecture
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
Memory Systems 7/21/2018.
Computer Organization & Assembly Language Chapter 3
Computer Architecture
CS703 - Advanced Operating Systems
CS-401 Computer Architecture Assembly Language Programming
ECET 340 Competitive Success/snaptutorial.com
ECET 340 Education for Service-- snaptutorial.com.
ECET 340 Teaching Effectively-- snaptutorial.com.
Introduction to Microprocessors and Microcontrollers
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
Chapter One: Introduction
Device management How does the operating system manage the hardware and peripheral devices? Device Driver: Each device is attached to your computer with.
Computer Hardware Prepared by:- Mr. Pawan Kumar
Modern PC operating systems
OS Boot Sequence and File System
OS Boot Sequence and File System
Computer Electronic device Accepts data - input
Presentation transcript:

ES C263 Microprocessor Programming and Interfacing Pawan Sharma Lecture 3 10-01-2013

Last Lecture Instruction Set Architecture

Today’s Lecture Design Example PC Boot Process

Design Example

Design a microprocessor based system to control pH of a solution in a reactor tank. 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) Motorised valve

Valve Control Controlled by stepper motors 1 step is by 1.8 degrees rotation Valve opening = kP * 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.

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

pH sensor Vout pH 7 14 Voltage output 60mV/pH -420mV - +420mV

Interfacing Analog to Digital Converter 8-bit ADC I0 I7 D0 D7 Start A B C EOC OE ALE ADC 0809

Input Keys Numeric keys 0 – 9 Function keys pH, kP, enter Matrix Keypad interfacing!! - 2 four bit ports.

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

System Block Diagram CPU Memory I/O Interface Parallel I/O Serial I/O Data Address Control

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

PC Boot Process

The code performs POST (Power On Self test) Powered on CPU starts executing code located from FFFF0H – called BIOS and operates in the real mode of operation. The code performs POST (Power On Self test) After POST, CPU reads the boot sector (floppy, hard disk – sequence set in BIOS features)‏ Checks for AA55H at 07DFEH --- ( Boot signature)‏ The first sector of the bootable disk, contains the boot loader program or the MBR or grub/LILO. The BIOS loads the MBR in RAM starting at address 07C00H and executed. Loads DL (one of the CPU registers) with 00h if the boot sector was loaded from drive A 80h if the boot sector was loaded from drive C This way, the bootsector can determine which drive it was booted from. After the completion of the boot loader program, the control is transferred to the OS.