亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? descript.asm

?? pic16c745 的 firmware的一個usb樣例,供大家參考
?? ASM
字號:
;                            Software License Agreement
;
; The software supplied herewith by Microchip Technology Incorporated (the "Company")
; for its PICmicro(r) Microcontroller is intended and supplied to you, the Company's
; customer, for use solely and exclusively on Microchip PICmicro Microcontroller
; products.
;
; The software is owned by the Company and/or its supplier, and is protected under
; applicable copyright laws. All rights are reserved. Any use in violation of the
; foregoing restrictions may subject the user to criminal sanctions under applicable
; laws, as well as to civil liability for the breach of the terms and conditions of
; this license.
;
; THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES, WHETHER EXPRESS,
; IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
; MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE
; COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
; CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
;
; ###############################################################################
;	filename:	DESCRIPT.ASM
;
; This file contains a set of descriptors for a standard mouse.  
;
; ###############################################################################
;
;	Author:			Dan Butler and Reston Condit
;	Company:		Microchip Technology Inc
;
;	Revision:		2.00
;	Date:			06 November 2002
;	Assembled using:	MPASM 2.80
;################################################################################
;
;	include files:
;		P16C745.inc	Rev 1.00
;		usb_defs.inc	Rev 2.00
;
;################################################################################
#include <p16C745.inc>
#include "usb_defs.inc"

USBBANK	code
	global	Config_desc_index
	global	Report_desc_index
	global	Descriptions
	global	DeviceDescriptor
	global	ReportDescriptor
	global	ReportDescriptorLen
	global	String0
	global	StringDescriptions
	global	GetStringIndex
	global	HID_Descriptor

	extern	EP0_start
	extern	temp		; temp var used in get config index
	extern	temp2 		; another temp, in bank2 

; ******************************************************************
; Given a configuration descriptor index, returns the beginning address
; of the descriptor within the descriptions table
; ******************************************************************
Config_desc_index
	movwf	temp
	movlw	HIGH CDI_start
	movwf	PCLATH
	movlw	low CDI_start
	addwf	temp,w
	btfsc	STATUS,C
	incf	PCLATH,f
	movwf	PCL
CDI_start			; this table calculates the offsets for each 
	retlw	low  Config1	; configuration descriptor from the beginning
	retlw	high Config1	; of the table
	retlw   low Config2
	retlw   high Config2

; ******************************************************************
; Given a report descriptor index, returns the beginning address
; of the descriptor within the descriptions table
; ******************************************************************
Report_desc_index
	movwf	temp
	movlw	HIGH RDI_start
	movwf	PCLATH
	movlw	low RDI_start
	addwf	temp,w
	btfsc	STATUS,C
	incf	PCLATH,f
	movwf	PCL
RDI_start		; this table calculates the offsets for each report
	retlw	low  ReportDescriptorLen  ; descriptor from the beginning
	retlw	high ReportDescriptorLen  ; of the table, effectively
	; more reports can be added here
	; retlw   low  ReportDescriptorLen2
	; retlw   high ReportDescriptorLen2
	; etc....

; ******************************************************************
; This table is polled by the host immediately after USB Reset has been released.
; This table defines the maximum packet size EP0 can take.
; See section 9.6.1 of the Rev 1.0 USB specification.
; These fields are application DEPENDENT. Modify these to meet
; your specifications.
; the offset is passed in P0 and P1 (P0 is low order byte).
; ******************************************************************
Descriptions
	banksel	EP0_start
	movf	EP0_start+1,w
	movwf	PCLATH
	movf	EP0_start,w
	movwf	PCL

DeviceDescriptor
StartDevDescr
	retlw	0x12		; bLengthLength of this descriptor
	retlw	0x01		; bDescType This is a DEVICE descriptor
	retlw	0x10		; bcdUSBUSB revision 1.10 (low byte)
	retlw	0x01		; high byte
	retlw	0x00		; bDeviceClasszero means each interface operates independently
	retlw	0x00		; bDeviceSubClass
	retlw	0x00		; bDeviceProtocol
	retlw	0x08		; bMaxPacketSize0 - inited in UsbInit()
	retlw	0xD8		; idVendor - 0x04D8 is Microchip Vendor ID
	retlw	0x04		; high order byte
	retlw	0x32		; idProduct = 50
	retlw	0x00
	retlw	0x00		; bcdDevice
	retlw	0x00
	retlw	0x01		; iManufacturer
	retlw	0x02		; iProduct
	retlw	0x00		; iSerialNumber - 3
	retlw	NUM_CONFIGURATIONS	; bNumConfigurations

; ******************************************************************
; This table is retrieved by the host after the address has been set.
; This table defines the configurations available for the device.
; See section 9.6.2 of the Rev 1.0 USB specification (page 184).
; These fields are application DEPENDENT. 
; Modify these to meet your specifications.
; ******************************************************************
Config1
	retlw	0x09		; bLength	Length of this descriptor
	retlw	0x02		; bDescType	2=CONFIGURATION
	retlw	EndConfig1 - Config1
	retlw	0x00
	retlw	0x01		; bNumInterfaces	Number of interfaces
	retlw	0x01		; bConfigValue	Configuration Value
	retlw	0x03		; iConfig	String Index for this config = #03
	retlw	0x80		; bmAttributes	attributes - bus powered, remote wakeup disabled
	retlw	0x32		; MaxPower	100mA
Interface1
	retlw	0x09		; length of descriptor
	retlw	INTERFACE;
	retlw	0x00		; number of interface, 0 based array
	retlw	0x00		; alternate setting
	retlw	0x02		; number of endpoints used in this interface
	retlw	0x03		; interface class - assigned by the USB
	retlw	0x00		; Not A boot device
	retlw	0x00		; interface protocol - none
	retlw 	0x00		; index to string descriptor that describes this interface
HID_Descriptor
	retlw	(Endpoint1 - HID_Descriptor)     ; descriptor size
	retlw	0x21		; descriptor type (HID)
	retlw	0x00
	retlw	0x01		; HID class release number (1.00)
	retlw	0x00		; Localized country code (none)
	retlw	0x01		; # of HID class descriptor to follow (1)
	retlw	0x22		; Report descriptor type (HID)
	retlw	low  (end_ReportDescriptor - ReportDescriptor)
	retlw	high (end_ReportDescriptor - ReportDescriptor)
Endpoint1
	retlw	0x07		; length of descriptor
	retlw	ENDPOINT
	retlw	0x81		; EP1, In
	retlw	0x03		; Interrupt
	retlw	0x08		; max packet size (8 bytes) low order byte
	retlw	0x00		; max packet size (8 bytes) high order byte
	retlw	0x0A		; polling interval (10ms)
Endpoint2
	retlw	0x07		; length of descriptor
	retlw	ENDPOINT
	retlw	0x01		; EP1, OUT
	retlw	0x03		; Interrupt
	retlw	0x08		; max packet size (8 bytes) low order byte
	retlw	0x00		; max packet size (8 bytes) high order byte
	retlw	0x0a		; polling interval (10ms)
EndConfig1

Config2
	retlw	0x09		; bLength	Length of this descriptor
	retlw	0x02		; bDescType	2=CONFIGURATION
	retlw	EndConfig2 - Config2
	retlw	0x00
	retlw	0x01		; bNumInterfaces	Number of interfaces
	retlw	0x02		; bConfigValue	Configuration Value
	retlw	0x04		; iConfig	String Index for this config = #04
	retlw	0x80		; bmAttributes	attributes - bus powered, remote wakeup disabled
	retlw	0x32		; MaxPower	100mA
Interface1c2
	retlw	0x09		; length of descriptor
	retlw	INTERFACE
	retlw	0x00		; number of interface, 0 based array
	retlw	0x00		; alternate setting
	retlw	0x02		; number of endpoints used in this interface
	retlw	0xFF		; interface class - assigned by the USB
	retlw	0x00		; not a boot device
	retlw	0x00		; interface protocol - none
	retlw 	0x00		; index to string descriptor that describes this interface
Endpoint1c2
	retlw	0x07		; length of descriptor
	retlw	ENDPOINT
	retlw	0x81		; EP1, In
	retlw	0x03		; Interrupt
	retlw	0x08		; max packet size (8 bytes) low order byte
	retlw	0x00		; max packet size (8 bytes) high order byte
	retlw	0x0a		; polling interval (10ms)
Endpoint2c2
	retlw	0x07		; length of descriptor
	retlw	ENDPOINT
	retlw	0x01		; EP1, OUT
	retlw	0x03		; Interrupt
	retlw	0x08		; max packet size (8 bytes) low order byte
	retlw	0x00		; max packet size (8 bytes) high order byte
	retlw	0x0a		; polling interval (10ms)	
EndConfig2

ReportDescriptorLen
	retlw	low  (end_ReportDescriptor-ReportDescriptor)
ReportDescriptor
	dt 0x06, 0x00, 0xff	; USAGE_PAGE (Vendor Defined Page 1)
	dt 0x09, 0x01		; USAGE (Vendor Usage 1)
	dt 0xa1, 0x01		; COLLECTION (Application)
	dt 0x19, 0x01		;   USAGE_MINIMUM (Vendor Usage 1)
	dt 0x29, 0x08		;   USAGE_MAXIMUM (Vendor Usage 8)
	dt 0x15, 0x00		;   LOGICAL_MINIMUM (0)
	dt 0x26, 0xff, 0x00	;   LOGICAL_MAXIMUM (255)
	dt 0x75, 0x08		;   REPORT_SIZE (8)
	dt 0x95, 0x08		;   REPORT_COUNT (8)
	dt 0x81, 0x02		;   INPUT (Data,Var,Abs)
	dt 0x19, 0x01		;   USAGE_MINIMUM (Vendor Usage 1)
	dt 0x29, 0x08		;   USAGE_MAXIMUM (Vendor Usage 8)
	dt 0x91, 0x02		;   OUTPUT (Data,Var,Abs)
	dt 0xc0			; END_COLLECTION
end_ReportDescriptor
	
; ******************************************************************
; Given a string descriptor index, returns the beginning address
; of the descriptor within the descriptions table
; ******************************************************************
GetStringIndex	
	movwf	temp
	movlw	HIGH StringIndexTable
	movwf	PCLATH
	movlw	LOW StringIndexTable
	addwf	temp,w
	btfsc	STATUS,C
	incf	PCLATH,f
	movwf	PCL

StringIndexTable
	retlw	low  String0	; LangIDs
	retlw	high String0
	retlw	low  String1
	retlw	high String1
	retlw	low  String2
	retlw	high String2
	retlw	low  String3
	retlw	high String3
	retlw	low  String4
	retlw	high String4

StringDescriptions
	banksel	EP0_start
	movf	EP0_start+1,w
	movwf	PCLATH
	movf	EP0_start,w
	movwf	PCL

String0
	retlw	low (String1 - String0)	; length of string 
	retlw	0x03		; descriptor type 3?
	retlw	0x09		; language ID (as defined by MS 0x0409)
	retlw	0x04
String1
	retlw	String2-String1	; length of string
	retlw	0x03		; string descriptor type 3
	retlw	'M'
	retlw	0x00
	retlw	'i'
	retlw	0x00
	retlw	'c'
	retlw	0x00
	retlw	'r'
	retlw	0x00
	retlw	'o'
	retlw	0x00
	retlw	'c'
	retlw	0x00
	retlw	'h'
	retlw	0x00
	retlw	'i'
	retlw	0x00
	retlw	'p'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'T'
	retlw	0x00
	retlw	'e'
	retlw	0x00
	retlw	'c'
	retlw	0x00
	retlw	'h'
	retlw	0x00
	retlw	'n'
	retlw	0x00
	retlw	'o'
	retlw	0x00
	retlw	'l'
	retlw	0x00
	retlw	'o'
	retlw	0x00
	retlw	'g'
	retlw	0x00
	retlw	'y'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'I'
	retlw	0x00
	retlw	'n'
	retlw	0x00
	retlw	'c'
	retlw	0x00
	retlw	'.'
	retlw	0x00
String2
	retlw	String3-String2
	retlw	0x03
	retlw	'P'
	retlw	0x00
	retlw	'I'
	retlw	0x00
	retlw	'C'
	retlw	0x00
	retlw	'k'
	retlw	0x00
	retlw	'i'
	retlw	0x00
	retlw	't'
	retlw	0x00
	retlw	'('
	retlw	0x00
	retlw	'T'
	retlw	0x00
	retlw	'M'
	retlw	0x00
	retlw	')'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'1'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'F'
	retlw	0x00
	retlw	'L'
	retlw	0x00
	retlw	'A'
	retlw	0x00
	retlw	'S'
	retlw	0x00
	retlw	'H'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'S'
	retlw	0x00
	retlw	't'
	retlw	0x00
	retlw	'a'
	retlw	0x00
	retlw	'r'
	retlw	0x00
	retlw	't'
	retlw	0x00
	retlw	'e'
	retlw	0x00
	retlw	'r'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'K'
	retlw	0x00
	retlw	'i'
	retlw	0x00
	retlw	't'
	retlw	0x00
String3
	retlw	String4-String3
	retlw	0x03
	retlw	'C'
	retlw	0x00
	retlw	'o'
	retlw	0x00
	retlw	'n'
	retlw	0x00
	retlw	'f'
	retlw	0x00
	retlw	'i'
	retlw	0x00
	retlw	'g'
	retlw	0x00
	retlw	'.'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'1'
	retlw	0x00
	retlw	':'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'H'
	retlw	0x00
	retlw	'I'
	retlw	0x00
	retlw	'D'
	retlw	0x00
String4
	retlw	String5-String4
	retlw	0x03
	retlw	'C'
	retlw	0x00
	retlw	'o'
	retlw	0x00
	retlw	'n'
	retlw	0x00
	retlw	'f'
	retlw	0x00
	retlw	'i'
	retlw	0x00
	retlw	'g'
	retlw	0x00
	retlw	'.'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'2'
	retlw	0x00
	retlw	':'
	retlw	0x00
	retlw	' '
	retlw	0x00
	retlw	'n'
	retlw	0x00
	retlw	'o'
	retlw	0x00
	retlw	'n'
	retlw	0x00
	retlw	'-'
	retlw	0x00
	retlw	'H'
	retlw	0x00
	retlw	'I'
	retlw	0x00
	retlw	'D'
	retlw	0x00
String5
	end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图制服诱惑| 亚洲国产wwwccc36天堂| 色婷婷狠狠综合| 免费观看日韩av| 亚洲精品国久久99热| 精品国产在天天线2019| 91小视频免费看| 精品无人码麻豆乱码1区2区| 亚洲激情在线播放| 欧美国产日韩亚洲一区| 日韩视频免费直播| 日本乱人伦aⅴ精品| 国产精品77777| 日本亚洲免费观看| 亚洲免费av高清| 国产精品久久毛片a| 精品国产在天天线2019| 欧美日韩不卡一区| 色狠狠av一区二区三区| 懂色一区二区三区免费观看| 蜜桃久久av一区| 亚洲v日本v欧美v久久精品| ...xxx性欧美| 在线观看中文字幕不卡| 日本一二三四高清不卡| 在线这里只有精品| 成人av网站免费| 激情综合色综合久久| 日本中文一区二区三区| 亚洲电影欧美电影有声小说| 亚洲青青青在线视频| 国产日本亚洲高清| 精品成a人在线观看| 日韩欧美国产成人一区二区| 欧美乱妇15p| 欧美手机在线视频| 欧美图区在线视频| 欧美在线不卡一区| 91黄色小视频| kk眼镜猥琐国模调教系列一区二区| 国内成人免费视频| 国产一区二区三区不卡在线观看| 精品一区中文字幕| 国产一本一道久久香蕉| 国产一区二区精品久久| 国产另类ts人妖一区二区| 国内精品伊人久久久久av一坑| 日本不卡在线视频| 久久99精品网久久| 国产很黄免费观看久久| 成人动漫av在线| 93久久精品日日躁夜夜躁欧美| 99久久国产综合色|国产精品| 97精品久久久久中文字幕| 91影视在线播放| 在线日韩av片| 正在播放亚洲一区| 精品国产电影一区二区| 久久精品一区八戒影视| 国产精品伦理在线| 亚洲乱码中文字幕综合| 亚洲成人免费看| 精品一区二区三区在线观看国产 | 成人精品国产一区二区4080| 丁香一区二区三区| 色综合色综合色综合色综合色综合| 91蝌蚪porny| 欧美丰满美乳xxx高潮www| 精品电影一区二区三区| 国产精品嫩草影院com| 亚洲精品老司机| 男男视频亚洲欧美| 成人黄色在线视频| 欧美图片一区二区三区| 久久无码av三级| 成人免费在线观看入口| 视频精品一区二区| 丁香五精品蜜臀久久久久99网站 | 制服丝袜中文字幕亚洲| 精品国产亚洲一区二区三区在线观看| 久久久www成人免费无遮挡大片| 国产精品久久久久久久蜜臀| 亚洲国产日韩一级| 国产在线不卡视频| 欧美亚洲国产一区在线观看网站| 欧美一区二区黄色| 亚洲欧洲日韩在线| 麻豆国产精品一区二区三区| 成人免费观看av| 欧美日韩国产精选| 国产精品三级视频| 日韩av一级片| 一本色道久久综合亚洲91| 日韩一区和二区| 一级做a爱片久久| 国产一区二区精品在线观看| 欧美日韩在线不卡| 中文字幕免费不卡| 蜜桃av噜噜一区| 色悠悠久久综合| 久久久久久久久久久久久久久99| 亚洲一级不卡视频| 成人网在线播放| 欧美v日韩v国产v| 亚洲小说春色综合另类电影| 成人国产视频在线观看| 欧美变态凌虐bdsm| 亚洲国产日韩综合久久精品| kk眼镜猥琐国模调教系列一区二区| 日韩三级视频中文字幕| 亚洲国产成人av网| 色综合视频在线观看| 国产目拍亚洲精品99久久精品| 青青草原综合久久大伊人精品优势| 99久久99久久免费精品蜜臀| 精品国产一区二区精华| 蜜芽一区二区三区| 欧美欧美欧美欧美首页| 一区二区三区精品久久久| 欧美日韩国产小视频| 亚洲欧美偷拍三级| 不卡的av网站| 欧美国产激情二区三区| 国产乱码精品一区二区三区五月婷| 欧美一区二区三区色| 日韩精品五月天| 欧美精品久久天天躁| 亚洲国产sm捆绑调教视频| 一本色道久久综合亚洲精品按摩| 国产精品护士白丝一区av| 成人听书哪个软件好| 国产日韩欧美一区二区三区乱码 | 亚洲成人动漫在线观看| 欧美羞羞免费网站| 一区二区高清视频在线观看| 在线观看亚洲精品| 亚洲电影一级片| 91精品国产91久久久久久一区二区| 亚洲成在人线免费| 777色狠狠一区二区三区| 日韩 欧美一区二区三区| 欧美一区二区不卡视频| 日韩电影免费一区| 日韩欧美一区二区久久婷婷| 免费高清在线视频一区·| 欧美大白屁股肥臀xxxxxx| 久草精品在线观看| 国产亚洲精久久久久久| 成人午夜av影视| 亚洲精品乱码久久久久| 欧美日韩亚洲综合在线| 美女一区二区三区在线观看| 欧美成人精品1314www| 精品无人区卡一卡二卡三乱码免费卡 | 蜜桃视频第一区免费观看| 精品成人一区二区三区四区| 国产经典欧美精品| 最新成人av在线| 欧美日韩免费一区二区三区视频| 日韩精品一级二级| 精品国产免费久久| 成人18精品视频| 亚洲图片自拍偷拍| 久久综合狠狠综合久久综合88 | 亚洲大片免费看| 日韩色视频在线观看| 东方欧美亚洲色图在线| 樱花影视一区二区| 日韩精品最新网址| 不卡的av在线播放| 日本欧美一区二区| 免费在线欧美视频| 国产精品三级av| 这里只有精品免费| 成人一区二区三区视频在线观看| 一区二区三区在线播| 日韩精品在线一区二区| 成人高清视频在线| 日韩不卡免费视频| 国产欧美精品国产国产专区| 欧美日韩久久久一区| 国产福利精品一区二区| 一区二区三区四区亚洲| 欧美va亚洲va香蕉在线| 99国产精品国产精品久久| 日本美女一区二区三区视频| 国产精品久久久久久久久快鸭 | 96av麻豆蜜桃一区二区| 老色鬼精品视频在线观看播放| 国产精品成人一区二区三区夜夜夜| 欧美浪妇xxxx高跟鞋交| 成人app在线观看| 热久久国产精品| 一区二区在线免费观看| 久久嫩草精品久久久精品| 337p亚洲精品色噜噜噜| 99久久综合精品| 国产一区在线不卡| 日韩电影一区二区三区| 一区二区三区在线播放|