<meter id="pryje"><nav id="pryje"><delect id="pryje"></delect></nav></meter>
          <label id="pryje"></label>

          新聞中心

          EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > AVR128的程序——外部中斷

          AVR128的程序——外部中斷

          作者: 時間:2016-11-22 來源:網(wǎng)絡(luò) 收藏
          #include
          #include
          #define uchar unsigned char
          #define uint unsigned int
          void main(void)
          {
          uchar i,temp;
          DDRA = 0XFF;
          PORTA = 0XFF;
          DDRC = 0XFF;
          PORTC = 0XFF;
          DDRF |= 0X0E;
          PORTF |= 0X0E;
          PORTF &= 0xF8;
          DDRB |= 0X10;
          PORTB |= 0X10;
          DDRD=0XFC;
          PORTD=0XFF;
          EIMSK|=(1<
          SEI();
          while(1)
          {
          PORTA=0x00;
          }
          }
          #pragma interrupt_handler int0_INT:2
          void int0_INT(void)
          {
          PORTA=0x00;
          }
          #pragma interrupt_handler int1_INT:3
          void int1_INT(void)
          {
          PORTA=0xFF;
          }


          關(guān)鍵詞: AVR128外部中

          評論


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

          關(guān)閉
          看屁屁www成人影院,亚洲人妻成人图片,亚洲精品成人午夜在线,日韩在线 欧美成人 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();