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

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

?? 93c46.asm

?? 匯編的PIC程序
?? ASM
?? 第 1 頁 / 共 2 頁
字號:
	movlw   b'00000010'     ;
	tris    serial
	dsel                    ;De-select the 93C46.

;       nop                     ;NOTE:  Check the 93C46 data sheet for
				;minimum CS low time.  Depending upon
				;processor frequency, a nop(s) may be
				;between the assertion and de-assertion of
				;Chip Select.

	sel                     ;Re-select the 93C46.
notrdy  btfsc   serial,dout     ;If DO is a '0', 93C46 has yet to completed
				;the last operation (still busy).
	goto    no_error        ;Otherwise RDY status is present within the
				;alloted time, and return with good status.
	decfsz  cnt             ;No, not yet ready.  Decrement the LSB of our
				;16 bit timer and check for expiration.
	goto    notrdy          ;Still some time left.  Try again.
	decfsz  cnthi           ;Least significant byte expired - decrement
				;and check for expiration of the MSB.
	goto    notrdy          ;Still some time left.  Try again.
;for a 3 wire interface, convert RA1 line back to an ouput
	movlw   0               ;convert RA1 to an output
	tris    serial          ;       /
	retlw   error           ;RDY status was not present in the alloted
				;time, return with error status.
no_error
;for a 3 wire interface, convert RA1 line back to an ouput
	movlw   0               ;convert RA1 to an output
	tris    serial          ;       /
	retlw   no_err


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

				;See will control the entire operation of a
				;93C46 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 93C46 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     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 93C46.
	strtbt                  ;Send a start bit.
	call dout8              ;Transmit the 2 bit command and six bit
				;address.
	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; 93C46
				;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 93C46.
	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 93C46 data word.
	call    din8            ;Input the upper byte.
	incf    fsr             ;Increment the File Select Register to point
				;to the register receiving the lower byte.
	call    din8            ;Input 8 more bits.
	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 93C46 data
				;word to be transmitted.
	call    dout8           ;Output that byte.
	incf    fsr             ;Increment the File Select Register to point
				;to the lower byte.
	call    dout8           ;Output the lower byte of the 16 bit 93C46
				;data word.
	goto    exit2_          ;Exit with a status check.

;********************************************************************
;*                      Test Program                                *
;********************************************************************
	main                    ;We've include a sample program to exercise
				;the PIC to 93C46 interface using a simple
				;erase, write and varify routine.
	
	clrf    serial          ;Clear the port tied to the 93C46 device.
	movlw   b'11110100'     ;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 93C46 device.

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

				;Write loop:
loopcnt equ     0x1F            ;Define an unused location for our test
				;program loop counter.
tstptrn equ     0xAA            ;Define the test pattern to be written.

	movlw   .64             ;Initialize that counter.
	movwf   loopcnt         ;
	movlw   write           ;Load W with the Write command.
	movwf   cmd             ;Transfer W into cmd register.
	movlw   tstptrn         ;Intialize the 93C46 data registers with
				;write data.
	movwf   highb           ;
	movwf   lowb            ;
test1   call    see             ;Write data word into 93C46 device.
	xorlw   error           ;Check completion status.
	btfsc   status,zflag    ;Test for error condition.
	goto    errloop         ;Yes, bad completion status, error-out.
	incf    cmd             ;No, increment the 6 bit memory address
				;field.
	decfsz  loopcnt         ;Have we written all 64 locations?
	goto    test1           ;No, write another location.

				;Read loop:

	movlw   .64             ;Initialize loop counter.
	movwf   loopcnt         ;
	movlw   read            ;Load W with the Read command.
	movwf   cmd             ;Transfer W into cmd register.
test2   call    see             ;Read addressed data word from 93C46 device.
	movlw   tstptrn         ;Load W with the pattern written.
	subwf   highb,0         ;Verify the data read against what was
				;written.
	btfss   status,zflag    ;Same?
	goto    errloop         ;No, error-out.
	movlw   tstptrn         ;Repeat with the lower byte read.
	subwf   lowb,0          ;
	btfss   status,zflag    ;Same?
	goto    errloop         ;No, error-out.
	incf    cmd             ;Yes, both byte correct, increment the 6 bit
				;memory address field.
	decfsz  loopcnt         ;Have we read all 64 locations?
	goto    test2           ;No, read another location.

allok   goto    allok           ;Home safe!

errloop goto    errloop         ;Bad news!

	END                     ;Thats all folks!

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产女人18毛片水真多成人如厕| 亚洲一区二区三区精品在线| 精品福利一区二区三区免费视频| 69堂国产成人免费视频| 欧美亚洲愉拍一区二区| 在线亚洲一区二区| 91国模大尺度私拍在线视频| 99麻豆久久久国产精品免费优播| 国产v日产∨综合v精品视频| 国产精品亚洲专一区二区三区| 狠狠色狠狠色综合系列| 国产一区二区在线观看视频| 国产jizzjizz一区二区| 欧美电影在哪看比较好| 制服.丝袜.亚洲.另类.中文| 日韩欧美国产综合| 精品88久久久久88久久久| 国产亚洲一区字幕| 亚洲视频一区二区在线观看| 亚洲综合色网站| 日本不卡不码高清免费观看| 国产一区二区精品久久99| 岛国一区二区在线观看| 91官网在线观看| 欧美一级艳片视频免费观看| 久久久99精品免费观看不卡| 国产精品久久久久久久蜜臀| 亚洲另类春色校园小说| 青青草97国产精品免费观看| 国产一区二区在线看| 色哟哟欧美精品| 91精品国产综合久久久久| 国产性色一区二区| 亚洲另类中文字| 久久不见久久见免费视频1| 岛国精品在线观看| 欧美视频中文字幕| 久久免费视频色| 亚洲你懂的在线视频| 免费成人深夜小野草| 成人免费va视频| 在线成人免费观看| 国产欧美日韩亚州综合| 亚洲图片欧美色图| 国产一区二区美女诱惑| 欧美性淫爽ww久久久久无| 精品久久久影院| 亚洲一区在线观看免费观看电影高清| 精品一区二区国语对白| 91麻豆国产精品久久| 日韩一区二区视频| 亚洲欧美一区二区三区国产精品 | 精品一区二区三区在线观看国产 | 久久免费看少妇高潮| 亚洲精品免费一二三区| 麻豆国产欧美日韩综合精品二区| 成人av午夜影院| 欧美videossexotv100| 一级女性全黄久久生活片免费| 国产制服丝袜一区| 欧美挠脚心视频网站| 国产精品无圣光一区二区| 日韩中文字幕91| 91美女片黄在线观看| 久久精品视频免费观看| 日韩成人dvd| 日本国产一区二区| 国产日韩欧美不卡在线| 欧洲精品一区二区三区在线观看| 久久精品一二三| 蜜桃视频一区二区三区 | 中文字幕精品在线不卡| 日韩精品亚洲专区| 色网站国产精品| 国产情人综合久久777777| 免费久久99精品国产| 欧美日韩中文另类| 亚洲免费三区一区二区| 国产 日韩 欧美大片| 久久欧美一区二区| 久久av资源站| 欧美一区二区福利在线| 亚洲一卡二卡三卡四卡无卡久久 | 欧美韩国日本不卡| 久久疯狂做爰流白浆xx| 69成人精品免费视频| 亚洲激情五月婷婷| 91色.com| 亚洲欧美日韩国产成人精品影院 | 欧美一二三四在线| 亚洲综合一二三区| 色哟哟精品一区| 一区二区三区在线影院| 色婷婷综合久色| 一区二区三区在线视频免费| 久久99久久久久久久久久久| 亚洲免费在线视频| 欧美日韩国产系列| 精品一区二区三区免费| 欧美va在线播放| 精品一区二区三区在线播放| 精品88久久久久88久久久| 久久丁香综合五月国产三级网站| 91精品国产综合久久婷婷香蕉 | 国产ts人妖一区二区| 久久九九久精品国产免费直播| 激情av综合网| 国产欧美日韩视频在线观看| 国产成a人亚洲| 中文字幕亚洲区| 在线免费亚洲电影| 天使萌一区二区三区免费观看| 欧美日韩中文字幕一区| 青青草原综合久久大伊人精品优势| 678五月天丁香亚洲综合网| 青椒成人免费视频| 久久综合色婷婷| 成人性视频网站| 亚洲免费毛片网站| 在线播放中文字幕一区| 麻豆精品一区二区综合av| 久久久久久久久一| 波多野结衣中文字幕一区| 一区二区在线观看免费| 欧美美女bb生活片| 精品剧情v国产在线观看在线| 国产一区二区电影| 国产成人免费网站| 亚洲男同性视频| 7777精品伊人久久久大香线蕉| 久久福利视频一区二区| 欧美激情一区二区三区在线| 91丨porny丨蝌蚪视频| 同产精品九九九| 欧美精品一区二区三区在线 | 日韩精品一区二| 高清不卡在线观看| 亚洲一区欧美一区| 精品国产制服丝袜高跟| 97se狠狠狠综合亚洲狠狠| 亚洲18色成人| 久久久久久久久蜜桃| 日本韩国欧美一区二区三区| 美女精品一区二区| 中文字幕在线观看一区| 欧美妇女性影城| 极品美女销魂一区二区三区免费| 国产精品久久午夜| 宅男在线国产精品| 成人av在线影院| 麻豆精品国产91久久久久久| 亚洲情趣在线观看| 精品国产自在久精品国产| 一本大道久久a久久精二百| 加勒比av一区二区| 亚洲自拍欧美精品| 国产清纯白嫩初高生在线观看91 | 91最新地址在线播放| 性欧美大战久久久久久久久| 久久久综合激的五月天| 日本久久一区二区三区| 国产精品综合一区二区| 亚洲不卡在线观看| 中文字幕一区二区三区不卡| 欧美一区二区人人喊爽| 99re这里只有精品首页| 激情伊人五月天久久综合| 性做久久久久久久免费看| 国产精品久久久久天堂| 精品久久99ma| 欧美精选午夜久久久乱码6080| 国产成人精品综合在线观看| 日本亚洲视频在线| 亚洲综合偷拍欧美一区色| 中文字幕二三区不卡| 欧美mv和日韩mv的网站| 在线不卡一区二区| 一本到高清视频免费精品| 国产69精品久久久久毛片| 捆绑紧缚一区二区三区视频| 亚洲图片有声小说| 亚洲狼人国产精品| 中文字幕欧美一| 国产人久久人人人人爽| 欧美一区二区黄| 麻豆成人91精品二区三区| 激情文学综合丁香| 日韩电影网1区2区| 一区二区三区日韩欧美精品| 亚洲国产精品v| 久久噜噜亚洲综合| 精品奇米国产一区二区三区| 91精品久久久久久蜜臀| 欧美日韩你懂的| 欧美日韩精品专区| 欧美日本一区二区三区| 欧美三级中文字| 欧美在线色视频| 欧美午夜一区二区三区 | 中文字幕国产一区二区|