Vadodara Institute of Engineering Subject: Microcontroller interfacing Prepared by: Bipin Malani (130800111002) Vishwa Pandit (130800111003) Branch : Electronics.

Slides:



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

Microprocessors A Beginning.
Microprocessors and Interfacing
COMP3221: Microprocessors and Embedded Systems
Microprocessors.
Microprocessors Typical microprocessor controlled devices: Camera, mobile phone, stereo, mp3 player, electronic toys… High-level microprocessor controlled.
Microprocessor and Microcontroller Fundamentals
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.
1.21 Introduction to microprocessors KUEU 2135 / KBEB 2193 Mikropemproses dan Sistemnya.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
 Prof. Dr. M. H. Assal Introduction to Computer AS 26/10/2014.
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
Microcontroller based system design
The Computer Processor
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
The Microcomputer System In this presentation you will: Investigate the microprocessor Title Page.
AVR Microcontrollers.
Higher Computing Computer Systems S. McCrossan 1 Higher Grade Computing Studies 2. Computer Structure Computer Structure The traditional diagram of a computer...
Topics Introduction Hardware and Software How Computers Store Data
E0001 Computers in Engineering1 The System Unit & Memory.
Introduction to Computing: Lecture 4
created by :Gaurav Shrivastava
Microcontrollers Microcontroller (MCU) – An integrated electronic computing device that includes three major components on a single chip Microprocessor.
Computer Fundamentals ELEC 330 Digital Systems Engineering Dr. Ron Hayne.
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.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Module 8 Part B Adapted By and Prepared James Tan © 2001.
Introduction to AVR Chapter 1
Lecture 14 Today’s topics MARIE Architecture Registers Buses
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Computer Structure & Architecture 7b - CPU & Buses.
HOW a Computer Works ? Anatomy of Microprocessor.
Electronic Analog Computer Dr. Amin Danial Asham by.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
MICROOCESSORS AND MICROCONTROLLER:
Programmable Logic Controllers LO1: Understand the design and operational characteristics of a PLC system.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
Computer operation is of how the different parts of a computer system work together to perform a task.
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Execution Architecture MTT CPU08 Core M CPU08 INTRODUCTION.
Architectural Considerations A Review of Some Architectural Concepts.
An Adder A Subtractor. A and B are the inputs of the adder/ subtractor R is the output of the adder/ subtractor F is the control to tell it to add or.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
STATUS REGISTER  It is a group of flip-flops. But it is not used to store data.  Each bit in the status register is used to indicate a particular condition.
AVR Architecture Prepared By: Avdhesh Soni ( ) Sarthak Patel ( ) Akshay Parekh ( ) Fenil Sachla ( ) Guided.
MICROPROCESSOR AMARTYA ROY-72 ANGSHUMAN CHATTERJEE-80 ASHISH LOHIA-70 MOLOY CHAKRABORTY-60.
Gandhinagar Institute of Technology
COMP2121: Microprocessors and Interfacing
Introduction to Microcontroller Technology
Unit Microprocessor.
Microprocessor and Microcontroller Fundamentals
COURSE OUTCOMES OF Microprocessor and programming
Microprocessor and Microcontroller Fundamentals
COMP2121: Microprocessors and Interfacing
MCI PPT AVR MICROCONTROLLER Mayuri Patel EC-1 5th sem
UNIT – Microcontroller.
IPCOWALA INSTITUTE OF ENGINEERING & TECHNOLOGY-DHARMAJ
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
A451: Computer Systems and Programming
Computer Operation 6/22/2019.
Presentation transcript:

Vadodara Institute of Engineering Subject: Microcontroller interfacing Prepared by: Bipin Malani ( ) Vishwa Pandit ( ) Branch : Electronics & communication Guided by: Prof. Isha Gautam Prof. Satish Bhati

Active learning assignment on Introduction of Microcontroller 330_012

Contents Introduction Software using for microcontroller Embedded system Difference between microcontroller and microprocessor Architecture of AVR microcontroller AVR register References 3

Microcontrollers Embedded Systems – 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 – Timers – A/D converter – Serial I/O Common communication lines – System Bus

Software Machine Language – Binary Instructions – Difficult to decipher and write Error-prone – All programs converted into machine language for execution InstructionHexMnemonicDescriptionProcessor ADD BAdd reg B to AccIntel ADD A, R0Add Reg R0 to AccIntel BABAAdd Acc A and BMotorola 6811

Embedded Systems Normal everyday items contain computer chips, complete with CPU, memory, programs – Television, Entt. Center, Automobiles, Irrigation, – MP3, cell phones, GPS, – microwave, home alarms, thermostats, – network routers, game consoles Special purpose machines contain computers – Manufacturing, metering, sensing, – ATM machines, kiosks – Medical Instruments, Aircraft, Satellites,

Embedded Systems A “special purpose” unit – e.g. simple cell phone (it does not run MS-Word) Has a CPU, memory and programs that control mainly physical things – The program is preinstalled and cannot be changed easily Has limited processing power and limited electrical power and limited data storage Has “intelligence” – Can be configured, personalized, “programmed”

Difference between microcontroller and microprocessor 330_019

Architecture of AVR microcontroller 330_0110

Continues… Flash Memory: It is an electronic non-volatile computer storage medium that can be electrically erased and reprogrammed. Introduced by Toshiba in 1984, flash memory was developed from EEPROM (electrically erasable programmable read- only memory). Instruction register: In computing, an instruction register (IR) is the part of a CPU's control unit that stores the instruction currently being executed or decoded.

Continues.. Instruction Decoder : The Instruction Decoder reads the next instruction in from memory, and sends the component pieces of that instruction to the necessary destinations. Program Counter: A program counter is a register in a computer processor that contains the address (location) of the instruction being executed at the current time. As each instruction gets fetched, the program counter increases its stored value by 1.

Continues.. Status and control: status is one type of register, it is also called as flag register. It contains H, V, S, N, C, Z flags. - H flag: Half flag - V flag: Overflow flag - S flag: sign flag - N flag: Negative flag - C flag: Carry flag - Z flag: Zero flag

Continues.. General purpose register: There are 32 general- purpose 8-bit registers, R0–R31. All arithmetic and logic operations operate on those registers; only load and store instructions access RAM. A limited number of instructions operate on 16-bit register pairs.

Continues..

ALU: All the arithmetical operation like, addition, subtraction, multiplication, ORing, ANDing,etc. of AVR are done by this unit. SRAM : SRAM (static RAM) is random access memory that retains data bits in its memory as long as power is being supplied. EEROM: EEPROM (also written E 2 PROM and pronounced "e- e-prom", "double-e prom", "e-squared", or simply "e-prom") stands for Electrically Erasable Programmable Read- Only Memory and is a type of used in computers and other electronic devices to store small amounts of data that must be saved when power is removed

Continues.. Watch dog timer: It is a timing devise which is set for a preset time interval & an event occur during that time interval. - it is used to find fault of software automatically and restart the processor.

AVR registers: All information in the microcontroller, from the program memory, the timer information, to the state on any of input or output pins, is stored in registers. Registers are like shelves in the bookshelf of processor memory. In an 8-bit processor, like the AVR ATMega 16 we are using, the shelf can hold 8 books, where each book is a one bit binary number, a 0 or 1. Each shelf has an address in memory, so that the controller knows where to find it. The 32 IO pins of the ATMega16 are divided into 4 ports, A, B, C, and D. Each port has 3 associated registers. For example, for port D, these registers are referred to in C-language by PORTD, PIND, and DDRD. For port B, these would be PORTB, PINB, and DDRB, etc. In C- language, PORTD is really a macro, which refers to a number that is the address of the register in the AVR, but it is much easier to remember PORTD than some arbitray hexadecimal number.

AVR general purpose registers:

AVR status registers:

Bit 0 – C: Carry Flag: The Carry Flag C indicates a carry in an arithmetic or logic operation. See the "Instruction Set Description" for detailed information. Bit 1 – Z: Zero Flag: The Zero Flag Z indicates a zero result in an arithmetic or logic operation. See the "Instruction Set Description" for detailed information.

Bit 2 – N: Negative Flag The Negative Flag N indicates a negative result in an arithmetic or logic operation. See the "Instruction Set Description" for detailed information. Bit 3 – V: Two's Complement Overflow Flag The Two's Complement Overflow Flag V supports two's complement arithmetics. See the "Instruction Set Description" for detailed information.

Bit 4 – S: Sign Bit: S = N, V :The S-bit is always an exclusive or between the negative flag N and the two's complement overflow flag V. See the "Instruction Set Description" for detailed information. Bit 5 – H: Half Carry Flag: The Half Carry Flag H indicates a half carry in some arithmetic operations. Half carry is useful in BCD arithmetic. See the "Instruction Set Description" for detailed information.

Bit 6 – T: Bit Copy Storage The Bit Copy instructions BLD (Bit LoaD) and BST (Bit STore) use the T-bit as source or destination for the operated bit. A bit from a register in the Register file can be copied into T by the BST instruction, and a bit in T can be copied into a bit in a register in the Register file by the BLD instruction.

Bit 7 – I: Global Interrupt Enable :The Global Interrupt Enable bit must be set for the interrupts to be enabled. The individual interrupt enable control is then performed in separate control registers. If the Global Interrupt Enable Register is cleared, none of the interrupts are enabled independent of the individual interrupt enable settings. The I-bit is cleared by hardware after an interrupt has occurred, and is set by the RETI instruction to enable subsequent interrupts. The I-bit can also be set and cleared in software with the SEI and CLI instructions, as described in the instruction set reference.

References explained/ explained/ mages;_ylt=A2oKmLkgpBZWMlkAPU67HAx.;_ ylu=X3oDMTEzM3Nrc2x0BGNvbG8Dc2czBHBv cwMxBHZ0aWQDSU5DMDAxXzEEc2VjA3Nj?p =Avr+Registers&fr=spigot-yhp-ff mages;_ylt=A2oKmLkgpBZWMlkAPU67HAx.;_ ylu=X3oDMTEzM3Nrc2x0BGNvbG8Dc2czBHBv cwMxBHZ0aWQDSU5DMDAxXzEEc2VjA3Nj?p =Avr+Registers&fr=spigot-yhp-ff