0% found this document useful (0 votes)
224 views

Microprocessor Lab Experiment 1

This document provides an introduction to the MDA-8086 microprocessor kit. It describes the kit's components, memory map, I/O map, and basic operations. It also provides examples of using the kit to store data in memory locations, display register contents, write and execute assembly programs, and communicate with a computer via serial monitor commands. The objectives are to develop machine codes, compile and execute them to exercise hardware parts of the kit.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
224 views

Microprocessor Lab Experiment 1

This document provides an introduction to the MDA-8086 microprocessor kit. It describes the kit's components, memory map, I/O map, and basic operations. It also provides examples of using the kit to store data in memory locations, display register contents, write and execute assembly programs, and communicate with a computer via serial monitor commands. The objectives are to develop machine codes, compile and execute them to exercise hardware parts of the kit.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Session 1: Introduction to MDA-8086 Kit

Objectives:
1. To develop machine codes, then compile and execute the code to exercise particular
hardware parts of the kit.
Pre-lab:
1. Review MS-DOS debugs commands and their syntax.
2. Study the MDA-8086 kit components, and understand the functionality of each part.
3. Review 8086 microprocessor connectivity to memory devices, clock generator 8253/4,
and programmable controllers such as 8255.

1. MDA-8086 Components:
In our laboratory we will study via 8086 kit MDA-8086. It is a kit with I/O facility
and built in interfacing devices such as 8255, 8251, 8259, etc.
1-1 Main Components
CPU: Intel 8086 System Clock 4.9152 MHz
Main Ram: SRAM 64 KB Input user's program & data. Address of memory is 00000H
~0FFFFH, totally 64K Byte . (62256 x 2)
Monitor ROM: It has program to control user's key input, LCD display, user’s program.
64K Byte, it has data communication program. Range of ROM Address is
F0000~FFFFFH.64 KB
Display Unit: LCD (16 x 2 Line)
I/O Port: 8255A
Serial Port: RS-232C (8251A x 1): It is ready to do data communication with compatible
personal computer.
Clock Generator: 8284
Interrupt Controller: 8259
Level Meter: 10 Steps
DOT Matrix: 8 x 8 (3 Color)
Operation System Software: 8086 Assembler
Keyboard: 16 Key of Data, 10 Key of Function
Expansion Connector System Bus 62pin x 1 External Interface 20pib x 1
Step Motor Interface Driver T.R x 4 to control stepping motor, driver circuit of stepping
motor is interfaced.
A/D Converter: Convert analog signal to digital signal using ADC 0804
D/A Converter: Convert digital signal to analog signal using with DAC 0800 and it is
interfaced so as to more Level meter.
Power 110V/220V

1-2 Memory Map


1-3 I/O Map
2. Operation Introduction:
2-1 Function of Keys
MDA-8086 has 64K-byte monitor program. It is designed for easy function. After power
is on, the monitor begins to work. In addition to all the key function the monitor has a
memory checking routine. Below is the list of the keypads main functions.

2-2 Basic Operations


1. On a power-up, following message will be displayed on a LCD.

2. You can use serial mode or keypad machine code mode. You can choose
between them using jumper P1 located on kit like this:
3. Whenever RES key is pressed, the display becomes FIGURE 1-1 and user can
operate keyboard only in this situation.
4. AD key use to show the memory address contents. Example 1 shows how you can do
that.

HEXA-DIGIT KEY : Substitute to segment & offset address

EXAMPLE 1: Check the Contents of Memory


The following example show how you can display the contents of memory
Example2: Store the word AB at location 1000 of memory.

Exercise1!
Store the following data to addresses 01000H to 01004H:
Address Data
01000 AB
01001 CD
01002 EF
01003 34
01004 E3

Exercise2!
Use REG key to display register contents
2.3 Example Program
You can store a program in memory using its machine code. Machine code can be input
using keypad. For example the machine code of MOV AX ,0 is B8 00 00.

Exercise3!
Write an assembly code to add two numbers, and store it on mda-8086 memory using
machine code language. You can use MS-DOS debug program to know the machine
code of your program. You can use STP key to execute your code in single steps

3. Serial Monitor
Serial monitor is the basic monitor program to do data communication between MDA-
8086 and computer.
3-1. How to Use Serial Monitor?
As we mentioned before, to use serial monitor, move jumper P1 which located on the
PCB like this.

3-2. How to Connect Computer?


1. Connect MDA-8086 with PC’s serial port using RS-232C cable. .Press RESET button.
Make sure the module is set in serial monitor mode
2. Go to startAll programsMIDAS ENGWincomm, or you can find it
directly on the desktop.
3. In wincomm, go to OptionSet Serial Port, Set them as follow:
4. Now you can communicate with MDA-8086 kit from your PC
3-3.Operation Serial Monitor Command
1. User can only use command which stored at serial monitor. Serial monitor can
execute the command when user types command and then CR (carriage return) key.
2. If there is no any command at serial monitor, error message will be displayed with
bell sound and serial monitor prompt will be displayed again.
3. Wincomm come with different command, they are very similar to MS-DOS debug
commands. You can show them by type: ? [Press ENTER]

1. Memory Modify Command.


2. Memory Display Command

3. Memory Fill Command

Verify the result using D command!

4. Block Move Command

5. Display Registers Command

Modify the content of AX, BX, CX.

6. Program Down load & program execute command


(We will discuss it how to use it more lately)
7. Execute a Program:
You can use G or T command

Write assembly program to add two number and store it in AX register??

You might also like