参数资料
型号: DM164127
厂商: Microchip Technology
文件页数: 25/54页
文件大小: 0K
描述: KIT DEVELOPMENT USB 18F14/13K50
标准包装: 1
主要目的: 接口,USB 2.0 从
嵌入式: 是,MCU,8 位
已用 IC / 零件: PIC18F13K50,PIC18F14K50
主要属性: 全速(12Mbps),基于 MCU
次要属性: 4 实验室:枚举,HID 鼠标,HID 键盘,CDC 串行仿真器
已供物品: 3 块板,电缆,CD,连接器
产品目录页面: 659 (CN2011-ZH PDF)
相关产品: PIC18F14K50-I/MQ-ND - IC PIC MCU FLASH 768KX16 20-QFN
PIC18F13K50-I/MQ-ND - IC PIC MCU FLASH 512KX8 20-QFN
PIC18F13K50T-I/SS-ND - IC PIC MCU FLASH 8KB 20-SSOP
PIC18F13K50T-I/SO-ND - IC PIC MCU FLASH 8KB 20-SOIC
PIC18F13K50-I/SO-ND - IC PIC MCU FLASH 8K 1.8V 20-SOIC
PIC18F13K50-I/SS-ND - IC PIC MCU FLASH 8KB 20-SSOP
PIC18F13K50-I/P-ND - IC PIC MCU FLASH 4KX16 20-PDIP
PIC18F14K50T-I/SS-ND - IC PIC MCU FLASH 8KX8 20-SSOP
PIC18F14K50T-I/SO-ND - IC PIC MCU FLASH 8KX8 20-SOIC
PIC18F14K50-I/SS-ND - IC PIC MCU FLASH 8KX16 20-SSOP
更多...
EXAMPLE 2-7:
USER DEFINED FUNCTIONAL CODE FOR
EMULATE_MOUSE()
if (emulate_mode == TRUE)
{
//go 14 times in the same direction before changing
if (movement_length > 14)
{
buffer[0] = 0;
buffer[1] = dir_table[vector & 0x07];
//X-Vector
buffer[2] = dir_table [(vector+2) & 0x07];
//Y-Vector
// go to the next direction in the table
vector++;
//reset the counter for when to change again
movement_length = 0;
}//end if (movement_length > 14)
}
else
{
//don't move the mouse
buffer[0] = buffer[1] = buffer[2] = 0;
}
if(HIDTxHandleBusy(lastTransmission) == 0)
{
//copy over the data to the HID buffer
hid_report_in[0] = buffer[0];
hid_report_in[1] = buffer[1];
hid_report_in[2] = buffer[2];
//Send the 3 byte packet over USB to the host.
lastTransmission = HIDTxPacket(HID_EP, (BYTE*)hid_report_in,
0x03);
//increment the counter to change the data sent
movement_length++;
}
Note that the HID mouse transmits in 3-byte packets. The format of this packet is as
follows:
? This byte is typically used to identify mouse buttons. Since this application does
not require any mouse clicks, this byte is always zero.
? The second and third bytes represent horizontal (X) and Vertical (Y)
displacements.
Compile the project. There should be no errors.
Testing the Application
Note:
The device created in the Device Manager from the previous lab will need
to be removed so that the new device, created in this lab, can enumerate
properly. In the Device Manager window, right-click on the device and
select Uninstall.
9. Ensure that the Low Pin Count USB Development Board is configured as in Lab 1.
10. Connect the PICkit 2 Programmer and open the PICkit 2 programming software.
11. Navigate to the .hex file located in the C:\LPCUSBDK_Labs\Lab2_files for
this lab and download to the PIC18F14K50.
? 2009 Microchip Technology Inc.
DS41356B-page 21
相关PDF资料
PDF描述
H3AAH-6006M IDC CABLE - HSC60H/AE60M/HSC60H
V300C48T75B CONVERTER MOD DC/DC 48V 75W
H4PXS-1618G DIP CABLE - HDP16S/AE16G/X
V48C12T75BL3 CONVERTER MOD DC/DC 12V 75W
VERSAFIT-1-6-SP HEAT SHRINK TUBING
相关代理商/技术参数
参数描述
DM164128 功能描述:开发板和工具包 - PIC / DSPIC PICDEM Touch Sense 2 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM164130-1 功能描述:开发板和工具包 - PIC / DSPIC F1 Eval Platform RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM164130-1 制造商:Microchip Technology Inc 功能描述:MCH1P - SKU FOR APRIL BUNDLE
DM164130-10 功能描述:开发板和工具包 - PIC / DSPIC F1 PSMC 28-PIN EVAL BOARD PLATFORM RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM164130-2 功能描述:子卡和OEM板 F1 BLDC Motor Add-On RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit