Interfacing
7-Segment with 8051 using keil
7-Segment is
the best display to message something spatially numbers by using low electrical
power.
If we need
to display some numerical data in a message board then we can choose 7-segment
display because the 7-segment is a one type of LED display, it consume minimum
electrical power to display. On the other hand LCD or other messaging display
takes a huge amount of power to display something.
There are
two types of 7-segment displays in our hand.
Common Anode 7-segment display.
And
Common Cathode 7-segment display.
How to use Common Anode 7-segment display
Pin description for common anode
7-segment display
Pin No. Used for
1
e
2
d
3
5v
4
C
5
Dp
6
b
7
a
8
5v
9
f
10
g
In common
anode display if we want to display a LED we have to make output low (0) to
that LED pin.
Suppose if
we want to display ‘1’ in the common anode display, then we have to make b and
c to output low(0) and remaining pin to output high(1).
Like that..
For common anode display
Dp g f e d c b a Hex
code Display
1 1 0 0 0 0 0 0 C0 0
1 1 1 1 1 0 0 1 F9 1
1 0 1 0 0 1 0 0 A4 2
1 0 1 1 0 0 0 0 B0 3
1 0 0 1 1 0 0 1 99 4
1 0 0 1 0 0 1 0 92 5
1 0 0 0 0 0 1 0 82 6
1 1 1 1 1 0 0 0 F8 7
1 0 0 0 0 0 0 0 80 8
1 0 0 1 0 0 0 0 90 9
No comments:
Post a Comment