gk12-16 Note to 12-Bit-Period Converter
30 points
OEES 235

Back to Main Page
Binary
Note
Code
Decimal
Period
Length
(Clock
Pulses)
Binary Period Length
C 0000 4095 1111 1111 1111
C# 0001 3865 1111 0001 1001
D 0010 3648
D# 0011 3443
E 0100 3250
F 0101 3068
F# 0110 2896
G 0111 2733
G# 1000 2580
A 1001 2435
A# 1010 2298
B 1011 2169
 
The Note-to-Period converter of the previous project (gk12-08) was only for a four-bit period. To get accurate musical notes, we need a twelve-bit period.
  1. Create a schematic similar to gk12-08 so that it  has twelve 16-bit multiplexers. The high-order four bits of each multiplexer won't be used. (Hopefully, Lever will detect this and delete the circuitry for these bits.)
  2. Use the Windows Scientific Calculator to fill in the Binary Period Length column in the table above.
  3. Connect each multiplexer A input to either VCC or GND, according to the Binary Period Length column.
  4. Right click here to get the test vectors.
  5. Verify that the binary number produced for each Note Code is correct. 
    • I'm not furnishing waveforms for this project, because I haven't connected all the A inputs on my schematic--I'm going to get one of your schematics after you've done so.


Back to Main Page
1