Вы находитесь на странице: 1из 50

Project Title

Computer Interface Trainer


(MDA-Win8086)
Presented By:
Roll: 10015406

What is computer interface?


In computer science, an interface is the point of
interaction with software, or computer hardware, or
with peripheral devices such as a computer
monitor or a keyboard.
Some computer interfaces such as a touchscreen
can send and receive data, while others such as a
mouse, microphone or joystick can only send data.

Introduction to MDA 8086 Training


Kit
MDA-8086 is designed for easy function.
After power is on, the monitor begins to work.
The monitor has a memory checking routine.

Figure: 16Bit MDA8086 Processor


Board

FIGURE : MDA-Win8086 SYSTEM

MDA-8086 Features
1. Program debugging function by PC.
2.Software : TURBO-C 2.0or later, Support
Startup Code
3. Program download and trace function
4.Display the register contents
5. Memory contents modification

6. Various Command function


7. Included stepper motor interface circuit
8. DOT MATRIX unit
9. LCD display unit
10. D/A and A/D converter experiment
11. Sound experiment with Speaker
12. Interrupt experiments

13. Thermistor Sensor


14. Bar LED unit
15. Keyboard experiment
16. External interface connector
17. Display the current BUS status on LED
18. +5V, +12V, -12V S.M.P.S(Free Voltage)
Power.

MDA-8086 Specification
CPU
Main RAM

8086
64KB(62256 x 2)

Monitor ROM 64KB(27256 x 2)


Display Unit LCD (16 X 2 Line)
I/O Port
8255A
Serial Port RS-232C (8251A)
System Clock 14.7456MHz
Clock
Generator

8254 (Clock Generator)

Interrupt Controller
Timer Controller
Level Meter
Dot Matrix

8259
8253
HG101A
8 X 8 (2 color)
-8086 Assembler

Software

Key Board
System BUS indicator

-MDA-WinIDE8086
Compiler
16 Hexadecimal and 10
function keys
LED X 12

System BUS : 62 pins


Extended Connector
External interface : 20
pins
Stepper motor interface Driver T.R X 4
ADC : ADC0804
A/D, D/A Converter
DAC : DAC0800
- Input : AC 85 ~ 264V
Power
- Output : DC +5V(2A),
+12V(1A),-12V(500mA)
Board size
310 x 265
100(H) x 300(D) x 430(W)
Wood Case

Weight
4.5

MDA-8086 Key Functions

Figure: simple description of the key

MDA-Win8086 SYSTEM
CONFIGURATION
CPU(Central processing unit) :
Using Intel 8086, Using 14.7456 .
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 F0000H~FFFFFH.

SRAM(Static Random Access Memory) :


Input user's program & data.
Address of memory is 00000H~0FFFFH,
totally 64K Byte.
DISPLAY :
Text LCD Module, 16(Characters)2(Lines)

KEYBOARD :
It is used to input machine language.
There are 16 hexadecimal keys and 8
function keys.

SPEAKER :
Sound test.

RS-232C :
Serial communication with IBM compatible
PC.
DOT MATRIX LED :
To understand & test the dot matrix
structure and principle of display.
It is interfaced to 8255A(PPI).

A/D CONVERTER :
ADC0804 to convert the analog
signal to digital signal.
D/A CONVERTER :
DAC0800 (8-bits D/A converter) to
convert the digital signal to the
analog signal
To control the level meter.

STEPPING MOTOR INTERFACE :


Stepping motor driver circuit is
designed.
POWER :
AC 110~220V,
DC +5V 3A, +12V 1A, -12V 0.5A
SMPS.

MDA-Win8086 ADDRESS MAP


Memory map
ADDRESS
00000H ~
0FFFFH
F0000H ~
FFFFFH
10000H ~
EFFFFH

MEMOR
Y
RAM
ROM

DESCRIPTION
PROGRAM & DATA
MEMORY
MONITOR ROM

USER'S RANGE

I/O address map


ADDRESS

I/O PORT

DESCRIPTION

00H ~ 07H

LCD &
KEYBOARD

LCD Display
00H : INSTRUCTION REGISTER
02H : STATUS REGISTER
04H : DATA REGISTER
KEYBOARD
01H : KEYBOARD REGISTER (Only
read)
01H : KEYBOARD FLAG (Only write)

10H ~ 17H

8259/SPEAKER

8259(Interrupt controller)
10H : COMMAND REGISTER
12H : DATA REGISTER
SPEAKER -> 11H : SPEAKER

ADDRESS I/O PORT


08H ~ 0FH 8251 / 8253

DESCRIPTION
8251(Using to data
communication)
08H : DATA REGISTER
0AH : INSTRUCTION / STATUS
REGISTER
8253(TIMER/COUNTER)
09H : TIMER 0 REGISTER
0BH : TIMER 1 REGISTER
0DH : TIMER 2 REGISTER
0FH : CONTROL REGISTER

ADDRESS I/O PORT


18H ~ 1FH 8255A-CS1/
8255A-CS2

DESCRIPTION
8255A-CS1(DOT & ADC
INTERFACE)
18H : A PORT DATA REGISTER
1AH : B PORT DATA REGISTER
1CH : C PORT CONTROL
REGISTER
8255-CS2(LED & STEPPING
MOTOR)
19H : A PORT DATA REGISTER
1BH : B PORT DATA REGISTER
1DH : C PORT CONTROL
REGISTER
1FH : CONTROL REGISTER

ADDRESS I/O PORT


DESCRIPTION
20H ~ 2FH I/O EXTEND CONNECTOR

30H ~ FFH USER'S RANGE

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

RES

System Reset Key

Whenever RES is pressed, the display


becomes one of this two figures.

To select the Machine Code and Serial monitor


mode with P1 switch.

Machine Code

Serial monitor

Serial Monitor is the basic monitor program to


do data communicate between MDA-8086 and
computer.

How to connect MDAWin8086 to PC

About MDA-WinIDE8086

Assembling and Compiling the source

Execute
Run
Click
button or select "Run" from the
Run menu.
We can also type 'G' and "Enter" key on
Terminal window.
The Run command in the work menu starts
execution of the program. The
Program will be executed until it is stopped
by pressing RESET KEY.

Trace
Click
button or select "Trace" from the
Run menu.
We can also type 'T' and "Enter" key on
Terminal window.
The Trace command in the work menu
executes one instruction.

Trainer possible experiment list


LED Display Experiment
FND Display Experiment
DAC Experiment
Bar LED Display Experiment
ADC Experiment
PIT& INT Experiment

8253 Interface Experiment


Sound Experiment
8255 Interface Experiment
8X8 DOT Matrix Display Experiment
8251 Interface Experiment
Text LCD Display Experiment
Keyboard Interface Experiment

List of completed Experiment


(1) 7-Segment Display

A seven-segment display (SSD), or sevensegment indicator, is a form of electronic display


device for displaying decimal numerals.
Seven-segment displays are widely used in digital
clocks, electronic meters, and other electronic
devices for displaying numerical information.
Composed of seven elements.
Individually on or off, they can be combined to
produce simplified representations of the
numerals.

Algorithm: Digit drive pattern.


Digit drive pattern of a seven segment LED display is simply the
different logic combinations of its terminals a to h in order to
display different digits and characters. The common digit drive
patterns (0 to 9) of a seven segment display are shown in the
table below.
Digit

Flow Chart: 7-segment display


Start MPU
Set x <- 0
Write: pins <- x
Delay
Increment x by 1

X=10?

C Code for 7-segment LED display


void
{
#include"mde8086.
h"
int
data[11] =
{ 0xc0, 0xf9, 0xa4,
0xb0, 0x99, 0x92,
0x82, 0xf8, 0x80,
0x90, 0x00 };

wait(long del)
while( del-- );

}
void main(void)
{
int
*data1;
/* 8255 -1 Initialization */
outportb( PPI1_CR, 0x80 );
outportb( PPI1_B, 0xf0 );
outportb( PPI1_C, 0x00 );

//main loop
do {
data1 = data;
while( *data1 != 0x00 )
{
outportb( PPI1_A,
*data1 );
wait(30000);
data1++;
}
}while(1);
}

Explanation
In common-anode 7-Segment LED, logic 0 is
required to turn on a segment.
0xc0, =11000000B

=00111111(inverse)

Digit

0xf9,=11111001B

=00000110(inverse)

0xa4,=10100100B =01011011(inverse)

0xb0, =10110000B =01001111(inverse)

0x99,=10011001B

=01100110(inverse)

0x92,=10010010B

=01101101(inverse)

0x82,=10000010B =01111101(inverse)

0xf8, =11111000B

=00000111(inverse)

0x80,=10000000B

=01111111(inverse)

0x90, =10010000B

=01101111(inverse)

0x00 =00B

List of completed Experiment


(2) LCD Message Display
#define _LCD
#include"mde8086.h"
void string( char *str )
{
while( *str )
{
LCD_putch( *str );
str ++;
wait( 10000 );
/* Delay One character */
}
}

void main( void )


{
LCD_init; /* LCD Initial */
string( "Serial monitor !" );
LCD_LN21;
string( "MDA-Win8086 Kit!" );
do {
LCD_DISPOFF;
wait( 20000 );
LCD_DISPON;
wait( 20000 );
} while(1);
}

List of completed Experiment


(3) LCD- Scroll the message center to right
do {
LCD_ALLCLR;
LCD_puts( "Serial monitor !" );
LCD_LN21;
LCD_puts( "MDA-Win8086 Kit!"

#define _LCD
#include "mde8086.h
void main( void )
{
int i;
LCD_init;

);
for( i = 0; i < 16; i ++ )
{
wait( 15000 );
LCD_RShift;
/* Right
shift */
}
}
} while(1);

List of completed Experiment


(4). LCD Scroll a message right to left
(5). Matrix Scroll top to bottom.
(6). Matrix Scroll left to right.
(7). Matrix - Display A.
(8). Matrix Scroll A left to right.
(9). Matrix Scroll A top to bottom.
(10). LED display

What we have done?


(1). Matrix Scroll bottom to top.
(2). Matrix Scroll right to left.
(3). Matrix - Display R
(4). Scroll 'R' from left to center
(5). Scroll 'R' from center to left

Thank you

Вам также может понравиться