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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? usbhidio.lst

?? VB和USB通訊示例
?? LST
?? 第 1 頁 / 共 5 頁
字號:
0010            ;======================================================================
0010            
0010            ;----------------------------------------------------------------------
0010            ; 128-microsecond interrupt, Cext
0010            ; Unused. If this interrupt occurs, just push the accumulator (because
0010            ; ipret pops it) and re-enable the interrupts.
0010            ;----------------------------------------------------------------------
0010            
0010            DoNothing_ISR:
0010 2D    [05]      push A
0011                 ;Enable interrupts and return
0011 1A 20 [06]      mov A,[interrupt_mask]
0013 1E 20 [13]      ipret Global_Interrupt
0015            
0015            ;----------------------------------------------------------------------
0015            ; 1-millisecond interrupt
0015            ; Check to see if the chip is in suspend mode and take appropriate action.
0015            ; Copy values to Endpoint 1's buffer for sending.
0015            ;----------------------------------------------------------------------
0015            
0015            One_mSec_ISR:
0015 2D    [05]      push A
0016 2A 21 [05] iowr Watchdog
0018            ;Find out if enumeration is complete.
0018            ;If enumerating is in progress, loop_temp = 0.
0018 1A 37 [06]      mov A, [loop_temp]
001A 16 00 [04]      cmp A, 0h
001C            ;If enumeration is still in progress, jump.
001C A0 20 [05]      jz not_main
001E            ;Enumeration has ended, so decrement the loop counter
001E            ;(so it no longer = 0).
001E 27 37 [07]      dec [loop_temp]
0020            
0020            not_main:                         
0020            ;Check for bus activity.
0020 29 13 [05]      iord USB_Status_Control
0022 10 01 [04]      and A, 01h
0024 16 00 [04]      cmp A,0h
0026            ;If no bus activity, increment the suspend counter.
0026 A0 34 [05]      jz Inc_counter
0028            ;If bus activity detected, clear the bus-activity bit,
0028 29 13 [05]      iord USB_Status_Control
002A 10 FE [04]      and A, 0FEh
002C 2A 13 [05]      iowr USB_Status_Control
002E            ;and clear the suspend counter.
002E 19 00 [04]      mov A, 0h
0030 31 35 [05]      mov [suspend_counter], A
0032 80 57 [05]      jmp Suspend_end
0034            
0034            Inc_counter:
0034            ;Keep track of the amount of time with no bus activity.
0034 23 35 [07]      inc [suspend_counter]
0036            ;Get the number of milliseconds the bus has been idle.
0036 1A 35 [06]      mov A, [suspend_counter]
0038            ;Has it been 3 milliseconds?
0038 16 03 [04]      cmp A, 03h
003A            ;If no, there's nothing else to do.
003A B0 57 [05]      jnz Suspend_end
003C            ;If yes, put the chip in Suspend mode.
003C            ;Clear the Suspend counter.
003C 19 00 [04]      mov A, 0h
003E 31 35 [05]      mov [suspend_counter], A
0040            ;Enable pullups on Port 1; disable the output DAC.
0040 19 00 [04]      mov A, 0h
0042 2A 09 [05]      iowr Port1_Pullup
0044 19 FF [04]      mov A, 0ffh
0046 2A 01 [05]      iowr Port1_Data
0048            ;Set the Suspend bit. 
0048 29 FF [05]      iord Status_Control
004A 0D 08 [04]      or A, 08h
004C 2A FF [05]      iowr Status_Control
004E            ;The chip is now in Suspend mode. 
004E            ;On exiting Suspend mode, the chip will begin 
004E            ;executing instructions here:
004E 20    [04]      nop     
004F            ;Disable pullups on Port 1. Enable the output DAC.
004F 19 FF [04]      mov A, 0ffh
0051 2A 09 [05]      iowr Port1_Pullup
0053 19 00 [04]      mov A, 0h
0055 2A 01 [05]      iowr Port1_Data
0057            
0057            Suspend_end:
0057            ;Is endpoint 1 enabled?
0057 29 11 [05]      iord USB_EP1_TX_Config
0059 16 00 [04]      cmp A,0
005B            ;If no, do nothing.
005B A0 7D [05]      jz Select
005D            ;If yes, is start_send = 1?
005D            ;(Start_send adds a short delay after enumeration.)
005D 1A 32 [06]      mov A, [start_send]
005F 16 01 [04]      cmp A, 01h
0061            ;If no, do nothing
0061 B0 7D [05]      jnz Select
0063            ;If yes, send data:
0063 80 65 [05]      jmp send_value
0065            
0065            send_value:
0065            ;Copies values from RAM into Endpoint 1's buffer
0065            ;and enables sending the bytes on the next poll.
0065            
0065            ;disable Endpoint 1 interrupts
0065 1A 20 [06]      mov A,[interrupt_mask]
0067 10 EF [04]      and A, EFh
0069 31 20 [05]      mov [interrupt_mask],A
006B 2A 20 [05]      iowr Global_Interrupt
006D            
006D            ;Copy values from RAM to Endpoint 1's buffer for transmitting to the host.
006D            ;Two bytes:
006D 1A 38 [06]      mov A, [Data_Byte0]
006F 31 78 [05]      mov [Endpoint1_Byte0], A
0071 1A 39 [06]      mov A, [Data_Byte1]
0073 31 79 [05]      mov [Endpoint1_Byte1], A
0075            ;Add more bytes if the report format specifies it:
0075            ;     mov A, [Data_Byte2]
0075            ;     mov [Endpoint1_Byte2], A
0075            ;     mov A, [Data_Byte3]
0075            ;     mov [Endpoint1_Byte3], A
0075            ;     mov A, [Data_Byte4]
0075            ;     mov [Endpoint1_Byte4], A
0075            ;     mov A, [Data_Byte5]
0075            ;     mov [Endpoint1_Byte5], A
0075            ;     mov A, [Data_Byte6]
0075            ;     mov [Endpoint1_Byte6], A
0075            ;     mov A, [Data_Byte7]
0075            ;     mov [Endpoint1_Byte7], A
0075            
0075            ;Other things to try:
0075            ;Set the value at Port 0 to equal byte 0 in Endpoint 1's buffer:
0075            ;     iord Port0_Data
0075            ;     mov [Endpoint1_Byte0], A
0075            
0075            ;Or set a value here and copy to Endpoint 1's buffer, byte 1:
0075            ;     mov A, A5h
0075            ;      mov [Endpoint1_Byte1], A
0075            
0075            ;Configure Endpoint 1's transmit register 
0075            ;so that the bytes will transmit on the next poll.
0075 29 11 [05]      iord USB_EP1_TX_Config
0077            ;Don't change the Data 0/1 bit.
0077 10 40 [04]      and A,40h
0079            ;Set bits 4 and 7 to 1 enable transmitting.
0079            ;The low nibble is the number of data bytes (2).
0079 0D 92 [04]      or A,92h
007B 2A 11 [05]      iowr USB_EP1_TX_Config
007D            
007D            Select:
007D            ;Enable Endpoint 1 interrupts.
007D 1A 20 [06]      mov A,[interrupt_mask]
007F 0D 10 [04]      or A, 10h
0081 31 20 [05]      mov [interrupt_mask],A
0083 1E 20 [13]      ipret Global_Interrupt
0085            
0085            ;----------------------------------------------------------------------
0085            ;GPIO interrupt
0085            ;Can be configured to trigger when a port bit toggles.
0085            ;Unused here.
0085            ;----------------------------------------------------------------------
0085            
0085            GPIO_ISR:
0085 2D    [05]      push A
0086 2E    [05]      push X
0087            
0087 2C    [04]      pop X
0088 31 20 [05]      mov [interrupt_mask],A
008A 1E 20 [13]      ipret Global_Interrupt
008C            
008C            ;----------------------------------------------------------------------
008C            ;Endpoint 1 ISR
008C            ;Endpoint 1 can do IN (device to host) transfers only.
008C            ;This interrupt triggers when the host acknowledges
008C            ;receiving data from endpoint 1.
008C            ;The ISR toggles the data 0/1 bit for the next transaction and
008C            ;sets the EnableRespondToIN bit so the chip will respond to the 
008C            ;next poll of the endpoint.
008C            ;----------------------------------------------------------------------
008C            
008C            USB_EP1_ISR:
008C 2D    [05]      push A
008D            ;Toggle the data 0/1 bit so it's correct for the next transaction.
008D 29 11 [05]      iord USB_EP1_TX_Config  
008F 13 40 [04]      xor A,40h
0091            ;The interrupt clears the EnableRespondToIN bit (bit 7) in the TX Config.
0091            ;Set this bit to 1 so data will go out on the next poll.
0091 0D 92 [04]      or A, 92h
0093 2A 11 [05]      iowr USB_EP1_TX_Config
0095            ;Enable interrupts and return.
0095 1A 20 [06]      mov A, [interrupt_mask]
0097 1E 20 [13]      ipret Global_Interrupt
0099            
0099            ;----------------------------------------------------------------------
0099            ; Reset processing
0099            ; Triggers on Reset or "reserved" interrupt.
0099            ;To be safe, initialize everything.
0099            ;----------------------------------------------------------------------
0099            
0099            Reset:
0099            ;Place the data stack pointer at the lowest address of Endpoint 0's buffer.
0099            ;This keeps the stack from writing over the USB buffers.
0099            ;The USB buffers are in high RAM;
0099            ;the data stack pointer pre-decrements on a Push instruction.
0099            
0099 19 70 [04]      mov A, Endpoint_0
009B 30    [05]      swap A, dsp
009C            
009C            ;Initialize to FFh
009C 19 FF [04]      mov A, 0ffh
009E 2A 00 [05]      iowr Port0_Data                 ; output ones to port 0
00A0 2A 09 [05]      iowr Port1_Pullup               ; disable port 1 pullups
00A2                                                 ; select rising edge interrupts
00A2 2A 38 [05]      iowr Port1_Isink0               ; maximum isink current Port1 bit 0
00A4 2A 39 [05]      iowr Port1_Isink1               ; maximum isink current Port1 bit 1
00A6 2A 3A [05]      iowr Port1_Isink2               ; maximum isink current Port1 bit 2
00A8 2A 3B [05]      iowr Port1_Isink3               ; maximum isink current Port1 bit 3
00AA            
00AA            ;Initialize to 00h
00AA 19 00 [04]      mov A, 0h
00AC 2A 01 [05]      iowr Port1_Data                 ; output zeros to port 1
00AE 2A 04 [05]      iowr Port0_Interrupt            ; disable port 0 interrupts
00B0 2A 08 [05]      iowr Port0_Pullup               ; enable port 0 pullups
00B2 2A 30 [05]      iowr Port0_Isink0               ; minimum sink current Port0 bit 0
00B4 2A 31 [05]      iowr Port0_Isink1               ; minimum sink current Port0 bit 1
00B6 2A 32 [05]      iowr Port0_Isink2               ; minimum sink current Port0 bit 2
00B8 2A 33 [05]      iowr Port0_Isink3               ; minimum sink current Port0 bit 3
00BA 2A 34 [05]      iowr Port0_Isink4               ; minimum sink current Port0 bit 4
00BC 2A 35 [05]      iowr Port0_Isink5               ; minimum sink current Port0 bit 5
00BE 2A 36 [05]      iowr Port0_Isink6               ; minimum sink current Port0 bit 6
00C0 2A 37 [05]      iowr Port0_Isink7               ; minimum sink current Port0 bit 7
00C2 31 78 [05]      mov [Endpoint1_Byte0],A
00C4 31 79 [05]      mov [Endpoint1_Byte1],A
00C6 31 7A [05]      mov [Endpoint1_Byte2],A
00C8 31 29 [05]      mov [endpoint_stall], A
00CA 31 30 [05]      mov [remote_wakeup_status], A
00CC 31 31 [05]      mov [configuration_status], A
00CE 31 37 [05]      mov [loop_temp], A
00D0 31 32 [05]      mov [start_send], A
00D2 2A 21 [05]      iowr Watchdog                   ; clear watchdog timer
00D4            
00D4            ;initialize values to transmit at Endpoint 1.
00D4 19 A5 [04]      mov A, A5h
00D6 31 38 [05]      mov [Data_Byte0], A
00D8 19 F0 [04]      mov A, F0h
00DA 31 39 [05]      mov [Data_Byte1], A
00DC            
00DC            ;Enable Port 1, bit 0 interrupts.
00DC            ;     mov A, 01h
00DC            ;     iowr Port1_Interrupt
00DC            ;
00DC            ;Test what kind of reset occurred: bus or watchdog?
00DC 29 FF [05]      iord Status_Control
00DE            ;Was it a bus reset?
00DE 10 20 [04]      and A, USBReset
00E0            ;If yes, jump to handle it.
00E0 B0 F7 [05]      jnz BusReset
00E2 29 FF [05]      iord Status_Control
00E4            ;Was it a watchdog reset?
00E4 10 40 [04]      and A, WatchDogReset
00E6            ;If no, continue to wait for a bus reset
00E6 A0 F0 [05]      jz suspendReset
00E8            ;
00E8            ;Watchog reset:
00E8            ;A watchdog reset means that the watchdog timer
00E8            ;wasn't cleared for 8.192 milliseconds.
00E8            ;Wait for a bus reset to bring the system alive again.
00E8            ;Enable 1-millisecond interrupt only
00E8 19 04 [04]      mov A, TIMER_ONLY
00EA 31 20 [05]      mov [interrupt_mask],A
00EC 2A 20 [05]      iowr Global_Interrupt
00EE            ;Wait for a bus reset.
00EE            WatchdogHandler:
00EE 80 EE [05]      jmp WatchdogHandler
00F0            
00F0            suspendReset:
00F0            ;Return to suspend mode to wait for a USB bus reset.
00F0 19 09 [04]      mov A, 09h
00F2 2A FF [05]      iowr Status_Control

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91福利国产精品| 精品一区二区久久久| av不卡在线播放| 中文字幕av不卡| av电影在线观看一区| 亚洲色图视频网| 欧美日韩美少妇| 麻豆91精品视频| 国产日韩欧美激情| 91色porny在线视频| 亚洲小说春色综合另类电影| 在线观看亚洲精品| 免费一级片91| 国产女同互慰高潮91漫画| 一本大道综合伊人精品热热| 亚洲国产婷婷综合在线精品| 欧美成人性战久久| 成人动漫视频在线| 亚洲h动漫在线| 国产亚洲美州欧州综合国| 91美女视频网站| 日韩av中文字幕一区二区 | 色综合天天狠狠| 婷婷国产在线综合| 久久精品一区二区三区四区| 色8久久人人97超碰香蕉987| 美女视频一区在线观看| 中文字幕在线不卡| 欧美丰满高潮xxxx喷水动漫| 国产suv一区二区三区88区| 一区二区三区四区乱视频| 日韩视频在线一区二区| 99久久精品一区| 日韩高清一级片| 国产精品欧美极品| 69av一区二区三区| caoporn国产精品| 日韩av电影一区| 亚洲欧美日韩系列| 精品少妇一区二区三区日产乱码 | 国产精品传媒入口麻豆| 欧美一级高清大全免费观看| 成人av集中营| 久草精品在线观看| 亚洲成人动漫在线观看| 国产精品久久久久影院老司| 精品国产乱码久久久久久免费| 97超碰欧美中文字幕| 国产在线精品免费av| 亚洲国产精品人人做人人爽| 国产欧美精品一区二区三区四区| 91精品国产91热久久久做人人| 99久久免费精品高清特色大片| 精品一区二区三区在线播放视频 | 精品影院一区二区久久久| 亚洲国产另类精品专区| 成人欧美一区二区三区黑人麻豆| 精品99999| 欧美久久久久中文字幕| 色婷婷综合五月| 风流少妇一区二区| 国产福利一区二区三区视频在线 | 欧美精品777| 欧美性生活影院| 91免费看视频| av成人老司机| 99精品偷自拍| 北条麻妃国产九九精品视频| 国产jizzjizz一区二区| 国内偷窥港台综合视频在线播放| 日韩av在线播放中文字幕| 亚洲午夜久久久久久久久久久| 亚洲欧洲国产日本综合| 亚洲欧美在线另类| 国产精品久久三| 国产精品久线在线观看| 国产精品美女久久福利网站 | 日韩欧美国产一区二区三区 | av影院午夜一区| 99综合电影在线视频| 成人黄色网址在线观看| 国产成人综合精品三级| 成人免费高清在线观看| 成人毛片老司机大片| 99九九99九九九视频精品| 91麻豆国产自产在线观看| 91免费国产在线观看| 91久久久免费一区二区| 一本色道久久综合精品竹菊| 91精品福利在线| 欧美精品久久99久久在免费线| 91精品国产福利| 精品国产免费视频| 国产日韩精品久久久| 欧美国产国产综合| 亚洲精选视频免费看| 亚洲一级二级在线| 日本欧美一区二区| 国产成人综合网| 色乱码一区二区三区88| 7777精品伊人久久久大香线蕉最新版 | 欧美日韩一级片网站| 欧美一级黄色片| 国产精品污污网站在线观看| 中文字幕精品三区| 一区二区三区四区不卡视频| 免费观看久久久4p| 成人精品一区二区三区中文字幕| 色欧美乱欧美15图片| 欧美一级欧美一级在线播放| 精品福利一二区| 18成人在线观看| 日韩成人一级大片| 福利一区在线观看| 欧美日韩高清一区二区三区| 精品福利一二区| 亚洲永久精品大片| 国产一区二区精品久久| 在线精品视频一区二区三四 | 欧美三级午夜理伦三级中视频| 欧美大片日本大片免费观看| 国产精品成人网| 日本欧美加勒比视频| 97久久精品人人爽人人爽蜜臀| 欧美精品久久99久久在免费线| 中文字幕高清不卡| 偷拍一区二区三区四区| 99热精品一区二区| 91精品综合久久久久久| 国产精品灌醉下药二区| 麻豆成人免费电影| 欧美日韩三级在线| 国产精品嫩草影院av蜜臀| 免费成人小视频| 91黄色小视频| 国产蜜臀97一区二区三区| 免费欧美在线视频| 色偷偷成人一区二区三区91| 久久久久久久久一| 午夜a成v人精品| 91免费国产在线观看| 久久久久久久免费视频了| 日本aⅴ精品一区二区三区| 91丨九色丨国产丨porny| 久久久www成人免费毛片麻豆| 亚洲国产日韩一级| 99精品久久99久久久久| 国产亚洲人成网站| 国内精品免费**视频| 91精品在线观看入口| 亚洲综合视频网| 91丨九色丨国产丨porny| 日本一区二区不卡视频| 国产精品99久| 精品动漫一区二区三区在线观看| 日韩精品乱码av一区二区| 欧美性感一区二区三区| 又紧又大又爽精品一区二区| 成人久久视频在线观看| 国产欧美一区二区三区在线看蜜臀| 激情图区综合网| 日韩美女主播在线视频一区二区三区| 亚洲电影欧美电影有声小说| 一本色道久久加勒比精品| 亚洲天天做日日做天天谢日日欢 | 欧美午夜精品一区二区蜜桃| 亚洲嫩草精品久久| 色婷婷av一区二区| 亚洲午夜久久久久中文字幕久| 91福利精品第一导航| 亚洲国产一区二区三区| 在线播放日韩导航| 麻豆精品国产91久久久久久| 日韩欧美一区电影| 国产在线视频一区二区三区| 欧美精品一区二区三区四区| 紧缚奴在线一区二区三区| 国产网站一区二区| av电影在线观看一区| 一区二区久久久久| 宅男噜噜噜66一区二区66| 另类小说综合欧美亚洲| 久久久久久久久久电影| 99久久免费视频.com| 一区二区三区在线高清| 欧美精品电影在线播放| 日韩和欧美的一区| 久久婷婷一区二区三区| 成人免费毛片嘿嘿连载视频| 日韩一区有码在线| 欧美日韩久久不卡| 国产在线不卡一区| 中文字幕一区二区三区av | 欧美一区二区三区免费大片| 久久成人av少妇免费| 中文字幕国产一区| 欧美日韩精品综合在线| 久久99精品久久久久久国产越南 | 欧美日韩国产高清一区二区三区| 日韩va亚洲va欧美va久久|