PROCEDURE - 3 | EXPERIMENT NO. 1:Introduction to 8085 Microprocessor - Architecture and Basic Operations | Microcontroller Lab
K12 Students

Academics

AI-Powered learning for Grades 8–12, aligned with major Indian and international curricula.

Professionals

Professional Courses

Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.

Games

Interactive Games

Fun, engaging games to boost memory, math fluency, typing speed, and English skills—perfect for learners of all ages.

Interactive Audio Lesson

Listen to a student-teacher conversation explaining the topic in a relatable way.

System Setup

Unlock Audio Lesson

Signup and Enroll to the course for listening the Audio Lesson

0:00
Teacher
Teacher

Welcome class! Today, we're going to learn how to properly set up the 8085 Microprocessor Trainer Kit. Why do you think it’s important to set up the equipment correctly?

Student 1
Student 1

Because if we don't, the experiment might not work properly.

Teacher
Teacher

Exactly! First, we need to place the kit on a stable surface and connect the power supply before turning it on. Once it's on, what should we look for on the display?

Student 2
Student 2

It should show something like '8085>' or 'MONITOR' indicating it's ready.

Teacher
Teacher

That's right! And after checking the display, we press the 'RESET' button, which initializes the microprocessor. What does this reset do?

Student 3
Student 3

It loads the monitor program and sets the Program Counter.

Teacher
Teacher

Great! This sets us up for successful program entry. So, now that we're set up, let's move on to entering our program.

Program Entry

Unlock Audio Lesson

Signup and Enroll to the course for listening the Audio Lesson

0:00
Teacher
Teacher

Now it's time to enter our program into the system. Does anyone remember what the first command we should execute is?

Student 2
Student 2

We need to select the starting address using commands like 'EXAM MEM' or 'GO MEM'.

Teacher
Teacher

Correct! After choosing the starting address, we proceed to enter the opcode and operand. Why is it important to do this step carefully?

Student 1
Student 1

If we enter them wrong, the program won't run as expected.

Teacher
Teacher

Exactly! The trainer automatically updates the address after entering each byte. After we've finished, we will need to exit memory entry mode. Does anyone know how to do that?

Student 4
Student 4

We can use the 'RESET' or another key specified in the manual.

Teacher
Teacher

Good point! Now that we have correctly entered our program, let's execute it.

Program Execution

Unlock Audio Lesson

Signup and Enroll to the course for listening the Audio Lesson

0:00
Teacher
Teacher

To execute our program, we'll use the 'GO' command followed by the starting address. Why do we need the starting address?

Student 2
Student 2

So the microprocessor knows where to start running the program.

Teacher
Teacher

Absolutely! Now, does anyone know what single-stepping is and why we might want to use it?

Student 3
Student 3

It lets us execute one instruction at a time, which is helpful for debugging.

Teacher
Teacher

Great! By observing each instruction, we can better understand how data is manipulated. Let's now review how to check our results after program execution.

Observation of Results

Unlock Audio Lesson

Signup and Enroll to the course for listening the Audio Lesson

0:00
Teacher
Teacher

After executing the program, it’s crucial to observe the register contents and memory state. How can we examine the registers?

Student 1
Student 1

We can use a command like 'EXAM REG' to see the accumulator and other registers.

Teacher
Teacher

Right! And why is it important to document both expected and observed values?

Student 3
Student 3

To ensure the program behaves as intended and understand if there are any errors.

Teacher
Teacher

Well said! Accurate documentation will help us analyze how basic data transfer and arithmetic operations impact the microprocessor. Let’s summarize what we’ve learned today.

Student 4
Student 4

We learned how to set up the kit, enter our program, execute it, and observe results!

Teacher
Teacher

Excellent summary! Understanding these steps will form the foundation for our future experiments.

Introduction & Overview

Read a summary of the section's main ideas. Choose from Basic, Medium, or Detailed.

Quick Overview

This section outlines the procedural steps to perform experiments using the 8085 Microprocessor Trainer Kit or simulator, focusing on setup, program entry, execution, and observation.

Standard

This section details the procedure for using an 8085 Microprocessor Trainer Kit for experiments, starting from system setup and powering on to program entry, execution, and observing register states, ultimately guiding students through basic data transfer and arithmetic operations.

Detailed

Detailed Procedure for Operating the 8085 Microprocessor Trainer Kit

In this section, students will learn the step-by-step procedure to operate the 8085 Microprocessor Trainer Kit (or simulate it). The procedure consists of several key steps: setting up the system and powering it on, entering and executing a program, and observing the outcomes.

System Setup and Power On

  1. Placement: Place the 8085 Microprocessor Trainer Kit on a stable surface.
  2. Power Connection: Connect the DC power supply, and turn it on. An initial display (like "8085>" or "MONITOR") indicates the kit's readiness.
  3. Reset: Press the "RESET" button to initialize the microprocessor, loading the monitor program and setting the Program Counter to a known address.

Program Entry

  1. Select Starting Address: Use commands like EXAM MEM or GO MEM to choose the address for program entry.
  2. Opcode and Operand Entry: Enter each instruction's opcode in hexadecimal using the keypad, followed by any required operand. The display updates with the next address.
  3. End Program Entry: Exit memory entry mode using the appropriate key (e.g., RESET).

Program Execution

  1. Execute Command: Use GO followed by the starting address to run the program.
  2. Single-Stepping: If available, employ a STEP command to execute step-by-step for debugging.

Observation

  1. Register Examination: After execution, use commands to check contents of the Accumulator, registers, Program Counter, Stack Pointer, and Flag Register.
  2. Memory Examination: Evaluate memory locations using commands like EXAM MEM, documenting the observed and expected values. This step emphasizes understanding how basic data transfer and arithmetic operations affect microprocessor states.

Audio Book

Dive deep into the subject with an immersive audiobook experience.

System Setup and Power On

Unlock Audio Book

Signup and Enroll to the course for listening the Audio Book

  1. Place the 8085 Microprocessor Trainer Kit on a stable surface.
  2. Connect the DC power supply to the kit and switch on the power. Observe the initial display (often showing "8085>" or "MONITOR" indicating readiness).
  3. Press the "RESET" button on the trainer kit. This initializes the microprocessor and loads the monitor program, setting the Program Counter to a known starting address (usually 0000H or the monitor's entry point).

Detailed Explanation

This chunk outlines the initial steps needed to set up the 8085 microprocessor trainer kit. First, ensure the kit is placed securely on a flat surface to avoid any accidental disruptions. Connecting the DC power supply is essential for the operation of the kit. When the power is turned on, a prompt indicating readiness appears, which is a sign that the kit is operational. The 'RESET' button is crucial as it establishes the initial state of the microprocessor, enabling it to start executing commands from the predetermined memory address.

Examples & Analogies

Think of the 8085 trainer kit like a video game console. When you first set it up, you need to plug it in, turn it on, and sometimes press a 'start' button to get things running. Once it's powered and ready, you can begin playing your game, just like you start entering instructions into the microprocessor.

Program Entry

Unlock Audio Book

Signup and Enroll to the course for listening the Audio Book

  1. Select Starting Address: Use the appropriate command on your trainer kit (e.g., EXAM MEM or GO MEM) followed by the 16-bit hexadecimal address where you wish to begin entering your program (e.g., 2000).
  2. Enter Opcode and Operand: For each instruction in your assembly program, enter its corresponding 2-digit hexadecimal opcode using the keypad. If the instruction has an operand (data or address), enter it immediately after the opcode. The trainer kit's monitor program will automatically display the next memory address after each byte is entered.
  3. End Program Entry: After entering all instructions for your program, press the designated key to exit memory entry mode (e.g., RESET, NEXT, or ENTER, as per your kit's manual).

Detailed Explanation

In this section, the method for inputting a program into the trainer kit is described. First, you need to select a starting address, which determines where your program will be stored in memory. After that, the actual instructions are entered as hexadecimal opcodes, which the microprocessor understands. If the instructions require specific data or addresses as well, those should be entered right after the opcode. This process continues until all commands are inputted, after which you can finalize the input procedure with the appropriate command.

Examples & Analogies

Think of this step like writing down a recipe in a notebook. You first decide which page (starting address) to start from. Then, you write down each ingredient and step (opcode and operands) clearly, moving to the next line automatically as you finish each item. Once your recipe is complete, you save the page and put the notebook away, just as you would exit memory entry mode.

Program Execution

Unlock Audio Book

Signup and Enroll to the course for listening the Audio Book

  1. Execute Command: Use the GO or EXEC command on your trainer kit followed by the 16-bit starting address of your program.
  2. Single-Stepping (Optional): For debugging and observing changes instruction by instruction, some kits offer a STEP command. This executes one instruction at a time, allowing you to examine registers and memory after each step.

Detailed Explanation

In this chunk, the actual running of the program is covered. The 'GO' or 'EXEC' command is essential for instructing the microprocessor to begin executing the program starting from the designated memory address. This action prompts the microprocessor to fetch instructions from memory, decode them, and execute them sequentially. Additionally, the optional single-stepping feature is a valuable debugging tool that allows you to observe how the program's execution impacts the registers and memory state after each instruction, thereby ensuring everything works as intended.

Examples & Analogies

Imagine you're a director watching a movie for the first time. You press 'play' (the GO or EXEC command) and watch the scenes unfold. If you're unsure about a particular scene, you might pause and review it closely (the SINGLE STEP command) to see exactly what happened, providing insight into how well the story flows and if any adjustments are needed.

Observation

Unlock Audio Book

Signup and Enroll to the course for listening the Audio Book

  1. Examine Registers: After program execution (or after each step in single-stepping mode), use the EXAM REG or REG command (refer to your kit's manual) to view the current contents of the Accumulator, other general-purpose registers (B, C, D, E, H, L), the Program Counter (PC), Stack Pointer (SP), and the Flag Register. Note down these values.
  2. Examine Memory: Use the EXAM MEM or DISPLAY MEM command followed by a 16-bit memory address (e.g., EXAM MEM 2050) to view the contents of specific memory locations where your program stored data. You can usually press a NEXT or INC key to view subsequent memory locations. Note down the contents.

Detailed Explanation

This section emphasizes the importance of observation after executing the program. First, you will check the registers to see how the program has impacted various storage locations within the microprocessor. This includes the contents of the Accumulator, which is vital for arithmetic operations, as well as general-purpose registers and crucial control registers like the Program Counter and Flag Register. Next, you’ll examine specific memory locations to ensure data was stored as expected, providing insights into the program's functionality.

Examples & Analogies

Think of this step like reviewing the results of a cooking experiment. After baking a cake, you would check the taste (registers) and see how well it rose and if it’s properly cooked (memory locations). If something didn’t turn out right, you'd look closely at your ingredients and steps to troubleshoot what went wrong.

Definitions & Key Concepts

Learn essential terms and foundational ideas that form the basis of the topic.

Key Concepts

  • Microprocessor Trainer Kit Setup: Correctly setting up the 8085 microprocessor kit is essential for successful operation.

  • Program Entry and Execution: Entering opcodes and operands accurately is critical to proper program functioning.

  • Observation of Results: Checking registers and memory states helps validate the execution and correctness of programs.

Examples & Real-Life Applications

See how the concepts apply in real-world scenarios to understand their practical implications.

Examples

  • Example of entering the instruction MVI A, 15H, which loads the immediate value into the accumulator.

  • Example of using GO to start executing the program from a specific address.

Memory Aids

Use mnemonics, acronyms, or visual cues to help remember key information more easily.

🎵 Rhymes Time

  • Set it up, plug it in, make sure it's neat, then hit RESET for a functional beat!

📖 Fascinating Stories

  • Imagine you're in a lab, where a team of scientists set up their complex equipment. They carefully place the kit on the table, recheck the connections, and with a collective breath, they hit RESET to bring it to life!

🧠 Other Memory Gems

  • S.E.E. - Setup, Enter, Execute - the three key actions for using the microprocessor.

🎯 Super Acronyms

P.E.R. - Power on, Enter program, Result check!

Flash Cards

Review key concepts with flashcards.

Glossary of Terms

Review the Definitions for terms.

  • Term: 8085 Microprocessor

    Definition:

    An 8-bit microprocessor that serves as the CPU of early microcomputer systems, capable of basic data operations.

  • Term: Opcode

    Definition:

    The operation code specifying the action the microprocessor will perform.

  • Term: Operand

    Definition:

    The data or address used by the operation specified in the opcode.

  • Term: Program Counter (PC)

    Definition:

    A register that keeps track of the next instruction to be executed.

  • Term: RESET

    Definition:

    A button or command that initializes the microprocessor to a known starting state.

  • Term: EXAM MEM

    Definition:

    A command used to examine memory locations in the microprocessor.

  • Term: GO

    Definition:

    A command used to start executing a program from a specified address.