Chapter 1. Microprocessor architecture ECE Dr. Mohamed Mahmoud.
|
|
- Sheila Sullivan
- 5 years ago
- Views:
Transcription
1 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 mmahmoud@tntech.edu
2 Outline 1.1 Number Systems 1.2 Computer hardware organization 1.3 Memory system operation 1.4 Processor 1.5 Program Execution 1.6 HCS12 Microcontroller
3 - The binary number system has two digits 0 and 1 - The hexadecimal number system uses 16 digits: 0, 1,.., 9, A, B, C,.., F - The decimal number system uses 10 digits: 0, 1,.., 9 - Computer hardware uses binary numbers to perform all operations. - Humans are used to decimal number system. - Hexadecimal numbers have shorter representations than the binary system. - Conversion between the different number systems is needed. 1-1
4 - A prefix is used to indicate the base of a number. Number like 10 can be binary, hexadecimal and decimal. We use a prefix to define it. - Convert % to Hexadecimal = $45 - Convert $4F to Binary $4F = Unsigned numbers are always positive - Signed number B Most significant bit (B) = 1 negative, otherwise positive 1-2
5 1- Unsigned number %1111 = = 15 %0111 = = 7 Unsigned N-bit number can have numbers from 0 to 2 N Signed number %1111 is a negative number. To convert to decimal, calculate the two s complement The two s complement = one s complement +1 = % =%0001 = 1 then %1111 = -1 %0111 is a positive number = = 7. - Unsigned 8-bit number can have numbers from 0 to 255 % to % Signed 8-bit number can have numbers from -128 to +127 to % to %
6 - Signed N-bit number can have numbers from -2 N-1 to 2 N Unsigned 3-bit number can represent numbers from 0 (= %000) to 7 (=111) - Signed 3-bit number can represent numbers from -4 (= %100) to 3 (= %011) Signed Computer does not know whether a bit sequence represents a signed or an unsigned number -> It is the programmer s responsibility! 1-4
7 Outline 1.1 Number Systems 1.2 Computer hardware organization 1.3 Memory system operation 1.4 Processor 1.5 Program Execution 1.6 HCS12 Microcontroller
8 - A Computer consists of hardware and software - Software is computer program. - The hardware consists of processor, input devices, output devices and memory. Computer Hardware Organization 1-5
9 1- Processor - Also called Microprocessor (MP) or Central Processing Unit (CPU). - Executes programs. - Performs: (1) all of the computational operations and (2) the coordination of the usage of resources of a computer - Ex. can a memory and an input device write data on a shared bus simultaneously? NO. Control signals are issued by processor to coordinate the devices operations. 2- Input devices - Used to enter the programs to be executed and the data to be processed into the computer. - Examples: keyboard, keypad, switches, sensors, scanners, bar code readers, etc. 1-6
10 3- Output devices - The results of the operations done by the processor should be displayed or printed on a media so that the user can see them. - Examples: seven segment displays, light emitting diode (LED), liquid crystal displays (LCD), a monitor, etc. 4- Memory - Programs to be executed and data to be processed are stored in memory so that the processor can readily access them. 5- Buses - Address bus: The set of conductor wires that carry address signals. - Data bus: The set of conductor wires that carry data signals - Control bus: The set of conductor wires that carry control signals 1-7
11 Outline 1.1 Number Systems 1.2 Computer hardware organization 1.3 Memory system operation 1.4 Processor 1.5 Program Execution 1.6 HCS12 Microcontroller
12 Address: location number $FF $00 $3F $AF Content: A byte stored in a location A block diagram for the memory - Each memory location has address and content. - The content is one byte (8 bits). - If a memory chip has 16-bit address, then the chip has 2 16 = 64 Kbytes because 16 bits can point at 2 16 locations. - Byte = 8 bits, Word = 2 bytes = 16 bits, Nibble = 4 bits - Kilobyte (KB) = 2 10 bytes =1024 bytes -Megabyte(MB)=K 2 Bytes = 2 20 bytes = 1,048,576 bytes 1-8
13 16 bits 8 bits 8 bits 2 16 locations - The memory data bits are connected to the data bus. - The memory address bits are connected to the address bus. - RD (Read) in the MP is connected to OE (output enable) in the memory and WR (write) is connected to WE (write enable) - RD and WR are two control signals issued by the CPU to inform the memory to read or write. 1-9
14 Read Operation - The processor places the address of the memory location that it intends to read on the address bus and asserts the RD signal. (RD = 1 and WR = 0) - After some time, the data stored in the location referred by the address will be copied from the memory to the data bus to be read by the MP. The content of the memory location does not change. Write Operation - The processor places the address of the location that it intends to write on the address bus. - The processor also places the data that it intends to write on the data bus and asserts the WE signal (RD = 0 and WR =1) - The memory chip stores the data on the data bus in the selected memory location after some time. The content of the memory location changes. 1-10
15 Outline 1.1 Number Systems 1.2 Computer hardware organization 1.3 Memory system operation 1.4 Processor 1.5 Program Execution 1.6 HCS12 Microcontroller
16 - A processor consists of arithmetic logic unit (ALU), control unit, andregisters. - The ALU performs the arithmetic and logic operations requested by the program. - A simple ALU that can perform only four operations (addition, subtraction, AND, OR) is shown in Figure
17 - All four operations are performed simultaneously by different circuits whereas the instruction opcode tells the multiplexer to select one of the four units outputs as the result - The adder is used to perform addition and subtraction operations - The ALU is more complicated if the processor designer wants to implement more operations directly in the hardware. Remember how multiplexer works: Selector Select Output Inputs I 0 I 1 I 2 MUX output I 0 I 1 I 2 I 3 11 I
18 The ALU operations:- 1- Opcode = 00 - The comparator output = 0, MUX2 output = CIN, MUX1 output = B, the adder inputs are n-bit A and n-bit B. - The result of the adder is A + B + CIN, CIN is the input carry. - MUX3 selects the output of the adder and the carry A + B+ CIN 1-13
19 2- Opcode = 01 - The comparator output = 1, MUX2 output = 1, MUX1 output = B (one complement of B), the adder inputs are n-bit A and n- bit B. - The result of the adder is A + B + 1 = A - B. Remember B + 1 = - B. B + 1 is the two s complement of B. - MUX3 selects the output of the adder and the carry (called borrow) A + B + 1 = A - B 1-14
20 3- Opcode = 10 MUX3 selects the output of the AND. It is the n bits resulted from performing logic AND operation for A and B. 4- Opcode = 11 MUX3 selects the output of the OR. It is the n bits resulted from performing logic OR operation for A and B. Remember:- X can be zero or one The ALU in Fig. 1.1 can be expanded to perform more instructions 1-15
21 Instruction Set The instruction set of a microprocessor is the fixed set of operations the computer can be programmed to perform on data. These instructions are executed on hardware, i.e., there is a hardware circuit that executes them. 1-16
22 2- Registers - A register is a storage area inside the CPU. - A register is used to hold data or address during the execution of an instruction. - Registers provide fast access to operands for program execution. - Unlike memory, registers are not used to store the program or large data. - Accessing memory is much slower than accessing registers 3- Control Unit - The control unit executes the instructions by telling the ALU what operation it has to do (opcode) and issuing control signals to read/write from memory. 1-17
23 Outline 1.1 Number Systems 1.2 Computer hardware organization 1.3 Memory system operation 1.4 Processor 1.5 Program Execution 1.6 HCS12 Microcontroller
24 Compiler vs assembler High-level programming language source code for (i=1, i<10, i++) { Y = Y+i; } Written by programmers Compiler Machine code Stored in memory - Executable by the CPU Low-level programming language source code ldaa $10 adda $20 staa $30 Written by programmers assembler Machine code Stored in memory - Executable by the CPU 1-18
25 Compiler vs assembler - Compiler is more complex than assembler - Each assembly language instruction is translated to one machine language instruction - But, one statement written in high level language may be translated into tens or hundreds of machine language instructions and this translation is not usually optimal - The CPU can execute ONLY machine codes. - Obviously, programming by the machine code is hard to understand, enter, debug, and maintain for human humans. That is why we use assembly language that use English words. 1-19
26 Executing a program 1- The assembler converts the assembly program to machine code and stores it in the memory, e.g., starting from location $ Some instructions take more than a byte. -A program counter (PC) is a register that is used to keep track of the address of the instruction to be executed next. $0000 ld 0x20, #0 ld 0x21, #20 ld ptr, #0x2000 loop: and A, #0x03 bnz next ld A,@ptr inc 0x20 next: dbnz 0x21,loop 1-20
27 2- Two phases to execute each instruction:- 2.1 Instruction fetch: - Read the instruction from the memory location pointed by PC and store it in the instruction register (IR) - May need more than one reading operation if the instruction is more than one byte. - Update PC to point at the address of the next instruction. - Both PC and IR are two registers in the CPU. 2.2 Instruction Execution - The control unit decodes the instruction and issues appropriate control signals to execute it. - It may need to read/write the memory. 1-21
28 - The clock signal is a square waveform. - Instruction execution is timed by the clock signal. - At each cycle, some operations are performed. - Executing one instruction may need more than one cycle. 1-22
29 Instruction ld $20,#0 (machine code ) Place 0 in data memory at 0x20 1- Fetch instruction: - The Processor places contents of PC ($0000) on the address bus to read the instruction to be executed. -It reads the first byte (opcode) = $75. PC is incremented to $ From the opcode, the control unit recognizes that it needs to read the following two bytes after the opcode. It reads $20 and $00 and holds them in IR. PC is incremented after each read operation to be 3 to point at the next executed instruction. 2- Execute the instruction: - Address bus $20 and Data bus $00 - WR =1 to write 0 into the memory location $
30 Initially PC = 0 PC = PC +1 after reading the byte pointed by 0 (or 75) 1-24
31 Instruction ld $21,#$14 (machine code ) - Similar to previous instruction. - PC = $0006 and write $14 to memory location $ Instruction ld ptr,#$2000 (machine code ) - Load $2000 into the ptr register 1- Fetch instruction: - The address bus PC value ($06), request to read. - Opcode = $90 and PC = $07. - From the opcode, we need to read the following two locations. Read $20 and $00 and PC = 0x Execute instruction: ptr
32 The machine code of the program Interesting video
33 Summary Functional blocks required to run a program: A place to store the program, operands, and computation results memory and registers A way to keep track of which instruction is to be executed next program counter (PC) A place to temporarily stage an instruction while it is being executed instruction register (IR) A way to perform arithmetic and logic operations arithmetic logic unit (ALU) A way to coordinate and sequence the functions of the machine to execute the instructions control unit 1-27
34 Instruction Execution Cycle One or more read cycles to fetch the instruction from memory. One or more read cycles to fetch the memory operand(s) (optional) Perform the operation specified by the instruction One or more write cycles to write back the result to either a register or a memory location (optional) 1-28
35 Memory is used to store: - Instructions: binary codes prescribing instructions - Data: to be manipulated - Stack: will be explained later Instruction, data and stack areas in memory must be separated. Any overlapping means, the program will crash It is the programmer s responsibility. 1-29
36 Outline 1.1 Number Systems 1.2 Computer hardware organization 1.3 Memory system operation 1.4 Processor 1.5 Program Execution 1.6 HCS12 Microcontroller
37 Microprocessor VS Microcontroller - A microprocessor (MP) needs external devices such as memory, I/O ports, etc to run a program. - A microcontroller (MCU) contains a microprocessor, memory timer, and I/O ports within a single chip. - Microcontrollers have been used in almost every product that requires a certain amount of intelligence. - Microcontrollers have been used in printers, modems, MP3 players, cars, home appliances such as washing machines, microwave ovens, etc. 1-30
38 Embedded Systems - An embedded system is a special purpose computer system designed to perform a dedicated function. - Examples of embedded systems: MP3 players, traffic lights, digital watches Runs firmware which is stored on read only memory chips Interesting applications Smart mirror: Smart spoon: Smart baby bottle:
39 The HCS12 Features - 16-bit CPU (the operations can be done on 16 bit data) - Maximum operating clock frequency is 25 MHz - 2KB to 14KB of on-chip SRAM (12KB in MC9S12DG256 ) - 4K bytes of EEPROM in MC9S12DG KB to 512KB on-chip flash memory (256 KB in MC9S12DG256 ) - Timer and Pulse counters - I/O pins to interface to I/O devices - Serial communication - A/D 1-32
40 HCS12 microcontroller 1-33
41 - Static random access memory (SRAM) is volatile. Flash memory: - Non-volatile memory does not lose the information when there is no power, but volatile memory does. - Electrically erasable and programmable many times by the MP. - The most widely used nonvolatile memory technology. - In embedded systems, the program is stored in a nonvolatile memory. Why? 1-34
42 HCS12 registers: - Registers are referred to by their names whereas memory locations are referred to by their addresses - Used to perform general purpose operations such as arithmetic, logic, and program flow control. - All the registers are 16 bits except the accumulators A and B which are 8 bits each. - A and B can be concatenated to form a single 16-bit register accumulator referred as the D accumulator - When A changes B is unaffected and vice versa, but when D changes both A and B change. 1-35
43 The HCS12 CPU Registers 7 A 0 7 B 0 15 D 0 8-bit accumulator A and B or 16-bit double accumulator D 15 X 0 Index register X 15 0 Y Index register Y 15 SP 0 Stack pointer 15 PC 0 Program counter S X H I N Z V C Figure 1.10 HCS12 CPU registers. Condition code register Carry Overflow Zero Negative I Interrupt mask Half-Carry (from bit 3) X Interrupt Mask Stop Disable 1-36
44 - Index registers X and Y: 16 bits. Used to hold addresses. They are also used in several arithmetic instructions. - Stack pointer (SP): 16 bits. A stack is a first-in-first-out data structure. SP points to the top byte of the stack as shown in figure. - Program counter (PC): 16 bits holds the address of the next instruction to be executed. - Condition code register (CCR): 8-bit register used to - Flags are automatically updated after executing each instruction to reflect the status of the result. Lower address Top of stack Push SP Pop - Used to make a condition in conditional branch. Higher address 1-37
45 - Each bit in the CCR register is independent and has a different indication. - Zero flag (Z): set when the result is zero - Negative flag (N): set whenever the result is negative, i.e., most significant bit of the result is 1. - Carry/borrow flag (C): set when addition/subtraction generates a carry/borrow. - Overflow flag (V): Set when: the addition of two positive numbers results in a negative number or the addition of two negative numbers results in a positive number. 1-38
46 Overflow Problem: Registers have fixed number of bits which means they can store a maximum number Overflow occurs when two numbers are added or subtracted and the correct result is outside the range that can a register hold the given result is not correct Addition: C = 1 there is an overflow if the numbers are unsigned. V = 1 there is an overflow if the numbers are signed. Overflow cannot occur when adding numbers of opposite sign why? Subtraction: A - B There is no unsigned overflow but there is signed overflow why? C = 1, when there is a borrow or B > A, C is called borrow flag V =1, when (-ve) - (+ve) = (+ve) this is equivalent to ( ve) + (-ve) = (+ve) (+ve) - (-ve) = (-ve) this is equivalent to (+ve) + (+ve) = (-ve) 1-39
47 C = 1, V = 0, Z = 1, N =0 Signed numbers: = 0, no overflow and the result is correct Unsigned numbers: = 0, incorrect, the correct result is 256, overflow because the max. unsigned number for 8 bit number is By using more bits (9 bits or more) instead of 8 bits, the result is correct, no overflow C = 0, V = 0, Z = 0, N = 1 Signed numbers: = -1, no overflow and the result is correct Unsigned numbers: = 255, no overflow and the result is correct 1-40
48 C = 0, V = 1, Z = 0, N = 1 Unsigned numbers: = 128, no overflow and the result is correct Signed numbers: = -128, there is overflow, the result is incorrect, the max. positive number in 8 bits is 127 that is less than the correct answer 128. If we use 9 bit addition, the result will be correct because 128 can be represented in 9 bits C = 0, V = 0, Z = 0, N = C = 1, V = 1, Z = 0, N = 0 Unsigned numbers: = 54 should be 310, overflow, 255 is the max. number for 8 bit number Signed numbers: (-118) = 54, should be -202, overflow, the max. negative number in 8 bits is -128 that is less than the correct answer 1-41
49 If we use 9 bit addition, the result will be correct. Unsigned numbers: C = 0 Signed numbers: V = 0 Subtraction: A B = A + the two s complement of B V = 0, C = 0, N = 0, Z =0 C is called borrow flag and it is set when we need to borrow from the most significant byte Unsigned numbers: = 30 correct Signed numbers: = 30 correct V = 0 because (+ve) (+ve) no overflow 1-42
50 V = 1, C = 1, N = 1, Z = There is one set of flags whether the numbers are signed or not, e.g. N flag will consider the numbers Unsigned numbers: signed even if they are not - There is a borrow, = What happened is (92+256) -138 = 210, where 256 is the borrow - If we do muti-byte subtraction, the result (210) is right and we should subtract one from the next byte. - If you want to get the absolute difference 46, subtract the small number from the bigger one or = 46 Signed numbers:- 92 (-118) = -46 should be 210, V = 1 means the numbers should be represented in more bits V =
51 Mohamed Mahmoud Questions
Chapter 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 informationChapter 7 Central Processor Unit (S08CPUV2)
Chapter 7 Central Processor Unit (S08CPUV2) 7.1 Introduction This section provides summary information about the registers, addressing modes, and instruction set of the CPU of the HCS08 Family. For a more
More informationIntroduction to Embedded Systems and Chapter 1: Introduction to HCS12/MC9S12. EE383: Introduction to Embedded Systems University of Kentucky
Introduction to Embedded Systems and Chapter 1: Introduction to HCS12/MC9S12 EE383: Introduction to Embedded Systems University of Kentucky Samir Rawashdeh With slides based on material by H. Huang Delmar
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 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 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 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 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 informationWed. Aug 23 Announcements
Wed. Aug 23 Announcements Professor Office Hours 1:30 to 2:30 Wed/Fri EE 326A You should all be signed up for piazza Most labs done individually (if not called out in the doc) Make sure to register your
More informationIntroduction to Computers - Chapter 4
Introduction to Computers - Chapter 4 Since the invention of the transistor and the first digital computer of the 1940s, computers have been increasing in complexity and performance; however, their overall
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 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 informationPin Description, Status & Control Signals of 8085 Microprocessor
Pin Description, Status & Control Signals of 8085 Microprocessor 1 Intel 8085 CPU Block Diagram 2 The 8085 Block Diagram Registers hold temporary data. Instruction register (IR) holds the currently executing
More informationMicroprocessor Architecture
Microprocessor - 8085 Architecture 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration
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 informationUNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.
UNIT V -8051 MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS 1. What is micro controller? Micro controller is a microprocessor with limited number of RAM, ROM, I/O ports and timer on a single chip
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 informationControl Unit: The control unit provides the necessary timing and control Microprocessor resembles a CPU exactly.
Unit I 8085 and 8086 PROCESSOR Introduction to microprocessor A microprocessor is a clock-driven semiconductor device consisting of electronic logic circuits manufactured by using either a large-scale
More information8051 Microcontrollers
8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 8, 2016 Controller vs Processor Controller vs Processor Introduction to 8051 Micro-controller In 1981,Intel corporation
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 informationComputer Architecture
Computer Architecture Lecture 1: Digital logic circuits The digital computer is a digital system that performs various computational tasks. Digital computers use the binary number system, which has two
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 informationArchitecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller
of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit
More informationCOSC 243. Computer Architecture 1. COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1
COSC 243 Computer Architecture 1 COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1 Overview Last Lecture Flip flops This Lecture Computers Next Lecture Instruction sets and addressing
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 informationIntel 8086 MICROPROCESSOR. By Y V S Murthy
Intel 8086 MICROPROCESSOR By Y V S Murthy 1 Features It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 2 20 memory locations (1 MB). It can support up to 64K I/O ports. It provides 14,
More informationMark II Aiken Relay Calculator
Introduction to Embedded Microcomputer Systems Lecture 6.1 Mark II Aiken Relay Calculator 2.12. Tutorial 2. Arithmetic and logical operations format descriptions examples h 8-bit unsigned hexadecimal $00
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 informationEXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.
EXPERIMENT NO.1 AIM: Study of 8051 Microcontroller TOOLS: 8051 kit THEORY: Salient Features of 8051 A Microcontroller is a complete computer system built on a single chip. It contains all components like
More informationECE 372 Microcontroller Design Basic Assembly Programming. ECE 372 Microcontroller Design Basic Assembly Programming
For Loop Example: for(j=0; j
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 informationIntel 8086 MICROPROCESSOR ARCHITECTURE
Intel 8086 MICROPROCESSOR ARCHITECTURE 1 Features It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 2 20 memory locations (1 MB). It can support up to 64K I/O ports. It provides 14, 16
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 informationMICROPROCESSOR MICROPROCESSOR. From the above description, we can draw the following block diagram to represent a microprocessor based system: Output
8085 SATISH CHANDRA What is a Microprocessor? The word comes from the combination micro and processor. Processor means a device that processes whatever. In this context, processor means a device that processes
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 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 informationDescription of the Simulator
Description of the Simulator The simulator includes a small sub-set of the full instruction set normally found with this style of processor. It includes advanced instructions such as CALL, RET, INT and
More informationFIFTH 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 informationUser. Application program. Interfaces. Operating system. Hardware
Operating Systems Introduction to Operating Systems and Computer Hardware Introduction and Overview The operating system is a set of system software routines that interface between an application program
More informationWrite A General Form Of The Assembly
Write A General Form Of The Assembly Instruction Of 8085 Official Full-Text Publication: An Introduction to Microprocessor 8085 on ResearchGate, the professional network for scientists. Therefore, it is
More informationELEG3924 Microprocessor
Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.2 Assembly Language Programming Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Inside 8051 Introduction to assembly programming
More informationTUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.
TUTORIAL 1 1. Make a list of 10 products containing microprocessors that we use everyday. Personal computer Television Calculator Elevator Mobile phones MP3 players Microwave ovens DVD players Engine Control
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 informationIntroduction to Programming
Introduction to Programming Chapter 2 Microcontrollers Objectives Describe the difference between source code and machine code. Define opcode, operand, and address of an operand. Explain the purpose of
More informationELEG3923 Microprocessor Ch.2 Assembly Language Programming
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.2 Assembly Language Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Inside 8051 Introduction to assembly programming
More informationThe x86 Microprocessors. Introduction. The 80x86 Microprocessors. 1.1 Assembly Language
The x86 Microprocessors Introduction 1.1 Assembly Language Numbering and Coding Systems Human beings use the decimal system (base 10) Decimal digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Computer systems use the
More information538 Lecture Notes Week 1
538 Clowes Lecture Notes Week 1 (Sept. 6, 2017) 1/10 538 Lecture Notes Week 1 Announcements No labs this week. Labs begin the week of September 11, 2017. My email: kclowes@ryerson.ca Counselling hours:
More informationInternal architecture of 8086
Case Study: Intel Processors Internal architecture of 8086 Slide 1 Case Study: Intel Processors FEATURES OF 8086 It is a 16-bit μp. 8086 has a 20 bit address bus can access up to 220 memory locations (1
More informationLecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer
Lecture 2 Microcomputer Organization: As discussed in previous lecture microprocessor is a central processing unit (CPU) with its related timing functions on a single chip. A microprocessor combined with
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 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 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 informationThe functional block diagram of 8085A is shown in fig.4.1.
Lecture-13 Internal Architecture of Intel 05A The functional block diagram of 05A is shown in fig.4.1. INTA INTR RST7.5 RST5.5 RST6.5 TRAP SOD SID INTERRUPT SERIAL I/O (Internal Bus) FR(S) IR() B() C()
More informationEE 3170 Microcontroller Applications
Q. 3.9 of HW3 EE 37 Microcontroller Applications (a) (c) (b) (d) Midterm Review: Miller Chapter -3 -The Stuff That Might Be On the Exam D67 (e) (g) (h) CEC23 (i) (f) (j) (k) (l) (m) EE37/CC/Lecture-Review
More informationExam I Review February 2017
Exam I Review February 2017 Binary Number Representations Conversion of binary to hexadecimal and decimal. Convert binary number 1000 1101 to hexadecimal: Make groups of 4 bits to convert to hexadecimal,
More informationMicroprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur
Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur Lecture - 09 8085 Microprocessors (Contd.) (Refer Slide Time:
More informationThe CPU and Memory. How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram:
The CPU and Memory How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram: 1 Registers A register is a permanent storage location within
More informationDigital System Design Using Verilog. - Processing Unit Design
Digital System Design Using Verilog - Processing Unit Design 1.1 CPU BASICS A typical CPU has three major components: (1) Register set, (2) Arithmetic logic unit (ALU), and (3) Control unit (CU) The register
More informationCC411: Introduction To Microprocessors
CC411: Introduction To Microprocessors OBJECTIVES this chapter enables the student to: Use number { base 2, base 10, or base 16 }. Add and subtract binary/hex numbers. Represent any binary number in 2
More information2. List the five interrupt pins available in INTR, TRAP, RST 7.5, RST 6.5, RST 5.5.
DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6502- MICROPROCESSORS AND MICROCONTROLLERS UNIT I: 8085 PROCESSOR PART A 1. What is the need for ALE signal in
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 informationME 4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 6
ME 4447/6405 Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics Instructor: Professor Charles Ume LECTURE 6 MC9S12C Microcontroller Covered in Lecture 5: Quick Introduction
More information9/25/ Software & Hardware Architecture
8086 Software & Hardware Architecture 1 INTRODUCTION It is a multipurpose programmable clock drive register based integrated electronic device, that reads binary instructions from a storage device called
More informationChapter 2 Sections 1 8 Dr. Iyad Jafar
Introducing the PIC 16 Series and the 16F84A Chapter 2 Sections 1 8 Dr. Iyad Jafar Outline Overview of the PIC 16 Series An Architecture Overview of the 16F84A The 16F84A Memory Organization Memory Addressing
More informatione-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text
e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text In this lecture the detailed architecture of 8051 controller, register bank,
More informationCHAPTER 8: Central Processing Unit (CPU)
CS 224: Computer Organization S.KHABET CHAPTER 8: Central Processing Unit (CPU) Outline Introduction General Register Organization Stack Organization Instruction Formats Addressing Modes 1 Major Components
More informationEE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University
EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1 Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University What is Assembly Language? Assembly language is a programming language
More informationCPU Structure and Function
Computer Architecture Computer Architecture Prof. Dr. Nizamettin AYDIN naydin@yildiz.edu.tr nizamettinaydin@gmail.com http://www.yildiz.edu.tr/~naydin CPU Structure and Function 1 2 CPU Structure Registers
More informationM. Sc (CS) (II Semester) Examination, Subject: Computer System Architecture Paper Code: M.Sc-CS-203. Time: Three Hours] [Maximum Marks: 60
M. Sc (CS) (II Semester) Examination, 2012-13 Subject: Computer System Architecture Paper Code: M.Sc-CS-203 Time: Three Hours] [Maximum Marks: 60 Note: Question Number 1 is compulsory. Answer any four
More informationEC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I
EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes
More informationME4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 7
ME4447/6405 Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics Instructor: Professor Charles Ume LECTURE 7 Reading Assignments Reading assignments for this week and next
More informationQuestion Bank Part-A UNIT I- THE 8086 MICROPROCESSOR 1. What is microprocessor? A microprocessor is a multipurpose, programmable, clock-driven, register-based electronic device that reads binary information
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 information538 Lecture Notes Week 5
538 Lecture Notes Week 5 (Sept. 30, 2013) 1/15 538 Lecture Notes Week 5 Answers to last week's questions 1. With the diagram shown for a port (single bit), what happens if the Direction Register is read?
More informationCourse Schedule. CS 221 Computer Architecture. Week 3: Plan. I. Hexadecimals and Character Representations. Hexadecimal Representation
Course Schedule CS 221 Computer Architecture Week 3: Information Representation (2) Fall 2001 W1 Sep 11- Sep 14 Introduction W2 Sep 18- Sep 21 Information Representation (1) (Chapter 3) W3 Sep 25- Sep
More informationTHE MICROCOMPUTER SYSTEM CHAPTER - 2
THE MICROCOMPUTER SYSTEM CHAPTER - 2 20 2.1 GENERAL ASPECTS The first computer was developed using vacuum tubes. The computers thus developed were clumsy and dissipating more power. After the invention
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 information538 Lecture Notes Week 5
538 Lecture Notes Week 5 (October 4, 2017) 1/18 538 Lecture Notes Week 5 Announements Midterm: Tuesday, October 25 Answers to last week's questions 1. With the diagram shown for a port (single bit), what
More informationCOMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital
Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital hardware modules that accomplish a specific information-processing task. Digital systems vary in
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 informationProcessing Unit CS206T
Processing Unit CS206T Microprocessors The density of elements on processor chips continued to rise More and more elements were placed on each chip so that fewer and fewer chips were needed to construct
More informationDesign of Embedded Systems Using 68HC12/11 Microcontrollers
Design of Embedded Systems Using 68HC12/11 Microcontrollers Richard E. Haskell Table of Contents Preface...vii Chapter 1 Introducing the 68HC12...1 1.1 From Microprocessors to Microcontrollers...1 1.2
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 informationARM Cortex A9. ARM Cortex A9
ARM Cortex A9 Four dedicated registers are used for special purposes. The IP register works around the limitations of the ARM functional call instruction (BL) which cannot fully address all of its 2 32
More informationThe HC11. Alexandra Carey & Richard Hughey. University of California, School of Engineering Santa Cruz, CA 95064
Abstract A microcontroller is a microprocessor that controls everyday appliances such as microwaves and wristwatches. The microkits used by computer engineering classes use a Motorola HC11 microcontroller
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 informationEMBEDDED SYSTEM BASICS AND APPLICATION
EMBEDDED SYSTEM BASICS AND APPLICATION Dr.Syed Ajmal IIT- Robotics TOPICS TO BE DISCUSSED System Embedded System Components Classifications Processors Other Hardware Software Applications 2 INTRODUCTION
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 informationModule 2: Introduction to AVR ATmega 32 Architecture
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 Architecture
More informationClass Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2
Class Notes CS400 Part VI Dr.C.N.Zhang Department of Computer Science University of Regina Regina, SK, Canada, S4S 0A2 C. N. Zhang, CS400 83 VI. CENTRAL PROCESSING UNIT 1 Set 1.1 Addressing Modes and Formats
More informationEE4390 Microprocessors. Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System
EE4390 Microprocessors Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System 1 Overview 68HC12 hardware overview Subsystems Memory System 2 68HC12 Hardware Overview "Copyright of Motorola,
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 informationLatches. IT 3123 Hardware and Software Concepts. Registers. The Little Man has Registers. Data Registers. Program Counter
IT 3123 Hardware and Software Concepts Notice: This session is being recorded. CPU and Memory June 11 Copyright 2005 by Bob Brown Latches Can store one bit of data Can be ganged together to store more
More informationComputer Organization Question Bank
Id 1 Question Mass produced first working machine (50 copies) was invented by A C D Answer Wilhelm Schickhard laise Pascal Gottfried Liebniz Charles abbage Id 2 Question Father of Modern Computer A Wilhelm
More informationFaculty of Engineering Systems & Biomedical Dept. First Year Cairo University Sheet 6 Computer I
aculty of Engineering Systems & Biomedical Dept. irst Year Cairo University Sheet 6 Computer I 1. Choose rue or alse for each of the following statements a) In a direct addressing mode instruction, the
More informationSTRUCTURE OF DESKTOP COMPUTERS
Page no: 1 UNIT 1 STRUCTURE OF DESKTOP COMPUTERS The desktop computers are the computers which are usually found on a home or office desk. They consist of processing unit, storage unit, visual display
More informationV8-uRISC 8-bit RISC Microprocessor AllianceCORE Facts Core Specifics VAutomation, Inc. Supported Devices/Resources Remaining I/O CLBs
V8-uRISC 8-bit RISC Microprocessor February 8, 1998 Product Specification VAutomation, Inc. 20 Trafalgar Square Nashua, NH 03063 Phone: +1 603-882-2282 Fax: +1 603-882-1587 E-mail: sales@vautomation.com
More informationMenu Computer Organization Programming Model for the an example microprocessors (the G-CPU & Motorola 68HC11) Assembly Programming Look into my...
Menu Computer Organization Programming Model for the an example microprocessors (the G-CPU & Motorola 68HC11) Assembly Programming Look into my... See examples on web: DirAddr.asm, ExtAddr.asm, IndAddr.asm,
More information1. Internal Architecture of 8085 Microprocessor
Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.
More informationMICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN
MICROPROCESSOR PROGRAMMING AND SYSTEM DESIGN ROAD MAP SDK-86 Intel 8086 Features 8086 Block Diagram 8086 Architecture Bus Interface Unit Execution Unit 8086 Architecture 8086 Programmer s Model Flag Register
More information