Professional Documents
Culture Documents
EEE EEE
MODULE 4 MICROPROCESSOR 8085
Power supply and clock frequency:- CPU architecture and its functional blocks:-
EEE EEE
MODULE 4 MICROPROCESSOR 8085
FLAG REGISTER:-It consists of 5 flip flops which 2.RD- This is active low used for reading operation.
changes its status according to the result stored in an
accumulator. It is also known as status register. It is 3.WR-This is active low used for writing operation.
connected to the ALU. There are three status signal used in microprocessor
S0, S1 and IO/M. It changes its status according the
provided input to these pins.
EEE EEE
MODULE 4 MICROPROCESSOR 8085
INTERRUPT UNIT- Interrupts are the signals 1.13 XTHL the content of SP is exchanged
generated by external devices which requires attention with HL pair
of processor.
1.14 PUSH rp PUSH B the content of
When a processor executing a main program some register pair BC is pushed to stack)
interrupts may arises, so processor stops the
current program and shifts the control to interrupt 1.15 POP rp POP D the content in
program. stack is popped to register pair DE
After completing that program, processor comes
back to main program. There are 6 interrupt pins
in this unit.
Generally an external hardware is connected to
these pins.
These pins provide interrupt signal sent by
external hardware to microprocessor and
microprocessor sends acknowledgement for
receiving the interrupt signal. Generally INTA is
used for acknowledgement
1.1
1.12 XCHG the content of HL pair is 3.12 CMA CMA complement the
exchanged with DE pair content in accumulator
EEE EEE
MODULE 4 MICROPROCESSOR 8085
Eg: - MVI A, 30H (30H is copied into the register A) LXI H,2501H ;Get address of 1st no. in HL pair
MOV A,M ; move 1st no. to accumulator
MVI B,40H (40H is copied into the register B). INX H ; increment content of HL pair
SUB M ;Subtract 1st and 2nd no.
2. Register Addressing Mode: - in this addressing INX H ;increment content of HL pair
mode, the instruction specifies the name of register MOV M,A ;Move result to the incremented
in which the data is available. HL pair
Eg: - MOV B, A (the content of A is copied into the HLT ; Stop
register B) 3. Write a program to Multiply 05H and 02H
EEE EEE
MODULE 4 MICROPROCESSOR 8085
EEE EEE