Keyboard matrix circuit: Difference between revisions

Content deleted Content added
Description: "Battleship" analogy makes the sentence run on and is unnecessary, so I've removed it. Reword "Description" paragraph to work for both computer and piano keyboards. Shortened 2nd-last paragraph wording.
m Description: clarify "might" because it is not quite true that it "would" necessarily require 62 wires. (For instance using a series of priority encoders and preventing some combinations of simultaneous key presses).
Line 2:
 
==Description==
Without a matrix circuit, a 61-key keyboard for a [[digital piano]] or a computer keyboard wouldmight require 62 wires to connect (one for each key, and a ground)—an awkwardly thick bundle of wiring. With a matrix circuit, any of 61 keys can be determined with only 16 wires. This is drawn schematically as a matrix of 8 columns and 8 rows of wires, with a switch at every intersection. The keyboard controller scans the columns. If a key has been pressed, the controller scans the rows, determines the row-column combination at which a key has been pressed, and generates the code corresponding to that key. This process occurs so quickly that the user is unaware of any delay.<ref name="dribin">Dave Dribin. [http://www.dribin.org/dave/keyboard/one_html/ "Keyboard Matrix Help"]. 2000.</ref>
[[Image:Inside the Yamaha SY77.jpg|thumb|300px|The inside of a [[Yamaha SY77]] synthesizer shows the various internal components. The switches for each key are connected to the microprocessor chip using a matrix circuit. Even though the SY77 has 61 keys, only two small ribbon cables of wiring comes from the keyboard matrix. ]]