Professional Documents
Culture Documents
Midterm Quiz
CPE 417 – Microprocessor
Second Semester, AY 2020-2021
I. Application
a.) Design an asynchronous counter which counts from 1 to 10 only:
Use SR - type flip-flop. (25pts)
State Diagram
SD BA RD BA
DC 00 01 11 10 DC 00 01 11 10
00 d 0 0 0 00 d d d d
01 0 0 1 0 01 d d 0 d
11 d d d d 11 d d d d
10 d d d 0 10 0 0 d 1
SD = CBA RD = DB
SC BA RC BA
DC 00 01 11 10 DC 00 01 11 10
00 d 0 1 0 00 d d 0 d
01 d d 0 d 01 0 0 1 d
11 d d d d 11 d d d d
10 0 0 d 0 10 d d d d
SC = C’BA RC = CBA
DC 00 01 11 10 RB BA 00 01 11 10
SB BA DC
00 d 0 0 1 00 d00 1 01 1 11 0 10
DC
DC 01 100 001 011 110 0100 0d 10 11 00
00
11 d d1 d0 dd 1101 dd d0 d1 d0
01
10 10 01 d0 1d 1011 0d 1d dd 0d
11 d d d d
10 d 0 d 1
10 0 1 d 0 RA = A
SA = A’
RB = BA + DB
SB = B’A
SA BA RA BA
• Design (8 pts)
b.) A MOD-16 ripple counter which counts from 0000 to 1111 is currently holding the count
10102. What will the count be after 27th clock pulses? (5 pts)
d.) Using a DECODER, AND gate and BUFFER, design a ROM which stores the following
values: (5 pts)
e.) On an SPM, design a 4-bit binary counter which counts even numbers when a 3-way
switch is switch ON left and counts odd numbers when switch ON Right, thus none of those
makes a regular counting. (15 pts)
Output Value
Line Stored
0 3
1 7
Prepared by:
2 6
3 2 Engr. MARK JOHN FEL T. RAYOS
4 3 Instructor
5 1
6 4
7 6