Files
vt1200/reference/keyboard-mouse/netbsd-lk201-keycodes.html
T
SDD 3fd1e13b2e docs: keyboard/mouse protocol spec — LK401 (LK201 protocol) + VSXXX-AA mouse, sources, MAME lk201 device
Distils public docs into reference/keyboard-mouse/PROTOCOL.md for the level-1
Keyboard (27) / Mouse (26) device tests:
- keyboard: 4800 8N1 RS-423, self-test via FD -> 01 00 00 00 (errors 3D/3E)
- mouse: 4800 8O1 RS-232, self-test via 'T' -> 4-byte report (errors 3D/3E, >=0x20 fatal)
- separate ports: DUART2 A=keyboard, B=mouse (NOT daisy-chained)
MAME already has an LK201 device (src/mame/dec/lk201.cpp/.h) but no DEC mouse.
2026-10-16 11:38:52 +03:00

317 lines
8.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="generator" content="Website XSL Stylesheet V2.6.0">
<link rel="home" href="../../../../." title="Welcome to The NetBSD Project: Of course it runs NetBSD.">
<link rel="up" href="../../../../docs/Hardware/Machines/." title="Hardware Documentation - Machines">
<link rel="previous" href="../../../../docs/Hardware/Machines/DEC/lk201.html" title="LK201 Interface">
<link rel="next" href="../../../../docs/Hardware/Machines/DEC/vax/." title="Hardware Documentation - Machines DEC - VAX hardware reference">
<link rel="first" href="../../../../docs/Hardware/Machines/ARC/." title="Advanced RISC Computing (ARC) Specification for the Advanced Computing Environment (ACE)">
<link rel="last" href="../../../../docs/Hardware/Machines/DEC/vax/." title="Hardware Documentation - Machines DEC - VAX hardware reference">
<link rel="stylesheet" href="../../../../global.css" type="text/css">
<link rel="stylesheet" href="../../../../donations/thermo/fundraiser.css" type="text/css">
<title>LK201 Keycodes and Keyboard Divisions</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
</head>
<body class="website"><div class="webpage" id="docs-Hardware-Machines-DEC-lk201_keycodes">
<div id="top"><a href="#mainContent" id="skiplink" tabindex="1">Skip to main content.</a></div>
<input id="hamburger" type="checkbox"><label class="menuicon" for="hamburger"><span></span><span></span><span></span></label><div id="navBar" role="navigation">
<div id="centralHeader"><div id="logo">
<a href="../../../../"><img id="projectLogo" alt="" height="120" src="../../../../images/NetBSD-smaller-tb.png"></a><a href="/"><div id="fundraiser">
<br><div id="fundraiser-amount"><div id="fundraiser-raised"></div></div>
</div></a>
</div></div>
<span class="doNotDisplay">
Navigation:
</span><ul>
<li>
<a href="../../../../">
Home</a><ul>
<li><a href="../../../../changes/">
Recent changes</a></li>
<li><a href="//blog.NetBSD.org/">
NetBSD blog</a></li>
<li><a href="../../../../gallery/presentations/">
Presentations</a></li>
</ul>
</li>
<li>
<a href="../../../../about/">
About</a><ul>
<li><a href="../../../../people/developers.html">
Developers</a></li>
<li><a href="../../../../gallery/">
Gallery</a></li>
<li><a href="//wiki.NetBSD.org/ports/">
Ports</a></li>
<li><a href="//www.pkgsrc.org/">
Packages</a></li>
</ul>
</li>
<li>
<a href="../../../../docs/">
Documentation</a><ul>
<li><a href="../../../../docs/misc/index.html">
FAQ &amp; HOWTOs</a></li>
<li><a href="../../../../docs/guide/en/">
The Guide</a></li>
<li><a href="//man.NetBSD.org/">
Manual pages</a></li>
<li><a href="//wiki.NetBSD.org/">
Wiki</a></li>
</ul>
</li>
<li>
<a href="../../../../support/">
Support</a><ul>
<li><a href="/community/">
Community</a></li>
<li><a href="/mailinglists/">
Mailing lists</a></li>
<li><a href="../../../../support/send-pr.html">
Bug reports</a></li>
<li><a href="../../../../support/security/">
Security</a></li>
</ul>
</li>
<li>
<a href="../../../../developers/">
Developers</a><ul>
<li><a href="//cvsweb.NetBSD.org/">
CVSWeb</a></li>
<li><a href="//anonhg.NetBSD.org/">
Mercurial</a></li>
<li><a href="//nxr.NetBSD.org/">
Cross-reference</a></li>
<li><a href="//releng.NetBSD.org/">
Release engineering</a></li>
<li><a href="//wiki.NetBSD.org/projects/">
Projects list</a></li>
</ul>
</li>
</ul>
</div>
<div id="content"><div id="mainContent" class="fullWidth"><div class="rowOfBoxes">
<h1>LK201 Keycodes and Keyboard Divisions</h1>
<div class="sect1" id="kkd">
<div class="titlepage"><h2 class="titlepage">LK201 Keycodes and Keyboard Divisions</h2></div>
<div class="sect2" id="div1">
<div class="titlepage"><h3 class="titlepage">Key Division 1: (191 - 255)</h3></div>
<pre class="programlisting">
191 (xbf): KEY_TILDE
192 (xc0): KEY_TR_1
193 (xc1): KEY_Q
194 (xc2): KEY_A
195 (xc3): KEY_Z
197 (xc5): KEY_TR_2
198 (xc6): KEY_W
199 (xc7): KEY_S
200 (xc8): KEY_X
201 (xc9): KEY_LANGLE_RANGLE
203 (xcb): KEY_TR_3
204 (xcc): KEY_E
205 (xcd): KEY_D
206 (xce): KEY_C
208 (xd0): KEY_TR_4
209 (xd1): KEY_R
210 (xd2): KEY_F
211 (xd3): KEY_V
212 (xd4): KEY_SPACE
214 (xd6): KEY_TR_5
215 (xd7): KEY_T
216 (xd8): KEY_G
217 (xd9): KEY_B
219 (xdb): KEY_TR_6
220 (xdc): KEY_Y
221 (xdd): KEY_H
222 (xde): KEY_N
224 (xe0): KEY_TR_7
225 (xe1): KEY_U
226 (xe2): KEY_J
227 (xe3): KEY_M
229 (xe5): KEY_TR_8
230 (xe6): KEY_I
231 (xe7): KEY_K
232 (xe8): KEY_COMMA
234 (xea): KEY_TR_9
235 (xeb): KEY_O
236 (xec): KEY_L
237 (xed): KEY_PERIOD
239 (xef): KEY_TR_0
240 (xf0): KEY_P
242 (xf2): KEY_SEMICOLON
243 (xf3): KEY_QMARK
245 (xf5): KEY_PLUS
246 (xf6): KEY_RBRACE
247 (xf7): KEY_VBAR
249 (xf9): KEY_UBAR
250 (xfa): KEY_LBRACE
251 (xfb): KEY_QUOTE
</pre>
</div>
<div class="sect2" id="div2">
<div class="titlepage"><h3 class="titlepage">Key Division 2: (145 - 165)</h3></div>
<pre class="programlisting">
146 (x92): KEY_KP_0
148 (x94): KEY_KP_PERIOD
149 (x95): KEY_KP_ENTER
150 (x96): KEY_KP_1
151 (x97): KEY_KP_2
152 (x98): KEY_KP_3
153 (x99): KEY_KP_4
154 (x9a): KEY_KP_5
155 (x9b): KEY_KP_6
156 (x9c): KEY_KP_COMMA
157 (x9d): KEY_KP_7
158 (x9e): KEY_KP_8
159 (x9f): KEY_KP_9
160 (xa0): KEY_KP_HYPHEN
161 (xa1): KEY_KP_PF1
162 (xa2): KEY_KP_PF2
163 (xa3): KEY_KP_PF3
164 (xa4): KEY_KP_PF4
</pre>
</div>
<div class="sect2" id="div3">
<div class="titlepage"><h3 class="titlepage">Key Division 3: (188 - 188)</h3></div>
<pre class="programlisting">
188 (xbc): KEY_DELETE
</pre>
</div>
<div class="sect2" id="div4">
<div class="titlepage"><h3 class="titlepage">Key Division 4: (189 - 190)</h3></div>
<pre class="programlisting">
189 (xbd): KEY_RETURN
190 (xbe): KEY_TAB
</pre>
</div>
<div class="sect2" id="div5">
<div class="titlepage"><h3 class="titlepage">Key Division 5: (176 - 178)</h3></div>
<pre class="programlisting">
176 (xb0): KEY_LOCK
177 (xb1): KEY_META
</pre>
</div>
<div class="sect2" id="div6">
<div class="titlepage"><h3 class="titlepage">Key Division 6: (173 - 175)</h3></div>
<pre class="programlisting">
174 (xae): KEY_SHIFT
175 (xaf): KEY_CTRL
</pre>
</div>
<div class="sect2" id="div7">
<div class="titlepage"><h3 class="titlepage">Key Division 7: (166 - 168)</h3></div>
<pre class="programlisting">
167 (xa7): KEY_LEFT
168 (xa8): KEY_RIGHT
</pre>
</div>
<div class="sect2" id="div8">
<div class="titlepage"><h3 class="titlepage">Key Division 8: (169 - 172)</h3></div>
<pre class="programlisting">
169 (xa9): KEY_DOWN
170 (xaa): KEY_UP
171 (xab): KEY_R_SHIFT
</pre>
</div>
<div class="sect2" id="div9">
<div class="titlepage"><h3 class="titlepage">Key Division 9: (136 - 144)</h3></div>
<pre class="programlisting">
138 (x8a): KEY_FIND
139 (x8b): KEY_INSERT_HERE
140 (x8c): KEY_REMOVE
141 (x8d): KEY_SELECT
142 (x8e): KEY_PREV_SCREEN
143 (x8f): KEY_NEXT_SCREEN
</pre>
</div>
<div class="sect2" id="div10">
<div class="titlepage"><h3 class="titlepage">Key Division 10: (86 - 98)</h3></div>
<pre class="programlisting">
86 (x56): KEY_F1
87 (x57): KEY_F2
88 (x58): KEY_F3
89 (x59): KEY_F4
90 (x5a): KEY_F5
</pre>
</div>
<div class="sect2" id="div11">
<div class="titlepage"><h3 class="titlepage">Key Division 11: (99 - 110)</h3></div>
<pre class="programlisting">
100 (x64): KEY_F6
101 (x65): KEY_F7
102 (x66): KEY_F8
103 (x67): KEY_F9
104 (x68): KEY_F10
</pre>
</div>
<div class="sect2" id="div12">
<div class="titlepage"><h3 class="titlepage">Key Division 12: (111 - 122)</h3></div>
<pre class="programlisting">
113 (x71): KEY_F11
114 (x72): KEY_F12
115 (x73): KEY_F13
116 (x74): KEY_F14
</pre>
</div>
<div class="sect2" id="div13">
<div class="titlepage"><h3 class="titlepage">Key Division 13: (123 - 125)</h3></div>
<pre class="programlisting">
124 (x7c): KEY_HELP
125 (x7d): KEY_MENU
</pre>
</div>
<div class="sect2" id="div14">
<div class="titlepage"><h3 class="titlepage">Key Division 14: (126 - 135)</h3></div>
<pre class="programlisting">
128 (x80): KEY_F17
129 (x81): KEY_F18
130 (x82): KEY_F19
131 (x83): KEY_F20
</pre>
</div>
</div>
</div></div></div>
<div class="navfoot"></div>
<div id="footer"><div id="footerContent">
<span class="footfeed"><a href="//www.NetBSD.org/cgi-bin/feedback.cgi">
Contact</a> |
</span><span class="footcopy"><a href="../../../../about/disclaimer.html">
Disclaimer</a> |
<span class="copyright">Copyright © 1994-2026 The NetBSD Foundation, Inc. </span>ALL RIGHTS RESERVED.<br>NetBSD<sup>®</sup> is a registered trademark of The NetBSD
Foundation, Inc.</span>
</div></div>
</div></body>
</html>