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

📄 counter.lst

📁 驱动程序开发基础教程
💻 LST
📖 第 1 页 / 共 5 页
字号:
0261            
0261                ; Restore it
0261 2C    [04]     pop  x
0262            
0262                ; Return
0262 80 B4 [05]     jmp  USBEventEP0End
0264            
0264            ;********************************************************
0264            ; Data Segment (ROM)
0264            ;********************************************************
0264            USBSendROMBufferBase:
0264            USBDeviceDescription:
0264 12    [00]     db 12h          ; Length
0265 01    [00]     db 01h          ; Type (1=device)
0266 10    [00]     db 10h,01h      ; Complies to USB Spec. v1.10
0267 01    [00] 
0268 00    [00]     db 00h          ; Class code (0=??)
0269 00    [00]     db 00h          ; SubClass code (0=??)
026A 00    [00]     db 00h          ; Protocol (0=none)(9.6.1)
026B 08    [00]     db 08h          ; Max. packet size for port0
026C 34    [00]     db 34h,12h      ; Vendor ID: (0x1234=WahBook)
026D 12    [00] 
026E 78    [00]     db 78h,56h      ; Product ID (0x01=USB Counter)
026F 56    [00] 
0270 00    [00]     db 00h,01h      ; Device release v1.00
0271 01    [00] 
0272 01    [00]     db 01h          ; Manufacturer string descriptor index (0=none)
0273 02    [00]     db 02h          ; Product string descriptor index (0=none)
0274 03    [00]     db 03h          ; Serial number string descriptor index (0=none)
0275 01    [00]     db 01h          ; Number of possible configurations
0276            USBDeviceDescriptionEnd:
0276            
0276            ;*************************************************
0276            ;
0276            USBConfigurationDescription:
0276 09    [00]     db 09h          ; Length
0277 02    [00]     db 02h          ; Type (2=config)
0278 19    [00]     db 19h,00h      ; Total data length (1 config,1 interface,1 endpoints)
0279 00    [00] 
027A 01    [00]     db 01h          ; Interface supported (1=???)
027B 01    [00]     db 01h          ; Configuration value (1=???)
027C 04    [00]     db 04h          ; Confituration string descriptor index (0=none)
027D 80    [00]     db 80h          ; Configuration (bus powered)
027E 32    [00]     db 32h          ; Maximum power consumption in 2mA units
027F            USBConfigurationDescriptionEnd:
027F            
027F            ;*************************************************
027F            ;
027F            USBInterfaceDescription:
027F 09    [00]     db 09h          ; Length
0280 04    [00]     db 04h          ; Type (4=interface)
0281 00    [00]     db 00h          ; Number of interfaces (0 based)
0282 00    [00]     db 00h          ; Alternate settings
0283 01    [00]     db 01h          ; Number of endpoints (1 based) (9.6.3)
0284 00    [00]     db 00h          ; Class code (0=non-specified,1=kb,2=mouse,3=joystick ???)
0285 00    [00]     db 00h          ; Subclass code (0=???)
0286 00    [00]     db 00h          ; Protocol code (0=non-specified)
0287 05    [00]     db 05h          ; Interface string index (0=non-specified, 1,2,3,...)
0288            USBInterfaceDescriptionEnd:
0288            
0288            ;*************************************************
0288            ; Never used for EP0
0288            USBEndPointDescriptionInt:
0288 07    [00]     db 07h          ; Length
0289 05    [00]     db 05h          ; Type (5=endpoint)
028A 81    [00]     db 81h          ; Address (EP#=1 | [0x80=IN, 0=OUT])
028B 03    [00]     db 03h          ; Attribute (0=control,1=isochronous,2=bulk,3=interrupt)
028C 08    [00]     db 08h,00h      ; Max packet size
028D 00    [00] 
028E B8    [00]     db B8h          ; Interval (200 ms)
028F            USBEndPointDescriptionIntEnd:
028F            
028F            ;*************************************************
028F            ;
028F            USBStringLanguageDescription:
028F 04    [00]     db 04h          ; Length
0290 03    [00]     db 03h          ; Type (3=string)
0291 09    [00]     db 09h          ; Language:  English
0292 01    [00]     db 01h          ; Sub-language: US
0293            
0293            USBStringDescription1:
0293 10    [00]     db 10h          ; Length
0294 03    [00]     db 03h          ; Type (3=string)
0295 57 00 ...      dsu "WAHBOOK"
     41 00 48 00 42 00 4F 00 4F 00 4B 00 
02A3            
02A3            USBStringDescription2:
02A3 10    [00]     db 10h          ; Length
02A4 03    [00]     db 03h          ; Type (3=string)
02A5 43 00 ...      dsu "Counter"
     6F 00 75 00 6E 00 74 00 65 00 72 00 
02B3            
02B3            USBStringDescription3:
02B3 0A    [00]     db 0Ah          ; Length
02B4 03    [00]     db 03h          ; Type (3=string)
02B5 30 00 ...      dsu "0001"
     30 00 30 00 31 00 
02BD            
02BD            USBStringDescription4:
02BD 28    [00]     db 28h          ; Length
02BE 03    [00]     db 03h          ; Type (3=string)
02BF 43 00 ...      dsu "Count Button Clicks"
     6F 00 75 00 6E 00 74 00 20 00 42 00 75 00 74 00 74 00 6F 00 6E 00 20 00 43 00 
     6C 00 69 00 63 00 6B 00 73 00 
02E5            
02E5            USBStringDescription5:
02E5 3E    [00]     db 3Eh          ; Length
02E6 03    [00]     db 03h          ; Type (3=string)
02E7 45 00 ...      dsu "EndPoint1 200ms Interrupt Pipe"
     6E 00 64 00 50 00 6F 00 69 00 6E 00 74 00 31 00 20 00 32 00 30 00 30 00 6D 00 
     73 00 20 00 49 00 6E 00 74 00 65 00 72 00 72 00 75 00 70 00 74 00 20 00 50 00 
     69 00 70 00 65 00 

CheckSum = C186
Warnings = 0
Errors   = 0

Product: CPU=63, RAM=128 bytes, ROM=4096K bytes

 ************ SYMBOLIC REFERENCE TABLE ************

Value  Label                # Uses 
-----  -------------------- ------
   4 = Button_Pin             3
  5f   Inc_Counter            1
   8 = LED_ON                 1
  42   MainLoop               1
  95   STimerNoDebounce       3
  72   Suspend_End            2
  9e   SysGPIOButtonDebouncing   0
  99   SysGPIOEvent           1
  40 = SysIntGPIO             1
   1 = SysIntReserved0        0
  20 = SysIntReserved5        0
   4 = SysIntTimer1024us      2
   2 = SysIntTimer128us       0
   8 = SysIntUSBEndP0         3
  10 = SysIntUSBEndP1         1
  80 = SysIntWakeUp           0
  20 = SysInterrupt           9
   0 = SysPort0               1
  30 = SysPort0ISinkPin0      0
  31 = SysPort0ISinkPin1      0
  32 = SysPort0ISinkPin2      0
  33 = SysPort0ISinkPin3      0
  34 = SysPort0ISinkPin4      0
  35 = SysPort0ISinkPin5      0
  36 = SysPort0ISinkPin6      0
  37 = SysPort0ISinkPin7      0
   4 = SysPort0IntEnable      1
   8 = SysPort0PullUp         1
   1 = SysPort1               3
  38 = SysPort1ISinkPin0      0
  39 = SysPort1ISinkPin1      0
  3a = SysPort1ISinkPin2      0
  3b = SysPort1ISinkPin3      0
   5 = SysPort1IntEnable      1
   9 = SysPort1PullUp         1
  ff = SysStatus              2
  10 = SysStatusPowerOn       0
   2 = SysStatusReserved2     0
   4 = SysStatusReserved3     0
  80 = SysStatusReserved7     0
   1 = SysStatusRun           0
   8 = SysStatusSuspend       0
  20 = SysStatusUSBReset      0
  40 = SysStatusWDReset       0
  23 = SysTimer               0
  48   SysTimer1024usEvent    1
  22 = SysTimerExternal       0
  10   SysUnUsed              3
  21 = SysWatchDog            1
 276   USBConfigurationDescription   1
 27f   USBConfigurationDescriptionEnd   0
  13 = USBControl             5
  10 = USBControlAckOutData   0
   8 = USBControlAckStatusData   2
   1 = USBControlBusActive    0
   4 = USBControlReserve2     0
  20 = USBControlReserve5     0
  40 = USBControlReserve6     0
  80 = USBControlReserve7     0
   2 = USBControlResume       0
   2 = USBDescriptorTypeConfig   1
   1 = USBDescriptorTypeDevice   1
   5 = USBDescriptorTypeEndPoint   0
   4 = USBDescriptorTypeInterface   0
   6 = USBDescriptorTypeReserved06   0
   3 = USBDescriptorTypeString   1
  12 = USBDeviceAddress       1
 264   USBDeviceDescription   1
 276   USBDeviceDescriptionEnd   0
  70 = USBEndP0FIFO           1
  70 = USBEndP0FIFO_0         4
  71 = USBEndP0FIFO_1         2
  72 = USBEndP0FIFO_2         1
  73 = USBEndP0FIFO_3         1
  74 = USBEndP0FIFO_4         0
  75 = USBEndP0FIFO_5         0
  76 = USBEndP0FIFO_6         1
  77 = USBEndP0FIFO_7         1
  10 = USBEndP0RxCount0       0
  20 = USBEndP0RxCount1       0
  40 = USBEndP0RxCount2       0
  80 = USBEndP0RxCount3       0
   8 = USBEndP0RxDataFlag     0
   4 = USBEndP0RxIn           0
   2 = USBEndP0RxOut          2
   1 = USBEndP0RxSetup        1
  14 = USBEndP0RxStatus       6
  10 = USBEndP0TxConfig       6
   1 = USBEndP0TxCount0       0
   2 = USBEndP0TxCount1       0
   4 = USBEndP0TxCount2       0
   8 = USBEndP0TxCount3       0
  80 = USBEndP0TxRespond      4
  10 = USBEndP0TxRxErr        0
  40 = USBEndP0TxSequence     3
  20 = USBEndP0TxStall        1
  78 = USBEndP1FIFO           0
  78 = USBEndP1FIFO_0         2
  79 = USBEndP1FIFO_1         0
  7a = USBEndP1FIFO_2         0
  7b = USBEndP1FIFO_3         0
  7c = USBEndP1FIFO_4         0
  7d = USBEndP1FIFO_5         0
  7e = USBEndP1FIFO_6         0
  7f = USBEndP1FIFO_7         0
  11 = USBEndP1TxConfig       7
   1 = USBEndP1TxCount0       0
   2 = USBEndP1TxCount1       0
   4 = USBEndP1TxCount2       0
   8 = USBEndP1TxCount3       0
  10 = USBEndP1TxEnable       0
  80 = USBEndP1TxRespond      0
  40 = USBEndP1TxSequence     0
  20 = USBEndP1TxStall        0
  ad   USBEndPoint0Event      1
  a2   USBEndPoint1Event      1
 288   USBEndPointDescriptionInt   0
 28f   USBEndPointDescriptionIntEnd   0
  b4   USBEventEP0End         12
 118   USBEventEP0SetupGetDescriptor   1
 12c   USBEventEP0SetupGetDescriptorConfig   1
 11a   USBEventEP0SetupGetDescriptorDevice   0
 1b4   USBEventEP0SetupGetDescriptorEnd   2
 142   USBEventEP0SetupGetDescriptorString   1
 148   USBEventEP0SetupGetDescriptorString0   0
 15a   USBEventEP0SetupGetDescriptorString1   1
 16c   USBEventEP0SetupGetDescriptorString2   1
 17e   USBEventEP0SetupGetDescriptorString3   1
 190   USBEventEP0SetupGetDescriptorString4   1
 1a2   USBEventEP0SetupGetDescriptorString5   1
  f0   USBEventEP0SetupIsSetAddress   1
  fe   USBEventEP0SetupSetAddress   1
 108   USBEventEP0SetupSetConfig   1
  da   USBEventEP0SetupTargetDeviceIN   0
  ce   USBEventEP0SetupTargetDeviceOUT   0
  e2   USBEventEP0SetupTargetEndpointIN   0
  d6   USBEventEP0SetupTargetEndpointOUT   0
  de   USBEventEP0SetupTargetInterfaceIN   0
  d2   USBEventEP0SetupTargetInterfaceOUT   0
  e6   USBEventEP0SetupTargetVendorIN_OUT   0
  b8   USBEventEP0Stall       8
 23c   USBEventEP0VendorRqst   1
  c0   USBEventEP0_SETUP      1
 27f   USBInterfaceDescription   0
 288   USBInterfaceDescriptionEnd   0
  4b = USBRawProtocolACK      0
  96 = USBRawProtocolIn       0
  5a = USBRawProtocolNAK      0
  87 = USBRawProtocolOut      0
  c3 = USBRawProtocolPort0    0
  d2 = USBRawProtocolPort1    0
  b4 = USBRawProtocolSetup    0
   1 = USBRqstClearFeature    0
   8 = USBRqstGetConfigu

⌨️ 快捷键说明

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