新聞中心

        EEPW首頁 > 模擬技術 > 設計應用 > 數字控制正弦波發生器-Digitally Controlle

        數字控制正弦波發生器-Digitally Controlle

        作者: 時間:2011-02-25 來源:網絡 收藏
        The circuit of Figure 1 produces an accurate variable-frequency sine wave for use as a general-purpose reference signal. It includes an 8th-order elliptic, switched-capacitor lowpass filter (IC3) that is clocked with a 100kHz square wave generated by microcontroller IC2. (Any other convenient squarewave source is also acceptable.) The microcontroller is clocked by a 10MHz oscillator module. A voltage supervisor (IC1) ensures correct operation in the event of a power failure. IC3 sets the filter's cutoff frequency at 1/100 the clock frequency.




        Figure 1. By removing harmonics from a square wave, this circuit generates an accurate and adjustable sine-wave output.

        The 8th-order elliptic filter's sharp rolloff sharply reduces the harmonic amplitudes in a 1kHz square-wave input, thereby producing a near-perfect 1kHz sine wave at its output. Using divider-chain logic or a processor, you can then create a digitally adjustable sine-wave source by adjusting the clock and input frequencies while maintaining a ratio of 100:1 between them. For the microcontroller shown, software to implement this idea is available for download. (.asm, 4K)

        To prevent clipping at the positive and negative peaks, attenuate the input signal and superimpose it on a dc level of VCC/2. The result (for a 5V input) is a 2.25V peak-to-peak output.

        A similar version of this article appeared in the May 15, 2003 issue of EDN magazine.


        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 通江县| 那曲县| 泽库县| 新泰市| 蓬莱市| 蒙城县| 梓潼县| 乌恰县| 嵊泗县| 瑞丽市| 门头沟区| 泉州市| 宜城市| 郴州市| 深水埗区| 南阳市| 平阴县| 无棣县| 巴南区| 开平市| 丘北县| 榆林市| 华亭县| 凤冈县| 石阡县| 建宁县| 陵川县| 射洪县| 晋江市| 特克斯县| 民丰县| 枣阳市| 格尔木市| 广昌县| 博野县| 新昌县| 无棣县| 杂多县| 舞钢市| 汕尾市| 临夏县|