MPMC - Module-1
MPMC - Module-1
MPMC - Module-1
(ECE3004)
• High level language and low level languages, Software and hardware development
tools: compiler, assembler, locator, debugger, logic analyzer, in-circuit emulator and
etc.
8051 Microcontroller:
• Intel MCS - 51family features – 8051 - organization and architecture, registers
Required Software:
1. EMU8086
2. Keil
3. Proteus
Applications:
1. Traffic Light
2. Public Electronics Display Boards
3. Electronics Household Appliances
4. Industrial Controls, etc. ….
8
Microprocessor (𝝁P)
Microprocessor is a controlling unit of a microcomputer,
fabricated on a small silicon chip capable of performing
Arithmetic Logical Operations and communicating with
other devices connected to it. 𝝁P Memory
I/O
Input Output
(Binary) 𝝁P (Binary)
Fig.: Computing System
9
Number System
In a digital system, the system can understand only the optional number system. In these systems,
digits symbols are used to represent different values, depending on the index from which it settled
in the number system.
In simple terms, for representing the information, we use the number system in the digital system.
(_)𝟐 (_)𝟏𝟎
(_)𝟖 (_)𝟏𝟔
10
Decimal Number System
The decimal numbers are used in our day to day life.
The decimal number system contains ten digits from 0 to 9 (base 10).
The successive place value or position, left to the decimal point holds units, tens, hundreds,
thousands, and so on.
11
The position in the decimal number system specifies the power of the base (10). The 0 is the
minimum value of the digit, and 9 is the maximum value of the digit.
Examples:
(2541)10 = (2×103) + (5×102) + (4×101) + (1×100)
Binary Number System
It holds only two values, i.e., either 0 or 1.
The LSB of the number represents the 0 power of the base(2), e.g. 20 .
Examples:
(10100)2, (11011)2, (11001)2, (000101)2, (011010)2.
12
Octal Number System
An octal number system carries eight digits starting from 0, 1, 2, 3, 4, 5, 6, and 7. It is also
known as the base 2 number system.
Examples:
(273)8, (5644)8, (0.5365)8, (1123)8, (1223)8.
13
Hexadecimal Number System
It has ten digits from 0 to 9 and 6 letters from A to F.
The letters from A to F defines numbers from 10 to 15.
It is also known as the base 16 number system.
The LSB of the number represents the 0 power of the base(16). Example: 160
The MSB of the number represents the 𝑥 − 1 power of the base(16), e.g. 16𝑥−1 ,
where x represents the last MSB.
Examples:
(FAC2)16, (564)16, (0ABD5)16, (1123)16, (11F3)16.
14
08-Nov-22 MPMC - Module-1 15
Binary to Decimal Conversion
(10110.001)2=(1×24)+(0×23)+(1×22)+(1×21)+(0×20)+(0×2-1)+(0×2-2)+(1×2-3)
=(1×16)+(0×8)+(1×4)+(1×2)+(0×1)+(0×1⁄2)+(0×1⁄4)+(1×1⁄8)
=16+0+4+2+0+0+0+0.125
(10110.001)2=(22.125 )10
1. Firstly, we make pairs of three bits on both sides of the binary point.
On the right side of the binary point, the last pair has only one bit. To make it a complete pair
of three bits, we added two zeros on the extreme side.
(111110101011.0011)2=(7653.14)8
1. Firstly, we make pairs of four bits on both sides of the binary point.
On the left side of the binary point, the first pair has three bits. To make it a complete pair of
four bits, add one zero on the extreme side.
(011110101011.0011)2=(7AB.3)16
152/8 19 0
Now, perform the multiplication of 0.25 and
successive fraction with base 8.
19/8 2 3
Operation Result carry
2/8 0 2
0.25×8 __.00 2
(152)10=(230)8
(0.25)10=(.2)8
(152.25)10=(230.2)8
(152)10=(98)16
Step 2:
Now, perform the multiplication of 0.25 and Operation Result Carry
successive fraction with base 16.
0.25×16 __.00 4
(0.25)10=(.4)16
(152.25)10=(98.4)16
We multiply each digit of 152.25 with its respective positional weight, and last we add the products
of all the bits with its weight.
(152.25)8=(1×82)+(5×81)+(2×80)+(2×8-1)+(5×8-2)
(152.25)8=64+40+2+(2×1⁄8)+(5×1⁄64)
(152.25)8=64+40+2+0.25+0.078125
(152.25)8=106.328125
(152.25)8=(001101010.010101)2
is (1010100101010.00100101)2
24 A8D2
× 3A ÷3
------------- -------------
• It is also a logical circuit that responds to and process the basic instructions that drives a computer
Input Output
(Binary) 𝝁P (Binary)
Complexity of Instruction:
• RISC - Reduced instruction set microprocessor /computer
• CISC - Complex instruction set microprocessor /computer
In Harvard architecture, the CPU is connected with In Von-Neumann architecture, there is no separate
Arrangement both the data memory (RAM) and program memory data and program memory. Instead, a single memory
(ROM), separately. connection is given to the CPU.
Space requirements Harvard architecture requires more space. Von-Neumann Architecture requires less space.
• Compiler is used to translate a high level language to assembly level language because the
length of code is relatively short and an extra RAM is used to store the instructions.
• Tasks includes downloading, uploading and recalling data from memory, complex
mathematical calculation.
• Processor are made according to function, to carry out small things in specific commands.
• Processors complete commands at faster rate, require only one clock cycle to implement a
result at uniform execution time.
• To access the memory location LOAD and STORE instructions are used.
RISC CISC
Focus on software Focus on hardware
Co-processor
Input/output Processor
• It is a specially designed microprocessor having a local memory of its own, which is used to
control I/O devices with minimum CPU involvement.
Example −
• DMA (direct Memory Access) controller
• Keyboard/mouse controller
2. Control Applications:
If the application program changes frequently and is controlled by the user and can change
the program that is to be executed, then a great deal of RAM memory is required.
Ex: Process control computers, which may be used to monitor and control a number of
different processes.
2. Word Length: Number of bits that a processor can execute (Process) at a time.
The clock speed or the frequency at which a microprocessor operates are mostly depends on
the semiconductor manufacturing technology.
(2-types of semiconductor technology: NMOS and CMOS)
• Parallel processing
• Pipelining technique
• Wider buses
• Number of transistors
• Number of Cores
• Cache
• RAM
• GPU
Control Unit
Registers
Timer Interrupt
Serial
Communication Watchdog Timer
Control Unit
Ports
• Compact size
• Easy maintenance
• Flexible
• Primary memory includes ROM and RAM, and is located close to the CPU on the computer motherboard, enabling the
CPU to read data from primary memory very quickly indeed. It is used to store data that the CPU needs imminently so
that it does not have to wait for it to be delivered.
• Secondary memory by contrast, is usually physically located within a separate storage device, such as a hard disk drive
or solid state drive (SSD), which is connected to the computer system either directly or over a network. The cost per
gigabyte of secondary memory is much lower, but the read and write speeds are significantly slower.
08-Nov-22 MPMC - Module-1 68
08-Nov-22 MPMC - Module-1 69
ROM – Read only memory
• PROM stands for Programmable Read Only Memory. It is a computer memory chip, and it is possible to
program it once after creation. After programming the PROM, the information we write to it becomes
permanent. Therefore, we cannot erase or delete that written data. The PROM chip was commonly
used in earlier computers’ BIOS systems.
• EPROM stands for Erasable Programmable Read Only Memory. We can erase and reprogram an EPROM
without replacing it. It is possible to erase and write to it by exposing the memory chip to ultraviolet
light. EPROM is used more commonly than PROM because it allows the manufacturers to modify or
reprogram the chip.
• EEPROM stands for Electrically Erasable Programmable Read-Only Memory. It is a memory chip that we
can erase and reprogram using electrical charge. It consists of a collection of floating gate transistors.
The flash memory is a type of EEPROM which has a higher density and lower number of write cycles.
Hardware Tools:
• In Circuit Emulator (ICE)
• Logic Analyzer
Reads the source file of your program from the disk, then determines the displacement of
named data items, the offset of labels, etc. and puts this information in a symbol table.
Produces the binary code for each instruction and inserts the offsets, etc. that it calculated
during the first pass.
The assembler generates 2 files on the floppy disk or hard disk. The first file is called object file
(.obj).
The second file generated by assembler is called the assembler list file and is given extension
(.lst).
- The linker produces a link file which contains the binary codes for all the combined
modules.
- linker also produces a link map file which contains the address information about
the linked files (.exe).
• Widely used to develop and debug complex digital electronic logic circuits
• Displays traces of multiple logic channels and reveal the circuit operation.
• Displays relative timing of a large number of signals, enabling traces of logic signals to be seen
in such a way that the operation of several lines in a digital circuit can be monitored and
investigated.
• Have much greater levels of flexibility and processing power when connected with computer.
• Connected to a PC via USB , but Ethernet is also widely used because of its high speed.
• Uses the processing power of the PC combined with its display to reduce the cost of
the overall system.
08-Nov-22 MPMC - Module-1 80
In Circuit Emulation (ICE)
• ICE is the use of a hardware device or in-circuit emulator used to debug the software of
an embedded system.
• It operates by using a processor with the additional ability to support debugging operations, as
well as to carry out the main function of the system.
• Particularly for older systems, with limited processors, this usually involved replacing the
processor temporarily with a hardware emulator: a more powerful although more expensive
version.
• It was historically in the form of bond-out processor which has many internal signals brought out
for the purpose of debugging. These signals provide information about the state of the
processor.
08-Nov-22 MPMC - Module-1 81
08-Nov-22 MPMC - Module-1 82
Evolution of Microprocessor
4-Bit Microprocessors
8-Bit Microprocessors
16-Bit Microprocessors
32-Bit Microprocessors
64-Bit Microprocessors
• In 1968, Robert Noyce, Gordan Moore, Andrew Grove resigned from Fairchild
Semiconductors.
4
Intel 4004
• Year of introduction 1971, the first microprocessor
by Intel.
• 4-bit microprocessor
• Clock speed was 740KHz.
• 4 KB main memory
• 45 instructions
• It had 2,300 transistors (PMOS technology)
• It could execute around 60,000 instructions per
second.
• It was first programmable device which was used in
calculators
08-Nov-22 MPMC - Module-1 87
Intel 4040
• Introduced in 1974.
7
Intel 8008
• Year of introduction 1972
• 16 KB main memory
• 48 instructions
• PMOS technology
• 64 KB main memory
11
Intel 8086
• Introduced in 1978
• First 16-bit microprocessors
• Its clock speed is 4.77 MHz, 8 MHz and 10 MHz,
depending on the version.
• Width of Data bus is 16 bit and address bus is 20-bit.
• Can access 1 MB main memory
• It had 29,000 transistors.
• It had 22,000 instructions
• 6 byte instruction cache for 8086
• It had Multiply and Divide instructions.
16
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.
• Clock speed varied from 16 MHz to 33 MHz depending upon
the various versions.
• Different versions:
• 80386 DX
• 80386 SX
• 80386 SL 17
• 80486 DX
• 80486 SX
• 80486 DX2
• 80486 SL
• 80486 DX4
18
• 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.
23
INTEL PENTIUM IV
• Introduced in 2000.
24
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.
25
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
• Intel Core 2 Quad
• Intel Core 2 Extreme
28
INTEL CORE I3
• Introduced in 2010.
• It is a 64-bit µP.
• It has 2 physical cores.
• Its clock speed is from 2.93 GHz
to 3.33 GHz.
• It has 781 million transistors.
• It has 64 KB of L1 cache per
core, 512 KB of L2 cache and 4
MB of L3 cache.
31
INTEL CORE I5
• Introduced in 2009.
• It is a 64-bit µP.
• It has 4 physical cores.
• Its clock speed is from 2.40 GHz
to 3.60 GHz.
• It has 781 million transistors.
• It has 64 KB of L1 cache per
core, 256 KB of L2 cache and 8
MB of L3 cache.
30
INTEL CORE I7
• Introduced in 2008.
• It is a 64-bit µP.
• It has 4 physical cores.
• Its clock speed is from 2.66
GHz to 3.33 GHz.
• It has 230 billion transistors.
• It has 64 KB of L1 cache per
core, 256 KB of L2 cache
and 8 MB of L3 cache.
29
INTEL CORE I9
• Introduced in 2017.
• It is a 64-bit µP.
• It has 10 physical cores.
• Its clock speed is from 3.33 GHz
to 5.2 GHz.
• It has 430 billion transistors.
• It has 64 KB of L1 cache per
core, 1 MB of L2 cache per
core and 13.75 MB of L3
cache.
Other Microprocessors & Comparison
2. Why still the low-level processors (4-Bit and 8-Bit) are popular?