Show a letter on a single Common Anode 7 segment display.

Project Name: 
Show a letter on a single Common Anode 7 segment display.

Objective of Project:
Creating a program to show the small letter ‘t’ on a single Common Anode 7 segment display.

Circuit Diagram:





List of components:

SL
Name and Description
Quantity
1
MCU 89C2051
1
2
7 segment display ( Common Anode )
1
3
Resistance 1K Ohm
10
4
Capacitors 30pf
(10 uf 50Volt(1), 100uf 50Volt(1))
2
5
Crystal Q11.059A1
1
6
Voltage regulator 7805
1
7
Bread board
1
8
Connecting wires

9
Battery 9 Volt
1


Flowchart of program:



Printout of Program:



Brief Description of Program: 
Here in this experiment, we used common anode 7 segment display to show the letter ‘t’. Let’s see how it works. We used the port P1 of the at89c2051 microcontroller to glow the LEDs of the 7 segment display. We know that in the common anode if we send 1 (+5V), the display will be activated. And if we send 0 to the LEDs of the common anode, then the LEDs will glow otherwise it will not glow. By knowing this, we come up with the decision to make the letter ‘t’ in such a way that it shows “t” on the display. We have connected the pins of port P1 to the pins of 7 segment display such that P1.0 goes to pin A of the display and sequentially it continues. After that we create the display code. For the letter ‘t’ we need to send the binary code 10000111b that is 87h in hex. Then D, E, F, G LEDs will glow and A, B, C, H LED’s will not glow. Thus we will see the letter ‘t’ on the display. Let’s see how the program will be. In this program, we will need only two instructions. One is MOV P1, #87h that will show the letter. Another one is SJMP LOOP which will keep doing the same thing again and again. Otherwise it will show the letter only once. Actually SJMP stands for Short Jump. It will jump to the LABEL again and again and keep doing it forever. That’s how we will see the letter “t” forever on a common anode 7 segment display.

Achievements (Result): 
It is showing the letter ‘t’ on a single common anode 7 segment display.

To see some projects, please visit my Channel



Comments