INTRODUCTION TO MICROPROCESSORS, Lecture notes of System Programming

This is an introduction to microprocessors as part of System programming unit

Typology: Lecture notes

2018/2019

Uploaded on 03/03/2019

moses-wayodi
moses-wayodi 🇰🇪

1 document

1 / 13

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
INTRODUCTION TO MICRO-COMPUTERS AND MICRO-PROCESSORS
A computer system has three main components: a Central Processing Unit (CPU) or processor, a
Memory Unit and Input Output Units (devices). Below is a block diagram for a microcomputer:
Memory
The memory status usually consists of a mixture of RAM & ROM. It also can have magnetic
hard disks or optical disks. The memory can store the binary codes and also the binary coded
data with which the computer is going to be working.
Input/Output
The I/O section allows the computer to take in data from the outside world or send the data to the
outside world. The peripherals such as keyboards, video display terminals, printers and modems
are connected to I/O section. These allow the user and the computer to communicate with each
other. The actual physical devices used to interface the computer buses to external systems are
often called ports. The input port allows data from a keyboard, an A/D converter or some other
source to be read in to the computer under the control of CPU. An O/P Port is used to send data
from display terminal, a printer, or a D/A converter .
Central Processing Unit
The central processing unit or CPU controls the operation of the computer. THE CPU fetches
binary coded instructions from memory, decades the instructions into a series of simple actions
and carries out these actions in a sequence of steps. The CPU also contains an address counter or
instruction pointer register which holds the address of the next instruction, or data item to be
fetched from binary data and circuitry which generates the control bus signals.
Address Bus- The address bus consists of 16,20,24,32 parallel signal lines. On these
lines the CPU sends out the address of the memory location. If the CPU has N address
lines then it can directly address 2N memory locations.
Data Bus- The data bus consists of 8, 16, or 32 parallel signal lines. The double ended
arrows on the data bus means that the CPU can read data in from memory or from a port
on these lines, or it can send data out to memory or to a port on these lines.
Control Bus- The control bus consists of 4 to 10 parallel signal lines. The CPU sends
out signals on the control bus to enable the outputs of addressed memory devices or port
devices. Typical control bus signals are memory read, memory write, I/O read, and I/O
write. To read a byte of data from a memory location, the CPU sends out the memory
address of the desired byte on the address bus and then sends out the memory read
signal on the control bus. The memory read signal enables the address memory device
to output a data word on to the data bus. The data word from the memory travels along
the data bus to the CPU.
Microprocessor
In any microcomputer system, the component which actually processes data is entirely contained
on a single chip called Microprocessor (MPU). A microprocessor is a single chip integrating all
the functions of a central processing unit (CPU) of a computer. In some cases, the terms 'CPU'
and 'microprocessor' are used interchangeably to denote the same device.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download INTRODUCTION TO MICROPROCESSORS and more Lecture notes System Programming in PDF only on Docsity!

INTRODUCTION TO MICRO-COMPUTERS AND MICRO-PROCESSORS

A computer system has three main components: a Central Processing Unit (CPU) or processor, a Memory Unit and Input Output Units (devices). Below is a block diagram for a microcomputer:

Memory The memory status usually consists of a mixture of RAM & ROM. It also can have magnetic hard disks or optical disks. The memory can store the binary codes and also the binary coded data with which the computer is going to be working. Input/Output The I/O section allows the computer to take in data from the outside world or send the data to the outside world. The peripherals such as keyboards, video display terminals, printers and modems are connected to I/O section. These allow the user and the computer to communicate with each other. The actual physical devices used to interface the computer buses to external systems are often called ports. The input port allows data from a keyboard, an A/D converter or some other source to be read in to the computer under the control of CPU. An O/P Port is used to send data from display terminal, a printer, or a D/A converter. Central Processing Unit The central processing unit or CPU controls the operation of the computer. THE CPU fetches binary coded instructions from memory, decades the instructions into a series of simple actions and carries out these actions in a sequence of steps. The CPU also contains an address counter or instruction pointer register which holds the address of the next instruction, or data item to be fetched from binary data and circuitry which generates the control bus signals.

  • Address Bus - The address bus consists of 16,20,24,32 parallel signal lines. On these lines the CPU sends out the address of the memory location. If the CPU has N address lines then it can directly address 2N memory locations.
  • Data Bus - The data bus consists of 8, 16, or 32 parallel signal lines. The double ended arrows on the data bus means that the CPU can read data in from memory or from a port on these lines, or it can send data out to memory or to a port on these lines.
  • Control Bus - The control bus consists of 4 to 10 parallel signal lines. The CPU sends out signals on the control bus to enable the outputs of addressed memory devices or port devices. Typical control bus signals are memory read, memory write, I/O read, and I/O write. To read a byte of data from a memory location, the CPU sends out the memory address of the desired byte on the address bus and then sends out the memory read signal on the control bus. The memory read signal enables the address memory device to output a data word on to the data bus. The data word from the memory travels along the data bus to the CPU. Microprocessor In any microcomputer system, the component which actually processes data is entirely contained on a single chip called Microprocessor (MPU). A microprocessor is a single chip integrating all the functions of a central processing unit (CPU) of a computer. In some cases, the terms 'CPU' and 'microprocessor' are used interchangeably to denote the same device.

It is the central processing unit which coordinates all the functions of a computer. It generates timing signals, sends and receives data to and from every peripheral used inside or outside the computer. The commands required to do this are fed into the device in the form of current variations which are converted into meaningful instructions by the use of a Boolean Logic System. It divides its functions in two categories, logical functions and processing functions. The arithmetic and logical unit and the control unit handle these functions respectively. There are different ways in which microprocessors are categorized. They are

  • CISC (Complex Instruction Set Computers)
  • RISC(Reduced Instruction Set Computers)
  • VLIW(Very Long Instruction Word Computers)

HISTORY OF MICROPROCESSOR

The invention of the transistor in 1947 was a significant development in the world of technology. It could perform the function of a large component used in a computer in the early years. Shockley, Brattain and Bardeen are credited with this invention and were awarded the Nobel prize for the same. Soon it was found that the function this large component was easily performed by a group of transistors arranged on a single platform. This platform, known as the integrated chip (IC), turned out to be a very crucial achievement and brought along a revolution in the use of computers. A person named Jack Kilby of Texas Instruments was honored with the Nobel Prize for the invention of IC, which laid the foundation on which microprocessors were developed. At the same time, Robert Noyce of Fairchild made a parallel development in IC technology for which he was awarded the patent.

ICs proved beyond doubt that complex functions could be integrated on a single chip with a highly developed speed and storage capacity. Both Fairchild and Texas Instruments began the manufacture of commercial ICs in 1961. Later, complex developments in the IC led to the addition of more complex functions on a single chip. The stage was set for a single controlling circuit for all the computer functions. Finally, Intel corporation's Ted Hoff and Frederico Fagin were credited with the design of the first microprocessor.

The work on this project began with an order from a Japanese calculator company Busicom to Intel, for building some chips for it. Hoff felt that the design could integrate a number of functions on a single chip making it feasible for providing the required functionality. This led to the design of Intel 4004, the world's first microprocessor. The next in line was the 8 bit 8008 microprocessor. It was developed by Intel in 1972 to perform complex functions in harmony with the 4004.

This was the beginning of a new era in computer applications. The use of mainframes and huge computers was scaled down to a much smaller device that was affordable to many. Earlier, their use was limited to large organizations and universities. With the advent of microprocessors, the use of computers trickled down to the common man. The next processor in line was Intel's 8080

  • Introduced in 1971.
  • (^) It was the first microprocessor by Intel.
  • It was a 4-bit μP.
  • Its clock speed was 740KHz.
  • It had 2,300 transistors.
  • It could execute around 60, instructions per second.

INTEL 4040

  • Introduced in 1974.
  • It was also 4-bit μP.

8-BIT MICROPROCESSORS

INTEL 8008

  • Introduced in 1972.
  • It was first 8-bit μP.
  • Its clock speed was 500 KHz.
  • Could execute 50,000 instructions per second.

INTEL 8080

  • Introduced in 1974.
  • It was also 8-bit μP.
  • Its clock speed was 2 MHz.
  • It had 6,000 transistors.
  • Was 10 times faster than 8008.
  • Could execute 5,00,000 instructions per second.

INTEL 8085

  • (^) Introduced in 1976.
  • It was also 8-bit μP.
  • Its clock speed was 3 MHz.
  • Its data bus is 8-bit and address bus is 16-bit.
  • It had 6,500 transistors.
  • Could execute 7,69,230 instructions per second.
  • It could access 64 KB of memory.
  • It had 246 instructions.
  • Over 100 million copies were sold.
  • Introduced in 1982.
  • They were 16-bit μPs.
  • Clock speed was 6 MHz.
  • 80188 was a cheaper version of 80186 with an 8-bit external data bus.
  • They had additional components like:
    • Interrupt Controller
    • Clock Generator
    • (^) Local Bus Controller
    • Counters

INTEL 80286

  • Introduced in 1982.
  • (^) It was 16-bit μP.
  • Its clock speed was 8 MHz.
  • Its data bus is 16-bit and address bus is 24-bit.
  • It could address 16 MB of memory.
  • It had 1,34,000 transistors.
  • It could execute 4 million instructions per second.

32-BIT MICROPROCESSORS

INTEL 80386

  • Introduced in 1986.
  • It was first 32-bit μP.
  • Its data bus is 32-bit and address bus is 32-bit.
  • It could address 4 GB of memory.
  • It had 2,75,000 transistors.
  • Its clock speed varied from 16 MHz to 33 MHz depending upon the various versions.
  • Different versions:
    • 80386 DX
    • 80386 SX
    • 80386 SL
  • Intel 80386 became the best selling microprocessor in history.

INTEL 80486

  • Introduced in 1989.
  • It was also 32-bit μP.
  • It had 1.2 million transistors.
  • Its clock speed varied from 16 MHz to 100 MHz depending upon the various versions.
  • It had five different versions:
    • 80486 DX
    • 80486 SX
    • 80486 DX
    • 80486 SL
    • 80486 DX
  • 8 KB of cache memory was introduced.
  • It was also 32-bit μP.
  • Its clock speed was 233MHz to 500 MHz.
  • Could execute 333 million instructions per second.
  • MMX technology was supported.
  • L2 cache & processor were on one circuit.

INTEL PENTIUM II XEON

  • Introduced in 1998.
  • It was also 32-bit μP.
  • It was designed for servers.
  • Its clock speed was 400 MHz to 450 MHz.
  • L1 cache of 32 KB & L2 cache of 512 KB, 1MB or 2 MB.
  • It could work with 4 Xeons in same system.

INTEL PENTIUM III

  • Introduced in 1999.
  • It was also 32-bit μP.
  • Its clock speed varied from 500 MHz to 1.4 GHz.
  • It had 9.5 million transistors.

INTEL PENTIUM IV

  • Introduced in 2000.
  • It was also 32-bit μP.
  • Its clock speed was from 1.3 GHz to 3.8 GHz.
  • L1 cache was of 32 KB & L2 cache of 256 KB.
  • It had 42 million transistors.
  • All internal connections were made from aluminium to copper.

INTEL DUAL CORE

  • Introduced in 2006.
  • It is 32-bit or 64-bit μP.
  • It has two cores. Both the cores have there own internal bus and L1 cache, but share the external bus and L2 cache
  • It supported SMT technology. SMT: Simultaneously Multi- Threading E.g.: Adobe Photoshop supported SMT.

64 BIT MICROPROCESSORS

INTEL CORE 2

  • Introduced in 2006.
  • It is a 64-bit μP.
  • Its clock speed is from 1.2 GHz to 3 GHz.
  • It has 291 million transistors.
  • It has 64 KB of L1 cache per core and 4 MB of L2 cache.
  • It is launched in three different versions:
    • Intel Core 2 Duo
  • It has 64 KB of L1 cache per core, 512 KB of L2 cache and 4 MB of L3 cache.