Microprocess - New (Chapter I) 1
Microprocess - New (Chapter I) 1
1
Evolution of Microprocessor:
•More than 100 gates was fabricated on 1 single chip this was called
medium scale integration (MSI).
For Eg. MSI is IC 7490
•After few years more than 1000 gates were fabricated on single chip
this was called large scale integration (LSI).
•Also VLSI and SLSI technologies were developer i.e. very large scale
integration and super large scale integration which use many competing 2
function.
•The intel invented 4-bit programmable device used as calculators, that
is known as 4-bit µp.
•In 1970, 8080 came which is used in control application called as micro
computer. After a few years of improvement in intel 8080, intel 8085 was
introduced.
•In intel 8085, it has instruction set & architecture more functions. CPU
programmable logic device etc.
•Now, most micro computer are built with 32-bit or 64-bit µp.
Definition of microprocessor:
1. I Generation:
• In 1972, Intel introduce the 8008, the first 8-bit µp with the
development of LSI technology with 45 instruction.
• Eg. Intel 4004 (4-bit), Intel 8008 (8-bit), Motorola’s 6800 (8-bit)
2. II Generation:
4. IV Generation:
5. V Generation:
5
Q. What is microprocessor? Explain its function.
•ALU is arithmetic & logic unit where arithmetic and logical operation
are carried out.
6
•Register are primarily used to store data temporally during
execution of programs.
•Control unit provides control and timing signals to whole system.
It also control flow of data between up and memory and peripherals
System Bus:
Memory:
7
Function of Microprocessor:
•To transfer data from one block to another block or I/O lines.
I/O Peripherals:
•It consist of binary adder to perform addition and subtraction by using 2’s
complement method. 9
ALU contain
1. Shifter: It perform rotate logical operation.
2. Adder: Binary addition, subtraction by using 2’s complement
3. Status Register: It contain flip-flop that can be set or reset on condition
created by ALU operation.
10
Q.Give feature of 8085 microprocessor.
•It has 16 bit address bus that means it can address a physical
memory of 64 KB .
•Address bus can be divided into two group . Low order 8 bit of bus(i.e.
A0 to A7 ) are multiplexed with Data bus ( D0 to D7 ) .These Address
bus are transferred address on same line.
3. Program counter
4. Instructor Decoder
5.Timing and control unit
6. Bus buffer and latches
7. Internal buses and control line
8. Several control unit and output
9. Internal control 12
13
1. Address Bus:
2. Data Bus:
14
3. Data address register:
4. Instruction Register:
•This is 8-bit register.
•The first byte of an instruction is stored in this register (opcode of
instruction)
5. Status register:
•It is called as flag which consist of flip flop that are set or reset
according to data in accumulator.
•The generic MPU has 2 flags: carry and zero flag.
• Sum of accumulator is larger than 8-bit, then carry flag is one or
set.
•When result is zero in accumulator, then zero flag is set or one .
15
•The 8085 has five flags :Sign flag ,Zero flag, Auxillary carray flag, Parity
flag and Carray flag .
6. Accumulator:
•It can be used as both primary source and destination register.
•The final result of operation also stored in accumlator .
•It is an 8-bit main register in 8085 to store 8-bit data .
•The result of ALU is stored in accumulator all data transfer
between CPU and I/O device are performed through accumulator.
7. Program counter:
•It is 16-bit register contain the address of next executable
instruction ( i.e. PC act as a pointer to next executable instruction)
•It can be incremented or reset by control section.
•When reset is activated all internal operation. are suspended and
program counter is cleared. (i.e. it hold 0000 H address).
8. Stack pointer:
•It is 16-bit register contain address of memory location called
stack.(i.e. address of stack top / the memory address of last byte
entered in stack )
•With help of incrementer /decrementer , the stack pointer is
decremented each time data is pushed onto stack and incremented each
16
time data is popped off the stack .
•Stack is read/ write memory used for the temporary storage.
9. Temporary register:
Instruction cycle
•Fig. shows Machine cycle ,Instruction cycle ,T-state required for
an execution of an instruction .
•From it is clear that an instruction cycle consist of number of
machine cycle and a machine cycle consist of number of T-state .
20
•Pin diagram of 8085
21
OR
22
1. Address Bus:
• 8085 µp has 16 address lines i.e. A0 –A15 but the most significant bit
(high order address bus) A8 to A15 are separate which are
unidirectional.
• These low order address bus multiplex with data bus.
• These signal lines are bidirectional i.e. AD0 to AD7 they are used
for dual purpose
• The low order address bus (A0 to A7 ) and data bus (D0 to D7 )
are time multiplexe that means 8-bit of address bus are passed on
same 8 lines as that of data bus. This is known as multiplexed
address/data bus.
• In executing an instruction during earlier part of cycle, these
lines are used (A0 to A7 ) and later part of cycle (D0 to D7 )
lines are used.
• However the low order address bus can be separated from these
lines by using Address latch Enable(ALE) signal. 23
• If signal of pin ALE is high (i.e. 1),then bits on AD0 to AD7 on
address bit else they are data bits.
Q. Explain multiple address/data bus in 8085 µp:
•In 8085 these 40 pin didn’t have enough pins for input and output.
•For that reason, manufacture used 12 to 19 pins as dual purpose
address or data bus lines (AD0 to AD7) this unit is set to 8-bit
multiplex address or data bus.
•To multiplex, means to first select one and another.
•Therefore, sending of address next to send or receive data via
same bus. The 8085 has special signal i.e. ALE to inform sending
24
addresses.
•During first cycle the addresses are sent out the lower 8-bit are
latched into the peripheral by ALE signal.
•During the rest of machine cycle the data bus is used for memory or I/O
data
25
3. Control and status signal:
i. ALE signal:
ii. :
iv. IO| :
27
v. S1 & S0 :
These are status signals.
They can identify various operations.
They machine cycle types along with status signal are listed
below:
8085 has 5 interrupt signal: INTR, RST 7.5, RST 6.5, RST 5.5 and
TRAP. These are 5 Hardware interrupt .
This signal can be used to interrupt a program execution.
i) INTR:
• This is interrupt request signal. It is non vector interrupt because it is
onlu request taken by other device and does not transfer control to any
memory location .
• This is general purpose interrupt.
• It has lowest priority.
• When interrupt signal is given on this line µp executes acknowledged
cycle.
ii) RST 7.5, RST 6.5, RST 5.5 :
• This is restart interrupt used to interrupt the microprocessor.
• It is maskable interrupt. Which can be disable .
• These are vector interrupt and transfer program control to memory
location.
• When an interrupt is recognized, the next instruction is executed
from fixed location in memory ie. 7.5*8 = 003C H.
• They causes internal restart to be automatically inserted. 29
• They have higher priority than INTR.
iii) TRAP:
6. Clock: 30
8. HOLD:
9. HLDA:
• When the signal on this pin goes low, the program count is set to
zero i.e. 0000.
• The buses tristate and µp unit is reset.
11 RESET OUT:
8085 has 2 pins to implement serial transmission, SID (serial input data)
and SOD (serial output data )
32
i. SOD :
ii. SID :
33
Question:
• Microprocessor 8085 uses I/O map I/O scheme to address I/O devices.
• Using status signal, differentiation between I/O operation and memory
operation is done.
• It requried IO/ .
• When IO / = 1 the address on address bus is for I/O device and when,
IO/ =0, address on address bus is for memory location.
• It used 8 bit data buses only .
35
The instruction IN and OUT are used to address I/O device.
The various operation to be carried out are identified by status signal, S0
and S1 as follows:
IO/ S1 S0 operation
0 1 Memory
0 1 0 Memory read
1 1 I/O
1 1 0 I/O read
0 1 1 opcode fetch
1 1 1 Interrupt
acknowledge
unused 0 0 Halt state
unused unused unused Hold state
36
Q. What is interrupt? Explain in details.
•An interrupt can also be viewed as signal, which suspends the normal
sequence of microprocessor and then microprocessor gives services to that
devices which has given the signal.
37
Q. What are software interrupts?
Note:
Q. Give the all hardware interrupt provided by 8085. List them
according to there priority
39
Q. Differentiate between hardware and software interrupts
Hardware interrupts:
•These may be non maskable (TRAP) or maskable (RST 7.5, 6.5, 5.5).
41
Q. Distinguish between maskable and non-maskable interrupts:
Non-maskable interrupts:
•These interrupt can not be masked and can not made pending.
42
Maskable interrupts:
43
Q. What is Vector Interrupt and Non Vector Interrupt ?
State all Hardware Interrupt with their vector address, Write their
priorities of Hardware Interrupt .
45
Q. Write short note on flag register of 8085 µp
OR
Q. What are flags? Enlist the different flags provided by µp.
Explain when they are set or reset
OR
Q. Define bit pattern of flag register and explain the
significance of each flag bit.
•A flag is also called status register.It consist flip flop. flags are either
set or reset by ALU according to the result by ALU.
•8085 has five flags: Sign flag, Zero flag, Auxillary Carry, Carry flag,
Parity flag.
B7 B6 B5 B4 B3 B2 B1 B0 Bit no.
S Z - AC - P - CY status 46
flag
Sign Zero Auxill - Parity - Carry
ary
i) Sign flag(S):
•This flag is used only internally for BCD operation and is not
available for programmer to change the sequence of program with
chunk instruction.
S Z AC P C
0 0 1 1 1 0 1 0
Thank u
52