中文字幕 另类精品,亚洲欧美一区二区蜜桃,日本在线精品视频免费,孩交精品乱子片免费

<sup id="3hn2b"></sup>

    1. <sub id="3hn2b"><ol id="3hn2b"></ol></sub><legend id="3hn2b"></legend>

      1. <xmp id="3hn2b"></xmp>

      2. 新聞中心

        EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計應(yīng)用 > 單片機PIC16C7X在低功耗識別抄表的應(yīng)用

        單片機PIC16C7X在低功耗識別抄表的應(yīng)用

        作者: 時間:2012-03-13 來源:網(wǎng)絡(luò) 收藏

        readbyte:
        movlw 08h
        movwf r2
        bit_loop:
        rrf r1,1
        bcf porta,1
        bsf rp0
        bcf trisa,1
        bcf rp0
        bcf porta,1 ;為iButton1990A送低電平
        nop
        nop
        nop
        bsf rp0
        bsf trisa,1 ;準(zhǔn)備讀數(shù)據(jù)位
        bcf rp0
        nop
        nop
        nop
        nop
        nop
        nop
        bcf c
        btfsc porta,1 ;取數(shù)據(jù)位放入進位位
        bsf c
        nop
        movlw d'15' ;延時等待下一次讀
        movwf r3
        decfsz r3,1
        decfsz r2,1
        nop
        goto bit_loop
        rrf r1,1
        nop
        movlw d'15' ;延時等待下一次讀
        movwf r3
        decfsz r3,1
        goto $-1
        return

        3.2 讀感應(yīng)型TK5550

        62.jpg



        評論


        相關(guān)推薦

        技術(shù)專區(qū)

        關(guān)閉