English
Language : 

MA104 Datasheet, PDF (12/32 Pages) Megawin Technology Co., Ltd – USB 2.0 low speed device.
MA104 Datasheet
Version 1.02
6 UART Function
6.1 UART RX Protocol Format
MA104 only supports UART baud rate 19200 8N1 format. 1 bit time of start bit, 8 bits data and 1 bit time of stop
bit. MA104 does not support odd or even parity check.
6.2 UART Packet Data Format
M104 supports keyboard, mouse, consumer device, and generic desktop controls HID command. The Table 6-1
lists all type of data format for each function.
Header : 1 Byte
0x02
0x02
0x02
0x02
0x02
0x02
Table 6-1 Data Format Summary
Packet Type : 1 Byte
0x01 : Keyboard / Key Pad
0x02 : Generic Desktop Controls
0x03 : Consumer
0x04 : Mouse
0x05 : Free Data Transfer
0x06 : Joystick
Payload
7 Bytes
1 Byte
2 Bytes
6 Bytes
7 Bytes
6 Bytes
Checksum
1 Byte
1 Byte
1 Byte
1 Byte
1 Byte
1 Byte
Payload format for each packet type is described in the following section (6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.2.5 and
6.2.6).
Checksum is calculated by XOR-ing packet type and payload. Checksum error will ignore all data in this transfer.
Each data transfer of MA104 must be completed in 8ms. If not, MA104 will clear all data received and wait for
next transfer.
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
12/32