Chapter 1 THE PIC MICROCONTROLLERS: HISTORY AND FEATURES

Similar documents
Chapter 13. PIC Family Microcontroller

Microprocessor or Microcontroller?

2.0 Command and Data Handling Subsystem

Microcontrollers in Practice

Handout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories

Atmel Norway XMEGA Introduction

Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Microcontrollers A Brief History of Microprocessors

Am186ER/Am188ER AMD Continues 16-bit Innovation

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

Embedded Software Development: Spottbillige Hardware + OSS = Zum Spielen zu Schade!

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Freescale Semiconductor, I

USB OTG and Embedded Host Microchip Technology Incorporated. All Rights Reserved. Slide 1

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

Digitale Signalverarbeitung mit FPGA (DSF) Soft Core Prozessor NIOS II Stand Mai Jens Onno Krah

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Atmel s Self-Programming Flash Microcontrollers

Tutorial for MPLAB Starter Kit for PIC18F

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Ingar Fredriksen AVR Applications Manager. Tromsø August 12, 2005

Display Message on Notice Board using GSM

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Computer Automation Techniques. Arthur Carroll

CAN bus board. EB018

EMBEDDED SYSTEM BASICS AND APPLICATION

Chapter 2 Features of Embedded System

8051 MICROCONTROLLER COURSE

MX PIC24F Educational Module User Manual

Evolution of 8-bit Microcontrollers

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Advanced Microcontrollers Grzegorz Budzyń Lecture. 3: Electrical parameters of microcontrollers 8051 family

MICROPROCESSOR AND MICROCOMPUTER BASICS

Computer Organization and Components

Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:

Microprocessor and Microcontroller Architecture

SBC6245 Single Board Computer

7a. System-on-chip design and prototyping platforms

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

EEM870 Embedded System and Experiment Lecture 1: SoC Design Overview

Von der Hardware zur Software in FPGAs mit Embedded Prozessoren. Alexander Hahn Senior Field Application Engineer Lattice Semiconductor

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Technical Product Specifications Dell Dimension 2400 Created by: Scott Puckett

Soft processors for microcontroller programming education

Lab Experiment 1: The LPC 2148 Education Board

Lecture 2: Computer Hardware and Ports.

STM32 F-2 series High-performance Cortex-M3 MCUs

Data Transfer between Two USB Flash SCSI Disks using a Touch Screen

Implementing a Digital Answering Machine with a High-Speed 8-Bit Microcontroller

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Memory Basics. SRAM/DRAM Basics

Microtronics technologies Mobile:

DEVELOPMENT OF PC BASED HOME ENERGY MANAGEMENT SYSTEM MUHAMAD KHAIRI BIN CHE YUSOFF UNIVERSITI MALAYSIA PAHANG

Using Xbee in Serial Communication

DATA LOGGER AND REMOTE MONITORING SYSTEM FOR MULTIPLE PARAMETER MEASUREMENT APPLICATIONS. G.S. Nhivekar, R.R.Mudholker

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

C Programming. for Embedded Microcontrollers. Warwick A. Smith. Postbus 11. Elektor International Media BV. 6114ZG Susteren The Netherlands

tinyavr Microcontrollers White Paper is the registered trademark of Atmel Corporation, 2325 Orchard Parkway, San Jose, CA Rev.

ET-BASE AVR ATmega64/128

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Embedded Patient Monitoring System

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

How To Use Nuc123 (Nuc123) For A Week

Serial port interface for microcontroller embedded into integrated power meter

Building Blocks for PRU Development

A 5 Degree Feedback Control Robotic Arm (Haptic Arm)

Lecture N -1- PHYS Microcontrollers

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

C8051F020 Utilization in an Embedded Digital Design Project Course. Daren R. Wilcox Southern Polytechnic State University Marietta, Georgia

Pre-tested System-on-Chip Design. Accelerates PLD Development

Arduino Due Back. Warning: Unlike other Arduino boards, the Arduino Due board runs at 3.3V. The maximum. Overview

System-on-a-Chip with Security Modules for Network Home Electric Appliances

Obj: Sec 1.0, to describe the relationship between hardware and software HW: Read p.2 9. Do Now: Name 3 parts of the computer.

All Programmable Logic. Hans-Joachim Gelke Institute of Embedded Systems. Zürcher Fachhochschule

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

SmartFusion csoc: Basic Bootloader and Field Upgrade envm Through IAP Interface

85MIV2 / 85MIV2-L -- Components Locations

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Discovering Computers Living in a Digital World

Fondamenti su strumenti di sviluppo per microcontrollori PIC

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Open Architecture Design for GPS Applications Yves Théroux, BAE Systems Canada

Introducing AVR Dragon

THE TRANSITION FROM THE 8085 TO THE MODERN WORLD

Software engineering for real-time systems

Wireless Microcontrollers for Environment Management, Asset Tracking and Consumer. October 2009

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Lab 1 Course Guideline and Review

The Programming Interface

Fastboot Techniques for x86 Architectures. Marcus Bortel Field Application Engineer QNX Software Systems

Chapter 2 Logic Gates and Introduction to Computer Architecture

Embedded Software development Process and Tools: Lesson-4 Linking and Locating Software

Transcription:

Islamic University Gaza Engineering Faculty Department of Computer Engineering ECOM 3322: Embedded Systems Discussion Chapter 1 THE PIC MICROCONTROLLERS: HISTORY AND FEATURES Eng. Eman R. Habib February, 2014

2 Embedded Systems Discussion Microprocessor vs. Microcontroller: - Microprocessor is general-purpose microprocessors such as Intel s x86 family. - Microprocessor does not contain RAM, ROM or I/O Ports on the chip itself. Adding them make it bulkier and much more expensive. - Microcontroller has CPU and fixed amount of RAM, ROM, I/O Ports and Timer all on a single chip. Embedded systems - Microprocessor and Microcontroller are widely used in embedded system products. - Embedded system means that the application and processor are combined into a single system. - It is also called a dedicated system because it is dedicated to doing one type of job. - In an embedded system, typically only one application software is burned into ROM. (e.x. Printer). - One of the most critical needs of an embedded system is to decrease power consumption and space. µcontrollers There are five major 8-bit microcontrollers: Freescale Semiconductor's (formerly Motorola) 68HC08/68HC11 Intel's 8051 Atmel's AVR Zilog's Z8 PIC from Microchip Technology. Each of the above microcontrollers has a unique instruction set and register set; therefore, they are not compatible with each other. Programs written for one will not run on the others. There are 16-bit and 32-bit microcontrollers.

3 Embedded Systems Discussion Criteria for choosing µcontroller 1. Meeting the computing needs of the task at hand efficiency and cost effectively: a) Determine its type, 8-bit,16-bit or 32-bit b) Speed c) Packaging (40-Pin or QFP) d) Power consumption e) The amount of RAM and ROM f) The number of I/O pins and the timer g) Cost per unit h) Ease of upgrade. 2. Availability of SW and HW development tools: Compilers Assemblers Debuggers Emulators 3. Wide availability and reliable source: Having multiple sources for a given part means you are not hostage to one supplier. More importantly, competition among suppliers brings about lower cost for that product. Overview of the PIC18 Family An 8-bit µcontroller called PIC is introduces in 1989 by Microchip Technology Corporation. PIC: Peripheral Interface Controller. The PICl8 is an 8 bit microprocessor. It includes: Small Data RAM Few bytes of ROM One timer I/O ports PIC18 features RISC Architecture On-chip program, Code, ROM Data RAM Data EEPROM Timers ADC USART I/O Ports

4 Embedded Systems Discussion PIC µc program ROM - ROM is used to store programs and for that reason it is called program or code ROM. - PIC 18 can support up to 2MB. - Generally, they come with 4KB 128KB. - Available in flash, OTP, UV-EPROM, and masked. UV-EPROM - The window on the UV-EPROM chip allows the UV light to erase the ROM. - The problem with the UV-EPROM is that it takes around 20 minutes to erase the chip before it can be programmed again. - PIC18Fxxx with flash - The letter F indicates that the ROM is flash. - It is ideal for fast development because flash memory can be erased in seconds. PIC18Cxxxx with OTP - One time programmable - C indicates the OTP ROM - Used for mass production - Cheaper

5 Embedded Systems Discussion Masked Program will be burned into the PIC chip during the fabrication process. Data RAM - Max. 4096 Bytes (4 kb) of data RAM space. - The data RAM size varies from 256 bytes to 4096 bytes. - Data RAM space has two components o Varied GPR, General Purpose RAM For read/write and data manipulation Divided into banks of 256 B o Fixed SFR, Special Function Registers Data EEPROM Some of PICs have a small amount of EEPROM used for critical data storing. I/O pins - The number of pins for the PICI8 package goes from 18 to 80. - The PIC 18 can have from 16 to 72 pins dedicated for I/O. PIC µc peripherals Timers CAN- (Controller Area Network) LIN- (Local Interconnect Network) USB- (Universal Serial Bus) I²C- (Inter-Integrated Circuit) SPI- (Serial Peripheral Interface) Serial or Ethernet Interface ADC (Analog Digital Converter) USART- (Universal Synchronous Asynchronous Receiver Transmitter)

6 Embedded Systems Discussion PROBLEMS 1. True or False. A general-purpose microprocessor has on-chip ROM. 2. True or False. Generally, a microcontroller has on-chip ROM. 3. True or False. A microcontroller has on-chip I/O ports. 4. True or False. A microcontroller has a fixed amount of RAM on the chip. 5. What components are usually put together with the microcontroller onto a single chip? CPU, RAM, ROM, EEPROM, I/O, Timer, Serial COM port, ADC. 6. Intel's Pentium chips used in Windows PCs need external and chips to store data and code. RAM and ROM. 7. List three embedded products attached to a PC. Keyboard, mouse, printer. 8. Why would someone want to use an x86 as an embedded processor? Computing power and compatibility with millions and millions of PCs. 9. Give the name and the manufacturer of some of the most widely used 8-bit microcontrollers. PIC 16x Microchip Technology, 8051 - Intel, AVR Atmel, Z8 Zilog, 68HC11 Freescale Semiconductor (Motorola). 10. In Question 9, which one has the most manufacture sources? 8051. 11. In a battery-based embedded product, what is the most important factor in choosing a microcontroller? Power consumption. 12. In an embedded controller with on-chip ROM, why does the size of the ROM matter? The ROM area is where the executable code is stored. 13. In choosing a microcontroller, how important is it to have multiple sources for that chip? Very, in case there is a hostage by one supplier. 14. What does the term "third-party support" mean? Suppliers other than the manufacturer of the chip. 15. Suppose that a microcontroller architecture has both 8-bit and 16-bit versions. Which of the following statements is true? (a) The 8-bit software will run on the 16-bit system. (b) The 16-bit software will run on the 8-bit system. 20. Check the Microchip web site to see if we have a ROMless version of the PIC 18. Give the part number if there is one. PIC18C601, PIC18C801. 28. Of the PICI8 family, which memory type is the most cost effective if you are using a million of them in an embedded product? OTP and masked. Best Wishes