How do I wire my CD74HC4067 multiplexer for my 61-note matrixed MIDI keyboard?

If you already have diodes at each crosspoint, you can easily scan the matrix on one dimension (the anodes) using a 74HC4017. It just requires a clock pulse to step from one output (out of 10) to the next and a reset pulse to ensure you start at the right line.

You need four lines to control the selection of the 74HC4067. You might as well leave it enabled. You can work it either way but it may be easiest to select one line in the multiplexer and scan the 74HC4017 through all 8 (or 10) outputs while you read the common of the 74HC4067 with a pull-down to ground.

1 Like