English
Language : 

MA104 Datasheet, PDF (2/32 Pages) Megawin Technology Co., Ltd – USB 2.0 low speed device.
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