Microprocessors and controllers
-
Upload
wendy-hemo -
Category
Technology
-
view
1.110 -
download
5
description
Transcript of Microprocessors and controllers
![Page 1: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/1.jpg)
Copyright © 2008 Heathkit Company, Inc. All rights reserved.
Unit 2
CPUs and Microprocessor
![Page 2: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/2.jpg)
2
CPU Components
![Page 3: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/3.jpg)
3
Objectives• Describe the components that make
up a CPU.
• Demonstrate the purpose of a CPU clock.
• Discuss how the clock determines CPU speed.
• Explain the purpose of an instruction set.
![Page 4: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/4.jpg)
4
CPUCPU
Pentium 4 CPU
![Page 5: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/5.jpg)
5
TransistorsTransistors
![Page 6: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/6.jpg)
6
ResistorsResistors
![Page 7: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/7.jpg)
7
Color CodesColor
First Band
Second Band
Third Band (optional)
Fourth Band (multiplier)
Tolerance Band
Black 0 0 0 1
Brown 1 1 1 10
Red 2 2 2 100
Orange 3 3 3 1,000
Yellow 4 4 4 10,000
Green 5 5 5 100,000
Blue 6 6 6 1,000,000
Violet 7 7 7 (silver) .01 (silver) 10%
Gray 8 8 8 (gold) .1 (gold) 5%
White 9 9 9 (brown) 1%
![Page 8: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/8.jpg)
8
PotentiometersPotentiometers
![Page 9: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/9.jpg)
9
CapacitorsCapacitors
![Page 10: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/10.jpg)
10
More CapacitorsMore Capacitors
![Page 11: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/11.jpg)
11
IC’s - DIP styleIC’s - DIP style
![Page 12: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/12.jpg)
12
The Clock
14.318 MHzCrystal
BIOS
System Clock
Clock Chip
![Page 13: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/13.jpg)
13
Instruction Sets
• Every CPU is controlled by a set of instructions.
• Instruction sets tell the CPU where to find data, when to read the data, and what to do with the data.
![Page 14: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/14.jpg)
14
• Describe the components that make up a CPU.
• Demonstrate the purpose of a CPU clock.
• Discuss how the clock determines CPU speed.
• Explain the purpose of an instruction set.
![Page 15: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/15.jpg)
15
Intel Processors
![Page 16: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/16.jpg)
16
Objectives• Describe the main factors used to
compare CPU performance.
• Develop an understanding of earlier processors, and how processors have evolved through the years.
• Describe how the Pentium family of CPUs evolved.
• Describe the basic structure of today’s dual-core CPUs.
![Page 17: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/17.jpg)
17
In the Beginning
• 4004 by Intel in 1971
• Designed as the core logic of a calculator
• Handled data 4 bits at a time
• Ran at 108 KHz
• 2300 transistors
• Memory: 640 bytes
![Page 18: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/18.jpg)
18
8008• Date Introduced April 1972
• Number of Transistors 3,500
• Internal Register Size 8-bits
• Data I/O Bus Width 8-bits
• Maximum Memory 16 KB
• Typical Speed 0.2 MHz
![Page 19: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/19.jpg)
Intel 4040
• Updated version of 4004
• 4 bit microprocessor
19
![Page 20: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/20.jpg)
20
8080• Date Introduced April 1974
• Number of Transistors 6000
• Int Register Size 8-bits
• Data I/O Bus Width 8-bits
• Maximum Memory 64 KB
• Typical Speed 2 MHz
• Used in Altair microcomputer
![Page 21: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/21.jpg)
21
8088• Date Introduced June 1979
• Number of Transistors 29,000
• Int Register Size 16 bits
• Data I/O Bus Width 8 bits
• Maximum Memory 1 MB
• Typical Speed 8 MHz
• External bus 8 bits
• 40- pin DIP
![Page 22: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/22.jpg)
22
The 8088 was used in the first IBM
Personal Computer
![Page 23: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/23.jpg)
Intel 80186
• 80186 was developed, but it was not used in any significant computers.
23
![Page 24: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/24.jpg)
24
80286• Date Introduced May 1982
• Number of Transistors 134,000
• Int Register Size 16 bits
• Data I/O Bus Width 16 bits
• Maximum Memory 16 MB
• Typical Speed 12 MHz
![Page 25: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/25.jpg)
25
80386• Date Introduced Oct. 1985
• Number of Transistors 275,000
• Internal Register Size 32 bits
• Data I/O Bus Width 32 bits
• Maximum Memory 4 GB
• Typical Speed 16/20/25/33 MHz
• The fist processor to be packaged in a PGA
![Page 26: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/26.jpg)
26
80386sx
• Int Register Size 32-bits
• Data I/O Bus Width 16-bits
• Typical Speed 16/20/25/33 MHz
• 386sx was a 386 on the inside but a 286 on the outside
• 16 bit motherboard
• Inexpensive alternative of 80386
![Page 27: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/27.jpg)
27
Math Coprocessors
• Fast circuits to perform floating point math
• For 8088 through 80386, a separate device
• As complicated as the CPU itself
![Page 28: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/28.jpg)
Math coprocessor
• The math coprocessor is a special circuit designed to perform floating point arithmetic.
• Floating point refers to fractional numbers and exponents as opposed to only integer or whole numbers.
• Initially, the math coprocessor was a separate integrated circuit because its complexity approached that of the microprocessor itself.
28
![Page 29: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/29.jpg)
29
CPU and Coprocessor
8088 8087
80286 80287
80386 80387
![Page 30: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/30.jpg)
30
80486not all 486 family has a coprocessor
• Date Introduced April 1989
• Transistors 1,200,000
• Int Register Size 32-bits
• Bus Width 32-bits
• Max Memory 4 GB
• Typical Speed 66 MHz
• L1 Internal Cache 8 KB
• Math Coprocessor Internal
![Page 31: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/31.jpg)
31
Internal Cache
• A small memory inside the CPU that runs at the same speed as the CPU
• Also called an L1 cache
![Page 32: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/32.jpg)
32
Pentium®
• Date Introduced March 1993
• Transistors 3,100,000
• Int Register Size 32-bits
• Data I/O Bus Width 64-bits
• Maximum Memory 4 GB
• Typical Speed 100 MHz
• L1 Internal Cache 2×8 KB
• Internal Coprocessor Yes
![Page 33: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/33.jpg)
33
0 5 10 15 20 25
8088
80286
80386
80486
Pentium
Number of clock cycles needed to execute a typical instructionNumber of clock cycles needed to execute a typical instruction
![Page 34: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/34.jpg)
34
![Page 35: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/35.jpg)
35
Pentium Pro®
• Date Introduced November 1995
• Transistors 5,500,000
• Internal Register Size 32 bits
• Data I/O Bus Width 64 bits
• Maximum Memory 64 GB
• Typical Speed 200 MHz
• L1 Internal Cache 2×8 KB
• Math Coprocessor Yes
• L2 Cache 256 KB
![Page 36: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/36.jpg)
36
Micro-processor
Micro-processor
256 KBCache
256 KBCache
Pentium Pro®
![Page 37: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/37.jpg)
37
Pentium MMX• Date Introduced January 1997• Transistors 4,100,000• Internal Register Size 32 bits• Data I/O Bus Width 64 bits• Maximum Memory 4 GB• Typical Speed 200 MHz• L1 Internal Cache 2×16 KB• Math Coprocessor Yes• MMX Instructions Yes
![Page 38: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/38.jpg)
38
![Page 39: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/39.jpg)
39
Pentium II®
• Date Introduced May 1997• Number of Transistors 7,500,000• Int Register Size 32 bits• Data I/O Bus Width 64 bits• Maximum Memory 64 GB• Typical Speed 300 MHz• L1 Internal Cache 2×16 KB• Math Coprocessor Yes• L2 Cache 512 KB
![Page 40: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/40.jpg)
40
Pentium II Single Edge Contact (SEC) Cartridge
![Page 41: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/41.jpg)
41
Pentium IIProcessor
Pentium IIProcessor
CacheMemoryCache
MemoryCache
MemoryCache
Memory
Internal View (Front)
![Page 42: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/42.jpg)
42
Pentium IISEC
Cartridge
Pentium IISEC
Cartridge
Heat Sink
Heat Sink
FanFan
![Page 43: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/43.jpg)
43
Pentium III®
• 0.25 Micron Technology
• 450 MHz to 1.4 GHz
• 1.8V core voltage
• Dissipates less heat
• Supports multi-processing
![Page 44: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/44.jpg)
44
![Page 45: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/45.jpg)
45
Pentium 4®
• 0.18, 0.13, 0.09 Micron Technology
• 1.3 GHz to 4 GHz and higher
• 1 V to 1.8 V core voltage
• Dissipates lots of heat (up to 100 W)
• Supports multi-processing
![Page 46: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/46.jpg)
Pentium 4
46
![Page 47: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/47.jpg)
47
Heat Sink
Heat Sink
FanFan
![Page 48: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/48.jpg)
48
CeleronCeleron
Menu
![Page 49: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/49.jpg)
Celeron• Low end processor
• It has no cover
• No heat sink
• Originally it has no L2 cache
• It is intended to compete to AMD and Cyrix for low end processor market.
• The performance is near with the pentium.
49
![Page 50: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/50.jpg)
50
Pentium M®
• The Pentium M uses the core processor from the Pentium III with the interface bus of a Pentium 4.
• M-mobile processor
• Operates at very low power levels.
• Produce less heat.
• 32 bit processor
• Uses the X86 instruction sets
• Run faster than Pentium 4
![Page 51: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/51.jpg)
51
Pentium D®
• Pentium D begins to concentrate on power efficiency and the number of cores in the processor instead of raw clock speed.
• D - Dual core processor
• Bus speeds exceed 500MHz while clock speeds are between 2.66 GHz and 3.73GHz
![Page 52: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/52.jpg)
52
Itanium
• Entirely new design.
• Primarily for servers and other expensive and high-performance systems.
• Runs several processes in parallel.
• 64 bit processor
• Run only on g4 bit operating system
• Run several processes in parallel
![Page 53: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/53.jpg)
53
Core Duo• The Core Duo has many internal
performance and efficiency improvements over the Pentium D.
• Processor is identical with Pentium D
• It has better memory bus management and new instructions available to the operating system and application.
• 32 bit micro architecture CPUs for laptops
• 64 bit micro architecture for desktop computing.
![Page 54: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/54.jpg)
54
Core 2 Duo• Core 2 Duo provides:
– Better operational efficiencies between its two cores.
– Adds over two megabytes of cache RAM to each of the core processors.
– Operates at half the power of the Pentium D.
– Popular for portable computers because they provide a huge performance increase at virtually no power increase of loss in battery life.
![Page 55: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/55.jpg)
55
![Page 56: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/56.jpg)
56
Core 2 Quad• The Core 2 Duo products
contain two separate Core 2 dies.
• Effectively doubles the processor capabilities, it also doubles the power consumed and the heat that is radiated by the CPU.
![Page 57: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/57.jpg)
57
![Page 58: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/58.jpg)
Core i3 series• Remain dual core
• Main feature of i3Turbo Boostdynamic over clocking
• Lack of technology virtualization
• Lack of encryption acceleration technology
• Allow hyperthreading
- This is Intel's logic-core duplication technology which allows each physical core to be used as two logic cores.
- The result of this is that Windows will display a dual-core Core i3 processor as if it were a quad-core.
58
![Page 59: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/59.jpg)
59
![Page 60: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/60.jpg)
• Core i3 processors have their integrated graphics processor restricted to a maximum clock speed of 1100 MHz, and all Core i3 processors have the 2000 series IGP, which is restricted to 6 execution cores.
60
![Page 61: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/61.jpg)
Core i5 Series• Core i5 is split into two
- dual core
- quad core
• Turbo Boost
• and they all lack Hyper-Threading.
• substantial difference between the Core i5 options is the clock speed, which ranges from 2.8 GHz to 3.3 GHz.
• dual-core Core i5 called the 2390T.
61
![Page 62: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/62.jpg)
62
![Page 63: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/63.jpg)
Core i7 series• These processors are virtually identical to the Core
i5.
• 100 MHz higher base clock speed,
• real feature difference is the addition of hyper-threading
• which means that the processor will appear as an 8-core processor in Windows.
• can result in a substantial boost if you're using a program that is able to take advantage of 8 threads.
• IGP on Core i7 processors can also reach a higher maximum clock speed of 1350 MHz.
63
![Page 64: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/64.jpg)
64
![Page 65: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/65.jpg)
65
AMD Processors
AMD’s K6-2AMD’s K6-2
![Page 66: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/66.jpg)
66
Multicore, Multithreading,
and Multitasking
![Page 67: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/67.jpg)
67
Objectives
• Explain the difference between multitasking and multiprocessing.
• Explain the difference between multithreading and multiprocessing.
• List several disadvantages of achieving multiprocessing by using multiple MPU packages.
• Explain the difference between cooperative and preemptive multitasking.
![Page 68: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/68.jpg)
68
• Explain the difference between symmetrical and asymmetrical multiprocessing.
• Discuss the internal structure of the Pentium D, Core 2 Duo, and Core 2 Quad microprocessors.
![Page 69: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/69.jpg)
69
“Multi” — More than what?
• Multitasking
• Multithreaded
• Multiprocessing
• Multicore
![Page 70: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/70.jpg)
70
Multitasking• The apparent simultaneous execution of
two or more programs by a single processor.
• What appears to be simultaneous execution is actually concurrent execution.
• Dates back to the earlier days of Windows.
![Page 71: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/71.jpg)
71
Think of Multitasking this way.
Program 1
Program 2
Processor
![Page 72: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/72.jpg)
72
Two types of Multitasking
• Cooperative
• Preemptive
![Page 73: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/73.jpg)
73
Cooperative Multitasking
Program 1
Program 2
ProcessorThe Applications control the switching.
![Page 74: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/74.jpg)
74
Preemptive Multitasking
Program 1
Program 2
Processor
The operating system controls the switching.
![Page 75: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/75.jpg)
75
Multitasking
Program 1
Program 2
Processor
![Page 76: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/76.jpg)
76
• A single Program or Application can be written so that it can be executed as two or more “threads” of instructions.
• A “thread” can be thought of as a stand alone task.
• For example, in a video processing application the video information could be processed as one thread; the audio as another.
Multithreaded
![Page 77: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/77.jpg)
77
Think of Multithreading this way.
Thread 1
Thread 2
ProcessorApplication
![Page 78: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/78.jpg)
78
Multithreading a Video Processing Application
Thread 1(Video)
Thread 2Audio
Processor
Application
VideoVideo Audio
![Page 79: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/79.jpg)
79
Threads
• Threads occur within a single application.
• The application must be written for Multithreading.
• Not all applications lend themselves to this form of parallelization.
• The processor must support multithreading.
• Not all processors do.
![Page 80: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/80.jpg)
80
Pentium 4 was optimized for multithreading.
LogicalCore 1
Pentium 4
LogicalCore 2
Thread 1
Thread 2
Thread 1 Thread 2 Thread 1
![Page 81: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/81.jpg)
81
Pentium D
Pentium 4
Pentium 4
![Page 82: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/82.jpg)
82
Multiprocessing• A single computer runs two (or more)
separate programs at the same time.
• Servers and workstations achieved this by using multiple processors in separate packages.
• PCs achieve this by using multiple cores in a single package.
![Page 83: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/83.jpg)
83
Types of Multiprocessing (MP)
• Symmetrical MP—The operating system assigns tasks as it sees fit.
• Asymmetrical MP—The program designer chooses the processor at the time the program is written.
![Page 84: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/84.jpg)
84
Dual Package versus dual core.
CPU IC 2
Sockets 2
Heat sinks 2
Fans 2
Fan cable 2
Board Space X2
Dual Packages
CPU IC 1
Sockets 1
Heat sinks 1
Fans 1
Fan cable 1
Board space X1
Dual Core
![Page 85: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/85.jpg)
85
Enter the Core 2 Duo• Because the Pentium D was made up of
two Pentium 4 cores, it was not optimized for dual processing.
• Intel redesigned the architecture of the CPU, optimizing it for multiprocessing.
• The result is called “Core” architecture. Apparently, this is a new trade name that replaces “Pentium”.
• One of the early processors to use this new architecture is the Core 2 Duo.
![Page 86: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/86.jpg)
86
Core 2 Design
![Page 87: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/87.jpg)
87
The Core 2 Extreme
• Fastest of the Core 2 Duo series
• Allows “over-clocking”, a technique that allows users to run the CPU at a higher clock speed than the manufacture recommends.
![Page 88: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/88.jpg)
88
The Core 2 Quad
First Core 2 Die Second Core 2 Die
![Page 89: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/89.jpg)
89
The Core 2 Quad
Single Core 2 Quad Die
![Page 90: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/90.jpg)
90
• Explain the difference between multitasking and multiprocessing.
• Explain the difference between multithreading and multiprocessing.
• List several disadvantages of achieving multiprocessing by using multiple MPU packages.
• Explain the difference between cooperative and preemptive multitasking.
![Page 91: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/91.jpg)
91
• Explain the difference between symmetrical and asymmetrical multiprocessing.
• Discuss the internal structure of the Pentium D, Core 2 Duo, and Core 2 Quad microprocessors.
![Page 92: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/92.jpg)
92
Microcontrollers(Embedded Microprocessors)
![Page 93: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/93.jpg)
93
Microcontroller versus general-purpose microprocessors
• General-purpose microprocessors are processors like the Intel’s x86 family (8086, 80286, 80386, 80486, and the Pentium) or the Motorola’s 680x0 family (68000, 68010, 68020, 69030, 68040, etc. These microprocessor do not contain A RAM, ROM nor I/O ports on the chips themselves. They are general-purpose processors.
![Page 94: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/94.jpg)
94
• They have a CPU, RAM, ROM, I/O Ports and a Timer(s) on a single chip. These items are in embedded on the chip.
MICROCONTROLLERS
![Page 95: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/95.jpg)
95
Microcontrollers for embedded systems
• Microprocessor and microcontrollers are widely used in embedded systems products. An embedded project uses a microprocessor (or microcontroller) to do one task only.
• Example – A printer is an embedded system that does one task, get data and print it.
![Page 96: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/96.jpg)
96
EMBEDDED PRODUCTS USING
MICROCONTROLLERS
• Home – Appliances, Intercom, Telephone, Security systems, Garage door openers, Answering machine, Fax machines, TVs, VCRs, Camcorders, Remote controls, Video games, Cellular phones, Musical instruments, Sewing Machines, Lighting control, Paging Camera, Pinball Machine, Toys…etc.
![Page 97: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/97.jpg)
• Office – Computers, Security systems, Fax machines, Microwaves, Copiers, Laser printers, Color printers, and Paging.
• Automobiles – Trip computer, Engine control, Air Bag, ABS, Cellular Phone, Instrumentation, Security system Keyless entry, Climate control.
97
![Page 98: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/98.jpg)
• Very Often the terms embedded processor and microcontroller are used interchangeably.
• Most critical needs of an embedded system is to decrease power consumption and space.
98
![Page 99: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/99.jpg)
• Most default microprocessor manufacturers are targeting their microprocessors for the high-end of the embedded market by integrating more functions into the CPU chip.
99
![Page 100: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/100.jpg)
CHOOSING A MICROCONTROLLER
• There are four (4) major 8 bit microcontrollers. They are:
Freescale’s 6811
Intel’s 8051
Zilog’s Z8
PIC 16X from Microchip Technology.
100
![Page 101: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/101.jpg)
• Each of the microcontrollers have an unique instruction and register set.
• They are not compatible with each other.
• There some 16 bit and 32 bit microcontroller made by various chip makers.
101
![Page 102: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/102.jpg)
Criteria for Choosing a Microcontroller
• There are three (3) criteria's for a microcontroller.
• 1. Meeting the computing needs of the task at hand efficiently and cost effectively.
• 2. Availability of software development tools such as compliers
102
![Page 103: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/103.jpg)
• Assemblers, and debuggers.
• 3. Wide availability and reliable sources of the microcontroller.
103
![Page 104: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/104.jpg)
First Criteria – Computing Needs
• 8 bit, 16 bit or 32 bit microcontroller
• Speed of chip
• Packaging – 40 DIP or Quad flat Package (QFP)
• Power Consumption – critical for battery-powered products
104
![Page 105: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/105.jpg)
First Criteria – Computing Needs
• Amount of RAM and ROM on chip.
• Number of I/O pins and timer on chip.
• Ease of upgrading to higher-performance or lower power-consumption versions.
• Cost per unit – Example 50 cent per unit when purchased 100,000 units at a time.
105
![Page 106: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/106.jpg)
Second Criteria-Ease of Developing Products
• Availability of an assembler, debugger, Code efficient C Language complier, emulator, technical support, and in - house and outside expertise.
106
![Page 107: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/107.jpg)
Third Criteria – Availability in Need Quantities Now and in the
Future
• Now Intel’s 8051 8 bit microcontroller family has the largest number of diversified (Microcontrollers) suppliers.
• There presently several companies that have licenses to produce the 8051 microprocessor. Some are:
107
![Page 108: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/108.jpg)
• Company
• Intel www.intel.com/design/mcs51
• Atmel www.atmel.com
• Philips/Signetics www.semiconductors.
• Philips.com
• Infineon www.infinecon.com
• Dallas Semi/Maxim-www.maxim-ic
108
![Page 109: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/109.jpg)
8051 Microcontroller Family
• Consist of three (3) different chips:
• 8051
• 8052
• 8032
109
![Page 110: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/110.jpg)
8051 Microcontroller
• Introduced by Intel in 1981.
• The chip included 128 bytes of RAM, 4K bytes of on-chip ROM, two timers. One serial port, four 8 bit wide ports.
• It is referred to as a “system on a chip”.
• It is a 8 bit chip.
110
![Page 111: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/111.jpg)
8052 Microcontroller
• It has all of the standards features of the 8051 as well as an extra 128 bytes of RAM and a extra timer.
• In other words the 8052 has 256 bytes of RAM, and three (3) timers. It also has 8K bytes of on-chip ROM instead of 4K.
111
![Page 112: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/112.jpg)
8031 Microcontroller
• Often referred to as the ROM less 8051, since it does not any on-chip ROM.
• External ROM will have to be used with this chip through two of the on-chip (8 bit) ports.
112
![Page 113: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/113.jpg)
Various 8051 Microcontrollers
• 8051 is the most popular chip, but it comes in different memory types, so the part numbers will not be “8051.”
• Memory Types: UV-EPROM, FLASH AND NV-RAM.
113
![Page 114: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/114.jpg)
8751 Microcontroller
• Has only 4K bytes of on-chip UV-EPROM.
• Requires access to PROM burner and has to be erased prior to repro-gramming. Can be erased in seconds, but programming needs 20 or more minutes to program.
114
![Page 115: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/115.jpg)
DS89C4X0 Microcontroller
• The Dallas Semiconductor/Maxim version of the 8052.
• Has flash memory, comes with on-chip loader that allows the program to be loaded in to the flash ROM through the serial port of a IBM PC.
115
![Page 116: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/116.jpg)
DS5000 Microcontroller
• The Dallas Semiconductor NV-RAM version of the 8051.
• Advantage – has the ability to change the ROM contents one byte at a time.
• Has a loader, allowing it to be loaded through the PC’s port.
116
![Page 117: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/117.jpg)
AT89C51 from Atmel Corp
• Atmel has a wide selection of 8051s.
• AT89C51, 4K ROM, 128 Byte RAM, 2 Timers, 6 Interrupts, 32 I/O pins.
• AT89LV51, 4K ROM, 128 Byte RAM,32 I/O pins.
• AT89C1051, 1K ROM, 64 Byte RAM, 1 Timer, 15 I/O pins.
117
![Page 118: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/118.jpg)
• AT89C2051, 2K ROM, 128 RAM, 2 Timers, 15 I/O pines.
• AT89C52, 8K ROM, 128 Byte RAM, 3 Timers, 32 I/O pins.
• AT89LV52, 8K ROM, 128 Byte RAM, 3 Timers, 32 I/O pins.
118
![Page 119: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/119.jpg)
OTP Version of the 8051Microcontroller
• OTP (One Time Programmable) versions of the 8051 is available from different sources.
• Flash and NV-RAM versions typically used in the product development.
• OTP version is used for mass production, since it is cheaper per unit.
119
![Page 120: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/120.jpg)
8051 family from Philips
• Have the largest selections of 8051 microcontrollers.
• Features includes: A-toD and D-A-C converters, extended I/O ports and both OTP and Flash.
120
![Page 121: Microprocessors and controllers](https://reader038.fdocuments.net/reader038/viewer/2022102816/5590bfc71a28ab21118b4624/html5/thumbnails/121.jpg)
SUMMARY
121