Microprocessor By, Er. Swapnil V. Kaware
Microprocessor By, Er. Swapnil V. Kaware
Microprocessor By, Er. Swapnil V. Kaware
Microprocessors
For More Contents, do subscribe to my channel on
you tube as,
”Tech_Guru Swapnil Kaware”
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)
Advanced Microprocessor
Presented By,
Er. Swapnil V. Kaware,
(Assistant Professor)
B.E.(Electronics), M.E. (Electronics)
svkaware@yahoo.co.in
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in) 2
Salient Features
(1). 80386 Microprocessor Introduced in 1985 by Intel Corporation.
7
Register Organization Of 80386
(1). The 80386 has eight 32 - bit general purpose registers which may
be used as either 8 bit or 16 bit registers.
(4). The 16 bit registers BP, SP, SI and DI in 8086 are now available
with their extended size of 32 bit and are names as EBP,ESP,ESI
and EDI.
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in) 8
Register Organization Of 80386
(6). BP, SP, SI, DI represents the lower 16 bit of their 32 bit
counterparts, and can be used as independent 16 bit
registers.
(7). The CS and SS are the code and the stack segment
registers respectively, while DS, ES, FS, GS are 4 data
segment registers.
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in) 9
Flag Register of 80386 Microprocessor
• The Flag register of 80386 is a 32 bit register. Out of the 32 bits, Intel has
reserved bits D18 to D31, D5 and D3, while D1 is always set at 1.
• Two extra new flags are added to the 80286 flag to derive the flag register of
80386. They are VM and RF flags.
10
Flag Register of 80386 Microprocessor
(3). RF:- Resume Flag This flag is used with the debug
register break points. It is checked at the starting of
every instruction cycle. The RF is automatically reset
after successful execution of every instruction.
32 0
Test Control TR6
Test Status TR7
18
Debug and Test Registers:
• Intel has provide a set of 8 debug registers for hardware
debugging.
• Out of these eight registers DR0 to DR7, two registers DR4 and
DR5 are Intel reserved.
• Two more test register are provided by 80386 for page caching
namely test control and test status register.
19
Data Types of 80386
(1). Bit.
(4). Signed Byte- Signed byte data. Sign of the operand depends
upon its most significant bit. If it is 0, then the number is
positive. else it is negative. Range is from -128 to 127.
(2). In the real mode, 80386 works as a faster 8086 with 32-bit
registers and data types.
(3). In real mode, the default operand size is 16 bit but 32- bit
operands and addressing modes may be used.
25
26
Protected Mode of 80386
(1). All the capabilities of 80386 are available for utilization
in its protected mode of operation.
29
• GDT
(1). Maintains list of Most Segments
(2). It’s a general Purpose table of descriptors.
(4). 48-bit register.
• IDT
(1). Maintains list of Interrupt service routines.
(2). 48-bit register.
• LDT
(1) Optional.
(2) Extends range of GDT.
(3) Is allocated to each task when multitasking is enabled.
(4). 16-bit register.
30
Segment Descriptor Format
(1). A ( Accessed) : Processor automatically sets this bit whenever a
memory reference is made using the defined segment.
(2). DPL : Indicates the level of privilege associated with the memory
space that descriptor defines. DPL0 is highest while DPL3 is lowest.
(3). S ( System ) : If clear indicates that this is system segment
descriptor. If set non-system.
31
Segment Descriptor Format
(4). P ( Present): If clear, the address range that this descriptor defines
is considered to be temporarily not present in physical memory
space.
(5). U ( User): Undefined and ignored by 80386,but user can use it.
(6). X : Reserved
(2). The segmentation scheme may divide the physical memory into a
variable size segments but the paging divides the memory into a
fixed size pages.
(4). The pages are just fixed size portions of the program module or
data. 34
Paging
(5). The advantage of paging scheme is that the complete
segment of a task need not be in the physical memory at
any time.
(8). Whenever the other pages of task are required for execution,
they may be fetched from the secondary storage.
(9). The previous page which are executed, need not be available in
the memory, and hence the space occupied by them may be
relinquished for other tasks.
36
37
Paging Unit
(1). The paging unit of 80386 uses a two level table mechanism to convert a
linear address provided by segmentation unit into physical addresses.
(2). The paging unit converts the complete map of a task into pages, each of
size 4K.
(3). The task is further handled in terms of its page, rather than segments.
(4). The paging unit handles every task in terms of three components
namely page directory, page tables and page itself.
38
Page Directory
(7). The User / Supervisor (U/S) bit and read/write bit are
used to provide protection.
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in) 40
Page Tables
43
Virtual 8086 Mode
(7). Paging unit may not be necessarily enable in virtual mode, but
may be needed to run the 8086 programs which require more
than 1Mbyts of memory for memory management function.
(8). In virtual mode, the paging unit allows only 256 pages, each of
4Kbytes size.
44
80486 Microprocessor
(1). Introduced in 1989.
(2). Can execute around 40 million instructions per second.
(3). On chip floating point unit for faster execution of
complex instructions.
(4). Having operating frequency of 16MHz to 50MHz.
(5). Total 168 pins.
(6). Paging & Virtual memory concept.
(7). Multiprocessor support.
(8). Data bus is of 32 bits.
31 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
E
F RESERVED FOR
L INTEL AC VM RF 0 NT IOPL OF DF IF TF SF ZF 0 AF 0 PF 1 CF
A
G
50
Register Organization of Pentium
(80586) Processor
• Four 32-bit registers can be used as
• Four 32-bit register (EAX, EBX, ECX, EDX)
• Four 16-bit register (AX, BX, CX, DX)
• Eight 8-bit register (AH, AL, BH, BL, CH, CL, DH, DL)
• Some registers have special use ECX for count in loop instructions,
51
Register Organization of Pentium
Processor
52
Flag Register of Pentium Processor
53
Flag Register of Pentium Processor
(1). ID:- The identification flag is used lb test for the CPUID
instruction. If a program can set and clear the ID flag, the processor
supports the CPUID instruction.
(3). VIF :- Virtual interrupt is the image of the virtual interrupt flag IF
used with VIP.
”Tech_Guru Swapnil
Kaware”
(Thanks For Watching)
Microprocessor Notes by Er. Swapnil V. Kaware (svkaware@yahoo.co.in)