diff options
| author | tmk <nobody@nowhere> | 2013-02-23 01:15:03 +0900 |
|---|---|---|
| committer | tmk <nobody@nowhere> | 2013-02-23 01:15:03 +0900 |
| commit | 84a3d4d2a1fbcc3cabdd8c20805845833601c47b (patch) | |
| tree | 3fbc102d81e043dcc2bfc77ccc5f29186101cbce | |
| parent | 4ec8fd28230753452df7bc4111b60dc104f30267 (diff) | |
| download | qmk_firmware-84a3d4d2a1fbcc3cabdd8c20805845833601c47b.tar.gz qmk_firmware-84a3d4d2a1fbcc3cabdd8c20805845833601c47b.zip | |
Edit README of PC98
| -rw-r--r-- | converter/pc98_usb/README | 102 |
1 files changed, 44 insertions, 58 deletions
diff --git a/converter/pc98_usb/README b/converter/pc98_usb/README index 7b4f95ca2..7d9547d50 100644 --- a/converter/pc98_usb/README +++ b/converter/pc98_usb/README | |||
| @@ -1,79 +1,65 @@ | |||
| 1 | Sun to USB keyboard protocol converter | 1 | PC98 to USB keyboard protocol converter |
| 2 | ====================================== | 2 | ======================================= |
| 3 | Target MCU is ATMega32u4 but other USB capable AVR will also work. | 3 | Target MCU is ATMega32u4 but other USB capable AVR will also work. |
| 4 | Supported keyboards: Sun Type 5 Keyboard, CTCSP SHORT TYPE KEYBOARD(CKUB) | ||
| 5 | 4 | ||
| 6 | CTCSP SHORT TYPE KEYBOARD: http://imgur.com/a/QIv6p | ||
| 7 | 5 | ||
| 6 | Connector | ||
| 7 | --------- | ||
| 8 | 8 | ||
| 9 | 8Pin mini DIN | ||
| 10 | ___ ___ | ||
| 11 | / |_| \ | ||
| 12 | / 8 7 6 \ | ||
| 13 | | 5 4 3 | | ||
| 14 | \_ 2 1 _/ | ||
| 15 | \_____/ | ||
| 16 | (receptacle) | ||
| 9 | 17 | ||
| 10 | 18 | ||
| 11 | Connector | 19 | Wiring: You can change this with ediging config.h. |
| 12 | --------- | 20 | |
| 13 | 8Pin mini DIN | ||
| 14 | ___ ___ | ||
| 15 | / |_| \ | ||
| 16 | / 8 7 6 \ | ||
| 17 | | 5 4 3 | | ||
| 18 | \_ 2 1 _/ | ||
| 19 | \_____/ | ||
| 20 | (receptacle) | ||
| 21 | |||
| 22 | Wiring: | ||
| 23 | Pin mini DIN MCU | 21 | Pin mini DIN MCU |
| 24 | ---------------------------------- | 22 | ---------------------------------- |
| 25 | 1 GND GND | 23 | 1 ~RST PD1 |
| 26 | 2 GND GND | 24 | 2 GND GND |
| 27 | 3 5V | 25 | 3 ~RDY PD4 |
| 28 | 4 RX/TX(Mouse) | 26 | 4 RXD PD2 |
| 29 | 5 RX PD3 | 27 | 5 ~RTY PD5 |
| 30 | 6 TX PD2 | 28 | 6 NC |
| 31 | 7 GND GND | 29 | 7 NC |
| 32 | 8 5V VCC | 30 | 8 5V VCC |
| 33 | 31 | ||
| 34 | 32 | ||
| 33 | |||
| 34 | |||
| 35 | Protocol | 35 | Protocol |
| 36 | -------- | 36 | -------- |
| 37 | Singnal: Asynchronous, Negative logic, 1200baud, No Flow control | 37 | Singnal: Asynchronous, Positive logic, 19200baud, Least bit first |
| 38 | Frame format: 1-Start bit, 8-Data bits, No-Parity, 1-Stop bit | 38 | Frame format: 1-Start bit(Lo), 8-Data bits, Odd-Parity, 1-Stop bit |
| 39 | 39 | ||
| 40 | AVR USART engine expects positive logic while Sun keyboard signal is negative. | 40 | This converter uses software method for testing purpose. AVR UART engine will work better. |
| 41 | To use AVR UART engine you need exteral inverter in front of RX and TX pin. | 41 | |
| 42 | Otherwise you can software serial routine to communicate the keyboard. | 42 | |
| 43 | |||
| 44 | This converter uses software method, you doesn't need any inverter part. | ||
| 45 | |||
| 46 | |||
| 47 | Commands From System To Keyboard | ||
| 48 | 0x01 Reset | ||
| 49 | Keyboard responds with following byte sequence: | ||
| 50 | Success: 0xFF 0x04 0x7F | ||
| 51 | Fail: 0x7E 0x01 0x7F | ||
| 52 | 0x02 Bell On | ||
| 53 | 0x03 Bell Off | ||
| 54 | 0x0A Click On | ||
| 55 | 0x0B Click Off | ||
| 56 | 0x0E LED | ||
| 57 | followed by LED status byte: | ||
| 58 | bit: 3 2 1 0 | ||
| 59 | LED: CapsLk ScrLk Compose NumLk | ||
| 60 | 0x0F Layout | ||
| 61 | Keyboard responds with 'Layout Response' 0xFE 0xXX | ||
| 62 | |||
| 63 | Commands From Keyboard To System | ||
| 64 | 0x7F Idle | ||
| 65 | means no keys pressed. | ||
| 66 | 0xFE Layout Response | ||
| 67 | 0xFF Reset Response(followed by 0x04) | ||
| 68 | |||
| 69 | Reference | ||
| 70 | http://kentie.net/article/sunkbd/page2.htm | ||
| 71 | http://kentie.net/article/sunkbd/KBD.pdf | ||
| 72 | 43 | ||
| 73 | 44 | ||
| 74 | Build Firmware | 45 | Build Firmware |
| 75 | -------------- | 46 | -------------- |
| 76 | Just use 'make' | 47 | Just use 'make' |
| 77 | $ cd sun_usb | 48 | |
| 49 | $ cd pc98_usb | ||
| 78 | $ make | 50 | $ make |
| 51 | |||
| 79 | Then, load the binary to MCU with your favorite programmer. | 52 | Then, load the binary to MCU with your favorite programmer. |
| 53 | |||
| 54 | |||
| 55 | |||
| 56 | Other PC98 converter projects and resource | ||
| 57 | ------------------------------------------ | ||
| 58 | PC98 to USB | ||
| 59 | http://davy.nyacom.net/kbd98usb/ | ||
| 60 | |||
| 61 | PC98 to PS/2 | ||
| 62 | http://www.tsp.ne.jp/~sawada/mago/c_gka98at.htm | ||
| 63 | |||
| 64 | PC98 keyboard commands | ||
| 65 | http://www.webtech.co.jp/company/doc/undocumented_mem/io_kb.txt | ||
