gj24-12 Square Wave Generator, Version 2
20 points
OEES 235
![]() |
Legend
|
![]() |
| The previous version of the
square-wave generator (gj12-09) was a bit complicated, and had some
problems that aren't readily apparent. Version 2, uses the Count and
Stop block to simplify the circuit. Version 2 also has the latches
needed to hold the number from the octave shifter. Remember that the Count and Stop block operates as follows:
I38 is a 4-bit half-adder. It's being used to subtract one from the number coming from the octave shifter. The nature of the square wave generator circuit is to give a square wave that's one pulse too wide. Subtracting one solves this problem. Notice that B3 - B0 are tied high. In other words, 1111 is added to whatever number is present on A3 - A0. The number 1111 is the two's complement of 1. In other words, it's -1. Here are descriptions of what's needed for inputs to the two flip-flops and to the Count and Stop block:
Right click here to get the schematic for the Count and Stop block. Right click here to get the test vector file. |