Sei sulla pagina 1di 9

DIGITAL ELECTRONICS AND

MICRO-CONTROLLERS

Dr. Blent VURAL

bvural@yidiz.edu.tr
www.yarbis.yildiz.edu.tr/bvural
@_VuralBulent_

Lecture-3
Mano, M.M., Digital Design, Prentice Hall, 2002
Anil K. Maini, Digital Electronics (Principels, Devices and Applications),
Willey
Digital Electronics Part I Combinational and Sequential Logic, Dr. I. J.
Wassell
Lecture-5
Digital Electronics and MicroContr. YTU-ELM 2
Problem
A basic calculator (has adder and subtractor
function) will be designed. When Button1(B1)
pushed, the calculator will subract the less
number from greater one. When Button2 (B2)
pressed, the calculator will add up the numbers.
A
0
A
1
A
2
A
3
B
0
B
1
B
2
B
3
A=B
Digital Electronics and MicroContr. YTU-ELM 3
BUT2 BUT1 AB Fn A3 A2 A1 A0 B3 B2 B1 B0 Cin
0 0 X X 0 0 0 0 0 0 0 0 0
0 1 A>B A-B A3 A2 A1 A0 ~B3 ~B2 ~B1 ~B0 1
0 1 A<B B-A ~A3 ~A2 ~A1 ~A0 B3 B2 B1 B0 1
1 0 X A+B
A3 A2 A1 A0 B3 B2 B1 B0 0
1 1 X X X X X X X X X X X
BUT2 BUT1 AB Fn Cout S3 S2 S1 S0
0 0 X X X 0 0 0 0
0 1 A>B A-B 1 S3 S2 S1 S0
0 1 A<B B-A 1 S3 S2 S1 S0
1 0 X A+B
X
S3 S2 S1 S0
1 1 X X X
X X X X
Digital Electronics and MicroContr. YTU-ELM 4
Digital Electronics and MicroContr. YTU-ELM 5
Digital Electronics and MicroContr. YTU-ELM 6
SEQUENTIAL LOGIC
The logic circuits discussed previously
are known as combinational, in that the
output depends only on the condition of
the latest inputs.
However, we will now introduce a type
of logic where the output depends not
only on the latest inputs, but also on the
condition of earlier inputs. These circuits
are known as sequential, and implicitly
they contain memory elements.
Digital Electronics and MicroContr. YTU-ELM 7
SEQUENTIAL LOGIC
An RS latch is a memory element with 2 inputs:
Reset (R) and Set (S) and 2 outputs: Q and ~Q.
S R Q
n+1
~Q
n+1
Commnet
0 0 Q
n
~Q
n
HOLD
0 1 0 1 RESET
1 0 1 0 SET
1 1 0 0 ILLEGAL
Where is the Q
n+1
next state
and is the Q
n
current state
Digital Electronics and MicroContr. YTU-ELM 8
Digital Electronics and MicroContr. YTU-ELM 9

Potrebbero piacerti anche