色婷婷AⅤ一区二区三区|亚洲精品第一国产综合亚AV|久久精品官方网视频|日本28视频香蕉

          新聞中心

          EEPW首頁(yè) > 模擬技術(shù) > 設(shè)計(jì)應(yīng)用 > 利用MAXQ7667確定超聲傳感器的諧振頻率和阻尼特性

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

          作者: 時(shí)間:2012-09-14 來(lái)源:網(wǎng)絡(luò) 收藏
          ; TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">  { // has not been set, then

            half_peak = STIM; // save the time it took to reach half the peak value.

            i = 101; // Half peak found so exit the loop.

            }

            while (T2CNB0_bit.TF2 == 0) {} // Wait for timer # 0.

            T2CNB0_bit.TF2 = 0; // Clear flag.

            }

            T2CNA0_bit.TR2 = 0; // Stop timer # 0.

            return half_peak;

            }

            void main()

            {

            unsigned short i = 0;

            unsigned short peak = 0;

            unsigned short first70 = 0;

            unsigned short second70 = 0;

            unsigned short center_pllf;

            unsigned short wait2measure;

            unsigned short halfpeak;

            init();

            // **********************************

            // **********************************

            // Configuration settings

            echo_receive_gain(0); // Set receiver to minimum gain (allowed values 0-31)

            Burst_Clock_Divider = 400; // for calculating the burst-frequency in PC-Application.

            burst_setup(BURST_CLK_PLL, BURST_PULSE_1, BURST_DIV_400, 0, PLL_CLOCK_16MHZ, 0);

            step_size=10; // Sets the step-size (steps go from 0 to 511).

            // END configuration settings.

            // ******************************

            // ******************************

            while(1)



          關(guān)鍵詞: MAXQ7667 超聲傳感器 諧振頻率 阻尼特性

          評(píng)論


          相關(guān)推薦

          技術(shù)專區(qū)

          關(guān)閉