亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
欧美影院一区二区三区| 亚洲卡通欧美制服中文| 亚洲色图视频网站| 久久国产福利国产秒拍| gogo大胆日本视频一区| 欧美一级黄色大片| ●精品国产综合乱码久久久久| 亚洲不卡一区二区三区| 波多野结衣中文字幕一区| 精品国产伦一区二区三区免费| 亚洲综合色在线| 不卡欧美aaaaa| 久久一区二区三区国产精品| 日韩综合在线视频| 91福利在线导航| 亚洲欧美日韩一区二区三区在线观看| 国产主播一区二区三区| 欧美妇女性影城| 亚洲一区二区偷拍精品| 91丨porny丨首页| 国产精品水嫩水嫩| 国产一区二区女| 久久人人爽人人爽| 九色综合狠狠综合久久| 911精品国产一区二区在线| 亚洲一二三区视频在线观看| 91在线精品一区二区| 国产亚洲精久久久久久| 国产精品66部| 国产精品视频一二三| 国产精品白丝av| 国产日韩欧美麻豆| 岛国一区二区三区| 国产精品乱码一区二区三区软件| 国产精品一区久久久久| 欧美精品一区男女天堂| 国产露脸91国语对白| 国产亚洲精品免费| jiyouzz国产精品久久| 综合色中文字幕| 日本韩国欧美三级| 午夜久久电影网| 日韩午夜小视频| 国产一区二区三区免费| 久久久噜噜噜久噜久久综合| 国产ts人妖一区二区| 1区2区3区精品视频| 一本色道久久综合精品竹菊 | 色猫猫国产区一区二在线视频| 一色屋精品亚洲香蕉网站| 99热这里都是精品| 一区二区三区四区国产精品| 欧美日韩激情在线| 人禽交欧美网站| 精品国产免费久久| 不卡的电影网站| 午夜欧美视频在线观看| 2欧美一区二区三区在线观看视频| 国产精品自拍毛片| 日韩一区欧美一区| 在线不卡免费欧美| 国产一区二区按摩在线观看| 亚洲女人的天堂| 欧美一区二区高清| 国产91丝袜在线播放0| 一区二区三区在线免费观看| 日韩一区二区三区免费看| 成人性色生活片免费看爆迷你毛片| 亚洲精品第1页| 精品少妇一区二区三区免费观看 | 久久久影院官网| 99久久久精品| 久久黄色级2电影| 最近日韩中文字幕| 日韩欧美一区电影| 色综合一个色综合| 麻豆成人在线观看| 亚洲美腿欧美偷拍| 国产视频不卡一区| 91精品婷婷国产综合久久 | 亚洲欧洲精品成人久久奇米网| 欧美精选午夜久久久乱码6080| 国产高清在线精品| 亚洲成av人片在www色猫咪| 2021国产精品久久精品| 欧美中文字幕一二三区视频| 国产高清久久久| 日本中文字幕不卡| 中文字幕欧美一区| 国产视频一区二区三区在线观看| 欧美天天综合网| 99久久久免费精品国产一区二区| 免费观看一级特黄欧美大片| 亚洲免费色视频| 日本一区二区在线不卡| 日韩精品一区在线观看| 欧美挠脚心视频网站| 91尤物视频在线观看| 国产成人在线观看| 国产一区福利在线| 日韩av中文字幕一区二区| 一区二区三区国产豹纹内裤在线| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 日本午夜精品一区二区三区电影| 国产精品福利影院| 欧美激情一区不卡| 国产欧美日韩三区| 国产亚洲污的网站| 久久久久久一级片| 精品成人一区二区三区四区| 欧美变态凌虐bdsm| 欧美成人性福生活免费看| 欧美一级理论性理论a| 欧美高清激情brazzers| 欧美电影一区二区三区| 欧美日韩色一区| 欧美午夜电影网| 在线播放91灌醉迷j高跟美女| 在线看日本不卡| 欧美日韩亚洲另类| 欧美一区二区三区的| 欧美一区二区久久久| 日韩午夜激情av| 久久久久亚洲蜜桃| 国产精品天天摸av网| 中文字幕一区av| 亚洲国产视频一区| 日韩影院精彩在线| 寂寞少妇一区二区三区| 国产suv一区二区三区88区| 成人高清免费在线播放| 91婷婷韩国欧美一区二区| 91黄色在线观看| 91精品国产色综合久久不卡蜜臀 | 欧美日韩国产美| 欧美一卡2卡3卡4卡| 精品国产乱码久久久久久图片| 欧美成人激情免费网| 久久久久久久免费视频了| 国产精品夫妻自拍| 亚洲国产精品麻豆| 激情伊人五月天久久综合| 豆国产96在线|亚洲| 色94色欧美sute亚洲线路一ni | 国产精品电影院| 亚洲一区在线视频观看| 六月丁香婷婷久久| fc2成人免费人成在线观看播放| 欧美亚日韩国产aⅴ精品中极品| 日韩免费高清电影| 国产精品毛片久久久久久久| 亚洲国产精品精华液网站| 精品一区二区三区视频| av电影一区二区| 日韩欧美在线一区二区三区| 国产精品乱人伦中文| 日韩国产成人精品| 99久久精品国产观看| 日韩精品一区二区三区中文不卡| 国产精品久久久久久久久久久免费看| 亚洲一区二区3| 国产精品一级在线| 欧美三区在线观看| 亚洲国产精品黑人久久久| 视频一区在线播放| 99精品久久99久久久久| 欧美精品一区二区三区在线播放| 亚洲最大色网站| 国产成人精品一区二| 欧美日韩大陆在线| 亚洲男人的天堂av| 国产精品一品二品| 欧美一级欧美三级| 亚洲第一会所有码转帖| 成人黄色电影在线| 精品久久99ma| 日韩影视精彩在线| 在线观看亚洲精品| 亚洲天堂网中文字| 国产经典欧美精品| 精品国产一区二区在线观看| 午夜精品久久久久| 一本色道久久综合亚洲aⅴ蜜桃| 国产免费观看久久| 精品亚洲国产成人av制服丝袜| 欧美日韩大陆在线| 亚洲永久免费视频| 色先锋aa成人| 亚洲人成精品久久久久久| 国产成人免费av在线| 国产性色一区二区| 国产精品99久| 久久精品视频免费观看| 狠狠色狠狠色综合日日91app| 欧美日韩aaaaa| 亚洲制服丝袜av| 欧美视频一区在线观看| 亚洲国产精品一区二区www在线| 欧美性受xxxx黑人xyx| 一区二区三区丝袜|