PIC-MDS Training Manual

Total Page:16

File Type:pdf, Size:1020Kb

PIC-MDS Training Manual PIC-MDS PIC Microcontroller Development System Training Manual Copyright © 1996, 1998 Sirius microSystems. All rights reserved. Second Printing. Parallax is a Trademark of Parallax, Inc. PICmicro™ is a Registered Trademark of Microchip Technology Inc. in the U.S.A. and other countries. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, mechanical, electronic, photocopying, or recording, or otherwise, without the prior written permission of Sirius microSystems. Sirius microSystems has taken care to trace ownership of copyright material contained in this text. However, Sirius microSystems will gladly accept any information that enables them to rectify any reference or credit in subsequent editions. For conditions, permissions and other rights under this copyright, contact Sirius microSystems: Sirius microSystems 172 Harvard Road Waterloo, ON N2J 3V3 Canada tel.: 519.886.4462 fax: 519.886.4253 http://www.siriusmicro.com ISBN 0-9681220-0-0 (Training Manual) ISBN 0-9681220-1-9 (Teacher’s Reference) Disclaimer of Liability This manual and the program subroutines included herein are written for the Sirius microSystems PICmicro™ Development System and are provided on an “as is” basis, without any warranty, either expressed or implied. These materials are provided for educational use only, and Sirius microSystems does not assume any liability for damages, either incidental or consequential, arising out of the application, use, or misuse of any of its software or hardware products. Sirius microSystems reserves the right, without further notice, to make changes to any of its training materials, software or hardware referred to in this manual in order to improve its function, design or reliability. Printed in Canada. Table of Contents 1 What are Microcontrollers?......................................9 10Microcontroller Features .................................................................. 10 Input/Output Ports ........................................................................... 10 Input Devices ................................................................................... 11 Output Devices ................................................................................ 12 Memory ............................................................................................ 12 Clock Circuit ..................................................................................... 15 Processing Unit ................................................................................ 15 Watch-Dog Timer ............................................................................. 15 Chapter Summary............................................................................ 16 Questions ......................................................................................... 17 Assignments .................................................................................... 17 2 How do Microcontrollers Work? ............................19 Processing Unit ................................................................................ 19 Memory ............................................................................................ 20 The Outside World Connection ....................................................... 20 How do Programs get into the Microcontroller? .............................. 20 Chapter Summary............................................................................ 21 Questions ......................................................................................... 22 3 The Microchip PIC family of Microcontrollers ......23 The PICmicro™ Product Range ...................................................... 23 The 18-pin PIC16CXX Product Line ............................................... 24 The PIC16F84 ................................................................................. 25 Program EEPROM .......................................................................... 25 Data EEPROM ................................................................................. 25 RAM ................................................................................................. 26 Input/Output Ports ........................................................................... 26 TMR0 ............................................................................................... 26 Watchdog Timer (WDT) ................................................................... 27 Power-Up Reset Timer (PWRT) ...................................................... 27 Oscillator .......................................................................................... 27 RAM Register Files .......................................................................... 28 STATUS ........................................................................................... 28 PCL & PCLATH ............................................................................... 28 IND0 & FSR ..................................................................................... 28 INTCON ........................................................................................... 28 Option .............................................................................................. 28 EEDATA & EEADR .......................................................................... 28 EECON1 & EECON2 ....................................................................... 28 The PIC16C711 ............................................................................... 29 Program EPROM ............................................................................. 29 Analog-to-Digital Converter ............................................................. 29 Chapter Summary............................................................................ 30 Questions ......................................................................................... 31 Assignment ...................................................................................... 31 ©1998 Sirius microSystems 3 4 Features of the PIC-MDS Development System ...33 Power Supply Circuit ....................................................................... 35 J1 ..................................................................................................... 35 VR1 .................................................................................................. 35 JU1 ................................................................................................... 35 JU2 ................................................................................................... 36 External I/O Connectors .................................................................. 36 CON1 ............................................................................................... 36 PICBUS ............................................................................................ 37 Microcontroller Related Circuits ....................................................... 37 Microcontroller Socket ..................................................................... 37 H2 .................................................................................................... 37 Reset Button .................................................................................... 38 Y1 ..................................................................................................... 38 JU3 ................................................................................................... 38 JU6 ................................................................................................... 39 VR3 & VR4 ...................................................................................... 39 Matrix Keypad .................................................................................. 39 LED Output Indicator Bar Graph ..................................................... 40 Intelligent LCD Display .................................................................... 40 VR2 .................................................................................................. 40 RS-232 Serial Port ........................................................................... 40 JU5 ................................................................................................... 40 H3 .................................................................................................... 41 Serial EEPROM ............................................................................... 41 JU4 ................................................................................................... 41 PIC-MDS Default Jumper Locations................................................ 41 Questions ......................................................................................... 42 5 Writing a Simple Program ......................................43 Examining Source Code—Microchip Code ..................................... 44 Source Code Conventions .............................................................. 45 Some Other Common Source Code Conventions .......................... 46 Examining the Program ................................................................... 47 The Maclib Directive ........................................................................ 47 The Device and ID Directives .......................................................... 47 The ORG Directive .......................................................................... 47 Program
Recommended publications
  • Programming-8Bit-PIC
    Foreword Embedded microcontrollers are everywhere today. In the average household you will find them far beyond the obvious places like cell phones, calculators, and MP3 players. Hardly any new appliance arrives in the home without at least one controller and, most likely, there will be several—one microcontroller for the user interface (buttons and display), another to control the motor, and perhaps even an overall system manager. This applies whether the appliance in question is a washing machine, garage door opener, curling iron, or toothbrush. If the product uses a rechargeable battery, modern high density battery chemistries require intelligent chargers. A decade ago, there were significant barriers to learning how to use microcontrollers. The cheapest programmer was about a hundred dollars and application development required both erasable windowed parts—which cost about ten times the price of the one time programmable (OTP) version—and a UV Eraser to erase the windowed part. Debugging tools were the realm of professionals alone. Now most microcontrollers use Flash-based program memory that is electrically erasable. This means the device can be reprogrammed in the circuit—no UV eraser required and no special packages needed for development. The total cost to get started today is about twenty-five dollars which buys a PICkit™ 2 Starter Kit, providing programming and debugging for many Microchip Technology Inc. MCUs. Microchip Technology has always offered a free Integrated Development Environment (IDE) including an assembler and a simulator. It has never been less expensive to get started with embedded microcontrollers than it is today. While MPLAB® includes the assembler for free, assembly code is more cumbersome to write, in the first place, and also more difficult to maintain.
    [Show full text]
  • AN1673 Using the PIC16F1XXX High-Endurance Flash (HEF) Block
    AN1673 Using the PIC16F1XXX High-Endurance Flash (HEF) Block FLASH VS. HIGH-ENDURANCE Author: Lucio Di Jasio Microchip Technology Inc. FLASH Like most other PIC microcontrollers in Flash technology, the PIC16F1XXX series features a INTRODUCTION single-voltage self-write Flash program memory array. The PIC16F1XXX family of general purpose Flash This means that, without additional external hardware microcontrollers features the 8-bit PIC® MCU support, these devices can modify the contents of their enhanced mid-range core. Carefully trading Flash memory at runtime, under firmware control. functionality versus cost, several members of this As an example, this capability is conveniently used to family, including the PIC16F14XX, PIC16F15XX and implement boot loaders, enabling embedded PIC16F17XX, have made a departure from the usual application that can be reprogrammed in the field via a set of peripherals found in previous models to achieve simple serial connection (UART, SPI, I2C™, USB, etc.) a lower price point while still offering a compelling new and without requiring the use of a dedicated in-circuit set of features. Among the several new peripherals programmer/debugger device. introduced, it is worth noting: This capability can also be used to store and/or update • Configurable Logic Cell – a small set of logic calibration data in program memory (obtained at the blocks (unlike a small PLD) that can help directly end of a production line or after product installation). interconnect various peripherals inputs/outputs However, the main limitation of the self-write Flash without CPU intervention. program memory array lies in the relatively small • Complementary Output Generator – the front end number of possible erase/write cycles.
    [Show full text]
  • 32-Bit Microcontroller Families Industry’S Broadest and Most Innovative 32-Bit MCU Portfolio
    32-bit Microcontrollers 32-bit Microcontroller Families Industry’s Broadest and Most Innovative 32-bit MCU Portfolio www.microchip.com/32bit World-Class 32-bit Microcontrollers Building on the heritage of Microchip Technology’s world-leading 8- and 16-bit microcontrollers, the 32-bit family offers a wide range of products from the industry’s lowest-power to highest-performance MCUs coupled with novel and easy-to-use soft- ware solutions. With a rich ecosystem of development tools, integrated development environments and third-party partners, Microchip’s families of 32-bit microcontrollers accelerate a vast array of embedded designs ranging from secured Internet of Things (IoT) to Functional Safety applications to general-purpose embedded control. Internet of Things Security Functional Safety Graphics and Touch Ultra-Low Power Digital Audio 5V Appliances Automotive Wearables Connected Lighting Motor Control Metering Broad Portfolio with Smart Peripheral Mix and Multiple Performance Options High Performance SAMS, SAME, SAMV Cortex-M7, 600 DMIPS, 512–2048 KB Flash PIC32MZ EF MIPS M-Class, 415 DMIPS, 512–2048 KB Flash Mid-Range PIC32MZ DA PIC32MK MC/GP MIPS microApv™, 330 DMIPS, 32 MB SDRAM, MIPS microApv, 198 DMIPS, 256–1024 KB Flash 1-2 MB Flash SAMD5/E5, SAM4N/4S/4E/4L, SAMG Cortex-M4/M4F, 150 DMIPS, 128–2048 KB Flash e PIC32MX3/4 MIPS M4K, 131/150 DMIPS, 64–512 KB Flash ormanc PIC32MX5/6/7 rf MIPS M4K, 105 DMIPS, 64–512 KB Flash Pe SAM7, SAM3, AVR32 Baseline Legacy 32-bit PIC32MX1/2/5 (XLP) MIPS M4K, 116 DMIPS, 16–512 KB Flash SAMD, SAML,
    [Show full text]
  • Tesis De Microcontroladores.Pdf
    UNIVERSIDAD DE EL SALVADOR FACULTAD MULTIDISCIPLINARIA DE OCCIDENTE DEPARTAMENTO DE INGENIERÍA Y ARQUITECTURA. TRABAJO DE GRADUACIÓN DENOMINADO: “DISEÑO DE GUÍAS DE TRABAJO Y CONSTRUCCIÓN DE EQUIPO DIDÁCTICO PARA LA IMPLANTACIÓN DE PRÁCTICAS DE LABORATORIO CON MICRO CONTROLADORES EN LA CARRERA DE INGENIERÍA DE SISTEMAS INFORMÁTICOS DE LA FACULTAD MULTIDISCIPLINARIA DE OCCIDENTE.” PARA OPTAR AL GRADO DE: INGENIERO DE SISTEMA INFORMÁTICOS PRESENTAN: FRANCIA ESCOBAR, ROBERTO ANTONIO GARCÍA, JUAN CARLOS UMAÑA ORDOÑEZ, JORGE ARTURO DOCENTE DIRECTOR ING. JOSE FRANCISCO ANDALUZ NOVIEMBRE, 2007. SANTA ANA EL SALVADOR CENTRO AMÉRICA UNIVERSIDAD DE EL SALVADOR RECTOR MÁSTER RUFINO ANTONIO QUEZADA SÁNCHEZ VICERRECTOR ACADÉMICO MÁSTER MIGUEL ÁNGEL PÉREZ RAMOS VICE RECTOR ADMINISTRATIVO MÁSTER ÓSCAR NOÉ NAVARRETE SECRETARIO GENERAL LICENCIADO DOUGLAS VLADIMIR ALFARO CHÁVEZ FACULTAD MULTIDISCIPLINARIA DE OCCIDENTE DECANO LIC. JORGE MAURICIO RIVERA VICE DECANO LIC. ELADIO ZACARÍAS ORTEZ SECRETARIO LIC. VÍCTOR HUGO MERINO QUEZADA JEFE DE DEPARTAMENTO DE INGENIERÍA ING. RENÉ ERNESTO MARTÍNEZ BERMÚDEZ AGRADECIMIENTOS A DIOS TODOPODEROSO Por permitir que llegara hasta el final de la carrera, por no dejarme solo en este camino y siempre levantarme cuando necesite de su apoyo y fuerza para continuar adelante. A MI MADRE ÁNGELA VICTORIA ESCOBAR DE FRANCIA Por su apoyo, paciencia y ser un pilar en mi vida; sin la cual no hubiese podido culminar la carrera., le dedico este triunfo con las palabras con las que siempre me ha dado confianza y fuerza de seguir adelante “se triunfa cuando se persevera”. A MI PADRE JOSÉ ANTONIO FRANCIA ESCOBAR Que su ejemplo formo en mi la idea de siempre mirar más adelante, seguir luchando y creer que siempre es posible superarse cada día más; gracias por su inmenso apoyo desde todos los puntos de mi carrera y mi vida, como padre, docente, asesor y amigo.
    [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]
  • Development of Research Platform for Unmanned Vehicle Controller Design
    Development of Research Platform for Unmanned Vehicle Controller Design, Evaluation, and Implementation System: From MATLAB to Hardware Based Embedded System by Daniel Ernst A thesis submitted in partial fulfillment of the requirements for the degree of Master of Science in Computer Engineering Department of Computer Science and Engineering College of Engineering University of South Florida Major Professor: Kimon Valavanis, Ph.D. Miguel Labrador, Ph.D. Wilfrido Moreno, Ph.D. Date of Approval: June 14, 2007 Keywords: Unmanned systems, SIMULINK, microcontroller, autopilot, automation © Copyright 2007, Daniel Ernst Dedication To my loving family and friends who have all offered constant support. Acknowledgments A special thanks to everyone in the USF robotics lab and of course, my major professor Kimon Valavanis, who made writing this thesis possible and provided continuous support. Also, to Jeff Craighead, who built aircraft models in the X-Plane simulation that allowed testing of controllers. This thesis was also supported in part by an ONR Grant N00014-04-10-487; a U.S. Navy Coastal Systems Station (now called NSWC-Panama City) Grant N61331-04- 8-1707; and a U.S. DOT through the USF CUTR Grant 2117-1054-02. Table of Contents List of Tables iii List of Figures iv Abstract vi Chapter 1 Motivation 1 1.1 Problem Statement 1 1.2 Proposed Solution 2 1.3 Summary of Contributions 4 1.4 Thesis Outline 5 Chapter 2 The Design Process 6 2.1 MATLAB/SIMULINK to C Conversion 8 2.2 Customizations 8 2.3 Device Selection and Building 10 Chapter 3 Assembly
    [Show full text]
  • PIC Microcontrollers - Programming in C Table of Contents
    Book: PIC Microcontrollers - Programming in C Table of Contents . Chapter 1: World of Microcontrollers . 1.1 Introduction . 1.2 NUMBERS, NUMBERS, NUMBERS... 1.3 MUST KNOW DETAILS . 1.4 PIC MICROCONTROLLERS . Chapter 2: Programming Microcontrollers . 2.1 PROGRAMMING LANGUAGES . 2.2 THE BASICS OF C PROGRAMMING LANGUAGE . 2.3 COMPILER MIKROC PRO FOR PIC . Chapter 3: PIC16F887 Microcontroller . 3.1 THE PIC16F887 BASIC FEATURES . 3.2 CORE SFRS . 3.3 INPUT/OUTPUT PORTS . 3.4 TIMER TMR0 . 3.5 TIMER TMR1 . 3.6 TIMER TMR2 . 3.7 CCP MODULES . 3.8 SERIAL COMMUNICATION MODULES . 3.9 ANALOG MODULES . 3.10 CLOCK OSCILLATOR . 3.11 EEPROM MEMORY . 3.12 RESET! BLACK-OUT, BROWN-OUT OR NOISES? . Chapter 4: Examples . 4.1 BASIC CONNECTING . 4.2 ADDITIONAL COMPONENTS . 4.3 EXAMPLE 1 - Writing header, configuring I/O pins, using delay function and switch operator . 4.4 EXAMPLE 2 - Using assembly instructions and internal oscillator LFINTOSC... 4.5 EXAMPLE 3 - TMR0 as a counter, declaring new variables, enumerated constants, using relay ... 4.6 EXAMPLE 4 - Using timers TMR0, TMR1 and TMR2. Using interrupts, declaring new function... 4.7 EXAMPLE 5 - Using watch-dog timer . 4.8 EXAMPLE 6 - Module CCP1 as PWM signal generator . 4.9 EXAMPLE 7 - Using A/D converter . 4.10 EXAMPLE 8 - Using EEPROM Memory . 4.11 EXAMPLE 9 - Two-digit LED counter, multiplexing . 4.12 EXAMPLE 10 - Using LCD display . 4.13 EXAMPLE 11 - RS232 serial communication . 4.14 EXAMPLE 12 - Temperature measurement using DS1820 sensor. Use of 1-wire protocol... 4.15 EXAMPLE 13 - Sound generation, sound library..
    [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]
  • Rutronik MCHP Solution
    Presented by: Lucio Di Jasio MCU8 Business Development Manager This presentation will give you an overview of Microchip as a company Our Analog portfolio Our MCUs in general MCU8 in particular 2 Corporate Overview Leading provider of: • High-performance, field-programmable RISC Microcontrollers and Digital Signal Controllers • Mixed-Signal, Analog, Interface and Security products • Wireless and RF products • Non-volatile EEPROM and Flash Memory products • Flash IP solutions • Clock and Timing solutions ~ $3.3 Billion revenue run rate ~14,000 employees Headquartered near Phoenix in Chandler, AZ 3 Worldwide Technical Support Centers Bucharest St. Petersburg Copenhagen Kaohsiung Dublin Manila Haan Nanjing Karlsruhe Osaka London Qingdao Madrid Seoul Milan Daegu Munich Dongguan Atlanta Tel Aviv Austin Padova Shanghai Boston Paris Shenyang Chicago Vienna Shenzhen Cleveland Warsaw Singapore Bangalore Dallas Wels Taipei Bangkok Detroit Tokyo Beijing Kokomo Wuhan Chengdu Los Angeles Xiamen Chongqing New York Xian Guangzhou Phoenix Zhuhai Hangzhou San Jose Sao Paulo Hong Kong Toronto Johannesburg Sydney Hsinchu Melbourne Kuala Lumpur New Delhi Penang Pune The only non-commissioned sales team in the semiconductor industry 4 Annual Net Sales Growth 2500 2400 2300 • 102 consecutive quarters of profitability! 2200 2100 2000 1900 1800 1700 1600 1500 1400 1300 $ Million 1200 1100 1000 900 800 700 600 500 400 300 200 100 0 FY93 FY94 FY95 FY96 FY97 FY98 FY99 FY00 FY01 FY02 FY03 FY04 FY05 FY06 FY07 FY08 FY09 FY10 FY11 FY12 FY13 FY14 FY15 FY16 5 Broadening
    [Show full text]
  • Mikroelektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers
    mikroElektronika | Free Online Book | PIC Microcontrollers | Introduction: World of Microcontrollers ● TOC ● Introduction ● Ch. 1 ● Ch. 2 ● Ch. 3 ● Ch. 4 ● Ch. 5 ● Ch. 6 ● Ch. 7 ● Ch. 8 ● Ch. 9 ● App. A ● App. B ● App. C Introduction: World of microcontrollers The situation we find ourselves today in the field of microcontrollers had its beginnings in the development of technology of integrated circuits. This development has enabled us to store hundreds of thousands of transistors into one chip. That was a precondition for the manufacture of microprocessors. The first computers were made by adding external peripherals such as memory, input/output lines, timers and others to it. Further increasing of package density resulted in creating an integrated circuit which contained both processor and peripherals. That is how the first chip containing a microcomputer later known as a microcontroller has developed. This is how it all got started... In the year 1969, a team of Japanese engineers from BUSICOM came to the USA with a request that a few integrated circuits for calculators were to be designed according to their projects. The request was sent to INTEL and Marcian Hoff was in charge of the project there. Having experience working with a computer, the PDP8, he came up with an idea to suggest fundamentally different solutions instead of the suggested design. This solution presumed that the operation of integrated circuit was to be determined by the program stored in the circuit itself. It meant that configuration would be simpler, but it would require far more memory than the project proposed by Japanese engineers.
    [Show full text]
  • Microcontroller Based System Design Staff Name : B.Muthuselvi
    M.I.E.T. ENGINEERING COLLEGE (Approved by AICTE and Affiliated to Anna University Chennai) TRICHY – PUDUKKOTTAI ROAD, TIRUCHIRAPPALLI – 620 007 DEPARTMENT OF ELECTRICAL & ELECTRONICS ENGINEERING COURSE MATERIAL EE6008 - MICROCONTROLLER BASEDSYSTEM DESIGN IV YEAR – VII SEMESTER DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING (SYLLABUS) Sub. Code : EE6008 Branch/Year/Sem : EEE/IV/VII Sub Name : Microcontroller Based System Design Staff Name : B.Muthuselvi UNIT I INTRODUCTION TO PIC MICROCONTROLLER Introduction to PIC Microcontroller–PIC 16C6x and PIC16C7x Architecture–PIC16cxx–- Pipelining - Program Memory considerations – Register File Structure - Instruction Set - Addressing modes – Simple Operations. UNIT II INTERRUPTS AND TIMER PIC micro controller Interrupts- External Interrupts-Interrupt Programming–Loop time subroutine - Timers-Timer Programming– Front panel I/O-Soft Keys– State machines and key switches– Display of Constant and Variable strings. UNIT III PERIPHERALS AND INTERFACING I2C Bus for Peripherals Chip Access– Bus operation-Bus subroutines– Serial EEPROM— Analog to Digital Converter–UART-Baud rate selection–Data handling circuit–Initialization - LCD and keyboard Interfacing - ADC, DAC, and Sensor Interfacing. UNIT IV INTRODUCTION TO ARM PROCESSOR ARM Architecture –ARM programmer’s model –ARM Development tools- Memory Hierarchy –ARM Assembly Language Programming–Simple Examples–Architectural Support for Operating systems. UNIT V ARM ORGANIZATION 3-Stage Pipeline ARM Organization– 5-Stage Pipeline ARM Organization–ARM Instruction Execution- ARM Implementation– ARM Instruction Set– ARM coprocessor interface– Architectural support for High Level Languages – Embedded ARM Applications. TEXT BOOKS: 1. Peatman,J.B., ―Design with PIC Micro Controllers‖PearsonEducation,3rdEdition, 2004. 2. Furber,S., ―ARM System on Chip Architecture‖ AddisonWesley trade Computer Publication, 2000. DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING (SYLLABUS) Sub.
    [Show full text]
  • UNIT-I - OVERVIEW of EMBEDDED SYSTEMS Embedded System
    UNIT-I - OVERVIEW OF EMBEDDED SYSTEMS Embedded System . An embedded system can be thought of as a computer hardware system having software embedded in it. An embedded system can be an independent system or it can be a part of a large system. An embedded system is a microcontroller or microprocessor based system which is designed to perform a specific task. For example, a fire alarm is an embedded system; it will sense only smoke. An embedded system has three components − It has hardware. It has application software. It has Real Time Operating system (RTOS) that supervises the application software and provide mechanism to let the processor run a process as per scheduling by following a plan to control the latencies. RTOS defines the way the system works. It sets the rules during the execution of application program. A small scale embedded system may not have RTOS. So we can define an embedded system as a Microcontroller based, software driven, reliable, real-time control system. Characteristics of an Embedded System Single-functioned − An embedded system usually performs a specialized operation and does the same repeatedly. For example: A pager always functions as a pager. Tightly constrained − All computing systems have constraints on design metrics, but those on an embedded system can be especially tight. Design metrics is a measure of an implementation's features such as its cost, size, power, and performance. It must be of a size to fit on a single chip, must perform fast enough to process data in real time and consume minimum power to extend battery life.
    [Show full text]