background image

4

Value

Character

Value

Character

Value

Character

Value

Character

Dec Hex

Dec Hex

Dec Hex

Dec Hex

00
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

00
01
02
03
04
05
06
07
08
09
0A
0B

0C
0D

0E
0F
10
11
12
13
14
15
16
17
18
19

1A
1B

1C
1D

1E
1F

none
none
none
none
none
none
none
none

Backspace

Tab

none
none
none

Return

none
none
none
none
none
none
none
none
none
none
none
none
none

Esc

none
none
none
none

32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

20
21
22
23
24
25
26
27
28
29
2A
2B

2C
2D

2E
2F
30
31
32
33
34
35
36
37
38
39

3A
3B

3C
3D

3E
3F

Space

!

#

$

%

&


(
)

*

+

,

_

.

/

0
1
2
3
4
5
6
7
8
9

:
;

<
=
>

?

64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95

40
41
42
43
44
45
46
47
48
49
4A
4B

4C
4D

4E
4F
50
51
52
53
54
55
56
57
58
59

5A
5B

5C
5D

5E
5F

@

A
B

C
D

E
F

G

H

I

J

K

L

M

N

O

P

Q

R
S
T

U

V

W

X
Y

Z

[

\

]

^

-

96
97
98
99

100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127

60
61
62
63
64
65
66
67
68
69
6A
6B

6C
6D

6E
6F
70
71
72
73
74
75
76
77
78
79

7A
7B

7C
7D

7E
7F

`
a
b
c
d
e

f

g
h

i
j

k

l

m

n
o
p
q

r

s

t

u

v

w

x
y
z

{
|
}

~

none

ASCII Mode Translation Table

The ASCII mode table below lists the standard ASCII characters that 
will  produce  a  corresponding  USB  keystroke  when  received  by  the 
USB-ASC232.   

Extended ASCII Mode

The USB-ASC232 Extended ASCII Mode of operation allows for the 
standard  ASCII  character  set  (character  values  0x00  to  0x7F),  in 
addition to an extended ASCII character set (character values 0x80 to 
0xFF).  When an RS-232 byte is received in this mode, it produces a 
USB keystroke on the PC which corresponds to the following table.

Parity may be set to “None”, “Odd”, or “Even”.

The number of stop bits may be set to 1 or 2 bits.

Handshaking may be set to “None”,  “RTS/CTS”, or “Echo”.  

When the handshaking is set to “None”, the computer sending the 
information must be careful not to overflow the receiving buffer of 
the USB-ASC232.  The best way to do avoid the buffer overflow 
in this mode is to delay 50msec after each byte is sent to the USB-
ASC232.

With  handshaking  set  to  “RTS/CTS”,  the  hardware  controls  the 
flow of data between the computer sending the RS-232 data and 
the USB-ASC232.  This hardware handshaking prevents overflow 
of the receiving buffer on the USB-ASC232 unit. When “RTS/CTS” 
is used for handshaking, the DTR options for the serial port being 
used on the computer sending the RTS-232 should be disabled.

The “Echo” setting means that the USB-ASC232 will send a one’s 
complement response byte to each command.  For instance, if a 
value of 0x32 is sent to the USB-ASC232 serial port, it will reply 
with a value of 0xCD in response.  Use this handshaking mode as 
a way to not only keep the buffer from overflowing, but is also a 
confirmation of the value of the code that was received.

Note  that  in  the  “Echo”  handshake  mode,  the  response  to  the 
0x7F request for LED status in Key Number Mode will be replied 
with the status byte as outlined on page 8.   

In “Echo” mode, the individual bytes of the mouse control packet  
do not generate a reply.  Only after the 4th and last byte of the 
mouse packet has been received is an echo value of 0xFF returned 
to indicate reception of the mouse packet.

15

Summary of Contents for USB-ASC232

Page 1: ...l Toll Free 888 690 9080 Phone 540 465 4677 Fax 540 465 4678 Monday through Friday 8 00 am to 5 00 pm EST sales hagstromelectronics com www hagstromelectronics com 1986 Junction Road Strasburg VA 2265...

Page 2: ...the assembly testing and burn in of your USB ASC232 to ensure its performance If you have any questions please send us an email or give us a call Support is available Monday through Friday 8 00 am to...

Page 3: ...onics com 17 2 CONTENTS Operating Voltage 5 Volts DC 5 Powered from USB port Operating Current Less than 100 ma Operating Temp 0 to 70 Degrees C PC Interface USB Target Computer RS 232 Serial Source C...

Page 4: ...decimal 65 is received in this mode a capital A character will be produced as a keystroke on the computer at the USB end of the cable RS 232 characters received which are out of the 0x00 to 0x7f range...

Page 5: ...to an extended ASCII character set character values 0x80 to 0xFF When an RS 232 byte is received in this mode it produces a USB keystroke on the PC which corresponds to the following table Parity may...

Page 6: ...one none none none 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF B0 B1...

Page 7: ...if someone was physically holding that key on a keyboard Each time a make is sent for a key a corresponding break release of that key must be done at a later time to deactivate it The break code for a...

Page 8: ...es shown above to produce the make and break actions for the corresponding key 12 When sending a mouse control packet for cursor movement only be sure to send all 0 values for the scroll wheel and mou...

Page 9: ...Status 0 Off Off Off 1 Off Off On 2 Off On Off 3 Off On On 4 On Off Off 5 On Off On 6 On On Off 7 On On On 11 W2 The most significant bit of the scroll wheel movement magnitude W1 Bit 1 of the three b...

Page 10: ...L Alt make 112 Make F1 240 Break F1 188 Break L Alt 186 Break L Ctrl The example above assumes that the handshaking USB ASC232 is seen as not busy before sending the next command byte to the unit Prod...

Page 11: ...L Alt make 112 Make F1 240 Break F1 188 Break L Alt 186 Break L Ctrl The example above assumes that the handshaking USB ASC232 is seen as not busy before sending the next command byte to the unit Prod...

Page 12: ...onse Scroll Lock Status Caps Lock Status Num Lock Status 0 Off Off Off 1 Off Off On 2 Off On Off 3 Off On On 4 On Off Off 5 On Off On 6 On On Off 7 On On On 11 W2 The most significant bit of the scrol...

Page 13: ...es shown above to produce the make and break actions for the corresponding key 12 When sending a mouse control packet for cursor movement only be sure to send all 0 values for the scroll wheel and mou...

Page 14: ...if someone was physically holding that key on a keyboard Each time a make is sent for a key a corresponding break release of that key must be done at a later time to deactivate it The break code for a...

Page 15: ...E 9F none none none none none 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD...

Page 16: ...to an extended ASCII character set character values 0x80 to 0xFF When an RS 232 byte is received in this mode it produces a USB keystroke on the PC which corresponds to the following table Parity may...

Page 17: ...decimal 65 is received in this mode a capital A character will be produced as a keystroke on the computer at the USB end of the cable RS 232 characters received which are out of the 0x00 to 0x7f range...

Page 18: ...onics com 17 2 CONTENTS Operating Voltage 5 Volts DC 5 Powered from USB port Operating Current Less than 100 ma Operating Temp 0 to 70 Degrees C PC Interface USB Target Computer RS 232 Serial Source C...

Page 19: ...the assembly testing and burn in of your USB ASC232 to ensure its performance If you have any questions please send us an email or give us a call Support is available Monday through Friday 8 00 am to...

Page 20: ...l Toll Free 888 690 9080 Phone 540 465 4677 Fax 540 465 4678 Monday through Friday 8 00 am to 5 00 pm EST sales hagstromelectronics com www hagstromelectronics com 1986 Junction Road Strasburg VA 2265...

Reviews: