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

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

?? 93xcxx.asm

?? 匯編的PIC程序
?? ASM
?? 第 1 頁 / 共 2 頁
字號:
	retlw   error           ;RDY status was not present in the alloted
				;time, return with error status.
rdynoerr
IF      wire3
;setup RA1 back to output
	movlw   0               ;set porta as output
	tris    serial          ;      / 
ENDIF
	retlw   no_err

;********************************************************************
;*                      SEE                                         *
;********************************************************************

				;See will control the entire operation of a
				;93CX6 device.  Prior to calling the routine,
				;load a valid command/memory address into
				;location cmd, and for WRITE or WRAL
				;commands, load registers highb and lowb with
				;16 bits of write data.  Upon exit, the W
				;register will contain the completion status.
				;Only 93CX6 instructions which require a
				;status check can return with an error as the
				;completion status.  The values that denote
				;the completion status are defined as
				;variables 'error' and 'no_err' in the
				;general assignments section.

see     
	movf    cmd,w           ;save cmd
	movwf   temp_cmd
	movf    addr,w          ;save addr
	movwf   temp_addr       ;
	movlw   cmd             ;Load W with the location of the cmd
				;register.
	movwf   fsr             ;Transfer that information into the File
				;Select Register.  The fsr now points to
				;location cmd.
	sel                     ;Select the 93CX6.
	strtbt                  ;Send a start bit.
;
	btfsc   cmd,7           ;bit 7 = 0?
IF      XC46
	goto    sca8            ;xfer 8 bit cmd/adr
ENDIF
IF      LC468
	goto    sca9            ;xfer 9 bit cmd/adr
ENDIF
IF      H16     
	goto    sca10           ;xfer 10 bit cmd/adr
ENDIF
IF      H8
	goto    sca11           ;xfer 11 bit cmd/adr
ENDIF

;        goto    set_cmd_addr    ;no then set cmd/addr
	btfss   cmd,6           ;bit 6 = 0 ?   
IF      XC46
	goto    sc8             ;xfer 8 bit cmd/adr
ENDIF
IF      LC468
	goto    sc9             ;xfer 9 bit cmd/adr
ENDIF   
IF      H16     
	goto    sc10            ;xfer 10 bit cmd/adr
ENDIF
IF      H8
	goto    sc11            ;xfer 11 bit cmd/adr
ENDIF
;        goto    set_cmd         ;yes then set cmd
IF      XC46
	goto    sca8            ;xfer 8 bit cmd/adr
ENDIF
IF      LC468
	goto    sca9            ;xfer 9 bit cmd/adr
ENDIF
IF      H16     
	goto    sca10           ;xfer 10 bit cmd/adr
ENDIF
IF      H8
	goto    sca11           ;xfer 11 bit cmd/adr
ENDIF

;        goto    set_cmd_addr    ;else set cmd/addr
see1
	movf    temp_cmd,w      ;retore cmd     
	movwf   cmd             ;       /
	movf    temp_addr,w     ;restore addr
	movwf   addr            ;       /
	btfsc   cmd,6           ;Check for a WRITE or ERASE command.
	goto    see2            ;Yes, parse the command further.
	btfsc   cmd,7           ;Check for a READ command.
	goto    read_           ;Yes, process READ command.
	btfsc   cmd,5           ;Check for a EWEN or ERAL command.
	goto    see3            ;Yes, parse the command further.
	btfsc   cmd,4           ;Check for a WRAL command.
	goto    write_          ;Yes, process WRITE/WRAL command.

exit_   dsel                    ;No further processing required; 93CX6
				;command completed.
;
	retlw   no_err          ;Return with good completion status.

see2    btfss   cmd,7           ;Check for a ERASE command.
	goto    write_          ;No, process WRITE command.
exit2_  call    rdychk          ;ERASE command requires a status check.
	dsel                    ;De-select the 93CX6.
	addwf   pc              ;Compute completion status from results of
				;status check.
	retlw   no_err          ;Return with good completion status.
	retlw   error           ;Return with bad completion status.

see3    btfsc   cmd,4           ;Check for a EWEN command.
	goto    exit_           ;Yes, no further processing required, exit
				;now.
	goto    exit2_          ;No, ERAL command which requires a status
				;check.

read_   incf    fsr             ;Increment the File Select Register to point
				;to the register receiving the upper byte of
				;the incomming 93CX6 data word.
	call    din8            ;Input the upper byte.
IF      org8
ELSE
	incf    fsr             ;Increment the File Select Register to point
				;to the register receiving the lower byte.
	call    din8            ;Input 8 more bits.
ENDIF
	goto    exit_           ;No further processing required, exit now.

write_  incf    fsr             ;Increment the File Select Register to point
				;to the upper byte of the 16 bit 93CX6 data
				;word to be transmitted.
	call    dout8           ;Output that byte.
IF      org8
ELSE
	incf    fsr            ;Increment the File Select Register to point
			       ;to the lower byte.
	call    dout8          ;Output the lower byte of the 16 bit 93CX6
			       ;data word.
ENDIF
	goto    exit2_          ;Exit with a status check.

;
;
IF      XC46
sca8
	movlw   b'11000000'     ;clr all but hi 2
	andwf   cmd,w           ;save in w
	iorwf   addr            ;mask in addr.
	incf    fsr             ;inc FSR
	call    dout8           ;output
	goto    see1            ;return
ENDIF
IF      LC468
;
sca9
	bcf     addr,7          ;clr hi of addr
	btfsc   cmd,6           ;xfer cmd's bit 6
	bsf     addr,7          ;to addr's bit 7
	call    dout9           ;output
	goto    see1            ;return
ENDIF
IF      H16
;
sca10   
	call    dout10          ;output cmd reg
	goto    see1            ;return
ENDIF                
;
IF      H8
sca11
	bcf     cmd,5           ;xfer cmd's bit 3 to
	btfsc   cmd,3           ;cmd's bit 5
	bsf     cmd,5           ;       /
	call    dout11          ;output
	goto    see1            ;return
;
ENDIF
;
;
;
IF      XC46
sc8
	movf    cmd,w           ;get command
	movwf   addr            ;save in addr
	incf    fsr             ;inc pointer
	call    dout8           ;output
	goto    see1            ;return
;
ENDIF
IF      LC468
sc9     
	rlf     cmd,w           ;rotate cmd left
	movwf   addr            ;save in addr
	call    dout9           ;xfer 9 bits
	goto    see1            ;return
ENDIF
IF      H16
;
sc10    
	rlf     cmd             ;rotate cmd
	rlf     cmd,w           ;left twice
	movwf   addr            ;save in addr
	clrf    cmd             ;clear command
	call    dout10          ;xfer 10 bits
	goto    see1            ;return
ENDIF
;
IF      H8
sc11
	bcf     addr,7          ;xfer cmd's bit 4
	btfsc   cmd,4           ;to addr's bit 7
	bsf     addr,7          ;       /
	call    dout11          ;xfer 11 bits
	goto    see1            ;return
ENDIF
;********************************************************************
;*                      Test Program                                *
;********************************************************************
	main                    ;We've include a sample program to exercise
				;the PIC to 93C66 interface using a simple
				;erase, write and verify routine.
				;8 bit organization has been used
				;with a 3 wire interface.
	
	clrf    serial          ;Clear the port tied to the 93C66 device.
	movlw   b'11110000'     ;Intialize the data direction register for
	tris    serial          ;that port.
	
	movlw   ewen            ;Load W with the Erase/Write Enable command.
	movwf   cmd             ;Transfer W into cmd register.
	call    see             ;Enable the 93C66 device.

	movlw   eral            ;Load W with the Erase All command.
	movwf   cmd             ;Transfer W into cmd register.
	call    see             ;Erase the 93C66.
	xorlw   error           ;Check completion status.
	btfsc   status, zflag   ;Test for error condition.
	goto    errloop         ;Yes, bad completion status, error-out.

				;Write loop:
tstptrn equ     0xAA            ;Define the test pattern to be written.

	movlw   write           ;Load W with the Write command.
	movwf   cmd             ;Transfer W into cmd register.
	movlw   tstptrn         ;Intialize the 93C66 data registers with
				;write data.
	movwf   highb           ;load in high byte only
				;since 8 bit low byte is ignored
	clrf    addr            ;start at addr 0
test1   call    see             ;Write data word into 93C66 device.
	xorlw   error           ;Check completion status.
	btfsc   status,zflag    ;Test for error condition.
	goto    errloop         ;Yes, bad completion status, error-out.
	incfsz  addr            ;No, increment the 8 bit memory address
				;field.
	goto    test1           ;write another location
	btfss   cmd,3           ;see if all done
	goto    wrt_nxt_pg      ;no then write next page
	goto    read_tst        ;read written data
wrt_nxt_pg
	bsf     cmd,3           ;set page bit
	goto    test1           ;No, write another location.

				;Read loop:
read_tst
	movlw   read            ;Load W with the Read command.
	movwf   cmd             ;Transfer W into cmd register.
test2   call    see             ;Read addressed data word from 93C66 device.
	movlw   tstptrn         ;Load W with the pattern written.
	subwf   highb,w         ;Verify the data read against what was
				;written.
	btfss   status,zflag    ;Same?
	goto    errloop         ;No, error-out.
	incfsz  addr            ;Yes, both byte correct, increment the 8 bit
				;memory address field.
	goto    test2           ;do next byte
	btfss   cmd,3           ;check page bit
	goto    rd_nxt_pg       ;no then chk next page
	goto    allok           ;all done!!!
rd_nxt_pg
	bsf     cmd,3           ;set page bit
	goto    test2           ;No, read another location.

allok   goto    allok           ;Home safe!
;
;
errloop
	goto    errloop
;
;
;
;KEY DEFINITIONS
;
	ORG     PIC54
SYS_RESET
	GOTO    START
;
	END



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品69毛片高清亚洲| 91精品国产综合久久久蜜臀粉嫩| 在线观看日韩av先锋影音电影院| 欧美va亚洲va| 亚洲国产成人porn| 99久久综合国产精品| 精品欧美一区二区三区精品久久| 亚洲免费av观看| 国产精品1区2区| 日韩一区二区三区电影| 亚洲高清不卡在线观看| av一区二区三区在线| 久久精品亚洲一区二区三区浴池| 无码av免费一区二区三区试看| 9色porny自拍视频一区二区| 久久综合精品国产一区二区三区| 丝袜亚洲精品中文字幕一区| 99久久精品国产精品久久| 国产日韩欧美电影| 国产尤物一区二区| 日韩美女视频在线| 日本亚洲天堂网| 正在播放亚洲一区| 亚洲综合男人的天堂| 99精品欧美一区二区蜜桃免费| 久久午夜国产精品| 国产一区欧美一区| 日韩亚洲欧美综合| 美国毛片一区二区| 日韩写真欧美这视频| 日本伊人午夜精品| 精品日产卡一卡二卡麻豆| 日本色综合中文字幕| 日韩一区和二区| 久久国产夜色精品鲁鲁99| 日韩视频免费直播| 久久精品国产成人一区二区三区| 在线成人免费观看| 奇米精品一区二区三区四区| 欧美精品高清视频| 老司机一区二区| 国产亚洲成aⅴ人片在线观看| 国产精品乡下勾搭老头1| 国产精品午夜在线| 色88888久久久久久影院野外| 一区二区三区波多野结衣在线观看| 色婷婷综合久久久| 亚洲丶国产丶欧美一区二区三区| 欧美日韩精品三区| 九九九久久久精品| 国产精品色呦呦| 欧美亚洲综合网| 麻豆久久久久久| 中文字幕不卡在线观看| 91福利视频在线| 蜜芽一区二区三区| 国产欧美精品日韩区二区麻豆天美| www.av精品| 人人超碰91尤物精品国产| 国产清纯白嫩初高生在线观看91| eeuss鲁片一区二区三区在线看| 亚洲精品视频自拍| 日韩欧美国产精品一区| 成人网男人的天堂| 性做久久久久久免费观看| 精品国产人成亚洲区| 91视频.com| 久久精品国产亚洲高清剧情介绍| 欧美国产欧美综合| 欧美高清视频不卡网| 国产麻豆9l精品三级站| 亚洲国产欧美在线| 久久久国产午夜精品| 91高清视频在线| 国产精品99久久久| 亚洲第一激情av| 亚洲国产精品v| 欧美一区二区大片| 一本一道综合狠狠老| 久久99精品一区二区三区| 亚洲欧美日韩久久| 国产欧美一区二区精品性色| 欧美日韩国产首页| 99re热视频精品| 国产又黄又大久久| 麻豆国产一区二区| 亚洲国产中文字幕| 中文字幕亚洲一区二区va在线| 日韩午夜在线观看| 欧美日韩国产首页| 91亚洲精品久久久蜜桃网站| 国产成人综合亚洲网站| 蜜桃一区二区三区在线观看| 亚洲激情欧美激情| 国产精品久久久久久久久图文区 | 不卡在线视频中文字幕| 六月丁香婷婷久久| 五月天网站亚洲| 亚洲精品乱码久久久久久 | 亚洲精品一卡二卡| 欧美极品少妇xxxxⅹ高跟鞋| 欧美tk—视频vk| 日韩一区二区三区电影在线观看 | 久久久久久久久久久久久夜| 制服丝袜中文字幕亚洲| 欧美视频一区二区在线观看| 91一区二区在线观看| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 91视视频在线直接观看在线看网页在线看| 日本不卡的三区四区五区| 亚洲成人动漫av| 亚洲第一搞黄网站| 天堂午夜影视日韩欧美一区二区| 亚洲一区二区三区在线播放| 亚洲精品美腿丝袜| 一个色在线综合| 国产一区二区在线观看免费| 免费xxxx性欧美18vr| 激情成人综合网| 激情久久久久久久久久久久久久久久| 久久精品国产在热久久| 国内精品国产成人| 韩国理伦片一区二区三区在线播放| 另类成人小视频在线| 国内精品久久久久影院薰衣草| 国产精品 日产精品 欧美精品| 国产福利一区二区三区视频在线| 国产经典欧美精品| 91在线观看视频| 欧美日韩三级一区| 精品美女在线播放| 日本一区二区不卡视频| 亚洲三级在线免费观看| 午夜久久久久久| 精品一区二区久久| av不卡免费电影| 欧美精选午夜久久久乱码6080| 欧美一区二区三区免费观看视频| 久久久久国产成人精品亚洲午夜| 国产精品―色哟哟| 日韩成人一级片| 国产精品亚洲人在线观看| 色偷偷88欧美精品久久久| 日韩免费看网站| 国产精品久久久久三级| 婷婷综合五月天| 国产精品18久久久久久vr| 色综合视频在线观看| 91精品国产综合久久福利软件| 日本一区二区综合亚洲| 亚洲欧美另类小说| 久久电影网站中文字幕 | 极品瑜伽女神91| 91在线观看成人| 日韩欧美一区在线| 一区二区中文视频| 精一区二区三区| 在线视频欧美精品| 国产亚洲1区2区3区| 亚洲不卡av一区二区三区| 国产成人综合网站| 日韩午夜精品电影| 一区二区三区在线观看动漫| 国模一区二区三区白浆| 精品污污网站免费看| 欧美国产一区在线| 精品一区二区三区在线播放视频| 91丨九色porny丨蝌蚪| 久久一区二区三区国产精品| 亚洲韩国一区二区三区| 成人av网站免费| 精品国产麻豆免费人成网站| 天堂午夜影视日韩欧美一区二区| 99视频有精品| 日本一区二区在线不卡| 韩国精品在线观看| 日韩精品资源二区在线| 亚洲成人在线网站| 91麻豆国产精品久久| 国产精品久久网站| 国产成人一区二区精品非洲| 欧美一区二区福利视频| 首页国产欧美日韩丝袜| 在线中文字幕一区| 亚洲欧美在线高清| 成人听书哪个软件好| 久久久久久毛片| 国产一区美女在线| 久久综合给合久久狠狠狠97色69| 日产欧产美韩系列久久99| 欧美裸体一区二区三区| 亚洲成人自拍网| 欧美性做爰猛烈叫床潮| 国产精品久久久久久妇女6080 | 精品一区二区三区欧美| 91精品国产免费| 日本不卡一二三| 日韩欧美久久久| 国产老妇另类xxxxx| 久久精品亚洲乱码伦伦中文|