参数资料
型号: DM163010
厂商: Microchip Technology
文件页数: 20/80页
文件大小: 0K
描述: BOARD DEMO PICDEM USB
标准包装: 1
PICDEM? USB User’s Guide
0 - 255, the descriptor calls for a range of 0 - 255. The descriptor, shown
below in HEX form, is in the gamepad descriptor file ( usb_ch9.asm ).
0x05,
0x09,
0xA1,
0x09,
0xA1,
0x09,
0x09,
0x15,
0x26,
0x75,
0x95,
0x81,
0xC0
0x05,
0x19,
0x29,
0x15,
0x25,
0x75,
0x95,
0x81,
0x95,
0x81,
0xC0
0x01
0x05
0x01
0x01
0x00
0x30
0x31
0x00
0xFF, 0x00
0x08
0x02
0x02
0x09
0x01
0x06
0x00
0x01
0x01
0x06
0x02
0x02
0x03
USAGE_PAGE (Generic Desktop)
USAGE (Game Pad)
COLLECTION (Application)
USAGE (Pointer)
COLLECTION (Physical)
USAGE (X)
USAGE (Y)
LOGICAL_MINIMUM (0)
LOGICAL_MAXIMUM (255)
REPORT_SIZE (8)
REPORT_COUNT (2)
INPUT (Data,Var,Abs)
END_COLLECTION
USAGE_PAGE (Button)
USAGE_MINIMUM (Button 1)
USAGE_MAXIMUM (Button 6)
LOGICAL_MINIMUM (0)
LOGICAL_MAXIMUM (1)
REPORT_SIZE (1)
REPORT_COUNT (6)
INPUT (Data,Var,Abs)
REPORT_COUNT (2)
INPUT (Constant,Var,Abs)
END_COLLECTION
This report descriptor describes the packet format for the USB data. The data
is filled from Least Significant Byte, Least Significant bit through to the Most
Significant Byte, Most Significant bit. The first field found will be the first bit/
byte. In the report descriptor above, the first data is 8 bits (the REPORT_SIZE
is 8) and it is the X axis (the first USAGE of the physical collection is X). So the
first byte on the bus will be the X axis value. The second byte will be the Y
axis. The third byte will be button A in bit 0, followed by button B in bit 1, and
so on. Because every USB transaction must be in whole number bytes, the
data is padded by one constant report, 2-bits long.
2.1.6
DS41174A-page 16
Gameport Translation
Translating the bits from the physical hardware to the USB buffer is very sim-
ple. Because we set the logical minimum and maximum to be 0 to 255, it
exactly matches the scaling of the analog-to-digital converter. So first, we
convert the X and Y axis and store the values in the first two buffer locations.
Secondly, we read the six buttons and store the values in the third buffer loca-
tion in bits 0-5. Lastly, we inform the serial interface engine that data is
available and wait for the host PC to come pick it up.
2001 Microchip Technology Inc.
相关PDF资料
PDF描述
DM163012 BOARD DEMO PICDEM FOR 16C781/782
DM163024 BOARD DEMO PICDEM.NET 2
DM163025 PIC DEM FULL SPEED USB DEMO BRD
DM163028 BOARD DEMO PICDEM LCD
DM163029 BOARD PICDEM FOR MECHATRONICS
相关代理商/技术参数
参数描述
DM163010 制造商:Microchip Technology Inc 功能描述:DEMONSTRATION BOARD ((NW))
DM163011 功能描述:开发板和工具包 - PIC / DSPIC For PIC18FXX8 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163011 制造商:Microchip Technology Inc 功能描述:DEVELPMENT TOOLS ((NW))
DM163012 功能描述:开发板和工具包 - PIC / DSPIC For PIC16C781/782 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163014 功能描述:开发板和工具包 - PIC / DSPIC PICDEM 4 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: