Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

Swam Win Thant Electrical and Electronic Principle First Attempt

HND-220802E Assignment- 1

Pearson BTEC Level 5 Higher National Diploma in Engineering

Unit 20 Digital Principle

A1 of 2 Laboratory Portfolio

(Electrical and Electronic Engineering)

Assignment 1

Lecturer’s Name: Daw Marlar Kyaw


Student’s Name: Swam Win Thant

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

Simulation by using Multisim; 2 switches are OFF

Figure 3

Simulation by using Multisim; 2 switches are ON

pg. 5
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1

Figure 4

Simulation by using Multisim; Switch B= ON, Switch A=OFF

Figure 5

Simulation by using Multisim; Switch A=ON, Switch B= OFF

pg. 6
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1

Figure 6

Simulation by using X-OR gate; switch A=ON, switch B=OFF

Figure 7

Simulation by using X-OR gate; switch A=OFF, switch B=ON

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,

F=A’B’C’D + A’B’CD + A’BC’D’ + A’BC’D + A’BCD’ + A’BCD + ABC’D’ + ABCD’ +


ABCD

pg. 8
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1
Karnaugh Map,

F = A’D + BD’ + BC

List of the require gates using TTL ICs

1. 2 NOT-Gates
2. 3 AND-Gates
3. 2 OR-Gates

Figure;8 Simulation of the given Boolean function by using Multisim

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,

3-bit state diagram using JK flip-flop

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;

Present state Next state J2 K2 J1 K1 J0 K0


Q2 Q1 Q0 Q2 Q1 Q0
0 0 0 0 0 1 0 X 0 X X 1
0 0 1 0 1 1 0 X 1 X X 0
0 1 1 0 1 0 0 X X 0 X 1
0 1 0 1 1 0 1 X X 0 0 X
1 1 0 1 1 1 X 0 X 0 1 X
1 1 1 1 0 1 X 0 X 1 X 0
1 0 1 1 0 0 X 0 0 X X 1
1 0 0 0 0 0 X 1 0 X 0 X
On table, X = don’t care condition because there are two possible conditions for changing
states in the truth table of JK flip-flop.

J K Q
0 0 No change
0 1 0
1 0 1
1 1 Toggle
Truth table of JK flip-flop

Two possible conditions of changing from 0 to 0.

J=0, K=0 and

J=0, K=1

Thus, K assume X.

Two possible conditions of changing from 0 to 1.

J=1, K=0 and J=1, K=1. Thus, K assume X.

Tow possible conditions of changing from 1 to 0.

J=0, K=1 and J=1, K=1. Thus, J 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.

J=0, K=0 and J=1, K=0. Thus, J assume X.

Equation of the JK flip-flop,

J0= Q1Q2 + Q1’ Q2’ (X-NOR gate)

K0= Q1Q2’+Q1’Q2 (X-OR gate)

J1=Q0.Q2’

K1=Q0.Q2

J2=Q1.Q0’

K2=Q1’. Q0’

Figure;9 Simulation of the given logic circuit by using Multisim

pg. 12
Swam Win Thant Electrical and Electronic Principle First Attempt
HND-220802E Assignment- 1

Part 2 (b)

Figure;10 Simulation of 7 segment display circuit of initial state

Figure;11 Simulation of 7 segment display circuit on working situation

Require components of the given carparking system,

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

Figure;12 ICs 74193 Data sheet

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

FLOYD, T., 2015. Digital Fundamentals. 11th ed. s.l.:Pearson.

HUGHES, E. M.-S., 2012. Electrical and electronic technology. 11th ed.


s.l.:Pearson.

pg. 14

You might also like