7 segment report
TRANSCRIPT
-
8/10/2019 7 Segment Report
1/5
SHAHJALAL UNIVERSITY OF SCIENCE AND TECHNOLOGY
DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING
Course Title: Computer interfacing and industrial automation Lab
Course Code: EEE-424
Experiment No.:
Experiment Name: Write a program to display the digits in decimal, from 0-9 into 7-
segment using the module.
Date of Submission: November 30, 2014
Submitted to:
Md. Rasedujjaman
Assistant Professor,
Department of Electrical and Electronic Engineering,
Shahjalal University of Science and Technology.
Submitted by: Group-
Jibesh Kanti Saha
Reg. No.: 2010338014
4th Year 1stSemester
Department of Eletrical and Eletronic Engineering,
Shahjalal University of Science and Technology.
http://www.sust.edu/department/eee/index.php/en/faculty/91-md-rasedujjaman?TB_iframe=true&height=600&width=1000http://www.sust.edu/department/eee/index.php/en/faculty/91-md-rasedujjaman?TB_iframe=true&height=600&width=1000 -
8/10/2019 7 Segment Report
2/5
Objective:
The main objective of this experiment is to write a program in the software
provided for the module MDA-Win8086 and display digits 1-9 in the 7-
segment of the module. Understanding the interface between the 7-segment and 8086 and how they
works.
Theory:
Interfacing:
The 7 segment inside the MDA8086 trainer kit can be used to display
numbers.
This requires PIO 8255 ports which are already connected to the 7 segment
internally.
Through the code we can access these ports and provide binary or hex
value to switch the required segment on and off.
In order to turn a segment ON, a logical 0 is required as shown below. So
the 7 segment is Common Anode (CA).
Any number from 0 9 can be display on the 7 segment by providing theactual hex or binary value which turns those segments ON to display the
digit.
-
8/10/2019 7 Segment Report
3/5
dp g f e d c b a Decimal hex
1 1 0 0 0 0 0 0 0 C0
1 1 1 1 1 0 0 1 1 F9
1 0 1 0 0 1 0 0 2 A4
1 0 1 1 0 0 0 0 3 B0
1 0 0 1 1 0 0 1 4 99
1 0 0 1 0 0 1 0 5 92
1 0 0 0 0 0 1 0 6 82
1 1 1 1 1 0 0 0 7 F8
1 0 0 0 0 0 0 0 8 80
1 0 0 1 0 0 0 0 9 90
The interfacing circuit of the 7-segment and the 8086 via the PPI 8255A:
-
8/10/2019 7 Segment Report
4/5
Process:
Connected the kit with the PC and set the kit in PC mode. Opened the MDA-WinIDE8086program.
Wrote the code on the editor window.
Complied and ran the code.
Output was shown in the 7-segment of of the module.
In this experiment we operated the 8255 in Mode-0 where all 3 ports (Port-A, port-B and port-C) are set as output port by inputting proper control
word in the control register.In mode-0 the imput data at once is shown in the output. So when the code is
executed, the data is accordingly transferred to output (7-segment display) inparallel lines.
-
8/10/2019 7 Segment Report
5/5
Discussion:
The communication between 8086 and 7-segment is done by simple I/Omethod via the peripheral interface device 8255A. In this method the 8086
sends data assuming 7-segment is always ready to receive the byte. This isthe simplest form of data transfer between a microprocessor and a peripheral
device.