You are on page 1of 4

Start

Pengaturan
Clock
Input Swith (Up, Down, atau
Reset)
Program
Counter
Program BCD7 Segments
Ouput 7 Segments
Y

Lanjut=?

N
End

Start

Input 2 bilangan biner 3 bit


{A(3)A(2)A(1)A(0) dan
B(3)B(2)B(1)B(0)}
Input Ci

S(0) <= A(0) xor ci xor B(0);


C(1) <= (not A(0) and (B(0) xor ci )) or

Output S(0) dengan


LED (0)

Simpan
S(1) <= A(1) xor C(1) xor B(1);
C(2) <= (not A(1) and (B(1) xor C(1) )) or

Output S(1) dengan


LED (1)

Simpan
S(2) <= A(2) xor C(2) xor B(2);
C(3) <= (not A(2) and (B(2) xor C(2) )) or

Output S(2) dengan


LED (2)

Simpan
S(3) <= A(3) xor C(3) xor B(3);
CO <= (not A(3) and (B(3) xor C(3) )) or
Y

Output S(3) dengan


LED (3) dan Co
dengan LED (4)

Lanjut=?

N
End

Input Ci

Start

2 bilangan biner

Bilangan Prima =?

Y
LED Menyala

Lanjut=?

N
End

LED Mati

You might also like