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

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

?? uartinterfaceasm.s

?? ov7620是采用cmos傳感器技術的攝像頭
?? S
字號:
;       Module Name: UartInterfaceAsm.S
;       Module Date: 05/24/2004
;       Module Auth: John Orlando 
;       Copyright (c) 2004 John Orlando  All Rights Reserved 
;
;       Description: This module provides an interrupt service routine
;	  for accessing the mega8's UART receive register.  This is
;       done specially since we want to be able to signal to the
;       currently running routine that serial data needs to be handled.

#include <avr/io.h>
#include "Events.h"

	.extern Exec_eventFifo		; This gives the ability to indicate which
			                  ; action to take upon being interrupted.
	.extern Exec_eventFifoHead  
									
	.extern UIMgr_rxFifoHead	; This allows access to the head of the rx fifo
		
	.extern UIMgr_rxFifo		; This allows access to the rx fifo itself...
		
#define UI_MGR_RX_FIFO_MASK 	31	; This needs to correspond to the value in UIMgr.c			 
								
tmpReg				= 0		
zeroReg				= 1
r20					= 20
r21					= 21
r22					= 22
r23					= 23
r24					= 24
r25					= 25
r26					= 26
r27					= 27
r28					= 28
r29					= 29
r30					= 30
r31					= 31

        .section .text

	  .global SIG_UART_RECV
	
;***********************************************************
;	Function Name: <interrupt handler for UART receive complete>
;	Function Description: This function is responsible reading
;	a byte from the UART, and writing it to the UIMgr_rxFifo.
;	This all needs to be done in assembly (instead of C) 
;	because we are using the T flag in the SREG to indicate
;	to the currently executing routine that an event needs
;	to be processed.  If written in C, the SREG would get
;	restored as the last thing (from the stack), and thus
;	the T flag would be written with its inital value.  When
;	the ISR is written in assembly, we can do whatever we
;	want, including setting the T flag after the SREG is
;	restored. NOTE: This routine was originally written in
;	C, then compiled with GCC.  The resultant output was
;	studied to create this routine.
;	Inputs:  none
;	Outputs: none
;***********************************************************
SIG_UART_RECV:		
		push	zeroReg
		push	tmpReg
		in    tmpReg, _SFR_IO_ADDR(SREG) 	; save the status reg
		push	tmpReg
		clr	zeroReg
		
		push	r20				; save the contents of needed regs
		push	r21
		push	r24
		push	r30				; save the Z register so we		
		push	r31				; can use it to access the rx fifo
		push	r28
		push	r29
		
		in 	r28,_SFR_IO_ADDR(SPL)
		in 	r29,_SFR_IO_ADDR(SPH)
		sbiw 	r28,2
		out 	_SFR_IO_ADDR(SPH),r29
		out 	_SFR_IO_ADDR(SPL),r28
		
		
		in	r20,_SFR_IO_ADDR(UDR)		; read the serial byte
		
		; Store the received serial byte in the rx fifo
		lds	r21,UIMgr_rxFifoHead	
		ldi 	r24,lo8(UIMgr_rxFifo)
		ldi 	r25,hi8(UIMgr_rxFifo)
		movw 	r30,r24
		add 	r30,r21			; r31:r30 should now point to the next free spot in the fifo
		adc 	r31,zeroReg			; not sure what this is for...
		st	z,r20		           	; z is all set now...store the data into the fifo
		
		inc	r21
		andi	r21,UI_MGR_RX_FIFO_MASK ; handle wrapping of the rx fifo
		sts	UIMgr_rxFifoHead,r21
		
		; Store the event in the event fifo
		ldi	r20,EV_SERIAL_DATA_RECEIVED
		lds	r21,Exec_eventFifoHead	
		ldi 	r24,lo8(Exec_eventFifo)
		ldi 	r25,hi8(Exec_eventFifo)
		movw 	r30,r24
		add 	r30,r21			; r31:r30 should now point to the next free spot in the fifo
		adc 	r31,zeroReg			; not sure what this is for...
		st	z,r20			      ; z is all set now...store the data into the fifo
		
		inc	r21
		andi	r21,EXEC_EVENT_FIFO_MASK 	; handle wrapping of the event fifo
		sts	Exec_eventFifoHead,r21
		
		; All done now...restore everything...
		adiw 	r28,2
		cli						; Not sure why we disable ints here...
		out 	_SFR_IO_ADDR(SPH),r29
		out 	_SFR_IO_ADDR(SPL),r28
		pop 	r29
		pop 	r28
		pop 	r31
		pop 	r30
		pop 	r24
		pop	r21
		pop	r20
		pop 	tmpReg
		out 	_SFR_IO_ADDR(SREG),tmpReg
		pop 	tmpReg
		pop 	zeroReg
		
		set				; As the last thing, set the T
						; flag to indicate to the currently
						; executing routine there is something
						; to handle.
		reti


        .end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美性做爰猛烈叫床潮| 欧美亚洲国产bt| 亚洲视频一区在线| 狠狠色伊人亚洲综合成人| 欧美色图一区二区三区| 亚洲天堂中文字幕| 欧美精品一区二区久久婷婷| 日韩专区中文字幕一区二区| 在线观看欧美黄色| 性欧美大战久久久久久久久| 在线观看日韩电影| 成人97人人超碰人人99| 亚洲欧洲在线观看av| 色狠狠av一区二区三区| 一个色妞综合视频在线观看| 91精彩视频在线观看| 国产成人av一区二区三区在线| 久久人人爽人人爽| 成人自拍视频在线| 亚洲一区二区在线免费观看视频| 这里只有精品免费| 精品一区二区免费| 欧美国产禁国产网站cc| 91蜜桃在线观看| 丝袜亚洲精品中文字幕一区| 亚洲欧美日韩国产一区二区三区 | 国产丝袜欧美中文另类| 91美女视频网站| 麻豆精品视频在线观看视频| 欧美成人精品福利| 99麻豆久久久国产精品免费| 亚洲国产sm捆绑调教视频| 久久久精品人体av艺术| 精品国精品国产| 欧美xxxxxxxxx| 精品国产3级a| 精品av久久707| 精品国产伦一区二区三区免费| 欧美一区二区三区人| 粉嫩绯色av一区二区在线观看 | 九一九一国产精品| 裸体健美xxxx欧美裸体表演| 国产精品久久久一区麻豆最新章节| 在线视频一区二区三区| 91色综合久久久久婷婷| 99国产一区二区三精品乱码| 免费不卡在线观看| 一区二区久久久久久| 亚洲视频图片小说| 亚洲午夜在线电影| 日韩高清一区在线| 一区二区三区成人| 丝袜美腿一区二区三区| 蜜桃视频一区二区三区在线观看| 麻豆91在线播放免费| 国产一区在线不卡| 日本欧美一区二区三区乱码| 久久66热re国产| 国产mv日韩mv欧美| 色综合久久综合网| 国产黄人亚洲片| av一区二区三区在线| 99久久久免费精品国产一区二区| 欧美探花视频资源| 欧美一级在线免费| 久久久久久麻豆| 怡红院av一区二区三区| 中文字幕免费不卡在线| 一区二区久久久| 喷水一区二区三区| 成人久久久精品乱码一区二区三区| 91亚洲精华国产精华精华液| 欧美日韩性生活| 精品99一区二区三区| 亚洲精品中文字幕乱码三区| 日韩vs国产vs欧美| 成人高清视频在线观看| 欧美三级电影网| 久久先锋影音av鲁色资源| 精品日韩av一区二区| 国产欧美一区二区三区在线老狼| 精品国产91九色蝌蚪| 亚洲欧美一区二区三区国产精品 | 日韩av电影天堂| 国产乱淫av一区二区三区| 极品少妇一区二区三区精品视频| 成人午夜电影小说| 欧美网站一区二区| 久久精品视频一区二区三区| 亚洲精品美腿丝袜| 经典一区二区三区| 欧美无砖专区一中文字| 亚洲国产精品成人综合色在线婷婷 | 色综合久久久久综合99| 精品sm在线观看| 亚洲第一av色| 成人av网站在线| 日韩色视频在线观看| 26uuu久久天堂性欧美| 一级精品视频在线观看宜春院 | 日本不卡视频在线| 色噜噜夜夜夜综合网| 久久品道一品道久久精品| 亚洲午夜久久久久中文字幕久| 成人免费观看视频| 精品欧美黑人一区二区三区| 夜色激情一区二区| 成人高清免费观看| 欧美tk—视频vk| 日韩和欧美一区二区| 色综合久久综合中文综合网| 国产欧美精品一区aⅴ影院| 美女性感视频久久| 欧美日韩国产一区| 精品精品欲导航| 午夜电影网亚洲视频| 国内精品免费**视频| 日韩欧美一级片| 国产精品色哟哟网站| 一区二区免费在线| 成人激情小说乱人伦| 久久精品欧美一区二区三区不卡 | 91麻豆精品国产91久久久久久| 亚洲欧洲综合另类| 成人综合在线视频| 国产欧美日韩另类一区| 黄页视频在线91| 久久久久国产精品人| 激情综合一区二区三区| 日韩视频在线观看一区二区| 日韩精品欧美精品| 欧美精品少妇一区二区三区| 国产亚洲欧洲997久久综合| 国产在线国偷精品产拍免费yy| 日韩欧美国产一区二区在线播放 | 中文字幕日本乱码精品影院| 国产成人啪午夜精品网站男同| 久久久天堂av| 岛国一区二区三区| 中文字幕在线不卡一区 | 久久尤物电影视频在线观看| 精品亚洲免费视频| 精品国产乱码久久久久久1区2区| 久久精品噜噜噜成人88aⅴ| 91精品福利在线一区二区三区 | 国产成人亚洲综合a∨婷婷| 国产欧美精品一区二区色综合朱莉| 国产精品综合一区二区三区| 中文字幕精品一区二区精品绿巨人| 粉嫩av一区二区三区粉嫩| 国产精品电影一区二区| 色999日韩国产欧美一区二区| 一区二区三区中文字幕在线观看| 欧亚洲嫩模精品一区三区| 丝袜美腿亚洲一区| 久久久精品中文字幕麻豆发布| 99久久婷婷国产综合精品| 亚洲成在线观看| 精品国产乱码久久久久久图片 | 17c精品麻豆一区二区免费| 99国产精品99久久久久久| 亚洲综合一区二区三区| 91精品国产综合久久久久久久 | 国内一区二区视频| 中文欧美字幕免费| 欧美午夜电影一区| 久久超碰97中文字幕| 一色屋精品亚洲香蕉网站| 欧美日韩国产电影| 国产乱人伦偷精品视频不卡| 亚洲激情校园春色| 日韩精品一区二| 99re热这里只有精品视频| 偷拍自拍另类欧美| 国产亚洲女人久久久久毛片| 91丨porny丨国产| 日韩av中文在线观看| 国产精品免费久久久久| 欧美日韩高清一区二区| 国产九色精品成人porny | 久久精品人人做人人爽97| 在线观看日韩av先锋影音电影院| 久久精品72免费观看| 亚洲色图一区二区| 日韩精品一区二区三区四区视频 | 一本色道久久综合亚洲精品按摩| 日韩和欧美一区二区三区| 国产精品国产三级国产有无不卡 | 欧美日韩国产系列| 丁香一区二区三区| 蜜臀91精品一区二区三区| 亚洲色图欧洲色图| 欧美成人精精品一区二区频| 91蜜桃免费观看视频| 国产一区二区三区香蕉| 亚洲国产综合在线| 最新国产の精品合集bt伙计| 欧美精品一区二区三区蜜桃| 欧美日韩在线免费视频| 丁香网亚洲国际|