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

          新聞中心

          MSP430中斷程序

          作者: 時間:2016-11-26 來源:網(wǎng)絡(luò) 收藏
          #include<msp430g2553.h>

          void main(void)
          {
          WDTCTL = WDTPW + WDTHOLD;// Stop watchdog timer
          P1DIR |= 0x01;// Set P1.0 to output direction
          P1IE |= 0x10;// P1.4 interrupt enabled
          P1IES |= 0x10;// P1.4 Hi/lo edge
          P1IFG &= ~0x10;// P1.4 IFG cleared

          本文引用地址:http://www.ex-cimer.com/article/201611/321638.htm

          _BIS_SR(LPM4_bits + GIE);// Enter LPM4 w/interrupt
          }

          // Port 1 interrupt service routine
          #pragma vector=PORT1_VECTOR
          __interrupt void Port_1(void)
          {
          P1OUT ^= 0x01;// P1.0 = toggle
          P1IFG &= ~0x10;// P1.4 IFG cleared
          }



          關(guān)鍵詞: MSP430中斷程

          評論


          技術(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); })();