• <li id="00i08"><input id="00i08"></input></li>
  • <sup id="00i08"><tbody id="00i08"></tbody></sup>
    <abbr id="00i08"></abbr>
  • 新聞中心

    EEPW首頁 > 模擬技術 > 設計應用 > 利用MAXQ7667確定超聲傳感器的諧振頻率和阻尼特性

    利用MAXQ7667確定超聲傳感器的諧振頻率和阻尼特性

    作者: 時間:2012-09-14 來源:網絡 收藏
    /20120914023949976.gif" width=650>

      詳細圖片(PDF, 325kB)

      圖5. 輸出曲線圖示例

      附錄A. 軟件例程

      傳感器校準文件

      // This routine measures the transducer damping at the specified frequency (PLLfreq).

      // The system timer is used to measure when the LPF output (LPFD) has dropped to 1/2 the peak value.

      // This is the settling time that will be used later when doing the frequency sweep.

      unsigned damping_half_time (unsigned PLLfreq, unsigned pulse_width)

      {

      unsigned short i;

      unsigned short peak = 0;

      unsigned short half_peak = 0;

      unsigned short temp = 0;

      SCNT_bit.STIME = 0; // Make sure system timer is off.

      STIM = 0; // Clear the system timer.

      SCNT_bit.STDIV = 4; // Set system timer prescale divider to 16 (1μs per cycle).

      PLLF_bit.PLLF = PLLfreq; // Set the PLL frequency.

      BPH = pulse_width; // Pulse width = BPH/(receive frequency * 400) when BDIV = 0xC.

      usWaitTimer2(10000); // Let the PLL settle for 10ms.

      SCNT_bit.STIME = 1; // Start the system timer.

      BPH_bit .BSTT = 1; // Send a burst.

      usWaitTimer2(50); // Wait for LPF to partially settle.

      RunTimer0_us(20); // Start timer # 1 with a reload time of every 20μs.

      for (i = 0; i 200; i++)

      {

      temp = LPFD; // Read the output of the lowpass filter.

      if (temp > 0x2000 temp > peak) {peak = temp;} // Save the peak value if it is greater than 2000.

      if (temp peak/2 half_peak == 0) // If LPFD is less than half the peak value and the half peak time



    關鍵詞: MAXQ7667 超聲傳感器 諧振頻率 阻尼特性

    評論


    相關推薦

    技術專區

    關閉
    主站蜘蛛池模板: 宁强县| 北票市| 武汉市| 石家庄市| 吴忠市| 陈巴尔虎旗| 富锦市| 双流县| 曲水县| 咸阳市| 辰溪县| 梅州市| 四子王旗| 湘阴县| 黄浦区| 诸暨市| 德江县| 全椒县| 鄱阳县| 渝中区| 青川县| 建平县| 拜城县| 诸城市| 许昌县| 泰顺县| 长泰县| 海盐县| 宁国市| 宝坻区| 永胜县| 班玛县| 綦江县| 六安市| 和平区| 广州市| 大宁县| 平南县| 康保县| 阳朔县| 太白县|