You are on page 1of 7

EEE-334 Experiment-1

Shahjalal University of Science and Technology


Department of Electrical & Electronic Engineering (EEE)

Experiment No. 01: Familiarization with MDA-8086 microprocessor kit and its
operation in “Machine Code” mode using arithmetic instructions.

Objectives:
1. To familiarize with MDA-8086 system configuration.
2. To operate MDA-8086 in “Machine Code” mode.

Configuration:

Fig.1: System Configuration

Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1

The functions of ICs at Figure 1 are:


1. CPU (Central processing unit): Using Intel 8086, Using 4.9152Mhz.
2. ROM (Read Only Memory): 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.
3. SRAM (Static Random Access Memory): Input user's program & data. Address of memory is
00000H~0FFFFH, totally 64 KByte .
4. DISPLAY: It is LCD, 16(Character) × 2(Line).
5. KEY BOARD: It is used to input machine language and has 16 of hexa-decimal keys and 8 of
function keys.
6. SPEAKER: Able to test sound using with speaker and further more able to test synthesizer.
7. RS-232C: It is ready to do data communication with IBM compatible personal computer.
8. DOT MATRIX LED: To understand & test of dot matrix structure and principle of display it is
interfaced to 8255A (PPI).
9. A /D CONVERTER: Convert analog signal to digital signal using with ADC0804.
10. D /A CONVERTER: Convert digital signal to analog signal using with DAC0800 and it is
interfaced so as to more Level meter.
11. STEPPING MOTOR INTER FACE: So as to control stepping motor driver circuit of stepping
motor is interfaced. 12. POWER: AC 110~220V , DC +5V 3A , +12V 1A , -12V 0.5A SMPS.

8086 mapping:

Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1

Function of Keys:

Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1

Exercise 1: Store the following data as the contents of 01000H~01003H


respectively.
ADDRESS DATA ADDRESS DATA
01050 C0 01000 AB
01081 6F 01001 CD
01022 EF 01002 EF
01073 DA 01003 34

Arithmetic Instructions:
Arithmetic instructions include ADD, SUB, SBB, INC, MUL, DIV etc.
mnemonics. Their operations were explained in theory class and can be
found in the reference book.

Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1

Exercise 2: Execute the code and verify contents of every register.

Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1

 Find the Contents of AX, BX, DX, IP and Flag registers after each step and put
them in a tabular form.
 Explain operations of Arithmetic instructions and verify using your own
calculation.
 Explain the changes in the flag bits.

Procedure:
1. Write the assembly code (ASM code) in emulator (emu8086).
2. Save the file as ****.asm in the same folder where MASM execution is
present.
3. Open the MASM.exe.
4. MASM.exe is used create ****.LST and ****.OBJ files form ****.ASM file.
5. If there are errors or warnings of any kind, then ****.OBJ file will not be
generated.
6. The ****.LST file will show the desired MACHINE codes for any writtem ASM
codes. The machine codes found are to be typed via keyboard (input device)
of the MDA-8086 microprocessor trainer kit.
7. To go to address of a memory location press AD key. This command key
allows the user to set the 20 bit address of a memory location in the format
of [Segment:Offset].
8. To enter to the offset part we have to press the : key.

Prepared by
Jibesh Kanti Saha
EEE-334 Experiment-1

9. For exchanging the 8-bit data on a specific memory location press DA key.
10.When all data are in specific memory location press the RESET button.
11. Press STP (single step: this key allows executing one instruction at a time)
and + (increment by one: this key allows moving to the next memory location)
to see the step by step execution of the ASM code on the LCD unit.
12. Use REG and +,- to check the values of different register.
13. To execute the program fully press AD, : and then GO.

Prepared by
Jibesh Kanti Saha

You might also like