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

📄 dscr.lst

📁 EZ-USB FX2的一个单字读和单字写的程序
💻 LST
📖 第 1 页 / 共 2 页
字号:
A51 MACRO ASSEMBLER  DSCR                                                                 06/22/2006 16:02:24 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) DEBUG 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 rights reserved
                       6     ;;-----------------------------------------------------------------------------
                       7        
  0001                 8     DSCR_DEVICE       equ    1      ;; Descriptor type: Device
  0002                 9     DSCR_CONFIG       equ    2      ;; Descriptor type: Configuration
  0003                10     DSCR_STRING       equ    3      ;; Descriptor type: String
  0004                11     DSCR_INTRFC       equ    4      ;; Descriptor type: Interface
  0005                12     DSCR_ENDPNT       equ    5      ;; Descriptor type: Endpoint
  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: Isochronous
  0002                23     ET_BULK           equ    2      ;; Endpoint type: Bulk
  0003                24     ET_INT            equ    3      ;; Endpoint type: Interrupt
                      25     
                      26     public      DeviceDscr, DeviceQualDscr, HighSpeedConfigDscr, FullSpeedConfigDscr, StringDsc
                             r, UserDscr
                      27     
                      28     ;; TGE  DSCR   SEGMENT   CODE
                      29     
                      30     ;;-----------------------------------------------------------------------------
                      31     ;; Global Variables
                      32     ;;-----------------------------------------------------------------------------
                      33     
                      34     ;; TGE      rseg DSCR                 ;; locate the descriptor table in on-part memory.
                      35     
----                  36                 cseg at 90H               ;; TODO: this needs to be changed before release
0090                  37     DeviceDscr:   
0090 12               38           db   DSCR_DEVICE_LEN      ;; Descriptor length
0091 01               39           db   DSCR_DEVICE          ;; Decriptor type
0092 0002             40           dw   0002H                ;; Specification Version (BCD)
0094 00               41           db   00H                  ;; Device class
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
A51 MACRO ASSEMBLER  DSCR                                                                 06/22/2006 16:02:24 PAGE     2

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      ;; Descriptor length
00AD 02               66           db   DSCR_CONFIG          ;; Descriptor type
00AE 20               67           db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr) mod 256 ;; Total Length (LSB)
00AF 00               68           db   (HighSpeedConfigDscrEnd-HighSpeedConfigDscr)  /  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 length
00B6 04               77           db   DSCR_INTRFC          ;; Descriptor type
00B7 00               78           db   0                    ;; Zero-based index of this 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 class
00BD 00               84           db   0                    ;; Interface descriptor string index
                      85           
                      86     ;; Endpoint Descriptor
00BE 07               87           db   DSCR_ENDPNT_LEN      ;; Descriptor length
00BF 05               88           db   DSCR_ENDPNT          ;; Descriptor type
00C0 02               89           db   02H                  ;; Endpoint number, and direction
00C1 02               90           db   ET_BULK              ;; Endpoint type
00C2 00               91           db   00H                  ;; Maximun packet size (LSB)
00C3 02               92           db   02H                  ;; Max packect size (MSB)
00C4 00               93           db   00H                  ;; Polling interval
                      94     
                      95     ;; Endpoint Descriptor
00C5 07               96           db   DSCR_ENDPNT_LEN      ;; Descriptor length
00C6 05               97           db   DSCR_ENDPNT          ;; Descriptor type
00C7 88               98           db   88H                  ;; Endpoint number, and direction
00C8 02               99           db   ET_BULK              ;; Endpoint type
00C9 00              100           db   00H                  ;; Maximun packet size (LSB)
00CA 02              101           db   02H                  ;; Max packect size (MSB)
00CB 00              102           db   00H                  ;; Polling interval
                     103     
00CC                 104     HighSpeedConfigDscrEnd:   
                     105     
00CC                 106     FullSpeedConfigDscr:   
00CC 09              107           db   DSCR_CONFIG_LEN      ;; Descriptor length
00CD 02              108           db   DSCR_CONFIG          ;; Descriptor type
00CE 20              109           db   (FullSpeedConfigDscrEnd-FullSpeedConfigDscr) mod 256 ;; Total Length (LSB)
00CF 00              110           db   (FullSpeedConfigDscrEnd-FullSpeedConfigDscr)  /  256 ;; Total Length (MSB)

⌨️ 快捷键说明

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