Microprocessor Lab File
Microprocessor Lab File
Group (3C15)
1
Experiment 1
Aim: Introduction of 8085-microprocessor kit and steps for execution on the kit.
(Rajveer Singh)
3
Features of 8085 microprocessor
Architecture:
The architecture of the 8085 is designed to optimize its functionality with simplicity. Key
components include:
1. Arithmetic and Logic Unit (ALU):
o Performs arithmetic and logical operations, such as addition, subtraction, AND, OR, and
XOR.
2. Accumulator:
o A special-purpose register used for intermediate storage during ALU operations.
3. Registers:
o The microprocessor includes general-purpose and special-purpose registers for data storage
and manipulation.
4. Control Unit:
o Manages the overall operation of the microprocessor, including fetching, decoding, and
executing instructions.
5. Interrupt Control:
o Facilitates handling of external and internal interrupt signals.
6. Timing and Control Signals:
o Generates signals required for data flow, memory access, and I/O operations.
Applications:
1. Embedded Systems:
o Widely used in devices like washing machines, microwave ovens, and industrial
controllers.
2. Education and Learning:
o Essential for understanding microprocessor basics and low-level programming.
3. Automation:
o Deployed in systems requiring simple automation and control.
4. Data Acquisition Systems:
o Used in interfacing sensors and acquiring data for real-time analysis.
The 8085 microprocessor remains a cornerstone in the field of microprocessor education, offering
a practical gateway to understanding the intricate details of how modern computing devices
function. Its comprehensive instruction set and simple architecture provide students with
foundational knowledge that can be extended to more advanced processors and systems.
1. Reset: The RESET function in the 8085 microprocessor initializes the system by setting the
Program Counter (PC) to 0000H, disabling interrupts, and clearing the flag register. Triggered
5
by the active LOW RESET IN pin, it ensures the microprocessor starts from a known state,
with the RESET OUT pin signalling external devices for synchronization.
2. Prev: The PREV button typically facilitates stepping back to the previous operation or
instruction in debugging or execution sequences. It helps users analyse the program flow and
inspect prior states of the microprocessor during execution.
3. Next: The NEXT button in microprocessor systems is used to advance to the next operation or
instruction during debugging or execution. It allows users to step through the program flow
sequentially, aiding in analysing the behaviour of the microprocessor and ensuring proper
execution of instructions.
4. Go: The GO statement in 8085 microprocessor debugging tools is used to start or resume the
execution of a program from a specific memory address. It enables the microprocessor to
execute instructions sequentially until it encounters a halt instruction, breakpoint, or interrupt.
5. Exm Reg: The Exm reg command in 8085 systems is used to view the current
contents of a specific register. It allows users to inspect the value stored in
registers like A, B, C, D, E, H, or L during program execution, aiding in
debugging and analysis.
6. Exm mem: The Exm Mem command is used to view the contents of a specific
memory location in the 8085 microprocessor. By specifying the memory address,
users can examine the data stored at that location, which is essential for program
debugging and memory analysis.
Steps to Perform
● 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
● Enter Output Address
● Press Next
6
Vikas Simulator Screenshot
7
Experiment 2
2.1Write a program to store 8-bit data into one register and then copy that to all registers.
8
2.2Write a program for addition of two 8-bit numbers.
1.1 Vikas Simulator
Output - [ 8500 ] – 90
9
2.3Write a program to add 8-bit numbers using direct and indirect addressing mode.
10
2.4 (A) Write a program to add 16-bit numbers using direct addressing mode.
11
2.4.2 Vikas Simulator
12
2.4 (B) Write a program to add 16-bit numbers using indirect addressing mode.
13
2.4.4 Vikas Simulator
14
2.5 Write a program to add 8-bit numbers using carry. (using JNC instruction).
15
16
2.6(A) Write a program to find 1’s complement and of a 8-bit number.
Input - [ 8500 ] – 48
Output - [ 8501 ] – B7
17
2.6(B) Write a program to find 2’s complement and of a 8-bit number
Code Memory Location Opcode
LDA8500H 8000,8001,8002 3A,00,85
CMA 8003 2F
INR A 8004 3C800
STA8501H 8005,8006,8007 32,01,85
RST5 8008 EF
Input - [ 8500 ] – 48
Output - [ 8501 ] – B8
18