参数资料
型号: DV164126
厂商: Microchip Technology
文件页数: 23/54页
文件大小: 0K
描述: KIT DEVELOPMENT USB W/PICKIT 2
标准包装: 1
主要目的: 接口,USB 2.0 从
嵌入式: 是,MCU,8 位
已用 IC / 零件: PIC18F13K50,PIC18F14K50
主要属性: 全速(12Mbps),基于 MCU
次要属性: 4 实验室:枚举,HID 鼠标,HID 键盘,CDC 串行仿真器
已供物品: 2 个板,线缆,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
更多...
2.5.2
Overview of the HID Mouse Firmware
As with most of the Framework applications, the user defined source code is called
from the ProcessIO() function in the <application>.c file. The user defined firm-
ware will manipulate the Host PC mouse pointer to move in a single direction for 14
times through the main loop. After 14 times, the mouse pointer changes direction ulti-
mately moving in a complete circle. A bit flag is initialized named emulate_mode that
will toggle HIGH/LOW whenever the push button on the Low Pin Count USB Develop-
ment Board is pressed. The status of this flag will start or stop pointer movement on the
screen by not calling the user defined function, emulate_mouse() , which handles the
mouse movement routines.
The flowchart for the user defined function is shown in Figure 2-4.
FIGURE 2-4:
Emulate_Mouse ()
FLOWCHART FOR THE EMULATE_MOUSE()
TRUE = 1
FALSE = 0
emulate_mode
= TRUE
NO
Clear directional data
NO
YES
movement_length
> 14?
NO
Keep directional
data as before
YES
YES
Change directional
data to next vector
return
PIC18F14K50
own the SIE
Transmit directional
data along USB
return
In the flowchart of Figure 2-4, it can be seen that if the emulate_mode flag is ‘ 0 ’, the
directional data transmitted along the USB is cleared. Note that data is transmitted from
the PIC18F14K50 whether or not the flag is set. Data is transmitted only when the SIE
is capable of transmitting it. This check is implemented in code by using the
if(HIDTxHandleBusy(lastTransmission) == 0) conditional statement. The
lastTransmission is loaded at the time of transmission and processed by the
HIDTxHandleBusy macro in the conditional ‘ if ’ statement.
If the emulate_mode flag is set, the function enters into the mouse pointer movement
algorithm. This is accomplished by keeping track of a counter variable,
movement_length . When this variable exceeds 14, a buffer array is loaded with new
directional data as supplied by the dir_table array defined at the top of the mouse.c
file. Each element of the array is accessed by incrementing the vector variable counter.
The buffer array is then loaded into a hid_report_in[] buffer array that is used by
the HIDTxPacket macro to transmit the data along the USB to the Host PC.
? 2009 Microchip Technology Inc.
DS41356B-page 19
相关PDF资料
PDF描述
DV164133 Energy Harvesting Development
DV243002 KIT DEVELOPMENT DESIGNER SEEPROM
DV250501 KIT DEV CAN MCP250XX
DV251001 KIT DEVELOPMENT CAN MCP2510
DV330021 BOARD DEV DSPICDEM MCSM KIT
相关代理商/技术参数
参数描述
DV164130 功能描述:电路内置调试器 PICkit 3 Starter Kit RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC16F1829 用于:PIC16F1829 核心:PIC 接口类型: 工作电源电压:
DV164131 功能描述:电路内置调试器 PICkit 3 Debug Exprs RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC MCUs, dsPIC DSCs 用于:07-00024, AC164113 核心:dsPIC, PIC 接口类型:USB 工作电源电压:3 V to 5 V
DV164131 制造商:Microchip Technology Inc 功能描述:PICKIT 3 DEBUG EXPRESS
DV164131-XLP 制造商:Microchip Technology Inc 功能描述:KIT DEV PICKIT 3-XLP/NANOWAT
DV164132 功能描述:开发板和工具包 - PIC / DSPIC F1 Evaluation Kit RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: