新聞中心

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

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

        作者: 時間:2012-09-14 來源:網絡 收藏
        UND-COLOR: rgb(255,255,255); orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">  // Find the center frequency based on the average of the two frequencies that have a

          // LPFD reading that is 70% of the peak reading.

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

          {

          if (lpfdata[i] > peak*0.7)

          {

          first70 = i;

          i = number_of_steps;

          }

          }

          for (i = number_of_steps; i >0; i--)

          {

          if (lpfdata[i] > peak*0.7)

          {

          second70 = i;

          i= 1;

          }

          }

          i = (first70 + second70)/2; // i = the loop value at the center frequency.

          center_pllf = i*step_size; // Set PLLF_bit.PLLF to this value for the resonant frequency.

          //Remeasure damping using the center frequency.

          damp_time = damping_half_time(center_pllf, 75);

          // At this point there are three valuable pieces of information about the transducer.

          // Peak = the peak value from the frequency sweep.

          // center_pllf = the PLLF setting at the resonant frequency.

          // damp_time = time for the resonance to decay to 1/2 the peak value.

          center_burst_frequency = 16000000/Burst_Clock_Divider*(center_pllf+768)/1024;

          SendData();

          } // While(1)

          } // End Main


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

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 宁安市| 柏乡县| 同江市| 惠安县| 富顺县| 东辽县| 申扎县| 兴和县| 如东县| 平江县| 罗江县| 大竹县| 社会| 柳林县| 寿阳县| 青田县| 沛县| 高安市| 饶阳县| 托克逊县| 甘孜县| 新安县| 界首市| 三河市| 灵山县| 平遥县| 陇川县| 克什克腾旗| 扶余县| 自贡市| 高尔夫| 安徽省| 宝兴县| 孟村| 西青区| 贵溪市| 凭祥市| 和平县| 托克逊县| 黔南| 安多县|