SlideShare une entreprise Scribd logo
1  sur  7
Télécharger pour lire hors ligne
ICT 3107– Microprocessors and Interfacing
Lecture Notes # 1
Outline of the Lecture
Microcomputers and Microprocessors
Evolution of Intel 80x86 Family Microprocessors
Binary and Hexadecimal Number Systems
MICROCOMPUTERS AND MICROPROCESSORS
There are three major parts of a Computer System.
1. Central Processing Unit (CPU): Also simply called as the microprocessor acts as the brain
coordinating all activities within a computer.
2. The Memory: The program instructions and data are primarily stored.
3. The Input/Output (I/O) Devices: Allow the computer to input information for processing and
then output the results. I/O Devices are also known as computer peripherals.
The integrated Circuit (IC) chip containing the CPU is called the microprocessor and the entire
computer including the microprocessor, memory and I/O is called a microcomputer.
The CPU is connected to memory and I/O devices through a strip of wires called a bus. The bus inside
a computer carries information from place to place. In every computer there are three types of busses:
1. Address Bus: The address bus is used to identify the memory location or I/O device the processor
intends to communicate with. The width of the Address Bus rages from 20 bits (8086) to 36 bits for
(Pentium II).
2. Data Bus: Data bus is used by the CPU to get data from / to send data to the memory or the I/O
devices. The width of a microprocessor is used to classify the microprocessor. The size of data bus
of Intel microprocessors vary between 8-bit (8085) to 64-bit (Pentium).
3. Control Bus. How can we tell if the address on the bus is memory address or an I/O device
address? This where the control bus comes in. Each time the processor outputs an address it also
activates one of the four control bus signals: Memory Read, Memory Write, I/O Read and I/O Write.
The address and control bus contains output lines only, therefore it is unidirectional, but the data bus is
bidirectional.
There two types of memory used in microcomputers:
♦ RAM (Random Access Memory/ Read-Write memory) is used by the computer for the temporary
storage of the programs that is running. Data is lost when the computer is turned off. So known as
volatile memory.
♦ ROM (Read Only Memory) the information in ROM is permanent and not lost when the power is
turned off. Therefore, it is called nonvolatile memory.
Note that RAM is sometimes referred as primary storage, where magnetic /optical disks are called
secondary storage.
Internal organisation of a microcomputer
Inside the CPU:
A program stored in the memory provides instructions to the CPU to perform a specific action. This
action can be a simple addition. It is function of the CPU to fetch the program instructions from the memory
and execute them.
1. The CPU contains a number of registers to store information inside the CPU temporarily.
Registers inside the CPU can be 8-bit, 16-bit, 32-bit or even 64-bit depending on the CPU.
2. The CPU also contains Arithmetic and Logic Unit (ALU). The ALU performs arithmetic (add,
subtract, multiply, divide) and logic (AND, OR, NOT) functions.
3. The CPU contains a program counter also known as the Instruction Pointer to point the address
of the next instruction to be executed.
4. Instruction Decoder is a kind of dictionary which is used to interpret the meaning of the
instruction fetched into the CPU. Appropriate control signals are generated according to the meaning
of the instruction.
Internal block diagram of a CPU
CPU
Read/
Write
RAM ROM Printer Disk Monitor Keyboard
Address Bus
Data Bus
Control Bus
Flags ALU
Instruction Pointer
Instruction Register
Instruction Decoder
Timing and control
signals are generated
Register B
Register A
Register D
Register C
Address
Bus
Control
Bus
Data
Bus
Internal
Busses
The Figure below demonstrates the interaction between the CPU, memory and I/O Devices.
Brief History of the Computers
• 1946 The first generation of Computer ENIAC was started to be used based on the vacuum tube
technology.
• 1958 the first transistorized computer TRADIC was announced by IBM.
• 1959 first IC was invented.
• 1960s ICs were started to be used in CPU boards.
• 1970s entire CPU was put in a single chip. (1971 the first microprocessor of Intel 4004 (4-bit data bus
and 2300 transistors)
• Late 1970s Intel 8080/85 appeared with 8-bit data bus and 16-bit address bus and used from traffic light
controllers to homemade computers.
• 1981 First PC was introduced by IBM with Intel 8088 microprocessor.
• Motorola emerged with 6800. Apple Macintosh computers started to use 68000 series of
microprocessors.
EVOLUTION OF INTEL 80X86 FAMILY MICROPROCESSORS
Processor Year
Intro.
Transistors Clock Rate
(MHz.)
External
Data Bus
Internal
Data Bus
Add. Bus
4004 1971 2,250 0.108 4 8 12
8008 1972 3,500 0.200 8 8 14
8080 1974 6,000 3 8 8 16
8085 1976 6,000 6 8 8 16
8086 1978 29,000 10 16 16 20
8088 1979 29,000 10 8 16 20
80286 1982 134,000 12.5 16 16 25
80386DX 1985 275,000 33 32 32 32
80386SX 1988 275,000 33 16 32 24
Pentium C 1993 3,100,000 66 -200 64 32 32
Pentium MMX 1997 4,500,000 300 64 32 32
Pentium Pro 1995 5,500,000 200 64 32 36
Pentium II 1997 7,500,000 233-450 64 32 36
Pentium III 1999 9,500,000 550-733 64 32 36
Itanium 2001 30,000,000 800-… 128 64 64
BINARY AND HEXADECIMAL NUMBER SYSTEMS
As human being we use base 10 (decimal) arithmetic
Computers use base 2 (binary) system.
Base 16 Hexadecimal number system is a convenient way of represented binary numbers.
ASCII (binary format of the alphanumeric code) is explained.
Decimal and Binary number systems:
-There is a speculation of the fact that Humans use base 10 system is because they have 10 fingers. But
there is no speculation behind the fact that the computers use binary system. The binary system is used in
computers, because 1 and zero represent the two voltage levels of on and off.
There are 10 digits in Decimal system: 0,1,2,3,4,5,6,7,8,9
There are only 2 digits in Binary system: 0,1 (Binary digits are referred as bits)
Converting from decimal to binary:
Example: Convert 2510 to binary:
Remainder
25/2 = 12 1 LSB (least significant bit)
12/2 = 6 0
6/2 = 3 0
3/2 = 1 1
1/2 = 0 1 MSB (most significant bit)
Therefore, 2510 = 110012
Converting from binary to decimal:
Example: Convert 1101012 to decimal:
1101012 = Decimal
1x20
=1x1 = 1
0x21
=0x2 = 0
1x22
=1x4 = 4
0x23
=0x8 = 0
1x24
=1x16 = 16
1x25
=1x32 = + 32
53 1101012 =5310
Hexadecimal Number system:
Hexadecimal system is defined to be the base 16 number system and is used as a convenient representation of
binary numbers.
Hexadecimal Binary Decimal
0 0000 0
1 0001 1
2 0010 2
3 0011 3
4 0100 4
5 0101 5
6 0110 6
7 0111 7
8 1000 8
9 1001 9
A 1010 10
B 1011 11
C 1100 12
D 1101 13
E 1110 14
F 1111 15
Converting from binary to hex (hexadecimal):
Example: Convert 1001111101012 to hex:
1001 1111 0101
= 9 F 5
Therefore, 1001111101012 = 9F5 Hex
Converting from hex to binary:
Example: Convert hex 29B to binary:
2 9 B
= 0010 1001 1011 Dropping zeros, 29B = 1010011011
Converting from decimal to hex (hexadecimal):
Example: Convert 4510 to hex:
Quotient Remainder
45/16 = 2 13 (hex D) LSD (least significant bit)
2/16 = 0 2 MSD (most significant bit)
Therefore, 4510 = 2D16 = 2DH
Converting from hex to decimal:
Example: Convert 6B216 to decimal:
6B216 = Decimal
2 x 160
= 2 x 1 = 2
11x161
= 11x16 = 176
6 x 162
= 6x256 = + 1536
1714 Therefore, 6B216 = 171410
Addition and subtraction in binary numbers:
Addition Example:
Subtraction of Binary Numbers:
Given binary numbers x and y. x–y is performed by taking 2’s complement of y and adding to x.
11001001 – 10011101 => 2’s complement of 10011101= 01100010 (1’s complement)
+1
01100011 (2’s complement)
11001001
+ 01100011
1 00101100
Addition and subtraction in hex numbers:
Addition Example:
Subtraction Example:
1101
1001
+ 10110
101100
A + B Carry Sum
0 + 0 0 0
0 + 1 0 1
1 + 0 0 1
1 + 1 1 0
Binary Addition
23D9 LSD : 9 + 14 = 23 23-16= 7 with a carry to next digit
+ 94BE 1+13+11 = 25 25-16= 9 with a carry to next digit
B897 1+3+4 = 8
MSD 2 + 9 = B
59F LSD : 15 - 8 = 7
– 2B8 25 (9+16) – 11 (B) = 14, which is E
2E7 MSD 4 (5–1) –2 = 2
ASCII Code : (American Standard Code for Information Interchange)
Hex Symbol Hex Symbol
41 A 61 a
42 B 62 b
42 C 62 c
44 D 64 d
45 E 65 e
46 F 66 f
47 G 67 g
48 H 68 h
49 I 69 i
4A J 6A j
4B K 6B k
4C L 6C l
4D M 6D m
4E N 6E n
4F O 6F o
50 P 70 p
51 Q 71 q
52 R 72 r
53 S 73 s
54 T 74 t
55 U 75 u
56 V 76 v
57 W 77 w
58 X 78 x
59 Y 79 y
5A Z 7A z
Some important terminology:
bit 0
nibble 0000
byte 0000 0000
word 0000 0000 0000 0000
double-word 0000 0000 0000 0000 0000 0000 0000 0000
quad-word 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
1 kilobyte is 210
bytes. (Abbreviation K is used) Some floppy disks hold 356K bytes of data.
1 megabyte is 220
bytes. (a little over a million 1,048,576)
1 gigabyte is 230
bytes (over 1 trillion)
1 terabyte is 240
bytes

Contenu connexe

Tendances

Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...Rai University
 
Introduction to Microprocessor
Introduction to MicroprocessorIntroduction to Microprocessor
Introduction to MicroprocessorArsalan Qureshi
 
It tools and buisness system.docx
It tools and buisness system.docxIt tools and buisness system.docx
It tools and buisness system.docxhinditutorialspoint
 
Microprocessors evolution introduction to microprocessor
Microprocessors  evolution introduction to microprocessorMicroprocessors  evolution introduction to microprocessor
Microprocessors evolution introduction to microprocessorVijay Kumar
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessorsvishi1993
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessorankitnav1
 
Chapter 2 The 8088 Microprocessor
Chapter 2   The 8088 MicroprocessorChapter 2   The 8088 Microprocessor
Chapter 2 The 8088 MicroprocessorDwight Sabio
 
Evolution of microprocessors
Evolution of microprocessorsEvolution of microprocessors
Evolution of microprocessorsharinder
 
Cs160 chapter 2
Cs160 chapter 2Cs160 chapter 2
Cs160 chapter 2Joe Paris
 
Introduction to microprocessor notes
Introduction to microprocessor notesIntroduction to microprocessor notes
Introduction to microprocessor notesSARITHA REDDY
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital componentRai University
 
Microprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture NotesMicroprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture NotesFellowBuddy.com
 

Tendances (19)

Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
 
Introduction to Microprocessor
Introduction to MicroprocessorIntroduction to Microprocessor
Introduction to Microprocessor
 
It tools and buisness system.docx
It tools and buisness system.docxIt tools and buisness system.docx
It tools and buisness system.docx
 
Microprocessors evolution introduction to microprocessor
Microprocessors  evolution introduction to microprocessorMicroprocessors  evolution introduction to microprocessor
Microprocessors evolution introduction to microprocessor
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessors
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
 
Chapter 2 The 8088 Microprocessor
Chapter 2   The 8088 MicroprocessorChapter 2   The 8088 Microprocessor
Chapter 2 The 8088 Microprocessor
 
Evolution of microprocessors
Evolution of microprocessorsEvolution of microprocessors
Evolution of microprocessors
 
Cs160 chapter 2
Cs160 chapter 2Cs160 chapter 2
Cs160 chapter 2
 
Introduction to microprocessor notes
Introduction to microprocessor notesIntroduction to microprocessor notes
Introduction to microprocessor notes
 
Intro to cao &store program
Intro to cao &store programIntro to cao &store program
Intro to cao &store program
 
digital logic circuits, digital component
digital logic circuits, digital componentdigital logic circuits, digital component
digital logic circuits, digital component
 
microprocessor
microprocessor microprocessor
microprocessor
 
Processing Data
Processing DataProcessing Data
Processing Data
 
Computer Evolution
Computer EvolutionComputer Evolution
Computer Evolution
 
Ch07
Ch07Ch07
Ch07
 
Microprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture NotesMicroprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture Notes
 
Doc 20180208-wa0001
Doc 20180208-wa0001Doc 20180208-wa0001
Doc 20180208-wa0001
 
Computer architecture
Computer architectureComputer architecture
Computer architecture
 

Similaire à Introduction to Microprocessor lecture 01

M.sc I-sem-8086 notes
M.sc  I-sem-8086 notesM.sc  I-sem-8086 notes
M.sc I-sem-8086 notesDr.YNM
 
M.sc I-sem-8086 notes
M.sc  I-sem-8086 notesM.sc  I-sem-8086 notes
M.sc I-sem-8086 notesDr.YNM
 
System concept and hardware
System concept and hardwareSystem concept and hardware
System concept and hardwarefiza1975
 
Kaizen cso002 l1
Kaizen cso002 l1Kaizen cso002 l1
Kaizen cso002 l1asslang
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085Sumit Swain
 
Introduction to uP-Chadasdffpter I-3.ppt
Introduction to uP-Chadasdffpter I-3.pptIntroduction to uP-Chadasdffpter I-3.ppt
Introduction to uP-Chadasdffpter I-3.pptYAGYABAHADURSHAHI
 
Microproccesor and Microcontrollers hardware basics
Microproccesor and Microcontrollers hardware basicsMicroproccesor and Microcontrollers hardware basics
Microproccesor and Microcontrollers hardware basicsashmus
 
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerMPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerRAHUL RANJAN
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessorankitnav1
 
Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Techglyphs
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registersmahesh kumar prajapat
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
Data Manipulation
Data ManipulationData Manipulation
Data ManipulationAsfi Bhai
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorDarling Jemima
 
Session01_Intro.pdf
Session01_Intro.pdfSession01_Intro.pdf
Session01_Intro.pdfRahnerJames
 

Similaire à Introduction to Microprocessor lecture 01 (20)

M.sc I-sem-8086 notes
M.sc  I-sem-8086 notesM.sc  I-sem-8086 notes
M.sc I-sem-8086 notes
 
M.sc I-sem-8086 notes
M.sc  I-sem-8086 notesM.sc  I-sem-8086 notes
M.sc I-sem-8086 notes
 
Chapter#4
Chapter#4Chapter#4
Chapter#4
 
System concept and hardware
System concept and hardwareSystem concept and hardware
System concept and hardware
 
Kaizen cso002 l1
Kaizen cso002 l1Kaizen cso002 l1
Kaizen cso002 l1
 
Introduction
Introduction Introduction
Introduction
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
Introduction to uP-Chadasdffpter I-3.ppt
Introduction to uP-Chadasdffpter I-3.pptIntroduction to uP-Chadasdffpter I-3.ppt
Introduction to uP-Chadasdffpter I-3.ppt
 
Module_01.ppt
Module_01.pptModule_01.ppt
Module_01.ppt
 
Microproccesor and Microcontrollers hardware basics
Microproccesor and Microcontrollers hardware basicsMicroproccesor and Microcontrollers hardware basics
Microproccesor and Microcontrollers hardware basics
 
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and MicrocontrollerMPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
MPMC UNIT-1. Microprocessor 8085 pdf Microprocessor and Microcontroller
 
Introduction to intel 8086 part1
Introduction to intel 8086 part1Introduction to intel 8086 part1
Introduction to intel 8086 part1
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
 
Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Bt0068 computer organization and architecture
Bt0068 computer organization and architecture
 
Instruction codes and computer registers
Instruction codes and computer registersInstruction codes and computer registers
Instruction codes and computer registers
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Data Manipulation
Data ManipulationData Manipulation
Data Manipulation
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM Processor
 
Chp 2 and 3.pptx
Chp 2 and 3.pptxChp 2 and 3.pptx
Chp 2 and 3.pptx
 
Session01_Intro.pdf
Session01_Intro.pdfSession01_Intro.pdf
Session01_Intro.pdf
 

Dernier

Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxVelmuruganTECE
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESNarmatha D
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptxNikhil Raut
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfRajuKanojiya4
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 

Dernier (20)

Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Internet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptxInternet of things -Arshdeep Bahga .pptx
Internet of things -Arshdeep Bahga .pptx
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIES
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptx
 
National Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdfNational Level Hackathon Participation Certificate.pdf
National Level Hackathon Participation Certificate.pdf
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 

Introduction to Microprocessor lecture 01

  • 1. ICT 3107– Microprocessors and Interfacing Lecture Notes # 1 Outline of the Lecture Microcomputers and Microprocessors Evolution of Intel 80x86 Family Microprocessors Binary and Hexadecimal Number Systems MICROCOMPUTERS AND MICROPROCESSORS There are three major parts of a Computer System. 1. Central Processing Unit (CPU): Also simply called as the microprocessor acts as the brain coordinating all activities within a computer. 2. The Memory: The program instructions and data are primarily stored. 3. The Input/Output (I/O) Devices: Allow the computer to input information for processing and then output the results. I/O Devices are also known as computer peripherals. The integrated Circuit (IC) chip containing the CPU is called the microprocessor and the entire computer including the microprocessor, memory and I/O is called a microcomputer. The CPU is connected to memory and I/O devices through a strip of wires called a bus. The bus inside a computer carries information from place to place. In every computer there are three types of busses: 1. Address Bus: The address bus is used to identify the memory location or I/O device the processor intends to communicate with. The width of the Address Bus rages from 20 bits (8086) to 36 bits for (Pentium II). 2. Data Bus: Data bus is used by the CPU to get data from / to send data to the memory or the I/O devices. The width of a microprocessor is used to classify the microprocessor. The size of data bus of Intel microprocessors vary between 8-bit (8085) to 64-bit (Pentium). 3. Control Bus. How can we tell if the address on the bus is memory address or an I/O device address? This where the control bus comes in. Each time the processor outputs an address it also activates one of the four control bus signals: Memory Read, Memory Write, I/O Read and I/O Write. The address and control bus contains output lines only, therefore it is unidirectional, but the data bus is bidirectional. There two types of memory used in microcomputers: ♦ RAM (Random Access Memory/ Read-Write memory) is used by the computer for the temporary storage of the programs that is running. Data is lost when the computer is turned off. So known as volatile memory. ♦ ROM (Read Only Memory) the information in ROM is permanent and not lost when the power is turned off. Therefore, it is called nonvolatile memory. Note that RAM is sometimes referred as primary storage, where magnetic /optical disks are called secondary storage.
  • 2. Internal organisation of a microcomputer Inside the CPU: A program stored in the memory provides instructions to the CPU to perform a specific action. This action can be a simple addition. It is function of the CPU to fetch the program instructions from the memory and execute them. 1. The CPU contains a number of registers to store information inside the CPU temporarily. Registers inside the CPU can be 8-bit, 16-bit, 32-bit or even 64-bit depending on the CPU. 2. The CPU also contains Arithmetic and Logic Unit (ALU). The ALU performs arithmetic (add, subtract, multiply, divide) and logic (AND, OR, NOT) functions. 3. The CPU contains a program counter also known as the Instruction Pointer to point the address of the next instruction to be executed. 4. Instruction Decoder is a kind of dictionary which is used to interpret the meaning of the instruction fetched into the CPU. Appropriate control signals are generated according to the meaning of the instruction. Internal block diagram of a CPU CPU Read/ Write RAM ROM Printer Disk Monitor Keyboard Address Bus Data Bus Control Bus Flags ALU Instruction Pointer Instruction Register Instruction Decoder Timing and control signals are generated Register B Register A Register D Register C Address Bus Control Bus Data Bus Internal Busses
  • 3. The Figure below demonstrates the interaction between the CPU, memory and I/O Devices.
  • 4. Brief History of the Computers • 1946 The first generation of Computer ENIAC was started to be used based on the vacuum tube technology. • 1958 the first transistorized computer TRADIC was announced by IBM. • 1959 first IC was invented. • 1960s ICs were started to be used in CPU boards. • 1970s entire CPU was put in a single chip. (1971 the first microprocessor of Intel 4004 (4-bit data bus and 2300 transistors) • Late 1970s Intel 8080/85 appeared with 8-bit data bus and 16-bit address bus and used from traffic light controllers to homemade computers. • 1981 First PC was introduced by IBM with Intel 8088 microprocessor. • Motorola emerged with 6800. Apple Macintosh computers started to use 68000 series of microprocessors. EVOLUTION OF INTEL 80X86 FAMILY MICROPROCESSORS Processor Year Intro. Transistors Clock Rate (MHz.) External Data Bus Internal Data Bus Add. Bus 4004 1971 2,250 0.108 4 8 12 8008 1972 3,500 0.200 8 8 14 8080 1974 6,000 3 8 8 16 8085 1976 6,000 6 8 8 16 8086 1978 29,000 10 16 16 20 8088 1979 29,000 10 8 16 20 80286 1982 134,000 12.5 16 16 25 80386DX 1985 275,000 33 32 32 32 80386SX 1988 275,000 33 16 32 24 Pentium C 1993 3,100,000 66 -200 64 32 32 Pentium MMX 1997 4,500,000 300 64 32 32 Pentium Pro 1995 5,500,000 200 64 32 36 Pentium II 1997 7,500,000 233-450 64 32 36 Pentium III 1999 9,500,000 550-733 64 32 36 Itanium 2001 30,000,000 800-… 128 64 64 BINARY AND HEXADECIMAL NUMBER SYSTEMS As human being we use base 10 (decimal) arithmetic Computers use base 2 (binary) system. Base 16 Hexadecimal number system is a convenient way of represented binary numbers. ASCII (binary format of the alphanumeric code) is explained. Decimal and Binary number systems: -There is a speculation of the fact that Humans use base 10 system is because they have 10 fingers. But there is no speculation behind the fact that the computers use binary system. The binary system is used in computers, because 1 and zero represent the two voltage levels of on and off. There are 10 digits in Decimal system: 0,1,2,3,4,5,6,7,8,9 There are only 2 digits in Binary system: 0,1 (Binary digits are referred as bits)
  • 5. Converting from decimal to binary: Example: Convert 2510 to binary: Remainder 25/2 = 12 1 LSB (least significant bit) 12/2 = 6 0 6/2 = 3 0 3/2 = 1 1 1/2 = 0 1 MSB (most significant bit) Therefore, 2510 = 110012 Converting from binary to decimal: Example: Convert 1101012 to decimal: 1101012 = Decimal 1x20 =1x1 = 1 0x21 =0x2 = 0 1x22 =1x4 = 4 0x23 =0x8 = 0 1x24 =1x16 = 16 1x25 =1x32 = + 32 53 1101012 =5310 Hexadecimal Number system: Hexadecimal system is defined to be the base 16 number system and is used as a convenient representation of binary numbers. Hexadecimal Binary Decimal 0 0000 0 1 0001 1 2 0010 2 3 0011 3 4 0100 4 5 0101 5 6 0110 6 7 0111 7 8 1000 8 9 1001 9 A 1010 10 B 1011 11 C 1100 12 D 1101 13 E 1110 14 F 1111 15 Converting from binary to hex (hexadecimal): Example: Convert 1001111101012 to hex: 1001 1111 0101 = 9 F 5 Therefore, 1001111101012 = 9F5 Hex Converting from hex to binary: Example: Convert hex 29B to binary: 2 9 B = 0010 1001 1011 Dropping zeros, 29B = 1010011011
  • 6. Converting from decimal to hex (hexadecimal): Example: Convert 4510 to hex: Quotient Remainder 45/16 = 2 13 (hex D) LSD (least significant bit) 2/16 = 0 2 MSD (most significant bit) Therefore, 4510 = 2D16 = 2DH Converting from hex to decimal: Example: Convert 6B216 to decimal: 6B216 = Decimal 2 x 160 = 2 x 1 = 2 11x161 = 11x16 = 176 6 x 162 = 6x256 = + 1536 1714 Therefore, 6B216 = 171410 Addition and subtraction in binary numbers: Addition Example: Subtraction of Binary Numbers: Given binary numbers x and y. x–y is performed by taking 2’s complement of y and adding to x. 11001001 – 10011101 => 2’s complement of 10011101= 01100010 (1’s complement) +1 01100011 (2’s complement) 11001001 + 01100011 1 00101100 Addition and subtraction in hex numbers: Addition Example: Subtraction Example: 1101 1001 + 10110 101100 A + B Carry Sum 0 + 0 0 0 0 + 1 0 1 1 + 0 0 1 1 + 1 1 0 Binary Addition 23D9 LSD : 9 + 14 = 23 23-16= 7 with a carry to next digit + 94BE 1+13+11 = 25 25-16= 9 with a carry to next digit B897 1+3+4 = 8 MSD 2 + 9 = B 59F LSD : 15 - 8 = 7 – 2B8 25 (9+16) – 11 (B) = 14, which is E 2E7 MSD 4 (5–1) –2 = 2
  • 7. ASCII Code : (American Standard Code for Information Interchange) Hex Symbol Hex Symbol 41 A 61 a 42 B 62 b 42 C 62 c 44 D 64 d 45 E 65 e 46 F 66 f 47 G 67 g 48 H 68 h 49 I 69 i 4A J 6A j 4B K 6B k 4C L 6C l 4D M 6D m 4E N 6E n 4F O 6F o 50 P 70 p 51 Q 71 q 52 R 72 r 53 S 73 s 54 T 74 t 55 U 75 u 56 V 76 v 57 W 77 w 58 X 78 x 59 Y 79 y 5A Z 7A z Some important terminology: bit 0 nibble 0000 byte 0000 0000 word 0000 0000 0000 0000 double-word 0000 0000 0000 0000 0000 0000 0000 0000 quad-word 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 1 kilobyte is 210 bytes. (Abbreviation K is used) Some floppy disks hold 356K bytes of data. 1 megabyte is 220 bytes. (a little over a million 1,048,576) 1 gigabyte is 230 bytes (over 1 trillion) 1 terabyte is 240 bytes