8085 microprocessor presentation for unit 1

cocloverking130 30 views 46 slides Aug 31, 2025
Slide 1
Slide 1 of 46
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45
Slide 46
46

About This Presentation

Bdisnx ndjsndnxnndjdjndndjxndndjidbcncjdjdndnxjdjndnxjdjdjxjxjjdbdjxjdnndbxnjxjdjdjjdjdjjdjdjjdjdjdjdjdjjdjjdjdjdjdjjdjdjjd


Slide Content

Introduction of Microprocessor 8085 m

INPUT PROCESSING OUTPUT Keyboard Mouse Scanner Microphone Printer Speaker Monitor Processor Memory

Languages High level Language Low level Language Middle level Language Machine level Language Assembly level Language Binary level Language OCTAL level Language HEXA level Language DECIMAL level Language

Assembler Interpreter Compiler Manufacturer of Microprocessor: INTEL, TOSHIBA, NATIONAL SEMICONDUCTOR, FAIRCHILD, ZILOG, ATMEL, CYPRUS, IBM

Pin Diagram of 8085 Microprocessor

Block Diagram of 8085 Microprocessor

Flag Register of 8085 µP

Addressing Modes in 8085 Immediate addressing mode In this mode, the 8/16- bit data is specified in the instruction itself as one of its operand. For example: MVI B, 20H : means 20 is copied into register B. Register addressing mode In this mode, the data is copied from one register to another. For example: MOV A, B : means data in register B is copied to register A Direct addressing mode In this mode, the data is directly copied from the given address to the register. For example: LDA 5000H : means the data at address 5000H is copied to register A .

4 ) Indirect addressing mode In this mode, the data is transferred from one register to another by using the address pointed by the register. For example: MOV A, M means data is transferred from the memory address pointed by the register whose address is stored in HL pair to the register A. 5) Implied /Implicit addressing mode This mode doesn’t require any operand; the data is specified by the opcode itself. For example: CMP.

Instruction set of 8085 Arithmetic instruction group Logical instruction group Data Transfer instruction group Branch instruction group Control instruction group

Arithmetic instruction group ADD, SUB, ADI, SUB, ADC, SBB, DAD, INR, DCR etc. Logical instruction group ANA,ORA,CMP,ORI,XRA,XRI,RAC,RRC etc. Data Transfer instruction group MOV, MVI, LDA, LDAx, LHLD, STA, STAx, SHLD, XCHG, PUSH, POP etc. Branch instruction group JC, JNC, JP, JM, JZ, JNZ, JPE ,CC, CNC,CP, CM, RP,RM,RZ,RNZ Control instruction group HLT,DI, EI, RIM,SIM

Timing Diagram for Op- code fetch

Timing Diagram for STA Instruction

Timing Diagram for Memory read Instruction

Timing Diagram for Memory write Instruction

Algoritham Flowchart Mnemonics Op- Code Operand Comments

Sample Programs Write an assembly program to add two numbers MVI D, 8BH MVI C, 6FH MOV A, C ADD D OUT PORT1 HLT Sample Programs Write an assembly program to Subtract two numbers MVI D, 8BH MVI C, 6FH MOV A, C SUB D OUT PORT1 HLT

Write an assembly program to multiply a number by 8 Program MVI A, 30H RRC RRC RRC OUT PORT1 HLT

Write an assembly program to find greatest between two numbers Program MVI B, 30H MVI C, 40H MOV A, B CMP C JZ EQU JC GRT OUT PORT1 HLT MVI A, 01H OUT PORT1 HLT MOV A, C OUT PORT1 HLT GRT: EQU:

:"Initialize counter" :"LXI H, 2200H: Initialize memory MVI B, 09 START pointer" MVI C, 09H :"Initialize counter 2" BACK: MOV A, M :"Get the number" :"Increment memory pointer" :"Compare number with next :"If less, don’t interchange" :"If equal, don’t interchange" :"Interchange two numbers" :"Decrement counter 2" :"If not zero, repeat" :"Decrement counter 1" INX H CMP M number" JC SKIP JZ SKIP MOV D, M MOV M, A DCX H MOV M, D INX H SKIP:DCR C JNZ BACK DCR B JNZ START HLT :"Terminate program execution" Write a program to sort given 10 numbers from memory location 2200H in the ascending order.

Write a program to count number of l’s in the contents of D register and store the count in the B register. Sample problem (2200H) = 04 (2201H) = 34H (2202H) = A9H (2203H) = 78H (2204H) = 56H Result = (2202H) = A9H MVI B, 00H MVI C, 08H MOV A, D BACK: RAR JNC SKIP INR B SKIP: DCR C JNZ BACK HLT
Tags