Professional Documents
Culture Documents
Swanm Win Thant (EEE) - Digital A1
Swanm Win Thant (EEE) - Digital A1
HND-220802E Assignment- 1
A1 of 2 Laboratory Portfolio
Assignment 1
pg. 1
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Table of Contents
Part 1 (a).................................................................................................3
Part 1 (b).................................................................................................8
Part 2 (a)...............................................................................................10
Part 2 (b)...............................................................................................13
References..............................................................................................15
pg. 2
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Part 1 (a)
Figure 1
A B AB A’B’ Light
0 0 0 1 0
0 1 0 0 1
1 0 0 0 1
1 1 1 0 0
According to the above table, there is 2 inputs and when we set A=0 and B=0, AB will be
0 and A’B’ will be 1. And use the NOR gate, output is 0. As a given figure, when active high,
the light will turn ON. So, that output 0 situation, the light will be OFF. When A=0, B=1 and
output AB=0, A’B’=0 and NOR gate output is 1, The light will turn ON. And similarly, in
A=1, B=0 situation, the light will also be ON cause the final output is active high=1. But
when A=1, B=1, the final output will be 0, so the light will OFF. In overall, the light will be
ON when just one switch is ON and if all of two switch is being ON or OFF at the same time,
the light will be OFF.
pg. 3
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Truth Table of the given problem,
A B Light
0 0 0
0 1 1
1 0 1
1 1 0
Boolean Expression,
Y= A’B’ + A” B”
Karnaugh Map,
Y = AB’ + A’B
=A B
pg. 4
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Figure 2
Figure 3
pg. 5
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Figure 4
Figure 5
pg. 6
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Figure 6
Figure 7
pg. 7
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Part 1 (b)
F (A, B, C, D) = (1, 3, 4, 5, 6, 7, 12, 14, 15)
Truth Table for the given problem,
A B C D F
0 0 0 0 0
0 0 0 1 1
0 0 1 0 0
0 0 1 1 1
0 1 0 0 1
0 1 0 1 1
0 1 1 0 1
0 1 1 1 1
1 0 0 0 0
1 0 0 1 0
1 0 1 0 0
1 0 1 1 0
1 1 0 0 1
1 1 0 1 0
1 1 1 0 1
1 1 1 1 1
Boolean Algebra,
pg. 8
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Karnaugh Map,
F = A’D + BD’ + BC
1. 2 NOT-Gates
2. 3 AND-Gates
3. 2 OR-Gates
pg. 9
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Part 2 (a)
There are three JK flip-flops (FF0, FF1, FF2) in the given circuit. The outputs of flip-flops
are connected to each J and K inputs. FF0 makes Q0 and Q̄0, FF1 produces Q1 and Q̄1, FF2
turns out Q2 and Q̄2. Q1 and Q2 are connected to K0 through X-OR gate and connected to J0
through X-NOR gate. Q0 and Q̄2, connect to J1 through AND gate and Q0 and Q2, connect to
K1 through AND gate. Q̄1 and Q̄0, connect to K2 through AND gate and Q1 and Q̄, connect to
J2 through AND gate. Contemporised pulse of clock is given and once a clock pulse trigged,
the output of Q2, Q1 and Q0 one at the same time. The diagram as follow,
pg. 10
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
If one state change to another, the outputs changings are as follow;
J K Q
0 0 No change
0 1 0
1 0 1
1 1 Toggle
Truth table of JK flip-flop
J=0, K=1
Thus, K assume X.
pg. 11
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Two possible conditions of changing from 1 to 1.
J1=Q0.Q2’
K1=Q0.Q2
J2=Q1.Q0’
K2=Q1’. Q0’
pg. 12
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Part 2 (b)
1. In/Out sensor
2. VCC 5 V supplier
3. 74193 ICs
4. DCD-7 segment decoder and
5. LEDs
pg. 13
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
There are 2 sensors of IN/OUT sensors and the In-sensor is connected to the UP-pin of
the 74193 ICs and OUT-pin is connected to the down pin of the ICs. That IC is given 5 V
VCC supply and as the output, 7-segment decoder is connected. When a car comes in the
parking, the IN-sensor will detect and the number of 7 segment will increase, and when the
car outs, the OUT-sensor will detect and the number of 7 segment will decrease.
References
Available at:
https://html.alldatasheet.com/html-pdf/51050/FAIRCHILD/74193/404/1/74193.
html
Available at: http://learn.adafruit.com/breadboards-for-beginners
pg. 14