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

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

?? dal_bus.lst

?? 轉(zhuǎn)載別人ds18b20proteus作品希望對proteus library里沒有ds18b20的xdjm們有用!
?? LST
?? 第 1 頁 / 共 5 頁
字號:
MPASM 03.80 Released                              DAL_BUS.ASM   11-20-2005  18:21:08         PAGE  1


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00001 ;        TITLE "Dallas 1 wire bus comms MASTER"
                      00002 
                      00003 ;****************************************************************************
                      00004 ;*
                      00005 ;*   Send Reset Pulse to all on Dallas bus,
                      00006 ;*   and monitor presence pulse
                      00007 ;* TO DO -  best of three reads, to guard against noise
                      00008 ;*
                      00009 ;****************************************************************************
                      00010 
                      00011     include P16F628A.inc
                      00001         LIST
                      00002 ; P16F628A.INC  Standard Header File, Version 1.10    Microchip Technology, Inc.
                      00265         LIST
                      00012     include tempdemo.inc
                      00001 ;****************************************************************************
                      00002 ;*                                                                          *
                      00003 ;*                   Dallas 1 Wire Bus Temperature demo                     *
                      00004 ;*                                                                          *
                      00005 ;****************************************************************************
                      00006 
  003D0900            00007 Clock_Freq      equ     d'4000000'      ;4MHz - for wait macro calculations
                      00008 
                      00009     udata_ovr   0x20                    ;0x0C 16F84
0020                  00010 DScommbuff      res     1
0021                  00011 DSCRC           res     1
                      00012 
0022                  00013 tempone         res     1
0023                  00014 temptwo         res     1
0024                  00015 count           res     1
0025                  00016 count2          res     1               ; 2nd loop counter for nested loops
0026                  00017 bits_byte       res     1
                      00018 
0027                  00019 CHARBUF         res     1
0028                  00020 temp_hi         res     1
0029                  00021 temp_lo         res     1
002A                  00022 acc_lo          res     1
002B                  00023 acc_hi          res     1
                      00024 
002C                  00025 vvshift         res     1
                      00026 
                      00027 #define PRESENCE_bit    bits_byte, 0
                      00028 #define round00_bit     bits_byte, 1
                      00029 #define DSNext_bit      bits_byte, 2
                      00030 #define neg_temp_bit    bits_byte, 3
                      00031 #define DALLAS_BUS      PORTA, 4
                      00032 
002D                  00033 ROM_no          res     8
0035                  00034 id_bit_number   res     1
0036                  00035 last_zero       res     1
0037                  00036 LastDiscrepancy res     1
0038                  00037 LastFamilyDiscr res     1
0039                  00038 id_bits_byte    res     1
MPASM 03.80 Released                              DAL_BUS.ASM   11-20-2005  18:21:08         PAGE  2


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

003A                  00039 rom_mask        res     1
                      00040 
                      00041 #define id_bit          id_bits_byte, 0 ; first bit read in a search ID sequence
                      00042 #define cmp_id_bit      id_bits_byte, 1 ; complement of id_bit
                      00043 #define test_bit        id_bits_byte, 2 ; test id_bit & cmp_id_bit
                      00044 
                      00045 #define last_device     id_bits_byte, 6
                      00046 #define Direction       id_bits_byte, 7
                      00013     include dal_bus.inc
                      00032         list
                      00014     include wait.inc
                      00001 
                      00002 #define         Nanosec         * D'1'
                      00003 #define         Microsec        * D'1000'
                      00004 #define         Millisec        * D'1000000'
                      00005 #define         Seconds         * D'1000000000'
                      00006        
                      00007 
                      00008 ;**************************************************************
                      00009 ;*                       The WAIT macro                       *
                      00010 ;*                      * VERSION 1.01 *                      *
                      00011 ;*             called by Wait <time>, lesscycles              *
                      00012 ;**************************************************************
                      00013 ;History
                      00014 ;1.00   - Original
                      00015 ;1.01   - Fixed bug with small even numbers giving an error message
                      00016 
                      00017 
                      00018 Wait    macro   time_ns, lesscycles         ;time_ns gives the wait time required, in ns
                      00019  radix dec
                      00020  variable instruct_time_ns =  (( 1 Seconds ) / (Clock_Freq / 4 ))
                      00021  local cycles
                      00022  variable cycles = ((time_ns) / instruct_time_ns)   ;required delay in 
                      00023                                                          ;100ths of instructions
                      00024 
                      00025  if (cycles < (lesscycles) )
                      00026         messg NOTE - negative delay time with lesscycles cycles (no code)
                      00027                
                      00028                 exitm
                      00029  else
                      00030  variable cycles = (cycles - (lesscycles))
                      00031  endif
                      00032 
                      00033  if (cycles == 0) 
                      00034         messg "WARNING - delay time less than 1 instructions"
                      00035                
                      00036                 nop
                      00037                 exitm
                      00038  endif
                      00039 
                      00040  if (cycles > (255*(256*3 + 6) + 2 + 3))
                      00041         messg   "ERROR : Too long a wait for the WAIT macro at present!!"
                      00042         exitm
MPASM 03.80 Released                              DAL_BUS.ASM   11-20-2005  18:21:08         PAGE  3


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00043  endif
                      00044         
                      00045 ;        messg Info - calculated number of cycles = #v(cycles)
                      00046 
                      00047 
                      00048  if (cycles > ((255*3)+5))
                      00049                 
                      00050                 movlw   ((cycles-5)/(256*3+6))
                      00051                 call    longdelay
                      00052  
                      00053  ifndef INCLONGDELAY
                      00054   #define INCLONGDELAY
                      00055  endif
                      00056 
                      00057  exitm
                      00058  endif
                      00059 
                      00060  if ((cycles > 8 ) && (cycles < (255*3 + 5)))
                      00061                 
                      00062                 movlw   ((cycles-5)/3)        
                      00063                 call    shortdelay
                      00064  
                      00065  ifndef INCSHORTDELAY
                      00066   #define INCSHORTDELAY
                      00067  endif
                      00068 
                      00069  exitm
                      00070  endif
                      00071 
                      00072  if (cycles < 8)
                      00073  while  ( cycles > 1 )
                      00074                 
                      00075                 goto $+1  ;two cycle nop
                      00076         
                      00077 cycles -=2
                      00078  endw
                      00079  endif
                      00080  
                      00081  if (cycles > 0)
                      00082                nop
                      00083  
                      00084  endif
                      00085  exitm
                      00086  
                      00087  messg "ERROR - got to end of WAIT.MAC"
                      00088 
                      00089  radix hex
                      00090  endm
                      00015 
  0000                00016     global DSReset_Pulse, DSWriteByteW, DSReadByte, DSReadBit
  0000                00017     global OWSearch
  0000                00018     extern longdelay, shortdelay    ;DELAY.ASM
                      00019 
MPASM 03.80 Released                              DAL_BUS.ASM   11-20-2005  18:21:08         PAGE  4


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00020 PROG CODE
0000   1000           00021 DSReset_Pulse   bcf     PRESENCE_bit
0001   1605           00022                 bsf     DALLAS_BUS      ;just in case it isn't
                      00023                 Wait    1 Microsec,0    ; Trec
                          M  radix dec
  03E8                    M  variable instruct_time_ns =  (( 1 Seconds ) / (Clock_Freq / 4 ))
  0000                    M  local cycles
  0001                    M  variable cycles = ((1 * D'1000') / instruct_time_ns) ;required delay in 
                          M                                                          ;100ths of instructions
                          M 
                          M  if (cycles < (0)          )
                          M         messg NOTE - negative delay time with 0          cycles (no code)
                          M                
                          M                 exitm
                          M  else
  0001                    M  variable cycles = (cycles - (0))
                          M  endif
                          M 
                          M  if (cycles == 0) 
                          M         messg "WARNING - delay time less than 1 instructions"
                          M                
                          M                 nop
                          M                 exitm
                          M  endif
                          M 
                          M  if (cycles > (255*(256*3 + 6) + 2 + 3))
                          M         messg   "ERROR : Too long a wait for the WAIT macro at present!!"
                          M         exitm
                          M  endif
                          M         
                          M ;        messg Info - calculated number of cycles = #v(cycles)
                          M 
                          M 
                          M  if (cycles > ((255*3)+5))
                          M                 
                          M                 movlw   ((cycles-5)/(256*3+6))
                          M                 call    longdelay
                          M  
                          M  ifndef INCLONGDELAY
                          M   #define INCLONGDELAY
                          M  endif
                          M 
                          M  exitm
                          M  endif
                          M 
                          M  if ((cycles > 8 ) && (cycles < (255*3 + 5)))
                          M                 
                          M                 movlw   ((cycles-5)/3)        
                          M                 call    shortdelay
                          M  
                          M  ifndef INCSHORTDELAY
                          M   #define INCSHORTDELAY
                          M  endif
MPASM 03.80 Released                              DAL_BUS.ASM   11-20-2005  18:21:08         PAGE  5


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                          M 
                          M  exitm
                          M  endif
                          M 
                          M  if (cycles < 8)
                          M  while  ( cycles > 1 )
                          M                 
                          M                 goto $+1  ;two cycle nop
                          M         
                          M cycles -=2
                          M  endw
                          M  endif
                          M  
                          M  if (cycles > 0)
0002   0000               M                nop

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成va人片在线观看| 国产精品久久久久久久久免费樱桃| 久久国产乱子精品免费女| 亚洲国产成人私人影院tom| 欧美精品电影在线播放| 成人午夜在线免费| 免费在线观看精品| 有码一区二区三区| 国产欧美精品一区二区三区四区| 亚洲一区二区三区在线播放| 欧美成va人片在线观看| 欧美日韩精品一区二区| 91网站视频在线观看| 国产毛片精品国产一区二区三区| 午夜视频久久久久久| 国产精品久久午夜夜伦鲁鲁| 欧美va亚洲va在线观看蝴蝶网| 亚洲成人精品影院| 最新国产精品久久精品| 国产日韩欧美在线一区| 久久夜色精品一区| 欧美一区二区精品| 欧美日本在线观看| 欧美午夜理伦三级在线观看| 99re在线精品| av电影在线观看一区| 国产suv精品一区二区三区| 久久狠狠亚洲综合| 久久精品国产77777蜜臀| 青青青伊人色综合久久| 五月天婷婷综合| 亚洲大片一区二区三区| 香蕉成人啪国产精品视频综合网| 欧美在线视频全部完| 在线观看日韩精品| 欧美在线视频不卡| 欧美视频三区在线播放| 欧美少妇一区二区| 欧美日韩视频不卡| 这里只有精品免费| 精品精品国产高清a毛片牛牛 | 国产成人综合视频| 激情六月婷婷综合| 国产99一区视频免费| 丁香天五香天堂综合| 成人中文字幕合集| av激情亚洲男人天堂| 一本一本大道香蕉久在线精品| 日本久久精品电影| 欧美日韩精品一区二区三区| 91精品蜜臀在线一区尤物| 日韩一级免费一区| 欧美精品一区二区三| 国产精品美女久久久久高潮| 亚洲精选一二三| 石原莉奈在线亚洲三区| 久久国产精品第一页| 粉嫩av一区二区三区粉嫩| 91天堂素人约啪| 欧美午夜电影一区| 日韩精品一区二区三区蜜臀| 久久久久国产免费免费| 亚洲欧美自拍偷拍色图| 亚洲国产精品久久人人爱| 日本三级亚洲精品| 国产91精品一区二区麻豆亚洲| 91免费看视频| 91精品欧美一区二区三区综合在| 久久亚洲一区二区三区四区| 91在线国内视频| 欧美日韩一卡二卡| 久久综合九色综合欧美98| 亚洲欧洲日韩女同| 美女网站视频久久| 成人精品鲁一区一区二区| 欧美主播一区二区三区美女| 精品国产一区二区三区忘忧草| 中文字幕日韩精品一区| 日韩经典中文字幕一区| 粉嫩aⅴ一区二区三区四区| 欧美午夜精品一区二区三区| 久久久久久久久久久久久久久99| 亚洲美女少妇撒尿| 国模少妇一区二区三区| 日本电影欧美片| 久久久久久久久久久久久久久99 | 麻豆高清免费国产一区| 不卡高清视频专区| 91精品国产欧美日韩| 国产精品美女久久久久久 | 午夜精品视频一区| 国产精品99久久久久久久vr| 色悠悠久久综合| 久久亚洲精品小早川怜子| 亚洲综合激情小说| 成人国产精品视频| 欧美一二三区在线观看| 樱花草国产18久久久久| 国产精品99久久久久久似苏梦涵| 欧美精品丝袜久久久中文字幕| 国产精品美日韩| 久久 天天综合| 欧美日韩电影在线播放| 自拍偷拍亚洲欧美日韩| 国产河南妇女毛片精品久久久 | 国产一区 二区 三区一级| 在线视频一区二区三| 国产精品电影一区二区| 久久国产生活片100| 欧美日韩第一区日日骚| 亚洲久本草在线中文字幕| 成人教育av在线| 精品88久久久久88久久久| 五月激情综合色| 在线观看视频一区| 亚洲精品乱码久久久久久久久 | 成人午夜精品一区二区三区| 欧美精品一区二区三区在线播放 | 一区二区三区**美女毛片| 成人福利电影精品一区二区在线观看| 日韩欧美卡一卡二| 日本va欧美va欧美va精品| 精品污污网站免费看| 一区二区成人在线视频| 99久久精品费精品国产一区二区| 国产视频911| 国产一区二区毛片| 久久毛片高清国产| 激情综合亚洲精品| 精品精品欲导航| 国产在线一区观看| 久久天堂av综合合色蜜桃网| 久久99热99| 26uuu精品一区二区在线观看| 另类小说一区二区三区| 日韩美女主播在线视频一区二区三区| 三级精品在线观看| 欧美日韩亚洲综合| 日韩精品视频网| 欧美一卡二卡在线| 精品一区二区三区不卡| 国产日韩av一区| 99久久夜色精品国产网站| 亚洲黄色小视频| 欧美剧在线免费观看网站| 日日嗨av一区二区三区四区| 91精品国产综合久久久久久久| 日韩va亚洲va欧美va久久| 日韩视频一区二区三区在线播放| 麻豆精品一区二区三区| 久久人人超碰精品| 99久久伊人精品| 亚洲国产中文字幕| 欧美电影免费观看高清完整版在线观看| 麻豆精品在线播放| 国产精品丝袜黑色高跟| 91色乱码一区二区三区| 三级欧美在线一区| 久久久99精品久久| 色综合久久六月婷婷中文字幕| 亚洲国产欧美一区二区三区丁香婷| 欧美日韩高清一区二区不卡| 韩国精品主播一区二区在线观看 | 成人免费毛片嘿嘿连载视频| 《视频一区视频二区| 欧美性xxxxxxxx| 精东粉嫩av免费一区二区三区| 中文字幕av在线一区二区三区| 91免费观看视频在线| 日韩av电影免费观看高清完整版| 久久先锋影音av鲁色资源| 北条麻妃国产九九精品视频| 亚洲第一狼人社区| 国产日本欧美一区二区| 91精彩视频在线| 国产一区二区不卡| 亚洲大片在线观看| 国产女同性恋一区二区| 欧美日韩亚洲丝袜制服| 高潮精品一区videoshd| 午夜视频在线观看一区二区三区| 久久久无码精品亚洲日韩按摩| 色94色欧美sute亚洲线路一久 | 亚洲欧洲综合另类| 日韩色在线观看| 白白色 亚洲乱淫| 蜜芽一区二区三区| 亚洲乱码中文字幕| 久久午夜电影网| 欧美日韩二区三区| 99久久精品国产毛片| 经典一区二区三区| 天天操天天综合网| 亚洲欧美另类小说视频| 久久色在线观看| 91精品国产综合久久久久久久久久 | 成人av先锋影音| 免费欧美在线视频| 亚洲午夜视频在线| 国产精品美女www爽爽爽|