Microprocessor and Microcontroller Fundamentals

Slides:



Advertisements
Similar presentations
Microprocessor and Microcontroller Fundamentals
Advertisements

EEE226 MICROPROCESSORBY DR. ZAINI ABDUL HALIM School of Electrical & Electronic Engineering USM.
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.
Engr. M.K.Debnath1 Microcontroller and PLC Eng. ISRAFIL KHAN. DIPLOMA IN ELECTRONIC.
TK 2633 Microprocessor & Interfacing Lecture 3: Introduction to 8085 Assembly Language Programming (2) 1 Prepared By: Associate Prof. Dr Masri Ayob.
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
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.
Microcontroller based system design
Chapter 17 Microprocessor Fundamentals William Kleitz Digital Electronics with VHDL, Quartus® II Version Copyright ©2006 by Pearson Education, Inc. Upper.
Microcontroller Architecture PIC18F Family
MCU – Microcontroller Unit – 1 MCU  1 cip or VLSI core – application-specific.
Internal hardware and external components of a computer Three-box Model  Processor The brain of the system Executes programs A big finite state machine.
Microcontrollers Microcontroller (MCU) – An integrated electronic computing device that includes three major components on a single chip Microprocessor.
COMPUTER SYSTEM ARCHITECTURE By Sohaib.  The digital computer is a digital system that performs various computational tasks.  The word digital implies.
Microprocessors and Microcontrollers. An Introduction to Microprocessors and Microcontrollers.
Computer Fundamentals ELEC 330 Digital Systems Engineering Dr. Ron Hayne.
Eng.Samra Essalaimeh Philadelphia University 2013/ nd Semester PIC Microcontrollers.
Microprocessor Dr. Rabie A. Ramadan Al-Azhar University Lecture 2.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
 Introduction to Micro processor Introduction to Micro processor  Microprocessor instruction and opcodes Microprocessor instruction and opcodes  Mnemonics.
8085. Microcomputer Major components of the computer - the processor, the control unit, one or more memory ICs, one or more I/O ICs, and the clock Major.
Introduction to Microprocessors
MICROOCESSORS AND MICROCONTROLLER:
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
CISC and RISC 12/25/ What is CISC? acronym for Complex Instruction Set Computer Chips that are easy to program and which make efficient use of memory.
Computer operation is of how the different parts of a computer system work together to perform a task.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
STUDY OF PIC MICROCONTROLLERS.. Design Flow C CODE Hex File Assembly Code Compiler Assembler Chip Programming.
GCSE Computing - The CPU
Unit Microprocessor.
Seminar On 8085 microprocessor
SHRI S’AD VIDYA MANDAL INSTITUTE OF TECHNOLOGY
Basic Computer Organization and Design
PROGRAMMABLE LOGIC CONTROLLERS SINGLE CHIP COMPUTER
Microprocessor and Microcontroller Fundamentals
MICROCONTROLLER ARCHITECTURE & ASSEMBLY LANGUAGE PROGRAMMING
COURSE OUTCOMES OF Microprocessor and programming
Atmega32 Architectural Overview
Introduction to Microprocessors
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
UNIT – Microcontroller.
Chapter 7.2 Computer Architecture
Modified Harvard Architectures
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
INTRODUCTION TO MICROPROCESSORS
AVR Microcontrollers Prepared By: Disha Ruparelia ( )
Introduction to Microprocessors
Components of Computer
INTRODUCTION TO MICROPROCESSORS
Microcomputer Architecture
INTRODUCTION TO MICROPROCESSORS
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Chapter 1: The 8051 Microcontrollers
Introduction to Microprocessors and Microcontrollers
Number Representations and Basic Processor Architecture
Microprocessor & Assembly Language
CISC AND RISC SYSTEM Based on instruction set, we broadly classify Computer/microprocessor/microcontroller into CISC and RISC. CISC SYSTEM: COMPLEX INSTRUCTION.
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Chapter 2: Data Manipulation
Chapter 2: Data Manipulation
Introduction to Microprocessor Programming
GCSE Computing - The CPU
Microprocessor Architecture
WJEC GCSE Computer Science
Computer Operation 6/22/2019.
Chapter 2: Data Manipulation
Presentation transcript:

Microprocessor and Microcontroller Fundamentals Electronics and Communication Engineering Dr. Shahanaz Ayub Associate Professor BIET, Jhansi ELEC 330

Microcontrollers Embedded Systems Microcontroller (MCU) Operations managed behind the scenes by a microcontroller Microcontroller (MCU) Integrated electronic computing device that includes three major components on a single chip Microprocessor (MPU) Memory I/O (Input/Output) ports

Microcontrollers Support Devices Common communication lines Timers A/D converter Serial I/O Common communication lines System Bus

Block Diagram ELEC 330

Microprocessor (MPU) MPU (CPU) Read instructions Process binary data

Memory Storage Device Major Categories Read/Write Memory (R/W) Addresses Registers Major Categories Read/Write Memory (R/W) Read-only-Memory (ROM) D7 D0

Input/Output (I/O) Input Devices Output devices Switches and Keypads Provide binary information to the MPU Output devices LEDs and LCDs Receive binary information from the MPU

Microprocessor-Based Systems

Microprocessor Architecture MPU communicates with Memory and I/O using the System Bus Address bus Unidirectional Memory and I/O Addresses Data bus Bidirectional Transfers Binary Data and Instructions Control lines Read and Write timing signals

Microprocessor-Based System

Example Microprocessor System

Software Machine Language Binary Instructions Difficult to decipher and write Error-prone All programs converted into machine language for execution Instruction Hex Mnemonic Description Processor 10000000 80 ADD B Add reg B to Acc Intel 8085 00101000 28 ADD A, R0 Add Reg R0 to Acc Intel 8051 00011011 1B ABA Add Acc A and B Motorola 6811

Software Assembly Language Machine instructions represented in mnemonics One-to-one correspondence Efficient execution and use of memory Machine-specific

Software High-Level Languages BASIC, C, and C++ Written in statements of spoken languages Machine independent Easy to write and troubleshoot Larger memory and less efficient execution

Data Format (8-bit) Unsigned Integers All eight bits represent the magnitude of a number B0 to B7 Range 00H to FFH (0-255 in decimal number system)

Data Format (8-bit) Signed Integers 2's Complement B7 is sign bit Positive numbers: 00H to 7FH (0 -127) Negative numbers: 80H to FFH (-1 - -128)

Data Format (8-bit) Binary Coded Decimal Numbers (BCD) 8-bit number divided into two groups of four Each group represents a decimal digit from 0 to 9 AH through FH are invalid Example: 0011 0100BCD = 3410

Data Format (8-bit) ASCII system 7-bit alphanumeric code with 128 combinations Represents alphabet, decimal digits from 0 to 9, symbols, and commands

MPU-Based Systems System hardware System software Discrete components Microprocessor, Memory, and I/O Components connected by buses Address, Data, and Control System software Group of programs that monitors the functions of the entire system

MPU-Based System

MCU-Based Systems Microprocessor, memory, I/O ports, and support devices on a single chip Buses generally not available to a system designer I/O ports generally multiplexed and can be programmed to perform different functions

MCU-Based System

Computer Architectures Von Neumann Architecture Vs Harvard Architecture The von Neumann architecture, also known as the von Neumann model and Princeton architecture Harvard architecture has separate data and instruction busses, allowing transfers to be performed simultaneously on both busses. A von Neumann architecture has only one bus which is used for both data transfers and instruction fetches, and therefore data transfers and instruction fetches must be scheduled - they can not be performed at the same time. CISC versus RISC processors Microprocessors and Microcontrollers ELEC 330

Computer Architectures CISC versus RISC processors Microprocessors and Microcontrollers CISC RISC Emphasis on hardware Emphasis on software Includes multi-clock Single-clock complex instructions reduced instruction only Memory-to-memory: “LOAD” and “STORE” incorporated in instructions Register to register: “LOAD” and “STORE” are independent instructions high cycles per second, Small code sizes Low cycles per second, large code sizes Transistors used for storing complex instructions Spends more transistors on memory registers ELEC 330

Computer Architectures Microprocessors and Microcontrollers MICROPROCESSOR MICROCONTROLLER Microprocessor assimilates the function of a central processing unit (CPU) on to a single integrated circuit (IC). Microcontroller can be considered as a small computer which has a processor and some other components in order to make it a computer. Microprocessors are mainly used in designing general purpose systems from small to large and complex systems like super computers. Microcontrollers are used in automatically controlled devices. Microprocessors are basic components of personal computers. Microcontrollers are generally used in embedded systems Computational capacity of microprocessor is very high. Hence can perform complex tasks. Less computational capacity when compared to microprocessors. Usually used for simpler tasks. A microprocessor based system can perform numerous tasks. A microcontroller based system can perform single or very few tasks. Microprocessors have integrated Math Coprocessor. Complex mathematical calculations which involve floating point can be performed with great ease. Microcontrollers do not have math coprocessors. They use software to perform floating point calculations which slows down the device. ELEC 330

Computer Architectures Microprocessors and Microcontrollers [2] MICROPROCESSOR MICROCONTROLLER The main task of microprocessor is to perform the instruction cycle repeatedly. This includes fetch, decode and execute. In addition to performing the tasks of fetch, decode and execute, a microcontroller also controls its environment based on the output of the instruction cycle. In order to build or design a system (computer), a microprocessor has to be connected externally to some other components like Memory (RAM and ROM) and Input / Output ports. The IC of a microcontroller has memory (both RAM and ROM) integrated on it along with some other components like I / O devices and timers. Generally power consumption and dissipation is high because of the external devices. Hence it requires external cooling system. Power consumption is less. The clock frequency is very high usually in the order of Giga Hertz. Clock frequency is less usually in the order of Mega Hertz. Have few bit manipulation instructions Bit manipulation is powerful and widely used feature in microcontrollers. They have numerous bit manipulation instructions. ELEC 330

Thank you..