Microprocessor Lab Experiment 1
Microprocessor Lab Experiment 1
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
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.
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.