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

          新聞中心

          EEPW首頁 > EDA/PCB > 設(shè)計應(yīng)用 > 基于PLD的矩陣鍵盤狀態(tài)機控制

          基于PLD的矩陣鍵盤狀態(tài)機控制

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

          else

          key_value = key_value;

          end

          end

          //Capture the falling endge

          reg key_flag_r2,key_flag_r1;

          always@(posedge clk or negedge rst_n)

          begin

          if(!rst_n)

          begin

          key_flag_r1 = 0;

          key_flag_r2 = 0;

          end

          else

          begin

          key_flag_r1 = key_flag_r0;

          key_flag_r2 = key_flag_r1;

          end

          end

          assign key_flag = key_flag_r2 ~key_flag_r1; //when your hand is gone

          endmodule

          2. 狀態(tài)機說明

          (1)以下是該電路的state machine。

          62.jpg


          上一頁 1 2 3 4 下一頁

          關(guān)鍵詞: PLD 矩陣鍵盤

          評論


          相關(guān)推薦

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