Networked Embedded Systems Sachin Katti EE107 Spring 2016 Lecture 3 Microcontrollers.

Slides:



Advertisements
Similar presentations
ECP2036 Microprocessor and Interfacing
Advertisements

EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Course Overview and The 8051 Architecture
Processor System Architecture
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Engr. M.K.Debnath1 Microcontroller and PLC Eng. ISRAFIL KHAN. DIPLOMA IN ELECTRONIC.
Microcontroller – PIC – 4 PIC types PIC architecture
CS-334: Computer Architecture
Embedded Computer ( Sisteme incorporate ) MPU vs. CPU / Alternative Texas Instrument, Freescale, ARM RISC and CISC approaches Single Chip Design System.
Embedded Systems Programming
1 The System Unit Lecture 2 CSCI 1405 Introduction to Computer Science Fall 2006.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
I/O Subsystem Organization and Interfacing Cs 147 Peter Nguyen
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
The 8051 Microcontroller Architecture
ASPPRATECH.
Microcontroller based system design
Microcontroller: Introduction
Embedded System Spring, 2011 Lecture 3: The PIC Microcontrollers Eng. Wazen M. Shbair.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Fundamental of Microcontrollers
ARM Procesorové jadrá a procesory architektúry.  The ARM is a 32-bit reduced instruction set computer (RISC) instruction set architecture (ISA) developed.
MCU – Microcontroller Unit – 1 MCU  1 cip or VLSI core – application-specific.
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
Camera Interfacing using ARM7
INTRODUCTION TO MICROCONTROLLER. What is a Microcontroller A microcontroller is a complete microprocessor system, consisting of microprocessor, limited.
CS-280 Dr. Mark L. Hornick 1 Parts of a GP Computer (Microcomputer) Contains separate Microprocessor chip Memory/Memory controller MB control chips Peripheral.
The 6713 DSP Starter Kit (DSK) is a low-cost platform which lets customers evaluate and develop applications for the Texas Instruments C67X DSP family.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
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.
Embedded Systems Design. General Purpose Processors: Software BASIC ARCHITECTURE - Datapath BASIC ARCHITECTURE - Datapath 2.
Introduction to Computing: Lecture 4
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
Understanding Computers, Ch.31 Chapter 3 The System Unit: Processing and Memory.
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
Typical Microcontroller Purposes
Micro processor and Micro Controllers
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
General Concepts of Computer Organization Overview of Microcomputer.
ATMEL AVR 8 bit RISC MICROCONTROLLERS a general comparison.
Microprocessors For a microprocessor to give a working microcomputer system, which can be used for control tasks, additional chips are necessary, e.g.
Computer Organization & Assembly Language © by DR. M. Amer.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
L/O/G/O Input Output Chapter 4 CS.216 Computer Architecture and Organization.
What is a Microprocessor ? A microprocessor consists of an ALU to perform arithmetic and logic manipulations, registers, and a control unit Its has some.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Lecture 7: Overview Microprocessors / microcontrollers.
Chapter Microcontroller
CECS 347 Microprocessors and Controllers II Chapter 1 - An Overview of Computing Systems Instructor: Eric Hernandez.
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University.
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
Know Difference Between Microprocessors and Microcontrollers.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
Hardware Architecture
EE 107 Fall 2016 Lecture 3 Micro-controller Networked Embedded Systems Sachin Katti.
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
IF I ONLY HAD A BRAIN THE MICROCONTROLLER
Popular Microcontrollers and their Selection by Lachit Dutta
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
Microcontrollers & GPIO
UNIT – Microcontroller.
Chapter 1: The 8051 Microcontrollers
Introduction to Microprocessors and Microcontrollers
Wireless Embedded Systems
Procesorové jadrá a procesory architektúry
Course Code 114 Introduction to Computer Science
Presentation transcript:

Networked Embedded Systems Sachin Katti EE107 Spring 2016 Lecture 3 Microcontrollers

Rest of the Quarter Basic Plumbing of Embedded Systems (4 lecs) – Microcontrollers, Timers, Interrupts Talking to the Digital World (3 lecs) – GPIO, Asynchronous & Synchronous Serial Buses Talking to the Analog World (4 lecs) – Sensing circuits, A/D & D/A, Pulse Width Modulation Putting it all together (5 lecs) – Networking, Signal Conditioning & Processing, Power Management, Interaction with the Cloud

Introduction to Microcontrollers

A microcontroller (µC) is a small computer on a single integrated circuit consisting of a relatively simple central processing unit (CPU) combined with peripheral devices such as memories, I/O devices, and timers. – By some accounts, more than half of all CPUs sold worldwide are microcontrollers

Introduction to Microcontrollers Low clock rate ~20 MHz 8-bit – 32-bit architectures Flash memory on-chip for program storage Many peripherals on-chip (ADC, DAC, crypto) Low power ~100 mW active (20 μW idle) Buses for interfacing with external peripherals EEPROM

Die shot of a microcontroller

Microcontroller VS Microprocessor A microcontroller is a small computer on a single integrated circuit containing a processor core, memory, and programmable input/output peripherals. A microprocessor incorporates the functions of a computer’s central processing unit (CPU) on a single integrated circuit.

Microcontroller VS Microprocessor

Types of Processors In general-purpose computing, the variety of instruction set architectures today is limited, with the Intel x86 architecture overwhelmingly dominating all. There is no such dominance in embedded computing. On the contrary, the variety of processors can be daunting to a system designer. Things that matter – Peripherals, Concurrency & Timing, Clock Rates, Memory sizes (SRAM & flash), Package sizes

Types of Microcontrollers

Design Choices Made by MCUs Embedded processors typically have a dedicated function. – They are not asked to perform arbitrary functions with user-defined software. Consequently, the processors can be more specialized. Specialization can bring enormous benefits. – consume far less energy, and consequently be usable with small batteries for long periods of time. – are much smaller – Or include specialized hardware to perform operations that would be costly to perform on general-purpose hardware, such as image analysis.

Early Microcontrollers

ARM Microcontroller

Many 32-bit microcontrollers implement some variant of an ARM instruction set, developed by ARM Limited. – ARM originally stood for Advanced RISC Machine, and before that Acorn RISC Machine, Processors that implement the ARM ISA are widely used in mobile phones to realize the user interface functions, as well as in many other embedded systems. Semiconductor vendors license the instruction set from ARM Limited and produce their own chips. – ARM processors are currently made by Alcatel, Apple, Atmel, Broadcom, Cirrus Logic, Freescale, LG, Marvell Technology Group, NEC, NVIDIA, NXP, Samsung, Sharp, ST Microelectronics, Texas Instruments, VLSI Technology, Qualcomm, Yamaha, and others.

How to select a microcontroller? The designer must first ask: "What does the MCU need to do in my system?" – The answer to this one simple question dictates the required MCU features for the system and, thus, is the controlling agency in the selection process.

How to select a microcontroller? Does it have the required number of I/O (input/output) pins/ports? – For example, too few = can’t do the job, and too many = excessive cost Does it have all the other required peripherals? – Such as serial I/O, random-access memory (RAM), read-only memory (ROM), analog-to-digital (A/D), digital-to-analog (D/A), etc.

How to select a microcontroller? Does the CPU (central processor unit) core have the correct throughput? – For example, computer power, to handle the system requirements over the life of the system for the chosen implementation language? Too much is wasteful, and too little will never work. Is the MCU affordable? – If the MCU is not affordable for the project, all the other questions become irrelevant and you must start looking for another MCU.

Design Requirements of BattOr Inputs: What data will be collected, what are the controls? Outputs: What will be transmitted, displayed, or controlled? Sample rate: What interval does it need to collect data? Communication: What data needs to be sent and received, how? Storage: What data needs to be stored and for how long? Processing: What processing needs to be done on the data? Power: How long does it need to last between charges? Form factor: How will the device fit into the physical world? Cost: How much will the users be willing to pay?

Design Requirements of BattOr Inputs: Power measurements from phone or laptop Outputs: Power samples at ~10 ksps Sample rate: CPU/GPU state change interval (~1 msec) Communication: Power samples at ~10 ksps Storage: Power samples at ~10 ksps until experiment is over Processing: Move around power samples between devices Power: Same power supply as phone or laptop Form factor: Carry with the phone or laptop Cost: ~$300

How to select a microcontroller? Power/cost IO/speed/etc STM32 MCU 8051 MCU Atmel XMega MCU

MCU chosen  Atmel XMega Language: C or assembly Register width: 8-bit Peripheral IO: Memory Mapped IO Clock rate: 32 MHz Programmer and debugger: External USB device (ISP)

Four Assignments 1.Memory Mapped IO, Timers & Interrupts – Learn the SDK – LED control via GPIO using the CPU – Timer to drive the LEDs vis interrupts 2.Talking to the digital world – Interface with PC USB via asynchronous serial bus – Interface with digital potentiometers using synchronous serial bus 3.Talking to the analog world – Analog signal capture & filtering – Amplification Putting it together – Synchronization with the PC – Moving the data to the PC & analysis – DMA (for extra credit)