Docsity

Microprocessor and microcomputer introduction, Schemes and Mind Maps of Microprocessors

Toggle sidebar
bg1
1
COS432/ELT441MICROPROCESSORSYSTEMS
INTRODUCTION
Acomputerisaprogrammablemachinethatreceivesinput,storesandmanipulatesdata//information,and
providesoutputinausefulformat.
Blockdiagramofabasiccomputersystem
BasiccomputersystemconsistsofaCentralprocessingunit(CPU),memory(RAMandROM),input/output
(I/O)unit.
ThemostpopularcomputerarchitectureusednowadaysisthevonNeumannarchitecture.Morecomplex
systemsusetheHarvardarchitecture.ThevonNeumannarchitecturedividesthecomputersystemintofive
parts:computationunit,controlunit,memory,input,andoutput.
CPU-CentralProcessingUnit/Processor
theportionofacomputersystemthatcarriesouttheinstructionsofacomputerprogram
theprimaryelementcarryingoutthecomputer'sfunctions.Itistheunitthatreadsandexecutesprogram
instructions.
Thedataintheinstructiontellstheprocessorwhattodo.
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
numbers,specificallybinarynumbers,0’sand1’s.
Toprocessmeanstomanipulate.Itisageneraltermthatdescribesallmanipulation.Againinthiscontext,it
meanstoperformcertainoperationsonthenumbersthatdependonthemicroprocessor’sdesign.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e

Partial preview of the text

Download Microprocessor and microcomputer introduction and more Schemes and Mind Maps Microprocessors in PDF only on Docsity!

COS 432/ ELT 441 MICROPROCESSOR SYSTEMS

INTRODUCTION

A computer is a programmable machine that receives input, stores and manipulates data//information, and provides output in a useful format.

Block diagram of a basic computer system Basic computer system consists of a Central processing unit (CPU), memory (RAM and ROM), input/output (I/O) unit.

The most popular computer architecture used nowadays is the von Neumann architecture. More complex systems use the Harvard architecture. The von Neumann architecture divides the computer system into five parts: computation unit, control unit, memory, input, and output.

CPU - Central Processing Unit / Processor  the portion of a computer system that carries out the instructions of a computer program  the primary element carrying out the computer's functions. It is the unit that reads and executes program instructions.  The data in the instruction tells the processor what to do. 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 numbers, specifically binary numbers, 0’s and 1’s. To process means to manipulate. It is a general term that describes all manipulation. Again in this context, it means to perform certain operations on the numbers that depend on the microprocessor’s design.

What about micro? Micro is a new addition.

  • In the late 1960’s, processors were built using discrete elements. These devices performed the required operation, but were too large and too slow.
  • In the early 1970’s the microchip was invented. All of the components that made up the processor were now placed on a single piece of silicon. The size became several thousand times smaller and the speed became several hundred times faster. The “MicroProcessor” was born.

The microprocessor is a programmable device that takes in numbers, performs on them arithmetic or logical operations according to the program stored in memory and then produces other numbers as a result.

Numbers: The microprocessor has a very narrow view on life. It only understands binary numbers. A binary digit is called a bit (which comes from b inary dig it ). The microprocessor recognizes and processes a group of bits together. This group of bits is called a “word”. The number of bits in a Microprocessor’s word, is a measure of its “abilities”.

Memory  Physical devices used to store data or programs (sequences of instructions) on a temporary or permanent basis for use in an electronic digital computer.  Computer main memory comes in two principal varieties: random-access memory (RAM) and read-only memory (ROM).  RAM can be read and written to anytime the CPU commands it, but ROM is pre-loaded with data and software that never changes, so the CPU can only read from it.  ROM is typically used to store the computer's initial start-up instructions.  In general, the contents of RAM are erased when the power to the computer is turned off, but ROM retains its data indefinitely.  In a PC, the ROM contains a specialized program called the BIOS that orchestrates loading the computer's operating system from the hard disk drive into RAM whenever the computer is turned on or reset.  The microprocessor reads (brings in) the data from memory when it needs it and writes (stores) the results into memory when it is done.  Memory is usually measured by the number of bytes it can hold. It is measured in Kilos, Megas and lately Gigas. A Kilo in computer language is 210 =1024. So, a KB (KiloByte) is 1024 bytes. Mega is 1024 Kilos and Giga is 1024 Mega.

I/O Unit  Input/output (I/O) , refers to the communication between an information processing system (such as a computer), and the outside world possibly a human, or another information processing system.  Inputs are the signals or data received by the system, and outputs are the signals or data sent from it  Devices that provide input or output to the computer are called peripherals  On a typical personal computer, peripherals include input devices like the keyboard and mouse, and output devices such as the display and printer. Hard disk drives, floppy disk drives and optical disc drives serve as both input and output devices. Computer networking is another form of I/O.

Number System Radix(Base)

Binary 0,

Decimal 0,1,2,3,4,5,6,7,8,

Octal 0,1,2,3,4,5,6,

Hexadecimal 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F

Decimal Number Decimal System : - The decimal system is composed of 10 numerals or symbols. These 10 symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9; using these symbols as digits of a number, we can express any quantity. The decimal system, also called the base-10 system because it has 10 digits.

Binary System In digital systems the information that is being processed is usually presented in binary form. Binary quantities can be represented by any device that has only two operating states or possible conditions. Eg. a switch has only open or closed. We arbitrarily (as we define them) let an open switch represent binary 0 and a closed switch represent binary 1. Thus we can represent any binary number by using series of switches.

In the binary system, there are only two symbols or possible digit values, 0 and 1. This base-2 system can be used to represent any quantity that can be represented in decimal or other number system.

Binary to Decimal conversion Any binary number can be converted to its decimal equivalent simply by summing together the weights of the various positions in the binary number which contain 1. Example 1

Decimal to Binary Conversion There are two methods to convert it:- I. Reverse of Binary-To-Digital Method  Decimal number write as the sum of square  0 & 1 is write on the byte

II. Repeat division method  The numbers is divide by 2.  Balance for the question is written until the last answer.

Binary to Octal Conversion Can be converted by grouping the binary bit in group of three starting from LSB Octal is a base-8 system and equal to two the power of three, so a digit in Octal is equal to three digit in binary system.

Hexadecimal Number System The hexadecimal system uses base 16. Thus, it has 16 possible digit symbols. It uses the digits 0 through 9 plus the letters A, B, C, D, E, and F as the 16 digit symbols.  Used to represent long binary numbers in computers and microprocessors.  These digits can use to program machine language.

Hexadecimal to Binary (3 A E) = ( 0011 1010 1110 )

Hexadecimal to Decimal (2 A F) = 2 * 16 + 10 16 + 15 * 16 2256 + 1016 + 15 (687)**

Hexadecimal to Octal (5 A 8) = ( 0101 1010 1000 ) (010 110 101 000) = (2650)

Representation of Data in Computer The binary no. system is most nature for computer. Computer stores information in flip-flops. Which are two state devices. Three systems are widely used for representing both positive and negative numbers:

  1. Sign magnitude representation
  2. 1’s complement representation
  3. 2’s complement representation

INSIDE THE MICROPROCESSOR

Internally, the microprocessor is made up of 3 main units.

  • The Arithmetic/Logic Unit (ALU)
  • The Control Unit.
  • An array of registers for holding data while it is being manipulated.

Organization of the Microprocessor The microprocessor can be divided into three main pieces:

  • Arithmetic/Logic Unit : Performs all computing and logic operations such as addition and subtraction as well as AND, OR and XOR.
  • Register Array: A collection of registers within the microprocessor itself. These are used primarily for data storage during program execution. The number and the size of these registers differ from one microprocessor to the other.
  • Control Unit : As the name implies, the control Unit controls what is happening in the microprocessor. It provides the necessary control and timing signals to all operations in the microprocessor as well as its contact to the outside world.

Memory

Input Output

I/O

Input / Output

Memory

ROM RAM

System

ALU Register

Array

Control

APPLICATIONS OF MICROPROCESSORS

Microprocessor is a computer Central Processing Unit (CPU) on a single chip. It contains millions of transistors connected by wires. The microprocessor can be programmed to perform functions on given data by writing specific instructions into its memory.

The availability of low cost, low power and small weight, computing capability makes it useful in different applications. Nowadays, a microprocessor based systems are used in instructions, automatic testing product, speed control of motors, traffic light control, light control of furnaces etc. Some of the important areas are mentioned below:

  1. Instrumentation: It is very useful in the field of instrumentation. Frequency counters, function generators, frequency synthesizers, spectrum analyses and many other instruments are available, when microprocessors are used as controller. It is also used in medical instrumentation.
  2. Control: Microprocessor based controllers are available in home appliances, such as microwave oven, washing machine etc., microprocessors are being used in controlling various parameters like speed, pressure, temperature etc. These are used with the help of suitable transduction.
  3. Communication: Microprocessors are being used in a wide range of communication equipment. In telephone industry, these are used in digital telephone sets. Telephone exchanges and modem etc. The use of microprocessor in television, satellite communication have made teleconferencing possible. Railway reservation and air reservation system also uses this technology. LAN and WAN for communication of vertical information through computer network.
  4. Office Automation and Publication: Microprocessor based microcomputer with software packages has changed the office environment. Microprocessors based systems are being used for word processing, spread sheet operations, storage etc. The microprocessor has revolutionized the publication technology.
  5. Consumer: The use of microprocessor in toys, entertainment equipment and home applications is making them more entertaining and full of features. The use of microprocessors is more widespread and popular.

Now the Microprocessors are used in:

  • Calculators
  • Accounting system
  • Games machine
  • Complex Industrial Controllers
  • Traffic light Control
    • Data acquisition systems
    • Multi user, multi-function environments
    • Military applications
    • Communication systems

EVOLUTION OF MICROPROCESSOR:

Microprocessors were categorized into five generations: first, second, third, fourth, and fifth generations. Their characteristics are described below: First-generation The microprocessors that were introduced in 1971 to 1972 were referred to as the first generation systems. First-generation microprocessors processed their instructions serially —they fetched the instruction, decoded it, and then executed it. When an instruction was completed, the microprocessor updated the instruction pointer and fetched the next instruction, performing this sequential drill for each instruction in turn. Second generation By the late 1970s, enough transistors were available on the IC to usher in the second generation of microprocessor sophistication: 16-bit arithmetic and pipelined instruction processing. Motorola’s MC68000 microprocessor, introduced in 1979, is an example. Another example is Intel’s 8080. This generation is defined by overlapped fetch, decode, and execute steps (Computer 1996). As the first instruction is processed in the execution unit, the second instruction is decoded and the third instruction is fetched. The distinction between the first and second generation devices was primarily the use of newer semiconductor technology to fabricate the chips. This new technology resulted in a five-fold increase in instruction, execution, speed, and higher chip densities.

b) Microcomputer CPU architectures (x86, Motorola's 6800 and 68000, MOS Technology's 6502, Zilog's Z80, Power Architecture c) Workstation/Server CPU architectures (DEC's Alpha, HP's PA-RISC, Power Architecture, Intel's Itanium, Oracle's SPARC

Intel History Electrical Numerical Integrator and Calculator Designed for the U.S. Army's Ballistic Research Laboratory

  • Built out of o 17,468 vacuum tubes o 7,200 crystal diodes o 1,500 relays o 70,000 resistors o 10,000 capacitors
  • Consumed 150 kW of power
  • Took up 72 m
  • Weighted 27 tons
  • Suffered a failure on average every 6 hours

The First Transistor was created in 1947

  • Used germanium
  • Created by a team lead by William Shockley at Bell Labs
  • Shockley later shared the Noble prize in physics
  • Shockley semiconductors was founded in Palo Alto in 1955
  • In 1957 Bob Noyce, Gordon Moore, and 6 others (“Traitorous Eight”) leave to found Fairchild semiconductor

The First Integrated circuit was created in 1959

  • Proposed independently by Bob Noyce at Fairchild and Jack Kilby at Texas Instruments
  • In 1968 Noyce and Moore leave Fairchild to found Intel - Contained a single transistor and supporting components

Intel Created the First Commercial Microprocessor

  • Introduced the 4004 in 1971, contained 2,300 transistors
  • Had roughly the same processing power as ENIAC

IBM Introduced its original PC in 1981

  • Used the Intel 8088 processor containing 29,000 transistors
  • Used operating system (MS DOS) designed by Microsoft

4004 transistors were 10 μm across

  • Pentium 4 transistors are 0.13 μm across
  • Human hair is about 100 μm across
  • Smaller transistors allow –More transistors per chip –More processing per clock cycle –Faster clock rates –Smaller/cheaper chips

A more complete form of the Instruction Fetch Execute Cycle can be broken down into the following steps:

  • Fetch Cycle
  • Decode Cycle
  • Execute Cycle
  • Interrupt Cycle

Fetch Cycle The fetch cycle begins with retrieving the address stored in the Program Counter (PC). The address stored in the PC is some valid address in the memory holding the instruction to be executed. (In case this address does not exist we would end up causing an interrupt or exception). The Central Processing Unit completes this step by fetching the instruction stored at this address from the memory and transfer ring this instruction to a special register Instruction Register (IR) to hold the instruction to be executed. The program counter is incremented to point to the next address from which the new instruction is to be fetched. Decode Cycle The decode cycle is used for interpreting the instruction that was fetched in the Fetch Cycle. The operands are retrieved from the addresses if the need be Execute Cycle. This cycle as the name suggests, simply executes the instruction that was fetched and decoded Interrupt Cycle An interrupt can occur any time during the program execution. Whenever it is caused, a series of events take place so that the instruction fetch execute cycle can again resume after the OS calls the routine to handle the interrupt. Therefore, when an interrupt occurs, the following steps are performed by the OS

  • Suspend the execution of current instruction
  • Push the address of current instruction on the system stack
  • Loading the PC with the address of the interrupt handler
  • This starts the Instruction Fetch Execute cycle again for the instructions in the
  • Interrupt handler.
  • Set the mode of operation as a privileged one often termed as the Supervisor mode so that the OS can execute the handler.
  • Once the OS completes the execution of the interrupt handler, the address of the next instruction to be executed is obtained from popping the value of the address in the stack. The suspended instruction can now continue with its execution. This cycle of fetching a new instruction, decoding it and finally executing it continues until the computer is turned off.

8085 MICROPROCESSOR ARCHITECTURE THE 8085: CPU INTERNAL STRUCTURE The internal architecture of the 8085 CPU is capable of performing the following operations:

  • Store 8-bit data (Registers, Accumulator)
  • Perform arithmetic and logic operations (ALU)
  • Test for conditions (IF / THEN)
  • Sequence the execution of instructions
  • Store temporary data in RAM during execution

Intel 8085 Pin Configuration 8085 is a 40 pin IC, The signals from the pins can be grouped as follows

it indicates a memory operation. 35 READY If the signal at READY pin is low, the microprocessor enters in to wait state. This signal is primarily used to synchronize slower peripherals with the microprocessor. 36 RESET IN When the reset pin is activated by an external key all the internal operations are suspended and the program counter is cleared and the program execution begins at zero memory address. 37 CLK OUT Clock Output. This signal can be used as the system clock for other devices. (^38) HLDA Hold acknowledgement. This pin is used for hold acknowledgement. 39 HOLD When HOLD pin is activated by an external signal the microprocessor relinquishes control of buses and allows the external peripheral to use them. 40 VCC +5V power supply.

The pins on the chip can be grouped into 6 groups:

  • Address Bus.
  • Data Bus.
  • Control and Status Signals.
  • Power supply and frequency.
  • Externally Initiated Signals.
  • Serial I/O ports. Internal structure

Components include the following Control Unit Generates signals within the processor to carry out the instruction, which has been decoded. In reality causes certain connections between blocks of the processor to be opened or closed, so that data goes where it is required, and so that ALU operations occur. Arithmetic Logic Unit The ALU performs the actual numerical and logic operation such as ‘add’, ‘subtract’, ‘AND’, ‘OR’, etc. Uses data from memory and from Accumulator to perform arithmetic. Always stores result of operation in Accumulator. Registers The 8085/8080A-programming model includes six registers, one accumulator, and one flag register, as shown in Figure. In addition, it has two 16-bit registers: the stack pointer and the program counter. They are described briefly as follows. The 8085/8080A has six general-purpose registers to store 8-bit data; these are identified as B, C, D, E, H, and L as shown in the figure. They can be combined as register pairs - BC, DE, and HL - to perform some 16-bit operations. The programmer can use these registers to store or copy data into the registers by using data copy instructions.

Accumulator The accumulator is an 8-bit register that is a part of arithmetic/logic unit (ALU). This register is used to store 8-bit data and to perform arithmetic and logical operations. The result of an operation is stored in the accumulator. The accumulator is also identified as register A. Flags The ALU includes five flip-flops, which are set or reset after an operation according to data conditions of the result in the accumulator and other registers. They are called Zero (Z), Carry (CY), Sign (S), Parity (P), and Auxiliary Carry (AC) flags; they are listed in the Table and their bit positions in the flag register are shown in the Figure below. The most commonly used flags are Zero, Carry, and Sign. The microprocessor uses these flags to test data conditions.

For example, after an addition of two numbers, if the sum in the accumulator is larger than eight bits, the flip- flop uses to indicate a carry -- called the Carry flag (CY) -- is set to one. When an arithmetic operation results in zero, the flip-flop called the Zero (Z) flag is set to one. The first Figure shows an 8-bit register, called the flag register, adjacent to the accumulator. However, it is not used as a register; five bit positions out of eight