English
Language : 

MA104 Datasheet, PDF (13/32 Pages) Megawin Technology Co., Ltd – USB 2.0 low speed device.
MA104 Datasheet
Version 1.02
6.2.1 Keyboard data format
The 7-byte payload for keyboard data is illustrated as Table 6-2.
Byte 0
Modifier
Key
Table 6-2 Keyboard 7 Bytes Data Payload Format
Byte 1
Byte 2
Byte 3
Byte 4
Byte 5
Keyboard Keyboard Keyboard Keyboard Keyboard
Code
Code
Code
Code
Code
Byte 6
Keyboard
Code
There is 1 byte of modifier payload which is shown as Table 6-3.
Table 6-3 Modifier Key Data Format
Key function
Bit
Format
Left Ctrl
0 1 : Press 0 : Release
Left Shift
1 1 : Press 0 : Release
Left Alt
2 1 : Press 0 : Release
Left GUI
3 1 : Press 0 : Release
Right Ctrl
4 1 : Press 0 : Release
Right Shift
5 1 : Press 0 : Release
Right Alt
6 1 : Press 0 : Release
Right GUI
7 1 : Press 0 : Release
There are 6 bytes of payload. Press key codes are tabled as Table 6-4 and Table 6-5, while release key code is
set to be “0x00.” Maximum 6 keys can be sent at one time.
Function Esc
Code(Hex) 29
Function `~
Code(Hex) 35
Function TAB
Code(Hex) 2B
Function Caps
Code(Hex) 39
Function
Code(Hex)
Function
Code(Hex)
Table 6-4 Keyboard Code
F1 F2 F3 F4 F5 F6 F7 F8 F9
3A 3B 3C 3D 3E 3F 40 41 42
1! 2@ 3# 4$ 5% 6^ 7& 8* 9( 0)
1E 1F 20 21 22 23 24 25 26 27
Q WER T Y U I O P
14 1A 08 15 17 1C 18 0C 12 13
A SD F G HJ K L
04 16 07 09 0A 0B 0D 0E 0F
Z X C V B N M ,< .>
1D 1B 06 19 05 11 10 36 37
Space
2C
F10 F11 F12
43 44 45
-_
+= Back←
2D 2E 2A
{[
}]
\|
2F 30 31
:;
"
Enter
33 34 28
/?
38
App
65
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
13/32