⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 汇编程序.htm

📁 遥控器程序资料很多个
💻 HTM
📖 第 1 页 / 共 5 页
字号:
            RET<BR>;=============================================<BR>SEND_OFF:<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; B0BSET&nbsp; &nbsp; &nbsp; &nbsp; 
            P1.3<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BSET&nbsp; &nbsp; &nbsp; 
            &nbsp; P2.5&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; CALL&nbsp; &nbsp; &nbsp; &nbsp; DEL500US_HIGH<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BCLR&nbsp; 
            &nbsp; &nbsp; &nbsp; P1.3<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            B0BCLR&nbsp; &nbsp; &nbsp; &nbsp; P2.5<BR>SEND_OFF_2:<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; CALL&nbsp; &nbsp; &nbsp; &nbsp; 
            DEL500US<BR>&nbsp; &nbsp; &nbsp; &nbsp; CALL&nbsp; &nbsp; &nbsp; 
            &nbsp; DEL500US<BR>&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; MOV&nbsp; &nbsp; &nbsp; &nbsp; A,#3<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; B0MOV&nbsp; &nbsp; &nbsp; &nbsp; 
            SEND_OFF_BUFF,A<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            <BR>SEND_OFF_3:<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BSET&nbsp; &nbsp; 
            &nbsp; &nbsp; P1.3<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BSET&nbsp; 
            &nbsp; &nbsp; &nbsp; P2.5<BR>&nbsp; &nbsp; &nbsp; &nbsp; CALL&nbsp; 
            &nbsp; &nbsp; &nbsp; DEL500US_HIGH<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            <BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BCLR&nbsp; &nbsp; &nbsp; &nbsp; 
            P1.3<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BCLR&nbsp; &nbsp; &nbsp; 
            &nbsp; P2.5<BR>&nbsp; &nbsp; &nbsp; &nbsp; CALL&nbsp; &nbsp; &nbsp; 
            &nbsp; DEL500US<BR>&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; DECMS&nbsp; &nbsp; &nbsp; &nbsp; 
            SEND_OFF_BUFF<BR>&nbsp; &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; &nbsp; 
            &nbsp; SEND_OFF_3<BR>&nbsp; &nbsp; &nbsp; &nbsp; RET&nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            <BR>;=============================================<BR>DEL500US:<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; MOV&nbsp; &nbsp; &nbsp; &nbsp; A,#130<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; B0MOV&nbsp; &nbsp; &nbsp; &nbsp; 
            DEL500US_BUFF,A<BR>DEL500US_1:<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            DECMS&nbsp; &nbsp; &nbsp; &nbsp; DEL500US_BUFF<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; JMP&nbsp; &nbsp; &nbsp; &nbsp; DEL500US_1<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; 
            RET<BR>;===========================================<BR>DEL500US_HIGH:<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; MOV&nbsp; &nbsp; &nbsp; &nbsp; A,#2<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; B0MOV&nbsp; &nbsp; &nbsp; &nbsp; 
            DEL500US_BUFF,A<BR>DEL500US_HIGH_1:<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            B0BSET&nbsp; &nbsp; &nbsp; &nbsp; P1.3<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; B0BSET&nbsp; &nbsp; &nbsp; &nbsp; P2.5<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; DECMS&nbsp; &nbsp; &nbsp; &nbsp; 
            DEL500US_BUFF<BR>&nbsp; &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; &nbsp; 
            &nbsp; DEL500US_HIGH_1<BR>&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; MOV&nbsp; 
            &nbsp; &nbsp; &nbsp; A,#2<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0MOV&nbsp; 
            &nbsp; &nbsp; &nbsp; DEL500US_BUFF,A<BR>DEL500US_HIGH_2:<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; B0BCLR&nbsp; &nbsp; &nbsp; &nbsp; 
            P1.3<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BCLR&nbsp; &nbsp; &nbsp; 
            &nbsp; P2.5<BR>&nbsp; &nbsp; &nbsp; &nbsp; DECMS&nbsp; &nbsp; &nbsp; 
            &nbsp; DEL500US_BUFF<BR>&nbsp; &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; 
            &nbsp; &nbsp; DEL500US_HIGH_2<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            <BR>&nbsp; &nbsp; &nbsp; &nbsp; DECMS&nbsp; &nbsp; &nbsp; &nbsp; 
            DEL500US_HIGH_BUFF<BR>&nbsp; &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; 
            &nbsp; &nbsp; DEL500US_HIGH<BR>&nbsp; &nbsp; &nbsp; &nbsp; MOV&nbsp; 
            &nbsp; &nbsp; &nbsp; A,#19<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            B0MOV&nbsp; &nbsp; &nbsp; &nbsp; DEL500US_HIGH_BUFF,A<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; RET</TD></TR></TBODY></TABLE><BR>
      <TABLE class=tableborder cellSpacing=1 cellPadding=4 width="98%" 
      align=center>
        <TBODY>
        <TR>
          <TD bgColor=#f8f8f8>
            <TABLE cellSpacing=0 cellPadding=0 width="100%">
              <TBODY>
              <TR>
                <TD class=bold>雪狼</TD>
                <TD align=right>2006-8-4 01:12</TD></TR></TBODY></TABLE></TD></TR>
        <TR>
          <TD class=smalltxt 
            bgColor=#ffffff>;此为带过零检测的程序,此为用外中断,但是渐明渐暗的过程有梯度<BR>;改进的方法为减少中断时间,把斩波时间作得很细<BR>;接收到的编码为反码<BR>;编程的思想为将接收到的编码存起来,然后取反,再将本机的地址码读入和接收到的<BR>;编码相比较,如果结果相同就开始工作,否则返回(即地址码相同才开始接收)。<BR>;========================================================<BR>KEY_FLAG&nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; 
            &nbsp; &nbsp; 00H<BR>ON_OFF_FLAG&nbsp; &nbsp; &nbsp; &nbsp; 
            EQU&nbsp; &nbsp; &nbsp; &nbsp; 01H<BR>KEY_BUFF&nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 
            02H<BR>NUM_BUFF_05MS&nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; 
            &nbsp; &nbsp; 03H<BR>NUM_BUFF_1MS&nbsp; &nbsp; &nbsp; &nbsp; 
            EQU&nbsp; &nbsp; &nbsp; &nbsp; 04H<BR>NUM_FLAG&nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 
            05H&nbsp; &nbsp; &nbsp; &nbsp; ;0:INC 1:DEC 2:ON 
            3:OFF<BR>NUM_BUFF_SEND&nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; 
            &nbsp; &nbsp; 06H<BR>ADDRESS_BUFF_05MS&nbsp; &nbsp; &nbsp; &nbsp; 
            EQU&nbsp; &nbsp; &nbsp; &nbsp; 07H<BR>ADDRESS_BUFF_1MS&nbsp; &nbsp; 
            &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 
            08H<BR>P2_BUFF_SEND&nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; 
            &nbsp; &nbsp; 09H<BR>REC_OFF_FLAG&nbsp; &nbsp; &nbsp; &nbsp; 
            EQU&nbsp; &nbsp; &nbsp; &nbsp; 0AH<BR>P2_BUFF_REC&nbsp; &nbsp; 
            &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 0BH<BR>CHECK_FLAG&nbsp; 
            &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 
            0CH<BR>DEL5MS_BUFF&nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; 
            &nbsp; &nbsp; 0DH<BR>DEL5MS_BUFF_1&nbsp; &nbsp; &nbsp; &nbsp; 
            EQU&nbsp; &nbsp; &nbsp; &nbsp; 0EH<BR>DEL10MS_BUFF&nbsp; &nbsp; 
            &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 
            0FH<BR>DEL10MS_BUFF_1&nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; 
            &nbsp; &nbsp; 10H<BR>ACC_BUFF&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 
            11H<BR>PFLAG_BUFF&nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; 
            &nbsp; 12H<BR>FIVE&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 13H<BR>DEL1MS_BUFF&nbsp; 
            &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 14H<BR>TEN&nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; 
            &nbsp; &nbsp; 15H<BR>LOOP&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 16H<BR>LOOP_BUFF&nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; &nbsp; 
            &nbsp; &nbsp; 17H<BR>CHUFA_FLAG&nbsp; &nbsp; &nbsp; &nbsp; EQU&nbsp; 
            &nbsp; &nbsp; &nbsp; 18H<BR>INC_DEC_BUFF&nbsp; &nbsp; &nbsp; &nbsp; 
            EQU&nbsp; &nbsp; &nbsp; &nbsp; 19H<BR>INC_DEC_BUFF_1&nbsp; &nbsp; 
            &nbsp; &nbsp; EQU&nbsp; &nbsp; &nbsp; &nbsp; 
            1AH<BR>;=========================================<BR>CHIP&nbsp; 
            &nbsp; &nbsp; &nbsp; SN8P2501A<BR>//{{SONIX_CODE_OPTION<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; .Code_Option&nbsp; &nbsp; &nbsp; &nbsp; 
            Noise_Filter&nbsp; &nbsp; &nbsp; &nbsp; Enable<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; .Code_Option&nbsp; &nbsp; &nbsp; &nbsp; 
            Watch_Dog&nbsp; &nbsp; &nbsp; &nbsp; Always_ON&nbsp; &nbsp; &nbsp; 
            &nbsp; ; Watchdog still enable even in Green and Sleep 
            mode<BR>&nbsp; &nbsp; &nbsp; &nbsp; .Code_Option&nbsp; &nbsp; &nbsp; 
            &nbsp; 16M_IHRC&nbsp; &nbsp; &nbsp; &nbsp; #6&nbsp; 
            &nbsp;&nbsp;&nbsp;; 16M_IHRC = Normal<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            .Code_Option&nbsp; &nbsp; &nbsp; &nbsp; Reset_Pin&nbsp; &nbsp; 
            &nbsp; &nbsp; P11<BR>&nbsp; &nbsp; &nbsp; &nbsp; .Code_Option&nbsp; 
            &nbsp; &nbsp; &nbsp; High_Clk&nbsp; &nbsp; &nbsp; &nbsp; 
            IHRC_16M&nbsp; &nbsp; &nbsp; &nbsp; ; Internal 16M RC 
            Oscillator<BR>&nbsp; &nbsp; &nbsp; &nbsp; .Code_Option&nbsp; &nbsp; 
            &nbsp; &nbsp; Fcpu&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; #5&nbsp; &nbsp;&nbsp;&nbsp;; Fcpu = High_Clk/16<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; .Code_Option&nbsp; &nbsp; &nbsp; &nbsp; 
            Security&nbsp; &nbsp; &nbsp; &nbsp; 
            Enable<BR>//}}SONIX_CODE_OPTION<BR>;=================================================<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; ORG&nbsp; &nbsp; &nbsp; &nbsp; 0X00<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; &nbsp; &nbsp; START<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; ORG&nbsp; &nbsp; &nbsp; &nbsp; 0X08<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; &nbsp; &nbsp; 
            INTERRUPT<BR>;================================================<BR>INTERRUPT:&nbsp; 
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; ;1MS中断一次<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0XCH&nbsp; 
            &nbsp; &nbsp; &nbsp; A,ACC_BUFF<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            B0MOV&nbsp; &nbsp; &nbsp; &nbsp; A,PFLAG<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; B0MOV&nbsp; &nbsp; &nbsp; &nbsp; PFLAG_BUFF,A<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BTS1&nbsp; 
            &nbsp; &nbsp; &nbsp; FT0IRQ&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            &nbsp; &nbsp; ;T0<BR>&nbsp; &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; 
            &nbsp; &nbsp; INT_INTERRUPT<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            B0BCLR&nbsp; &nbsp; &nbsp; &nbsp; FT0IRQ<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; <BR>LED_ON_OFF:<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BTS0&nbsp; 
            &nbsp; &nbsp; &nbsp; ON_OFF_FLAG.0<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            JMP&nbsp; &nbsp; &nbsp; &nbsp; HIGH_LOW_VERT<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BCLR&nbsp; &nbsp; &nbsp; 
            &nbsp; P1.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
            ;LED OFF<BR>&nbsp; &nbsp; &nbsp; &nbsp; MOV&nbsp; &nbsp; &nbsp; 
            &nbsp; A,#0<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0MOV&nbsp; &nbsp; &nbsp; 
            &nbsp; NUM_FLAG,A<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0MOV&nbsp; &nbsp; 
            &nbsp; &nbsp; ON_OFF_FLAG,A<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            B0MOV&nbsp; &nbsp; &nbsp; &nbsp; CHUFA_FLAG,A<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; MOV&nbsp; &nbsp; 
            &nbsp; &nbsp; A,#11<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0MOV&nbsp; 
            &nbsp; &nbsp; &nbsp; LOOP,A<BR>&nbsp; &nbsp; &nbsp; &nbsp; 
            B0MOV&nbsp; &nbsp; &nbsp; &nbsp; LOOP_BUFF,A<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; MOV&nbsp; &nbsp; &nbsp; &nbsp; A,#25<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; B0MOV&nbsp; &nbsp; &nbsp; &nbsp; INC_DEC_BUFF,A<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; B0MOV&nbsp; &nbsp; &nbsp; &nbsp; 
            INC_DEC_BUFF_1,A<BR>&nbsp; &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; 
            &nbsp; &nbsp; 
            TTT<BR>;=====================================================<BR>HIGH_LOW_VERT:<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; B0BTS0&nbsp; &nbsp; &nbsp; &nbsp; 
            CHUFA_FLAG.0<BR>&nbsp; &nbsp; &nbsp; &nbsp; JMP&nbsp; &nbsp; &nbsp; 
            &nbsp; TTT<BR>&nbsp; &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; DECMS&nbsp; &nbsp; &nbsp; &nbsp; LOOP<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; JMP&nbsp; &nbsp; &nbsp; &nbsp; T0_INTERRUPT<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; B0MOV&nbsp; &nbsp; &nbsp; &nbsp; A,LOOP_BUFF<BR>&nbsp; 
            &nbsp; &nbsp; &nbsp; B0MOV&nbsp; &nbsp; &nbsp; &nbsp; 
            LOOP,A<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BSET&nbsp; &nbsp; &nbsp; 
            &nbsp; P1.0<BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BSET&nbsp; &nbsp; 
            &nbsp; &nbsp; CHUFA_FLAG.0<BR>&nbsp; &nbsp; &nbsp; &nbsp; JMP&nbsp; 
            &nbsp; &nbsp; &nbsp; T0_INTERRUPT<BR>TTT:<BR>&nbsp; &nbsp; &nbsp; 
            &nbsp; B0BCLR&nbsp; &nbsp; &nbsp; &nbsp; P1.0<BR>&nbsp; &nbsp; 
            &nbsp; &nbsp; B0BCLR&nbsp; &nbsp; &nbsp; &nbsp; CHUFA_FLAG.0&nbsp; 
            &nbsp; &nbsp; &nbsp; <BR>&nbsp; &nbsp; &nbsp; &nbsp; B0BCLR&nbsp; 
            &nbsp; &nbsp; &nbsp; FT0ENB<BR>&nbsp; &nbsp; &nbsp; &nbsp; 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -