SlideShare a Scribd company logo
1 of 42
8085 Microprocessor
System Specifications -
● CPU - 8 bit Microprocessor, the 8085
● MEMORY - Total on board capacity of 64K bytes RAM - 8K/32K bytes and
space for further expansion
● ROM - 8K bytes of EPROM loaded with powerful program
● TIMER - 16 bit programmable timer / counter using 8253 I/O – 24
● I/O lines using 8255
● KEYBOARD - 10 keys for command 16 keys for hexadecimal data entry 1
key for vector interrupt & 1 key for reset
● LED DISPLAY - 6 seven segment display 4 for address field & 2 for data field
● BUS - All data, address and control signals (TTL compatible available at FRC
connector)INTERFACE - RS - 232 - C through SID/SOD lines with auto baud
rate (optional)
● POWER SUPPLY - +5v, 1.5Amp for the kit
● REQUIREMENT - +12V + 5%, 250mA for CRT/PC interface
● OPERATING TEMPERATURE - 0 to 50o C
8085 Microprocessor Trainer Kit
Steps to perform experiment on the kit –
● Press Reset
● Press Examine Memory
● Enter starting address
● Press Next
● Enter opcodes by subsequently pressing Next
● Press Reset
● Press Go
● Enter starting address of the program to compile
● Press EXEC/FILL
● Press Reset
● Press Examine Memory/Register
● Enter Output Address
● Press Next
8085 Architecture
ALU
• The ALU performs the following arithmetic and logical
operations.
– Addition
– Subtraction
– Logical AND
– Logical OR
– Logical EXCLUSIVE OR
– Complement (logical NOT)
– Increment (add 1)
– Decrement (subtract 1)
– Left shift
– Clear
Register Set
General Registers
• The 8085 has six general-purpose registers B, C, D, E, H,
and L
• They can be combined as register pairs - BC, DE, and HL -
to perform some 16-bit operations
• Registers can store or copy data into the registers by
using data copy instructions
• The HL register pair is also used to address memory
locations
Internally 8085 specifies these registers using 0s and 1s
only. So3-bits represent a register. The 3-bit register codes
for the registers of 8085:
Register Register code
B 000
C 001
D 010
E 011
H 100
L 101
M
(Data)
110
A 111
Using these binary codes, hex-codes against mnemonics
are formed. For example:
The opcode for MOV E, H − To represent MOV we are
having 2-bits 01 and rest 6-bits to represent 2 registers
destination and source against 3-bits each.
MOV E, H will have the hex-code as 0 1 0 1 1 1 0 0 => 5C
The opcode for MOV A, B − To represent MOV we are
having 2-bits 01 and rest 6-bits to represent 2registers
destination and source against 3-bits each.
MOV A, B will have the hex-code as 0 1 1 1 1 0 0 0 => 78
The opcode for MVI E, data − To represent
MVI we are having 2-bits 00
MVI E, M will have the hex-code as 0 0 0 1
1 1 1 0 => 1E
Accumulator & Pointers
• The accumulator is an 8-bit register that is a
part of arithmetic/logic unit (ALU)
• Program Counter – store address of next
instruction.
• Stack Pointer – store the address of stacktop
Instruction Register/Decoder
• The instruction register and the decoder are
considered as a part of the ALU
• The instruction register stores address of the
current instruction of a program
• The decoder decodes the instruction
Flags
• The ALU includes five flip-flops, which are set
or reset after an operation
• They are called Zero (Z), Carry (CY), Sign (S),
Parity (P), and Auxiliary Carry (AC) flags
Flags
• If the sum in the accumulator is larger than
eight bits then Carry flag (CY) – is set to one
• When an arithmetic operation results in zero,
then Zero (Z) flag is set to one
Flags
• The conditions (set or reset) of the flags are tested
through the software instructions
• The combination of the flag register and the accumulator
is called Program Status Word (PSW) and PSW is the 16-
bit unit for stack operation
Flags
Pin Diagram
Address & Data Bus
• Address Bus
• The 8085 has eight signal lines, A15-A8, which
are unidirectional and used as the high order
address bus
• Multiplexed Address/Data Bus
• The signal lines AD7-AD0 are bidirectional
• They serve a dual purpose
Address & Data Bus
• They are used as the low-order address bus as well as the
data bus
• In executing an instruction, during the earlier part of the
cycle, these lines are used as the low-order address bus
as well as the data bus
• During the later part of the cycle, these lines are used as
the data bus
• However the low order address bus can be separated
from these signals by using a latch
Addressing Modes
• 8-bit or 16-bit data may be directly given in the
instruction itself
• The address of the memory location, I/O port or I/O
device, where data resides, may be given in the
instruction itself
• In some instructions only one register is specified. The
content of the specified register is one of the operands.
Addressing Modes
• Some instructions specify one or two
registers. The contents of the registers are the
required data.
• In some instructions data is implied. The most
instructions of this type operate on the
content of the accumulator.
Addressing Modes
• Implicit addressing
 CMA (finds and stores the 1’s complement of
the contents of accumulator A in A)
 RRC (rotate accumulator A right by one bit)
 RLC (rotate accumulator A left by one bit)
 Immediate Addressing Mode –
The source operand is always data. If the
data is 8-bit, then the instruction will be of
2 bytes, if the data is of 16-bit then the
instruction will be of 3 bytes.
 MVI B 45 (move the data 45H immediately
to register B)
 LXI H 3050 (load the H-L pair with the
operand 3050H immediately)
 JMP address (jump to the operand
address immediately)
Direct Addressing Mode –
The data to be operated is available inside a
memory location and that memory location
is directly specified as an operand.
• LDA 2050 (load the contents of memory
location into accumulator A)
• LHLD address (load contents of 16-bit
memory location into H-L register pair)
Register addressing
The data to be operated is available inside
the register(s)
– In register addressing mode the operands are in
the general purpose registers
– MOV A, B
– ADD B
– LDAX B, STAX D
Register indirect addressing:
Memory location is specified by the contents of the
registers
• MOV A, M (move the contents of the memory
location pointed by the H-L pair to the
accumulator)
• LDAX B (move contents of B-C register to the
accumulator)
• LXIH 9570 (load immediate the H-L pair with the
address of the location 9570)
Instruction Formats
1. One-byte instructions –
In 1-byte instruction, the opcode and the operand of an
instruction are represented in one byte.
e.g. Copy the contents of accumulator in register B.
Mnemonic- MOV B, A
Opcode- MOV
Operand- B, A
Hex Code- 47H
Binary code- 0100 0111
2. Two-byte instructions –
Two-byte instruction is the type of instruction in which
the first 8 bits indicates the opcode and the next 8 bits
indicates the operand.
e.g. Load the hexadecimal data 32H in the accumulator.
Mnemonic- MVI A, 32H
Opcode- MVI
Operand- A, 32H
Hex Code- 3E
32
Binary code- 0011 1110
0011 0010
3. Three-byte instructions –
Three-byte instruction is the type of instruction in which the first
8 bits indicates the opcode and the next two bytes specify the
16-bit address. The low-order address is represented in second
byte and the high-order address is represented in the third byte.
e.g. Load contents of memory 2050H in the accumulator.
Mnemonic- LDA 2050H
Opcode- LDA
Operand- 2050H
Hex Code- 3A
50
20
Binary code- 0011 1010
0101 0000
0010 0000
8085 Instruction Set 32
Different Types of Instructions
Data Transfer Instructions
Types Examples
1. Between Registers 1. MOV B,D – Copy the contents of the
register B into Register D
2. Specific data byte to a register or a
memory location
2. MVI B,32H – Load register B with the
data byte 32H
3. Between a memory location and a
register
3. LXI H, 2000H
MOV B,M
From a memory location 2000H to register
B
4. Between an I/O device and the
accumulator
4. IN 05H – The contents of the input port
designated in the operand are read and
loaded into the accumulator
Arithmetic Instructions
• ADD B – [A] <----- [A]+[B]
• ADD M - [A] <----- [A]+[[HL]]
• DAD B – [HL] <----- [HL]+[BC]
• SUB C – [A] <----- [A]+[C]
• SUI 76H – [A] <---- [A]-76H
• SBB M – [A] <----- [A]-[[HL]]-[C]
Logical Instructions
• ANA C – [A] <----- [A] ^ [C]
• ANI 85H – [A] <----- [A] ^ 85H
• ORA M – [A] <----- [A] v [[HL]]
• XRA B – [A] <------ [A] XOR [B]
Rotate Instructions
• RLC
– [An+1] <----- [An]
– [A0] <------ [A7]
– [CS] <----- [A7]
• RAR
– [An] <------ [An+1]
– [CS] <------ [A0]
– [A7] <------ [CS]
Complement Instructions
• CMP R
• CPI data
Complement Instructions
• CMA – [A] <---- [A]’
• CMC – [CS] <----- [CS]’
Transfer Instructions
• JMP 2050H – [PC] <----- 2050H
• JZ 3100H – [PC] <----- 3100H if Z=1,
otherwise [PC] <----- [PC]+1
• JNC 4250H – [PC] <----- 4250H if C=0,
otherwise [PC] <----- [PC]+1
CALL & RET
• CALL Addr
• [[SP]-1] <------- [PCH]
• [[SP]-1] <------- [PCL]
• [SP] <----- [SP]-2
• [PC] <----- Addr
• RET
• [PCL] <------ [[SP]]
• [PCH] <------ [[SP]+1]
• [SP] <------ [SP]+2
Conversion and Execution
• Convert the mnemonics into Hex code; we
need to look up the code in 8085 instruction
set.
• Store the program in Read/Write memory of a
single-board microcomputer. This may require
the knowledge about memory addresses and
the output port addresses.
• Finally execute the program.

More Related Content

Similar to 8085_Microprocessor(simar).ppt

Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxpvg123456
 
8085-instruction.ppt
8085-instruction.ppt8085-instruction.ppt
8085-instruction.pptSudeshnaDey22
 
MECHATRONICS-UNIT 2-8085 MICROPROCESSOR AND 8051 MICROCONTROLLER .pptx
MECHATRONICS-UNIT 2-8085 MICROPROCESSOR AND 8051 MICROCONTROLLER .pptxMECHATRONICS-UNIT 2-8085 MICROPROCESSOR AND 8051 MICROCONTROLLER .pptx
MECHATRONICS-UNIT 2-8085 MICROPROCESSOR AND 8051 MICROCONTROLLER .pptxCHANDRA KUMAR S
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructionscmkandemir
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxGowrishankar C
 
8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd yearBharghavteja1
 
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxlec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxMadavanR1
 
MICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERSMICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERSselvakumar948
 
UNIT II MICROPROCESSOR AND MICROCONTROLLER
UNIT II MICROPROCESSOR AND MICROCONTROLLER UNIT II MICROPROCESSOR AND MICROCONTROLLER
UNIT II MICROPROCESSOR AND MICROCONTROLLER ravis205084
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Swati Watve-Phadke
 
PPT 8085 microprocessor
PPT 8085 microprocessor PPT 8085 microprocessor
PPT 8085 microprocessor Ardhendupanja
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modesSuchismita Paul
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture IIDr.YNM
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessorATTO RATHORE
 

Similar to 8085_Microprocessor(simar).ppt (20)

Microprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptxMicroprocessor and Microcontroller.pptx
Microprocessor and Microcontroller.pptx
 
8085-instruction.ppt
8085-instruction.ppt8085-instruction.ppt
8085-instruction.ppt
 
Pdemodule 4
Pdemodule 4Pdemodule 4
Pdemodule 4
 
MECHATRONICS-UNIT 2-8085 MICROPROCESSOR AND 8051 MICROCONTROLLER .pptx
MECHATRONICS-UNIT 2-8085 MICROPROCESSOR AND 8051 MICROCONTROLLER .pptxMECHATRONICS-UNIT 2-8085 MICROPROCESSOR AND 8051 MICROCONTROLLER .pptx
MECHATRONICS-UNIT 2-8085 MICROPROCESSOR AND 8051 MICROCONTROLLER .pptx
 
Lec03
Lec03Lec03
Lec03
 
Chapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional InstructionsChapter 7 - Programming Techniques with Additional Instructions
Chapter 7 - Programming Techniques with Additional Instructions
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year8086 microprocessor pptx JNTUH ece 3rd year
8086 microprocessor pptx JNTUH ece 3rd year
 
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptxlec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
lec3-8051microcontrollerarchitecture-230130044236-5c11a082.pptx
 
8085 Architecture
8085 Architecture8085 Architecture
8085 Architecture
 
MICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERSMICROPROCESSORS AND MICROCONTROLLERS
MICROPROCESSORS AND MICROCONTROLLERS
 
UNIT II MICROPROCESSOR AND MICROCONTROLLER
UNIT II MICROPROCESSOR AND MICROCONTROLLER UNIT II MICROPROCESSOR AND MICROCONTROLLER
UNIT II MICROPROCESSOR AND MICROCONTROLLER
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
UNIT 1.pptx
UNIT 1.pptxUNIT 1.pptx
UNIT 1.pptx
 
PPT 8085 microprocessor
PPT 8085 microprocessor PPT 8085 microprocessor
PPT 8085 microprocessor
 
8085 instructions and addressing modes
8085 instructions and addressing modes8085 instructions and addressing modes
8085 instructions and addressing modes
 
Microprocessor architecture II
Microprocessor architecture   IIMicroprocessor architecture   II
Microprocessor architecture II
 
UNIT-3.pptx
UNIT-3.pptxUNIT-3.pptx
UNIT-3.pptx
 
8085-microprocessor
8085-microprocessor8085-microprocessor
8085-microprocessor
 

Recently uploaded

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxpritamlangde
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...vershagrag
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 

Recently uploaded (20)

Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 

8085_Microprocessor(simar).ppt

  • 1. 8085 Microprocessor System Specifications - ● CPU - 8 bit Microprocessor, the 8085 ● MEMORY - Total on board capacity of 64K bytes RAM - 8K/32K bytes and space for further expansion ● ROM - 8K bytes of EPROM loaded with powerful program ● TIMER - 16 bit programmable timer / counter using 8253 I/O – 24 ● I/O lines using 8255 ● KEYBOARD - 10 keys for command 16 keys for hexadecimal data entry 1 key for vector interrupt & 1 key for reset
  • 2. ● LED DISPLAY - 6 seven segment display 4 for address field & 2 for data field ● BUS - All data, address and control signals (TTL compatible available at FRC connector)INTERFACE - RS - 232 - C through SID/SOD lines with auto baud rate (optional) ● POWER SUPPLY - +5v, 1.5Amp for the kit ● REQUIREMENT - +12V + 5%, 250mA for CRT/PC interface ● OPERATING TEMPERATURE - 0 to 50o C
  • 4. Steps to perform experiment on the kit – ● Press Reset ● Press Examine Memory ● Enter starting address ● Press Next ● Enter opcodes by subsequently pressing Next ● Press Reset ● Press Go ● Enter starting address of the program to compile ● Press EXEC/FILL ● Press Reset ● Press Examine Memory/Register ● Enter Output Address ● Press Next
  • 6. ALU • The ALU performs the following arithmetic and logical operations. – Addition – Subtraction – Logical AND – Logical OR – Logical EXCLUSIVE OR – Complement (logical NOT) – Increment (add 1) – Decrement (subtract 1) – Left shift – Clear
  • 8. General Registers • The 8085 has six general-purpose registers B, C, D, E, H, and L • They can be combined as register pairs - BC, DE, and HL - to perform some 16-bit operations • Registers can store or copy data into the registers by using data copy instructions • The HL register pair is also used to address memory locations
  • 9. Internally 8085 specifies these registers using 0s and 1s only. So3-bits represent a register. The 3-bit register codes for the registers of 8085: Register Register code B 000 C 001 D 010 E 011 H 100 L 101 M (Data) 110 A 111
  • 10. Using these binary codes, hex-codes against mnemonics are formed. For example: The opcode for MOV E, H − To represent MOV we are having 2-bits 01 and rest 6-bits to represent 2 registers destination and source against 3-bits each. MOV E, H will have the hex-code as 0 1 0 1 1 1 0 0 => 5C The opcode for MOV A, B − To represent MOV we are having 2-bits 01 and rest 6-bits to represent 2registers destination and source against 3-bits each. MOV A, B will have the hex-code as 0 1 1 1 1 0 0 0 => 78
  • 11. The opcode for MVI E, data − To represent MVI we are having 2-bits 00 MVI E, M will have the hex-code as 0 0 0 1 1 1 1 0 => 1E
  • 12. Accumulator & Pointers • The accumulator is an 8-bit register that is a part of arithmetic/logic unit (ALU) • Program Counter – store address of next instruction. • Stack Pointer – store the address of stacktop
  • 13. Instruction Register/Decoder • The instruction register and the decoder are considered as a part of the ALU • The instruction register stores address of the current instruction of a program • The decoder decodes the instruction
  • 14. Flags • The ALU includes five flip-flops, which are set or reset after an operation • They are called Zero (Z), Carry (CY), Sign (S), Parity (P), and Auxiliary Carry (AC) flags
  • 15. Flags • If the sum in the accumulator is larger than eight bits then Carry flag (CY) – is set to one • When an arithmetic operation results in zero, then Zero (Z) flag is set to one
  • 16. Flags • The conditions (set or reset) of the flags are tested through the software instructions • The combination of the flag register and the accumulator is called Program Status Word (PSW) and PSW is the 16- bit unit for stack operation
  • 17. Flags
  • 19. Address & Data Bus • Address Bus • The 8085 has eight signal lines, A15-A8, which are unidirectional and used as the high order address bus • Multiplexed Address/Data Bus • The signal lines AD7-AD0 are bidirectional • They serve a dual purpose
  • 20. Address & Data Bus • They are used as the low-order address bus as well as the data bus • In executing an instruction, during the earlier part of the cycle, these lines are used as the low-order address bus as well as the data bus • During the later part of the cycle, these lines are used as the data bus • However the low order address bus can be separated from these signals by using a latch
  • 21. Addressing Modes • 8-bit or 16-bit data may be directly given in the instruction itself • The address of the memory location, I/O port or I/O device, where data resides, may be given in the instruction itself • In some instructions only one register is specified. The content of the specified register is one of the operands.
  • 22. Addressing Modes • Some instructions specify one or two registers. The contents of the registers are the required data. • In some instructions data is implied. The most instructions of this type operate on the content of the accumulator.
  • 23. Addressing Modes • Implicit addressing  CMA (finds and stores the 1’s complement of the contents of accumulator A in A)  RRC (rotate accumulator A right by one bit)  RLC (rotate accumulator A left by one bit)
  • 24.  Immediate Addressing Mode – The source operand is always data. If the data is 8-bit, then the instruction will be of 2 bytes, if the data is of 16-bit then the instruction will be of 3 bytes.  MVI B 45 (move the data 45H immediately to register B)  LXI H 3050 (load the H-L pair with the operand 3050H immediately)  JMP address (jump to the operand address immediately)
  • 25. Direct Addressing Mode – The data to be operated is available inside a memory location and that memory location is directly specified as an operand. • LDA 2050 (load the contents of memory location into accumulator A) • LHLD address (load contents of 16-bit memory location into H-L register pair)
  • 26. Register addressing The data to be operated is available inside the register(s) – In register addressing mode the operands are in the general purpose registers – MOV A, B – ADD B – LDAX B, STAX D
  • 27. Register indirect addressing: Memory location is specified by the contents of the registers • MOV A, M (move the contents of the memory location pointed by the H-L pair to the accumulator) • LDAX B (move contents of B-C register to the accumulator) • LXIH 9570 (load immediate the H-L pair with the address of the location 9570)
  • 29. 1. One-byte instructions – In 1-byte instruction, the opcode and the operand of an instruction are represented in one byte. e.g. Copy the contents of accumulator in register B. Mnemonic- MOV B, A Opcode- MOV Operand- B, A Hex Code- 47H Binary code- 0100 0111
  • 30. 2. Two-byte instructions – Two-byte instruction is the type of instruction in which the first 8 bits indicates the opcode and the next 8 bits indicates the operand. e.g. Load the hexadecimal data 32H in the accumulator. Mnemonic- MVI A, 32H Opcode- MVI Operand- A, 32H Hex Code- 3E 32 Binary code- 0011 1110 0011 0010
  • 31. 3. Three-byte instructions – Three-byte instruction is the type of instruction in which the first 8 bits indicates the opcode and the next two bytes specify the 16-bit address. The low-order address is represented in second byte and the high-order address is represented in the third byte. e.g. Load contents of memory 2050H in the accumulator. Mnemonic- LDA 2050H Opcode- LDA Operand- 2050H Hex Code- 3A 50 20 Binary code- 0011 1010 0101 0000 0010 0000
  • 33. Different Types of Instructions
  • 34. Data Transfer Instructions Types Examples 1. Between Registers 1. MOV B,D – Copy the contents of the register B into Register D 2. Specific data byte to a register or a memory location 2. MVI B,32H – Load register B with the data byte 32H 3. Between a memory location and a register 3. LXI H, 2000H MOV B,M From a memory location 2000H to register B 4. Between an I/O device and the accumulator 4. IN 05H – The contents of the input port designated in the operand are read and loaded into the accumulator
  • 35. Arithmetic Instructions • ADD B – [A] <----- [A]+[B] • ADD M - [A] <----- [A]+[[HL]] • DAD B – [HL] <----- [HL]+[BC] • SUB C – [A] <----- [A]+[C] • SUI 76H – [A] <---- [A]-76H • SBB M – [A] <----- [A]-[[HL]]-[C]
  • 36. Logical Instructions • ANA C – [A] <----- [A] ^ [C] • ANI 85H – [A] <----- [A] ^ 85H • ORA M – [A] <----- [A] v [[HL]] • XRA B – [A] <------ [A] XOR [B]
  • 37. Rotate Instructions • RLC – [An+1] <----- [An] – [A0] <------ [A7] – [CS] <----- [A7] • RAR – [An] <------ [An+1] – [CS] <------ [A0] – [A7] <------ [CS]
  • 39. Complement Instructions • CMA – [A] <---- [A]’ • CMC – [CS] <----- [CS]’
  • 40. Transfer Instructions • JMP 2050H – [PC] <----- 2050H • JZ 3100H – [PC] <----- 3100H if Z=1, otherwise [PC] <----- [PC]+1 • JNC 4250H – [PC] <----- 4250H if C=0, otherwise [PC] <----- [PC]+1
  • 41. CALL & RET • CALL Addr • [[SP]-1] <------- [PCH] • [[SP]-1] <------- [PCL] • [SP] <----- [SP]-2 • [PC] <----- Addr • RET • [PCL] <------ [[SP]] • [PCH] <------ [[SP]+1] • [SP] <------ [SP]+2
  • 42. Conversion and Execution • Convert the mnemonics into Hex code; we need to look up the code in 8085 instruction set. • Store the program in Read/Write memory of a single-board microcomputer. This may require the knowledge about memory addresses and the output port addresses. • Finally execute the program.