Introduction to Microprocessors Number Systems and Conversions No. 1-1 9/6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.

Slides:



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

The 68HC11 Microcontroller Minnesota State University, Mankato
Professor Michael J. Losacco CIS 1110 – Using Computers System Unit Chapter 4.
Chapter 1 Introduction to HCS12/MC9S12. Computer Hardware Organization What is a Computer? Software Hardware.
Digital Computers and Information Chapter 1 Mano and Kime.
Digital Computers and Information Chapter 1 Mano and Kime.
System Environment Part 1 The Register Level. Module Content “Systems environment” is a term used to describe the hardware and software structures which.
Microcontroller based system design
Logic Device and Memory. Tri-state Devices Tri-state logic devices have three states: logic 1, logic 0, and high impedance. A tri-state device has three.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
IT-101 Section 001 Lecture #12 Introduction to Information Technology.
Computer Organization & Assembly Language
Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI CSCI.
ECE 447: Lecture 1 Microcontroller Concepts. ECE 447: Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Memory Hierarchy.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
CPU MEMORY Powered by DeSiaMore1. CPU Its manage everything held in memory so that the machine keeps track of what is stored, where it is and what type.
Topics Introduction Hardware and Software How Computers Store Data
Computer Processing of Data
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
The CPU The Central Presentation Unit Main Memory and Addresses Address bus and Address Space Data Bus Control Bus The Instructions set Mnemonics Opcodes.
CSU0014 Assembly Languages Homepage: Textbook: Kip R. Irvine, Assembly Language for Intel-Based Computers,
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
Assembly Language for x86 Processors 7th Edition
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Computer Architecture and Organization Introduction.
November SSI Small Scale Integration Up to 12 equivalent gate circuits on a single chip Includes basic gates and flip-flops.
What is a computer ?  A computer is an electronic device that can accept data and instruction, process them or store them for later retrieval, and sometimes.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.
CPU Internal memory I/O interface circuit System bus
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
CADCAM HARDWARE.  The computing system in operation can be compared to a human being in terms of its operating characteristics.
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
CIM101 : Introduction to computer Lecture 3 Memory.
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
General Concepts of Computer Organization Overview of Microcomputer.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Information Technology Basic Computer Architecture Adnan Khalid.
Computer Organization & Assembly Language © by DR. M. Amer.
 Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics.
Primary Storage Primary storage is the storage that is directly available to the CPU. It is also known as: Main Memory Main Memory Direct Access Storage.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Computer operation is of how the different parts of a computer system work together to perform a task.
Execution Architecture MTT CPU08 Core M CPU08 INTRODUCTION.
Chapter 2.
Architectural Considerations A Review of Some Architectural Concepts.
STATUS REGISTER  It is a group of flip-flops. But it is not used to store data.  Each bit in the status register is used to indicate a particular condition.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
CS 1410 Intro to Computer Tecnology Computer Hardware1.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Vadodara Institute of Engineering Subject: Microcontroller interfacing Prepared by: Bipin Malani ( ) Vishwa Pandit ( ) Branch : Electronics.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
Chapter 2 content Basic organization of computer What is motherboard
COMP2121: Microprocessors and Interfacing
Introduction to Microcontroller Technology
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
Introduction to Microprocessors and Microcontrollers
EE Embedded Systems Fall 2015
Chapter One: Introduction
CNET 315 Microprocessors & Assembly Language
Presentation transcript:

Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller

Introduction to Microprocessors Number Systems and Conversions No /6/00 What is a computer ? Software Hardware Computer Hardware Organization Control unit Arithmetic logic unit Registers common bus memory program storage data storage output unit input unit Figure 1.1 Computer hardware organization

Introduction to Microprocessors Number Systems and Conversions No /6/00 The processor Registers -- storage locations in the processor Arithmetic logic unit Control unit program counter keeps track of the address of the next instruction to be executed status register flags the instruction execution result The microprocessor A processor implemented on a very large scale integration (VLSI) chip Peripheral chips are needed to construct a product The Microcontroller The processor and peripheral functions implemented on one VLSI chip

Introduction to Microprocessors Number Systems and Conversions No /6/00 Features of the 68HC11A8 microcontroller -8-bit CPU -256 bytes SRAM -512 bytes EEPROM -8 KB ROM -3 input capture channels -5 output compare functions -one 8-bit pulse accumulator -one serial communication interface (SCI) -one serial peripheral interface (SPI) -real-time interrupt (RTI) circuit -8-channel 8-bit A/D converter -computer operate properly (COP) watchdog system

Introduction to Microprocessors Number Systems and Conversions No /6/00

Introduction to Microprocessors Number Systems and Conversions No /6/00 Examples of microcontroller applications -Displays -Printers -Keyboards -Modems -Charge card phones -Refrigerators -Washing machines -Microwave ovens -Automobile engine fuel injection -Fax machines -Motor speed control -etc.

Introduction to Microprocessors Number Systems and Conversions No /6/00 Semiconductor memory Random-access memory (RAM): same amount of time is required to access any location on the same chip Read-only memory (ROM): can only be read but not written by the processor ---- Random-access memory - Dynamic random-access memory (DRAM): periodic refresh is required to maintain the contents of a DRAM chip - Static random-access memory (SRAM): no periodic refresh is required Read-only memory - Mask-programmed read-only memory (MROM): programmed when being manufactured - Programmable read-only memory (PROM): the memory chip can be programmed by the end user

Introduction to Microprocessors Number Systems and Conversions No /6/00 - Erasable programmable ROM (EPROM) 1. electrically programmable many times 2. erased by ultraviolet light (through a window) 3. erasable in bulk (whole chip in one erasure operation) - Electrically erasable programmable ROM (EEPROM) 1. electrically programmable many times 2. electrically erasable many times 3. can be erased one location, one row, or whole chip in one operation - Flash memory 1. electrically programmable many times 2. electrically erasable many times 3. can only be erased in bulk

Introduction to Microprocessors Number Systems and Conversions No /6/00 Computer software -Computer programs are known as software -A program is a sequence of instructions Machine instruction -A sequence of binary digits which can be executed by the processor -Hard to understand for human being Assembly language -Defined by assembly instructions -An assembly instruction is a mnemonic representation of a machine instruction -Assembly programs must be translated before it can be executed -- translated by an assembler

Introduction to Microprocessors Number Systems and Conversions No /6/00 High-level language -Syntax of a high-level language is similar to English -A translator is required to translate the program written in a high-level language -- done by a compiler Source code -A program written in assembly or high-level language Object code -The output of an assembler or compiler

Introduction to Microprocessors Number Systems and Conversions No /6/00

Introduction to Microprocessors Number Systems and Conversions No /6/00 Memory Addressing Memory consists of addressable locations A memory location has 2 components: address and contents Data transfer between CPU and memory involves address bus and data bus CPU memory address bus lines data bus lines Figure 1.5 Data transfer between CPU and memory address contents

Introduction to Microprocessors Number Systems and Conversions No /6/00 NUMBER SYSTEMS, CONVERSIONS and CODES

Introduction to Microprocessors Number Systems and Conversions No /6/00 Goals Upon Completion Understand Positional Number Systems Convert from one base to another Add, Subtract using Binary Numbers

Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter Overview Binary Number Representation Sign & Magnitude Ones Complement Twos Complement Codes Binary Addition Using Ones and Twos Complement Using BCD Nines and Tens Complement Binary Subtraction

Introduction to Microprocessors Number Systems and Conversions No /6/00 Binary Weights In Base 10 the weights in positional notation are: a 0 is units weight a 1 is 10 units weight a 2 is 100 units weight or 10 * a 1 weight... In Base 2 the weights in positional notation are: a 0 is units weight a 1 is 2 units weight a 2 is 4 units weight or 2 * a 1 weight...

Introduction to Microprocessors Number Systems and Conversions No /6/00 Positional Notation BASE = 9 x x x x x BASE = 1x x x x x x2 -2 = /2 + 1/4 = 11 3/4 = 11.75

Introduction to Microprocessors Number Systems and Conversions No /6/00 Conversion EXAMPLE ( repeated division) Convert to binary 2  53 divided by 2 leaves 26 2’s with 1 leftover which forms least significant bit 2  26remainder = 1 = a 0 2  13remainder = 0 = a 1 2  6remainder = 1 = a 2 2  3remainder = 0 = a 3 2  1remainder = 1 = a 4 0 remainder = 1 = a 5 most significant digit 53 base 10 equals = 53

Introduction to Microprocessors Number Systems and Conversions No /6/00 EXAMPLE (fractional portion requires repeated multiplication) Convert to binary.625 X 2 = a -1 = 1 remainder =.250 after 1.0 subtraction ms digit.250 X 2 = a -2 = 0 remainder = x 2 = a -3 = 1 remainder =.000 Finished - No further multiplication possible! = =

Introduction to Microprocessors Number Systems and Conversions No /6/00 EXAMPLE Convert to binary.700 X 2 = a -1 = 1 remainder = X 2 = a -2 = 0 remainder = X 2 = a -3 = 1 remainder = X 2 = a -4 = 1 remainder = X 2 = a -5 = 0 remainder = X 2 = a -6 = 0 remainder =.800 Process starts to repeat = (base 2)

Introduction to Microprocessors Number Systems and Conversions No /6/00 HEXADECIMAL NUMBERS Code WRITING one’s and zero’s can be error prone when dealing with large numbers. IBM came up with the following method of dealing with these numbers. BASE 16 with digits in base 10 are represented by the following notation in Hexadecimal = = = = = = = = = = 2 10 A 16 = = = = 3 10 B 16 = = = = 4 10 C 16 = = = = 5 10 D 16 = = = = 6 10 E 16 = = = = 7 10 F 16 = = 15 10