1.Mempelajari 7 segment LED Display.
2.Dapat configure, controls 7 Segment LED Display module CITS's NX-2000.
3.Dapat create a simple program that will be displayed on the 7 Segment LED Display.
2. Basic Theory
7 Segment meerupakan combination of 7 pieces of LED display dirangkaian a number. 7 segment consists of 2 types of the Common katode (katode linked together) and the Common anode (Anoda linked together), in this experiment used katode is common.
7 Segment LED Display is one part of the module CITS NX-2000 we can use the display to show the number of programs that we sent through a parallel module. To configure the system so we need a parallel module and the module 7 Segment LED Display CITS's NX-2000.
To create a display then the number we need segment (LED) that we need, and mengnonaktifkan segment (LED) that are not needed. For example, to create a number 1, then activate the LED b (D1) and c LED (D2), and disabling the other LED. Next pengamatannya table below the display output.
Dp | g | f | e | d | c | b | a | ||
D7 | D6 | D5 | D4 | D3 | D2 | D1 | D0 | Address | Output |
0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | &HEF | 0 |
0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | &H06 | 1 |
0 | 1 | 0 | 1 | 1 | 0 | 1 | 1 | &H5B | 2 |
0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | &H4F | 3 |
0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | &H66 | 4 |
0 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | &H6D | 5 |
0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | &H7D | 6 |
0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | &H07 | 7 |
0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | &H7F | 8 |
0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | &H6F | 9 |
0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | &H77 | A |
0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | &H7C | B |
0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | &H39 | C |
0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | &H5E | D |
0 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | &H79 | E |
0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | &H71 | F |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | &HFF | 8 |
3. Tools and Materials
1. Parallel Board
2. PC with the programming language Microsoft Visual Basic
3. Parallel cable bus (P-Bus)
4. EX-02 LED 7 Segment Display Board
5. Adapter
4. Experiment Results
EX-02 on the 7 Segment Display LED board will display the number 0-9.setiap times in a click.
In the code & H5 = 1 digit to the LED lights.
In the code & H6 = 2 digits to the LED lights on.
In the code = & H0 to 3 digits on the LED lights.
In the code = & HC to 4 digits on the LED lights.
At HB & code = All digits on the LED lights.
5. Analysis and discussion
In the 7 segment LED display there is a 4 digit
Digits to 4 digits to 3 digits to 2 digits to 1
1. In the code & H5 = 1 digit to the LED lights.
The following command in inputkan the basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, Number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & H5
End Sub
Private Sub From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9 o'clock) H6F = &
End Sub
2. In the code & H6 = 2 digits to the LED that lights
The following command in inputkan on basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, Number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & H6
End Sub
Sub Private From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9) = & H6F
End Sub
3. In the code = & H0 to 3 digits on the LED lights
The following command in inputkan on basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & H0
End Sub
Private Sub From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9) = & H6F
End Sub
4. In the code = & HC to 4 digits on the LED lights
Next inputkan commands in the basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, Number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & HC
End Sub
Private Sub From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9) = & H6F
End Sub
5. At HB & code = All digits on the LED lights
Following command in the inputkan on basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, Number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & HB
End Sub
Private Sub From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9) = & H6F
End Sub
To display such as hours are given with the interval timer 1000 = 1detik way: double click the icon timer ago disetting intervalnya the way click properties.
6. Conclusion
1. Segment 7 is the tool displays a number electronically. One segment can display a number from 1 - 9 with only the 7 LED fruit.
2. Results from the experiment that we do:
In the code & H5 = 1 digit to the LED lights.
In the code & H6 = 2 digits to the LED lights on.
In the code = & H0 to 3 digits on the LED lights.
In the code = & HC to 4 digits on the LED lights.
At HB & code = All digits on the LED lights.
3. Ms Degan use. Visual basic and connected with 7 Segment LED display we can create a program such as a digital clock, calculator, timer in the red light, and another - another.
1. Parallel Board
2. PC with the programming language Microsoft Visual Basic
3. Parallel cable bus (P-Bus)
4. EX-02 LED 7 Segment Display Board
5. Adapter
4. Experiment Results
EX-02 on the 7 Segment Display LED board will display the number 0-9.setiap times in a click.
In the code & H5 = 1 digit to the LED lights.
In the code & H6 = 2 digits to the LED lights on.
In the code = & H0 to 3 digits on the LED lights.
In the code = & HC to 4 digits on the LED lights.
At HB & code = All digits on the LED lights.
5. Analysis and discussion
In the 7 segment LED display there is a 4 digit
Digits to 4 digits to 3 digits to 2 digits to 1
1. In the code & H5 = 1 digit to the LED lights.
The following command in inputkan the basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, Number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & H5
End Sub
Private Sub From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9 o'clock) H6F = &
End Sub
2. In the code & H6 = 2 digits to the LED that lights
The following command in inputkan on basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, Number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & H6
End Sub
Sub Private From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9) = & H6F
End Sub
3. In the code = & H0 to 3 digits on the LED lights
The following command in inputkan on basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & H0
End Sub
Private Sub From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9) = & H6F
End Sub
4. In the code = & HC to 4 digits on the LED lights
Next inputkan commands in the basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, Number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & HC
End Sub
Private Sub From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9) = & H6F
End Sub
5. At HB & code = All digits on the LED lights
Following command in the inputkan on basic Ms.visual:
Dim index As Integer
Dim Number (0-9) As Integer
Private Sub Command1_Click ()
If index <>
Out & H378, Number (index)
Index = index + 1
Else
Index = 0
End If
Out & H37A, & HB
End Sub
Private Sub From_Load ()
Number (0) = & H3F
Number (1) = & H6
Number (2) = & H5B
Number (3) = & H4F
Number (4) = & H66
Number (5) = & H6D
Number (6) = & H7D
Number (7) = & H7
Number (8) = & H7F
Number (9) = & H6F
End Sub
To display such as hours are given with the interval timer 1000 = 1detik way: double click the icon timer ago disetting intervalnya the way click properties.
6. Conclusion
1. Segment 7 is the tool displays a number electronically. One segment can display a number from 1 - 9 with only the 7 LED fruit.
2. Results from the experiment that we do:
In the code & H5 = 1 digit to the LED lights.
In the code & H6 = 2 digits to the LED lights on.
In the code = & H0 to 3 digits on the LED lights.
In the code = & HC to 4 digits on the LED lights.
At HB & code = All digits on the LED lights.
3. Ms Degan use. Visual basic and connected with 7 Segment LED display we can create a program such as a digital clock, calculator, timer in the red light, and another - another.