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

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

?? ups17b.asm

?? USB大全電子版全部資料3~包含源碼、協議等
?? ASM
?? 第 1 頁 / 共 5 頁
字號:
	call get_two_bytes

;put_Main_ConfigFrequency_String:

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	call get_two_bytes

;put_LowVoltageTransfer_String:

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_L		; Load ASCII 'L' into accumulator

	call get_two_bytes

;put_HighVoltageTransfer_String:

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_H		; Load ASCII 'H' into accumulator

	call get_two_bytes

	pop	X			;

	pop	A			;

	ret				;

;

;********************************************************************************

;		Report ID 2

;********************************************************************************

get_reportID2:

	push	A			;

	push	X			;

	mov A, 02h

	mov [send_ptr], A

	call initialize_req

;put_AC_ConfigVoltage_String:

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_O		; Load ASCII 'O' into accumulator

	call get_two_bytes

;put_AC_ConfigFrequency_String:

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_R		; Load ASCII 'R' into accumulator

	call get_two_bytes

;put_AC_ConfigApparentPower_String:

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_A		; Load ASCII 'A' into accumulator

	call get_two_bytes

;put_AC_ConfigActivePower_String:

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_P		; Load ASCII 'P' into accumulator

	call get_two_bytes

;put_AC_DelayBeforeStartup_String:

	mov   A, Asc_C		; Load ASCII 'C' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_U		; Load ASCII 'U' into accumulator

	call get_three_bytes

;put_AC_DelayBeforeShutdown_String:

	mov   A, Asc_C		; Load ASCII 'C' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_S		; Load ASCII 'S' into accumulator

	call get_three_bytes

;

	pop	X			;

	pop	A			;

	ret				;

;

;********************************************************************************

;		Report ID 3

;********************************************************************************

get_reportID3:

	push	A			;

	push	X			;

	mov A, 03h

	mov [send_ptr], A

	call initialize_req

;put_Battery_PresentStatus_String:

	mov   A, Asc_A		; Load ASCII 'A' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_G		; Load ASCII 'G' into accumulator

	call end_req

; Check if an error has occured during communication with the UPS

	mov A, [rxFrameFlag]

	cmp A, 01h

	jz bad_value31

; NO error in the UPS communication

	call unsupported_check	; check if the request unsupported

;	mov A, [temp2]

	cmp A, 01h

	jz bad_value31

; Request is supported and no errors occured

; No change to BCD needed

	mov A, [rxBuf]

	and A, 0fh

	asr A				; bit 0 = used, bit1 = bad

	mov [data_send + 2], A

	jmp next31

bad_value31:

	; fill sent back byte with ffh

	mov A, 0ffh

	mov [data_send + 2], A

next31:

	call initialize_req

;put_Battery_Voltage_String:

	mov   A, Asc_B		; Load ASCII 'B' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_V		; Load ASCII 'V' into accumulator

	call get_three_bytes

;put_Battery_Temperature_String:

	mov   A, Asc_B		; Load ASCII 'B' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_T		; Load ASCII 'T' into accumulator

	call get_two_bytes

;get_Battery_TestResults_String:

	mov   A, Asc_T		; Load ASCII 'T' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_R		; Load ASCII 'R' into accumulator

;	mov   A, Asc_D		; Load ASCII 'D' into accumulator

	call end_req

; Check if an error has occured during communication with the UPS

	mov A, [rxFrameFlag]

	cmp A, 01h

	jz bad_value34

; NO error in the UPS communication

	call unsupported_check	; check if the request unsupported

;	mov A, [temp2]

	cmp A, 01h

	jz bad_value34

; Request is supported and no errors occured

; No change to BCD needed

	mov A, [rxBuf]

	and A, 0fh	

	mov [data_send + 8], A

	jmp next34

bad_value34:

	; fill sent back byte with ffh

	mov A, 0ffh

	mov [data_send + 8], A

next34:



	pop	X			;

	pop	A			;

	ret				;

;

;***************************************************************************

set_reportID3:

put_Battery_TestStart_String:

	push	A			;

	push	X			;



	mov	A, 00h		;

	mov	[txBufPtr], A	;

	mov	X, [txBufPtr]	;

	mov   A, Asc_T		; Load ASCII 'T' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_s		; Load ASCII 's' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Car_Ret		; Load carriage return into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Ln_Fd		; Load line feed into accumulator

	mov   [X + txBuf], A	;

;

	call	putCommand		;

;

	call	delay;

;

	pop	X			;

	pop	A			;

	ret



;********************************************************************************

;		Report ID 4

;********************************************************************************

get_reportID4:

	push	A			;

	push	X			;

	mov A, 04h

	mov [send_ptr], A

	call initialize_req

;put_PowerConverter_PresentStatus_String:

	mov   A, Asc_A		; Load ASCII 'A' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_G		; Load ASCII 'G' into accumulator

	call end_req

; Check if an error has occured during communication with the UPS

	mov A, [rxFrameFlag]

	cmp A, 01h

	jz bad_value41

; NO error in the UPS communication

	call unsupported_check	; check if the request unsupported

;	mov A, [temp2]

	cmp A, 01h

	jz bad_value41

; Request is supported and no errors occured

; No conversion needed

	mov A, [rxBuf]

	and A, 02h

	asr A

;	asr A

;	asr A

;	asr A

;	asr A

	mov [data_send + 3], A

	jmp next41

bad_value41:

	; fill sent back byte with ffh

	mov A, 0ffh

	mov [data_send + 3], A

next41:

	call initialize_req

;put_PowerConverter_In_Voltage_String:

	mov   A, Asc_N		; Load ASCII 'N' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_V		; Load ASCII 'V' into accumulator

	call get_two_bytes

;put_PowerConverter_In_Frequency_String:

	mov   A, Asc_N		; Load ASCII 'N' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	call get_two_bytes

;

	pop	X			;

	pop	A			;

	ret				;

;



;********************************************************************************

;		Report ID 5

;********************************************************************************

get_reportID5:

	push	A			;

	push	X			;

	mov A, 02h

	mov [send_ptr], A

	call initialize_req

;put_PowerConverter_Out_Voltage_String:

	mov   A, Asc_O		; Load ASCII 'O' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_V		; Load ASCII 'V' into accumulator

	call get_two_bytes

;put_PowerConverter_Out_Frequency_String:

	mov   A, Asc_O		; Load ASCII 'O' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_F		; Load ASCII 'F' into accumulator

	call get_two_bytes

;put_PowerConverter_Out_Load_String:

	mov   A, Asc_O		; Load ASCII 'O' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_L		; Load ASCII 'L' into accumulator

	call get_two_bytes

;put_PowerConverter_Out_PresStat_String:

	mov   A, Asc_A		; Load ASCII 'A' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_G		; Load ASCII 'G' into accumulator

	call end_req

; Check if an error has occured during communication with the UPS

	mov A, [rxFrameFlag]

	cmp A, 01h

	jz bad_value54

; NO error in the UPS communication

	call unsupported_check	; check if the request unsupported

;	mov A, [temp2]

	cmp A, 01h

	jz bad_value54

; Request is supported and no errors occured

; No conversion needed

	mov A, [rxBuf]

	and A, 08h

	cmp A, 08h

	jnz no_overload

	mov A, 01h

	jmp save_value

no_overload:

	mov A, 00h

save_value:

	mov [data_send + 8], A

; Get boost and buck

	call initialize_req

	mov   A, Asc_O		; Load ASCII 'O' into accumulator

	mov   [X + txBuf], A	;

	inc   [txBufPtr]		; Increment tx buffer pointer

	mov	X, [txBufPtr]	;

	mov   A, Asc_S		; Load ASCII 'S' into accumulator

	call end_req

; Check if an error has occured during communication with the UPS

	mov A, [rxFrameFlag]

	cmp A, 01h

	jz bad_value54

; NO error in the UPS communication

	call unsupported_check	; check if the request unsupported

;	mov A, [temp2]

	cmp A, 01h

	jz bad_value54

; Request is supported and no errors occured

; No conversion needed

	mov A, [rxBuf]

	and A, 0fh

	cmp A, 06h

	jz set_boost

	cmp A, 07h

	jz set_buck

	jmp next54

set_boost:

	mov A, [data_send + 8]

	or A, 02h

	mov [data_send + 8], A

	jmp next54

set_buck:

	mov A, [data_send + 8]

	or A, 04h

	mov [data_send + 8], A

	jmp next54		

bad_value54:

	; fill sent back byte with ffh

	mov A, 0ffh

	mov [data_send + 8], A

next54:



	pop	X			;

	pop	A			;

	ret				;



;************************************************************************

; This is the routine that is entered when a data item from the UPS is 

; requested and returns with the string resident in the receive buffer.

;************************************************************************

;

putCommand:

	mov	A, 00h		; Clear the accumulator.

	mov   [txBufPtr], A	; Reset tx buffer pointer.

	iowr	Watchdog		; Clear watchdog timer.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久只精品国产| 悠悠色在线精品| 国产精品国产a级| 亚洲一区二三区| 懂色av一区二区三区蜜臀| 在线精品国精品国产尤物884a| 欧美一卡二卡三卡四卡| 亚洲精品久久嫩草网站秘色| 韩国一区二区在线观看| 欧美日韩一卡二卡| 亚洲三级免费观看| 国产成人综合在线观看| 4438x亚洲最大成人网| 中文字幕综合网| 国产精品一区二区在线播放| 欧美日韩国产免费| 一区二区在线电影| 99久久精品免费看国产免费软件| 精品国产91亚洲一区二区三区婷婷| 亚洲国产视频a| 日本道免费精品一区二区三区| 国产性天天综合网| 国产一区二区三区精品视频| 538在线一区二区精品国产| 亚洲成av人片| 欧美日韩激情在线| 亚洲va韩国va欧美va| 91国产免费看| 亚洲一区二区3| 欧美怡红院视频| 亚洲综合一区在线| 精品视频在线免费| 天天色天天爱天天射综合| 欧美性猛交xxxx黑人交| 亚洲线精品一区二区三区八戒| 91香蕉视频在线| 亚洲精品乱码久久久久久久久 | 国产欧美精品一区二区色综合| 久久精品国产精品亚洲精品| 欧美电影免费观看完整版| 久久国产精品99久久人人澡| 日韩精品一区在线| 九色|91porny| 中文字幕欧美激情一区| 99re66热这里只有精品3直播 | 亚洲乱码国产乱码精品精可以看 | 国产精品久久久久天堂| 成人精品小蝌蚪| 亚洲欧美日韩久久| 91国产免费观看| 美女一区二区三区在线观看| 精品久久久久香蕉网| 国产精品一二三四| 亚洲视频每日更新| 337p亚洲精品色噜噜噜| 国产成人免费视频一区| 亚洲男人都懂的| 日韩美女视频在线| 成人综合婷婷国产精品久久蜜臀| 亚洲女爱视频在线| 日韩欧美一区中文| 成人午夜免费av| 亚洲第一福利视频在线| 2022国产精品视频| 色欧美片视频在线观看在线视频| 午夜欧美大尺度福利影院在线看| 久久久蜜桃精品| 欧美综合色免费| 国产综合色精品一区二区三区| 中文字幕一区三区| 91麻豆精品国产91| 99视频有精品| 久久国产精品72免费观看| 亚洲人精品午夜| 欧美哺乳videos| 欧洲av在线精品| 成人高清视频在线| 麻豆国产精品视频| 亚洲综合视频网| 中文字幕巨乱亚洲| 日韩欧美在线不卡| 欧美午夜精品免费| 成人性生交大片| 久久99精品久久久久| 亚洲国产欧美在线人成| 国产精品精品国产色婷婷| 欧美一区永久视频免费观看| 91亚洲男人天堂| 国产v综合v亚洲欧| 久久99在线观看| 亚洲国产精品久久不卡毛片| 亚洲国产精华液网站w| 精品国产一二三区| 欧美一区二区在线观看| 日本高清免费不卡视频| av网站免费线看精品| 国产一区二区在线免费观看| 视频一区二区不卡| 亚洲一区二区三区国产| 亚洲色图在线播放| 中文字幕在线不卡视频| 亚洲国产精品成人久久综合一区| 精品国产露脸精彩对白| 日韩一区二区免费在线电影| 欧美日韩国产精品自在自线| 在线精品视频一区二区三四| 91原创在线视频| 91亚洲精品一区二区乱码| 99久久精品费精品国产一区二区| 国产成人免费在线视频| 国产精品99久久久久久有的能看| 精品一区二区三区香蕉蜜桃| 免费在线看一区| 极品美女销魂一区二区三区免费| 免费观看成人鲁鲁鲁鲁鲁视频| 午夜视频一区在线观看| 性做久久久久久久久| 天堂影院一区二区| 日韩国产在线一| 另类人妖一区二区av| 精品制服美女丁香| 国产成人精品亚洲777人妖 | 成人av电影在线播放| 成人av手机在线观看| 99久久99久久精品国产片果冻| av不卡在线播放| 91豆麻精品91久久久久久| 欧美视频中文一区二区三区在线观看| 99久久国产综合精品麻豆| 91麻豆免费看片| 欧美日韩高清不卡| 日韩欧美视频一区| 久久久久久久久久电影| 国产精品久久久久一区 | 中文一区二区完整视频在线观看| 欧美国产精品一区二区三区| 亚洲女人的天堂| 亚洲成av人片在www色猫咪| 久久狠狠亚洲综合| 成人动漫一区二区三区| 欧美性受极品xxxx喷水| 欧美成人综合网站| 中文字幕亚洲一区二区av在线| 一区二区三区在线视频观看| 日本怡春院一区二区| 丰满少妇在线播放bd日韩电影| 91社区在线播放| 日韩一二三区视频| 国产精品久久网站| 日韩av网站在线观看| 成人av资源在线| 欧美二区三区的天堂| 中文在线资源观看网站视频免费不卡| 樱桃国产成人精品视频| 精品午夜久久福利影院| 91国在线观看| 久久久久久久久岛国免费| 亚洲综合色在线| 成人综合激情网| 日韩欧美电影在线| 一区二区三区鲁丝不卡| 国产综合色视频| 8v天堂国产在线一区二区| 国产精品国产自产拍高清av| 日本 国产 欧美色综合| 色婷婷综合久久久久中文 | 欧美日韩视频在线观看一区二区三区 | 亚洲视频你懂的| 精品一区二区三区影院在线午夜| 色欧美片视频在线观看| 国产午夜精品久久久久久免费视| 天天av天天翘天天综合网色鬼国产| 国产91富婆露脸刺激对白| 91精品国产美女浴室洗澡无遮挡| 国产精品国产三级国产aⅴ中文| 日本不卡免费在线视频| 91成人国产精品| 中文字幕在线观看一区二区| 国产一区二区免费视频| 欧美一二三四在线| 亚洲第一福利一区| 在线免费观看日韩欧美| 国产精品久久777777| 国产成人啪午夜精品网站男同| 日韩美一区二区三区| 日韩成人一区二区三区在线观看| 色综合天天综合网天天看片| 中文字幕的久久| 懂色av一区二区三区蜜臀| 久久久久综合网| 精一区二区三区| 精品区一区二区| 久久精品国产亚洲a| 日韩女优av电影| 精品一区二区三区av| 日韩欧美中文字幕公布| 蜜臀va亚洲va欧美va天堂| 欧美一区二区精品在线| 美女www一区二区| 日韩免费看的电影|