Configuration; Matrix Keyboard Scan Code Setup; Defining Scan Codes - Kontron MOPS/386A User Manual

Table of Contents

Advertisement

Kontron

Configuration

You can disable or enable the matrix keyboard controller from the BIOS setup. Please refer
to the I/O Device Configuration Submenu in the Appendix B: BIOS Operation chapter for
additional configuration information.

Matrix Keyboard Scan Code Setup

18.6
The matrix decoder table, which is accessed by the BIOS to convert the internal scan code
to a keyboard scan code, can be configured for a special layout of the matrix keyboard. This
configuration is done with the P389MTX.EXE utility program, which you can download from
the Kontron Web site. This program allows you to assign a scan code or extended scan
codes to any crosspoint on the matrix.
The syntax is: P389MTX <command> <filename>

Defining Scan Codes

18.6.1.
Defining a matrix decoder table for the MOPS/386A is done using the following three steps:
1.
Read the matrix decoder table from the onboard EEPROM with the P389MTX utility.
P389MTX read mymatrix.mtx
2.
Modify the matrix decoder table with a standard editor and save the new table.
3.
Write the new matrix decoder table back to the onboard EEPROM.
P389MTX write mymatrix.mtx
To define the scan code that should be generated when RA3 is connected with Y1, you must
fill in the fourth column in Line two. The numbers, which are entered in hexadecimal form,
are the scan codes, not the ASCII codes of the corresponding key.
Scan codes are individual numbers for every key on your keyboard. For example, the scan
code of the [Esc] key is 01, the [A] key has scan code 1Eh, while the left [Shift] key is
associated with scan code 2Ah. You can find a listing of scan codes below for the MF-II
keyboard below.
Some keys on MF-II keyboards generate extended scan codes. When the key is pressed, the
scan code is transmitted to the keyboard, but the scan code is preceded by a "precode"
with value 0Eh. If you want the matrix keyboard to generate an extended scan code, add
80h to the scan code.
MOPS/386A User's Guide
41
Matrix-Keyboard Interface

Advertisement

Table of Contents
loading

Table of Contents