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

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

?? part3.lst

?? STH11和PIC單片機(jī)匯編語言-源程序
?? LST
?? 第 1 頁 / 共 5 頁
字號:
                      00415                                 ;a one is sent.
                      00416 
                      00417 ; Decrement the bit counter.
                      00418 
004E                  00419 EndDoBit
004E   038C           00420         decf    BitCount,F
MPASM 03.20 Released            PART3.ASM   10-24-2002  12:35:27         PAGE  9


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00421 
                      00422 ; reload TMR0 for the next interrupt, and
                      00423 ; go to the end of the interrupt routine.
                      00424 
004F   30B5           00425         movlw   _BitTxDelay     
0050   0081           00426         movwf   TMR0            ;29th cycle
0051   280B           00427         goto    Restore
                      00428 
                      00429 
                      00430 ; Here we need to send the stop bit, turn off the TMR0 interrupt,
                      00431 ; turn on the external interrupt, and set the SerStatus register
                      00432 ; flags appropriately.
                      00433 
0052                  00434 SendStopBit
0052   0000           00435         nop
0053   0000           00436         nop
0054   0000           00437         nop
0055   1485           00438         bsf     PORTA,_SER_OUT  ;no. Send the stop bit. (24th cycle)
0056   1590           00439         bsf     SerialReg,3     ;set the "sending stop bit" flag
                      00440 
                      00441 ; reload TMR0 for the next interrupt, and
                      00442 ; go to the end of the interrupt routine.
                      00443 
0057   30A8           00444         movlw   _StopTxDelay
0058   0081           00445         movwf   TMR0            ;27th cycle
0059   280B           00446         goto    Restore
                      00447 
                      00448 ; we're completely done sending or receiving. Clean up.
                      00449 
005A   3010           00450 Done    movlw   b'00010000'     ;set bits in INTCON to enable
005B   008B           00451         movwf   INTCON          ;external interrupt
005C   3001           00452         movlw   b'00000001'
005D   0590           00453         andwf   SerialReg,F     ;clear the busy bits in SerialReg
005E   280B           00454         goto    Restore
                      00455 
                      00456 ;------end DoBit-----------------------------------------------------
                      00457 
                      00458 ;------Subroutine SendChar-------------------------------------------
                      00459 ;
                      00460 ; This is not called by the interrupt handler. Rather, it activates 
                      00461 ; the interrupts needed to send it. Put the character to be sent in
                      00462 ; the TXChar file register before calling this subroutine.
                      00463 ;
                      00464 
005F                  00465 SendChar
                      00466         
                      00467 ; send the start bit:
                      00468 
005F   1085           00469         bcf     PORTA,_SER_OUT
                      00470 
                      00471 ; set the SerStatus to indicate that the routines are busy sending
                      00472 ; a character:
                      00473 
MPASM 03.20 Released            PART3.ASM   10-24-2002  12:35:27         PAGE 10


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

0060   3006           00474         movlw   b'00000110'
0061   0090           00475         movwf   SerialReg
                      00476 
                      00477 ; load up TMR0 so it overflows at the right time.
                      00478 
0062   0000           00479         nop                     ;for timing
0063   30B5           00480         movlw   _BitTxDelay
0064   0081           00481         movwf   TMR0            ;5th cycle after write to PORTA
                      00482 
                      00483 ; clear the external interrupt flag, disable the external interrupt,
                      00484 ; and enable the TMR0 interrupt.
                      00485 
0065   30A0           00486         movlw   b'10100000'
0066   008B           00487         movwf   INTCON
                      00488 
                      00489 ; set the BitCount for the eight bits to send:
                      00490 
0067   3008           00491         movlw   8
0068   008C           00492         movwf   BitCount
                      00493 
0069   0008           00494         return
                      00495 
                      00496 ;------end SendChar--------------------------------------------------
                      00497 
                      00498 ;------begin GetAChar------------------------------------------------
                      00499 
006A                  00500 GetAChar
006A   2129           00501         call    Idle
006B   1C10           00502         btfss   SerialReg,0     ;wait for a character to be received
006C   286A           00503         goto    GetAChar
006D   1010           00504         bcf     SerialReg,0
006E   0008           00505         return
                      00506 
                      00507 ;------end GetAChar--------------------------------------------------
                      00508 
                      00509 ;------begin SendAChar-----------------------------------------------
                      00510 
006F                  00511 SendAChar
006F   205F           00512         call    SendChar
                      00513 
0070                  00514 WaitToFinish
0070   2129           00515         call    Idle
0071   1890           00516         btfsc   SerialReg,1     ;wait for the character to be sent
0072   2870           00517         goto    WaitToFinish
0073   0008           00518         return
                      00519 
                      00520 ;------end SendAChar-------------------------------------------------
                      00521 
                      00522 ;------Subroutine WaitMS---------------------------------------------
                      00523 ;
                      00524 ; WaitMS is an approximate millisecond delay. It assumes a 4 MHz
                      00525 ; oscillator, meaning instructions are executed at a rate of 1 MHz.
                      00526 ; I got the timing info (number of cycles per instruction) from the
MPASM 03.20 Released            PART3.ASM   10-24-2002  12:35:27         PAGE 11


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00527 ; Microchip PIC16F84 data sheet.
                      00528 
                      00529 ; the call to this subroutine takes 2 cycles to execute.
                      00530 
0074                  00531 WaitMS
0074   30F8           00532         movlw   248             ;1 cycle
0075   009A           00533         movwf   MSDelay         ;1 cycle
0076   0000           00534         nop                     ;1 cycle--these nops are added to 
0077   0000           00535         nop                     ;1 cycle  make the total number of
0078   0000           00536         nop                     ;1 cycle  instructions executed in
                      00537                                 ;         the routine to be 1000.
                      00538                                 ;the nop instruction simply does 
                      00539                                 ;nothing except take time to execute.
                      00540 
                      00541 ; The loop below takes four cycles for every time through except the
                      00542 ; last, when it takes five (including the time needed to execute the
                      00543 ; return). So, the total number of instructions executed in getting
                      00544 ; to and returning from this subroutine is:
                      00545 ;
                      00546 ;        2 to get here
                      00547 ;    +   2 to set the MSDelay value
                      00548 ;    +   3 for the nops
                      00549 ;   + 247*4 for the first 247 times through the loop
                      00550 ;    +   5 for the last time through the loop and to return
                      00551 ;   --------
                      00552 ;    = 1000
                      00553 
0079                  00554 RepeatWaitMS
0079   0000           00555         nop                     ;1 cycle
007A   0B9A           00556         decfsz  MSDelay,F       ;1 cycle if not zero, 2 if zero
007B   2879           00557         goto    RepeatWaitMS    ;2 cycles
007C   0008           00558         return                  ;2 cycles
                      00559 
                      00560 ;------end WaitMS----------------------------------------------------
                      00561 
                      00562 ;------begin SHT11TXRX-----------------------------------------------
                      00563 ;
                      00564 ; Sends a byte command to the SHT11 temp/humidity sensor and retrieves
                      00565 ; a two-byte response. Sends the response back to the PC as an ASCII
                      00566 ; string representation of the number.
                      00567 ;
                      00568 ; Put the byte to send in SHT11Byte before calling this routine. 
                      00569 
007D                  00570 SHT11TXRX
                      00571 
                      00572         ;make _SHT11_DAT an output
                      00573 
007D   1683           00574         bsf     STATUS,RP0      ;switch to bank 1
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
007E   1185           00575         bcf     TRISA,_SHT11_DAT        ;make Port A data line an output
007F   1283           00576         bcf     STATUS,RP0      ;switch back to bank 0
                      00577 
                      00578         ;send the Transmission Start sequence:
MPASM 03.20 Released            PART3.ASM   10-24-2002  12:35:27         PAGE 12


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00579 
0080   1585           00580         bsf     PORTA,_SHT11_DAT        ;set the data line high
0081   1505           00581         bsf     PORTA,_SHT11_SCK        ;take the clock line high
0082   1185           00582         bcf     PORTA,_SHT11_DAT        ;take the data line low
0083   1105           00583         bcf     PORTA,_SHT11_SCK        ;take the clock line low
0084   1505           00584         bsf     PORTA,_SHT11_SCK        ;take the clock line high again
0085   1585           00585         bsf     PORTA,_SHT11_DAT        ;set the data line high again
                      00586         
                      00587         ;load up the counter to loop through the eight bits to send:
                      00588 
0086   3008           00589         movlw   8
0087   0094           00590         movwf   counter
                      00591 
0088                  00592 SHT11SendBitLoop
0088   1105           00593         bcf     PORTA,_SHT11_SCK        ;take the clock line low
                      00594 
0089   1F93           00595         btfss   SHT11Byte,7     ;is the next bit to send a one?
008A   288D           00596         goto    SHT11SendZero   ;nope. Go send a zero.
008B   1585           00597         bsf     PORTA,_SHT11_DAT        ;if it's a one, send it.
008C   288E           00598         goto    SHT11SendBit
                      00599 
008D                  00600 SHT11SendZero
008D   1185           00601         bcf     PORTA,_SHT11_DAT        ;set the data line to zero
                      00602 
008E                  00603 SHT11SendBit
008E   1505           00604         bsf     PORTA,_SHT11_SCK        ;take the clock line high to send
                      00605 
008F   0D93           00606         rlf     SHT11Byte,F     ;move the next bit into MSB
                      00607 
0090   0B94           00608         decfsz  counter,F       ;dec the counter and check for zero.
0091   2888           00609         goto    SHT11SendBitLoop        ;if not zero, more bits to send
                      00610 
0092   1105           00611         bcf     PORTA,_SHT11_SCK        ;take the clock line low
                      00612 
                      00613         ;no more bits to send. Set the data line to be an input and
                      00614         ;wait for the ack from the SHT11:
                      00615 
0093   1683           00616         bsf     STATUS,RP0      ;switch to bank 1
Message[302]: Register in operand not in bank 0.  Ensure that bank bits are correct.
0094   1585           00617         bsf     TRISA,_SHT11_DAT        ;make Port A data line an input
0095   1283           00618         bcf     STATUS,RP0      ;switch back to bank 0
                      00619 
                      00620         ; now look for an ack (SHT11 pulls data line low--should
                      00621         ; happen on the next rise of the SCK line). If it doesn't

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品亚洲免费视频| 欧美性生活久久| 欧美极品aⅴ影院| 国产自产视频一区二区三区| 精品国产自在久精品国产| 琪琪一区二区三区| 日韩一区二区三区视频在线观看 | 国产欧美日韩精品在线| 韩国精品主播一区二区在线观看| 日韩欧美国产一区二区三区 | 91福利精品视频| 亚洲激情自拍偷拍| 欧美三级中文字幕在线观看| 亚洲成av人片一区二区梦乃| 91精品国产综合久久精品性色| 天堂va蜜桃一区二区三区漫画版| 欧美日本视频在线| 午夜av一区二区| 欧美一级艳片视频免费观看| 久久成人久久鬼色| 久久亚洲免费视频| 国产激情视频一区二区在线观看| 亚洲国产精品成人综合色在线婷婷| 成人综合日日夜夜| 亚洲欧美福利一区二区| 欧美三级日本三级少妇99| 日本伊人精品一区二区三区观看方式| 制服丝袜亚洲色图| 精品在线一区二区三区| 欧美高清一级片在线观看| 成人av网在线| 亚洲一二三四在线观看| 91精品一区二区三区在线观看| 麻豆国产一区二区| 亚洲国产成人一区二区三区| 一本色道久久综合狠狠躁的推荐| 亚洲成人在线免费| 精品久久一二三区| 成人午夜电影小说| 亚洲综合另类小说| 这里只有精品免费| 国产美女视频91| 亚洲欧美日韩国产一区二区三区| 欧美日本乱大交xxxxx| 国产一区啦啦啦在线观看| 中文字幕中文在线不卡住| 欧美日韩卡一卡二| 韩国三级电影一区二区| 亚洲色图欧洲色图| 日韩一区二区不卡| 丁香婷婷综合五月| 亚洲 欧美综合在线网络| 欧美α欧美αv大片| 91精品午夜视频| 韩国毛片一区二区三区| **欧美大码日韩| 日韩一级高清毛片| 成人一道本在线| 石原莉奈在线亚洲三区| 日本一区二区三区国色天香| 欧美丝袜丝交足nylons| 国产在线视频一区二区三区| 亚洲日本va在线观看| 日韩你懂的在线播放| 99麻豆久久久国产精品免费优播| 青娱乐精品视频| 国产精品色眯眯| 91精品国产高清一区二区三区| 成人污污视频在线观看| 天天影视色香欲综合网老头| 国产精品嫩草99a| 日韩亚洲欧美中文三级| 91尤物视频在线观看| 激情五月激情综合网| 亚洲国产日日夜夜| 国产精品女上位| 日韩一区二区在线免费观看| 色综合久久天天综合网| 国产在线精品一区在线观看麻豆| 一个色妞综合视频在线观看| 国产亚洲精久久久久久| 91精品国产综合久久久久久漫画| 99精品视频一区二区三区| 久久精品二区亚洲w码| 亚洲综合一区在线| 国产精品毛片高清在线完整版 | 欧美专区亚洲专区| 国产剧情av麻豆香蕉精品| 亚洲v精品v日韩v欧美v专区| 国产精品国产三级国产aⅴ原创| 欧美一区二区网站| 欧美午夜在线一二页| 国产成人精品三级麻豆| 秋霞成人午夜伦在线观看| 亚洲自拍偷拍欧美| 国产精品国产三级国产普通话蜜臀| 日韩免费视频一区二区| 欧美三级电影精品| 色猫猫国产区一区二在线视频| 国产激情视频一区二区在线观看 | www国产亚洲精品久久麻豆| 欧美欧美欧美欧美| 欧美主播一区二区三区| 99久久精品99国产精品| 国产成人免费视频网站| 韩国毛片一区二区三区| 麻豆成人久久精品二区三区红| 亚洲h动漫在线| 亚洲综合在线免费观看| 椎名由奈av一区二区三区| 久久无码av三级| 欧美变态tickling挠脚心| 日韩一区二区三区在线视频| 欧美日产国产精品| 欧美日本韩国一区二区三区视频| 一本大道av伊人久久综合| 99久久婷婷国产综合精品电影| 成人精品视频一区| 国产91高潮流白浆在线麻豆| 国产成人免费视频网站| 国产成人av在线影院| 国产精品综合在线视频| 91精品国产黑色紧身裤美女| 欧美日韩国产在线播放网站| 欧美三级韩国三级日本一级| 欧美日韩一区国产| 欧美精品 国产精品| 欧美男男青年gay1069videost| 欧美精品在线一区二区三区| 欧美日韩国产片| 欧美一区二区播放| 日韩一区二区三区精品视频| 欧美一级夜夜爽| 精品久久国产老人久久综合| 精品国产精品网麻豆系列| 久久影院视频免费| 久久久国产一区二区三区四区小说| 久久精品一二三| 国产精品无人区| 亚洲美女少妇撒尿| 亚洲一区二区欧美日韩| 亚洲成av人片www| 奇米精品一区二区三区四区| 久久国产乱子精品免费女| 开心九九激情九九欧美日韩精美视频电影 | 91精品国产高清一区二区三区 | 91精品国产综合久久精品| 日韩欧美综合在线| 久久午夜羞羞影院免费观看| 欧美激情综合在线| 亚洲精选视频在线| 五月天丁香久久| 久久国内精品自在自线400部| 国产剧情在线观看一区二区| 成人午夜激情影院| 欧美伊人久久大香线蕉综合69| 在线成人av网站| 久久婷婷成人综合色| 成人欧美一区二区三区黑人麻豆 | 视频一区中文字幕| 麻豆极品一区二区三区| 成人一区二区三区视频在线观看| 99精品久久只有精品| 欧美日韩精品一区二区在线播放| 日韩欧美中文一区| 国产精品每日更新在线播放网址| 亚洲最色的网站| 久久99精品久久久久久动态图| 成人爽a毛片一区二区免费| 91久久精品国产91性色tv| 日韩一区二区三区高清免费看看| 欧美激情中文不卡| 一区二区三区四区中文字幕| 久久精品国产99久久6| 波多野结衣91| 7777精品伊人久久久大香线蕉| 久久精品视频一区二区三区| 亚洲视频你懂的| 男男成人高潮片免费网站| 成熟亚洲日本毛茸茸凸凹| 欧美日韩亚洲综合在线| 久久久久久亚洲综合影院红桃| 亚洲美女免费视频| 精品中文字幕一区二区 | 风间由美性色一区二区三区| 欧美伊人久久大香线蕉综合69 | 国产一区啦啦啦在线观看| 色婷婷国产精品| 2024国产精品| 亚洲一二三四在线| 国产成人精品亚洲777人妖| 欧美日韩精品一区二区天天拍小说| 久久久久久久久久久久久久久99 | 国产精品久久久久久久久免费相片| 香蕉久久一区二区不卡无毒影院| 国产乱国产乱300精品| 欧美日韩精品二区第二页| 国产精品欧美一区二区三区| 日韩av网站免费在线| av综合在线播放|