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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 93xcxx.asm

?? Microchip pic c source code
?? 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



?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合天天天天做夜夜夜夜做| 91免费观看视频在线| 欧美国产禁国产网站cc| 欧美日韩色一区| 成人免费高清视频在线观看| 免费观看30秒视频久久| 成人欧美一区二区三区白人| 69堂成人精品免费视频| 91在线视频在线| 国产91精品露脸国语对白| 免费在线观看精品| 午夜欧美在线一二页| 亚洲男人都懂的| 国产精品天干天干在观线| 精品捆绑美女sm三区| 欧美日本一道本| 91色porny蝌蚪| 国产成人午夜99999| 免费看欧美女人艹b| 午夜精品一区在线观看| 亚洲精品成人a在线观看| 国产精品家庭影院| 国产色综合一区| 精品国产91洋老外米糕| 91精品国产福利| 6080午夜不卡| 欧美日韩性生活| 欧美色图在线观看| 欧洲生活片亚洲生活在线观看| 成人午夜在线播放| 国产在线视频一区二区三区| 麻豆精品视频在线观看| 日韩高清一区二区| 视频一区二区中文字幕| 亚洲bdsm女犯bdsm网站| 亚洲成人你懂的| 亚洲aⅴ怡春院| 日韩高清在线不卡| 青青国产91久久久久久| 日韩av网站免费在线| 天天射综合影视| 日韩精品亚洲专区| 日韩成人一区二区| 麻豆成人av在线| 激情综合五月天| 国产suv一区二区三区88区| 高清不卡一二三区| 91麻豆高清视频| 欧美亚洲动漫另类| 91麻豆精品久久久久蜜臀| **性色生活片久久毛片| 亚洲欧洲色图综合| 亚洲精品乱码久久久久久黑人| 亚洲国产日韩综合久久精品| 亚洲成a天堂v人片| 精品一区二区三区在线播放| 国产在线不卡一卡二卡三卡四卡| 国产精品888| 色婷婷综合久久久| 91精品久久久久久久91蜜桃| 日韩欧美国产电影| 久久综合狠狠综合久久激情| 国产免费观看久久| 亚洲国产日日夜夜| 久久精品免费看| 成人黄色免费短视频| 欧美伊人久久大香线蕉综合69| 欧美丰满少妇xxxxx高潮对白| 精品盗摄一区二区三区| 中文字幕色av一区二区三区| 亚洲国产视频一区| 国内外成人在线| 色域天天综合网| 欧美成人女星排行榜| 国产精品情趣视频| 日本vs亚洲vs韩国一区三区二区 | 日韩国产成人精品| 成人综合在线网站| 欧美日韩国产电影| 欧美激情一区二区在线| 亚洲 欧美综合在线网络| 国产精品一二二区| 欧美日韩一卡二卡| 欧美国产日韩在线观看| 日韩精品三区四区| aa级大片欧美| 精品sm捆绑视频| 亚洲精品水蜜桃| 国产二区国产一区在线观看 | 久久久91精品国产一区二区精品| 日韩理论片网站| 理论片日本一区| 在线区一区二视频| 久久精品夜色噜噜亚洲a∨| 亚洲自拍与偷拍| 成人理论电影网| 欧美mv日韩mv| 亚洲国产你懂的| 丁香另类激情小说| 日韩视频一区二区在线观看| 亚洲黄色尤物视频| 国产91丝袜在线观看| 日韩午夜激情电影| 国产1区2区3区精品美女| 欧美日韩黄色一区二区| 专区另类欧美日韩| 韩国毛片一区二区三区| 欧美日本在线看| 亚洲精品国产精品乱码不99| 国产精品综合在线视频| 91精品国产高清一区二区三区蜜臀 | 欧美三级视频在线| 日韩毛片高清在线播放| 国产mv日韩mv欧美| 精品国产精品网麻豆系列| 午夜在线电影亚洲一区| 91丝袜美女网| 国产精品久久久久毛片软件| 激情av综合网| 欧美电影免费提供在线观看| 午夜精品视频一区| 欧美伊人久久久久久久久影院| 亚洲天堂a在线| 成人国产精品免费观看| 国产人伦精品一区二区| 国产一区视频在线看| 精品国产乱码久久久久久牛牛| 蜜桃久久久久久| 日韩欧美亚洲一区二区| 奇米影视7777精品一区二区| 欧美日韩国产经典色站一区二区三区| 一区二区在线观看视频在线观看| 99免费精品在线观看| 中文字幕一区二区三区色视频| 国产98色在线|日韩| 国产精品乱人伦| www.欧美亚洲| 亚洲免费观看在线观看| 色狠狠综合天天综合综合| 亚洲女厕所小便bbb| 在线观看国产91| 亚洲网友自拍偷拍| 91.xcao| 久久精品国产亚洲aⅴ| 欧美成人vps| 国产精品综合一区二区| 欧美国产欧美综合| 91小视频在线| 亚洲国产成人精品视频| 日韩一区二区三区av| 久久国产精品区| 国产欧美日韩视频在线观看| 波多野结衣中文字幕一区 | 色婷婷亚洲一区二区三区| 尤物在线观看一区| 欧美日韩日本视频| 美女视频黄 久久| 中文字幕免费在线观看视频一区| 波波电影院一区二区三区| 亚洲综合另类小说| 91精品国产免费| 国产成人一级电影| 一区二区在线看| 日韩免费视频线观看| 豆国产96在线|亚洲| 亚洲精品免费播放| 欧美一级高清片| 成人性生交大合| 天堂成人免费av电影一区| 精品久久久久久久久久久久久久久久久| 国产精品一区二区三区99| 国产精品久久影院| 在线成人午夜影院| 成人爽a毛片一区二区免费| 一区二区三区蜜桃| 午夜电影网一区| 久久免费偷拍视频| 在线观看日韩高清av| 久久精品99国产精品| 成人免费小视频| 精品国产在天天线2019| 99久久综合99久久综合网站| 视频一区国产视频| 国产精品国模大尺度视频| 91精品国产品国语在线不卡| 成人性生交大片免费看中文| 天天综合色天天综合| 成人免费在线视频观看| 日韩你懂的在线观看| 91一区一区三区| 麻豆91免费观看| 一区二区三区久久久| 久久久精品tv| 欧美一级xxx| 日本久久一区二区| 国产ts人妖一区二区| 日本sm残虐另类| 亚洲精品国产视频| 中文字幕精品一区| 日韩欧美国产成人一区二区|