‘ Communication protocol for keyboards used from the PC-8801 FH

‘ Pin arrangement

Uses a mini DIN 5 pin connector (there are actually only 3 lines connected).

‘Communication protocol

It is a general start-stop synchronization type.
There is only one signal line, and there are no control signals.

Communication speed20800 bps
Start bit1
Data bit12 (LSB first)
Parity bit1 (Even parity)
Stop bit1

The Row and Data of the key matrix that has changed will be sent as is.
R3 to R0 are Row and D7 to D0 are Data.

Example: When you press the [A] key, 010 10111111 (2:FD) is sent, and when you release it, 010 11111111 (2:FF) is sent.

After sending one datum, there seems to be an interval of about 2.4ms before sending the next one.
The parity bit is set so that the total number of 1s in the data bit and parity bit is an even number.

For compatibility reasons, some keys expanded in FH and later are considered to be pressed at the same time as other (legacy) keys.
In the key matrix in the table below, if there is a notation at the bottom, that key is also pressed.

Row_Data01234567
00h01234567
01h89*+=,.RETURN
02h@ABCDEFG
03hHIJKLMNO
04hPQRSTUVW
05hXYZ[\]^-
06h01234567
07h89:;,./_
08hHOMECLRͺ¨INSDELGRPHƒJƒi (Kana)SHIFTCTRL
09hSTOPf.1f.2f.3f.4f.5SPACEESC
0AhTAB«©HELPCOPY-/CAPS
0BhROLL UPROLL DOWN
0Chf.6
SHIFT, f.1
f.7
SHIFT, f.2
f.8
SHIFT, f.3
f.9
SHIFT, f.4
f.10
SHIFT, f.5
BS
INSDEL
INS
SHIFT, INSDEL
DEL
INSDEL
0Dh•ΟŠ· (Conversion)
SPACE
Œˆ’θ (Decision)
SPACE
PC‘SŠp (Full-width)
0EhRETURN(main)
RETURN
RETURN (10key)
RETURN
SHIFT (Left)
SHIFT
SHIFT (Right)
SHIFT

0

The actual keyboard sends data in the following orders:

INSThe press/release order is [extended key] [conventional SHIFT] [conventional key]
f.6 to f.10When pressing, the order is [extended key][conventional SHIFT][conventional key],
when releasing, the order is [extended key][conventional key][conventional SHIFT]
OthersThe press/release order is [extended key][traditional key]

Example: If you press and release [f.6], (C:FE)(8:BF)(9:FD)(C:FF)(9:FF)(8:FF) will be sent.

88VA mode has not been investigated yet.

‘ Mystery

Bit 7 of Row 0Eh is always 0 ?