Microprocessors and Microcontrollers CPU & ALU EE3954. by Maarten Uijt de Haag, Tim Bambeck, Harsha Chenji CPU & ALU.1
|
|
- Dorthy Cobb
- 7 years ago
- Views:
Transcription
1 Microprocessors and Microcontrollers CPU & ALU EE3954 by Maarten Uijt de Haag, Tim Bambeck, Harsha Chenji CPU & ALU.1
2 So far Oscillator (Section 2) To generate the device clock which is necessary for the device to execute instructions and for the peripherals to perform their functions Architecture (Section 4) CPU & ALU.2
3 Program Bus EPROM Program Memory Up to k x Program Counter -Level Stack (13-bit) RAM File Registers Up to 36 x Data Bus PORTA RA0 RA1 RA2 RA3 RA4 RA5 PORTB OSC1/CLKIN OSC2/CLKOUT Instruction Register Instruction Decode & Control Timing Generation Internal RC Clock 7 Power-Up Timer Oscillator Startup Timer Power-On Reset Watchdog Timer Brown-out Reset Address MUX FSR Register STATUS Register 3 MUX ALU W Register PORTC RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 RC0 RC1 RC2 RC3 RC4 RC5 RC6 RC7 CPU & ALU.3
4 Now CPU & ALU (Reference Manual - Section 5) Instruction Set Instruction Format Arithmetic and Logic Unit (ALU) STATUS Central Processing Unit (CPU) Assembly Language Programming using MPLAB CPU & ALU.4
5 Instruction Set Instruction Set: the language you use to talk to a specific computer or a set of instructions used to tell a computer what functions/procedures to perform Instruction Set Architecture: what kind of instructions does the instruction set consist of. CPU & ALU.5
6 Instruction Set PICMicro Microcontrollers Byte-oriented File Register* Operations Program Bus EPROM Program Memory Up to k x Bit-oriented File Register Operations Program Counter -Level Stack (13-bit) RAM File Registers Up to 36 x Data Bus Literal and Control Operations PORTA RA0 RA1 RA2 RA3 RA4 RA5 Instruction Register * Part of data memory 7 Address MUX PORTB RB0 RB1 CPU & ALU.6
7 Instruction Set - Byte Oriented CPU & ALU.7
8 Instruction Set Bit Oriented CPU & ALU.
9 Instruction Set Literal and Control Operations CPU & ALU.9
10 Arithmetic and Logic Unit (ALU) Addition Subtraction Shift Logical Clear addwf, addlw, incf subwf, sublw, decf rlf, rrf andwf, xorwf, iorwf, andlw, xorlw, iorlw, comf clrf CPU & ALU.10
11 Arithmetic and Logic Unit (ALU) -bit literal -bit register value W Register Special function registers (SFRs) for example PORTS And d bit or from instruction ALU MUX General Purpose Registers (GPR) from RAM If d = 0 result goes to W. For literal instructionsliteral goes to W. If d =1 result goes to file register. CPU & ALU.11
12 Program Bus EPROM Program Memory Up to k x Program Counter -Level Stack (13-bit) RAM File Registers Up to 36 x Data Bus PORTA RA0 RA1 RA2 RA3 RA4 RA5 PORTB OSC1/CLKIN OSC2/CLKOUT Instruction Register Instruction Decode & Control Timing Generation Internal RC Clock 7 Power-Up Timer Oscillator Startup Timer Power-On Reset Watchdog Timer Brown-out Reset Address MUX FSR Register STATUS Register 3 MUX ALU W Register PORTC RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 RC0 RC1 RC2 RC3 RC4 RC5 RC6 RC7 CPU & ALU.12
13 Arithmetic and Logic Unit (ALU) addlw 22h -bit literal: 22h -bit register value addlw 22h means w ß (w) + 22h d bit or from instruction W Register ALU MUX Special function registers (SFRs) And General Purpose Registers (GPR) d = 0 or literal instructions d =1 CPU & ALU.13
14 Destination Bit f: address of register in RAM (Register File) d: destination bit addwf 0x23, 1 means 0x23 ß (0x23) + W 1 F (register) 0 - W addwf 0x23, 0 means W ß (0x23) + W CPU & ALU.14
15 Arithmetic and Logic Unit (ALU) addwf 22h,0 Data Memory: -bit register value addwf 22h,0 means w ß (w) + (22h) d bit or from instruction W Register ALU MUX Special function registers (SFRs) And General Purpose Registers (GPR) d = 0 or literal instructions d =1 CPU & ALU.15
16 STATUS Register (0x03 in all banks) Contains the arithmetic status of the ALU, the RESET and the bank select bits (to be discussed in Section 6) ALU-related CPU & ALU.16
17 STATUS Register ALU Related bits CPU & ALU.17
18 STATUS Register CPU & ALU.1
19 Suppose w contains 34h. addlw 52h STATUS Example -addition 34h + 52h =? Not equal to zero, thus Z=0 Carry equal to zero, thus C=0 Carry from bit 3 to bit 4 is 0, thus DC=0 CPU & ALU.19
20 STATUS Example - subtraction Suppose w contains 34h. = binary sublw 52h (subtract w from literal) 52h - 34h = 52h + (twos complement of 34h) = ones complement of 34h 1 = add = twos complement of 34h = 52h (2d) = - 34h (-52d) Eh (30d) Z = 0 C = 1 DC = 0 Or, in decimal: 2-52 = 30 CPU & ALU.20
21 Assembly Example Suppose we want to perform the operation: 34h + 52h = 6h movlw 34h ; you need to use the w register!! addlw 52h ; result (6h) is stored in w Now using a temporary register called TEMP: TEMP equ 20h ; entry in register file (location 20h) movlw 34h ; you need to use the w register!! movwf TEMP ; move the value to Register TEMP movlw 52h ; store 52h in w addwf TEMP,1 ; add w and TEMP, put the result at TEMP CPU & ALU.21
22 Instruction Set Suppose there is an LED connected to pin RD1 (PORTD bit 1) as follows: RD1 R (470) bsf 0h,1 or, PORTD equ 0h bsf PORTD,1 CPU & ALU.22
23 Arithmetic and Logic Unit (ALU) bsf TEMP,5 (TEMP equ 20h) -bit literal -bit register value bsf TEMP,5 means TEMP<5> ß 1 d bit or from instruction W Register ALU MUX Special function registers (SFRs) And General Purpose Registers (GPR) d = 0 or literal instructions d =1 CPU & ALU.23
24 Another Example Suppose there is an LED connected to pin RC2 (PORTC bit 2) and a switch connected to RB0 (PORTB bit 0) as follows: V DD (5VDC ) R= 4.7 KΩ RB0 RC2 R (470) Write a program that, if the switch is closed, turns on the LED, and, if the switch is open, turns it off. CPU & ALU.24
25 Example Step 1: Need to check if the switch (RB0) is open or closed: If it is open V =? +5 V or Logic 1 If it is closed V =? 0 V or Logic 0 Step 2: How to check for this with an instruction? Hint: we need to check bit 0 of PORTB! Step 3: How to turn on or off the LED? If LED must be on RC2 must be V =? If LED must be off RC2 must be V =? +5V or Logic 1 0V or Logic 0 Step 4: Write the program. CPU & ALU.25
26 Example FLOW-CHART* Main if ( switch closed ) { turn on LED } else { turn off LED } Switch closed? Yes Turn on LED No Turn off LED *See the flow-chart guide! CPU & ALU.26
27 Example Alternative Flowchart Main Main Switch closed? No Switch closed? Yes No Yes Turn on LED Turn on LED Turn off LED Turn off LED CPU & ALU.27
28 Example Label Fields Mnemonic Fields Argument Fields Comment Fields TST btfss PORTB,0 ; port B bit 0 is tested goto LED_ON ; switch is closed (RB0=0) goto LED_OFF ; switch is open (RB0=1) LED_OFF bcf PORTC,2 ; turn LED off goto TST ; return to bit testing statement LED_ON bsf PORTC,2 ; turn on LED goto TST ; return to bit testing statement First example of branching (if..then )! CPU & ALU.2
29 Example Can it get any smaller? TST btfss PORTB,0 ; port B bit 0 is tested goto LED_ON ; switch is closed (RB0=0) goto LED_OFF ; switch is open (RB0=1) LED_OFF bcf PORTC,2 ; turn LED off goto TST ; return to bit testing statement LED_ON bsf PORTC,2 ; turn on LED goto TST ; return to bit testing statement TST btfss PORTB,0 ; port B bit 0 is tested goto LED_ON ; switch is closed (RB0=0) LED_OFF bcf PORTC,2 ; turn LED off goto TST ; return to bit testing statement LED_ON bsf PORTC,2 ; turn on LED goto TST ; return to bit testing statement CPU & ALU.29
30 Instructions 14-bit in Program Memory Program Bus EPROM Program Memory Up to k x Program Counter -Level Stack (13-bit) RAM File Registers Up to 36 x Data Bus PORTA RA0 RA1 RA2 RA3 RA4 RA5 PORTB Instruction Register 7 Address MUX RB0 RB1 RB2 CPU & ALU.30
31 Instruction Format Conversion to Machine Code CPU & ALU.31
32 Instruction Set CPU & ALU.32
33 Instruction Set CPU & ALU.33
34 Arithmetic and Logic Unit (ALU) addlw 22h Instruction in Program Memory bit literal: 22h -bit register value literal k 22h = b W Register Special function registers (SFRs) addlw 22h means w ß (w) + 22h d bit or from instruction ALU MUX And General Purpose Registers (GPR) d = 0 or literal instructions d =1 CPU & ALU.34
35 Arithmetic and Logic Unit (ALU) bsf TEMP,5 (TEMP equ 20h) Instruction in Program Memory bit literal -bit register value bit b 5 = 101b register f 20h = b W Register Special function registers (SFRs) And d bit or from instruction ALU MUX General Purpose Registers (GPR) d = 0 or literal instructions d =1 CPU & ALU.35
36 Instruction Format Examples movlw 44h addwf TEMP,1 btfsc TEMP,6 sleep NOTE: TEMP equ 20h CPU & ALU.36
37 Central Processing Unit (CPU) Uses the Arithmetic and Logic Unit (ALU), Responsible for Fetch, Decode, and Execute, Control Unit and Datapath, Controls memory address bus, Controls memory data bus, Controls stack. CPU & ALU.37
Flow Charts & Assembly Language
Microprocessors and Microcontrollers Flow Charts & Assembly Language EE3954 by Maarten Uijt de Haag, Tim Bambeck, Harsha Chenji Flowcharts.1 Flow Chart Diagram of the sequence of operations in a computer
More informationSection 29. Instruction Set
M Section 29. Instruction Set HIGHLIGHTS This section of the manual contains the following major topics: 29. Introduction...29-2 29.2 Instruction Formats...29-4 29.3 Special Function Registers as Source/Destination...29-6
More informationPIC Programming in Assembly. (http://www.mstracey.btinternet.co.uk/index.htm)
PIC Programming in Assembly (http://www.mstracey.btinternet.co.uk/index.htm) Tutorial 1 Good Programming Techniques. Before we get to the nitty gritty of programming the PIC, I think now is a good time
More information10-bit Σ ADC from a PIC16F84
1-bit Σ ADC from a PIC16F84 Jesús Arias 22nd November 23 1 The circuit +5V 1 + 1uF 1nF 1nF 33 4.7 V DTR U1 Analog Input ( 5 Volt) R3 68K R1 1K R2 1K C1 33nF PIC16F84 RB7 RA2 RA3 ad2.asm OSC1 OSC2 X1 R4
More informationHi Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan
PIC18 Timer Programming g Hi Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan chanhl@mail.cgu.edu.twcgu Functions of PIC18 timer Functions of the timer Generate a time delay As
More informationSPI. Overview and Use of the PICmicro Serial Peripheral Interface. Getting Started: SPI
SPI Overview and Use of the PICmicro Serial Peripheral Interface In this presentation, we will look at what the Serial Peripheral Interface, otherwise known as the SPI, is, and how it is used to communicate
More informationHow To Program A Microcontroller With Memory On A Microchip Microcontroller
Getting Started with On-chip Memory 2001 Microchip Technology Incorporated. All Rights Reserved. S0001A RAM/ROM(x14) 1 In this Getting Started tutorial you will learn about the various memory types found
More informationAN727. Credit Card Reader Using a PIC12C509 DATA ENCODING INTRODUCTION FIGURE 1: POSITION OF ISO TRACKS 1, 2 AND 3. Andrew M Errington
Credit Using a PIC12C509 AN727 Author: INTRODUCTION Andrew M Errington Many people carry one or more magnetically encoded cards with them for accessing a range of services. Perhaps the most common example
More informationEmbedded C Programming
Microprocessors and Microcontrollers Embedded C Programming EE3954 by Maarten Uijt de Haag, Tim Bambeck EmbeddedC.1 References MPLAB XC8 C Compiler User s Guide EmbeddedC.2 Assembly versus C C Code High-level
More informationMICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1
MICROPROCESSOR A microprocessor incorporates the functions of a computer s central processing unit (CPU) on a single Integrated (IC), or at most a few integrated circuit. It is a multipurpose, programmable
More informationc0003 A Simple PIC Application CHAPTER 3
c0003 CHAPTER 3 A Simple PIC Application Chapter Outline 3.1. Hardware Design 46 3.1.1. PIC 16F84A Pin-Out 46 3.1.2. BIN Hardware Block Diagram 47 3.1.3. BIN Circuit Operation 48 3.2. Program Execution
More informationPIC12F508/509/16F505 Data Sheet
Data Sheet 8/14-Pin, 8-Bit Flash Microcontrollers 2009 Microchip Technology Inc. DS41236E Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
More informationProgramming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II
Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II Administration: o Prayer PicBasic Pro Programs Used in This Lesson: o General PicBasic Pro Program
More informationUsing The PIC I/O Ports
EE2801 -- Lecture 22 Using The PIC I/O Ports EE2801-L22P01 The Variety Of Available IO Ports The PIC 16F874 microcontroller has five different IO ports, accounting for thirty three of the processors forty
More informationAUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR
AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR INTRODUCTION This Project "Automatic Night Lamp with Morning Alarm" was developed using Microprocessor. It is the Heart of the system. The sensors
More informationMICROPROCESSOR AND MICROCOMPUTER BASICS
Introduction MICROPROCESSOR AND MICROCOMPUTER BASICS At present there are many types and sizes of computers available. These computers are designed and constructed based on digital and Integrated Circuit
More informationPIC16F84A. 18-pin Enhanced Flash/EEPROM 8-Bit Microcontroller. Devices Included in this Data Sheet: Pin Diagrams. High Performance RISC CPU Features:
M PIC6F84A 8-pin Enhanced Flash/EEPROM 8-Bit Microcontroller Devices Included in this Data Sheet: PIC6F84A Extended voltage range device available (PIC6LF84A) High Performance RISC CPU Features: Only 35
More information150127-Microprocessor & Assembly Language
Chapter 3 Z80 Microprocessor Architecture The Z 80 is one of the most talented 8 bit microprocessors, and many microprocessor-based systems are designed around the Z80. The Z80 microprocessor needs an
More informationIntroduction to Microcontrollers
Introduction to Microcontrollers Motorola M68HC11 Specs Assembly Programming Language BUFFALO Topics of Discussion Microcontrollers M68HC11 Package & Pinouts Accumulators Index Registers Special Registers
More informationFour-Channel Digital Voltmeter with Display and Keyboard. 8 x 220W RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 RA0 RA1 RA2 RA3 PIC16C71
Four-Channel Digital Voltmeter with Display and Keyboard Author: Stan D Souza Microchip Technology Inc. MULTIPLEXING FOUR 7-SEGMENT LED DISPLAYS INTRODUCTION The PIC16C71 is a member of the mid-range family
More informationPIC16F8X. 18-pin Flash/EEPROM 8-Bit Microcontrollers. Devices Included in this Data Sheet: Pin Diagrams. High Performance RISC CPU Features:
18-pin Flash/EEPROM 8-Bit Microcontrollers Devices Included in this Data Sheet: PIC16F83 PIC16F84 PIC16CR83 PIC16CR84 Extended voltage range devices available (PIC16LF8X, PIC16LCR8X) High Performance RISC
More informationChapter 13. PIC Family Microcontroller
Chapter 13 PIC Family Microcontroller Lesson 01 PIC Characteristics and Examples PIC microcontroller characteristics Power-on reset Brown out reset Simplified instruction set High speed execution Up to
More information(Refer Slide Time: 00:01:16 min)
Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control
More informationSection 9. I/O Ports
I/O Ports M Section 9. I/O Ports HIGHLIGHTS This section of the manual contains the following major topics: 9.1 Introduction...9-2 9.2 PORTA and the TRISA Register...9-4 9.3 PORTB and the TRISB Register...9-6
More informationPIC in Practice. A Project-Based Approach. D. W. Smith
PIC in Practice PIC in Practice A Project-Based Approach D. W. Smith AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO Newnes is an imprint of Elsevier
More informationSection 8. Interrupts
Interrupts M Section 8. Interrupts HIGHLIGHTS This section of the manual contains the following major topics: 8.1 Introduction...8-2 8.2 Control Registers...8-5 8.3 Interrupt Latency...8-10 8.4 INT and
More informationPIC16F526 Data Sheet. 14-Pin, 8-Bit Flash Microcontroller. 2007 Microchip Technology Inc. Preliminary DS41326A
Data Sheet 14-Pin, 8-Bit Flash Microcontroller 2007 Microchip Technology Inc. Preliminary DS41326A Note the following details of the code protection feature on Microchip devices: Microchip products meet
More informationCentral Processing Unit (CPU)
Central Processing Unit (CPU) CPU is the heart and brain It interprets and executes machine level instructions Controls data transfer from/to Main Memory (MM) and CPU Detects any errors In the following
More informationPIC16F84A Data Sheet. 18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller. 2001 Microchip Technology Inc. DS35007B
M PIC16F84A Data Sheet 18-pin Enhanced FLASH/EEPROM 8-bit Microcontroller 2001 Microchip Technology Inc. DS35007B Note the following details of the code protection feature on PICmicro MCUs. The PICmicro
More informationPIC16F5X Data Sheet. Flash-Based, 8-Bit CMOS Microcontroller Series. 2007 Microchip Technology Inc. DS41213D
Data Sheet Flash-Based, 8-Bit CMOS Microcontroller Series 2007 Microchip Technology Inc. DS41213D Note the following details of the code protection feature on Microchip devices: Microchip products meet
More informationQuick Reference. B.5 12-Bit Core Instruction Set APPENDICES
Quic Reference B.5 12-Bit ore Instruction Set Microchip s base-line 8-bit microcontroller family uses a 12-bit wide instruction set. All instructions execute in a single instruction cycle unless otherwise
More informationAn Introduction to MPLAB Integrated Development Environment
An Introduction to MPLAB Integrated Development Environment 2004 Microchip Technology Incorporated An introduction to MPLAB Integrated Development Environment Slide 1 This seminar is an introduction to
More informationPIC10F200/202/204/206 Data Sheet
Data Sheet 6-Pin, 8-bit Flash Microcontrollers 2007 Microchip Technology Inc. DS41239D Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
More informationMACHINE ARCHITECTURE & LANGUAGE
in the name of God the compassionate, the merciful notes on MACHINE ARCHITECTURE & LANGUAGE compiled by Jumong Chap. 9 Microprocessor Fundamentals A system designer should consider a microprocessor-based
More informationSSPBUF. Shift Clock SSPSR. START bit, STOP bit, Acknowledge Generate
Using the PICmicro MSSP Module for Master I 2 C TM Communications AN735 Author: INTRODUCTION Richard L. Fischer Microchip Technology Inc. This application note describes the implementation of the PICmicro
More informationAnalog-to-Digital Converters
Analog-to-Digital Converters In this presentation we will look at the Analog-to-Digital Converter Peripherals with Microchip s midrange PICmicro Microcontrollers series. 1 Analog-to-Digital Converters
More informationMemory organization. Memory blocks: Program memory (flash-type) 16 kword (32 kbyte) (instruction 16 bit wide) Data RAM 1536 byte (1.
TNE019 Mikrodatorer F2 1 Memory organization Memory blocks: Program memory (flash-type) 16 kword (32 kbyte) (instruction 16 bit wide) PC Reset Data RAM 1536 byte (1.5 kbyte) Data EEPROM 256 byte TNE019
More informationLSN 2 Computer Processors
LSN 2 Computer Processors Department of Engineering Technology LSN 2 Computer Processors Microprocessors Design Instruction set Processor organization Processor performance Bandwidth Clock speed LSN 2
More informationI 2 C Master Mode Overview and Use of the PICmicro MSSP I 2 C Interface with a 24xx01x EEPROM
I 2 C Master Mode Overview and Use of the PICmicro MSSP I 2 C Interface with a 24xx01x EEPROM v 0.40 Welcome to the Microchip Technology Presentation on using the MSSP module in Master I 2 C mode. In this
More informationChapter 5 Instructor's Manual
The Essentials of Computer Organization and Architecture Linda Null and Julia Lobur Jones and Bartlett Publishers, 2003 Chapter 5 Instructor's Manual Chapter Objectives Chapter 5, A Closer Look at Instruction
More informationCHAPTER 4 MARIE: An Introduction to a Simple Computer
CHAPTER 4 MARIE: An Introduction to a Simple Computer 4.1 Introduction 195 4.2 CPU Basics and Organization 195 4.2.1 The Registers 196 4.2.2 The ALU 197 4.2.3 The Control Unit 197 4.3 The Bus 197 4.4 Clocks
More informationSection 14. Compare/Capture/PWM (CCP)
M Section 14. Compare/Capture/PWM (CCP) HIGHLIGHTS This section of the manual contains the following major topics: 14.1 Introduction...14-2 14.2 Control Register...14-3 14.3 Capture Mode...14-4 14.4 Compare
More informationSection 28. In-Circuit Serial Programming (ICSP )
M Section 28. In-Circuit Serial Programming (ICSP ) HIGHLIGHTS This section of the manual contains the following major topics: 28. Introduction...28-2 28.2 Entering In-Circuit Serial Programming Mode...28-3
More information8051 MICROCONTROLLER COURSE
8051 MICROCONTROLLER COURSE Objective: 1. Familiarization with different types of Microcontroller 2. To know 8051 microcontroller in detail 3. Programming and Interfacing 8051 microcontroller Prerequisites:
More informationInstruction Set Architecture. or How to talk to computers if you aren t in Star Trek
Instruction Set Architecture or How to talk to computers if you aren t in Star Trek The Instruction Set Architecture Application Compiler Instr. Set Proc. Operating System I/O system Instruction Set Architecture
More informationBuilding A RISC Microcontroller in an FPGA
Building A RISC Microcontroller in an FPGA Name : Yap Zi He Course : 4 SEL Supervisor : PM Muhammad Mun im Ahmad Zabidi Introduction Reduce Instruction Set Computer (RISC) is a new trend on computer design.
More informationChapter 2: Assembly Language Programming. The PIC18 Microcontroller. Han-Way Huang
Chapter 2: Assembly Language Programming The PIC18 Microcontroller Han-Way Huang Minnesota State University, Mankato H. Huang Transparency No.2-1 Components of an Assembly Program - Assembler directives
More informationComputer organization
Computer organization Computer design an application of digital logic design procedures Computer = processing unit + memory system Processing unit = control + datapath Control = finite state machine inputs
More informationAN880. Converting from 8051 to Microchip Assembler: A Quick Reference INTRODUCTION
Converting from 805 to Assembler: A Quick Reference Author: INTRODUCTION Gaurang Kavaiya Technology Inc. When migrating assembly language programs from one family of microcontrollers to another, the first
More informationİSTANBUL AYDIN UNIVERSITY
İSTANBUL AYDIN UNIVERSITY FACULTY OF ENGİNEERİNG SOFTWARE ENGINEERING THE PROJECT OF THE INSTRUCTION SET COMPUTER ORGANIZATION GÖZDE ARAS B1205.090015 Instructor: Prof. Dr. HASAN HÜSEYİN BALIK DECEMBER
More informationDEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC6504 - Microprocessor & Microcontroller Year/Sem : II/IV UNIT I THE 8086 MICROPROCESSOR 1. What is the purpose of segment registers
More informationUNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC180B Lab 7: MISP Processor Design Spring 1995
UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180B Lab 7: MISP Processor Design Spring 1995 Objective: In this lab, you will complete the design of the MISP processor,
More informationEMBEDDED SYSTEMS PROGRAMMING WITH THE PIC16F877
EMBEDDED SYSTEMS PROGRAMMING WITH THE PIC16F877 Second Edition By Timothy D. Green Copyright 2008 by Timothy D. Green All Rights Reserved. Table of Contents Preface. 5 List of Figures. 6 Abbreviations
More informationAN857. Brushless DC Motor Control Made Easy INTRODUCTION S 001 B. Anatomy of a BLDC SIMPLIFIED BLDC MOTOR DIAGRAMS
Brushless DC Motor Control Made Easy AN857 Author: INTRODUCTION Ward Brown Microchip Technology Inc. This application note discusses the steps of developing several controllers for brushless motors. We
More informationEE25M Introduction to microprocessors. Solutions & study tips. original author: Feisal Mohammed updated: 4th March 2002 CLR
EE25M Introduction to microprocessors original author: Feisal Mohammed updated: 4th March 2002 CLR C Solutions & study tips The solutions presented here should be consulted only AFTER you have attempted
More informationPART B QUESTIONS AND ANSWERS UNIT I
PART B QUESTIONS AND ANSWERS UNIT I 1. Explain the architecture of 8085 microprocessor? Logic pin out of 8085 microprocessor Address bus: unidirectional bus, used as high order bus Data bus: bi-directional
More informationET-BASE AVR ATmega64/128
ET-BASE AVR ATmega64/128 ET-BASE AVR ATmega64/128 which is a Board Microcontroller AVR family from ATMEL uses MCU No.ATmega64 and ATmega128 64PIN. Board ET-BASE AVR ATmega64/128 uses MCU s resources on
More informationAN857. Brushless DC Motor Control Made Easy INTRODUCTION S 001 B. Anatomy of a BLDC SIMPLIFIED BLDC MOTOR DIAGRAMS. Microchip Technology Inc.
Brushless DC Motor Control Made Easy AN857 Author: Ward Brown Microchip Technology Inc. INTRODUCTION This application note discusses the steps of developing several controllers for brushless motors. We
More informationSummary of the MARIE Assembly Language
Supplement for Assignment # (sections.8 -. of the textbook) Summary of the MARIE Assembly Language Type of Instructions Arithmetic Data Transfer I/O Branch Subroutine call and return Mnemonic ADD X SUBT
More informationSimple Alarm System WIRELESS AND REMOTE CONTROLLED PERSONAL APPLIANCE CODE WORD ORGANIZATION TRANSMISSION FORMAT
Simple Alarm System WIRELESS AND REMOTE CONTROLLED PERSONAL APPLIANCE Author: Kirill Yelizarov V. Moscow Power Engineering Institute Moscow, Russia email: tihonov@srv-vmss.mpei.ac.ru The alarm system discussed
More informationAN617. Fixed Point Routines FIXED POINT ARITHMETIC INTRODUCTION. Thi d t t d ith F M k 4 0 4. Design Consultant
Thi d t t d ith F M k 4 0 4 Fixed Point Routines AN617 Author: INTRODUCTION Frank J. Testa Design Consultant This application note presents an implementation of the following fixed point math routines
More informationEXERCISE 3: String Variables and ASCII Code
EXERCISE 3: String Variables and ASCII Code EXERCISE OBJECTIVE When you have completed this exercise, you will be able to describe the use of string variable and ASCII code. You will use Flowcode and the
More informationARM Cortex-M3 Assembly Language
ARM Cortex-M3 Assembly Language When a high level language compiler processes source code, it generates the assembly language translation of all of the high level code into a processor s specific set of
More informationProgramming Logic controllers
Programming Logic controllers Programmable Logic Controller (PLC) is a microprocessor based system that uses programmable memory to store instructions and implement functions such as logic, sequencing,
More informationKeil C51 Cross Compiler
Keil C51 Cross Compiler ANSI C Compiler Generates fast compact code for the 8051 and it s derivatives Advantages of C over Assembler Do not need to know the microcontroller instruction set Register allocation
More informationPIC12F519 Data Sheet. 8-Pin, 8-Bit Flash Microcontrollers
Data Sheet 8-Pin, 8-Bit Flash Microcontrollers *8-bit, 8-pin devices protected by Microchip s Low Pin Count Patent: U.S. Patent No. 5,847,450. Additional U.S. and foreign patents and applications may be
More informationCHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions
CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions All computers, from the first room-sized mainframes, to today's powerful desktop, laptop and even hand-held PCs, perform
More informationAN585. A Real-Time Operating System for PICmicro Microcontrollers INTRODUCTION. Why do I Need a Real-Time Kernel? What is Multitasking Anyway?
A Real-Time Operating System for PICmicro Microcontrollers Author: INTRODUCTION Jerry Farmer Myriad Development Company Ever dream of having a Real-Time Kernel for the PIC16CXXX family of microcontrollers?
More informationLecture N -1- PHYS 3330. Microcontrollers
Lecture N -1- PHYS 3330 Microcontrollers If you need more than a handful of logic gates to accomplish the task at hand, you likely should use a microcontroller instead of discrete logic gates 1. Microcontrollers
More informationwhat operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?
Inside the CPU how does the CPU work? what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored? some short, boring programs to illustrate the
More information8051 hardware summary
8051 hardware summary 8051 block diagram 8051 pinouts + 5V ports port 0 port 1 port 2 port 3 : dual-purpose (general-purpose, external memory address and data) : dedicated (interfacing to external devices)
More informationIntroduction to MPLAB IDE
Introduction to MPLAB IDE What is IDE? Integrated Development Environment (IDE) Collection of integrated programs (tools) to write assembly programs, assemble, execute, and debug programs. Microchip IDE
More informationMicroprocessor and Microcontroller Architecture
Microprocessor and Microcontroller Architecture 1 Von Neumann Architecture Stored-Program Digital Computer Digital computation in ALU Programmable via set of standard instructions input memory output Internal
More informationPIC16CR7X Data Sheet. 28/40-Pin, 8-Bit CMOS ROM Microcontrollers. 2006 Microchip Technology Inc. DS21993A
Data Sheet 28/40-Pin, 8-Bit CMOS ROM Microcontrollers 2006 Microchip Technology Inc. DS21993A Note the following details of the code protection feature on Microchip devices: Microchip products meet the
More information8-Bit CMOS Microcontrollers with A/D Converter
8-Bit CMOS Microcontrollers with A/D Converter Devices included in this data sheet: PIC16C72 PIC16C73 PIC16C73A PIC16C74 PIC16C74A PIC16C76 PIC16C77 PIC16C7X Microcontroller Core Features: High-performance
More informationEE282 Computer Architecture and Organization Midterm Exam February 13, 2001. (Total Time = 120 minutes, Total Points = 100)
EE282 Computer Architecture and Organization Midterm Exam February 13, 2001 (Total Time = 120 minutes, Total Points = 100) Name: (please print) Wolfe - Solution In recognition of and in the spirit of the
More informationPIC16F627A/628A/648A Data Sheet
Data Sheet Flash-Based 8-Bit CMOS Microcontrollers with nanowatt Technology 2004 Microchip Technology Inc. Preliminary DS40044B Note the following details of the code protection feature on Microchip devices:
More informationAN657. Decoding Infrared Remote Controls Using a PIC16C5X Microcontroller INTRODUCTION HARDWARE DESCRIPTION THE THREE LAYERS OF AN INFRARED SIGNAL
Decoding Infrared Remote Controls Using a PIC16C5X Microcontroller Author: William G. Grimm Consultant INTRODUCTION For many years the consumer electronics industry has been employing infrared remote controls
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 informationMachine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.
1 Topics Machine Architecture and Number Systems Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting from Decimal to Binary Major Computer Components
More informationPIC12F510/16F506 Data Sheet
Data Sheet 8/14-Pin, 8-Bit Flash Microcontrollers 2007 Microchip Technology Inc. DS41268D Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
More informationCS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions
CS101 Lecture 26: Low Level Programming John Magee 30 July 2013 Some material copyright Jones and Bartlett 1 Overview/Questions What did we do last time? How can we control the computer s circuits? How
More informationPIC16F62X. FLASH-Based 8-Bit CMOS Microcontrollers. Devices included in this data sheet: Special Microcontroller Features: High Performance RISC CPU:
FLASH-Based 8-Bit CMOS Microcontrollers Devices included in this data sheet: PIC16F627 PIC16F628 Referred to collectively as PIC16F62X. High Performance RISC CPU: Only 35 instructions to learn All single-cycle
More informationEMBEDDED SYSTEM BASICS AND APPLICATION
EMBEDDED SYSTEM BASICS AND APPLICATION TOPICS TO BE DISCUSSED System Embedded System Components Classifications Processors Other Hardware Software Applications 2 INTRODUCTION What is a system? A system
More informationMicrocontrollers A Brief History of Microprocessors
Microcontrollers A Brief History of Microprocessors The first microprocessor was developed by what was then a small company called Intel (short for Integrated Electronics) in the early 1970s. The client,
More informationByte code Interpreter for 8051 Microcontroller
Byte code Interpreter for 8051 Microcontroller N. Jeenjun S. Khuntaweetep and S. Somkuarnpanit Abstract This paper proposes a design of byte code interpreter for 8051 microcontroller. We developed a program
More informationFirst Steps. with. Embedded Systems. Byte Craft Limited. ox40; gs&0x20) table(); 02A4 A 02A6 B 02A9 C
First Steps with Embedded Systems Byte Craft Limited 02A4 A 02A6 B 02A9 C ox40; gs&0x20) table(); CDS Code Development Systems The Byte Craft Limited Code Development Systems are high-performance embedded
More informationAdvanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2
Lecture Handout Computer Architecture Lecture No. 2 Reading Material Vincent P. Heuring&Harry F. Jordan Chapter 2,Chapter3 Computer Systems Design and Architecture 2.1, 2.2, 3.2 Summary 1) A taxonomy of
More informationPIC12F629/675 Data Sheet
Data Sheet 8-Pin FLASH-Based 8-Bit CMOS Microcontrollers 2003 Microchip Technology Inc. DS41190C Note the following details of the code protection feature on Microchip devices: Microchip products meet
More informationProgrammable State-Variable Filter Design For a Feedback Systems Web-Based Laboratory
Programmable State-Variable Filter Design For a Feedback Systems Web-Based Laboratory by Rayal Johnson February 7, 004 Abstract Advanced Undergraduate Project Massachusetts Institute of Technology Department
More informationMicrocontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes:
Microcontroller Basics A microcontroller is a small, low-cost computer-on-a-chip which usually includes: An 8 or 16 bit microprocessor (CPU). A small amount of RAM. Programmable ROM and/or flash memory.
More informationComputer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu.
Computer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu.tw Review Computers in mid 50 s Hardware was expensive
More informationCentral Processing Unit Simulation Version v2.5 (July 2005) Charles André University Nice-Sophia Antipolis
Central Processing Unit Simulation Version v2.5 (July 2005) Charles André University Nice-Sophia Antipolis 1 1 Table of Contents 1 Table of Contents... 3 2 Overview... 5 3 Installation... 7 4 The CPU
More informationCPU Organization and Assembly Language
COS 140 Foundations of Computer Science School of Computing and Information Science University of Maine October 2, 2015 Outline 1 2 3 4 5 6 7 8 Homework and announcements Reading: Chapter 12 Homework:
More informationChapter 01: Introduction. Lesson 02 Evolution of Computers Part 2 First generation Computers
Chapter 01: Introduction Lesson 02 Evolution of Computers Part 2 First generation Computers Objective Understand how electronic computers evolved during the first generation of computers First Generation
More informationPIC16F627A/628A/648A Data Sheet
Data Sheet Flash-Based, 8-Bit CMOS Microcontrollers with nanowatt Technology 2005 Microchip Technology Inc. DS40044D Note the following details of the code protection feature on Microchip devices: Microchip
More information456 26 Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller
This sample chapter is for review purposes only. Copyright The Goodheart-Willcox Co., Inc. All rights reserved. 456 Electronic Communication and Data Systems Objectives After studying this chapter, you
More informationCSE 141L Computer Architecture Lab Fall 2003. Lecture 2
CSE 141L Computer Architecture Lab Fall 2003 Lecture 2 Pramod V. Argade CSE141L: Computer Architecture Lab Instructor: TA: Readers: Pramod V. Argade (p2argade@cs.ucsd.edu) Office Hour: Tue./Thu. 9:30-10:30
More informationM68HC05. Microcontrollers MC68HC705J1A MC68HRC705J1A MC68HSC705J1A MC68HSR705J1A. Technical Data WWW.MOTOROLA.COM/SEMICONDUCTORS
MC68HC705J1A MC68HRC705J1A MC68HSC705J1A MC68HSR705J1A Technical Data M68HC05 Microcontrollers MC68HC705J1A/D Rev. 4, 5/2002 WWW.MOTOROLA.COM/SEMICONDUCTORS MC68HC705J1A MC68HRC705J1A MC68HSC705J1A MC68HSR705J1A
More informationEC 362 Problem Set #2
EC 362 Problem Set #2 1) Using Single Precision IEEE 754, what is FF28 0000? 2) Suppose the fraction enhanced of a processor is 40% and the speedup of the enhancement was tenfold. What is the overall speedup?
More information