Beruflich Dokumente
Kultur Dokumente
1. Basics of Microprocessor
8 Marks
Syllabus:
1.1 Evolution of Microprocessor and types
1.2 8085 Microprocessor,
Salient features, Pin description, Architecture of 8085 - Functional Block diagram, Register
organization
8 bit microprocessor
Clock rate: 5 MHz
Addressable memory: 64 KB
74 instructions
No. of registers: 6 registers of 8 bit each
Single power supply: +5V
Features of 8086:
Introduced: 1978
16 bit microprocessor
Clock rate: 5 MHz, 8 MHz, 10 MHz
Addressable memory: 1 MB
Memory segmentation
Instruction pipelining
Single power supply: +5V
Features of 80286:
Introduced: 1982
16 bit microprocessor
Clock rate: 6 MHz, 8 MHz, 12.5 MHz, 16 MHz, 20 MHz, 25 MHz
Addressable memory: 16 MB
Virtual memory: 1 GB
Bus width: 16 bit data, 24 bit address
First microprocessor with memory protection hardware to support multitasking
Features of 80386 DX:
Introduced: 1985
32 bit microprocessor
Clock rate: 16 MHz, 20 MHz, 25 MHz, 33 MHz
Addressable memory: 4 GB
Virtual memory: 64 TB
Bus width: 32 bit data, 32 bit address
First 32 bit microprocessor with 3 operating modes (Real, PVAM and Virtual 8086)
Features of 80486 DX:
Introduced: 1989
32 bit microprocessor
A8 A15: These lines are used to carry higher order address signals of 16 bit address.
ALE (Address Latch Enable): This is an output signal from microprocessor. It occurs during the first
clock cycle of a machine state. It is used to separate address signals from data signals
on lines AD0 to AD7. This signal is connected to address latches in the system. When it
is high, it indicates address is being transferred on lines AD0 AD7.
IO/ : It is an output signal from 8085. When it is high, it indicates microprocessor is perfor-
ming I/O related operation. When it is low, it indicates microprocessor is performing
memory related operation.
X1 1 40 VCC
X2 2 39 HOLD
SID 5 36
TRAP 6 35 READY
RST 6.5 8 33 S1
RST 5.5 9 32
INTR 10 31
11 30 ALE
AD0 12 29 S0
AD1 13 28 A15
AD2 14 27 A14
AD3 15 26 A13
AD4 16 25 A12
AD5 17 24 A11
AD6 18 23 A10
AD7 19 22 A9
VSS 20 21 A8
S1, S0 (Status signals): These are status signals Along with IO/M, these signals give the status of
operation performed by 8085. following table shows status of different operations:
------------------------------------------------------------------------------------------------------------
IO/ S0 S1 Operation
------------------------------------------------------------------------------------------------------------
0 0 0 HALT
0 0 1 Memory write with =0
0 1 0 Memory read with =0
0 1 1 Opcode fetch from memory with =0
1 0 0
1 0 1 I/O write with =0
1 1 0 I/O read with =0
1 1 1 Interrupt Acknowledge with =0
------------------------------------------------------------------------------------------------------------
(Read): This is active LOW Read control signal. When this signal is LOW, this indicates
microprocessor is going to read instruction or data. Instructions are read from memory
while data is read from memory or input devices.
(Write): This is active LOW Write control signal. When this signal is LOW, this indicates
microprocessor is going to write data to memory or output device.
INTR (Interrupt Request): This signal is used to send interrupt request to microprocessor. In
response of this signal, microprocessor generates (Interrupt Acknowledge) signal
and executes interrupt service routine.
RST 7.5, RST 6.5, RST 5.5 (Restart Interrupts): These are vectored interrupts and transfer the
program control to specific memory locations. These have higher priority than INTR.
READY: If Ready is HIGH during a read or write cycle, it indicates that the memory or
peripheral is ready to send or receive data. If Ready is LOW, the CPU will go in wait
state till the memory or peripheral is ready and Ready is made LOW.
: When this signal goes LOW, the microprocessor is reset. The PC (Program Counter)
register has value 0000H and buses are tri-stated (i.e. neither active LOW nor active
HIGH state).
RESET OUT: This signal indicates that microprocessor is being reset. This signal can be used to reset
other devices in the system.
SID & SOD (Serial Input Data and Serial Output Data): These signals are used in serial data
transmission.
X1, X2: A crystal or (LC, RC circuit) is connected to these two pins. The frequency is internally
divided by 2, therefore, to operate a system at 3 MHz, the crystal should have a
frequency of 6 MHz.
CLK OUT: This signal can be used as the system clock for other devices in the system.
Architecture of 8085:
Following figure shows the internal architecture of 8085. It includes the ALU, Timing and
Control unit, Instruction register and decoder, Register array, Interrupt control and Serial I/O control.
5) Carry Flag (C): If an arithmetic operation generates carry, the carry flag is set. For
subtraction operation this flag works as borrow flag.
Following figure shows flag register.
D7 D6 D5 D4 D3 D2 D1 D0
S Z X AC X P X C
Register array:
There are 3 types of registers:
1) Temporary registers
2) General purpose registers
3) Special purpose registers
1) Temporary registers: 8085 provides two temporary registers W & Z. these registers are used
by microprocessor for internal operations and not available to user.
2) General purpose registers: There are 6 general purpose 8-bit registers :B, C, D, E, H, and L.
These registers used store 8-bit data and available for user. Register pairs BC, DE, HL can be
used to store 16 bit data.
3) Special purpose registers:
a) Program Counter (PC): This is 16 bit register and points to next instruction to be fetched
from memory in order to execute it. It is automatically updated by microprocessor. Upon reset,
the PC is loaded with a value 0000H.
b) Stack Pointer (SP): this is a 16 bit register. It is used in stack operations and points to the top
of stack (TOS).