⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dscr.lst

📁 CY7C68013通过SPI接口下载固件至ADNS-3080后的测试代码。
💻 LST
📖 第 1 页 / 共 2 页
字号:
A51 MACRO ASSEMBLER  DSCR                         01/20/2009 06:12:59 PAGE     1


MACRO ASSEMBLER A51 V6.10
OBJECT MODULE PLACED IN .\DSCR.OBJ
ASSEMBLER INVOKED BY: C:\Keil\C51\BIN\A51.EXE .\DSCR.A51 NOMOD51 SET(SMALL) DEBU
                      G PAGEWIDTH(80) EP

LOC  OBJ            LINE     SOURCE

                       1     ;;-------------------------------------------------
                             ----------------------------
                       2     ;;   File:      dscr.a51
                       3     ;;   Contents:   This file contains descriptor data
                              tables.  
                       4     ;;
                       5     ;;   Copyright (c) 1997 AnchorChips, Inc. All right
                             s reserved
                       6     ;;-------------------------------------------------
                             ----------------------------
                       7        
  0001                 8     DSCR_DEVICE   equ   1   ;; Descriptor type: Device
  0002                 9     DSCR_CONFIG   equ   2   ;; Descriptor type: Configu
                             ration
  0003                10     DSCR_STRING   equ   3   ;; Descriptor type: String
  0004                11     DSCR_INTRFC   equ   4   ;; Descriptor type: Interfa
                             ce
  0005                12     DSCR_ENDPNT   equ   5   ;; Descriptor type: Endpoin
                             t
  0006                13     DSCR_DEVQUAL  equ   6   ;; Descriptor type: Device 
                             Qualifier
                      14     
  0012                15     DSCR_DEVICE_LEN   equ   18
  0009                16     DSCR_CONFIG_LEN   equ    9
  0009                17     DSCR_INTRFC_LEN   equ    9
  0007                18     DSCR_ENDPNT_LEN   equ    7
  000A                19     DSCR_DEVQUAL_LEN  equ   10
                      20     
  0000                21     ET_CONTROL   equ   0   ;; Endpoint type: Control
  0001                22     ET_ISO       equ   1   ;; Endpoint type: Isochronou
                             s
  0002                23     ET_BULK      equ   2   ;; Endpoint type: Bulk
  0003                24     ET_INT       equ   3   ;; Endpoint type: Interrupt
                      25     
                      26     public      DeviceDscr, DeviceQualDscr, HighSpeedCo
                             nfigDscr, FullSpeedConfigDscr, StringDscr, UserDscr
                      27     
                      28     ;; TGE      DSCR   SEGMENT   CODE
                      29     
                      30     ;;-------------------------------------------------
                             ----------------------------
                      31     ;; Global Variables
                      32     ;;-------------------------------------------------
                             ----------------------------
                      33     ;; TGE      rseg DSCR                 ;; locate the
                              descriptor table in on-part memory.
                      34     
----                  35                 cseg at 90H               ;; TODO: this
                              needs to be changed before release
                      36     
0090                  37     DeviceDscr:   
0090 12               38           db   DSCR_DEVICE_LEN      ;; Descriptor lengt
                             h
0091 01               39           db   DSCR_DEVICE   ;; Decriptor type
0092 0002             40           dw   0002H      ;; Specification Version (BCD
                             )
0094 00               41           db   00H        ;; Device class
A51 MACRO ASSEMBLER  DSCR                         01/20/2009 06:12:59 PAGE     2

0095 00               42           db   00H         ;; Device sub-class
0096 00               43           db   00H         ;; Device sub-sub-class
0097 40               44           db   64         ;; Maximum packet size
0098 4705             45           dw   4705H      ;; Vendor ID
009A 0210             46           dw   0210H      ;; Product ID (Sample Device)
009C 0000             47           dw   0000H      ;; Product version ID
009E 01               48           db   1         ;; Manufacturer string index
009F 02               49           db   2         ;; Product string index
00A0 00               50           db   0         ;; Serial number string index
00A1 01               51           db   1         ;; Number of configurations
                      52     
00A2                  53     DeviceQualDscr:
00A2 0A               54           db   DSCR_DEVQUAL_LEN   ;; Descriptor length
00A3 06               55           db   DSCR_DEVQUAL   ;; Decriptor type
00A4 0002             56           dw   0002H      ;; Specification Version (BCD
                             )
00A6 00               57           db   00H        ;; Device class
00A7 00               58           db   00H         ;; Device sub-class
00A8 00               59           db   00H         ;; Device sub-sub-class
00A9 40               60           db   64         ;; Maximum packet size
00AA 01               61           db   1         ;; Number of configurations
00AB 00               62           db   0         ;; Reserved
                      63     
00AC                  64     HighSpeedConfigDscr:   
00AC 09               65           db   DSCR_CONFIG_LEN               ;; Descrip
                             tor length
00AD 02               66           db   DSCR_CONFIG                  ;; Descript
                             or type
00AE 20               67           db   (HighSpeedConfigDscrEnd-HighSpeedConfigD
                             scr) mod 256 ;; Total Length (LSB)
00AF 00               68           db   (HighSpeedConfigDscrEnd-HighSpeedConfigD
                             scr)  /  256 ;; Total Length (MSB)
00B0 01               69           db   1      ;; Number of interfaces
00B1 01               70           db   1      ;; Configuration number
00B2 00               71           db   0      ;; Configuration string
00B3 A0               72           db   10100000b   ;; Attributes (b7 - buspwr, 
                             b6 - selfpwr, b5 - rwu)
00B4 32               73           db   50      ;; Power requirement (div 2 ma)
                      74     
                      75     ;; Interface Descriptor
00B5 09               76           db   DSCR_INTRFC_LEN      ;; Descriptor lengt
                             h
00B6 04               77           db   DSCR_INTRFC         ;; Descriptor type
00B7 00               78           db   0               ;; Zero-based index of t
                             his interface
00B8 00               79           db   0               ;; Alternate setting
00B9 02               80           db   2               ;; Number of end points 
00BA FF               81           db   0ffH            ;; Interface class
00BB 00               82           db   00H               ;; Interface sub class
00BC 00               83           db   00H               ;; Interface sub sub c
                             lass
00BD 00               84           db   0               ;; Interface descriptor 
                             string index
                      85           
                      86     ;; Endpoint Descriptor
00BE 07               87           db   DSCR_ENDPNT_LEN      ;; Descriptor lengt
                             h
00BF 05               88           db   DSCR_ENDPNT         ;; Descriptor type
00C0 01               89           db   01H               ;; Endpoint number, an
                             d direction
00C1 02               90           db   ET_BULK            ;; Endpoint type
00C2 40               91           db   40H               ;; Maximun packet size
                              (LSB)
00C3 00               92           db   00H               ;; Max packect size (M
                             SB)
00C4 00               93           db   00H               ;; Polling interval
A51 MACRO ASSEMBLER  DSCR                         01/20/2009 06:12:59 PAGE     3

                      94     
                      95     ;; Endpoint Descriptor
00C5 07               96           db   DSCR_ENDPNT_LEN      ;; Descriptor lengt
                             h
00C6 05               97           db   DSCR_ENDPNT         ;; Descriptor type
00C7 81               98           db   81H               ;; Endpoint number, an
                             d direction
00C8 02               99           db   ET_BULK            ;; Endpoint type
00C9 40              100           db   40H               ;; Maximun packet size
                              (LSB)
00CA 00              101           db   00H               ;; Max packect size (M
                             SB)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -