Module 2: Introduction to AVR ATmega 32 Architecture
|
|
- Cory Williams
- 6 years ago
- Views:
Transcription
1 Module 2: Introduction to AVR ATmega 32 Architecture Definition of computer architecture processor operation CISC vs RISC von Neumann vs Harvard architecture AVR introduction AVR architecture
2 Architecture & Organization Definition
3 Definition of Architecture & Organization What is architecture? o Architecture is how a computer system is designed and what technologies it is compatible with. o The attributes of a system are visible to a programmer. o These attributes have a direct impact on the logical execution of a program (i.e. instruction set, number of bits used for data representation, I/O mechanisms, addressing techniques). o There two type of computer architecture. o Von Neumann architecture: a computer architecture with physically single storage and signal pathways for instructions and data. o Harvard architecture: a computer architecture with physically separate storage and signal pathways for instructions and data.
4 Von Neumann Architecture o The computer has single storage system(memory) for storing data as well as program to be executed. o Processor needs two clock cycles to complete an instruction. Pipelining the instructions is not possible with this architecture. o In the first clock cycle the processor gets the instruction from memory and decodes it. In the next clock cycle the required data is taken from memory. For each instruction this cycle repeats and hence needs two cycles to complete an instruction. o This is a relatively older architecture and was replaced by Harvard architecture.
5 Harvard Architecture o The computer has two separate memories for storing data and program. o Processor can complete an instruction in one cycle if appropriate pipelining strategies are implemented. o In the first stage of pipeline the instruction to be executed can be taken from program memory. In the second stage of pipeline data is taken from the data memory using the decoded instruction or address. o Most of the modern computing architectures are based on Harvard architecture. But the number of stages in the pipeline varies from system to system.
6 Definition of Architecture & Organization What is organization? o Computer Organization is typically refers to the operational units of the system together with their interconnection how features are implemented. o It consists of hardware details that are transparent to the programmers.
7 Processor Architecture & Organization Many computer manufacturers offer a family of computer models, all with the same architecture but with differences in organization. This gives code compatibility (at least backwards) o All Intel x86 family share the same basic architecture o The IBM System/370 family share the same basic architecture An architecture may survive many years, but its organization changes with the changing technology. o E.g. the IBM Systems/370 architecture, with few enhancements, has survived to this day as the architecture of IBM's mainframe product line.
8 Processor ISA (Industry Standard Architecture): CISC vs RISC CISC RISC Emphasis on hardware Emphasis on software Include multi-clock complex instructions Include single-clock reduce instruction only Memory-to-memory: Load and Store incorporated in instructions Small code sizes, high cycles per second Transistors used for storing complex instructions RISC vs. CISC is a topic quite popular on the Net. Every time Intel (CISC) or Apple (RISC) introduces a new CPU, the topic pops up again. Most PC's use CPU based on CISC architecture. For instance Intel and AMD CPU's are based on CISC architectures. Many claim that RICS is the architecture of the future. Register-to-register: Load and Store are independent instructions Low cycles per second, large code sizes Spends more transistors on memory registers But even though RISC has been in the market since 1980, it hasn t managed to kick CISC out of the picture, some argue that if it is really the architecture of the future it should have been able to do this by now.
9 Introduction to AVR
10 Introduction to AVR The AVR architecture was designed by two students Alf-Egil Bogen and Vegard Wollan in Norway and then was bought and developed by Atmel in There are many kind of AVR microcontroller with different properties. Except for AVR32 (32-bit microcontroller), AVRs are all 8-bit microprocessors the CPU can work only 8 bits of data at a time. Data larger that 8 bits has to be broken into 8-bit pieces to be processed by the CPU. The AVR is a modified Harvard architecture machine where program and data is stored in separate physical memory systems that appear in different address spaces, but having the ability to read data items from program memory using special instructions.
11 AVR Family Overview AVRs are generally classified into four groups: o Classic AVR (AT90Sxxxx) o This is the original AVR chip o i.e. AT90S2313, AT90S4433
12 o Mega AVR (ATmegaxxxx) AVR Family Overview o These are powerful microcontrollers with more than 120 instructions o Has lots of different peripheral capabilities, which can be used in different designs. o i.e. ATmega8, ATmega32, ATmega128
13 o Tiny AVR (ATtinyxxxx) AVR Family Overview o Has less instructions and smaller packages compared to mega family. o Can design systems with low cost and power consumption using Tiny AVRs. o i.e. ATtiny13, ATtiny25
14 o Special purpose AVR AVR Family Overview o The ICs of this group can be considered as a subset of other groups. o But their special capabilities are made for designing specific applications such USB controller, CAN controller, LCD controller, Zigbee, Ethernet controller, FPGA. o i.e. AT90PWM216,AT90USB1287
15 Let s get familiar with AVR part number ATmega128 Atmel mega group ROM =128K ATtiny44 AT90S4433 Atmel Tiny group ROM =4K Atmel Classic group ROM =4K
16 ATmega32 Pin Out
17 Atmega32 Pin Out Port B Clears all the Provides registers supply and voltage restart the to the chip. These execution It pins should of are be used connected program to connect to +5 external crystal for clock source Port A Reference voltage Supply for voltage ADC for ADC and porta. Connect it to VCC Port D Port C I
18 I/O Port Pins & Their Function o The number of ports in the AVR family varies depending on the number of pins on the chip. o 8-pin AVR has port B only. o 64-pin version has ports A through F. o 100-pin AVR has ports A through L. o 40-pin AVR (ATmega32), has four ports: PORTA, PORTB, PORTC and PORTD. o It must be programmed first before we use any of these ports as an input or output. o Each port has three I/O registers associated with it; o PORTx: Data Register for send/out data. (Write) o DDRx: Data Direction Register. (Read/Write) o PINx: Dara Register for in/receive data. (Read only)
19 I/O Port Pins & Their Function o Each of the I/O registers are 8 bits wide, and each port has a maximum of 8 pins. o Therefore each bit of the I/O registers affects one of the pins.
20 DDRx Register o Each of the ports A-D in the ATmega32 can be used for input and output. o The DDRx I/O register is used solely for the purpose of making a given port an input or output port. o To make a port an output, write 1s to the DDRx register. o Example: Make port B as output, thus write 0b into DDRB register to make all of the pins output. o To make a port an input, write 0s to the DDRx register. o Example: Make port B as output, thus write 0b into DDRB register to make all of the pins input. 0x00 0x00 0b ( )
21 DDRx Register o Example: Define what happen to the pins when, 0b is write into DDRA register, as instructions below: LDI R20,0x75 ;R20 = 0b (binary) LDI R17, 0x0F ;R17 = ob OUT DDRA,R20 ;DDRA = R20 OUT PORTA,R17 ;PORTA =??? IN R18,PINA ;R18 =??? Lets input at PINA =
22 PINx Register o PINx register is used to read the data at the pins. o In which to bring the data into CPU from pins, we read the contents of the PINx register.
23 PORTx Register o PORTx register is used to send the data out to the pins. o However, PORTx register also can demonstrate for inputting data by putting 1s to activate the pull-up resistor.
24 AVR Architecture
25 AVR Architecture o AVR uses Harvard architecture, that has separate buses for the code and data memory. o Two kind of busses in AVR; o Program Bus provide access to Program Flash ROM. o Data Bus to bring data to the CPU.
26 o Two kinds of memory space in AVR: o Code memory space where program is stored. o Data memory space stores data. o The data memory is composed of three parts: o General register. o I/O register o Internal data SRAM AVR Data Memory purpose
27 General Purpose Registers (GPRs) in AVR o AVR microcontrollers have many registers for arithmetic and logic operations. o In the CPU, registers are used to store information temporarily. o That information could be; o A byte of data to be processed o And address pointing to the data to be fetched. o The majority of AVR registers are 8-bit registers because in AVR only one data type: 8-bit. MSB LSB o With an 8-bit data type, any data larger than 8 bits must be broken into 8-bit chunks before it is processed.
28 General Purpose Registers (GPRs) in AVR o In AVR there are 32 general purpose registers. o They are R01-R31 and are located in the lowest location of memory address. o To understand of the purpose of general purpose registers, two simple instructions LDI and ADD is used as example.
29 GPRs: LDI Instruction o LDI copies 8-bit data into general purpose registers. o K is an 8-bit value that can be (decimal), or 00-FF (hex). o Rd is R16 to R31. (Note: cannot load values into registers R0-R15 using LDI, because its not valid). o Example: Loads the R20 register with a value of 0x25 (25 in hex).
30 GPRs: ADD Instruction o ADD to add the value of Rr to Rd and put the result back into Rd register. o Example: To add two numbers such as 0x25 and 0x34, one can do the following: o Executing the above line results in R16 = 0x59 (0x25 + 0x34 = 0x59).
31 I/O Memory o The I/O memory is dedicated to specific function such as status register, timers, serial communication, I/O ports, ADC and etc. o The function of each I/O memory location is fixed by the CPU designer. o The number of locations in the data memory set aside for I/O memory depends on the pin numbers and peripheral functions supported by that chip. o But, all off the AVRs have at least 64 bytes of locations called standard I/O memory. I/O memory
32 Internal Data SRAM o Internal data SRAM widely used for storing data and parameters by AVR programmers and C compilers. o Each location of the SRAM can be accessed directly by its address. o Each location is 8 bits wide and can be used to store any data we want. o The size of SRAM can be vary from chip to chip.
33 Using Instruction With Data Memory o Earlier we saw a simple example of using LDI and ADD that uses immediate (constant) value of K and the GPRs. o Meanwhile, the AVR also allows direct access to other location in the data memory. o In this section, we will learn the instructions accessing various locations of the data memory.
34 Data Memory: LDS instruction o LDS (LoaD direct from data Space) instruction tells CPU to load (copy) one byte from an address in the data memory to GPR. o After the instruction is executed, the GPR will have the same values as the location in the data memory. o Example: Loads the R5 with the contents of location 0x200. o Example: Adds the contents of location 0x300 to location 0x302.
35 Data Memory: LDS instruction
36 Data Memory: STS instruction o STS (STore direct to data Space) instruction tells CPU to store (copy) the contents of the GPR to an address location in the data memory. o After the instruction is executed, the location in the data space will have the same value as GPR. o Example: Stores the contents of R25 to location 0x230. o Example: Loads the R16 register with value 0x55, then moves this value around to I/O registers of ports B (0x38), C (0x35) and D (0x32).
37 Data Memory: IN instruction o IN (IN from I/O location) instruction tells CPU to load one byte from an I/O register to GPR. o After the instruction is executed, the GPR will have the same value as I/O register. o Each location in I/O memory has two address: o Data memory address o I/O address address of each I/O register in comparison in comparison of the beginning of the I/O memory o IN instruction, the I/O registers are referred by the I/O address. o Example: Load R19 with the contents of location 0x10 of the I/O memory.
38 Data Memory: IN instruction
39 Data Memory: IN instruction o To work with the I/O registers more easily, we can use their names instead of their I/O addresses. o Example: Load R19 with the contents of PIND.
40 Data Memory: OUT instruction o OUT (OUT to I/O location) instruction tells CPU to store GPR to the I/O register. o After the instruction is executed, the I/O register will have the same value as GPR. o OUT instruction, the I/O registers are referred by the I/O address. o Example: Copy 0xE6 to SPL register. Note: cannot copy an immediate value to an I/O register nor to an SRAM location.
41 Data Memory: OUT instruction o Example: Copies PIND to PORTA.
42 Data Memory: MOV instruction o MOV instruction is used to copy data among the GPR registers (R0-R31). o Example: Copies the contents of R20 to R10.
43 More ALU instructions involving GPRs
44 ALU Instruction: INC o INC instruction increments the contents of Rd (register) by 1. o Example: Adds 1 to the contents of R2. o Example: Increase the contents of data memory location 0x430 by 1.
45 ALU Instruction: DEC o DEC instruction decrements the contents of Rd (register) by 1. o Example: Subtracts 1 to the contents of R10. o Example: Put the value 3 into R30, then the value of R30 is decremented three times.
46 ALU Instruction: SUB o SUB instruction tells the CPU to subtract the value of Rr from Rd and put the result back into the Rd register. o Example: Subtract 0x25 from 0x34 values. o Example: Subtracts 5 from the contents of location 0x300 and stores the result in location 0x3200.
47 ALU Instruction: Others
48 ALU Instruction: Others
49 AVR Status Register
50 AVR Status Register o Like other μps, the AVR has a flag register to indicate arithmetic condition such as the carry bit. o The flag register in the AVR is called status register (SReg) o The status register is an 8-bit register that contains of C, Z, N, V, S and H that are called conditional flags (to indicate some conditions that result after an instruction is executed).
51 o C, the carry flag AVR Status Register o The flag is set whenever there is a carry out from D7 bit, in which after an 8-bit addition or subtraction. o Z, the zero flag o The flag reflects the result of an arithmetic or logic operation. o If the result is zero, then Z=1. if the result is not zero, then Z=0. o N, the negative flag o Binary representation of signed numbers uses D7 as the sign bit. o The flag reflects the result of an arithmetic operation. o If the D7 bit is zero, then N=0 and the result is positive. But, if the D7 bit is one, then N=1 and the result is negative. o V, the overflow flag o The flag is set whenever the result of a signed number operation is too large, causing the high-order bit to overflow in the sign bit.
52 o S, the Sign flag AVR Status Register o The flag is the result of Exclusive-Oring of N and V flags. o H, Half carry flag o If there is a carry from D3 to D4 during and ADD or SUB operation, this bit is set, otherwise, it is cleared.
53 AVR Status Register: Example
54 AVR Status Register: Example D7 D4 D3 D0 1
55 AVR Status Register: Example D7 D4 D3 D0 1 1
56 AVR Status Register: Example D7 D4 D3 D0 1
57 AVR Status Register: Example SREG: I T H S V N Z C Interrupt ALU Temporary Sign Negative Half carry N+V Example: Show the status of the C, H, and Z flags after the addition subtraction of 0x9C 0x38 of 0x23 0x9C 0x73 and 0x64 0x2F from in 0xA5 0x9C 0x52 the following the following instructions: instructions: LDI R16, LDI 0x38 R20, R0 0xA5 0x9C 0x52 ;R16 = 0x38 R1 LDI R17, LDI 0x2F R21, 0x64 0x23 0x9C 0x73 ;R17 = 0x2F R2 ADD ADD R16, SUB R17 R20, R21 ;add R17 ;add ;subtract to R16 R21 to R21 R20 from R20 SREG: I T H S V N C Solution: Solution: CPU Solution: 1 R15 R16 R17 PC Z overflow 1 because R21 is bigger than R20 and there is a borrow from D8 bit. C = 1 0 because there R21 is is not a carry bigger R30beyond than R20 the D7 and bit. there is no borrow from D8 bit. Instruction C 0 because decoder there R20 is no has carry a value beyond other the than D7 zero bit. after the subtraction. Z = 1 because there R20 is has is carry zero carry R31 value from after other D3 subtraction. than to the 0 after D4 bit. the subtraction. because there is a borrow from from the D4 D3 to D3. the D4 bit. Instruction Z H = 1 0 because Register the there R20 is (the no borrow result) has from a D4 value to D3. 0 in it after the addition. = 0 because the R16 (the result) has value other than 0 after the addition. registers Zero Carry $A5 $9C $ $ $64 $23 $9C $ $2F $DF $100 $67 $82 $ R20 R20 = 00 R16 R20 = $DF 0x67 $82 $00
FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100)
(Revision-10) FIFTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLOGY-MARCH 2014 EMBEDDED SYSTEMS (Common for CT,CM) [Time: 3 hours] (Maximum marks : 100) PART-A (Maximum marks : 10) I. Answer all
More information2011 Pearson Higher Education, Mazidi, Naimi, and Naimi Pearson Higher Education, 2011 Pearson Higher Education,
Objectives Students should be able to: The AVR microcontroller and embedded systems using assembly and c Introduction to AVR Chapter 1 Compare and contrast microprocessors and microcontrollers Describe
More informationCOMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA)
COMP2121: Microprocessors and Interfacing Instruction Set Architecture (ISA) http://www.cse.unsw.edu.au/~cs2121 Lecturer: Hui Wu Session 2, 2017 1 Contents Memory models Registers Data types Instructions
More informationLecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad
Lecture 14 AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Lecture 4 The AVR Microcontroller Introduction to AVR CISC (Complex Instruction Set Computer) Put as
More informationAVR MICROCONTROLLER ARCHITECTURTE
AVR MICROCONTROLLER ARCHITECTURTE AVR MICROCONTROLLER AVR- Advanced Virtual RISC. The founders are Alf Egil Bogen Vegard Wollan RISC AVR architecture was conceived by two students at Norwegian Institute
More informationAVR Microcontrollers Architecture
ก ก There are two fundamental architectures to access memory 1. Von Neumann Architecture 2. Harvard Architecture 2 1 Harvard Architecture The term originated from the Harvard Mark 1 relay-based computer,
More informationAli Karimpour Associate Professor Ferdowsi University of Mashhad
AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar
More informationEE 308: Microcontrollers
EE 308: Microcontrollers Review Part I Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA February 15, 2018 Aly El-Osery (NMT) EE 308:
More informationMicroprocessors And Microcontroller
Microprocessors And Microcontroller Semester : 4 th, 5 th (TL, ES) Course Code : ES256, ES313 By: Dr. Attiya Baqai Assistant Professor, Department of Electronics, MUET. Internal block diagram of CPU Internal
More informationAli Karimpour Associate Professor Ferdowsi University of Mashhad
AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Main reference: Christopher T. Kilian, (2001), Modern Control Technology: Components and Systems Publisher: Delmar
More informationCOMP3221: Microprocessors and. and Embedded Systems. Instruction Set Architecture (ISA) What makes an ISA? #1: Memory Models. What makes an ISA?
COMP3221: Microprocessors and Embedded Systems Lecture 2: Instruction Set Architecture (ISA) http://www.cse.unsw.edu.au/~cs3221 Lecturer: Hui Wu Session 2, 2005 Instruction Set Architecture (ISA) ISA is
More informationLecture 2. Introduction to Microcontrollers
Lecture 2 Introduction to Microcontrollers 1 Microcontrollers Microcontroller CPU + ++++++++++ Microprocessor CPU (on single chip) 2 What is a Microcontroller Integrated chip that typically contains integrated
More informationEE 308: Microcontrollers
EE 308: Microcontrollers AVR Architecture Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA January 23, 2018 Aly El-Osery (NMT) EE 308:
More informationMicrocontrollers. Microcontroller
Microcontrollers Microcontroller A microprocessor on a single integrated circuit intended to operate as an embedded system. As well as a CPU, a microcontroller typically includes small amounts of RAM and
More informationATmega128. Introduction
ATmega128 Introduction AVR Microcontroller 8-bit microcontroller released in 1997 by Atmel which was founded in 1984. The AVR architecture was conceived by two students (Alf-Egil Bogen, Vergard-Wollen)
More informationLecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017
Lecture Objectives Introduction to Computing Chapter The AVR microcontroller and embedded systems using assembly and c Students should be able to: Convert between base and. Explain the difference between
More informationEmbedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester
Embedded Systems PIC16F84A Internal Architecture Eng. Anis Nazer First Semester 2017-2018 Review Computer system basic components? CPU? Memory? I/O? buses? Instruction? Program? Instruction set? CISC,
More informationECED3204: Microprocessor Part I--Introduction
ECED3204: Microprocessor Part I--Introduction Jason J. Gu Department of 1 Outline i. Computer ii. Processor iii. Embedded System iv. Memory v. Program Execution VI. VII. VIII. IX. AVR AVR Memory AVR CPU
More informationMicrocomputer Architecture and Programming
IUST-EE (Chapter 1) Microcomputer Architecture and Programming 1 Outline Basic Blocks of Microcomputer Typical Microcomputer Architecture The Single-Chip Microprocessor Microprocessor vs. Microcontroller
More informationObjectives. I/O Ports in AVR. Topics. ATmega16/mega32 pinout. AVR pin out The structure of I/O pins I/O programming Bit manipulating 22/09/2017
Objectives The AVR microcontroller and embedded systems using assembly and c I/O Ports in AVR List all the ports of the AVR microcontroller Describe the dual role of the AVR pins Code assembly language
More informationMICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS
MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS UNIT I INTRODUCTION TO 8085 8085 Microprocessor - Architecture and its operation, Concept of instruction execution and timing diagrams, fundamentals of
More informationCPU. Objectives. Introduction to Assembly Chapter 2. Topics. AVR s CPU 12/09/2017
Students should be able to: Objectives ntroduction to Assembly Chapter 2 he AVR microcontroller and embedded systems using assembly and c List the registers of the AVR microcontroller Draw and label a
More informationChapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.
Chapter 1 Microprocessor architecture ECE 3130 Dr. Mohamed Mahmoud The slides are copyright protected. It is not permissible to use them without a permission from Dr Mahmoud http://www.cae.tntech.edu/~mmahmoud/
More informationIntroduction to Assembly language
Introduction to Assembly language 1 USING THE AVR MICROPROCESSOR Outline Introduction to Assembly Code The AVR Microprocessor Binary/Hex Numbers Breaking down an example microprocessor program AVR instructions
More informationELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers. Eng. Salma Hesham
ELCT708 MicroLab Session #1 Introduction to Embedded Systems and Microcontrollers What is common between these systems? What is common between these systems? Each consists of an internal smart computer
More informationEE 308: Microcontrollers
EE 308: Microcontrollers Introduction Aly El-Osery Electrical Engineering Department New Mexico Institute of Mining and Technology Socorro, New Mexico, USA January 6, 2018 Aly El-Osery (NMT) EE 308: Microcontrollers
More information1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.
(1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic
More informationChapter 1 Microprocessor architecture ECE 3120 Dr. Mohamed Mahmoud http://iweb.tntech.edu/mmahmoud/ mmahmoud@tntech.edu Outline 1.1 Computer hardware organization 1.1.1 Number System 1.1.2 Computer hardware
More informationReview on Lecture-1. ICT 6641: Advanced Embedded System. Lecture 2 Branch, Call and Delay Loops, AVR I/O port programming
ICT 6641: Advanced Embedded System Lecture 2 Branch, Call and Delay Loops, AVR I/O port programming Prof. S. M. Lutful Kabir Session: April, 2011 Review on Lecture-1 Three parts of a computer : CPU, Memory
More informationProgramming Microcontroller Assembly and C
Programming Microcontroller Assembly and C Course Number CLO : 2 Week : 5-7 : TTH2D3 CLO#2 Student have the knowledge to create basic programming for microcontroller [C3] Understand how to program in Assembly
More informationComputer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers
Lecture (4) Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Prof. Kasim M. Al-Aubidy Philadelphia University-Jordan DERTS-MSc, 2015 Prof. Kasim Al-Aubidy 1 Lecture Outline:
More informationAVR ISA & AVR Programming (I) Lecturer: Sri Parameswaran Notes by: Annie Guo
AVR ISA & AVR Programming (I) Lecturer: Sri Parameswaran Notes by: Annie Guo 1 Lecture Overview AVR ISA AVR Instructions & Programming (I) Basic construct implementation 2 Atmel AVR 8-bit RISC architecture
More informationMicroprocessors/Microcontrollers
Microprocessors/Microcontrollers A central processing unit (CPU) fabricated on one or more chips, containing the basic arithmetic, logic, and control elements of a computer that are required for processing
More informationEmbedded programming, AVR intro
Applied mechatronics, Lab project Embedded programming, AVR intro Sven Gestegård Robertz Department of Computer Science, Lund University 2017 Outline 1 Low-level programming Bitwise operators Masking and
More informationMicroprocessors and Microcontrollers. Assignment 1:
Microprocessors and Microcontrollers Assignment 1: 1. List out the mass storage devices and their characteristics. 2. List the current workstations available in the market for graphics and business applications.
More informationIntroduction to Microcontrollers
Introduction to Microcontrollers Embedded Controller Simply an embedded controller is a controller that is embedded in a greater system. One can define an embedded controller as a controller (or computer)
More informationIn this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors.
About the Tutorial A microprocessor is a controlling unit of a micro-computer, fabricated on a small chip capable of performing Arithmetic Logical Unit (ALU) operations and communicating with the other
More informationINTERFACING HARDWARE WITH MICROCONTROLLER
INTERFACING HARDWARE WITH MICROCONTROLLER P.Raghavendra Prasad Final Yr EEE What is a Microcontroller? A microcontroller (or MCU) is acomputer-on-a-chip. It is a type of microprocessor emphasizing self-
More informationAVR ISA & AVR Programming (I) Lecturer: Sri Parameswaran Notes by: Annie Guo
AVR ISA & AVR Programming (I) Lecturer: Sri Parameswaran Notes by: Annie Guo 1 Lecture Overview AVR ISA AVR Instructions & Programming (I) Basic construct implementation 2 Atmel AVR 8-bit RISC architecture
More informationMicroprocessors I MICROCOMPUTERS AND MICROPROCESSORS
Microprocessors I Outline of the Lecture Microcomputers and Microprocessors Evolution of Intel 80x86 Family Microprocessors Binary and Hexadecimal Number Systems MICROCOMPUTERS AND MICROPROCESSORS There
More informationIAS0430 MICROPROCESSOR SYSTEMS
IAS0430 MICROPROCESSOR SYSTEMS Fall 2018 Arduino and assembly language Martin Jaanus U02-308 martin.jaanus@ttu.ee 620 2110, 56 91 31 93 Learning environment : http://isc.ttu.ee Materials : http://isc.ttu.ee/martin
More informationCPE 323 MSP430 INSTRUCTION SET ARCHITECTURE (ISA)
CPE 323 MSP430 INSTRUCTION SET ARCHITECTURE (ISA) Aleksandar Milenković Email: milenka@uah.edu Web: http://www.ece.uah.edu/~milenka Objective Introduce MSP430 Instruction Set Architecture (Class of ISA,
More informationELC4438: Embedded System Design Embedded Processor
ELC4438: Embedded System Design Embedded Processor Liang Dong Electrical and Computer Engineering Baylor University 1. Processor Architecture General PC Von Neumann Architecture a.k.a. Princeton Architecture
More informationIntroduction to Microcontrollers
CSE391: Embedded Systems and Interfacing Introduction to Microcontrollers Nazmus Saquib Lecturer Department of Computer Science and Engineering Bangladesh University of Engineering and Technology April
More informationAVR ISA & AVR Programming (I)
AVR ISA & AVR Programming (I) Lecturer: Sri Parameswaran Notes by: Annie Guo Week 1 1 Lecture Overview AVR ISA AVR Instructions & Programming (I) Basic construct implementation Week 1 2 1 Atmel AVR 8-bit
More informationAn FPGA Implementation of 8-bit RISC Microcontroller
An FPGA Implementation of 8-bit RISC Microcontroller Krishna Kumar mishra 1, Vaibhav Purwar 2, Pankaj Singh 3 1 M.Tech scholar, Department of Electronic and Communication Engineering Kanpur Institute of
More informationChapter 1: Basics of Microprocessor [08 M]
Microprocessor: Chapter 1: Basics of Microprocessor [08 M] It is a semiconductor device consisting of electronic logic circuits manufactured by using either a Large scale (LSI) or Very Large Scale (VLSI)
More informationIntroduction to Microprocessor
Introduction to Microprocessor The microprocessor is a general purpose programmable logic device. It is the brain of the computer and it performs all the computational tasks, calculations data processing
More informationCOMP2121: Microprocessors and Interfacing. I/O Devices (I)
COMP2121: Microprocessors and Interfacing I/O Devices (I) http://www.cse.unsw.edu.au/~cs2121 Lecturer: Hui Wu Session 2, 2017 1 Overview I/O Ports AVR Ports 2 2 What is I/O? I/O is Input or Output (Input/Output).
More information8-bit Microcontroller with 8K Bytes Programmable Flash AT90C8534. Preliminary
Features Utilizes the AVR RISC Architecture AVR High-performance and Low-power RISC Architecture 118 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General-purpose Working Registers Up
More information1. Internal Architecture of 8085 Microprocessor
1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within up to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the
More informationUNIVERSITY OF MORATUWA CS2052 COMPUTER ARCHITECTURE. Time allowed: 2 Hours 10 min December 2018
Index No: UNIVERSITY OF MORATUWA Faculty of Engineering Department of Computer Science & Engineering B.Sc. Engineering 2017 Intake Semester 2 Examination CS2052 COMPUTER ARCHITECTURE Time allowed: 2 Hours
More information8-bit Microcontroller with 2K Bytes of In-System Programmable Flash AT90S2323 AT90LS2323 AT90S2343 AT90S/LS2323. Features.
Features Utilizes the AVR RISC Architecture AVR - High-performance and Low-power RISC Architecture 118 Powerful Instructions - Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers
More informationDec Hex Bin ORG ; ZERO. Introduction To Computing
Dec Hex Bin 0 0 00000000 ORG ; ZERO Introduction To Computing OBJECTIVES this chapter enables the student to: Convert any number from base 2, base 10, or base 16 to any of the other two bases. Add and
More informationMICROPROCESSOR BASED SYSTEM DESIGN
MICROPROCESSOR BASED SYSTEM DESIGN Lecture 5 Xmega 128 B1: Architecture MUHAMMAD AMIR YOUSAF VON NEUMAN ARCHITECTURE CPU Memory Execution unit ALU Registers Both data and instructions at the same system
More informationIntroduction to 8051 microcontrollers
Introduction to 8051 microcontrollers Posted on May 7, 2008, by Ibrahim KAMAL, in Micro-controllers, tagged This tutorial is specially tailored to electronics and robotics hobbyists that have already realized
More information8-bit Microcontroller with 2K Bytes of In-System Programmable Flash AT90S2313
Features Utilizes the AVR RISC Architecture AVR High-performance and Low-power RISC Architecture 118 Powerful Instructions Most Single Clock Cycle Execution 32x8GeneralPurposeWorkingRegisters Up to 10
More information8051 microcontrollers
8051 microcontrollers Presented by: Deepak Kumar Rout Synergy Institute of Engineering and Technology, Dhenkanal Chapter 2 Introduction Intel MCS-51 family of microcontrollers consists of various devices
More informationLecture 1. Course Overview and The 8051 Architecture
Lecture 1 Course Overview and The 8051 Architecture MCUniversity Program Lectures 8051 architecture t System overview of C8051F020 8051 instruction set System clock, crossbar and GPIO Assembler directives
More informationEmbedded Systems Design (630414) Lecture 1 Introduction to Embedded Systems Prof. Kasim M. Al-Aubidy Computer Eng. Dept.
Embedded Systems Design (630414) Lecture 1 Introduction to Embedded Systems Prof. Kasim M. Al-Aubidy Computer Eng. Dept. Definition of an E.S. It is a system whose principal function is not computational,
More information8-bit Microcontroller with 2K Bytes of In-System Programmable Flash. ATtiny22 ATtiny22L. Preliminary. Features. Description
Features Utilizes the AVR RISC Architecture AVR - High-performance and Low-power RISC Architecture 118 Powerful Instructions - Most Single Clock Cycle Execution 32 x 8 General Purpose Working Registers
More informationAutomation Engineers AB Pvt Ltd, NOIDA Job-Oriented Course on Embedded Microcontrollers & Related Software Stack
Automation Engineers AB Pvt Ltd, NOIDA Job-Oriented Course on Embedded Microcontrollers & Related Software Stack Course Syllabus: Chapter# Topic Covered Duration MODULE 1 INTRO TO EMBEDDED SYSTEMS 2-1
More informationCOMPUTER STRUCTURE AND ORGANIZATION
COMPUTER STRUCTURE AND ORGANIZATION Course titular: DUMITRAŞCU Eugen Chapter 4 COMPUTER ORGANIZATION FUNDAMENTAL CONCEPTS CONTENT The scheme of 5 units von Neumann principles Functioning of a von Neumann
More informationINTRODUCTION TO MICROPROCESSORS
INTRODUCTION TO MICROPROCESSORS Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu January 7, 2016 Richa Upadhyay Prabhu (MPSTME) INTRODUCTION January 7, 2016 1 / 63 Course Design Prerequisite:
More informationMicrocontroller systems Lec 2 PIC18LF8722 Microcontroller s s core
TKT-3500 Microcontroller systems Lec 2 PIC18LF8722 Microcontroller s s core Erno Salminen Copyright notice Some figures by Robert Reese, from supplementary CD of the course book from PIC18F8722 Family
More informationINTEL Architectures GOPALAKRISHNAN IYER FALL 2009 ELEC : Computer Architecture and Design
INTEL Architectures GOPALAKRISHNAN IYER FALL 2009 GBI0001@AUBURN.EDU ELEC 6200-001: Computer Architecture and Design Silicon Technology Moore s law Moore's Law describes a long-term trend in the history
More informationME 515 Mechatronics. A microprocessor
ME 515 Mechatronics Microcontroller Based Control of Mechanical Systems Asanga Ratnaweera Department of Faculty of Engineering University of Peradeniya Tel: 081239 (3627) Email: asangar@pdn.ac.lk A microprocessor
More informationAVR. (AVR Assembly Language) Assembler . ก ก
AVR (AVR Assembly Language). ก ก Assembler 2 1 ก /* * AVRAssembler1.asm * * Created: 9/7/2554 9:40:18 * Author: xp */.org 0 rjmp RESET ;Reset Handle rjmp RESET rjmp RESET RESET: ldi r16, 0b11111111 ;load
More informationChapter 1 : Introduction
Chapter 1 Introduction 1.1 Introduction A Microprocessor is a multipurpose programmable, clock driven, register based electronic device that reads binary instructions from a storage device called memory,
More informationECE2049 E17 Lecture 4 MSP430 Architecture & Intro to Digital I/O
ECE2049-E17 Lecture 4 1 ECE2049 E17 Lecture 4 MSP430 Architecture & Intro to Digital I/O Administrivia Homework 1: Due today by 7pm o Either place in box in ECE office or give to me o Office hours tonight!
More informationASSEMBLY LANGUAGE MACHINE ORGANIZATION
ASSEMBLY LANGUAGE MACHINE ORGANIZATION CHAPTER 3 1 Sub-topics The topic will cover: Microprocessor architecture CPU processing methods Pipelining Superscalar RISC Multiprocessing Instruction Cycle Instruction
More informationAVR. 2. (Assembler directives ) 3. ( Instruction field) 5. (Comment field) 1. (Label field) Assembler. 4. ก (Operands field) (AVR Assembly Language)
3 AVR (AVR Assembly Language). ก ก ก /* * AVRAssembler1.asm * * Created: 9/7/2554 9:40:18 * Author: xp */.org 0 rjmp RESET ;Reset Handle rjmp RESET rjmp RESET RESET: ldi r16, 0b11111111 ;load register
More information7/28/ Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc.
Technology in Action Technology in Action Chapter 9 Behind the Scenes: A Closer Look a System Hardware Chapter Topics Computer switches Binary number system Inside the CPU Cache memory Types of RAM Computer
More informationIntroduction to Embedded Systems
Stefan Kowalewski, 4. November 25 Introduction to Embedded Systems Part 2: Microcontrollers. Basics 2. Structure/elements 3. Digital I/O 4. Interrupts 5. Timers/Counters Introduction to Embedded Systems
More informationAT90S Bit Microcontroller with 1K bytes Downloadable Flash AT90S1200. Features. Description. Pin Configuration
Features Utilizes the AVR Enhanced RISC Architecture 89 Powerful Instructions - Most Single Clock Cycle Execution 1K bytes of In-System Reprogrammable Downloadable Flash - SPI Serial Interface for Program
More informationCN310 Microprocessor Systems Design
CN310 Microprocessor Systems Design Micro Architecture Nawin Somyat Department of Electrical and Computer Engineering Thammasat University 28 August 2018 Outline Course Contents 1 Introduction 2 Simple
More informationELEG3923 Microprocessor Ch.0 & Ch.1 Introduction to Microcontroller
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch. & Ch. Introduction to Microcontroller Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 What is microcontroller? (Ch..) 85 Microcontroller
More information8086 INTERNAL ARCHITECTURE
8086 INTERNAL ARCHITECTURE Segment 2 Intel 8086 Microprocessor The 8086 CPU is divided into two independent functional parts: a) The Bus interface unit (BIU) b) Execution Unit (EU) Dividing the work between
More informationThe Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families
The Microcontroller Lecture Set 3 Architecture of the 8051 Microcontroller Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. In most cases, all that is
More informationModule 8: Atmega32 Stack & Subroutine. Stack Pointer Subroutine Call function
Module 8: Atmega32 Stack & Subroutine Stack Pointer Subroutine Call function Stack Stack o Stack is a section of RAM used by the CPU to store information temporarily (i.e. data or address). o The CPU needs
More informationModule I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.
MICROCONTROLLERS AND APPLICATIONS 1 Module 1 Module I Introduction to Microcontrollers: Comparison with Microprocessors Harvard and Von Neumann Architectures - 80C51 microcontroller features - internal
More informationDiploma in Embedded Systems
Diploma in Embedded Systems Duration: 5 Months[5 days a week,3 hours a day, Total 300 hours] Module 1: 8051 Microcontroller in Assemble Language Characteristics of Embedded System Overview of 8051 Family
More information8-bit Microcontroller with 2K Bytes of Flash. ATtiny28L ATtiny28V
Features Utilizes the AVR RISC Architecture AVR High-performance and Low-power RISC Architecture 90 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General-purpose Working Registers Up to
More informationCHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY
CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address
More informationChapter 2 Logic Gates and Introduction to Computer Architecture
Chapter 2 Logic Gates and Introduction to Computer Architecture 2.1 Introduction The basic components of an Integrated Circuit (IC) is logic gates which made of transistors, in digital system there are
More informationComputer Organization
INF 101 Fundamental Information Technology Computer Organization Assistant Prof. Dr. Turgay ĐBRĐKÇĐ Course slides are adapted from slides provided by Addison-Wesley Computing Fundamentals of Information
More informationEE 354 Fall 2015 Lecture 1 Architecture and Introduction
EE 354 Fall 2015 Lecture 1 Architecture and Introduction Note: Much of these notes are taken from the book: The definitive Guide to ARM Cortex M3 and Cortex M4 Processors by Joseph Yiu, third edition,
More informationCHAPTER ASSEMBLY LANGUAGE PROGRAMMING
CHAPTER 2 8051 ASSEMBLY LANGUAGE PROGRAMMING Registers Register are used to store information temporarily: A byte of data to be processed An address pointing to the data to be fetched The vast majority
More informationMICROCONTROLLERS 8051
MICROCONTROLLERS 8051 PART A Unit 1: Microprocessor and Microcontroller. Introduction, Microprocessor and Microcontrollers, A Microcontroller survey. RISC & CISC CPU Architectures, Harvard & Von Neumann
More informationCOMP2121 Experiment 4
COMP2121 Experiment 4 1. Objectives In this lab, you will learn AVR programming on Parallel input/output; Some typical input/output devices; and Interrupts 2. Preparation Before coming to the laboratory,
More informationQuestion Bank Microprocessor and Microcontroller
QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to
More informationRobosoft Systems in association with JNCE presents. Swarm Robotics
Robosoft Systems in association with JNCE presents Swarm Robotics What is a Robot Wall-E Asimo ABB Superior Moti ABB FlexPicker What is Swarm Robotics RoboCup ~ 07 Lets Prepare for the Robotics Age The
More information1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:
1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE: A microprocessor is a programmable electronics chip that has computing and decision making capabilities similar to central processing unit
More information8-bit Microcontroller with 1K Byte of In-System Programmable Flash AT90S1200
Features Utilizes the AVR RISC Architecture AVR High-performance and Low-power RISC Architecture 89 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General-purpose Working Registers Up to
More informationLecture (01) Introducing Embedded Systems and the Microcontrollers By: Dr. Ahmed ElShafee
Lecture (01) Introducing Embedded Systems and the Microcontrollers By: Dr. Ahmed ElShafee ١ Agenda What is microprocessor system? What is Microcontroller/embedded system? Definition of Embedded Systems
More informationCREATED BY M BILAL & Arslan Ahmad Shaad Visit:
CREATED BY M BILAL & Arslan Ahmad Shaad Visit: www.techo786.wordpress.com Q1: Define microprocessor? Short Questions Chapter No 01 Fundamental Concepts Microprocessor is a program-controlled and semiconductor
More informationMidrange 8b PIC Microcontrollers. ECE Senior Design 14 February 2017
Midrange 8b PIC Microcontrollers ECE Senior Design 14 February 2017 Harvard vs. Von Neumann Harvard Architecture Program Memory 14-bit Bus CPU 8-bit Bus Data Memory Harvard architecture Separate busses
More informationb. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:
Q.2 a. Discuss and differentiate between a Microprocessor and a Microcontroller. Microprocessor is an IC which has only the CPU inside them i.e. only the processing powers such as Intel s Pentium 1,2,3,4,
More informationacret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.
acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.) Module 0 Introduction Introduction to Embedded Systems, Real Time
More informationSegment 1A. Introduction to Microcomputer and Microprocessor
Segment 1A Introduction to Microcomputer and Microprocessor 1.1 General Architecture of a Microcomputer System: The term microcomputer is generally synonymous with personal computer, or a computer that
More information