Function/Control Key Support with PortKey
The TriCoder in RS-232 ASCII mode using PortKey can emulate the
special keys on the PC keyboard. PortKey expects the "extended key code"
convention outlined in the BASIC manuals and most compiler manuals. For
example, to transmit a F1 key from a serial TriCoder to the keyboard, a null
(ASCII 0) followed by a semicolon (ASCII 59) would be required. You can
use Full ASCII Code 39 or Code 128 to transmit the required sequences.
The following is a list of the most common keys, the required codes and the
equivalent Code 39 characters:
PC Key
Ctrl @
Ctrl A
Ctrl B
Ctrl C
Ctrl D
Ctrl E – Ctrl Y
Ctrl Z
Ctrl [
Ctrl \
Ctrl ]
Ctrl ^
Ctrl _
F1
F2
F3
F4 – F9
F10
Home
Up Arrow
Pg Up
Left Arrow
Right Arrow
End key
Down Arrow
Pg Dn
Ins
Del
Shift F1
Shift F2 – Shift F9
Shift F10
Ctrl F1
Ctrl F2 – Ctrl F9
Ctrl F10
Alt F1
Alt F2 – Alt F9
Alt F10
Table A-4. Function and Control Key Support with Portkey
ASCII Character
0,3
2 (SOH)
3 (STX)
4 (ETX)
5 (EOT)
6 (ENQ) – 25 (EM)
26 (SUB)
27 (ESC)
28 (FS)
29 (GS)
30 (RS)
31 (US)
0,59 (Null ;)
0,60 (Null<)
0,61 (Null=)
0,62 (Null>) – 0,67 (Null C)
0,68 (Null D)
0,71 (Null G)
0,72 (Null H)
0,73 (Null I)
0,75 (Null K)
0,77 (Null M)
0,79 (Null O)
0,80 (Null P)
0,81 (Null Q)
0,82 (Null R)
0,83 (Null S)
0,84 (Null T)
0,85 (Null U) – 0,92 (Null \)
0,93 (Null ])
0,94 (Null ^)
0,95 (Null _) – 0,102 (Null f)
0,103 (Null g)
0,104 (Null h)
0,105 (Null i) – 0,112 (Null p)
0,113 (Null q)
H-6
Code 39
%U$C
$A
$B
$C
$D
$E - $Y
$Z
%A
%B
%C
%D
%E
%U%F
%U%G
%U%H
%U%I -%UC
%UD (or %U /D)
%UG (or %U /G)
%UH
%UI
%UK
%UM
%UO
%UP
%UQ
%UR
%US
%UT
%UU – %U%L
%U%M
%U%N
%U%O – %U+F
%U +G
%U +H
%U+i - %U+p
%U +q
Need help?
Do you have a question about the TriCoder t53 and is the answer not in the manual?
Questions and answers