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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? caminterfaceasm.s

?? ov7620是采用cmos傳感器技術(shù)的攝像頭
?? S
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
							      ; current pixel run
		in	pixelCount,_SFR_IO_ADDR(TCNT1L)	; get the current TCNT1 value 
		mov   pixelRunStart,pixelCount	      ; reload pixelRunStart for the
							      ; next run
		sub	pixelCount,tmp2     		; pixelCount = TCNT1L - pixelRunStart
										
		st	X+,lastColor			; record the color run in the current line buffer
		st	X+,pixelCount			; with its length
		mov	lastColor,color			; set lastColor so we can figure out when it changes
		
		nop					; waste one more cycle for a total of 16
		rjmp	_acquirePixelBlock	
		
; _cleanUpTrackingLine is used to write the last run length block off to the currentLineBuffer so
; that all 176 pixels in the line are accounted for.
_cleanUpTrackingLine:		
		ldi	pixelCount,0xFF		      ; the length of the last run is ALWAYS 0xFF minus the last
		sub	pixelCount,pixelRunStart      ; pixelRunStart
		
		inc	pixelCount		      ; increment pixelCount since we actually need to account
						      ; for the overflow of TCNT1
										
		st	X+,color		      ; record the color run in the current line buffer
		st	X,pixelCount		
		rjmp	_cleanUp
		
_cleanUpDumpLine:		
		; NOTE: If serial data is received, to interrupt the tracking of a line, we'll
		; get a EV_SERIAL_DATA_RECEIVED event, and the T bit set so we will end the
		; line's processing...however, the PCLK will keep on ticking for the rest of
		; the frame/line, which will cause the TCNT to eventually overflow and
		; interrupt us, generating a EV_ACQUIRE_LINE_COMPLETE event.  We don't want
		; this, so we need to actually turn off the PCLK counting each time we exit
		; this loop, and only turn it on when we begin acquiring lines....
        ; NOT NEEDED FOR NOW...
		;in	tmp1, _SFR_IO_ADDR(TIMSK)		        ; disable TIMER1 to stop counting
		;andi	tmp1, DISABLE_PCLK_TIMER1_OVERFLOW_BITMASK 	; external PCLK pulses
		;out	_SFR_IO_ADDR(TIMSK),tmp1			
		
_cleanUp:
		; Toggle the debug line to indicate the line is complete
		sbi   _SFR_IO_ADDR(PORTD),PD6
		cbi   _SFR_IO_ADDR(PORTD),PD6
		clt				; clear out the T bit since we have detected
						; the interruption and are exiting to handle it
_exit:
		ret
		
;*****************************************************************		
;   	Function Name: CamIntAsm_waitForNewDumpFrame
;       Function Description: This function is responsible for
;       going to sleep until a new frame begins (indicated by
;    	VSYNC transitioning from low to high.  This will wake
;       the "VSYNC sleep" up and allow it to continue with 
;       acquiring a line of pixel data to dump out to the UI.
;       Inputs:  r25 - MSB of currentLineBuffer
;                r24 - LSB of currentLineBuffer
;		     r23 - MSB of prevLineBuffer
;		     r22 - LSB of prevLineBuffer
;       Outputs: none
;       NOTES: This function doesn't really return...it sorta just
;       floats into the acquireDumpLine function after the "VSYNC sleep"
;       is awoken.
;*****************************************************************		
CamIntAsm_waitForNewDumpFrame:
		sbi	_SFR_IO_ADDR(PORTD),PD6  ; For testing...
		cbi	_SFR_IO_ADDR(PORTD),PD6
		sleep

;*****************************************************************
; REMEMBER...everything from here on out is critically timed to be
; synchronized with the flow of pixel data from the camera...
;*****************************************************************

CamIntAsm_acquireDumpLine:
		brts	_cleanUp
		sbi	_SFR_IO_ADDR(PORTD),PD6 ; For testing...
		cbi	_SFR_IO_ADDR(PORTD),PD6
		
		mov     XH,currLineBuffHigh    	; Load the pointer to the current line
		mov	XL,currLineBuffLow	; buffer into the X pointer regs

		mov	YH,prevLineBuffHigh	      ; Load the pointer to the previous line
		mov	YL,prevLineBuffLow  	      ; buffer into the Y pointer regs
		
		ldi 	tmp1,PIXEL_RUN_START_INITIAL	; set up the TCNT1 to overflow (and
		ldi 	tmp2,0xFF 			; interrupts) after 176 pixels		
		out 	_SFR_IO_ADDR(TCNT1H),tmp2		
		out 	_SFR_IO_ADDR(TCNT1L),tmp1		
		
		in	tmp1, _SFR_IO_ADDR(TIMSK)	            ; enable TIMER1 to start counting
		ori	tmp1, ENABLE_PCLK_TIMER1_OVERFLOW_BITMASK   ; external PCLK pulses and interrupt 
		out	_SFR_IO_ADDR(TIMSK),tmp1	            ; on overflow			
		
		in 	tmp1, _SFR_IO_ADDR(GICR)	; enable the HREF interrupt...remember, we
							; only use this interrupt to synchronize
							; the beginning of the line
		ori 	tmp1, HREF_INTERRUPT_ENABLE_MASK
		out	_SFR_IO_ADDR(GICR), tmp1
		
;*******************************************************************************************
;   Dump Frame handler 
;*******************************************************************************************		
		
_dumpFrame:		
		sbi	_SFR_IO_ADDR(PORTD),PD6
		sleep                                     ; ...And we wait...

		cbi	_SFR_IO_ADDR(PORTD),PD6
		in 	tmp1, _SFR_IO_ADDR(GICR)		; disable the HREF interrupt
		andi 	tmp1, HREF_INTERRUPT_DISABLE_MASK  	; so we don't get interrupted
		out	_SFR_IO_ADDR(GICR), tmp1		; while dumping the line
	
		nop		; Remember...if we ever remove the "cbi" instruction above,
				; we need to add two more NOPs to cover this
	
; Ok...the following loop needs to run in 8 clock cycles, so we can get every
; pixel in the line...this shouldn't be a problem, since the PCLK timing was
; reduced by a factor of 2 whenever we go to dump a line (this is to give us
; enough time to do the sampling and storing of the pixel data).  In addition,
; it is assumed that we will have to do some minor processing on the data right
; before we send it out, like mask off the top 4-bits of each, and then pack both
; low nibbles into a single byte for transmission...we just don't have time to
; do that here (only 8 instruction cycles :-)  )
_sampleDumpPixel:
		in	tmp1,G_PORT		      ; sample the G value                      (1)
		in	tmp2,RB_PORT		; sample the R/B value			      (1)
		st	X+,tmp1			; store to the currLineBuff and inc ptrs  (2)
		st	Y+,tmp2			; store to the prevLineBuff and inc ptrs  (2)
		brtc	_sampleDumpPixel	      ; loop back unless flag is set            (2...if not set)
                                          ;                                     ___________
                                          ;                                          8 cycles normally
																			
		; if we make it here, it means the T flag is set, and we must have been interrupted
		; so we need to exit (what if we were interrupted for serial? should we disable it?)
		rjmp	_cleanUpDumpLine

;***********************************************************
;	Function Name: <interrupt handler for External Interrupt0> 
;	Function Description: This function is responsible
;	for handling a rising edge on the Ext Interrupt 0.  This
;	routine simply returns, since we just want to wake up
;	whenever the VSYNC transitions (meaning the start of a new
;	frame).
;	Inputs:  none
;	Outputs: none
;***********************************************************
SIG_INTERRUPT0:
; This will wake us up when VSYNC transitions high...we just want to return
		reti
		
;***********************************************************
;	Function Name: <interrupt handler for External Interrupt1> 
;	Function Description: This function is responsible
;	for handling a falling edge on the Ext Interrupt 1.  This
;	routine simply returns, since we just want to wake up
;	whenever the HREF transitions (meaning the pixels 
;	are starting after VSYNC transitioned, and we need to
; 	start acquiring the pixel blocks
;	Inputs:  none
;	Outputs: none
;***********************************************************	
SIG_INTERRUPT1:
; This will wake us up when HREF transitions high...we just want to return
		reti
		
;***********************************************************
;	Function Name: <interrupt handler for Timer0 overflow>
;	Function Description: This function is responsible
;	for handling the Timer0 overflow (hooked up to indicate
;	when we have reached the number of HREFs required in a
;	single frame).  We set the T flag in the SREG to
;	indicate to the _acquirePixelBlock routine that it needs
;	to exit, and then set the appropriate action to take in
;	the eventList of the Executive module.
;	Inputs:  none
;	Outputs: none
;   Note: Originally, the HREF pulses were also going to
;   be counted by a hardware counter, but it didn't end up
;   being necessary
;***********************************************************
;SIG_OVERFLOW0:
;		set	      ; set the T bit in SREG
;		lds	tmp1,eventBitmask
;		ori	tmp1,EV_ACQUIRE_FRAME_COMPLETE
;		sts	eventBitmask,tmp1
;		reti
		
;***********************************************************
;	Function Name: <interrupt handler for Timer1 overflow>
;	Function Description: This function is responsible
;	for handling the Timer1 overflow (hooked up to indicate
;	when we have reached the end of a line of pixel data,
;	since PCLK is hooked up to overflow TCNT1 after 176 
;	pixels).  This routine generates an acquire line complete
;	event in the fastEventBitmask, which is streamlined for
;	efficiency reasons.
;***********************************************************
SIG_OVERFLOW1:				
		lds	tmp1,fastEventBitmask   	; set a flag indicating
		ori	tmp1,FEV_ACQUIRE_LINE_COMPLETE	; a line is complete
		sts	fastEventBitmask,tmp1
		set		; set the T bit in SREG 
		sbi	_SFR_IO_ADDR(PORTD),PD6 ; For testing...
		cbi	_SFR_IO_ADDR(PORTD),PD6 ; For testing...

		reti

; This is the default handler for all interrupts that don't
; have handler routines specified for them.
        .global __vector_default              
__vector_default:
        reti

        .end

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产91对白在线观看九色| 欧美午夜视频网站| 图片区小说区区亚洲影院| 国产午夜久久久久| 91麻豆精品国产91久久久久久久久| 国产精品亚洲午夜一区二区三区 | 国产精品乱人伦一区二区| 欧日韩精品视频| 成人黄色大片在线观看| 麻豆成人在线观看| 亚洲成人资源在线| 成人免费小视频| 国产欧美一区视频| 日韩欧美精品三级| 欧美日韩不卡一区二区| 成人av午夜电影| 国产精品一区二区男女羞羞无遮挡| 亚洲国产成人精品视频| 国产精品传媒在线| 国产日产精品1区| 日韩精品一区二区三区四区视频 | 精品国产凹凸成av人导航| 91高清视频免费看| 91欧美激情一区二区三区成人| 国产精品18久久久久久久久 | 国产精品视频一二| 久久香蕉国产线看观看99| 日韩一区二区免费高清| 欧美日本一道本| 色悠久久久久综合欧美99| 成人少妇影院yyyy| 成人免费视频视频在线观看免费 | 欧美三级电影在线观看| 91性感美女视频| 97国产精品videossex| 成人动漫一区二区| 成人av免费在线观看| 成人激情综合网站| 99精品一区二区三区| 91麻豆成人久久精品二区三区| 不卡一区中文字幕| 99久久久久久| 日本高清免费不卡视频| 欧美伊人精品成人久久综合97 | 中文字幕在线不卡一区二区三区| 国产三级欧美三级日产三级99| 久久久久久久精| 国产欧美日韩视频在线观看| 国产精品情趣视频| 最好看的中文字幕久久| 亚洲狠狠丁香婷婷综合久久久| 国产精品二三区| 樱花草国产18久久久久| 午夜婷婷国产麻豆精品| 久久精品国产精品亚洲红杏| 国产一区二区三区美女| 成人av资源在线观看| 在线欧美日韩精品| 欧美精品亚洲二区| 久久婷婷久久一区二区三区| 国产欧美中文在线| 亚洲综合色噜噜狠狠| 蜜臀av一区二区在线观看| 国产一区二区三区香蕉| 99免费精品视频| 在线免费不卡电影| 日韩欧美一二三| 国产精品午夜电影| 亚洲专区一二三| 精品一区二区三区视频在线观看| 国产成人亚洲综合a∨猫咪| 99re这里只有精品6| 欧美妇女性影城| 国产拍欧美日韩视频二区| 亚洲一区免费在线观看| 久久精品99久久久| 97se狠狠狠综合亚洲狠狠| 欧美一区二区三区在线电影| 国产精品水嫩水嫩| 丝袜美腿成人在线| 国产成人av电影免费在线观看| 色香色香欲天天天影视综合网| 91精品国产手机| 国产精品久久久久久妇女6080| 午夜久久久久久久久| 国产风韵犹存在线视精品| 欧美亚洲日本一区| 国产日韩精品一区二区三区| 亚洲va韩国va欧美va| 国产成人免费视频网站 | 91精品国产综合久久精品app| 久久亚洲春色中文字幕久久久| 亚洲免费在线观看| 国产精品自在在线| 欧美日韩一区二区三区在线看| xf在线a精品一区二区视频网站| 亚洲综合在线视频| 国产91对白在线观看九色| 3d动漫精品啪啪| 亚洲日本中文字幕区| 久久www免费人成看片高清| 在线免费观看日本一区| 精品国产三级a在线观看| 亚洲小说欧美激情另类| 不卡视频在线看| 欧美精品一区二区蜜臀亚洲| 亚洲成在人线在线播放| 91在线免费看| 久久久久久久性| 日韩电影网1区2区| 欧美性xxxxx极品少妇| 18涩涩午夜精品.www| 国产成人一级电影| 精品不卡在线视频| 日本aⅴ精品一区二区三区 | 蜜桃视频在线观看一区| 欧美在线色视频| 亚洲日本在线看| 国产成人亚洲综合a∨婷婷图片| 91精品国产综合久久福利| 亚洲国产精品综合小说图片区| 99re这里都是精品| 国产精品久久久久久久午夜片| 国产一区二区三区香蕉| 日韩欧美一区二区在线视频| 亚洲大片在线观看| 欧洲一区二区av| 亚洲综合色婷婷| 欧美系列一区二区| 亚洲一区二区偷拍精品| 色婷婷精品久久二区二区蜜臂av | 免费欧美在线视频| 在线不卡的av| 日韩精品91亚洲二区在线观看 | 国产日韩欧美一区二区三区综合| 精品一区二区三区在线观看 | 91麻豆精品国产91| 首页国产欧美日韩丝袜| 7777精品伊人久久久大香线蕉| 亚洲风情在线资源站| 欧美理论片在线| 日韩国产成人精品| 日韩一区二区三区免费看| 日本aⅴ免费视频一区二区三区| 欧美一区二区久久久| 精品在线观看视频| 国产亚洲欧美中文| av中文字幕一区| 洋洋av久久久久久久一区| 欧美日韩精品欧美日韩精品| 亚洲国产欧美在线人成| 6080亚洲精品一区二区| 久久精品噜噜噜成人av农村| 久久精品综合网| 成人av在线观| 亚洲曰韩产成在线| 日韩欧美综合在线| 国产成人免费在线视频| 亚洲男同1069视频| 91精品国产综合久久蜜臀| 国产精品一区久久久久| 日韩伦理电影网| 欧美精品色一区二区三区| 日本免费在线视频不卡一不卡二| 精品国产乱码久久久久久1区2区 | 床上的激情91.| 亚洲激情在线播放| 5月丁香婷婷综合| 国产aⅴ综合色| 一区二区三区免费网站| 69精品人人人人| 成人一区二区三区视频在线观看| 亚洲欧美一区二区在线观看| 9191成人精品久久| 国产激情一区二区三区| 一区二区三区免费网站| 精品粉嫩超白一线天av| 91麻豆精品在线观看| 美女久久久精品| 亚洲视频在线一区| 欧美电视剧在线观看完整版| 99re热这里只有精品视频| 免费看日韩精品| 亚洲精品亚洲人成人网| 精品久久一区二区三区| 一本高清dvd不卡在线观看| 久久99最新地址| 一区二区三区四区高清精品免费观看| 91精品国产综合久久精品app| a亚洲天堂av| 九九精品视频在线看| 一区av在线播放| 久久精品一区蜜桃臀影院| 欧美日韩黄色一区二区| 成人听书哪个软件好| 精品一区二区在线看| 亚洲高清不卡在线观看| 国产精品成人在线观看| 欧美精品一区二区三区高清aⅴ | 夜夜爽夜夜爽精品视频|