Lecture 7: Overview Microprocessors / microcontrollers.

Slides:



Advertisements
Similar presentations
Slide 4-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 4 Computer Organization.
Advertisements

1-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
Course Overview and The 8051 Architecture
Processor System Architecture
MICRO PROCESSER The micro processer is a multipurpose programmable, clock driven, register based, electronic integrated device that has computing and decision.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
1-1 Microprocessor Engineering Microprocessor Systems Microcontrollers Infineon 16-bit Processor Family  specifically 167CS microcontroller C Programming.
COMP3221: Microprocessors and Embedded Systems Lecture 2: Instruction Set Architecture (ISA) Lecturer: Hui Wu Session.
Project Testing; Processor Examples. Project Testing --thorough, efficient, hierarchical --done by “independent tester” --well-documented, repeatable.
Computer Organization and Assembly language
16.317: Microprocessor System Design I Instructor: Dr. Michael Geiger Spring 2012 Lecture 29: Microcontroller intro.
ASPPRATECH.
Microcontroller based system design
Microprocessor and Microcontroller Based Systems
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Computer Organization and Assembly language
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
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
MCU – Microcontroller Unit – 1 MCU  1 cip or VLSI core – application-specific.
Introduction to Microcontrollers Dr. Konstantinos Tatas
Department of Electronic & Electrical Engineering Embedded system Aims: Introduction to: Hardware. Software Ideas for projects ? Robotics/Control/Sensors.
Computer Organization
Part 1.  Intel x86/Pentium family  32-bit CISC processor  SUN SPARC and UltraSPARC  32- and 64-bit RISC processors  Java  C  C++  Java  Why Java?
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
0 - 1 Digital Signal Controller TMS320F2812 Texas Instruments Incorporated European Customer Training Center University of Applied Sciences Zwickau (FH)
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
MICROPROCESSOR AND MICRO CONTROLLER
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
General Concepts of Computer Organization Overview of Microcomputer.
Atmel AVR Jared Bevis January 14, The Power of Your Chips The main power of your chips lies in the programming language/compiler available to you.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
 Historical view:  1940’s-Vacuum tubes  1947-Transistors invented by willliam shockely & team  1959-Integrated chips invented by Texas Instrument.
Embedded System. What is an Embedded System? Computing systems embedded within electronic devices Hard to define – Nearly any computing system other than.
MICROOCESSORS AND MICROCONTROLLER:
Department of Electronic & Electrical Engineering EE10140 Introduction to Microprocessors and interfacing (Embedded Systems)  Microcontrollers (PIC16F84A)
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
Department of Electronic & Electrical Engineering Lecture 2. PIC16F84A Architecture / Instructions Memory. Program/Data (Harvard) File Registers (Data).
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Department of Electronic & Electrical Engineering Introduction to microcontrollers A microcontroller is a small computer on a single integrated circuit.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Modified Harvard architecture 8-bit RISC single chip microcontroller Complete System-on-a-chip On Board Memory (FLASH, SRAM & EEPROM) On Board Peripherals.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
DEPARTMENT OF ELECTRONICS ENGINEERING V-SEMESTER MICROPROCESSOR & MICROCONTROLLER 1 CHAPTER NO microcontroller & programming.
Popular Microcontrollers and their Selection by Lachit Dutta
PROGRAMMABLE LOGIC CONTROLLERS SINGLE CHIP COMPUTER
MICROCONTROLLER ARCHITECTURE & ASSEMBLY LANGUAGE PROGRAMMING
Microprocessor and Microcontroller Fundamentals
Microprocessor Systems Design I
MCU – Microcontroller Unit – 2
Microprocessor Systems Design I
Course Overview and The 8051 Architecture
Introduction to Microprocessors
Introduction to Microprocessors and Microcontrollers
Tiny Computers, Hidden Control
EE Embedded Systems Fall 2015
ریز پردازنده. ریز پردازنده مراجع درس میکروکنترلرهای AVR برنامه نویسی اسمبلی و C محمدعلی مزیدی، سپهر نعیمی و سرمد نعیمی مرجع کامل میکروکنترلرهای AVR.
CISC AND RISC SYSTEM Based on instruction set, we broadly classify Computer/microprocessor/microcontroller into CISC and RISC. CISC SYSTEM: COMPLEX INSTRUCTION.
Introduction to Microprocessor Programming
EECE.3170 Microprocessor Systems Design I
Computer Architecture Assembly Language
Presentation transcript:

Lecture 7: Overview Microprocessors / microcontrollers. Device architectures Software development High level languages The EXAM

Microcontrollers / Microprocessors Computer on a chip IO memory often application specific Cheap often used in embedded systems. Microprocessor CPU ALU registers. Needs external memory. Example use: personal computers.

Components of a Microprocessor (or CPU in a PIC)

Some components of a microprocessor. Buses - Address: Carries memory address Data: Caries data from and to memory Control: Signals used to sequence operations Control Unit- Generates control sequences based on Instruction Register Arithmetic Logic Unit: Does the sums! Registers: General purpose (store numbers) Program Counter (address of next instruction) Status Register (flags like carry bit/zero etc) Instruction Register (instruction being executed)

Architecture / buses How components are connected.

Types Architecture. Von Neumann Harvard Cellular?

Von Neumann (most microprocessors) Single memory for DATA and PROGRAM Shared bus (Von Neumann bottle neck)

Harvard (microcontrollers / DSP chips) Separate memory for DATA and PROGRAM Different buses (may different widths)

Software development for the PIC. Specify requirements. Write assembly code using an editor. Compile into machine code (assembler) . Fix compile time errors Program the pic (e.g. PICKit3) Fix run time errors ( go back to step 2.) It Works!

Incremental / Evolutionary Development Large complex systems are difficult to write/debug Start with a simple system and add complexity. Use routines to “encapsulate” functionality and allow easy reuse of code.

Integrated Development Environment IDE A program that manages the development process .e.g. MPLABx Automates the process (hides some of the details!)

Other Microchip devices

Typical Features. GPIO (general purpose IO pins) Interfaces: SPI I2C UART Ethernet USB PWM generators (motor control) ADC (less common DAC) Signal processing Timers More interrupts

Other manufacturers Texas Instruments Atmel e.g. MSP430 . . . have similar hardware / software. Texas Instruments e.g. MSP430 Atmel AVR general purpose ARM (Linux android MS windows)

RISC (Reduced Instruction Set Computers) RISC is a common type of instruction set. Examples: ARM (Advanced RISC Machine) Widely used 32bit instruction set MIPS Microprocessor without Interlocked Pipeline Stages (e.g. Play-station)

High level languages Different devices have different: Architectures Instruction sets A compiler can translates a high level languages program (C C++ . . .) into machine code for the target device

Arduino . . is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. Various boards (different manufacturers) Open source IDE (Linux, Windows, mac OS X) High level C++ based programming language. Libraries to help you do things !!!!

Showing how easy it is to write to the LCD display! Arduino IDE Showing how easy it is to write to the LCD display!

Applications of microcontrollers Automotive Home entertainment Industrial Automation Metering PC Peripherals Etc. . . . .

Summary Students should understand: Assembly code and it's relationship with machine code. Understand the components of the PIC and microprocessors The different architectures and there merits. How to program in assembly code for the PIC16F84. How to interface to SPI devices. How to interface to parallel devices ( LCD display).

Exam 1 Hour 2 sections each with 2 questions PJL / CTC. Answer 2 questions, one from each section. Instruction set from PIC16F84 will be provided. See: http://people.bath.ac.uk/eespjl/courses/Embedded/Resources/DATASHEETS/ PIC16F84A_EXAM_SUMMARY.pdf