mchpdemo
所属分类:其他嵌入式/单片机内容
开发工具:Asm
文件大小:44KB
下载次数:5
上传日期:2010-01-26 21:40:32
上 传 者:
immotic
说明: Usb source code for PIC
文件列表:
usb_defs.inc (6103, 2001-05-17)
jademo.asm (8290, 2001-05-17)
JADEMO.cod (34304, 2001-05-17)
JADEMO.HEX (9856, 2001-05-17)
jademo.pjt (3323, 2001-05-17)
usb_ch9.asm (69795, 2001-05-17)
16c745.lkr (1786, 2001-03-20)
USB 16C745/765 firmware files V1.12 20 March 2001
V1.12 - Changes from V1.10:
1. Better parsing of HID class specific requests
2. Set Protocol returns a zero length packet instead of a protocol stall.
3. fixed bug in string descriptors (extra character returned on short packets)
4. include 16C745 linker script. This linker script is customized from the one
provided with MPLAB to give more room to the vectors area. This allows us to
completely save process context before jumping off to the ISR.
V1.10 - changes from V1.00:
1. Simplified Get/PutUSB. The old version required passing the endpoint
number in Wreg. The new version sets the endpoint number at assemble
time by a SET assignment just above the Get function. The function
can use either End point 1 or 2. The names have been changed to
differentiate the new functions from the old ones. The new functions
are called GetEP1 (or GetEP2) and PutEP1 (or PutEP2).
2. Descriptor pointers are now 16 bits long. This eliminates the
256 byte restriction on descriptors and also eliminates paging
issues.
3. USBIF cleared before TOK_DNE
4. EP1 and EP2 now initialized in Set Config, instead of USBReset.
USB V1.1 spec paragraph 5.3.1.2 requires that the non-control
endpoints must not respond to requests until the device is configured.
5. HID class requests are more formally parsed out.
6. Minor code cleanups - remove dead code.
Introduction
These files provide a complete demo program. Just build the project
and run it on the emulator or burn it into a part. The demo doesn't
require any special hardware, just a connector for the USB part.
The demo enumerates as a mouse device and moves the cursor in a small
square pattern on the screen.
You can use this as a starting point to develop your application, or
you can link in USB_CH9.ASM, and HIDCLASS.ASM. You'll also need a
file with descriptors such as USBMOUSE.ASM.
See USB-UG.DOC for more details on the USB functions provided
The project contains the following files:
USB_MAIN.ASM - Main program including interrupt service code
USB_CH9.ASM - Chapter 9 command support
HIDCLASS.ASM - HID class specific command support
USBMOUSE.ASM - Descriptors
16C765.LKR - Linker script
近期下载者:
相关文件:
收藏者: