<strong id="0toem"><dl id="0toem"></dl></strong><b id="0toem"><menuitem id="0toem"></menuitem></b>

      <b id="0toem"><menuitem id="0toem"></menuitem></b>
    1. <code id="0toem"><abbr id="0toem"></abbr></code>
      <strong id="0toem"><dl id="0toem"></dl></strong>
      <kbd id="0toem"></kbd>
              1. <code id="0toem"></code>
                <th id="0toem"><progress id="0toem"></progress></th><strong id="0toem"><form id="0toem"></form></strong>

                <th id="0toem"></th>
              2. 131 1300 0010
                其他
                當前位置: 首頁>> 元件技術(shù)>>其他>>
              3. 導(dǎo)航欄目
              4. 二極管
              5. 整流橋
              6. MOS管
              7. 其他
              8. 如何實現(xiàn)C8051單片機的精確延時
                如何實現(xiàn)C8051單片機的精確延時
              9. 如何實現(xiàn)C8051單片機的精確延時
              10.   發(fā)布日期: 2019-06-13  瀏覽次數(shù): 1,380

                在C里寫的代碼:

                delay=0x64;

                 

                while(--delay);

                編譯出來的匯編源代碼是這樣的:

                如何實現(xiàn)C8051單片機的精確延時

                ;SOURCELINE#62

                00107F64MOVR7,#064H;2B,2CLK

                0012?C0006:

                ;SOURCELINE#63

                0012DFFEDJNZR7,?C0006;2B,2/3CLK

                如果我們采用24MHZ的晶振,每個時鐘周期是41.6ns那么上面的延時語句的延時精度可以是41.6×8/3=111ns,已經(jīng)足夠精確了。

                如果我們要產(chǎn)生xns的延時,只要代入計算公式:(x-83.2)/27.7得到delay的初始值就可以了!!


              11. ·上一篇:
                ·下一篇:
              12. 其他關(guān)聯(lián)資訊
                深圳市日月辰科技有限公司
                地址:深圳市寶安區(qū)松崗鎮(zhèn)潭頭第二工業(yè)城A區(qū)27棟3樓
                電話:0755-2955 6626
                傳真:0755-2978 1585
                手機:131 1300 0010
                郵箱:[email protected]

                深圳市日月辰科技有限公司 版權(quán)所有:Copyright?2010-2023 www.xydibang.com 電話:13113000010 粵ICP備2021111333號
                <strong id="0toem"><dl id="0toem"></dl></strong><b id="0toem"><menuitem id="0toem"></menuitem></b>

                    <b id="0toem"><menuitem id="0toem"></menuitem></b>
                  1. <code id="0toem"><abbr id="0toem"></abbr></code>
                    <strong id="0toem"><dl id="0toem"></dl></strong>
                    <kbd id="0toem"></kbd>
                            1. <code id="0toem"></code>
                              <th id="0toem"><progress id="0toem"></progress></th><strong id="0toem"><form id="0toem"></form></strong>

                              <th id="0toem"></th>
                            2. 天堂一级片 | 亚洲欧美日韩久久 | 日韩一级二级三级片 | 国产V视频在线观看 | 香蕉一区二区三区四区 |