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

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

?? descript.asm

?? USB HID mouse device firmware source code using PIC s MCU
?? ASM
?? 第 1 頁 / 共 2 頁
字號:
;                            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:           1.21
;   Date:               08 August 2001
;   Assembled using     MPASM 2.61
;   Revision History:
;   23 August 2000      DZB Changed descriptor pointers to 16 bits.
;   24 August 2000      DZB Moved EP1 & 2 configuration from USBReset
;                           to Set_Configuration to implement requirement in
;                           USB V1.1 spec paragraph 5.3.1.2
;   28 August 2000      DZB Force data toggle on OUT packets in PutUSB
;   20 March 2001       DZB Reduced use of common RAM
;   20 March 2001       DZB Put and Get use their own temp variable (GPtemp) to
;                           avoid collisions with the ISR's use of temp.
;   29 March 2001       DZB Fixed saving of bank bits in GetUSB
;   02 May 2001         DZB Implemented SHOW_ENUM_STATUS to show enumeration
;                           status on the PORTB LEDs: 0- Powered, 1- Default,
;                           2- addressed, 3- configured, 4- sleep, 
;                           5- EP0 Activity, 6- EP1 Activity, 7- EP2 Activity
;   03 August 2001      RAC Made distinct GetEP and PutEP macros for endpoints 1 
;                           and 2.  These functions are GetEP1, GetEP2, PutEP1, and 
;                           PutEP2.  Instances of the these macros are created in
;                           usb_ch9.asm.
;   08 August 2001      RAC Corrected various banking and paging issues.
;   15 August           RAC Added Report_desc_index function in descript.asm.
;                           This function allows more than one report descriptor
;                           to be used.  
;
;################################################################################
;
;   include files:
;       P16C765.inc     Rev 1.00
;       usb_defs.inc    Rev 1.00
;
;################################################################################
#include <p16C765.inc>
#include "usb_defs.inc"

USBBANK code
    global  Config_desc_index
    global  Report_desc_index
    global  Descriptions
    global  string_index
    global  DeviceDescriptor
    global  ReportDescriptor
    global  ReportDescriptorLen
    global  String0
    global  String0_end
    global  StringDescriptions
    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 configuration
    retlw   low  Config1       ; descriptor from the beginning
    retlw   high Config1       ; of the table, effectively
    ; more configurations can be added here
    ; retlw   low Config2
    ; retlw   high Config2
    ; etc....

; ******************************************************************
; 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    ; bLength    Length of this descriptor
    retlw   0x01    ; bDescType This is a DEVICE descriptor
    retlw   0x00    ; bcdUSB    USB revision 1.10 (low byte)
    retlw   0x01    ; high byte
    retlw   0x00    ; bDeviceClass    zero 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   0x01    ; idProduct
    retlw   0x00
    retlw   0x41    ; bcdDevice
    retlw   0x04
    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   0x04    ; iConfig    String Index for this config = #01
    retlw   0xA0    ; bmAttributes    attributes - bus powered
    retlw   0x32    ; MaxPower    self-powered draws 0 mA from the bus.
Interface1
    retlw   0x09    ; length of descriptor
    retlw   INTERFACE
    retlw   0x00    ; number of interface, 0 based array
    retlw   0x00    ; alternate setting
    retlw   0x01    ; number of endpoints used in this interface
    retlw   0x03    ; interface class - assigned by the USB
    retlw   0x01    ; boot device
    retlw   0x02    ; interface protocol - mouse
    retlw   0x05    ; index to string descriptor that describes this interface
HID_Descriptor
    retlw   0x09    ; descriptor size (9 bytes)
    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   (end_ReportDescriptor - ReportDescriptor)
    retlw   0x00
Endpoint1
    retlw   0x07    ; length of descriptor
    retlw   ENDPOINT
    retlw   0x81    ; EP1, In
    retlw   0x03    ; Interrupt
    retlw   0x04    ; max packet size (4 bytes) low order byte
    retlw   0x00    ; max packet size (4 bytes) high order byte
    retlw   0x0A    ; polling interval (10ms)
EndConfig1

ReportDescriptorLen
    retlw   low     (end_ReportDescriptor-ReportDescriptor)

ReportDescriptor
    retlw   0x05
    retlw   0x01    ; usage page (generic desktop)
    retlw   0x09
    retlw   0x02    ; usage (mouse)
    retlw   0xA1
    retlw   0x01    ; collection (application)
    retlw   0x09
    retlw   0x01    ;   usage (pointer)
    retlw   0xA1
    retlw   0x00    ;   collection (linked)
    retlw   0x05
    retlw   0x09    ;     usage page (buttons)
    retlw   0x19
    retlw   0x01    ;     usage minimum (1)
    retlw   0x29
    retlw   0x03    ;     usage maximum (3)
    retlw   0x15
    retlw   0x00    ;     logical minimum (0)
    retlw   0x25
    retlw   0x01    ;     logical maximum (1)
    retlw   0x95
    retlw   0x03    ;     report count (3)
    retlw   0x75
    retlw   0x01    ;     report size (1)
    retlw   0x81
    retlw   0x02    ;     input (3 button bits)
    retlw   0x95
    retlw   0x01    ;     report count (1)
    retlw   0x75
    retlw   0x05    ;     report size (5)
    retlw   0x81
    retlw   0x01    ;     input (constant 5 bit padding)
    retlw   0x05
    retlw   0x01    ;     usage page (generic desktop)
    retlw   0x09
    retlw   0x30    ;     usage (X)
    retlw   0x09
    retlw   0x31    ;     usage (Y)
    retlw   0x15
    retlw   0x81    ;     logical minimum (-127)
    retlw   0x25
    retlw   0x7F    ;     logical maximum (127)
    retlw   0x75
    retlw   0x08    ;     report size (8)
    retlw   0x95
    retlw   0x03    ;     report count (2)
    retlw   0x81
    retlw   0x06    ;     input (2 position bytes X & Y)
    retlw   0xC0    ;   end collection
    retlw   0xC0    ; end collection
end_ReportDescriptor

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

; ******************************************************************
; Given a configuration descriptor index, returns the beginning address
; of the descriptor within the descriptions table
; ******************************************************************
string_index        ; langid in W reg, string offset in EP0_start
    movwf   temp
    bcf     STATUS,C
    rlf     temp, f
    pagesel langid_index
    call    langid_index
    movwf   temp2
    incf    temp, f
    pagesel langid_index
    call    langid_index
    movwf   temp
    

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美三级日韩在线| 亚洲永久精品大片| 亚洲一区二区在线免费观看视频| 日韩影院在线观看| 99re6这里只有精品视频在线观看| 日韩一区二区三区在线视频| 中文字幕五月欧美| 国产乱人伦偷精品视频不卡| 69堂国产成人免费视频| 亚洲精品国产视频| 成人性生交大合| 精品三级av在线| 日本欧美一区二区在线观看| 在线观看免费一区| 国产精品久久久久久久岛一牛影视| 美国三级日本三级久久99 | 洋洋成人永久网站入口| 国产成人亚洲精品青草天美| 欧美刺激午夜性久久久久久久 | 国产欧美日韩三级| 国产精品69毛片高清亚洲| 日韩精品专区在线影院重磅| 亚洲图片有声小说| 在线观看av一区二区| 亚洲视频图片小说| av激情综合网| 成人欧美一区二区三区在线播放| 国产一区二区精品久久91| 日韩视频一区二区在线观看| 天天综合网 天天综合色| 欧美日韩免费在线视频| 婷婷亚洲久悠悠色悠在线播放| 欧美亚洲图片小说| 亚洲一区二区五区| 6080亚洲精品一区二区| 日韩精品一二区| 日韩欧美电影在线| 国产成人日日夜夜| 亚洲色图另类专区| 欧美三日本三级三级在线播放| 亚洲国产日日夜夜| 欧美一区二区视频在线观看2020 | 国产成人aaaa| 亚洲国产精品精华液2区45| 波多野结衣91| 亚洲精品国产成人久久av盗摄| 日本韩国欧美国产| 日韩在线一区二区| 久久色视频免费观看| 成人免费看视频| 亚洲一级片在线观看| 欧美一区永久视频免费观看| 久久99精品久久久久婷婷| 久久精品无码一区二区三区| 9色porny自拍视频一区二区| 亚洲综合色区另类av| 91精品国产综合久久精品| 国产精品91一区二区| 亚洲最新视频在线播放| 欧美一区二区成人| 成人免费毛片app| 日韩精品久久久久久| 久久五月婷婷丁香社区| 91小视频免费看| 蜜臀a∨国产成人精品| 中文字幕乱码一区二区免费| 欧洲国产伦久久久久久久| 看片的网站亚洲| 亚洲精品乱码久久久久| 日韩欧美中文一区二区| 99久久伊人网影院| 久久99精品国产91久久来源| 悠悠色在线精品| 久久久.com| 欧美一区二区三区四区视频| 不卡视频在线观看| 久久99精品国产.久久久久久| 亚洲免费在线看| 久久久精品国产免费观看同学| 欧美日韩在线不卡| 91在线视频网址| 国产一区二区三区四区五区美女| 亚洲午夜精品网| 国产精品丝袜在线| 日韩一级片在线播放| 一本到一区二区三区| 高清不卡在线观看| 另类成人小视频在线| 亚洲国产综合视频在线观看| 欧美国产精品劲爆| 久久婷婷一区二区三区| 欧美一区午夜精品| 在线不卡中文字幕| 91福利国产精品| 99精品久久久久久| 成人动漫一区二区在线| 国产91丝袜在线播放0| 久久66热偷产精品| 免费不卡在线视频| 奇米888四色在线精品| 午夜久久久久久电影| 一级做a爱片久久| 亚洲美女视频在线| 亚洲免费视频中文字幕| 国产精品丝袜91| 亚洲国产精品精华液ab| 国产人成一区二区三区影院| 欧美成人福利视频| 精品日韩成人av| 日韩精品一区二区三区在线观看| 69av一区二区三区| 日韩视频免费观看高清完整版在线观看 | 亚洲欧美国产毛片在线| 综合色中文字幕| 亚洲免费观看高清完整版在线观看熊| 中文字幕不卡在线播放| 中文字幕欧美激情一区| 国产精品嫩草影院com| 国产精品萝li| 亚洲欧美激情插 | 欧美日本不卡视频| 欧美视频一区二区| 欧美丰满少妇xxxxx高潮对白| 欧美麻豆精品久久久久久| 制服.丝袜.亚洲.另类.中文| 制服丝袜av成人在线看| 欧美大片在线观看| 国产欧美一区二区精品性色超碰 | 91蜜桃视频在线| 色综合久久久久| 欧美精品久久一区| 日韩视频免费观看高清完整版在线观看 | 日本道精品一区二区三区| 色婷婷国产精品| 91精品国产一区二区三区香蕉| 欧美r级在线观看| 中文字幕亚洲区| 亚洲一二三四久久| 看国产成人h片视频| 高清成人免费视频| 欧美日韩亚洲综合在线 | 北岛玲一区二区三区四区| 99精品视频在线观看| 欧美日韩dvd在线观看| 精品成人a区在线观看| 中文字幕一区二区三| 水野朝阳av一区二区三区| 国产一区二区日韩精品| 在线精品视频小说1| 精品99一区二区| 一区二区三区在线观看欧美| 免费欧美日韩国产三级电影| 成人网男人的天堂| 欧美美女直播网站| 中文字幕精品一区二区精品绿巨人 | 欧美日韩在线一区二区| 国产午夜亚洲精品理论片色戒| 亚洲女人****多毛耸耸8| 麻豆精品视频在线| 91国偷自产一区二区使用方法| 日韩美女主播在线视频一区二区三区| 国产精品久久久久影院| 日本视频一区二区| 成人av先锋影音| 日韩免费福利电影在线观看| 一区二区三区精品在线| 国产精品一区二区男女羞羞无遮挡| 91久久线看在观草草青青| 国产午夜精品一区二区三区嫩草| 午夜久久电影网| 色又黄又爽网站www久久| 久久精品综合网| 麻豆国产一区二区| 欧美日韩一二区| 亚洲精品国产视频| 成人爱爱电影网址| 国产色综合久久| 韩日av一区二区| 日韩西西人体444www| 亚洲6080在线| 日本韩国欧美一区二区三区| 国产精品拍天天在线| 国模少妇一区二区三区| 欧美一二三四区在线| 视频一区在线播放| 欧美日韩精品三区| 亚洲成人资源网| 在线观看欧美日本| 亚洲综合免费观看高清在线观看| 成人精品国产免费网站| 亚洲国产成人在线| 国产91高潮流白浆在线麻豆 | 日韩精品专区在线影院观看| 五月天激情小说综合| 精品视频在线免费| 午夜婷婷国产麻豆精品| 欧美久久久久久久久中文字幕| 一区二区理论电影在线观看| 97精品久久久久中文字幕| 亚洲欧洲日韩av|