8051 Microcontrollers an Applications Based Introduction.Pdf

Total Page:16

File Type:pdf, Size:1020Kb

8051 Microcontrollers an Applications Based Introduction.Pdf //INTEGRAS/ELS/PAGINATION/ELSEVIER UK/MAB/3B2/FINALS_03-11-03/PRELIM.3D – 1 – [1–8/8] 28.11.2003 4:49PM 8051 Microcontrollers An Applications-Based Introduction David Calcutt Fred Cowan Hassan Parchizadeh AMSTERDAM • BOSTON • HEIDELBERG • LONDON NEW YORK • OXFORD • PARIS • SAN DIEGO SAN FRANCISCO • SINGAPORE • SYDNEY • TOKYO Newnes is an imprint of Elsevier //INTEGRAS/ELS/PAGINATION/ELSEVIER UK/MAB/3B2/FINALS_03-11-03/PRELIM.3D – 2 – [1–8/8] 28.11.2003 4:49PM Newnes An imprint of Elsevier Linacre House, Jordan Hill, Oxford OX2 8DP 200 Wheeler Road, Burlington, MA 01803 First published 2004 Copyright Ó 2004, David Calcutt, Fred Cowan and Hassan Parchizadeh. All rights reserved The right of David Calcutt, Fred Cowan and Hassan Parchizadeh to be identified as the authors of this work has been asserted in accordance with the Copyright, Designs and Patents Act 1988 No part of this publication may be reproduced in any material form (including photocopying or storing in any medium by electronic means and whether or not transiently or incidentally to some other use of this publication) without the written permission of the copyright holder except in accordance with the provisions of the Copyright, Designs and Patents Act 1988 or under the terms of a licence issued by the Copyright Licensing Agency Ltd, 90Tottenham Court Road, London, England W1T 4LP. Applications for the copyright holder’s written permission to reproduce any part of this publication should be addressed to the publisher Permissions may be sought directly from Elsevier’s Science and Technology Rights Department in Oxford, UK. Phone: (þ 44) (0) 1865 843830; fax: (þ 44) (0) 1865 853333; e-mail: [email protected]. You may also complete your request on-line via the Elsevier homepage (http://www.elsevier.com), by selecting ‘Customer Support’ and then ‘Obtaining Permissions’ British Library Cataloguing in Publication Data Calcutt, D. 8051 microcontrollers : an applications based introduction 1. INTEL 8051 (Computer) 2. Digital control systems I. Title II. Cowan, Frederick J. III. Parchizadeh, G. Hassan 004.1065 Library of Congress Cataloguing in Publication Data Calcutt, D. M. 8051 microcontrollers : an applications-based introduction / David Calcutt, Fred Cowan, Hassan Parchizadeh. p. cm. 1. Intel 8051 (Computer) 2. Digital control systems. I. Cowan, Frederick J. II. Parchizadeh, G. Hassan. III. Title. QA76.8.I27C35 2003 004.165—dc22 2003066606 ISBN 075065759 6 (alk. paper) For information on all Newnes publications visit our website at www.newnespress.com Typeset by Integra Software Services Pvt. Ltd, Pondicherry, India www.integra-india.com Printed and bound in Meppel, The Netherlands by Krips bv. //INTEGRAS/ELS/PAGINATION/ELSEVIER UK/MAB/3B2/FINALS_03-11-03/PRELIM.3D – 3 – [1–8/8] 28.11.2003 4:49PM Contents Preface v Acknowledgements vii 1 Introduction to Microcontrollers 1 1.1 Introduction 1 1.2 Microcontroller types 2 1.3 P89C66x microcontroller 4 1.4 Bits, nibbles, bytes and number conversions 7 1.5 Inside microcontrollers 10 1.6 Microcontroller programming 11 1.7 Commonly used instructions of the 8051 microcontroller 22 1.8 Microcontroller clock 22 1.9 Time delays 24 Summary 27 2 Flash Microcontroller Board 28 2.1 Introduction 28 2.2 P89C66x microcontroller 29 2.3 Programming the device 31 2.4 Flash magic 35 2.5 XAG49 microcontroller 35 Summary 37 3 Simulation Software 38 3.1 Introduction 38 3.2 Keil m Vision2 39 3.3 Raisonance IDE (RIDE) 50 Summary 64 4 P89C66x Microcontroller 66 4.1 Introduction 66 4.2 Timers 0and 1 67 4.3 Timer 2 79 4.4 External interrupt 82 //INTEGRAS/ELS/PAGINATION/ELSEVIER UK/MAB/3B2/FINALS_03-11-03/PRELIM.3D – 4 – [1–8/8] 28.11.2003 4:49PM iv Contents 4.5 Interrupt priority 84 4.6 Programmable counter array (PCA) 86 4.7 Pulse width modulation (PWM) 88 4.8 Watchdog timer 92 4.9 Universal asynchronous receive transmit (UART) 94 4.10Inter integrated circuit (IIC or I 2C) 103 Summary 111 5 Low Pin Count (LPC) Devices 113 5.1 Introduction 113 5.2 P87LPC769 114 5.3 Analog functions 115 5.4 Analog comparators 125 5.5 P89LPC932 128 5.6 Serial peripheral interface (SPI) 129 5.7 EEPROM memory 136 Summary 141 6 The XA 16-bit Microcontroller 142 6.1 Introduction 142 6.2 XA registers 146 6.3 Watchdog timer 148 6.4 UART 152 6.5 8051 compatibility 155 6.6 Interrupts 156 Summary 168 7 Project Applications 169 7.1 Introduction 169 7.2 Project 1: speed control of a small DC motor 169 7.3 Project 2: speed control of a stepper motor 175 7.4 Project 3: single wire multiprocessor system 185 7.5 Project 4: function generator 192 Solutions to Exercises 201 Appendix A 8051 Instruction Set 226 B Philips XA Microcontroller – XA and 8051 Instruction Set Differences 232 C 8051 Microcontroller Structure 246 D P89C66x Microcontroller 285 E P89LPC932 Microcontroller 327 F XAG49 Microcontroller 360 G P89C66x and XAG49 Microcontroller PCB Board Layouts 401 Index 407 //INTEGRAS/ELS/PAGINATION/ELSEVIER UK/MAB/3B2/FINALS_03-11-03/PRELIM.3D – 5 – [1–8/8] 28.11.2003 4:49PM Preface A potential reader of this text may be forgiven for initially viewing this book as yet another text on the ubiquitous 80C51 microcontroller, a topic on which many books have already been published. However, the authors believe their application-based coverage using only Flash memory devices will bring home to the reader a depth of coverage and an understanding of the versatility of the various members of the 80C51 family, including the 16-bit devices, that have not been seen before. Three devices in particular are described in the text with their own chapters and relevant appendices. The devices are those available from Philips Semiconductors although the applications, both hardware and software, have a broader scope and could apply to other manufacturer’s devices. The text includes a chapter on simulation, using evaluation software that can be downloaded on to a computer. Such software allows the user to compile their program and simply run it to achieve an objective or single step through their program to establish how the program affects registers, timers, ports, etc., as the program develops. It is hoped that the reader will wish to go beyond simulation and interface with external inputs/outputs via an actual microcon- troller. Artwork is included, in an appendix, for a single-sided pcb that could be used for the construction of a development board. Two different boards are described; one board is designed for an 8-bit device while the other is for a 16-bit device, both devices being covered in the text. Information relating to the microcontroller boards can be found in Chapter 2. The use of a Flash micro- controller board and in-system programming techniques allows the user to simulate and debug his/her program and refine it before downloading it to the microcontroller. Source code could then be removed, if required, and replaced with a new program to serve a different purpose. The use of a micro- controller board allows an interface to the outside world and the effect of the program stored in the microcontroller can be observed in real time i.e. to light LEDs, cause a motor shaft to rotate, etc. For those not wishing to have their own microprocessor board the text still offers the opportunity to simulate programs and much can be learnt about the devices by its use. Three members of the Philip’s 80C51 family have been utilised in the text to explain circuit action and used as the basis for specific applications. Several //INTEGRAS/ELS/PAGINATION/ELSEVIER UK/MAB/3B2/FINALS_03-11-03/PRELIM.3D – 6 – [1–8/8] 28.11.2003 4:49PM vi Preface appendices complete the story with details on the 8-bit and 16-bit microcon- troller instruction set and manufacturers’ data on the devices. The book is intended to be read on a chapter by chapter basis for those new to the subject and in this format would be suitable for those on degree, including postgraduate, courses. The text would also be suitable for any reader familiar with the devices but requiring information that takes them somewhat deeper into the detail and applications. For such readers some of the chapters could be omitted and particular chapters studied in more depth. Practising engineers could find the text helpful as an aid to the development of prototype systems prior to full-scale commercial application. Chapters dealing with spe- cific devices have numerous examples to help reinforce key points, and there are also numerous exercises for the reader to attempt if they so wish; answers to these exercises can be found at the end of the book. Relevant appendices can be used for reference where necessary. The text assumes that readers have some experience of programming although some information on assembly language programming can be found in Chapter 1. Programming examples have been implemented using assembly language and C. The authors have attempted to show throughout the text programming applications where relevant, and the final chapter is devoted to practical appli- cations that the authors have found to work. Notwithstanding this, the authors can accept no responsibility for any program that a reader might attempt and find unsatisfactory. It should perhaps be mentioned at this point that the Department of Electro- nic and Computer Engineering at the University of Portsmouth is a Philips Accredited Product Expert Centre, one of only five in England. Short courses relevant to industry are run at the Centre on a regular basis and the Centre is kept up to date on new developments relating to Philips Semiconductors Ltd devices.
Recommended publications
  • Architecture of 8051 & Their Pin Details
    SESHASAYEE INSTITUTE OF TECHNOLOGY ARIYAMANGALAM , TRICHY – 620 010 ARCHITECTURE OF 8051 & THEIR PIN DETAILS UNIT I WELCOME ARCHITECTURE OF 8051 & THEIR PIN DETAILS U1.1 : Introduction to microprocessor & microcontroller : Architecture of 8085 -Functions of each block. Comparison of Microprocessor & Microcontroller - Features of microcontroller -Advantages of microcontroller -Applications Of microcontroller -Manufactures of microcontroller. U1.2 : Architecture of 8051 : Block diagram of Microcontroller – Functions of each block. Pin details of 8051 -Oscillator and Clock -Clock Cycle -State - Machine Cycle -Instruction cycle –Reset - Power on Reset - Special function registers :Program Counter -PSW register -Stack - I/O Ports . U1.3 : Memory Organisation & I/O port configuration: ROM RAM - Memory Organization of 8051,Interfacing external memory to 8051 Microcontroller vs. Microprocessors 1. CPU for Computers 1. A smaller computer 2. No RAM, ROM, I/O on CPU chip 2. On-chip RAM, ROM, I/O itself ports... 3. Example:Intel’s x86, Motorola’s 3. Example:Motorola’s 6811, 680x0 Intel’s 8051, Zilog’s Z8 and PIC Microcontroller vs. Microprocessors Microprocessor Microcontroller 1. CPU is stand-alone, RAM, ROM, I/O, timer are separate 1. CPU, RAM, ROM, I/O and timer are all on a single 2. designer can decide on the chip amount of ROM, RAM and I/O ports. 2. fix amount of on-chip ROM, RAM, I/O ports 3. expansive 3. for applications in which 4. versatility cost, power and space are 5. general-purpose critical 4. single-purpose uP vs. uC – cont. Applications – uCs are suitable to control of I/O devices in designs requiring a minimum component – uPs are suitable to processing information in computer systems.
    [Show full text]
  • Embedded Systems and Internet of Things (Iots) - Challenges in Teaching the ARM Controller in the Classroom
    Paper ID #20286 Embedded Systems and Internet of Things (IoTs) - Challenges in Teaching the ARM Controller in the Classroom Prof. Dhananjay V. Gadre, Netaji Subhas Institute of Technology Dhananjay V. Gadre (New Delhi, India) completed his MSc (electronic science) from the University of Delhi and M.Engr (computer engineering) from the University of Idaho, USA. In his professional career of more than 27 years, he has taught at the SGTB Khalsa College, University of Delhi, worked as a scientific officer at the Inter University Centre for Astronomy and Astrophysics (IUCAA), Pune, and since 2001, has been with the Electronics and Communication Engineering Division, Netaji Subhas Institute of Technology (NSIT), New Delhi, currently as an associate professor. He directs two open access laboratories at NSIT, namely Centre for Electronics Design and Technology (CEDT) and TI Centre for Embedded Product Design (TI-CEPD). Professor Gadre is the author of several professional articles and five books. One of his books has been translated into Chinese and another one into Greek. His recent book ”TinyAVR Microcontroller Projects for the Evil Genius”, published by McGraw Hill International consists of more than 30 hands-on projects and has been translated into Chinese and Russian. He is a licensed radio amateur with a call sign VU2NOX and hopes to design and build an amateur radio satellite in the near future. Dr. Ramesh S. Gaonkar, SUNY-PCC and IITGN Ramesh Gaonkar, Ph.D., Professor Emeritus, SUNY OCC, (Syracuse, NY) was a professor in Electrical Technology, and presently, he is teaching as a Visiting Professor at Indian Institute of Technology (IIT), Gandhinagar, India.
    [Show full text]
  • 2 XII December 2014
    2 XII December 2014 www.ijraset.com Volume 2 Issue XII, December 2014 ISSN: 2321-9653 International Journal for Research in Applied Science & Engineering Technology (IJRASET) Overview and Comparative Study of Different Microcontrollers Rajratna Khadse1, Nitin Gawai2, Bagwan M. Faruk3 1Assist.Professor, Electronics Engineering Department, RCOEM, Nagpur 2,3Assist.Professor, E & Tc Engineering Department, JDIET, Yavatmal Abstract—A microcontroller is a small and low-cost computer built for the purpose of dealing with specific tasks, such as displaying information on seven segment display at railway platform or receiving information from a television’s remote control. Microcontrollers are mainly used in products that require a degree of control to be exerted by the user. Today various types of microcontrollers are available in market with different word lengths such as 8bit, 16bit, 32bit, and microcontrollers. Microcontroller is a compressed microcomputer manufactured to control the functions of embedded systems in office machines, robots, home appliances, motor vehicles, and a number of other gadgets. Therefore in today’s technological world lot of things done with the help of Microcontroller. Depending upon the applications we have to choose particular types of Microcontroller. The aim of this paper to give the basic information of microcontroller and comparative study of 8051 Microcontroller, ARM Microcontroller, PIC Microcontroller and AVR Microcontroller Keywords— Microcontroller, Memory, Instruction, cycle, bit, architecture I. INTRODUCTION Microcontrollers have directly or indirectly impact on our daily life. Usually, But their presence is unnoticed at most of the places like: At supermarkets in Cash Registers, Weighing Scales, Video games ,security system , etc. At home in Ovens, Washing Machines, Alarm Clocks, paging, VCR, LASER Printers, color printers etc.
    [Show full text]
  • Lecture #3 PIC Microcontrollers
    Integrated Technical Education Cluster Banna - At AlAmeeria ‎ © Ahmad © Ahmad El E-626-A Real-Time Embedded Systems (RTES) Lecture #3 PIC Microcontrollers Instructor: 2015 SPRING Dr. Ahmad El-Banna Banna Agenda - What’s a Microcontroller? © Ahmad El Types of Microcontrollers Features and Internal structure of PIC 16F877A RTES, Lec#3 , Spring Lec#3 , 2015 RTES, Instruction Execution 2 Banna What is a microcontroller? - • A microcontroller (sometimes abbreviated µC, uC or MCU) is a small computer on a single integrated circuit © Ahmad El containing a processor core, memory, and programmable input/output peripherals. • It can only perform simple/specific tasks. • A microcontroller is often described as a ‘computer-on-a- chip’. RTES, Lec#3 , Spring Lec#3 , 2015 RTES, 3 Microcomputer system and Microcontroller Banna based system - © Ahmad © Ahmad El RTES, Lec#3 , Spring Lec#3 , 2015 RTES, 4 Banna Microcontrollers.. - • Microcontrollers are purchased ‘blank’ and then programmed with a specific control program. © Ahmad El • Once programmed the microcontroller is build into a product to make the product more intelligent and easier to use. • A designer will use a Microcontroller to: • Gather input from various sensors • Process this input into a set of actions • Use the output mechanisms on the microcontroller to do something useful. RTES, Lec#3 , Spring Lec#3 , 2015 RTES, 5 Banna Types of Microcontrollers - • Parallax Propeller • Freescale 68HC11 (8-bit) • Intel 8051 © Ahmad El • Silicon Laboratories Pipelined 8051 Microcontrollers • ARM processors (from many vendors) using ARM7 or Cortex-M3 cores are generally microcontrollers • STMicroelectronics STM8 (8-bit), ST10 (16-bit) and STM32 (32-bit) • Atmel AVR (8-bit), AVR32 (32-bit), and AT91SAM (32-bit) • Freescale ColdFire (32-bit) and S08 (8-bit) • Hitachi H8, Hitachi SuperH (32-bit) • Hyperstone E1/E2 (32-bit, First full integration of RISC and DSP on one processor core [1996]) • Infineon Microcontroller: 8, 16, 32 Bit microcontrollers for Spring Lec#3 , 2015 RTES, automotive and industrial applications.
    [Show full text]
  • PLC Relay Ladder Logic, Intel 8051 Assembly Language, Raspberry Pi
    Assignment: LAB #7 and #8 PLC Relay Ladder Logic, Intel 8051 Assembly Language, Raspberry Pi ARM Assembly Language COURSE: EGR/CS333 “DIGITAL DESIGN & INTERFACING” (Digital Design II, Assembly Language, and Interfacing) SYLLABUS: http://users.etown.edu/w/wunderjt/syllabi/CS333%20Wunderlich,Joseph.htm INSTRUCTOR: J. Wunderlich PhD LATE PENALTY: Minus 33.3% per class period for each late item LAST REVISED: - PRE-LAB: 1. Read our Etown NanoLC PLC customized Simulator and Real-Time Device Control Manual: http://users.etown.edu/w/wunderjt/Info%20on%20Phoenix%20Contact%20NanoLC%20PLC.pdf including video on how to program NanoLC with Relay Ladder Logic: https://www.youtube.com/watch?v=i4wJFXCS9OU 2. Read our Etown Intel 80x51 customized Simulator and Real-Time Device Control Manual(s): a. 8051 Intel Microcontroller Development Board & Software, plus simulator (8051 Jumps & Calls) b. OPTIONAL: 2014 8051 Microcontroller Simulator and intro to Development Board and Software c. OPTIONAL: Pre-2013 Intel 80251 Microcontroller Board and Software (80251 Jumps & Calls) 3. Read our Etown Raspberry Pi customized Real-Time Device Control Manual(s): http://users.etown.edu/w/wunderjt/Raspberry%20Pi%20MANUAL%20and%20Labs.pdf DURING LAB: 1. AS A GROUP, convert your most complex working NanoLC program to-date into Relay Ladder Logic, and in your report compare and contrast it to your original program; along with demonstrating it fully functioning 2. AS A GROUP, simulate the two Intel 8051 Microcontroller Assembly Language programs shown in Dr Wunderlich’s publication below. Take screen shots of the memory map to show memory, registers, the stack, and PSW contents changing and put these in your report along with narrative explaining what’s happening, and arrows pointing to changing parts of the memory map.
    [Show full text]
  • FINGERPRINT BASED DRIVING LICENSE MANAGEMENT SYSTEM’ Has Been Successfully Completed by the Following Students
    FINGERPRINT BASED DRIVING LICENSE MANAGEMENT SYSTEM SUBMITTED BY DANISH SAYYED MOHAMMED HAMZA SALMAN JAMIL UNDER THE GUIDANCE OF PROF. S.CHAYA DEPARTMENT OF ELECTRONICS AND TELECOMMUNICATION ENGINEERING ANJUMAN-I-ISLAM'S KALSEKAR TECHNICAL CAMPUS PANVEL UNIVERSITY OF MUMBAI Academic Year 2015 –16 i Department of Electronics and Telecommunication Engineering ANJUMAN-I-ISLAM'S KALSEKAR TECHNICAL CAMPUS PANVEL CERTIFICATE This is to certify that the requirements for the project synopsis entitled ‘FINGERPRINT BASED DRIVING LICENSE MANAGEMENT SYSTEM’ has been successfully completed by the following students, Name DANISH SAYYED MOHAMMED HAMZA SALMAN JAMIL in partial fulfillment of Bachelor of Engineering (Electronics and Telecommunication) University of Mumbai, in the Department of Electronics and Telecommunication, Anjuman-I-Islam's Kalsekar Technical Campus Panvel during the academic year 20 – 20. Internal guide ________________ External guide (if any) ________________ Head of Department ______________ Principal _________________ Internal Examiner ________________ External Examiner ________________ ii Project Report Approval for B. E. This project report entitled “Fingerprint Based Driving License Management System” byDanish Sayyed, Mohammed Hamza, Salman Jamil is approved for the degree of Bachelor of Electronics and Telecommunication Engineering. Examiners 1.--------------------------------------------- 2.--------------------------------------------- Supervisors 1.--------------------------------------------- 2.---------------------------------------------
    [Show full text]
  • An Embedded Systems Kernel
    AN EMBEDDED SYSTEMS KERNEL Lars Munch Christensen IMM-THESIS-2001-47 IMM Trykt af IMM, DTU Foreword The present report is the result of a master thesis entitled “An Embedded Systems Kernel”. The project was done from mid February until the end of October 2001. I would like to use the opportunity to thank all the parties who have con- tributed to this project. A special thank you goes to my wife Eva, who has used valuable time finding spelling and grammar errors in the report. I would also like to thank MIPS for sponsoring hardware and thank you to the people at the linux-mips mailing list for valuable MIPS information. October 26th, 2001. Lars Munch Christensen Abstract The process of composing a development system environment, suitable for embedded system development in a Free Software environment, is dis- cussed. The theory of protection and sharing of memory in a single space operating system is presented. A design for a small embedded systems ker- nel is presented and the actual implementation of the kernel is described. A generalized bootstrap is proposed. The actual implementation of the kernel is included in the appendix. Keywords Embedded systems kernel development and implementation, single address space operating systems, generalized bootstrapping. i Contents 1 Preface 1 1.1 Executive summary ....................... 1 1.2 Prerequisites .......................... 1 1.3 Typographical conventions ................... 2 2 Introduction 3 2.1 Introduction to the embedded systems ............ 3 2.2 Introduction to the project .................. 4 2.3 Motivation for the project ................... 4 2.4 Organization .......................... 5 3 Kernel properties 7 3.1 Introduction ..........................
    [Show full text]
  • DSP56321 Reference Manual 24-Bit Digital Signal Processor
    DSP56321 Reference Manual 24-Bit Digital Signal Processor DSP56321RM Rev. 1, March 2005 How to Reach Us: Information in this document is provided solely to enable system and software implementers to use Freescale Semiconductor products. There are no express or implied copyright licenses Home Page: granted hereunder to design or fabricate any integrated circuits or integrated circuits based on www.freescale.com the information in this document. E-mail: [email protected] Freescale Semiconductor reserves the right to make changes without further notice to any products herein. Freescale Semiconductor makes no warranty, representation or guarantee USA/Europe or Locations not listed: regarding the suitability of its products for any particular purpose, nor does Freescale Freescale Semiconductor Semiconductor assume any liability arising out of the application or use of any product or Technical Information Center, CH370 1300 N. Alma School Road circuit, and specifically disclaims any and all liability, including without limitation consequential Chandler, Arizona 85224 or incidental damages. “Typical” parameters which may be provided in Freescale +1-800-521-6274 or +1-480-768-2130 Semiconductor data sheets and/or specifications can and do vary in different applications and [email protected] actual performance may vary over time. All operating parameters, including “Typicals” must be validated for each customer application by customer’s technical experts. Freescale Europe, Middle East, and Africa: Semiconductor does not convey any license
    [Show full text]
  • The 8051 Microcontroller and Embedded Systems
    The 8051 Microcontroller and Embedded Systems S. LOURDURAJ Asst. Prof. of Physics St. Joseph’s College (Autonomous) Tiruchirappalli. 1 OBJECTIVES Comparison of microprocessors and microcontrollers Advantages of microcontrollers for some applications Concept of Embedded Systems Criteria for choosing a microcontroller Various members of the 8051 family 8051 microcontrollers offered by various 2 manufacturers MICROPROCESSORS Vs MICROCONTROLLERS General-purpose microprocessor Microcontroller 3 MICROPROCESSORS MICROCONTROLLERS 1. Includes the fun. Of µP & in addition 1. Functional blocks are to Timer, Parallel & ALU, Reg.,T&C unit Serial ports, int. RAM & EPROM / 2. There is a rapid movement of data EEPROM /Coad Bw ext.M to µP. 2. Rapid movement Of DATA & 3. Many opcodes involves for data COAD with in the chip. movement 3. Few instruction used for this purpose 4. Used in the form of Byte/data & have one /two types of bit handling 4. Large no. of bit manipulation instructions. 5. Cheap – Designing app for specific 5. Costly--- digital computers. dedicate sysm. 4 EMBEDDED SYSTEM AND THEIR PRODUCTS Embedded System The application and processor are combined into a single system Embedded products Processor inside the micro controller performs only one task. Eg: Printer- Getting data from i/p device through the processor and printing it. 5 MICROCONTROLLERS AND THEIR EMBEDDED PRODUCTS 6 TYPES OF 8-BIT MICROCONTROLLER Free scale 6811 Intel’s 8051 Zilog’s Z8 PIC 16X Each one has unique instruction set & Register set 7 CRITEIR’S TO CHOOSE A MICROCONTROLLER FOR DESIGNING 1. Task at hand efficient & cost effective Speed, Bit size, Packaging, Power consumption, no. of I/O ports &Timers and Cost.
    [Show full text]
  • Why Specint95 Should Not Be Used to Benchmark Embedded
    EmbeddedEmbedded SystemsSystems ComputerComputer ArchitectureArchitecture JakobJakob EngblomEngblom VirtutechVirtutech ABAB && UppsalaUppsala UUniversityniversity [email protected] EmbeddedEmbedded SystemsSystems 29 November 2002 Embedded Computer Architecture 2 EmbeddedEmbedded SystemsSystems Now what is this elephant thing? You’re all wrong, it is a fan! No, a It is a wall! snake! No, it is a treetrunk! No, a pillar! 29 November 2002 Embedded Computer Architecture 3 EmbeddedEmbedded SystemsSystems »»““AA computercomputer thatthat doesn’tdoesn’t looklook likelike aa computer”computer” »»InteractsInteracts withwith worldworld »»PrimitivePrimitive oror nono useruser interfaceinterface »»PartPart ofof otherother productsproducts 29 November 2002 Embedded Computer Architecture 4 EmbeddedEmbedded SystemsSystems »»TheThe vastvast majoritymajority ofof processors!processors! ¡¡200200 millionmillion PCPC andand serverserver ¡¡80008000 millionmillion embeddedembedded "Embedded" 98% "Desktop" 2% 29 November 2002 Embedded Computer Architecture 5 EmbeddedEmbedded SystemsSystems »»SingleSingle purposepurpose productsproducts ¡NotNot generalgeneral purposepurpose likelike desktopdesktop PCsPCs ¡DoDo oneone tthhinging veryvery efficientefficientllyy »»SoftwareSoftware veryvery important:important: ¡GivesGives charactercharacter toto productproduct Used to differentiate inside a “platform” ¡CanCan bebe changedchanged latelate ¡ProcessorProcessor cheapercheaper thanthan specialspecial HWHW ¡DominatesDominates HWHW developmentdevelopment cost!cost! 29 November
    [Show full text]
  • Introduction to 8051 Microcontroller Ntfmi/Tllnecessary Parts of Any Microprocessor/Controller
    Introduction to 8051 microcontroller NtfMi/tllNecessary parts of any Microprocessor/controller • CPU: Centra l Process ing Un it • I/O: Input /Output • Bus: Address bus , Data bus , Control bus • Memory: RAM & ROM • Timer • Interrupt • Serial Port • Parallel Port 2 Microprocessor • General-purpose digital computer Central Processing Unit • CPU for Computers • No RAM, ROM, I/O on CPU chip itself • Example:Intel’s x86, Motorola’s 680x0 Data Bus CPU General- Serial Purpose RAM ROM I/O Timer COM Micro- Port Port processor 4 Microcontroller • A smaller computer • On-chip RAM, ROM, I/O ports... • Example:Motorola’s 6811, Intel’s 8051, Zilog’s Z8 and PIC 16X CPU RAM ROM A single chip Serial I/O Timer COM Port Port Microcontroller 5 Microprocessor Vs . Microcontroller 1. Most microprocessors have 1. Micro controllers have one or many operational codes two. (opcodes) for moving external memory to the CPU. 2. µp have one or two type of bit 2.µc have many handling instruction 3. µp concerned with rapid 3. µc concerned with rapid movement of code and data movement of bits within the chip from external address to chip 4. µp needs many additional parts 4. µc can function as computer tbto become opera tiltional with no additional parts On the hardware point of view….. Microprocessor Microcontroller • CPU is stand-alone • CPU, RAM, ROM, I/O and timer are all on a single chip • RAM, ROM, I/O, timer are • Fix amount of on-chip ROM, separate so designer can decide on RAM, I/O ports the amount of ROM, RAM and I/O ports • Expansive • For applications in which
    [Show full text]
  • Microcontrollers and Interfacing Using Arm Processor
    MICROCONTROLLERS AND INTERFACING USING ARM PROCESSOR Lecture 1 Prof. Yasser Mostafa Kadah Course Goals At the end of this course, you should be able to: Understand the architecture of one of the most popular microcontroller (MCU) families Use an integrated development environment (IDE) to program and debug an MCU Program an MCU using Assembly and C languages Understand and use peripherals integrated into an MCU Interface an MCU to simple external components Use timers in various modes Understand and use interrupts Understand and use analog to digital converters (ADC) and digital to analog converters (DAC) Communicate using a serial interface (if time allows) Course Prerequisites A course in Electric Circuits that includes understanding basic electronic components such as resistors, capacitors, diodes and transistors A course in basic digital logic design that includes logic gates and Boolean arithmetic Ability to program in a high-level programming language such as C or C++ Microprocessors and Microcontrollers Microprocessor: general-purpose CPU Emphasis is on flexibility and performance Generic user-interface such as keyboard, mouse, etc. Used in a PC, PDA, cell phone, etc. Microcontroller: microprocessor + memory on a single chip Emphasis is on size and cost reduction The user interface is tailored to the application, such as the buttons on a TV remote control Used in a digital watch, TV remote control, car and many common day- to-day appliances Microcontroller Architectures Microcontroller architecture refers
    [Show full text]