HID Terminal. MA104 Datasheet

MA104 Terminal. Datasheet pdf. Equivalent


Megawin MA104
笙泉科技股份有限公司
Megawin Technology Co., Ltd.
Version: 1.02
Megawin
USB HID Terminal
Datasheet
USB Vendor ID : 0x0E6A
USB Product ID : 0x0109 (Low Power)
USB Product ID : 0x010F (High Power)
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
1/32


MA104 Datasheet
Recommendation MA104 Datasheet
Part MA104
Description USB HID Terminal
Feature MA104; Megawin Technology Co., Ltd. Version: 1.02 Megawin USB HID Terminal Datasheet USB Vendor ID : 0x0.
Manufacture Megawin
Datasheet
Download MA104 Datasheet




Megawin MA104
MA104 Datasheet
Version 1.02
Table of Contents
1 Description ..................................................................................................... 4
2 Features......................................................................................................... 5
3 Block Diagram................................................................................................ 6
4 Application Circuit .......................................................................................... 7
4.1 Bus Power ...................................................................................................................... 7
4.1.1
Low Power Mode (Max Power 100mA from VBUS) ............................................... 7
4.1.2
High Power Mode (Max Power 500mA from VBUS) .............................................. 8
4.2 Self Power ...................................................................................................................... 9
5 Pin Configurations........................................................................................ 10
5.1 Pin-out for SSOP16-pin Package ................................................................................. 10
5.2 Pin Description ............................................................................................................. 11
6 UART Function ............................................................................................ 12
6.1 UART RX Protocol Format ........................................................................................... 12
6.2 UART Packet Data Format........................................................................................... 12
6.2.1
Keyboard data format ........................................................................................... 13
6.2.2
Generic Desktop Controls data format ................................................................. 15
6.2.3
Consumer code data format ................................................................................. 16
6.2.4
6.2.5
Mouse code data format....................................................................................... 20
Joystick code data format..................................................................................... 21
6.2.6
User Defined UART RX Input Data Transfer Format............................................ 22
6.2.7
User Defined UART TX Output Data Transfer Format ......................................... 22
7 Demo Board Hardware Guide...................................................................... 23
7.1 Demo Board Circuit ...................................................................................................... 23
7.2 Demo Board PCB Description ...................................................................................... 24
7.2.1
UART Interface..................................................................................................... 24
7.2.2
Writer Interface ..................................................................................................... 25
7.2.3
USB Interface ....................................................................................................... 25
7.2.4
UART TX/RX Pull High Resistor Option ............................................................... 25
7.2.5
USB enumeration LED ......................................................................................... 26
7.2.6
DFU Update Pin Option........................................................................................ 26
8 Demo Board Software Guide ....................................................................... 27
8.1 Demo Application Description ...................................................................................... 27
8.2 DLL Function Description ............................................................................................. 28
8.2.1
Introduction........................................................................................................... 28
8.2.2
Files Needed ........................................................................................................ 28
8.2.3
_MW_MA104 structure......................................................................................... 29
8.2.4
MA104_Connect................................................................................................... 29
8.2.5
MA104_Disconnect .............................................................................................. 30
8.2.6
MA104_WriteData ................................................................................................ 30
8.2.7
MA104_ReadData ................................................................................................ 31
8.2.8
MA104_ClearBuffer .............................................................................................. 31
9 Revision History ........................................................................................... 32
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
2/32



Megawin MA104
MA104 Datasheet
Version 1.02
List of Tables
Table 5-1 Pin Description .......................................................................................................................................................11
Table 6-1 Data Format Summary............................................................................................................................................12
Table 6-2 Keyboard 7 Bytes Data Payload Format.................................................................................................................13
Table 6-3 Modifier Key Data Format .....................................................................................................................................13
Table 6-4 Keyboard Code .......................................................................................................................................................13
Table 6-5 Keyboard Code(Continue)......................................................................................................................................14
Table 6-6 Generic Desktop Controls Codes............................................................................................................................15
Table 6-7 Consumer Codes : 0x0000 ~ 0x00C3 .....................................................................................................................16
Table 6-8 Consumer Codes : 0x00C4 ~ 0x01A4 ....................................................................................................................17
Table 6-9 Consumer Codes : 0x01A5 ~ 0x0257.....................................................................................................................18
Table 6-10 Consumer Codes : 0x0258 ~ 0xFFFF...................................................................................................................19
Table 6-11 Mouse Data Payload Format.................................................................................................................................20
Table 6-12 Joystick Data Payload Format ..............................................................................................................................21
Table 6-13 User Defined UART RX Input Data Payload Format...........................................................................................22
Table 6-14 User Defined UART TX Output Data Transfer Format........................................................................................22
List of Figures
Figure 3-1 System Block Diagram ...........................................................................................................................................6
Figure 4-1 USB Low Power Application Circuit......................................................................................................................7
Figure 4-2 USB High Power Application Circuit .....................................................................................................................8
Figure 5-1 SSOP16 Package Pin out ......................................................................................................................................10
Figure 6-1 Joystick Report Value............................................................................................................................................21
Figure 7-1 Demo Board Circuit ..............................................................................................................................................23
Figure 7-2 Demo Board PCB .................................................................................................................................................24
Figure 7-3 Demo Board UART Interface ...............................................................................................................................24
Figure 7-4 Demo Board Writer Interface................................................................................................................................25
Figure 7-5 Demo Board USB Connecter ................................................................................................................................25
Figure 7-6 Demo Board UART TX/RX pull high and voltage option. ...................................................................................25
Figure 7-7 Demo Board LED description...............................................................................................................................26
Figure 7-8 Demo Board DFU Option. ....................................................................................................................................26
Figure 8-1 Demo AP Operation Window................................................................................................................................27
Figure 8-2 Link MA104.DLL.................................................................................................................................................28
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2011 All right reserved.
QP-7300-03D
3/32







@ 2014 :: Datasheetspdf.com :: Semiconductors datasheet search & download site (Privacy Policy & Contact)