8086 Microprocessor Kit User Manual
8086 Microprocessor Kit User Manual
WIZAARD SYSTEM
8086 MICROPROCESSOR-V1.5
KIT USER MANUAL
Revised: V1-5; 15-8-2024
Designed by,
Wizaard System
199-2 V.R.Complex, Siva Sakthi Colony,
Ganapathy,Coimbatore-641 006,
Phone : 0422-4380105
Cell : 9843060303
E-Mail :[email protected]
Website : www.wizaardsystem.in
www.wizaardsystem.in 1
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
TABLE OF CONTENTS
1 INTRODUCTION 5
2 SYSTEM DESCRIPTION 8
2.1 HARDWARE 8
3.1 POWER ON 13
3.3.5 G (EXECUTE) 17
www.wizaardsystem.in 2
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
3.3.8 L (DOWNLOAD) 18
3.3.11 Q (QUIT) 19
3.3.15U (UPLOAD) 21
3.3.16 X (DELETE) 21
4 PROGRAMMING DETAILS 22
4.1 INTRODUCTION 22
4.2 REGISTERS 22
www.wizaardsystem.in 4
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
CHAPTER 1
INTRODUCTION
1.1 8086MICROPROCESSOR_V1.2KIT INTRODUCTION
purpose development board forthe 8086 family. It is a basic kit for anyone
Our kit supports 8086microprocessors from various providers. This unit has
and instruction coding. We can enter HEX code directly to the code memory
and test the code with single step running, check the result of the operation
with user registers. The kit also provides more devices interfacing, e.g.
idea about microprocessor interfaces. This kit can also be used for 8086
www.wizaardsystem.in 5
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
POWER
RS232
CARD
CONNECTOR
PS- 2
NAND
KEYBOARD
GATE
RESET MAX
BUTTON 232
USB NOT
KEYBOARD GATE
CRYSTAL
(6.144MHZ)
BUS OR
TRANSIVER- IC GATE
PORT EXTERNAL
IC-1 26 PIN FRC
CONNECTOR
EXTERNAL
PORT
26 PIN FRC
IC-2
CONNECTOR
EXTERNAL
50 PIN FRC
CONNECTOR
www.wizaardsystem.in 6
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
1.3WS-8086_V1.2KIT SPECIFICATIONS
The WS – 8086 board has the following hardware features:
by Firmware).
Two 32Kx8 Static RAM, CMOS for optimum speed/power with Battery
backup.
www.wizaardsystem.in 7
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
CHAPTER 2
SYSTEM DESCRIPTION
2.1 HARDWARE
WS-8086Microprocessor board is ideal for learning about Microprocessor. The
WS-8086 board is based on Intel 8086Microprocessor which operates at
18.432MHZ crystal frequency. This is a single board computer that uses the
8086microprocessor as the CPU. The board provides a 32kB RAM (code
memory) for user program and a 64KB ROM for monitor program.
We can operate this kit using different types of keyboard(i) USB type
keyboard (ii) PS/2 type keyboard. This keyboard is supplied along with the
trainer kit. 2 lines by 16 character LCD display also provided with this kit.
WS-8086 kit is equipped with powerful software in 27C512
EPROM. This board has 32KB CMOS static RAM (type 62256).
Generallymicroprocessor has multiplexed address lines. In order to separate the
address lines from the data lines specific latch IC’s are used.
For different types of chip selection decoder IC is used. To
interface this 8086 kit with other devices we use 26 pin and 50 pin FRC
connectors. This board contains two separate port IC 8255. This board supports
RS232 interface, serial communication is also possible from this kit.WS-8086
kit works on +5v DC at 2 Amps.
Timer IC is used for generating the baud clock. IC Max 232 convert TTL
transmit and receive signals to RS 232 levels. These signals are brought to a
DB9 connector (female). 8086 has following interrupt:
(i) External Maskable Interrupt (INTR)
(ii) Non Makable Interrupt (NMI)
www.wizaardsystem.in 8
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
DEVICE ADDRESS
0000-FFFFH (Segment: F000H)
EPROM
0000-FFFFH (Segment: 0000H)
RAM
FF20H, FF22H, FF24H, FF26H
8255-1
FF30H, FF32H, FF34H, FF36H
8255-2
FF10H, FF12H
8251
FF40H-COMMAND
LCD FF42H -DATA
2.3CONNECTOR DETAILS
In WS-8086 kit different types of connecters are used. The connectors are,
26 pin FRC connectors
50 pin FRC connector
DB 9 connector
USB connector
PS/2 connector
The details of the connectors are discussed one by one given following,
www.wizaardsystem.in 9
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
www.wizaardsystem.in 10
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
PIN DESCRIPTION:
www.wizaardsystem.in 11
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
PIN DESCRIPTION
1 NC
2 TXD FROM MP
3 RXD TO MP
4 NC
5 GND
6 NC
7 GND
8 GND
9 GND
KEYBOARD DETAILS
www.wizaardsystem.in 12
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
CHAPTER 3
GUIDELINES FOR OPERATION
3.1 POWER ON
Connect the WS–8086 board to the power. Switch on the power supply after
ensuring the correct voltages. Following message will appear on the LCD
display.
The prompt character ‘_’ is displayed in the nextline informing the user, that the
board is ready to accept the commands.
3.2 RESET BUTTON
This key is located in the main WS-8086 board. On pressing this
key the program starts executing from the beginning i.e. at reset address 0000.
On power on reset, the display shows WIZZARD --8086 KitV1.2as a sign on
message.
3.3 ‘H’ (Help Menu)
This key is used in WS–8086 board to get into help menu. Pressing the key
’H’will display the following help. Keys are not case sensitive. By pressing the
<space> key we can scroll the display. If you press <enter >key it will terminate
the display.
www.wizaardsystem.in 13
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
KEY COMMANDS
www.wizaardsystem.in 14
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
To continue press <space bar> and next baud rate will display. Which
one you want press<enter> the corresponding Baud rate will choose.
www.wizaardsystem.in 15
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
To see the next line press space bar key. Display is,
If you want to terminate the disassemble press <enter> else continue by pressing
the <space> key.
www.wizaardsystem.in 16
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
3.3.5 G (EXECUTE)
This command allows the user to execute the program from the specified
address.
STEPS EXAMPLE
G<starting address><enter> G<1100><enter>
3.3.8L
(Download)
www.wizaardsystem.in 17
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
In command used for download the opcode files (hex extension) from
the PC. For this method you have to connect the kit to pc through the RS232
cable and then you have to execute the program terminal software at the pc.
STEP
L<enter>
This will ask you to enter the file name on the PC monitor.
STEP 1 EXAMPLE
M<address><enter> M<1100><enter>
STEP 2:
After <enter> it will display the current value of that location and
waits for a new byte.
www.wizaardsystem.in 18
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
If you don’t want to change the current value press <space bar>to go for next
address. If you want to change the current value go to step 3.
STEP 3
Now Enter the value B8H
STEP 4
If you want to terminate the process press <enter> else press the <space>key
to enter next data.
STEPS
<Press>”N” key
3.3.11 Q (Quit)
If you want quit the system, press Q. if you want again write program
press reset switch.
STEPS
<Press>”Q” key
www.wizaardsystem.in 19
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
STEPS: EXAMPLES
Note: In this command use can see Acc, B reg, C reg, D reg, SI, DI,stack
pointer, BP, ES,CS, DS, SS, IP,
FL.
If you don’t want to change the current value of the register press
<space> to go for next address. If you want to terminate the process press
<enter>.
STEPS
<Press>”S” key
command format:
www.wizaardsystem.in 20
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
3.3.15 U(upload)
In command used for store the bytes of the memory into a file in Intel
hex format. For this method you have to connect the kit to pc through the
RS232 cable and then you have to execute the program terminal software at the
pc.
STEPS:
3.3.16X (Delete)
This command used for delete the set of commands in program.
STEPS: X <enter >
www.wizaardsystem.in 21
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
CHAPTER 4
PROGRAMMING DETAILS
4.1 INTRODUCTION
This chapter describes the technique for developing program in
WS–8086 board. For the development of program it is essential to getfamiliar
with the machine code of 8086Microprocessor or mnemonics of instruction set.
4.2 REGISTERS
From the programmer’s point of view 8086 has the following register:
AX REG (ACCUMULATOR)
BX REGISTER
CX REGISTER
DX REGISTER
4.3PROGRAMMING THE WS-8086 KIT
There are two procedures to enter the program in WS-8086 trainer kit
Mnemonics Method
Opcode Method
EXAMPLE PROGRAM:
RESULT:
AX5555H
www.wizaardsystem.in 22
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Press <Enter>key. The starting address will wait for the mnemonics to
enter
www.wizaardsystem.in 23
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Now type the next mnemonics MOVBX, 3333HFor 2nd data stored at B-
register.
Press <Enter> key. It automatically goes to next address and wait for the
next mnemonics to enter
Now type the next mnemonics ADD AX, BX for ADD AX and BX
register value(3333h+2222h=5555h)
Press <Enter> key. It automatically goes to next address and wait for the
next mnemonics to enter
Now type the next mnemonics INT3for end of program.
Now press the <Enter> keytwo times. This cursor will appear on LCD.
If we want to verify the entered code press D<starting address> for our
program type D1100
www.wizaardsystem.in 24
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Press <Enter> key. This will display the address and opcodes on the
first line and mnemonics on the second line of the LCD.
Now press the <Enter> key two times.It waits for c-commands.
To execute the program press G< staring address>that is press G1100.
www.wizaardsystem.in 25
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
***************************************************************
www.wizaardsystem.in 26
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Press <Enter>it will display the current value of that location and waits
for a new byte.
www.wizaardsystem.in 27
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
www.wizaardsystem.in 28
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Press <Enter> key. This will display the address and opcodes on the first
line and mnemonics on the second line of the LCD.
www.wizaardsystem.in 29
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Now press the <Enter> key two times.It waits for H-for help.
These are the basic procedures to enter the program in both the
methods. Likewise, we can enter all other programs in our kit.
www.wizaardsystem.in 30
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
CHAPTER 5
Microprocessor Programming Using 8086 Kit
5.1. ADDITION
5.1.1. ADDITION OF TWO 8 BIT NUMBERS WITH CARRY
Objective
To write the assembly program for add two 8 bit numbers with carry by
loading directly and store the result in the address 1100H.
Apparatus Required
WS-8086Trainers kit V1.2
Keyboard USB/PS2
Theory
Two numbers can be added in microprocessor by keeping one number in
an accumulator and the other number in a register. Then the content of an
accumulator is added with the content of a B register using the instruction
ADCAX,BX. The result is stored at accumulator (AX).
Flow Chart
Start
End
www.wizaardsystem.in 31
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Result
INPUT OUTPUT
(BEFORE ADDITION) (AFTER ADDITION)
****************************************************************
www.wizaardsystem.in 32
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
End
www.wizaardsystem.in 33
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Program
Result
INPUT OUTPUT
(BEFORE ADDITION) (AFTER ADDITION)
****************************************************************
www.wizaardsystem.in 34
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
5.2 SUBTRACTION
Objective
To subtracttwo8 bit numbers by loading directly and store the result in the
Accumulator.
Apparatus Required
Flow Chart
Start
End
www.wizaardsystem.in 35
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Program
S.N
ADDRESS OPCODE MNEMONICS COMMENTS
O
1100 B8 00 00 MOV AX,0000 Clear accumulator
1103 F9 STC Set carry flag
1104 B0 34 MOV AL,34 Given 1STinput data
Given 2ND input
1106 B3 32 MOV BL,32
data
ACC=ACC– B
1108 18 D8 SUBAL, BL
REG
110A CC INT3 END
Result
INPUT OUTPUT
(BEFORE SUBTRACTION) (AFTER SUBTRACTION)
AL = 34H AX = 0001H
BL = 32H
****************************************************************
www.wizaardsystem.in 36
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Objective
To write assembly program for subtract two 16 bit numbers by loading
directly and store the result in an accumulator.
Apparatus Required
Flow Chart
Start
End
www.wizaardsystem.in 37
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Result
INPUT OUTPUT
(BEFORE SUBTRACTION) (AFTER SUBTRACTION)
AX = 3333H AX = 2221H
BX = 1111H
www.wizaardsystem.in 38
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
****************************************************************
5.3 MULTIPLICATION
Objective
To write assembly program for multiply two 8 bit numbers by loading
directly and store the result in accumulator.
Apparatus Required
Flow Chart
Start
End
www.wizaardsystem.in 39
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
INPUT OUTPUT
Result
(BEFORE MULTIPLY) (AFTER MULTIPLY)
AL = 33H AX = 0330H
BL = 10H
*******************************************************
www.wizaardsystem.in 40
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Objective
To write assembly program for multiply two16 bit numbers by loading
from memory and store the result in accumulator.
Apparatus Required
Flow Chart
Start
End
www.wizaardsystem.in 41
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Note: after execute programwe can see AX reg, press space bar to see DX reg.
Result
INPUT OUTPUT
(BEFORE MULTIPLY) (AFTER MULTIPLY)
AX = 1234H AX = 2100H
BX = 0100H DX = 0043H
********************************************************
www.wizaardsystem.in 42
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
5.4 DIVISION
5.4.1. DIVISION OF TWO 8 BIT NUMBERS
Objective
To divide two 8 bit numbers by loading directly and store the result in the
accumulator.
Apparatus Required
WS-8086Trainers kit V1.2
Keyboard USB/PS2
Theory
Thenumbers can be Division in microprocessor by keeping one 16
bitnumber in an accumulator and the other 8 bit number in a register C. Then
the content of an accumulator is dividingusing instructionDIV CL. The result in
an accumulator is stored in the Accumulator.
Flow Chart
Start
End
www.wizaardsystem.in 43
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Result
INPUT OUTPUT
(BEFORE DIVISION) (AFTER DIVISION)
AX = 0555H AX = 0510H
CL = 55H
****************************************************************
www.wizaardsystem.in 44
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Objective
To write the program for divide two 16 bitnumbers and store the result in
accumulator.
Apparatus Required
WS-8086Trainers kit V1.2
Keyboard USB/PS2
Theory
Two 16bitnumbers can be Division in microprocessor by keeping one
number in an accumulator and the other number in a register B. Then the
content of an accumulator is dividing using instruction DIV CX. The result in
an accumulator is stored in the Accumulator.
Flow Chart
Start
End
www.wizaardsystem.in 45
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Result
INPUT OUTPUT
(BEFORE DIVISION) (AFTER DIVISION)
AX = AAAAH AX = 02BFH
DX = 00BBH DX = 00BBH
****************************************************************
www.wizaardsystem.in 46
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Increment Accumulator
Decrement register B
YES
Jump if No
Zero
NO
End
www.wizaardsystem.in 47
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Program
ADDRESS OPCODE LABEL MNEMONICS COMMENT
1100 B8 10 00 MOV AX,1110 Get input data to acc.
1103 BB 05 00 MOV BX,0005 get count value
1106 40 LOOP: INC AX increment ACC value
1107 4B DEC BX decrement count value
if count is no zero go to
1108 75 FC JNZLOOP loop(1106H)
110A CC INT 3 store result in ACC &end
Result
INPUT OUTPUT
(BEFORE (AFTER
INCREMENT) INCREMENT)
AX = 1110H AX = 1115H
BX = 0005H
****************************************************************
www.wizaardsystem.in 48
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
5.6. DECREMENTNUMBERS
Objective
To write the assembly program for add two 8 bit numbers by loading
directly and store the result in accumulator.
Apparatus Required
WS-8086Trainers kit V1.2
Keyboard USB/PS2
Theory
The input data is directly loaded to Acc. The decrement count value
loaded to B register directly. The decremented result move to accumulator and
stored in the accumulator.
Flow Chart
Start
Decrement Accumulator
Decrement register B
YES
Jump if No
Zero
NO
End
www.wizaardsystem.in 49
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Program
ADDRESS OPCODE LABEL MNEMONICS COMMENT
1100 B8 15 11 MOV AX,1111 Get input data to acc.
1103 BB 05 00 MOV BX,0005 get count value
1106 48 LOOP: DEC AX Decrement ACC value
1107 4B DEC BX decrement count value
if count is no zero go to
1108 75 FC JNZ LOOP loop
110A CC INT 3 store result in ACC &end
Result
INPUT OUTPUT
(BEFORE (AFTER
DECREMENT) DECREMENT)
AX = 1110H AX = 110CH
BX = 0005H
****************************************************************
www.wizaardsystem.in 50
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
YES
Jump if No
Is small
NO
Decrement count
YES
Jump if No
Zero
NO
End
www.wizaardsystem.in 51
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
www.wizaardsystem.in 52
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Result
INPUT: OUTPUT:
****************************************************************
www.wizaardsystem.in 53
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
www.wizaardsystem.in 54
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Flow Chart
Start
YES
Jump if No
Is large
NO
Decrement count
YES
Jump if No
Zero
NO
End
www.wizaardsystem.in 55
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Program
Result
INPUT: OUTPUT:
****************************************************************
www.wizaardsystem.in 56
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Apparatus Required
Procedure
www.wizaardsystem.in 57
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Flow Chart
Start
NO Store
Comp if AL
Is Small smallest Data
YES
YES
Jump if No
Is large
NO
Decrement count
YES
Jump if No
Zero
NO
End
www.wizaardsystem.in 58
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Program
****************************************************************
www.wizaardsystem.in 59
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Apparatus Required
Procedure
www.wizaardsystem.in 60
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Flow Chart
Start
NO Store
Comp if AL
Is Large smallest Data
YES
YES
Jump if No
Is Small
NO
Decrement count
YES
Jump if No
Zero
NO
End
www.wizaardsystem.in 61
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Program
Result
No. of input data to be given: 04
www.wizaardsystem.in 62
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Start
End
www.wizaardsystem.in 63
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Result
****************************************************************
www.wizaardsystem.in 64
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Apparatus Required
End
www.wizaardsystem.in 65
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Program
Result
****************************************************************
www.wizaardsystem.in 66
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Apparatus Required
Flow Chart
Start
End
www.wizaardsystem.in 67
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Program
Result
****************************************************************
www.wizaardsystem.in 68
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Apparatus Required
Flow Chart
Start
End
www.wizaardsystem.in 69
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Switch ON the microprocessor kit.
Connect the keyboard.
Start entering the program from the memory location 1100H either in
Mnemonics or in Opcode.[Note: Refer Chapter 3]
Once finished typing, press ENTER button twice.
Execute the program.
Verify the result from in 9500H, 9501H & 9502H.
Repeat the experiment for different values (input value location is 1101H).
Program
Result
**************************************************************
www.wizaardsystem.in 70
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Apparatus Required
Flow Chart
Start
yes
If Bit Set= jump to
loop
No
ADD accumulator with
07H
End
www.wizaardsystem.in 71
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Program
Result
AL = 0A AX = 0041H
****************************************************************
www.wizaardsystem.in 72
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Apparatus Required
Flow Chart
Start
yes
If Bit set=jump to
loop
No
Again Subtract acc with
immediate data 07H
End
www.wizaardsystem.in 73
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Result
****************************************************************
www.wizaardsystem.in 74
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Apparatus Required
Flow Chart
Start
End
www.wizaardsystem.in 75
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Procedure
Program
Result
INPUT OUTPUT
BL = 35H AX = 0059
AL = 39H
****************************************************************
www.wizaardsystem.in 76
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Objective
To write the assembly program for generate the Square Wave using
8253/54 IC.And see the result in the 10th pin using oscilloscope.
Apparatus Required
Procedure
www.wizaardsystem.in 77
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Flowchart
Start
End
Checking output:
8253/54 IC
Output check in
10th pin of IC,
using CRO probe
www.wizaardsystem.in 78
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Program
ADDRESS OPCODE MNEMONICS COMMENTS
1100 B0 37 MOV AL,36 timer initialized with counter 1 in
mode 0
1102 BA 16 FF MOV DX,FF16 control port address in DX
1105 EE OUT DX,AL send the data to the timer
1106 B0 05 MOV AL,05 load LSB count in the al
1108 BA 10 FF MOV DX,FF10 port address in DX
110B EE OUT DX,AL output the al contents to clk1
110C B0 00 MOV AL,00 load MSB count in the al
110E EE OUT DX,AL
110F CC INT3 End
Square
wave o/p
Result
Thus the square wave generation using 8253/54 IC was successfully verified.
****************************************************************
www.wizaardsystem.in 79
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Objective
Towrite the assembly program forperform serial communication between
two WS 8086microprocessor kits using RS232 cable.
Apparatus Required
In this program two microprocessor kits are interfaced and the input data is
serially transmitted over it. We used 8251 IC for serial communication.
Procedure
another8086 kit. And also enter the Delay program in the memory
location.
Once finished typing in both the kit, press ENTER key twice.
Execute the Receiver program kit first and then Transmitter program kit.
Output shown in RX kit accumulator & 8600H location.
Now verify the result in Receiver kit.
In this program, transmit data= 55H.
Repeat the program in different data.(input data location = 8501H)
www.wizaardsystem.in 80
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Block diagram:
8086 8086
8251 &
MICRO MICRO
PROCESSOR – MAX 232 PROCESSOR –
KIT 1 KIT 2
Program
www.wizaardsystem.in 81
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
www.wizaardsystem.in 82
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
1028 90 NOP
1029 90 NOP
102A BA 12FF MOV DX,FF12 FF12 STATUS REGISTER
102D B0 00 MOV AL,00 DUMMY MODE WORD
102F EE OUT DX,AL
1030 EE OUT DX,AL
1031 EE OUT DX,AL
1032 B0 40 MOV AL,40H RESET WORD
1034 EE OUT DX,AL
1035 E8 0B 00 CALL 1043
1038 B0 4E MOV AL,4E 01 00 11 10
103A EE OUT DX,AL ONE STOPBIT,NO
103B 90 NOP PARITY,8BITS CHAR
103C 90 NOP
103D B0 27 MOV AL,27 ENABLE TX
103F EE OUT DX,AL
1040 90 NOP
1041 90 NOP
1042 C3 RET
1043 53 PUSH BX DELAY FUNCTION
1044 BB FF 04 MOV BX,04FFH
1047 90 NOP
1048 90 NOP
1049 4B DEC BX
104A 75 FB JNE 1047
104C 5B POP BX
104D C3 RET
Note:
Execute the Receiver program kit first and then Transmitter program kit.
Output seen in receiver kit LCD.
www.wizaardsystem.in 83
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
Result
The given input is serially transmitted from one kit to another kit.
Output seen in receiver kit Accumulator (A=55H).
****************************************************************
www.wizaardsystem.in 84
WS_8086_V1.3KITUSER AND TECHNICAL REFERENCE MANUAL
For Using
Wizaard System 8086 kit
Wizaard System
199-2 V.R.Complex, Siva Sakthi Colony,
Ganapathy, Coimbatore-641012,
Phone: 0422-4380105, Cell: 9843060303
E-Mail:[email protected]
Website:www.wizaardsystem.in
www.wizaardsystem.in 85