-
Notifications
You must be signed in to change notification settings - Fork 1.7k
PC 9801 Keyboard
The converter allows PC98 keyboard to be connected to modern computer with USB interface.
Prebuilt converter is available here: https://geekhack.org/index.php?topic=72052.0
https://github.com/tmk/tmk_keyboard/tree/master/converter/pc98_usb
On host/converter:
8Pin mini DIN
___ ___
/ |_| \
/ 8 7 6 \
| 5 4 3 |
\_ 2 1 _/
\_____/
(receptacle)
Pin mini DIN AVR Pins on TMK converter
---------------------------------------------
1 ~RST(TXD) PD3
2 GND GND
3 ~RDY PD4
4 RXD PD2
5 ~RTY PD1
6 NC
7 NC
8 5V VCC
The converter doesn't need external pull-up resisters usually but having them on all of four lines won't hurt and can avoid unexpected behaviour at powerup phase.
TODO: Check keyboard and host side schematic.
- DATA high at idle
- ~RDY 0:Permit
- ~RTY 0:Resend
- ~RST 0:Reset
Data format: 1 start bit, 8 data bit, odd parity, 1 stop bit
http://www.webtech.co.jp/company/doc/undocumented_mem/io_kb.txt
response from keyboard:
FAh: ACK
FCh: NACK
9Dh 7xh
second byte:
0111 xxxx
|||`- NumLock
||`-- ?
|`--- CapsLock
`---- Kana
0x9C 0x70
This inhibits some keyboards from repeating keys.
Old keyboards do not recognize the command at all, some reply with ACK but cause no effect.
- PC-9801V keyboard does not support the command, it just replies with same code(0x9C).
- Dboard sono1 recognizes the command but it does not stop repeating. It applies with 0xFA(ACK) even to unsupported command apparently.
- Raku Raku keybaord supports this.
This inhibiting feature seems to be supported only by newer keyboards.
0x95 0x03
This enables Windows and Menu key on PC-9821 keyboards. Confirmed with PC-9801-119(CMP-6D1Y7).
PC-9801V: Not supported
TMK:b604da/LUFA:d6a7df
Keyboard Type: s9F r009F [OLD]
Inhibit Repeat: s9C r009C
Enable Winkey: s95 r0095
USB configured.
Dboard sono1: Seems to recognze buy without Windows key
TMK:b604da/LUFA:d6a7df
Keyboard Type: s9F rFFFF [OLD]
Inhibit Repeat: s9C r00FA s70 r00FA
Enable Winkey: s95 r00FA s03 r00FA
USB configured.
CMP-6D1Y7: New type and Windows key is enabled
TMK:6a6c07/LUFA:d6a7df
Keyboard Type: s9F r00FA r00A0 r0080 [NEW]
Inhibit Repeat: s9C r00FA s70 r00FA
Enable Winkey: s95 r00FA s03 r00FA
USB configured.
https://geekhack.org/index.php?topic=110094.msg3164146#msg3164146
,---. ,---. ,------------------------. ,------------------------. ,------------------------.
| 60| | 61| | 62 | 63 | 64 | 65 | 66 | | 67 | 68 | 69 | 6A | 6B | | 52 | 53 | 54 | 55 | 56 |
`---' `---' `------------------------' `------------------------' `------------------------'
,-------------------------------------------------------------. ,-------. ,---------------.
| 00 | 01| 02| 03| 04| 05| 06| 07| 08| 09| 0A| 0B| 0C| 0D| 0E | | 38| 39| | 3E| 3F| 4D| 41|
|-------------------------------------------------------------| |-------| |---------------|
| 0F | 10| 11| 12| 13| 14| 15| 16| 17| 18| 19| 1A| 1B| | | 36| 37| | 42| 43| 44| 45|
|-------------------------------------------------------` 1C | |-------| |---------------|
| 74| 71| 1D| 1E| 1F| 20| 21| 22| 23| 24| 25| 26| 27| 28| | | 3A | | 46| 47| 48| 49|
|-------------------------------------------------------------| |-------| |---------------|
| 70 | 29| 2A| 2B| 2C| 2D| 2E| 2F| 30| 31| 32| 33| 70/7D | | 3B| 3C| | 4A| 4B| 4C| 4D|
`-------------------------------------------------------------' |-------| |---------------|
| 72 | 77| 73| 51 | 34 | 35 | 79| 78| 5E| | 3D | | 4E| 4F| 50| 1C|
`-------------------------------------------------------' `-------' `---------------'
5E: HOME on PC98XL keyboard
79: ALT on DIGITAL WAVE Dboard
77,78,79: Left Win, right Win and Application on PC-9821 keyboard
,---. ,---. ,------------------------. ,------------------------. ,------------------------.
|Stp| |Cpy| | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10| | F11| F12| F13| F14| F15|
`---' `---' `------------------------' `------------------------' `------------------------'
,-------------------------------------------------------------. ,-------. ,---------------.
| Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| =|JPY|Bspc| |Ins|Del| |Hom|Hlp| -| /|
|-------------------------------------------------------------| |-------| |---------------|
| Tab | Q| W| E| R| T| Y| U| I| O| P| [| ]| | |RUp|RDn| | 7| 8| 9| *|
|-------------------------------------------------------`Enter| |-------| |---------------|
|Ctl|Cap| A| S| D| F| G| H| J| K| L| ;| '| \| | | Up | | 4| 5| 6| +|
|-------------------------------------------------------------| |-------| |---------------|
| Shift | Z| X| C| V| B| N| M| ,| .| /| RO| Shift | |Lef|Rig| | 1| 2| 3| =|
`-------------------------------------------------------------' |-------| |---------------|
|Kana|Win|GRP|NFER| Space |XFER| ^2|Win| ^3| | Down | | 0| ,| .| ^1|
`-------------------------------------------------------' `-------' `---------------'
^1: Enter on keypad is identical to Enter on alphanumeric portion
^2: ALT on DIGITAL WAVE Dboard while Menu on PC-9821 keyboard
^3: HOME on PC98XL keyboard
^4: CAPS and Kana are locking keys, either mechanically or by firmware emulation
Not confirmed.
,-------------------------------------------------------------------------------------------.
| 73| 62| 63| 64| 65| 66| 67| 68| 69| 6A| 6B| 52| 53| 54| 55| 56| 36| 37| | | | | |
`-------------------------------------------------------------------------------------------'
,-------------------------------------------------------------. ,-------. ,-------------------.
| 00 | 01| 02| 03| 04| 05| 06| 07| 08| 09| 0A| 0B| 0C| 0D| 0E | | 38| 39| | 3F| 3E| 61| 4D| 60|
|-------------------------------------------------------------| |-------| |-------------------|
| 0F | 10| 11| 12| 13| 14| 15| 16| 17| 18| 19| 1A| 1B| | | 3A | | 42| 43| 44| | 41|
|-------------------------------------------------------` 1C | |-------| |-------------------|
| 74| 71| 1D| 1E| 1F| 20| 21| 22| 23| 24| 25| 26| 27| 28| | | 3B| 3C| | 46| 47| 48| | 45|
|-------------------------------------------------------------| |-------| |-------------------|
| | 70 | 29| 2A| 2B| 2C| 2D| 2E| 2F| 30| 31| 32| 33| 70/7D | | 3D | | 4A| 4B| 4C| | 4D|
|-------------------------------------------------------------| |-------| |-----------| 1C|---|
| | | 51 | 34 | 35 | | 72 | | | | | 4E| 4F| 50| | 49|
`-------------------------------------------------------------' `-------' `-------------------'
,-------------------------------------------------------------------------------------------.
|FNC| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|F13|F14|F15|F16|F17|F18|F19|F20|F21|F22|
`-------------------------------------------------------------------------------------------'
,-------------------------------------------------------------. ,-------. ,-------------------.
| Esc| 1| 2| 3| 4| 5| 6| 7| 8| 9| 0| -| ^|JPY|Bskp| |Skp|Rst| |Hlp|Hom|Cpy| =|Stp|
|-------------------------------------------------------------| |-------| |-------------------|
| Tab | Q| W| E| R| T| Y| U| I| O| P| @| [| | | Up | | 7| 8| 9| II| /|
|-------------------------------------------------------`Enter| |-------| |-------------------|
|Ctl|Cap| A| S| D| F| G| H| J| K| L| ;| :| ]| | |Lef|Rig| | 4| 5| 6| I| *|
|-------------------------------------------------------------| |-------| |-------------------|
|SW1|Shift| Z| X| C| V| B| N| M| ,| .| /| RO| Shift | | Down | | 1| 2| 3| | -|
|-------------------------------------------------------------' |-------| |-----------|Ent|---|
|SW2| Eisu | MHEN | Space | HENK | HIRA | KANA |Z/H| | Exec | | 0|000| .| | +|
`-------------------------------------------------------------' `-------' `-------------------'
- NEC PC-9801-98-S02 楽々キーボード - raku raku keyboard
- NEC FC-9801-KB6
- NEC PC-9801V Keyboard
- Digital Wave Dboard sono1
- PC-9801-106 - normal PC98 keyboard
- PC-9801-114 KBDP03 PC-PTOS - PC-PTOS specific keys are not supported by TMK PC98-USB converter at this point.
- PC-9801-115 文豪DPキーボード - not confirmed.
- PC-9801-116 - looks like PC/AT 106 keyboard without Windows key
- PC-9801-119 - PC98 keyboard with Windows and Menu key for PC-9821 - labeled as CMP-6D1Y7, CMP-6D0Y7
The keyboard has slide switch on right side to select between three modes. Two of them for NICOLA(Thumb-shift) and the last one is JIS.
In NICOLA modes the two space bars in the center are hard-coded for Thumb-shift Japanese input and it is impossilbe to remap them. The right sapce bar acts just as sapce and it can be remapped. Unless you use this keyboard for Japanese input these modes won't be unuseful for you.
In JIS mode all of the three space bars act just as space. They are logically identical key, you can remap them but all of them act in same way.
Key legend difference
PC9801-116 | PC98 |
---|---|
End | HELP |
Page Up | ROLL DOWN |
Page Down | ROLL UP |
Pause | STOP |
変換 | XFER |
Alt | GRPH |
Print Screen | COPY |
F11 | vf1 |
F12 | vf2 |
https://support.nec-lavie.jp/support/product/data/spec/acb/95070008-2.html