摘要 |
<p>A memory mapped keyboard controller (108) within a peripheral controller (103) for use in an Industry Standard Architecture (ISA) computer (102) provides a method and apparatus for efficiently monitoring and reading a keyboard switch matrix. In a first mode of operation, the controller (108) activates all the columns and monitors all the rows in the switch matrix to detect when any one or more of the rows becomes active, indicating that at least one key on the keyboard (112) has been pressed. When any row in the matrix is detected as active, then the keyboard controller (108) enters a second mode wherein it selectively activates individual columns and monitors the rows in the switch matrix to detect which row and column contain the activated switch. When the switch location is determined, this location is interpreted by the keyboard controller (108) into a scan code for the ISA computer (102).</p> |