CSE - 328-Microprocessor - LAB - Manual-TE
CSE - 328-Microprocessor - LAB - Manual-TE
1|P ag e
Experiment No. : 1
Name of the Experiment: Display of Seven Segment
Theory:
2|P ag e
Note: Active when 0
Inactive when 1
Equipments:
A computer
CMD Command prompt
WINCOM Software
Dash Board
Code Segment:
S:
3|P ag e
DOS Command:
The following commands are given in the command prompt in order
to connect the code segment with the WINCOM software.
CD\
CD MDA
CD 8086
CD ASM8086
MASM
(NAME_OF_THE_FILE).ASM
(NAME_OF_THE_FILE).OBJ
(NAME_OF_THE_FILE).LST
LOD186
(NAME_OF_THE_FILE).0BJ
(NAME_OF_THE_FILE).ABS
L (ENTER)
F3 (ENTER)
(NAME_OF_THE_FILE).ABS
G (ENTER)
After the commands are given, we can see our desired output on the
tool kit.
4|P ag e
Discussion:
5|P ag e
Experiment No. : 2
Name of the Experiment: To turn the Red light on LED
Theory:
This is the segment B(1BH). There are four LED lights available. The process
to turn on the lights on is the reverse of seven segments. The code for each
LED light are: Red ( PB 0), Green ( PB 1), Yellow ( PB 3), Red ( PB 3).
Equipments:
A computer
CMD Command prompt
WINCOM Software
Dash Board
6|P ag e
Code Segment:
S:
L:
JMP L
A ENDS
END S
7|P ag e
DOS Command:
CD\
CD MDA
CD 8086
CD ASM8086
MASM
(NAME_OF_THE_FILE).ASM
(NAME_OF_THE_FILE).OBJ
(NAME_OF_THE_FILE).LST
LOD186
(NAME_OF_THE_FILE).0BJ
(NAME_OF_THE_FILE).ABS
L (ENTER)
F3 (ENTER)
(NAME_OF_THE_FILE).ABS
G (ENTER)
After the commands are given, we can see our desired output on the
tool kit.
8|P ag e
Discussion:
The goal of the given experiment was to turn on RED LED on using
LED display. We achieved the goal encountering some difficulty.
The PC was shut due to some unavoidable circumstances. We had
to rewrite the code and then provided the DOS Commands. Also, we
had difficulty turning the RED LED on and off using the JMP (jump)
which is a loop.
Thus, we ran the WINCOM s/w after the providing the DOS
Commands and got the desired output.
9|P ag e
Experiment No. : 3
Name of the Experiment: To turn the LED light clock wise
Theory:
This is the segment B (1BH). There are four LED lights available. The process
to turn on the lights on is the reverse of seven segments. The code for each
LED light are: Red ( PB 0), Green ( PB 1), Yellow ( PB 3), Red ( PB 3).
Equipments:
A computer
CMD Command prompt
WINCOM Software
Dash Board
10 | P a g e
Code Segment:
S:
11 | P a g e
MOV AL, 08H
OUT 1BH, AL
JMP L
A ENDS
END S
DOS Command:
CD\
CD MDA
CD 8086
CD ASM8086
MASM
(NAME_OF_THE_FILE).ASM
(NAME_OF_THE_FILE).OBJ
(NAME_OF_THE_FILE).LST
12 | P a g e
LOD186
(NAME_OF_THE_FILE).0BJ
(NAME_OF_THE_FILE).ABS
After the commands are given we select the WINCOM software from
PC mode. We run the WINCOM s/w and press RESET from the tool
kit. As soon as we press the RESET, we can see some machine
written on the PC screen after which we give the following
commands:
L (ENTER)
F3 (ENTER)
(NAME_OF_THE_FILE).ABS
G (ENTER)
After the commands are given, we can see our desired output on the
tool kit.
Discussion:
The goal of the given experiment was to turn on LED on using LED
display clock wise. We achieved the goal encountering some
difficulty.
The PC was shut due to some unavoidable circumstances. We had
to rewrite the code and then provided the DOS Commands. Also, we
had difficulty turning the LED clock wise on and off using the JMP
(jump) which is a loop.
Thus, we ran the WINCOM s/w after the providing the DOS
Commands and got the desired output.
13 | P a g e
Experiment No. : 4
Name of the Experiment: To turn the LED light Anti clock wise
Theory:
This is the segment B (1BH). There are four LED lights available. The process
to turn on the lights on is the reverse of seven segments. The code for each
LED light are: Red ( PB 0), Green ( PB 1), Yellow ( PB 3), Red ( PB 3).
Equipments:
A computer
CMD Command prompt
WINCOM Software
Dash Board
14 | P a g e
Code Segment:
S:
JMP L
A ENDS
END S
DOS Command:
CD\
CD MDA
CD 8086
CD ASM8086
MASM
(NAME_OF_THE_FILE).ASM
(NAME_OF_THE_FILE).OBJ
(NAME_OF_THE_FILE).LST
LOD186
(NAME_OF_THE_FILE).0BJ
(NAME_OF_THE_FILE).ABS
16 | P a g e
After the commands are given we select the WINCOM software from
PC mode. We run the WINCOM s/w and press RESET from the tool
kit. As soon as we press the RESET, we can see some machine
written on the PC screen after which we give the following
commands:
L (ENTER)
F3 (ENTER)
(NAME_OF_THE_FILE).ABS
G (ENTER)
After the commands are given, we can see our desired output on the
tool kit.
Discussion:
The goal of the given experiment was to turn on LED on using LED
display clock wise. We achieved the goal encountering some
difficulty.
The PC was shut due to some unavoidable circumstances. We had
to rewrite the code and then provided the DOS Commands. Also, we
had difficulty turning the LED clock wise on and off using the JMP
(jump) which is a loop.
Thus, we ran the WINCOM s/w after the providing the DOS
Commands and got the desired output.
17 | P a g e
Experiment No. : 5
Name of the Experiment: The Traffic Signal
Theory:
In general we know how a traffic signal works. At first the red light turns on
then the yellow light after which the green light turns on.
Here, we first turn the Red light on and then display 0-9 backwards on the
seven segment display. Then the yellow light , green light and then again the
red light.
Equipments:
A computer
CMD Command prompt
WINCOM Software
Dash Board
18 | P a g e
Code Segment:
S:
22 | P a g e
MOV CX, 0FFFFH [delay]
L16: LOOP 16
25 | P a g e
MOV AL, 0FFH [ turn off segment]
OUT 19H, AL
28 | P a g e
MOV AL, 082H [ display 6 on seven segment]
OUT 19H, AL
A ENDS
END S
DOS Command:
CD\
CD MDA
CD 8086
CD ASM8086
MASM
(NAME_OF_THE_FILE).ASM
(NAME_OF_THE_FILE).OBJ
(NAME_OF_THE_FILE).LST
LOD186
(NAME_OF_THE_FILE).OBJ
(NAME_OF_THE_FILE).ABS
After the commands are given we select the WINCOM software from
PC mode. We run the WINCOM s/w and press RESET from the tool
kit. As soon as we press the RESET, we can see some machine
written on the PC screen after which we give the following
commands:
L (ENTER)
F3 (ENTER)
(NAME_OF_THE_FILE).ABS
G (ENTER)
31 | P a g e
After the commands are given, we can see our desired output on the
tool kit.
Discussion:
The goal of the given experiment was to display the Traffic Signal.
We achieved the goal encountering some difficulty.
The PC was shut due to some unavoidable circumstances. We had
to rewrite the code and then provided the DOS Commands.
Moreover, the code for the experiment was too lengthy we
experiment which is why there were several mistakes and the
outcome of the experiment was achieved lately. After several
checking of the code we achieved the goal.
Thus, we ran the WINCOM s/w after the providing the DOS
Commands and got the desired output.
32 | P a g e
Experiment No. : 6
Name of the Experiment: Addition
Theory:
We add to numbers eg, 9 and 5 which is displayed on the seven segment and
their result is also displayed in the seven segment. The result of the addition
shall only be shown after the LED lights turn on in the order as PB0, PB1, PB2
and PB3 sequentially. After the LED lights are done then the seven segment
shall display 1 and 4 one after the other which is the required result.
Equipments:
A computer
CMD Command prompt
WINCOM Software
Dash Board
Code Segment:
S:
33 | P a g e
MOV AL, 092H [ display 5 on seven segment]
OUT 19H, AL
A ENDS
END S
DOS Command:
CD\
CD MDA
CD 8086
CD ASM8086
MASM
(NAME_OF_THE_FILE).ASM
(NAME_OF_THE_FILE).OBJ
(NAME_OF_THE_FILE).LST
LOD186
(NAME_OF_THE_FILE).OBJ
(NAME_OF_THE_FILE).ABS
After the commands are given we select the WINCOM software from
PC mode. We run the WINCOM s/w and press RESET from the tool
kit. As soon as we press the RESET, we can see some machine
written on the PC screen after which we give the following
commands:
36 | P a g e
L (ENTER)
F3 (ENTER)
(NAME_OF_THE_FILE).ABS
G (ENTER)
After the commands are given, we can see our desired output on the
tool kit.
Discussion:
The goal of the given experiment was to display the addition result
using the seven segment. We achieved the goal encountering some
difficulty.
The PC was shut due to some unavoidable circumstances. We had
to rewrite the code and then provided the DOS Commands.
Moreover, the code for the experiment was too lengthy we
experiment which is why there were several mistakes and the
outcome of the experiment was achieved lately. After several
checking of the code we achieved the goal.
Thus, we ran the WINCOM s/w after the providing the DOS
Commands and got the desired output.
37 | P a g e