Microcontroller based system design

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Microprocessors A Beginning.
Microprocessors and Interfacing
Department of Computer Engineering
EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
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.
EEE237 Introduction to Microprocessors
1.21 Introduction to microprocessors KUEU 2135 / KBEB 2193 Mikropemproses dan Sistemnya.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
1-1 Microprocessor Engineering Microprocessor Systems Microcontrollers Infineon 16-bit Processor Family  specifically 167CS microcontroller C Programming.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
Computer Hardware Processing and Internal Memory.
Stored Program Concept: The Hardware View
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
6. The CPU and Memory Chapt. 7.
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
COMPONENTS OF THE SYSTEM UNIT
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
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.
Lesson 3 — How a Computer Processes Data
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
Lecture 8 Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
created by :Gaurav Shrivastava
Microcontrollers Microcontroller (MCU) – An integrated electronic computing device that includes three major components on a single chip Microprocessor.
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
ECE Lecture 1 Microcontroller Concepts. Basic Computer System CPU Memory Program + Data I/O Interface Parallel I/O Device Serial I/O Device Data.
Microprocessor & Interfacing Techniques. HISTORY OF MICROPROCESSORS  Computers are accessible to ever-increasing sectors of the world's population. 
Von Neumann Machine Objectives: Explain Von Neumann architecture:  Memory –Organization –Decoding memory addresses, MAR & MDR  ALU and Control Unit –Executing.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
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.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
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.
Lecture 2 Microprocessor Architecture Image from:
Introduction to Microprocessors
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Electronic Analog Computer Dr. Amin Danial Asham by.
Programmable Logic Controllers LO1: Understand the design and operational characteristics of a PLC system.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
Computer operation is of how the different parts of a computer system work together to perform a task.
Lecture 7: Overview Microprocessors / microcontrollers.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Capability of processor determine the capability of the computer system. Therefore, processor is the key element or heart of a computer system. Other.
Embedded Systems Introduction. Microprocessor building blocks 1. ALU (Arithmetic Logic Unit): The ALU is a sequential logic circuitry that is intended.
Block diagram of a computer system Basic components of a computer system using block diagrams: Cpu Memory Input and output unit Evolution of microprocessor.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
MICROPROCESSOR INTEL 8086/8088 BY: SERA SYARMILA SAMEON.
Introduction to Microcontroller Technology
Computer Systems Nat 4/5 Computing Science Computer Structure:
CPU Lesson 2.
Unit Microprocessor.
Systems Architecture Keywords Fetch Execute Cycle
COURSE OUTCOMES OF Microprocessor and programming
UNIT – Microcontroller.
Introduction of microprocessor
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Introduction to Microprocessors and Microcontrollers
Number Representations and Basic Processor Architecture
Chapter 5 Computer Organization
Presentation transcript:

Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN

Course Objectives to develop an in-depth understanding of the operation of microprocessors and microcontrollers C language platform for embedded systems microcontroller interfacing techniques The path an embedded system, design&implementation of embedded systems in both hardware and software to be able to use ST32F4 series high performance 32-bit ARM (Advanced RISC Machine) based microcontrollers.

Outline Microcontroller basics and programming concepts,basic architecture. <Exercise: The compiler and its capabilities, simulation, debugging examples> Programming Model, Addressing Modes and Instruction Set <Exercise: LED on/off> Interfacing concepts, IO module <Exercise: push button,7-segment, keypad connection and alphanumeric display examples>

Timer and ADC modules <Exercise: Data acquisition and control examples> The Stack, Subroutines and Interrupts <Exercise: Use of external and timer interrupts> Serial communications, Universal async. Receive/transmit (UART) <Exercise: An UART application> Serial communication , I2C and SPI <Exercise: An I2C application>

Common computer organization (simplified view) ALU (Arithmetic Logic Unit) is a circuitry, which is capable of doing various operations (for example ADD, SHIFT, AND, OR, etc) on certain on-chip registers. CPU (Central Processing Unit) is the combination of the control logic, associated registers and the arithmetic logic unit.

Block diagram of a typical CPU

CPU structure The main functions are data transfer arithmetic and logic operations decision making (instructional flow control) The register array consists of at least one accumulator, program counter and stack pointer The control unit controls all the operations in a CPU and basically it puts the CPU in one of the fetch and execution phases

Memory Input/Output (I/O) ALU Control CPU

Computer Buses Address bus: carries the address of a unique memory or input/output (I/O) device Data bus: carries data stored in memory (or an I/O device) to the CPU or from the CPU to the memory (or I/O device) Control bus: is a collection of control signals that coordinate and synchronize the whole system

Buses and common comp. arch.

Memory The memory in a computer system stores the data and instructions of the programs. Adress decoder Storage Area Data bus Adress bus Other signals (Vcc,Gnd, CS, etc.)

Main memory types ROM (read-only memory) RAM (random-access memory) programmed permanently at the factory, cannot be altered RAM (random-access memory) read and write memory EPROM (erasable programmable ROM) nonvolatile, written electrically but erased optically EEPROM (electrically ROM) nonvolatile, both written and erased electrically

Memory

Operation of CPU Fetch cycle (phase): The CPU puts the address of the instruction to be executed on the address bus. The address info comes from the program counter (PC) maintained by the control unit. The control bus holds the info. for reading the memory location and the data bus holds the instruction from the memory which is stored into the instruction register (IR) PC is updated to point to the next instruction.

Execute cycle (phase): Instruction in the IR is decoded The required data transfer and the required logical and arithmetic operation are performed The result is written back either to one of the registers or memory or I/O device Common operations performed in ALU are: addition, subtraction, logical AND, OR, XOR, NOT increment, decrement, shift, clear, etc.

Detailed operation

Microcomputer/Microcontroller CPU on a single ICmicroprocessor (µP). the terms CPU, µP and MPU (microprocessor unit) are synonymous. CPU is the combination of the ALU and control unit of any computer. When the CPU is a single IC; it is called a µP and is also referred to as the MPU. When the MPU‘s connected to memory and I/O, the arrangement becomes a MICROCOMPUTER. What is microcontroller?: A microcontroller unit (MCU) contains an MPU, memory, and I/O circuitry on a single chip.

Microprocessor vs microcontroller Microprocessors: high performance, general purpose “brains” for PCs and workstations Instruction decode and control, arithmetic/logic operations, registers, timing, external control Typical cost: $75 -- $500 Annual demand: 10s of millions Microcontrollers: devices with high levels of integration for embedded control Microprocessor functions plus on-chip memory and peripheral functions (e.g. ports, timers) "Swiss army knife" of microprocessor technology Typical cost: $1-- $25 Annual demand: billions!

Bottom-Up wiev of microcontroller systems

Embedded System The majority of microcontrollers in use today are embedded in other machinery, such as automobiles, telephones, appliances, and peripherals for computer systems. These are called embedded system. Typical input and output devices include switches, relay, solenoids, LEDs, small or custom LCD displays, radio frequency devices, and sensors for data such as temperature, humidity, light level etc. Embedded systems usually have no keyboard, screen, disks, printers, or other recognizable I/O devices of a personal computer, and may lack human interaction devices of any kind.

ARM based MCUs