The following table shows the positive logic.
Binary-coded
decimal value
b
b
3
2
0
0
0
0
0
0
0
0
0
1
0
1
0
1
0
1
1
0
1
0
The following table shows the latch.
Positive logic
Latch
1
The following table shows the setting value of the parameter n.
Number of seven-
segment displays
Output
(Binary-coded
decimal code)
Latch
n
'+': Positive logic
'-': Negative logic
You can edit the parameters in n to modify the logics for the output transistor and the input of the seven-
segment display.
(Binary-coded
decimal code)
b
b
8
4
1
0
0
0
1
1
0
1
1
1
1
0
1
1
1
1
1
1
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
0
0
0
0
1
0
1
0
1
Signal
0
One
+
+
-
+
0
1
Cha p ter 6 App l ied Ins truc tio ns
Output
2
1
A
1
1
0
1
0
0
0
1
0
0
0
0
1
1
0
1
0
0
0
1
0
0
0
0
1
1
1
1
0
1
Negative logic
Latch
0
-
+
-
+
2
3
4
Signal
B
C
D
0
0
0
0
0
1
0
1
0
0
1
1
1
0
0
1
0
1
1
1
0
1
1
1
0
0
0
0
0
1
Signal
1
Two
-
-
+
-
5
6
7
6 - 6 2 9
6_