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

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

?? hwgyjnkg.asm

?? 紅外感應節能開關
?? ASM
?? 第 1 頁 / 共 4 頁
字號:
;***************************************************************************
;*                  *********************************   				   *
;*				    * W N - 1 0 0   F I R M W A R E *                      *
;*				    *********************************					   *
;***************************************************************************
;
; Written for The Watt Stopper, Inc. by
; Power Innovations, Inc., Los Gatos, CA 95030, USA
;
; Last Edit:	19 March 2004 by RRB
;
.equ	MAJOR = 0
.equ	MINOR = 7
;
;--------------------------------------------------------------------------;
; Copyright (c) 2002-2004 by                 							   ;
; The Watt Stopper, Inc., Santa Clara, CA., USA							   ;
; All Rights Reserved.  Unpublished rights  reserved  under  the		   ;
; copyright laws of the United States.									   ;
;																		   ;
; The software contained  on  this media is proprietary to and embodies the;
; confidential technology of The Watt Stopper, Inc. Possession, use, dupli-;
; cation or dissemination of the software and media is authorized only	   ;
; pursuant to a valid written license from The Watt Stopper, Inc.		   ;
; 																		   ;
; This software is furnished under a  license  and  may  be used and copied;
; only in accordance with the terms of  such license and with the inclusion;
; of the above copyright notice.  This software or any other copies thereof;
; may not be provided or otherwise made available to  any other person.  No;
; title to and ownership of the software is hereby transferred.            ;
;																		   ;
; The information in this software is subject to change without  notice and;
; should not be construed as a commitment by The Watt Stopper, Inc.		   ;
;																		   ;
; The Watt Stopper, Inc. assumes  no  responsibility for the use or		   ;
; reliability of its software on equipment which is not supplied by		   ;
; The Watt Stopper, Inc.												   ;
;																		   ;
; RESTRICTED RIGHTS  LEGEND  Use,  duplication,  or  disclosure by the U.S.;
; Government is subject  to  restrictions  as  set  forth  in  Subparagraph;
; (c)(1)(ii) of DFARS 252.227-7013, or in FAR 52.227-19, as applicable.	   ;
;--------------------------------------------------------------------------;
;
; Revision History:
; ----------------
;
; R0.1	10-APR-02 RRB	Initial implementation.
; R0.2	19-JUN-02 RRB	Full implementation of initial specification.
; R0.3	17-JUL-02 RRB	Correct adaptation of relay timing on opening;
;						add manufacturing diagnostics on initial power-up.
; R0.4	24-SEP-02 RRB	Improve noise rejection on zero-cross; correct double-
;						counting of line cycles introduced in R0.3.
; R0.5	22-NOV-02 RRB	Correct error in test mode cancellation timeout.
; R0.6	25-FEB-04 RRB	Correct relay timing determination for opening.
; R0.7	19-MAR-04 RRB	Widen test window for line cycle length, to simplify
;						testing in China; make test for entry to manufacturing
;						test mode more robust.
;
;--------------------------------------------------------------------------
; Definitions for ATtiny15 processor (include file not yet available from
; Atmel at this time):
;

;***** Specify Device
.device ATtiny15

;***** I/O Register Definitions
.equ	SREG	=$3f
.equ	GIMSK	=$3b
.equ	GIFR	=$3a
.equ	TIMSK	=$39
.equ	TIFR	=$38
.equ	MCUCR	=$35
.equ	MCUSR	=$34
.equ	TCCR0	=$33
.equ	TCNT0	=$32
.equ	OSCCAL	=$31
.equ	TCCR1	=$30
.equ	TCNT1	=$2f
.equ	OCR1A	=$2e
.equ	OCR1B	=$2d
.equ	SFIOR	=$2c
.equ	WDTCR	=$21
.equ	EEAR	=$1e
.equ	EEDR	=$1d
.equ	EECR	=$1c
.equ	PORTB	=$18
.equ	DDRB	=$17
.equ	PINB	=$16
.equ	ACSR	=$08
.equ	ADMUX	=$07
.equ	ADCSR	=$06
.equ	ADCH	=$05
.equ	ADCL	=$04

;***** Bit Definitions
.equ	INT0	=6
.equ	PCIE	=5

.equ	INTF0	=6
.equ	PCIF	=5

.equ	OCIE1	=6
.equ	TOIE1	=2
.equ	TOIE0	=1

.equ	OCF1	=6
.equ	TOV1	=2
.equ	TOV0	=1

.equ	PUD	=6
.equ	SE	=5
.equ	SM1	=4
.equ	SM0	=3
.equ	ISC01	=1
.equ	ISC00	=0

.equ	WDRF	=3
.equ	BORF	=2
.equ	EXTRF	=1
.equ	PORF	=0

.equ	CS02	=2
.equ	CS01	=1
.equ	CS00	=0

.equ	CTC1	=7
.equ	PWM1	=6
.equ	COM11	=5
.equ	COM10	=4
.equ	CS13	=3
.equ	CS12	=2
.equ	CS11	=1
.equ	CS10	=0

.equ	FOC1A	=2
.equ	PSR1	=1
.equ	PSR0	=0

.equ	WDTOE	=4
.equ	WDE	=3
.equ	WDP2	=2
.equ	WDP1	=1
.equ	WDP0	=0

.equ	EEIE	=3
.equ	EEMWE	=2
.equ	EEWE	=1
.equ	EERE	=0

.equ	ACD	=7
.equ	GREF	=6
.equ	ACO	=5
.equ	ACI	=4
.equ	ACIE	=3
.equ	ACIS1	=1
.equ	ACIS0	=0

.equ	REFS1	=7
.equ	REFS0	=6
.equ	ADLAR	=5
.equ	MUX2	=2
.equ	MUX1	=1
.equ	MUX0	=0

.equ	ADEN	=7
.equ	ADSC	=6
.equ	ADFR	=5
.equ	ADIF	=4
.equ	ADIE	=3
.equ	ADPS2	=2
.equ	ADPS1	=1
.equ	ADPS0	=0

.def	ZL	=r30
.def	ZH	=r31

;------ Documentation Conventions --------------------------------------;
;
; The following commenting conventions are observed in this source file:
;
; If an instruction has been eliminated to save space, because it would
; effectively be a "no operation" (for example, if it would be a jump to
; the next addressable location), the assembly line is preserved, but is
; prefixed with the sequence ";==" to prevent its actual compilation.
;
; Comments on any instructions that *always* are executed with interrupts
; disabled are prefixed with ";***".
;
;---------------------- Operating Mode Variations ----------------------;
;							                                            ;
; Those characteristics that distinguish the different	                ;
; modes are defined here, and are selected in the SETUP                 ;
; menu by the installer/user.                                           ;
;-----------------------------------------------------------------------;
;
; Mode 1: One Hour, Manual On (Factory Default)
;
.equ	MODE1 = 0
.equ	M1_TIMEOUT = ((60*60*60)>>4)	;Timeout = 60 minutes
;
; Mode 2: Two Hours, Manual On
;
.equ	MODE2 = 1
.equ	M2_TIMEOUT = ((120*60*60)>>4)	;Timeout = 120 minutes
;
; Mode 3: Thirty Minutes, Manual On
;
.equ	MODE3 = 2
.equ	M3_TIMEOUT = ((30*60*60)>>4)	;Timeout = 30 minutes
;
; Mode 4: Fifteen Minutes, Manual On
;
.equ	MODE4 = 3
.equ	M4_TIMEOUT = ((15*60*60)>>4)	;Timeout = 15 minutes
;
; Mode 5: Fifteen Minutes, Auto On
;
.equ	MODE5 = 4
.equ	M5_TIMEOUT = ((15*60*60)>>4)	;Timeout = 15 minutes
;
.equ	MAX_MODE = 4					;Highest internal mode number assigned
;
; Test Mode: Fifteen Seconds, Auto On
;
.equ	TM_TIMEOUT = ((15*60)>>4)		;Timeout = 15 seconds
;
; NightLight Timeout: Ninety Seconds
;
.equ	NL_TIMEOUT = ((90*60)>>8)		;Timeout = 90 seconds
;
; NightLight Disable Timeout: 48 hours
;
.equ	NL_DISABLE = ((48*60*60*60)>>8)
;
; Test Mode Cancellation Timeout
;
.equ	TM_CANCEL_TIMEOUT = ((5*60*60)>>8) ;Timeout = 5 minutes
;
; Auto-On Cancellation Timeout
;
.equ	TM_AUTO = ((30*60)>>4)		;Cancel Auto-On after 30 seconds of vacancy
;
;------ Button/Mode Switch/Light Sensor Demux ----------;
;														;
; The front panel pushbutton, program mode slide switch ;
; and light sensor (CdS) all share a single ADC input,	;
; therefore, the voltage on that input is interpreted	;
; to decode the various states.							;
;-------------------------------------------------------;
;
; Values between $00 and $07 indicate that the button is pressed.
;
.equ	ADC_BUTTON_MAX = $07
;
; Values between $08 and $C0 indicate a valid light level from the
; CdS sensor, and that the local button is not pressed, and the
; mode switch is in NORMAL, not PROGRAM, mode.
;
.equ	ADC_CDS_MAX = $C0
;
; Values between $C1 and $D8 indicate that the mode switch is in the
; NORMAL mode, no CdS sensor is present, and the front panel button 
; is not pressed.
;
.equ	ADC_PGOFF_MAX = $D8
;
; Values between $D9 and $FF indicate that the mode switch is in the 
; PROGRAM mode, and the front panel button is not pressed.
;
.equ	ADC_PGON_MAX = $FF
;
;------ I/O Bit Assignments in Port B ------------------;
;
.equ	fRelayOn = 0		;Load relay ON if high (Output)
.equ	fZeroCross = 1		;Zero-cross sense (Input)
.equ	fNightLight = 2		;NightLight ON if high (Output)
.equ	fLowLight = 3		;Light level below 13fc if high (Input)
.equ	fRelaySense = 4		;Relay closure sense (Input)
.equ	fOccupancy = 5		;Occupancy sensor waveform (Input)
;
.equ	PORTB_INIT = $00	;Input pullups to enable by default
.equ	DDRB_INIT = $05		;Input/Output defaults
;
;------	Control Register Setup Constants ---------------;
;
.equ	WDTCR_INIT = $0B	;Watchdog enabled, timeout in 128K cycles (~ 0.374 sec)
.equ	TCCR1_INIT = $0C	;Timer/Counter1 enabled, at CK/128 - this rate is
							;chosen so that one AC line cycle (at 60Hz) is
							;less than 256 counts, at a clock frequency of 1.6MHz
.equ	ADMUX_OCCUP = $00	;ADC select channel ADC0=PB5 (occupancy)
.equ	ADMUX_LIGHT = $22	;ADC left-adjust result, select ADC2=PB3 (light)
.equ	ADCSR_INIT = $93	;ADC enable, clear IF, use CK/8 as clock source
.equ	ADCSR_OFF = $13		;ADC disable, clear IF, use CK/8 as clock source
;
;----- Register Assignments -----
;
.def	result = r0			;Receives table lookup bytes (LPM)
.def	zero = r1			;Handy register guaranteed to be zero contents
.def	lineCycles = r2		;Counts up once/line cycle; used to provide programmable
							; delays for other events (diagnostic output, timeouts)
.def	mode = r3			;In Setup, index of presently-selected operating mode
.def	onDelay = r4		;Delay, in Timer1 ticks, for turning on relay
.def	offDelay = r5		;Delay, in Timer1 ticks, for turning off relay
.def	nightLightDisableL = r6	;Time, in 4.27S units, until nightlight operation is again
.def	nightLightDisableH = r7	; enabled (nightlight is enabled if == 0)
.def	testModeTimer = r8	;If <> 0, time, in 4.27S units, until Test Mode cancels
.def	lastSample = r9		;Last sample from PIR
.def	maxNoise = r10		;Peak value seen on occupancy sensor in last 4.27 seconds,
							; updated if area is presently vacant
.def	noiseL = r11		;Time average of peak noise seen on occupancy sensor
.def	noiseM = r12		; input in last 256x256x256 line cycles (approx. 3.24 days)
.def	noiseH = r13		;
.def	flashPatternL = r14	;NightLight flash pattern for Program mode; 1 indicates LED
.def	flashPatternH = r15	; on for 0.27S, 0 indicates off; repeats every 4.27S
;
;----
;
.def	temp0 = r16			;General purpose temporary
.def	temp1 = r17			;General purpose temporary
.def	temp2 = r18			;General purpose temporary
.def	holdCounter = r19	;Time, in 1/60ths of a sec, that button has been held down
.def	button = r20		;Front panel button history
.def	status = r21		;Internal operating status
.def	occupTimerL = r22	;Zero if vacant, else the count of 16-line-cycle units
.def	occupTimerH = r23	; until vacancy should be declared
.def	vacantTimer = r24	;Zero if occupied, else # of 16-line-cycle units since vacant

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美sm极限捆绑bd| 免费观看日韩电影| 蜜臀a∨国产成人精品| 国产黄色成人av| 91精品国产手机| 一区二区三区资源| 国产一区91精品张津瑜| 91精品婷婷国产综合久久竹菊| 日韩欧美亚洲一区二区| 亚洲尤物在线视频观看| 六月丁香综合在线视频| av在线播放成人| 日韩三级中文字幕| 综合久久一区二区三区| 激情国产一区二区| 色狠狠av一区二区三区| 久久综合九色综合欧美就去吻| 亚洲激情自拍视频| 国产成人啪免费观看软件| 欧美色视频在线观看| 久久精品人人做人人综合| 亚洲国产精品人人做人人爽| 国产精品综合二区| 欧美久久久久久久久中文字幕| 国产女主播视频一区二区| 婷婷久久综合九色综合伊人色| 粉嫩aⅴ一区二区三区四区五区| 欧美午夜精品电影| 国产精品久久一级| 国产米奇在线777精品观看| 精品视频在线看| 亚洲同性同志一二三专区| 国产尤物一区二区在线| 欧美一区二区三区公司| 亚洲va欧美va人人爽| 成人av免费在线| 国产亚洲女人久久久久毛片| 免费在线看成人av| 欧美日韩一区二区在线观看视频| 中文字幕在线一区免费| 国产成人免费在线观看| 欧美精品一区男女天堂| 日韩黄色免费网站| 欧美精品日韩综合在线| 一区二区欧美国产| 在线观看欧美日本| 亚洲狠狠爱一区二区三区| 97久久超碰精品国产| 中文字幕+乱码+中文字幕一区| 国产在线精品一区在线观看麻豆| 91精品国产全国免费观看| 亚洲一区在线电影| 欧美午夜宅男影院| 亚洲午夜久久久| 欧美三级电影一区| 午夜视频在线观看一区二区三区| 在线观看一区二区视频| 亚洲摸摸操操av| 成人av在线电影| 亚洲人成小说网站色在线| 色婷婷综合激情| 午夜婷婷国产麻豆精品| 91麻豆精品国产| 美腿丝袜亚洲综合| 久久久久久久久久久久久久久99 | 免费av成人在线| 91精品国产综合久久蜜臀| 另类的小说在线视频另类成人小视频在线 | 亚洲视频一区二区在线观看| 色婷婷av久久久久久久| 亚瑟在线精品视频| 欧美大片在线观看一区二区| 国产精品一色哟哟哟| 中文字幕一区av| 欧美日韩不卡一区二区| 激情小说亚洲一区| 国产精品美女一区二区三区| 99久久免费视频.com| 亚洲一区二区五区| 日韩一区二区三区四区| 成人综合婷婷国产精品久久蜜臀 | 在线观看亚洲精品| 亚洲电影你懂得| 久久一区二区三区国产精品| aaa亚洲精品| 丝袜美腿亚洲一区二区图片| 久久女同性恋中文字幕| 色婷婷久久久综合中文字幕 | 中文字幕不卡三区| 欧美日韩在线播| 国产乱子轮精品视频| 一区二区三区蜜桃| 精品91自产拍在线观看一区| 99re热这里只有精品视频| 午夜精品久久久久久久99樱桃| 26uuu国产在线精品一区二区| 99视频国产精品| 日av在线不卡| 亚洲欧美经典视频| 久久一夜天堂av一区二区三区| 国产91精品免费| 亚洲电影欧美电影有声小说| 日本一区二区三区久久久久久久久不| 精品视频999| 99久久伊人久久99| 日韩高清欧美激情| 亚洲人成网站精品片在线观看| 欧美va在线播放| 欧美日韩在线电影| 91麻豆视频网站| 国产高清不卡一区二区| 久久精品久久99精品久久| 亚洲免费资源在线播放| 欧美国产日韩亚洲一区| 精品久久久久久综合日本欧美 | 国产精品成人午夜| 欧美成va人片在线观看| 欧美性极品少妇| jiyouzz国产精品久久| 久久99国产精品免费网站| 午夜不卡在线视频| 一区二区三区国产豹纹内裤在线| 国产色爱av资源综合区| 精品国产乱码久久久久久浪潮| 欧美另类变人与禽xxxxx| 欧美亚一区二区| 99久久er热在这里只有精品15| 激情亚洲综合在线| 国内成人精品2018免费看| 日韩**一区毛片| 日韩vs国产vs欧美| 日韩经典一区二区| 日韩精品一区二区三区在线播放 | 国产欧美日韩另类视频免费观看 | 日韩欧美亚洲一区二区| 亚洲一级二级三级| 亚洲人成精品久久久久| 精品国产乱码久久久久久闺蜜| 国产色一区二区| 精品免费视频.| 国产丝袜在线精品| 久久久久亚洲蜜桃| 欧美一级免费观看| 欧美日本一道本| 日本大香伊一区二区三区| www.久久久久久久久| 国产成人免费av在线| 国产最新精品精品你懂的| 国产在线精品一区二区三区不卡 | 日韩欧美国产电影| 欧美性做爰猛烈叫床潮| 欧美成人女星排行榜| 久久久蜜桃精品| 欧美一级片在线| 中文字幕欧美日本乱码一线二线| 风间由美性色一区二区三区| 欧美aa在线视频| 国产一区二区美女诱惑| 成人黄色综合网站| 欧美视频三区在线播放| 精品嫩草影院久久| 亚洲成av人在线观看| 在线观看成人小视频| 亚洲伦在线观看| 紧缚奴在线一区二区三区| 欧美三级中文字幕| 亚洲一区二区三区中文字幕| 99精品在线免费| 亚洲一级二级在线| 在线综合视频播放| 国产精品一级黄| 久久久777精品电影网影网 | 精品999在线播放| 精品一区二区三区av| 67194成人在线观看| 美女脱光内衣内裤视频久久影院| 欧美蜜桃一区二区三区| 亚洲精品久久久蜜桃| 日韩一级片网站| 精彩视频一区二区三区| 欧美激情一二三区| www.亚洲精品| 蜜桃精品视频在线观看| 久久久久久日产精品| 久久综合九色综合97婷婷女人| 久久电影网电视剧免费观看| 国产精品一级黄| 欧美影视一区二区三区| 久久人人97超碰com| 午夜视黄欧洲亚洲| 91蝌蚪porny成人天涯| 亚洲国产经典视频| 狠狠色丁香久久婷婷综| 91麻豆精品国产自产在线观看一区| 综合在线观看色| 国产99久久久精品| 日本一区二区三区国色天香 | 日韩av网站在线观看| 91成人国产精品| 亚洲自拍偷拍综合|