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

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

?? usbdrvasm.s

?? 絕對完整的UsbISP的下載線制做過程和資料.rar
?? S
?? 第 1 頁 / 共 2 頁
字號:
/* Name: usbdrvasm.S * Project: AVR USB driver * Author: Christian Starkjohann * Creation Date: 2004-12-29 * Tabsize: 4 * Copyright: (c) 2005 by OBJECTIVE DEVELOPMENT Software GmbH * License: Proprietary, free under certain conditions. See Documentation. * This Revision: $Id: usbdrvasm.S 52 2005-04-12 16:57:29Z cs $ *//*General Description:This module implements the assembler part of the USB driver. See usbdrv.hfor a description of the entire driver.Since almost all of this code is timing critical, don't change unless youreally know what you are doing! Many parts require not only a maximum numberof CPU cycles, but even an exact number of cycles!*//* configs for io.h */#define __SFR_OFFSET 0#define _VECTOR(N) __vector_ ## N	/* io.h does not define this for asm */#include <avr/io.h>	/* for CPU I/O register definitions and vectors */#include "usbdrv.h"	/* for common defs *//* register names */#define	x1		r16#define	x2		r17#define	shift	r18#define	cnt		r19#define	x3		r20#define	x4		r21#define	nop2	rjmp	.+0	/* jump to next instruction */.text.global	SIG_INTERRUPT0	.type	SIG_INTERRUPT0, @functionSIG_INTERRUPT0:;Software-receiver engine. Strict timing! Don't change unless you can preserve timing!;interrupt response time: 4 cycles + insn running = 7 max if interrupts always enabled;max allowable interrupt latency: 32 cycles -> max 25 cycles interrupt disable;max stack usage: [ret(2), x1, SREG, x2, cnt, shift, YH, YL, x3, x4] = 11 bytesusbInterrupt:;order of registers pushed:;x1, SREG, x2, cnt, shift, [YH, YL, x3]	push	x1				;2  push only what is necessary to sync with edge ASAP	in		x1, SREG		;1	push	x1				;2;sync byte (D-) pattern LSb to MSb: 01010100 [1 = idle = J, 0 = K];sync up with J to K edge during sync pattern -- use fastest possible loops;first part has no timeout because it waits for IDLE or SE1 (== disconnected)#if !USB_CFG_SAMPLE_EXACT	ldi		x1, 5			;1 setup a timeout for waitForK#endifwaitForJ:	sbis	USBIN, USBMINUS	;1 wait for D- == 1	rjmp	waitForJ		;2#if USB_CFG_SAMPLE_EXACT;The following code represents the unrolled loop in the else branch. It;results in a sampling window of 1/4 bit which meets the spec.	sbis	USBIN, USBMINUS	rjmp	foundK	sbis	USBIN, USBMINUS	rjmp	foundK	sbis	USBIN, USBMINUS	rjmp	foundK	nop	nop2foundK:#elsewaitForK:	dec		x1				;1	sbic	USBIN, USBMINUS	;1 wait for D- == 0	brne	waitForK		;2#endif;{2, 6} after falling D- edge, average delay: 4 cycles [we want 4 for center sampling];we have 1 bit time for setup purposes, then sample again:	push	x2				;2	push	cnt				;2	push	shift			;2shortcutEntry:	ldi		cnt, 1			;1 pre-init bit counter (-1 because no dec follows, -1 because 1 bit already sampled)	ldi		x2, 1<<USB_CFG_DPLUS_BIT	;1 -> 8   edge sync ended with D- == 0;now wait until SYNC byte is over. Wait for either 2 bits low (success) or 2 bits high (failure)waitNoChange:	in		x1, USBIN		;1 <-- sample, timing: edge + {2, 6} cycles	eor		x2, x1			;1	sbrc	x2, 0			;1 | 2	ldi		cnt, 2			;1 | 0 cnt = numBits - 1 (because dec follows)	mov		x2, x1			;1	dec		cnt				;1	brne	waitNoChange	;2 | 1	sbrc	x1, USBMINUS	;2	rjmp	sofError		;0 two consecutive "1" bits -> framing error;start reading data, but don't check for bitstuffing because these are the;first bits. Use the cycles for initialization instead. Note that we read and;store the binary complement of the data stream because eor results in 1 for;a change and 0 for no change.	in		x1, USBIN		;1 <-- sample bit 0, timing: edge + {3, 7} cycles	eor		x2, x1			;1	ror		x2				;1	ldi		shift, 0x7f		;1 The last bit of the sync pattern was a "no change"	ror		shift			;1	push	YH				;2 -> 7	in		x2, USBIN		;1 <-- sample bit 1, timing: edge + {2, 6} cycles	eor		x1, x2			;1	ror		x1				;1	ror		shift			;1	push	YL				;2	lds		YL, usbInputBuf	;2 -> 8	in		x1, USBIN		;1 <-- sample bit 2, timing: edge + {2, 6} cycles	eor		x2, x1			;1	ror		x2				;1	ror		shift			;1	ldi		cnt, USB_BUFSIZE;1	clr		YH				;1	push	x3				;2 -> 8	in		x2, USBIN		;1 <-- sample bit 3, timing: edge + {2, 6} cycles	eor		x1, x2			;1	ror		x1				;1	ror		shift			;1	ser		x3				;1	nop						;1	rjmp	rxbit4			;2 -> 8shortcutToStart:			;{,43} into next frame: max 5.5 sync bits missed#if !USB_CFG_SAMPLE_EXACT	ldi		x1, 5			;2 setup timeout#endifwaitForJ1:	sbis	USBIN, USBMINUS	;1 wait for D- == 1	rjmp	waitForJ1		;2#if USB_CFG_SAMPLE_EXACT;The following code represents the unrolled loop in the else branch. It;results in a sampling window of 1/4 bit which meets the spec.	sbis	USBIN, USBMINUS	rjmp	foundK1	sbis	USBIN, USBMINUS	rjmp	foundK1	sbis	USBIN, USBMINUS	rjmp	foundK1	nop	nop2foundK1:#elsewaitForK1:	dec		x1				;1	sbic	USBIN, USBMINUS	;1 wait for D- == 0	brne	waitForK1		;2#endif	pop		YH				;2 correct stack alignment	nop2					;2 delay for the same time as the pushes in the original code	rjmp	shortcutEntry	;2; ################# receiver loop #################; extra jobs done during bit interval:; bit 6:	se0 check; bit 7:	or, store, clear; bit 0:	recover from delay	[SE0 is unreliable here due to bit dribbling in hubs]; bit 1:	se0 check; bit 2:	se0 check; bit 3:	overflow check; bit 4:	se0 check; bit 5:	rjmp; stuffed* helpers have the functionality of a subroutine, but we can't afford; the overhead of a call. We therefore need a separate routine for each caller; which jumps back appropriately.stuffed5:				;1 for branch taken	in		x2, USBIN	;1 <-- sample @ +1	andi	x2, USBMASK	;1	breq	se0a		;1	andi	x3, 0xc0	;1 (0xff03 >> 2) & 0xff	ori		shift, 0xfc	;1	rjmp	rxbit6		;2stuffed6:				;1 for branch taken	in		x1, USBIN	;1 <-- sample @ +1	andi	x1, USBMASK	;1	breq	se0a		;1	andi	x3, 0x81	;1 (0xff03 >> 1) & 0xff	ori		shift, 0xfc	;1	rjmp	rxbit7		;2; This is somewhat special because it has to compensate for the delay in bit 7stuffed7:				;1 for branch taken	andi	x1, USBMASK	;1 already sampled by caller	breq	se0a		;1	mov		x2, x1		;1 ensure correct NRZI sequence [we can save andi x3 here]	ori		shift, 0xfc	;1	in		x1, USBIN	;1 <-- sample bit 0	rjmp	unstuffed7	;2stuffed0:				;1 for branch taken	in		x1, USBIN	;1 <-- sample @ +1	andi	x1, USBMASK	;1	breq	se0a		;1	andi	x3, 0xfe	;1 (0xff03 >> 7) & 0xff	ori		shift, 0xfc	;1	rjmp	rxbit1		;2;-----------------------------rxLoop:	brlo	stuffed5	;1rxbit6:	in		x1, USBIN	;1 <-- sample bit 6	andi	x1, USBMASK	;1	breq	se0a		;1	eor		x2, x1		;1	ror		x2			;1	ror		shift		;1	cpi		shift, 4	;1	brlo	stuffed6	;1rxbit7:	in		x2, USBIN	;1 <-- sample bit 7	eor		x1, x2		;1	ror		x1			;1	ror		shift		;1	eor		x3,	shift	;1 x3 is 0 at bit locations we changed, 1 at others	st		y+, x3		;2 the eor above reconstructed modified bits and inverted rx data	ser		x3			;1rxbit0:	in		x1, USBIN	;1 <-- sample bit 0	cpi		shift, 4	;1	brlo	stuffed7	;1unstuffed7:	eor		x2, x1		;1	ror		x2			;1	ror		shift		;1	cpi		shift, 4	;1	brlo	stuffed0	;1rxbit1:	in		x2, USBIN	;1 <-- sample bit 1	andi	x2, USBMASK	;1se0a:					; enlarge jump range to SE0	breq	se0			;1 check for SE0 more often close to start of byte	eor		x1, x2		;1	ror		x1			;1	ror		shift		;1	cpi		shift, 4	;1	brlo	stuffed1	;1rxbit2:	in		x1, USBIN	;1 <-- sample bit 2	andi	x1, USBMASK	;1	breq	se0			;1	eor		x2, x1		;1	ror		x2			;1	ror		shift		;1	cpi		shift, 4	;1	brlo	stuffed2	;1rxbit3:	in		x2, USBIN	;1 <-- sample bit 3	eor		x1, x2		;1	ror		x1			;1	ror		shift		;1	dec		cnt			;1	check for buffer overflow	breq	overflow	;1	cpi		shift, 4	;1	brlo	stuffed3	;1rxbit4:	in		x1, USBIN	;1 <-- sample bit 4	andi	x1, USBMASK	;1	breq	se0			;1	eor		x2, x1		;1	ror		x2			;1	ror		shift		;1	cpi		shift, 4	;1	brlo	stuffed4	;1rxbit5:	in		x2, USBIN	;1 <-- sample bit 5	eor		x1, x2		;1	ror		x1			;1	ror		shift		;1	cpi		shift, 4	;1	rjmp	rxLoop		;2;-----------------------------stuffed1:				;1 for branch taken	in		x2, USBIN	;1 <-- sample @ +1	andi	x2, USBMASK	;1	breq	se0			;1	andi	x3, 0xfc	;1 (0xff03 >> 6) & 0xff	ori		shift, 0xfc	;1	rjmp	rxbit2		;2stuffed2:				;1 for branch taken	in		x1, USBIN	;1 <-- sample @ +1	andi	x1, USBMASK	;1	breq	se0			;1	andi	x3, 0xf8	;1 (0xff03 >> 5) & 0xff	ori		shift, 0xfc	;1	rjmp	rxbit3		;2stuffed3:				;1 for branch taken	in		x2, USBIN	;1 <-- sample @ +1	andi	x2, USBMASK	;1	breq	se0			;1	andi	x3, 0xf0	;1 (0xff03 >> 4) & 0xff	ori		shift, 0xfc	;1	rjmp	rxbit4		;2stuffed4:				;1 for branch taken	in		x1, USBIN	;1 <-- sample @ +1	andi	x1, USBMASK	;1	breq	se0			;1	andi	x3, 0xe0	;1 (0xff03 >> 3) & 0xff	ori		shift, 0xfc	;1	rjmp	rxbit5		;2;################ end receiver loop ###############overflow:					; ignore package if buffer overflow	rjmp	rxDoReturn		; enlarge jump range;This is the only non-error exit point for the software receiver loop;{4, 20} cycles after start of SE0, typically {10, 18} after SE0 start = {-6, 2} from end of SE0;next sync starts {16,} cycles after SE0 -> worst case start: +4 from next sync start;we don't check any CRCs here because there is no time left.se0:							;{-6, 2} from end of SE0 / {,4} into next frame	mov		cnt, YL				;1 assume buffer in lower 256 bytes of memory

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲h在线观看| 91精品国产一区二区人妖| 久久青草欧美一区二区三区| 亚洲成人av电影| 欧洲精品一区二区| 亚洲中国最大av网站| 91色九色蝌蚪| 一区二区三区高清不卡| 91同城在线观看| 亚洲人成在线观看一区二区| av资源网一区| 亚洲线精品一区二区三区| 色呦呦一区二区三区| 一区二区在线电影| 91精选在线观看| 国产高清精品在线| 亚洲免费高清视频在线| 欧洲精品在线观看| 蜜桃精品视频在线观看| 国产欧美中文在线| 99视频热这里只有精品免费| 亚洲一区二区在线视频| 日韩午夜激情av| 99精品视频一区二区| 午夜视频在线观看一区二区三区| 日韩欧美国产成人一区二区| 久久66热re国产| 一区二区国产盗摄色噜噜| 亚洲精品一区二区三区影院| 成人美女视频在线观看18| 亚洲国产日日夜夜| 久久久不卡影院| 欧美一区日本一区韩国一区| 成人黄色国产精品网站大全在线免费观看 | 欧美午夜精品一区二区三区| 午夜不卡在线视频| 亚洲同性同志一二三专区| 91精品国产91综合久久蜜臀| 99久久er热在这里只有精品15| 青青青爽久久午夜综合久久午夜 | 精品久久久久久久人人人人传媒| 成人午夜视频福利| 久久99精品国产.久久久久久| 亚洲最大成人网4388xx| 国产精品久久久久久久久免费樱桃| 91精品国产乱码| 欧美私模裸体表演在线观看| 成人午夜av电影| 国产精品88888| 精品一区二区在线播放| 日本va欧美va欧美va精品| 亚洲综合精品自拍| 亚洲国产精品久久久久秋霞影院| 日韩毛片一二三区| 亚洲欧洲成人精品av97| 亚洲欧洲无码一区二区三区| 中文字幕一区二区在线播放 | 91麻豆国产自产在线观看| 成人小视频在线观看| 成人性色生活片免费看爆迷你毛片| 国产成人鲁色资源国产91色综| 九色|91porny| 成人网男人的天堂| 色网综合在线观看| 欧美精品99久久久**| 欧美一卡二卡在线| 久久久噜噜噜久久中文字幕色伊伊| 欧美va在线播放| 中文字幕一区免费在线观看| 亚洲国产一区二区视频| 美女一区二区三区在线观看| 国产成人在线观看| 一本在线高清不卡dvd| 91精品久久久久久久99蜜桃 | 欧美视频中文字幕| 欧美成人a∨高清免费观看| 欧美日韩一区二区三区在线 | 亚洲乱码中文字幕| 成人性生交大片免费看中文 | 亚洲欧洲日韩一区二区三区| 国产精品一区一区三区| 精品处破学生在线二十三| 日本欧美一区二区在线观看| 欧美一区二区三区成人| 日本不卡中文字幕| 91精品国产色综合久久ai换脸| 日韩精品视频网站| 日韩精品一区二区三区swag| 韩国三级中文字幕hd久久精品| 日韩精品一区二区三区在线播放 | 欧美亚洲国产一区在线观看网站| 中文字幕欧美三区| 丰满少妇久久久久久久| 国产情人综合久久777777| 久久99精品国产.久久久久| 精品成人一区二区三区四区| 经典三级在线一区| 精品国产电影一区二区| 国产91丝袜在线观看| 欧美激情在线一区二区| 91性感美女视频| 亚洲国产sm捆绑调教视频| 7799精品视频| 国产在线精品不卡| 久久久久久毛片| 91免费看视频| 一区二区三区国产精品| 欧美美女喷水视频| 国内外成人在线视频| 久久午夜老司机| 成人国产亚洲欧美成人综合网| 一区二区三区四区亚洲| 日韩一区二区三区av| 国产一区美女在线| 国产欧美一区二区在线观看| 91极品视觉盛宴| 丁香网亚洲国际| 午夜电影一区二区| 亚洲男女毛片无遮挡| 欧美电视剧在线看免费| 91成人网在线| 国产一本一道久久香蕉| 免费在线看成人av| 亚洲国产综合在线| 国产精品久久久久久久第一福利| 精品成人在线观看| 日韩欧美一级二级三级久久久| 色94色欧美sute亚洲13| av日韩在线网站| 国产一区二区电影| 韩国一区二区三区| 国产在线乱码一区二区三区| 五月天婷婷综合| 石原莉奈在线亚洲三区| 一区二区日韩电影| 五月婷婷久久丁香| 亚洲一区二区三区四区在线 | 欧美一区二区三区免费观看视频| 91蜜桃视频在线| 成人午夜视频在线| 国产成人综合在线观看| 国产精品综合久久| 国内不卡的二区三区中文字幕| 男女视频一区二区| 美女网站一区二区| 国产精品一卡二卡| 不卡视频在线观看| 在线观看成人小视频| 日韩一卡二卡三卡四卡| 国产精品全国免费观看高清| 亚洲影院理伦片| 成人午夜又粗又硬又大| 日韩欧美国产午夜精品| 亚洲免费观看高清完整| 国产99精品国产| 日韩欧美国产一区在线观看| 亚洲一区在线观看免费| 国产精品18久久久久久久久| 色婷婷国产精品综合在线观看| 欧美精品在线观看一区二区| 久久免费视频一区| 亚洲综合在线五月| 成人免费视频一区| 99热这里都是精品| 久久亚洲精华国产精华液 | 久久一区二区视频| 午夜精品久久久久久久蜜桃app| 国产成人精品免费网站| 欧美精品v国产精品v日韩精品 | 99麻豆久久久国产精品免费| 在线免费av一区| 国产精品拍天天在线| 免费一级欧美片在线观看| 亚洲六月丁香色婷婷综合久久| 欧美国产97人人爽人人喊| 久久99久久99小草精品免视看| 91精品国产综合久久精品麻豆| 午夜影院久久久| 91在线精品秘密一区二区| 激情都市一区二区| 欧美色综合久久| 日韩激情一二三区| 777亚洲妇女| 国产乱码精品一区二区三区忘忧草 | 99久久精品99国产精品| 中文字幕一区二区三区乱码在线| 91尤物视频在线观看| 一区二区三区国产豹纹内裤在线| 欧美在线你懂的| 久久超碰97人人做人人爱| 久久亚洲欧美国产精品乐播| 国产精品久久久久影院| 日韩av一区二区在线影视| 国产最新精品免费| 91丨porny丨国产入口| k8久久久一区二区三区 | 日韩精品一区二区三区三区免费 | 久久se这里有精品| 粉嫩高潮美女一区二区三区| 色婷婷精品大在线视频|