Objective:: Lab#10: 7-Segment Display SSUET/QR/114
Objective:: Lab#10: 7-Segment Display SSUET/QR/114
Objective:: Lab#10: 7-Segment Display SSUET/QR/114
LAB # 10
Objective:
Write a program to display the digits in decimal, from 0-7 in to 7-segment.
Theory:
7 SEGMENT DISPLAY:
The 7 segment inside the MDA – 8086 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.
Any number from 0 – 9 can be display on the 7 segment by providing the actual hex or
binary value which turns those segments ON to display the digit.
SOURCE CODE:
Assembly code Equivalent machine language code
STEPS TO FOLLOW:
1. STEP#1: Put the Kit in PC mode, move jumper P1 which located on the kit like this.
SCREEN SHOTS:
TASK#1:Write a program to display all digits from 0-9 as shown in the following diagram.
SOLUTION: