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

          新聞中心

          電容觸摸傳感的理論框架

          ——
          作者:Thomas Perme 微芯科技公司 應(yīng)用工程師 時(shí)間:2009-07-20 來源:電子產(chǎn)品世界 收藏

          最后一個(gè)復(fù)雜解碼方案也是百分比方案。百分比計(jì)算會占用8位單片機(jī)上可用存儲器總空間中大量的程序和RAM存儲空間,占用。在可能的情況下,最好降低這種存儲器消耗。如果使用較大的數(shù)值,并可以承受一定的分辨率損失,則可以使用一種較簡單的百分比方法。

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

          通過使用更多的移位來代替除法(類似于求均值方案),可以用如下方式確定平均值的百分比門限值:

          threshold = average >> 3;  //
          // 門限值現(xiàn)在為1/8,即12.5%

          if (reading < average – threshold)
             {...}
          以下列出了一些有用的百分比。
          threshold = reading >> 1;  // 1/2   = 0.500
          threshold = reading >> 2;  // 1/4   = 0.250
          threshold = reading >> 3;  // 1/8   = 0.125
          threshold = reading >> 4;  // 1/16  = 0.063
          threshold = reading >> 5;  // 1/32  = 0.031
          threshold = reading >> 6;  // 1/64  = 0.016
          threshold = reading >> 7;  // 1/128 = 0.008

          對于進(jìn)行移位的每個(gè)位,門限值會損失一定的舍入分辨率。但是,使用較大的16位數(shù)值時(shí),對于1/16的百分比(即6.25%),損失4個(gè)最低位是可以接受的?,F(xiàn)在,對于簡單百分比計(jì)算,可以省去前面使用的unsigned long percent變量,以及執(zhí)行除法所需的額外計(jì)算量。這是另一種并不僅限用于的技術(shù),但它對于觸摸傳感的實(shí)現(xiàn)非常有用。

          結(jié)論

          有許多方法可以實(shí)現(xiàn)電容觸摸系統(tǒng),市場上針對此應(yīng)用推出的各種嵌入式產(chǎn)品充分證明了這一點(diǎn)。關(guān)于這些解決方案有趣的一點(diǎn)是它們基于相同的物理原理,具有共同的基礎(chǔ)。其中一些解決方案采用了不同的布線方式(將地與組合);許多解決方案涉及到使用專有的材料。但是,背后的概念是相當(dāng)簡單的——關(guān)鍵在于在實(shí)現(xiàn)設(shè)計(jì)時(shí)需要理解應(yīng)用背后隱含的物理原理?;谶@種理解,結(jié)合對于所用硬件和軟件方案的良好理解,就可以簡便地實(shí)現(xiàn)系統(tǒng)。
          參考文獻(xiàn)

          Perme T. Introduction to Capacitive Sensing. © 2007, Microchip Technology Inc. 2007. 
          Perme T. Layout and Physical Design Guidelines for Capacitive Sensing.  © 2007, Microchip Technology Inc.  2007. 
          Perme T.  Software Handling for Capacitive Sensing.  © 2007, Microchip Technology Inc. 2007. 
          Curtis  K, Perme T.  Capacitive Multibutton Configurations. © 2007, Microchip Technology Inc.  2007. 
          Flipse M.  Capacitive Sensing with PIC10F. © 2008, Microchip Technology Inc.  2008.


          上一頁 1 2 3 4 5 6 7 8 下一頁

          評論


          相關(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); })();