Microcontroller Introduction

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

An Introduction to MPLAB Integrated Development Environment

The Central Processing Unit:

Chapter 13. PIC Family Microcontroller

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

EMBEDDED SYSTEM BASICS AND APPLICATION

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

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

Microprocessor or Microcontroller?

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

Chapter 2 Logic Gates and Introduction to Computer Architecture

MICROPROCESSOR AND MICROCOMPUTER BASICS

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

Computer Automation Techniques. Arthur Carroll

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

Lecture 2: Computer Hardware and Ports.

Tutorial for MPLAB Starter Kit for PIC18F

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

Discovering Computers Living in a Digital World

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

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

Introducción. Diseño de sistemas digitales.1

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

Fondamenti su strumenti di sviluppo per microcontrollori PIC

ELEC 5260/6260/6266 Embedded Computing Systems

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

8051 MICROCONTROLLER COURSE

MULTIPLE CHOICE FREE RESPONSE QUESTIONS

Computer and Set of Robots

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

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

Central Processing Unit (CPU)

Byte code Interpreter for 8051 Microcontroller

Microprocessor and Microcontroller Architecture

İSTANBUL AYDIN UNIVERSITY

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Lecture 1. Introduction to Embedded Computer Systems

2.0 Command and Data Handling Subsystem

Accurate Measurement of the Mains Electricity Frequency

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

CHAPTER 7: The CPU and Memory

Development of an Internet based Embedded System for Smart House Controlling and Monitoring

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

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

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

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

VOICE RECOGNITION KIT USING HM2007. Speech Recognition System. Features. Specification. Applications

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Computer Organization and Components

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

Lesson 10:DESIGN PROCESS EXAMPLES Automatic Chocolate vending machine, smart card and digital camera

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

PICNet 1. PICNet 1 PIC18 Network & SD/MMC Development Board. Features. Applications. Description

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

Microcontrollers A Brief History of Microprocessors

Computer Hardware HARDWARE. Computer Hardware. Mainboard (Motherboard) Instructor Özgür ZEYDAN

Computer Components Study Guide. The Case or System Box

Processor Architectures

Lecture N -1- PHYS Microcontrollers

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

ONLINE HEALTH MONITORING SYSTEM USING ZIGBEE

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

1 PERSONAL COMPUTERS

Learning Outcomes. Simple CPU Operation and Buses. Composition of a CPU. A simple CPU design

LSN 2 Computer Processors

Keywords ATM Terminal, Finger Print Recognition, Biometric Verification, PIN

Evolution of 8-bit Microcontrollers

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

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.

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

The Heartbeat behind Portable Medical Devices: Ultra-Low-Power Mixed-Signal Microcontrollers

Final Design Report 19 April Project Name: utouch

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

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

A Practical Approach to Education of Embedded Systems Engineering

Chapter 3: Computer Hardware Components: CPU, Memory, and I/O

STM32L. Ultra-low-power Cortex -M3 devices

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

RAM & ROM Based Digital Design. ECE 152A Winter 2012

CHAPTER 4 MARIE: An Introduction to a Simple Computer

Administrative Issues

MACHINE ARCHITECTURE & LANGUAGE

Mobile Devices and Systems Lesson 02 Handheld Pocket Computers and Mobile System Operating Systems

CISC, RISC, and DSP Microprocessors

Chapter 1 Computer System Overview

Microcontrollers in Practice

THE TRANSITION FROM THE 8085 TO THE MODERN WORLD

An Introduction to Computer Science and Computer Organization Comp 150 Fall 2008

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

THREE YEAR DEGREE (HONS.) COURSE BACHELOR OF COMPUTER APPLICATION (BCA) First Year Paper I Computer Fundamentals

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller

Software engineering for real-time systems

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

Chapter 2 Features of Embedded System

Company Overview & Capabilities

What is a System on a Chip?

The Motherboard Chapter #5

Transcription:

Microcontroller Introduction ECE110 Lecture 1 John A. Chandy Adapted from Prof. Martin Fox s s ECE266 Notes

Agenda Course outline/ goals and approach Quick Overview of Computer Architecture Definition of Microcontrollers Components Microcontroller Market Key Suppliers

Introduction Basics of computer architecture How does a computer work? Microcontrollers, microprocessors and microcomputers Microcontrollers are general purpose digital logic replacements

Course goals Learn about microcontrollers Learn how to apply them in engineering applications Learn the basics of embedded systems Provide framework for future design lab courses

Basic Computer Architecture Control Logic R0 R1. Registers. Operand 1 Operand 2 ALU Accumulator. Instruction Register Results/data bus Instruction Memory I/O

State Machine representation of CPU Instruction Fetch Load Instruction Register Instruction Decode Save Result Memory Access Execute Fetch Operands

RISC Vs. CISC RISC = Reduced Instruction Set Computer CISC = Complex Instruction Set Computer Microcontrollers = mostly RISC Microcomputer for PC = x86 is CISC Pipelining = easier in RISC PIC = 35 instructions

Examples of Instructions: 1 Immediate: Add literal and w Register: AND W with F From: PIC data sheet

Assembly Language Human readable coding of machine language Assembler translates to binary Each line-> one instruction

Example of assembly Language program

Higher Level Languages Compiler translates from code to computer instruction set. Examples: Basic, Fortran, C, C++, Java Application packages: Mathematica, Mathcad, spreadsheets -> even higher level languages

Operating Systems Perform I/O I.e. printing, storage to disk Graphical user interface [GUI], I.e. Windows Virtual memory Resource sharing [allows multiple programs to be running at the same time] Network interface Security

Embedded Systems Dedicated computers for SMART applications Automotive: engine control, transmission control Microwaves, CDs, cellular telephones, remotes DSP: embedded controller optimized for math operations [multiplies, etc.] often used for image and sound processing

Summary We have given you a brief survey of computer and microprocessor essentials Computer engineers use microprocessors as part of larger devices, I.e. electronic and control systems [embedded computers] Such microprocessors can act as logic replacement devices Microprocessor-based systems are easier to document and upgrade because the design is in the [changeable] coding

Microcontrollers vs.. Microprocessors What is the difference between a microprocessor and a microcontroller? A microcontroller usually incorporates other specialized components that are useful in embedded systems Serial ports (RS-232, USB) Networking (WiFi( WiFi,, Ethernet, ZigBee) On-board memory (Flash, DRAM, SRAM) Audio (MP3 encoding, signal processing) Analog I/O (DAC, ADC)

Microcontrollers Overview Microcontrollers - a key impact technology for the 21st century Microcontrollers.com: In the aggregate, PC microprocessors are responsible for less than 1% of all processors sold. Embedded processors outsell PC processors by more than 99%. This course will provide enough information AND practical experience to get you started on the road to developing your own designs

Microcontrollers and Embedded Controllers Controls some process or aspect of the environment: Microcontrollers Vs. DSPs DSPs optimized for math [multiplies] Embedded controller may not be a microcontroller per se but is used for special purpose control application Typical applications: temperature control, smart instrument, GPS, digital lock, cell phone, etc.

Examples Personal information products: Cell phone, pager, watch, pocket recorder, calculator Laptop components: mouse, keyboard, modem, fax card, sound card, battery charger Home appliances: door lock, alarm clock, thermostat, air conditioner, tv remote, hair dryer, VCR, small refrigerator, exercise equipment, washer/dryer, microwave oven Toys; video games, cars, dolls, etc. Cars are about 20-30% silicon today, mostly microcontrollers ($4b/yr) Smart cards [credit cards plus] Usually anything with a keypad [simple calculators however have dedicated calculator chips]

Assignment 1: Due Next Thursday One page [no more] written assignment to be handed in. Find a microcontroller based device or product [i.e. Logitech optical computer mouse]. Determine what specific microcontroller is used in the device [i.e. PIC 16F874]. Explain the function or functions of the microcontroller in the device [i.e. converts pulses from rotary encoder to serial RS 232 communication protocol for transmission to computer input port]. Be prepared to present in class.

Microcontroller Families Most manufacturers offer a wide range of devices for low end to higher end applications Microchip shipped its 1 billionth microcontroller in the fall of 1999, the 2 billionth in spring of 2002, and its 3 billionth in winter of 2004.

Microcontroller Manufacturers Analog Devices Atmel Dallas Semiconductor Freescale Semiconductor Hitachi Semiconductor Intel Microchip National Semiconductor Renesas STMicro Texas Instruments Zilog

Microcontroller Market >40 suppliers, >50 architectures $26 Billion market Shipments- > 16 Billion in 2000, 8 bit > 1/2 market Major Players: Microchip 16Fxx, Intel 8051, Motorola MC68HCXX, National COP800, SGS/Thomson ST62, Zilog Z86Cxx

Microcontrollers Processing power: 4 bit, 8 bit, 16 bit, 32 bit 2003 market share Specific features: communications, keyboard handling, signal processing, video processing

Embedded Controller- components ALU (arithmetic logic unit) RAM (Random Access Memory) EEPROM (Electrically Erasable Programmable Read Only Memory) I/O (input/output) - serial and parallel Timers [typically three designated 0,1,2] A/D converter Clock USART [univ[ univ. synchronous/asynch receiver and xmtr] Interrupt controller [PIC16F874[ diagram]

16F87x Family: Features

16F874 Block Diagram

16F87x Instruction Set [35]

MPLAB IDE IDE = Integrated Development Environment MPLAB Editor MPLAB Assembler MPLAB ICD [in circuit debugger] MPLAB SIM [simulator] Programmer with ICD module

Blink.c Initial() Initialize internal registers Blink() Blink the LEDs LoopTime() Wait for 10 milliseconds interupt handler() Check for interrupts from buttons

Summary Microprocessors and embedded controllers are a ubiquitous part of life today These devices come in a wide variety of configurations and designs Headhunters report that EEs familiar with µc, µp design are in the highest possible demand One pager due next Lecture!

More Information In the next session we will explore in more depth key features of µcontrollers Boards and ICDs in lab. All major Manufacturers have web sites