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

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

?? ezint.a51

?? u-boot for Linux platform. you can test it
?? A51
字號:
; This module contains all the EZUSB-specific hardware code
; This module also contains all of the interrupt vector declarations and
; the first level interrupt servicing (register save, call subroutine,
; clear interrupt source, restore registers, return)
; Suspend and Resume are handled totally in this module
;
; A Reset sends us to Program space location 0
	CSEG AT	0		; Code space
	USING 0			; Reset forces Register Bank 0
	LJMP	Reset
;
; The interrupt vector table is also located here
; EZ-USB has two levels of USB interrupts:
; 1-the main level is described in this table (at ORG 43H)
; 2-there are 21 sources of USB interrupts and these are described in USB_ISR
; This means that two levels of acknowledgement and clearing will be required	
;	LJMP	INT0_ISR	; Features not used are commented out
;	ORG	0BH
;	LJMP	Timer0_ISR
;	ORG	13H
;	LJMP	INT1_ISR
;	ORG	1BH
;	LJMP	Timer1_ISR
;	ORG	23H
;	LJMP	UART0_ISR
;	ORG	2BH
;	LJMP	Timer2_ISR
;	ORG	33H
;	LJMP	WakeUp_ISR
;	ORG	3BH
;	LJMP	UART1_ISR
	ORG	43H
	LJMP	USB_ISR		; Auto Vector will replace byte 45H
;	ORG	4BH
;	LJMP	I2C_ISR
;	ORG	53H
;	LJMP	INT4_ISR
;	ORG	5BH
;	LJMP	INT5_ISR
;	ORG	63H
;	LJMP	INT6_ISR

	ORG	1200H		; Load above monSIO0.hex	
USB_ISR:LJMP	SUDAV_ISR
      	DB	0		; Pad entries to 4 bytes
	LJMP	SOF_ISR
	DB	0
	LJMP	SUTOK_ISR
	DB	0
	LJMP	Suspend_ISR
	DB	0
	LJMP	USBReset_ISR
	DB	0
	LJMP	Reserved
	DB	0
	LJMP	EP0In_ISR
	DB	0               ; Comment out features not used

;*Jan's code start
;Uncomment everything up to EP2OUT_ISR
	LJMP	EP0Out_ISR
	DB	0
	LJMP	EP1In_ISR
	DB	0
	LJMP	EP1Out_ISR
	DB	0
	LJMP	EP2In_ISR
	DB	0
	LJMP	EP2Out_ISR
;Jan's code end

;	DB	0
;	LJMP	EP3In_ISR
;	DB	0
;	LJMP	EP3Out_ISR
;	DB	0
;	LJMP	EP4In_ISR
;	DB	0
;	LJMP	EP4Out_ISR
;	DB	0
;	LJMP	EP5In_ISR
;	DB	0
;	LJMP	EP5Out_ISR
;	DB	0
;	LJMP	EP6In_ISR
;	DB	0
;	LJMP	EP6Out_ISR
;	DB	0
;	LJMP	EP7In_ISR
;	DB	0
;	LJMP	EP7Out_ISR		
; End of Interrupt Vector tables

; When a feature is used insert the required interrupt processing here
; The example use only used Endpoints 0 and 1 and also SOF for timing
; *Jan's code also uses the Endpoint 2 Out ISR.
Reserved:
INT0_ISR:
Timer0_ISR:
INT1_ISR:
Timer1_ISR:
UART0_ISR:
Timer2_ISR:
UART1_ISR:
I2C_ISR:
INT4_ISR:
INT5_ISR:
INT6_ISR:
SUTOK_ISR:
EP0Out_ISR:
EP1In_ISR:
EP1Out_ISR:
EP2In_ISR:
;EP2Out_ISR:			;*Jan's code uses this interrupt
EP3In_ISR:
EP3Out_ISR:
EP4In_ISR:
EP4Out_ISR:
EP5In_ISR:
EP5Out_ISR:
EP6In_ISR:
EP6Out_ISR:
EP7In_ISR :
EP7Out_ISR:
Not_Used:			; Should not get any of these
	RETI

ClearINT2:			; Tell the hardware that we're done
	MOV	A, EXIF
	CLR	ACC.4		; Clear the Interrupt 2 bit
	MOV	EXIF, A
	RET

USBReset_ISR:			; Bus has been Reset, move to DEFAULT state
	CLR	Configured
        CALL	ClearINT2
				; No need to clear source of interrupt
	RETI

Suspend_ISR:			; SIE detected an Idle bus
	MOV	A, PCON
	ORL	A, #1
	MOV	PCON, A		; Go to sleep!
	NOP
	NOP			; Wake up here due to a USBResume
	NOP
	CALL	ClearINT2
	RETI
 	
WakeUp_ISR:				; Not using external WAKEUP in these examples
					; So this must be due to a USBResume
	CLR	EICON.4			; Clear the wakeup interrupt source
	RETI

EP0In_ISR:				; A prepared packet has been read by PC host
	MOV	A, SaveLength		; Do I have any more data to send?
	JZ	NoMoreToSend
	MOV	DPH, SaveDPH		; Retreive descriptor pointer
	MOV	DPL, SaveDPL
	CALL	SendNextPieceOfDescriptor

NoMoreToSend:
	CALL	ClearINT2
	MOV	A, #00000001b
	MOV	DPTR, #IN07IRQ
	MOVX	@DPTR, A		; Clear source of interrupt
	RETI

;*Jan's code starts
EP2Out_ISR:
;This version of the code enables the chip to do interrupt Out report transfers.
;Windows 98 SE and later support interrupt Out transfers for HIDs.
;The code is similar to the ProcessOutputReport code used for Get_Report control transfers
; The report is only one byte long in this first example
; It contains a new value for the LEDs
	PUSH	DPL
	PUSH	DPH
;	PUSH	DPL1			; Uncomment if not using evaluation version
;	PUSH	DPH1
	PUSH	ACC
 	CALL ClearINT2                 	; Clear the 8051 USB interrupt
	MOV	DPTR, #OUT07IRQ		; Clear Endpoint 2 Out's interrupt request bit
	MOV	A, #00000100b
	MOVX	@DPTR, A
;	MOV	DPTR, #OUT2ByteCount	; How many bytes were received?
;	MOVX	A, @DPTR		; (This example doesn't use the count value)
	MOV	DPTR, #EP2OutBuffer	; Get the data from the endpoint's buffer
	MOVX	A, @DPTR		
	MOV	LEDValue, A		; Update the local variable
;Write any value to Endpoint 2's OUT ByteCount register
;to enable receiving new data at Endpoint 2.
	MOV	DPTR, #OUT2ByteCount	; Store the address of EP2 Out's ByteCount register
	MOVX	@DPTR, A		; Write any value to the ByteCount register	
	POP	ACC
;	POP	DPH1			; Uncomment if not using evaluation version
;	POP	DPL1
	POP	DPH
	POP	DPL
	RETI
;*Jan's code ends

SOF_ISR:				; A Start-Of-Frame packet has been received
;	CALL	ServiceTimerRoutine
; This routine services the real time interrupt
; It is also responsible for the "real world" buttons and lights
;
ServiceTimerRoutine:
	DJNZ	Msec_counter, Done	; Only need to check every 4msec
	MOV	Msec_counter, #4	; Reinitialize
; LED task
	MOV	A, LEDValue
	MOV	DPTR, #PortB_Out
	MOVX	@DPTR, A		; Update the real world
;
; Create an Input Report from the Buttons value
; This will be continually overwritten while the PCHost is not polling for data
ReadButtons:
	MOV	DPTR, #PortA_Pins
	MOVX	A, @DPTR
	CALL	CreateInputReport
Done:	CALL	ClearINT2				
	                        	; Clear the source of the interrupt
	MOV	A, #00000010b
ExitISR:MOV	DPTR, #USBIRQ
	MOVX	@DPTR, A
	RETI

SUDAV_ISR:				; A Setup packet has been received
	MOV	SaveLength, #0		; Clear any pending transactions (if any)
	MOV	DPTR, #SETUPDAT		; Copy packet to direct access memory
	MOV	R0, #SetupData
	MOV	R7, #8
CopySD:	MOVX	A, @DPTR
	MOV	@R0, A
	INC	DPTR
	INC	R0
	DJNZ	R7, CopySD
	CALL	ServiceSetupPacket	; Handle the decode of the Setup packet
; if SetAddress { Update SIE address }  // NOP on EZ-USB
; if STALL { Stall the endpoint }
; if SendData {
; 	if IsDescriptor { send DPTR->descriptor, A = length }
;	else { send ReplyBuffer }
;	}		    
	JB	STALL, SendSTALL
       	JNB	SendData, HandShake
	JB	IsDescriptor, LoadEP0
                                        ; Send data in ReplyBuffer
	MOV	DPTR, #EP0InBuffer+1
	MOV	R0, #ReplyBuffer+1
	MOV	R7, #2			; Copy the two byte buffer
CopyRB:	MOV	A, @R0
	MOVX	@DPTR, A
	DEC	DPL
	DEC	R0
	DJNZ	R7, CopyRB
	MOV	A, @R0 			; Get BufferCount
SendEP0InBuffer:
	MOV	DPTR, #In0ByteCount
StartXfer:
	MOVX	@DPTR, A		; This write initiates the transfer
HandShake:				; Handshake with host
	MOV	R7, #00000010b	 	; Set HSNAK to tell the SIE that we're done
SetEP0Control:
	MOV	DPTR, #EP0Control
	MOVX	A, @DPTR
	ORL	A, R7
	MOVX	@DPTR, A		; We're done
	CALL	ClearINT2
	MOV	A, #00000001b		; Clear the source of the interrupt
	JMP	ExitISR
SendSTALL:				; Invalid Request was received
	MOV	R7, #00000011b		; Set EP0STALL and HSNAK
	JMP	SetEP0Control
LoadEP0:				; Send the data pointed to by DPTR
	MOV	R7, A			; Save LENGTH
; Need to return the smaller of "Requested Length" and "Actual Length"
; If "Requested Length" > 255 then use "Actual Length"
; There are no descriptors > 255 in this example
	MOV	A, wLengthHigh
	JNZ	UseActual	
	CLR	C
	SUBB	A, wLengthLow
	MOV	A, wLengthLow		; This does not affect Carry
	JNC	UsewLengthLow
UseActual:
	MOV	A, R7
UsewLengthLow:
SendNextPieceOfDescriptor:		; DPTR -> Descriptor to be sent
	MOV	R7, A			; Save LENGTH again
	MOV	SaveLength, #0		; Default case, overwrite if necessary
; Do I have more than a single packet to send?
	CLR	C
	SUBB	A, #EP0Size
	JC	SendPacket
; Need to send multiple packets. 
; Calculate and save address of next packet, send next packet now
	MOV	SaveLength, A		; Send these next time
	MOV	R7, #EP0Size
	PUSH	DPH			; Save current pointer
	PUSH	DPL
	MOV	A, R7			; Retreive length
	CALL	BumpDPTR
	MOV	SaveDPH, DPH
	MOV	SaveDPL, DPL
	POP	DPL
	POP	DPH
SendPacket:
	MOV	A, R7			; Retreive length 
	MOV	R6, A			; Save length in R6 for move
	MOV	R0, #LOW(EP0InBuffer)	; PageReg = 7FH = HIGH(EP0InBuffer)
CopySTD:MOVX	A, @DPTR
	MOVX	@R0, A
	INC	DPTR
	INC	R0
	DJNZ	R6, CopySTD
	MOV	A, R7			; Retrieve LENGTH
	JMP	SendEP0InBuffer

GetOutputReport:			; Wait for this, it's next on USB
	MOV	DPTR, #Out0ByteCount	; Enable EP0OutBuffer to receive data
	MOVX	@DPTR, A 		; Any value will do
        MOV	DPTR, #EP0Control	; Wait for valid data in EP0OutBuffer
Wait40:	MOVX	A, @DPTR
	ANL	A, #00001000b		; Check OUTBSY
	JNZ	Wait40
	RET



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
综合在线观看色| 亚洲人被黑人高潮完整版| 欧美三级蜜桃2在线观看| 97久久超碰精品国产| 色综合色狠狠综合色| 日本精品一级二级| 欧美怡红院视频| 精品视频在线看| 在线成人高清不卡| 日本一区中文字幕| 国产老妇另类xxxxx| 国产一区二区三区蝌蚪| 国产精品一级片| 91偷拍与自偷拍精品| 欧美自拍丝袜亚洲| 91精品欧美一区二区三区综合在| 欧美大肚乱孕交hd孕妇| 国产亚洲欧美日韩日本| 亚洲免费在线看| 婷婷久久综合九色国产成人| 狠狠色2019综合网| av在线一区二区三区| 欧美丰满嫩嫩电影| 国产欧美久久久精品影院| 1024成人网| 日本视频免费一区| 99久久综合国产精品| 欧美日韩免费高清一区色橹橹 | 一个色在线综合| 天堂av在线一区| 成人午夜私人影院| 成人18视频在线播放| 国产精品视频线看| 一个色在线综合| 韩国v欧美v日本v亚洲v| 91色porny蝌蚪| 日韩三级精品电影久久久| 久久毛片高清国产| 亚洲成在人线免费| 成人污污视频在线观看| 欧美肥大bbwbbw高潮| 国产精品国产三级国产有无不卡| 午夜久久久久久久久| www.av精品| 国产精品色眯眯| 日本不卡1234视频| 99在线精品视频| 久久精品一二三| 日本vs亚洲vs韩国一区三区二区| 一本色道久久加勒比精品 | 国产专区欧美精品| 欧美三级午夜理伦三级中视频| 日本一区二区免费在线观看视频 | 日韩精品亚洲专区| 色视频欧美一区二区三区| 国产欧美一区二区精品性色| 麻豆久久一区二区| 777色狠狠一区二区三区| 亚洲黄色片在线观看| 国产成人高清在线| 久久一区二区三区国产精品| 男人操女人的视频在线观看欧美 | 中文字幕不卡一区| 国产久卡久卡久卡久卡视频精品| 日韩视频在线你懂得| 日韩国产欧美三级| 51久久夜色精品国产麻豆| 又紧又大又爽精品一区二区| 91丨porny丨最新| 亚洲国产成人私人影院tom| 国产成人精品www牛牛影视| 精品国产乱码久久久久久久| 美女久久久精品| 26uuu国产在线精品一区二区| 黄色日韩网站视频| 精品国产123| 国产伦精品一区二区三区免费迷| 精品久久久网站| 国产乱子轮精品视频| 国产视频亚洲色图| 成人一区二区三区| 亚洲人成网站在线| 欧美亚洲国产一卡| 日韩在线a电影| 精品国产乱码久久久久久夜甘婷婷| 激情综合色播激情啊| 久久久99精品久久| 91视视频在线观看入口直接观看www| 亚洲视频网在线直播| 欧美日韩三级一区| 国产自产2019最新不卡| 国产精品麻豆网站| 欧美亚一区二区| 另类中文字幕网| 国产精品短视频| 欧美日韩高清不卡| 狠狠色综合色综合网络| 国产精品麻豆久久久| 欧美视频在线观看一区| 精品在线你懂的| 中文字幕五月欧美| 欧美一区三区四区| 播五月开心婷婷综合| 亚洲成av人片一区二区三区 | 亚洲男人天堂av| 欧美日韩激情一区二区三区| 国内不卡的二区三区中文字幕| 欧美国产97人人爽人人喊| 国产精品第13页| 国产尤物一区二区| 久久精品欧美一区二区三区不卡| 色综合久久中文综合久久97| 日韩精品电影在线| 国产精品久久毛片| 欧美另类一区二区三区| 国产乱子轮精品视频| 手机精品视频在线观看| 国产欧美一区二区三区鸳鸯浴| 欧美日本在线视频| 在线电影一区二区三区| 国产黑丝在线一区二区三区| 亚洲国产精品久久人人爱蜜臀| 久久蜜桃av一区二区天堂| 欧美三级在线播放| 91在线视频免费91| 国产成人午夜高潮毛片| 日本免费新一区视频| 亚洲欧美日韩成人高清在线一区| 久久久亚洲国产美女国产盗摄| 欧美挠脚心视频网站| 91美女蜜桃在线| 成人网在线播放| 亚洲制服丝袜av| 欧美日韩激情在线| av中文字幕不卡| 国产电影精品久久禁18| 男女激情视频一区| 肉丝袜脚交视频一区二区| 亚洲欧美激情小说另类| 综合久久国产九一剧情麻豆| 欧美zozo另类异族| 欧美成人a在线| 日韩精品中文字幕一区| 91精品国产综合久久香蕉的特点| 欧美亚洲综合网| 欧美在线视频不卡| 色域天天综合网| 欧美综合一区二区三区| 不卡在线观看av| 91在线视频免费观看| 91视频你懂的| 欧美性受xxxx黑人xyx| 色婷婷av一区二区三区软件| 色综合天天狠狠| 欧美手机在线视频| 777欧美精品| 精品捆绑美女sm三区| 精品第一国产综合精品aⅴ| 精品美女一区二区| 久久亚洲二区三区| 国产精品少妇自拍| 一区二区三区国产| 三级精品在线观看| 国产一区二区电影| 成人高清免费观看| 欧美亚洲综合色| 日韩欧美国产精品一区| 亚洲国产欧美另类丝袜| 首页国产丝袜综合| 国产一区欧美二区| 成人毛片视频在线观看| 一本色道久久综合亚洲aⅴ蜜桃 | 欧美日韩亚洲综合一区| 欧美一区三区四区| 国产亚洲欧洲997久久综合 | 精品视频一区 二区 三区| 欧美精品18+| 国产视频一区在线观看| 一区二区三区在线观看网站| 日本成人中文字幕| 成年人午夜久久久| 91精品国产色综合久久不卡蜜臀 | 99视频超级精品| 欧美日本一区二区三区四区| 日韩欧美一级特黄在线播放| 国产精品国产三级国产普通话蜜臀 | 欧美亚洲高清一区| 精品国产一区二区三区忘忧草| 国产精品久久久久婷婷二区次| 日韩中文字幕1| www..com久久爱| 欧美成人精品1314www| 一区二区三区美女视频| 精品在线你懂的| 欧美三区在线视频| 18欧美亚洲精品| 国产精品一区二区三区网站| 欧美色国产精品| 亚洲人成精品久久久久| 国产精品一区2区|