gj16-18 Count and Stop
Pencil and paper, 15 points

OEES 235

Back to Main Page

 


Legend
CAO Cascade out. Goes high when the counter has reached zero. (If  the counter's EN input is low, CAO will not be high, even if the counter contains zero.
CLK Clock
CENFF Clear enable flip-flop.
D0 & D1 Data inputs. The binary number on these inputs determines how many clock pulses the counter will count until reaching zero. (The counter is a down counter.)
ENBL Enable. Used both for the down counter in this circuit as well as any circuitry that needs a pulse that's a certain number of clock pulses wide. (The octave shifter is one such circuit.)
LSTRT Long start signal. The start signal put into this circuit should be only one clock period wide. The D flip-flop in this circuit gives a start signal that's one clock pulse delayed. Thus, the LSTRT output of the OR gate will be high for two clock pulses.
NONZ Non-zero input data. If the input data is zero, the counter shouldn't do any counting.
Q0 & Q1
Down-counter outputs.
SENFF Set enable flip-flop
START Start pulse. This pulse should be only one clock-period wide. Once the above circuit receives this start pulse, the down counter will count down and continue until it reaches zero.


This circuit will be used in two or three places in the tone translator. When the START signal goes high for one clock period, the ENBL line will go high for the number of clock pulses specified by the binary number put into D1 and D0. In other words, if D1, D0 contains 102 (equal to 2 in decimal), ENBL will go high for two clock pulses. If D1, D0 contains 112 (equal to 3 in decimal), ENBL will go high for three clock pulses.

Don't simulate the above circuit. I'll be giving you a file for it when we're ready to add it to the tone translator.

For this project, draw the signals in the lower portion of the timing diagram above. I recommend you work from left to right in the schematic.

Back to Main Page
1