tmk_keyboard/converter/pc98_usb/README

90 lines
1.6 KiB
Text
Raw Normal View History

2013-02-23 01:15:03 +09:00
PC98 to USB keyboard protocol converter
=======================================
2018-06-07 17:29:13 +09:00
Target MCU is ATMega32u2 but other USB capable AVR will also work.
2013-02-22 09:53:46 +09:00
2013-02-23 01:15:03 +09:00
Connector
---------
2013-02-22 09:53:46 +09:00
2013-02-23 01:15:03 +09:00
8Pin mini DIN
___ ___
/ |_| \
/ 8 7 6 \
| 5 4 3 |
\_ 2 1 _/
2018-06-07 17:29:13 +09:00
\_____/
2013-02-23 01:15:03 +09:00
(receptacle)
2013-02-22 09:53:46 +09:00
2014-01-04 22:45:52 -05:00
Wiring: You can change this with editing config.h.
2013-02-23 01:15:03 +09:00
2013-02-22 09:53:46 +09:00
Pin mini DIN MCU
----------------------------------
2014-04-25 15:16:12 +09:00
1 ~RST(TXD) PD3
2013-02-22 09:53:46 +09:00
2 GND GND
2013-02-23 01:15:03 +09:00
3 ~RDY PD4
4 RXD PD2
5 ~RTY PD5
2018-06-07 17:29:13 +09:00
6 NC
7 NC
2013-02-22 09:53:46 +09:00
8 5V VCC
2013-02-23 01:15:03 +09:00
2013-02-22 09:53:46 +09:00
Protocol
--------
2014-01-04 22:45:52 -05:00
Signal: Asynchronous, Positive logic, 19200baud, Least bit first
2013-02-23 01:15:03 +09:00
Frame format: 1-Start bit(Lo), 8-Data bits, Odd-Parity, 1-Stop bit
2013-02-22 09:53:46 +09:00
Build Firmware
--------------
Just use 'make'
2013-02-23 01:15:03 +09:00
$ cd pc98_usb
2013-02-22 09:53:46 +09:00
$ make
2013-02-23 01:15:03 +09:00
2013-02-22 09:53:46 +09:00
Then, load the binary to MCU with your favorite programmer.
2013-02-23 01:15:03 +09:00
Other PC98 converter projects and resource
------------------------------------------
PC98 to USB
http://davy.nyacom.net/kbd98usb/
PC98 to PS/2
http://www.tsp.ne.jp/~sawada/mago/c_gka98at.htm
2013-02-24 18:10:50 +09:00
http://www.tsp.ne.jp/~sawada/mago/src/gka98at.asm
2013-02-23 01:15:03 +09:00
2018-06-07 17:29:13 +09:00
scan code:
http://ixsvr.dyndns.org/usb2pc98
NEC PC-9801-98-S02 - raku raku keyboard:
https://deskthority.net/photos-f62/nec-pc-9801-98-s02-t5212.html
2013-02-23 01:15:03 +09:00
PC98 keyboard commands
2018-06-07 17:29:13 +09:00
----------------------
2013-02-23 01:15:03 +09:00
http://www.webtech.co.jp/company/doc/undocumented_mem/io_kb.txt
2013-02-24 18:10:50 +09:00
2018-06-07 17:29:13 +09:00
response from keyboard:
FAh: ACK
FCh: NACK
2013-02-24 18:10:50 +09:00
Inhibit repeating key:
2018-06-07 17:29:13 +09:00
0x9C, 0x70
LED control:
9Dh 7xh
second byte:
0111 xxxx
|||`- NumLock
||`-- ?
|`--- CapsLock
`---- Kana