7segment Saif

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Stamford University Bangladesh

LAB REPORT
Course code : 0611 CSE 328
Course Name: Microprocessor, Microcontrollers
and Embedded Sessional

Submitted by
Name : Saif Fardin
ID: CSE 078 08390
Section: CSE-S-78-A

Submitted to
Tarikuzzaman Emon
Assistant Professor
Dept. Of CSE
Experiment No: 01

Name of the Experiment: Display of Seven Segment

Theory: Seven segment displays were designed to display decimal numerals.


The display has seven segments and can show numerals ranging from 0 to 9.
They can also display the uppercase letters A, C, E, and F, as well as the
lowercase letters b and D.

Figure: A Seven Segment Display


Hexadecimal encoding to display the digits 0 to 9:
Digits Hex value H G F E
0 0C0h 1 1 0 0
1 0F9h 1 1 1 1
2 0A4h 1 0 1 0
3 0B0h 1 0 1 1
4 099h 1 0 0 1
5 092h 1 0 0 1
6 082h 1 0 0 0

Equipment:
A computer
CMD Command prompt
WINCOM Software
Dash Board

Note: Active when 0


Inactive when 1
Code Segment:

A SEGMENT PARA PUBLIC ‘CODE’


ASSUME CS: A
ORG 1000H
S:
MOV AL, 80H [initializes all ports as output]
OUT 1FH, AL [enables display of value in AL register]
MOV AL, 0F8H [gets the hexadeciml value of 7]
OUT 19H, AL [displays the value in AL register on seven segment]
A ENDS
END S

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

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:
In this lab session, we successfully obtained our results despite several system
errors. Ultimately, we produced the desired output and learnt how to use
assembly language programming to interface a seven-segment display with a
microprocessor and show numerical digits. For many embedded systems
applications where visual input is necessary, this basic ability is crucial.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy