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

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

?? usbhidio.lst

?? VB和USB通訊示例
?? LST
?? 第 1 頁 / 共 5 頁
字號:
CYASM Version 1.75
(C) 1997 Cypress Semiconductor Corp.

0000            ;Filename: usbhidio.asm
0000            ;Version: 1.3
0000            ;Date: 11/5/99
0000            ;Copyright 1999 by Jan Axelson (jan@lvr.com)
0000            ;
0000            ;Chip: Cypress Semiconductor CY7C63001 USB Microcontroller
0000            ;Assembler: cyasm.exe
0000            ;Purpose: demonstrates USB communications with an HID-class device
0000            ;Description:
0000            ;Handles all required standard USB and HID-class requests.
0000            ;Receives data from the host in output reports
0000            ;using Interrupt transfers on endpoint 1.
0000            ;Sends data to the host in input reports
0000            ;using Control transfers on endpoint 0
0000            ;(because the chip doesn't support OUT transfers on endpoint 1).
0000            ;I used Cypress Semiconductor's js50.asm joystick example code as a base 
0000            ;in creating this program.
0000            ;The companion host software is the Visual-Basic project usbhidio.vbp.
0000            ;For more information, visit Lakeview Research at http://www.lvr.com .
0000            ;Send comments, bug reports, etc. to jan@lvr.com .
0000            
0000            ;Changes:
0000            
0000            ;V1.3: 11/20/99
0000            ;The length of the string descriptors is now correct.
0000            ;(Thanks, John Hyde)
0000            ;Changed the control_read routine to prevent error when sending a 
0000            ;multiple of 8 bytes.
0000            ;(Thanks, Dave Wright)
0000            
0000            ;V1.2:
0000            ;added watchdog resets in wait loops,
0000            ;no watchdog reset in the 1-msec. timer ISR.
0000            
0000            ;V1.1:
0000            ;Clears the watchdog only in the main routine
0000            ;(so the watchdog will detect if the main routine crashes).
0000            ;Some additions to the comments.
0000            
0000            ;V1.0:
0000            ;Clears the Watchdog timer on 1-msec. interrupt.
0000            ;(Not needed on the development board, but needed for stand-alone.)
0000            ;The Endpoint 1 ISR now sets bit 7 of Endpoint 1 TX config to 1.
0000            ;(The bit is cleared on EP1 interrupt.)
0000            
0000            ;======================================================================
0000            ;assembler directives (equates)
0000            ;======================================================================
0000            
0000            ;----------------------------------------------------------------------
0000            ;I/O registers
0000            ;----------------------------------------------------------------------
0000            
0000            ;I/O ports
0000            Port0_Data:            equ     00h      ; GPIO data port 0
0000            Port1_Data:            equ     01h      ; GPIO data port 1
0000            Port0_Interrupt:       equ     04h      ; Interrupt enable for port 0
0000            Port1_Interrupt:       equ     05h      ; Interrupt enable for port 1
0000            Port0_Pullup:          equ     08h      ; Pullup resistor control for port 0
0000            Port1_Pullup:          equ     09h      ; Pullup resistor control for port 1
0000            
0000            ;USB ports
0000            USB_EP0_TX_Config:      equ     10h     ; USB EP0 transmit configuration
0000            USB_EP1_TX_Config:      equ     11h     ; USB EP1 transmit configuration
0000            USB_Device_Address:     equ     12h     ; USB device address assigned by host
0000            USB_Status_Control:     equ     13h     ; USB status and control register
0000            USB_EP0_RX_Status:      equ     14h     ; USB EP0 receive status
0000            
0000            ;Control ports
0000            Global_Interrupt:       equ     20h     ; Global interrupt enable
0000            Watchdog:               equ     21h     ; clear watchdog Timer
0000            Timer:                  equ     23h     ; free-running Timer
0000            
0000            ;GPIO Isink registers
0000            Port0_Isink:            equ     30h
0000            Port0_Isink0:           equ     30h
0000            Port0_Isink1:           equ     31h
0000            Port0_Isink2:           equ     32h
0000            Port0_Isink3:           equ     33h
0000            Port0_Isink4:           equ     34h
0000            Port0_Isink5:           equ     35h
0000            Port0_Isink6:           equ     36h
0000            Port0_Isink7:           equ     37h
0000            Port1_Isink:            equ     38h
0000            Port1_Isink0:           equ     38h
0000            Port1_Isink1:           equ     39h
0000            Port1_Isink2:           equ     3Ah
0000            Port1_Isink3:           equ     3Bh
0000            
0000            ;Control port
0000            Status_Control:         equ     FFh
0000            
0000            ;----------------------------------------------------------------------
0000            ;Register bit values
0000            ;----------------------------------------------------------------------
0000            
0000            ;CPU Status and Control (Status_Control)
0000            RunBit:                 equ     1h     ; CPU Run bit
0000            USBReset:               equ    20h     ; USB Bus Reset bit
0000            WatchDogReset:          equ    40h     ; Watchdog Reset bit
0000            
0000            ; USB EP1 transmit configuration (USB_EP1_TX_Config)
0000            DataToggle:               equ     40h     ; Data 0/1 bit
0000            
0000            DISABLE_REMOTE_WAKEUP:  equ   0         ; bit[1] = 0
0000            ENABLE_REMOTE_WAKEUP:   equ   2         ; bit[1] = 1
0000            
0000            ;----------------------------------------------------------------------
0000            ;Interrupt masks
0000            ;----------------------------------------------------------------------
0000            
0000            ;The timer-only mask enables the 1-millisecond timer interrupt.
0000            TIMER_ONLY:               equ      4h
0000            
0000            ;The enumerate mask enables the following interrupts:
0000            ;1-millisecond timer, USB Endpoint 0
0000            ENUMERATE_MASK:          equ     0Ch
0000            
0000            ;The runtime mask enables the following interrupts:
0000            ;1-millisecond timer, USB Endpoint 0, USB Endpoint 1, GPIO
0000            RUNTIME_MASK:          equ     5Ch
0000            
0000            ;----------------------------------------------------------------------
0000            ; USB Constants
0000            ; from the USB Spec v1.1
0000            ;----------------------------------------------------------------------
0000            
0000            ;standard request codes
0000            get_status:             equ   0
0000            clear_feature:          equ   1
0000            set_feature:            equ   3
0000            set_address:            equ   5
0000            get_descriptor:         equ   6
0000            set_descriptor:         equ   7
0000            get_configuration:      equ   8
0000            set_configuration:      equ   9
0000            get_interface:          equ  10
0000            set_interface:          equ  11
0000            synch_frame:            equ  12
0000            
0000            ; standard descriptor types
0000            device:              equ  1
0000            configuration:       equ  2
0000            string:              equ  3
0000            interface:           equ  4
0000            endpoint:            equ  5
0000            
0000            ; standard feature selectors
0000            endpoint_stalled:       equ  0              ; recipient endpoint
0000            device_remote_wakeup:   equ  1              ; recipient device
0000            
0000            ;----------------------------------------------------------------------
0000            ;HID-class descriptors
0000            ;from HID Class Definition v1.1 Draft
0000            ;----------------------------------------------------------------------
0000            
0000            ;Class-specific descriptor types from section 7.1 Standard Requests
0000            HID:                    equ  21h
0000            report:                 equ  22h
0000            physical:               equ  23h
0000              
0000            ;Class-specific request codes from section 7.2 Class Specific Requests
0000            get_report:             equ   1
0000            get_idle:               equ   2
0000            get_protocol:           equ   3
0000            set_report:             equ   9
0000            set_idle:               equ  10
0000            set_protocol:           equ  11
0000            
0000            ;----------------------------------------------------------------------
0000            ;USB buffer bytes
0000            ;----------------------------------------------------------------------
0000            
0000            ;Control Endpoint 0 buffer
0000            Endpoint_0:             equ  70h        ; control endpoint
0000            Endpoint0_Byte0:        equ  70h        ; Endpoint 0, byte 0
0000            Endpoint0_Byte1:        equ  71h        ; Endpoint 0 byte 1
0000            Endpoint0_Byte2:        equ  72h        ; Endpoint 0 byte 2
0000            Endpoint0_Byte3:        equ  73h        ; Endpoint 0 byte 3
0000            Endpoint0_Byte4:        equ  74h        ; Endpoint 0 byte 4
0000            Endpoint0_Byte5:        equ  75h        ; Endpoint 0 byte 5
0000            Endpoint0_Byte6:        equ  76h        ; Endpoint 0 byte 6
0000            Endpoint0_Byte7:        equ  77h        ; Endpoint 0 byte 7
0000            
0000            
0000            ;Endpoint 0 SETUP packet bytes
0000            bmRequestType:          equ  70h
0000            bRequest:               equ  71h
0000            wValue:                 equ  72h        ; default wValue (8 bits)
0000            wValueHi:               equ  73h
0000            wIndex:                 equ  74h        ; default wIndex (8 bits)
0000            wIndexHi:               equ  75h
0000            wLength:                equ  76h        ; default wLength (8 bits)
0000            wLengthHi:              equ  77h
0000            
0000            ;Endpoint 1 buffer
0000            endpoint_1:             equ  78h
0000            Endpoint1_Byte0:        equ  78h        ; Endpoint 1, byte 0
0000            Endpoint1_Byte1:        equ  79h        ; Endpoint 1 byte 1
0000            Endpoint1_Byte2:        equ  7Ah        ; Endpoint 1 byte 2
0000            Endpoint1_Byte3:        equ  7Bh        ; Endpoint 1 byte 3
0000            Endpoint1_Byte4:        equ  7Ch        ; Endpoint 1 byte 4
0000            Endpoint1_Byte5:        equ  7Dh        ; Endpoint 1 byte 5
0000            Endpoint1_Byte6:        equ  7Eh        ; Endpoint 1 byte 6
0000            Endpoint1_Byte7:        equ  7Fh        ; Endpoint 1 byte 7
0000            
0000            ;----------------------------------------------------------------------
0000            ; Variables stored in data memory
0000            ;----------------------------------------------------------------------
0000            ;USB status
0000            remote_wakeup_status:   equ  30h          ;0=disabled, 2-enabled
0000            configuration_status:   equ  31h          ;0=unconfigured, 1=configured
0000            ;idle_status:           equ  33h          ;support SetIdle and GetIdle
0000            protocol_status:        equ  34h          ;0=boot protocol, 1=report protocol
0000            
0000            ;Other variables:
0000            suspend_counter:        equ  35h          ;number of idle bus milliseconds 
0000            loop_temp:              equ  37h          ;temporary loop variable
0000            start_send:             equ  32h          ;0=false, 1=true
0000            
0000            ;Received data:
0000            Data_Byte0:               equ  38h
0000            Data_Byte1:               equ  39h
0000            Data_Byte2:               equ  3Ah
0000            Data_Byte3:               equ  3Bh
0000            Data_Byte4:               equ  3Ch
0000            Data_Byte5:               equ  3Dh
0000            Data_Byte6:               equ  3Eh
0000            Data_Byte7:               equ  3Fh
0000            
0000            temp:                   equ  25h
0000            start_time:             equ  21h
0000            testbit:                equ  22h
0000            interrupt_mask:         equ  20h
0000            endp0_data_toggle:      equ  23h
0000            loop_counter:           equ  24h
0000            data_start:             equ  27h
0000            data_count:             equ  28h
0000            endpoint_stall:         equ  29h
0000            
0000            ;======================================================================
0000            ;interrupt vectors
0000            ;======================================================================
0000            
0000            org  00h                ; Reset vector; begin here after a reset.
0000 80 99 [05] jmp  Reset
0002            
0002            org  02h                ; 128-microsecond interrupt
0002 80 10 [05] jmp  DoNothing_ISR
0004            
0004            org  04h                ; 1024-millisecond interrupt 
0004 80 15 [05] jmp  One_mSec_ISR
0006            
0006            org  06h                ; endpoint 0 interrupt 
0006 81 24 [05] jmp  USB_EP0_ISR
0008            
0008            org  08h                ; endpoint 1 interrupt 
0008 80 8C [05] jmp  USB_EP1_ISR
000A            
000A            org  0Ah                ; reserved interrupt 
000A 80 99 [05] jmp  Reset
000C            
000C            org  0Ch                ; general purpose I/O interrupt 
000C 80 85 [05] jmp  GPIO_ISR           ; not used
000E            
000E            org  0Eh                ; Wakeup_ISR or resume interrupt 
000E 80 10 [05] jmp  DoNothing_ISR      ; not used
0010            
0010            ORG  10h
0010            
0010            ;======================================================================
0010            ;Interrupt routines

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
视频一区二区中文字幕| 欧美亚洲禁片免费| 日韩激情av在线| 亚洲一区二区欧美日韩| 亚洲欧美另类在线| 亚洲欧洲制服丝袜| 亚洲人成在线播放网站岛国| 亚洲同性gay激情无套| 国产精品无遮挡| 欧美国产禁国产网站cc| 国产精品美女久久久久aⅴ| 国产欧美日韩不卡免费| 国产精品久久久久久久浪潮网站 | 波多野结衣精品在线| 久久99国产精品免费| 国产老妇另类xxxxx| 不卡视频在线观看| 日本韩国欧美国产| 7777女厕盗摄久久久| 亚洲精品一线二线三线| 欧美国产欧美亚州国产日韩mv天天看完整 | 久久爱www久久做| 国产精品一级在线| 91在线播放网址| 欧美日韩一区二区三区视频| 欧美一区二区三区人| 亚洲国产高清在线观看视频| 综合久久久久久| 日本aⅴ亚洲精品中文乱码| 国产在线国偷精品免费看| av网站免费线看精品| 欧美日韩视频在线第一区 | 日韩成人免费在线| 国产成人综合亚洲91猫咪| 99re在线精品| 7777精品伊人久久久大香线蕉超级流畅 | 国产v综合v亚洲欧| 色狠狠色狠狠综合| 日韩午夜精品电影| 中文字幕亚洲在| 蜜桃视频第一区免费观看| 成人午夜精品在线| 在线成人小视频| 国产精品国模大尺度视频| 日产欧产美韩系列久久99| 成人激情视频网站| 日韩精品一区二区在线观看| 亚洲天堂精品视频| 国产最新精品精品你懂的| 色噜噜狠狠色综合中国| 久久精品综合网| 国产欧美精品一区二区色综合朱莉| 久久色成人在线| 久久久99久久精品欧美| 91精品国产乱码久久蜜臀| 国产精品国产精品国产专区不片 | 99国产精品视频免费观看| 91麻豆精品国产91久久久更新时间| 国产欧美视频在线观看| 天天影视涩香欲综合网| 色婷婷精品久久二区二区蜜臂av| 久久蜜桃av一区精品变态类天堂 | 日本欧美肥老太交大片| 91免费在线看| 国产精品久久久久久亚洲伦| 国产成人亚洲综合a∨婷婷| 日韩一区二区不卡| 亚洲国产成人av| 在线观看日韩av先锋影音电影院| 亚洲国产精品成人综合| 国产在线精品一区二区夜色| 日韩午夜激情免费电影| 日本最新不卡在线| 欧美丰满嫩嫩电影| 丝袜脚交一区二区| 3d动漫精品啪啪一区二区竹菊| 一级日本不卡的影视| 色偷偷久久人人79超碰人人澡| 成人免费在线观看入口| 99re6这里只有精品视频在线观看| 久久女同性恋中文字幕| 国产综合色在线| 欧美精品一区二区在线观看| 久久精品av麻豆的观看方式| 日韩欧美不卡在线观看视频| 玖玖九九国产精品| 亚洲精品一区二区三区四区高清| 久久机这里只有精品| 久久综合九色综合97_久久久| 激情久久五月天| 久久综合av免费| 粉嫩久久99精品久久久久久夜| 欧美激情一区三区| 色综合久久天天| 日韩精品免费视频人成| 精品国产乱码久久久久久1区2区| 国产呦精品一区二区三区网站| 国产女主播在线一区二区| 91最新地址在线播放| 午夜精品久久久久| 精品不卡在线视频| 99在线精品视频| 日韩国产高清在线| 中文字幕电影一区| 91成人在线观看喷潮| 麻豆精品在线看| 中文在线一区二区| 欧美日韩第一区日日骚| 国产自产视频一区二区三区| 综合中文字幕亚洲| 91精品国产综合久久福利| 国产夫妻精品视频| 亚洲国产一区二区在线播放| 26uuu另类欧美| 不卡在线视频中文字幕| 日韩av电影免费观看高清完整版| 久久久久久久综合日本| 欧美专区在线观看一区| 久久99精品国产| 亚洲一区二区三区四区在线免费观看| 日韩免费福利电影在线观看| hitomi一区二区三区精品| 日韩专区中文字幕一区二区| 中文字幕中文字幕一区二区| 欧美一区二区三区四区久久| 成人av在线影院| 久久精品国产99国产精品| 亚洲国产一区二区a毛片| 国产午夜亚洲精品羞羞网站| 91精品国产综合久久婷婷香蕉| 成人深夜福利app| 青青草成人在线观看| 樱桃视频在线观看一区| 欧美激情在线观看视频免费| 欧美zozozo| 欧美精品xxxxbbbb| 欧美伊人久久久久久午夜久久久久| 蜜桃视频免费观看一区| 亚洲电影视频在线| 国产精品美女一区二区在线观看| 精品sm捆绑视频| 正在播放一区二区| 欧美性生活大片视频| 色综合天天综合色综合av | 国产综合一区二区| 麻豆精品一二三| 丝袜亚洲另类丝袜在线| 亚洲国产精品久久久男人的天堂 | 欧美日韩综合在线| 91在线一区二区三区| 不卡大黄网站免费看| 国产一区二区影院| 国产在线精品免费| 精东粉嫩av免费一区二区三区| 日产国产高清一区二区三区| 日本aⅴ亚洲精品中文乱码| 水蜜桃久久夜色精品一区的特点| 亚洲最大成人综合| 亚洲午夜精品久久久久久久久| 亚洲女同女同女同女同女同69| 亚洲丝袜自拍清纯另类| 国产精品视频线看| 中文字幕日韩一区| 亚洲美女视频一区| 伊人婷婷欧美激情| 亚洲风情在线资源站| 日韩国产精品久久久| 蜜桃久久av一区| 国产一区 二区| av色综合久久天堂av综合| 一本色道久久综合亚洲91| 欧美日韩一区不卡| 欧美一级搡bbbb搡bbbb| 久久久久久久久一| 国产精品美女一区二区三区| 一区二区三区欧美视频| 午夜一区二区三区视频| 日韩av一区二区在线影视| 狠狠色丁香婷综合久久| 成人福利视频网站| 在线观看日韩毛片| 欧美xxxxx牲另类人与| 国产精品久久久久永久免费观看 | 国产一区二区不卡| 不卡电影一区二区三区| 欧美色窝79yyyycom| 26uuu欧美| 亚洲综合一区二区三区| 蜜臀a∨国产成人精品| 成人综合婷婷国产精品久久蜜臀 | 欧美xxxxx牲另类人与| 日本一区二区成人| 午夜精品成人在线视频| 国产精品中文字幕日韩精品| 成人av网站大全| 欧美成人三级在线| 夜夜爽夜夜爽精品视频| 国产乱色国产精品免费视频| 欧美日韩在线免费视频| 国产亚洲一区字幕|