Академический Документы
Профессиональный Документы
Культура Документы
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
MDA-8086 Specification
CPU
Main RAM
8086
64KB(62256 x 2)
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
Weight
4.5
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.
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.
MEMOR
Y
RAM
ROM
DESCRIPTION
PROGRAM & DATA
MEMORY
MONITOR ROM
USER'S RANGE
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
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
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
BASIC OPERATION
On a power-up, following message will be
displayed on a LCD.
RES
Machine Code
Serial monitor
About MDA-WinIDE8086
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.
X=10?
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)
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
#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);
Thank you