This application discloses a
sine wave generation circuit and an electronic device. The
sine wave generation circuit includes a first
signal conversion module, a
Class D amplifier, a second
signal conversion module, and a
voltage control module. The first
signal conversion module converts a
square wave signal into a first
sine wave signal with adjustable amplitude. The
Class D amplifier amplifies and modulates the power of the first sine wave signal, and then outputs a high-frequency carrier pulse-width modulated signal. The second signal conversion module demodulates and boosts the high-frequency carrier pulse-width modulated signal to output a second sine wave signal. The
voltage control module outputs an adjustment signal to the first signal conversion module to adjust the amplitude of the first sine wave signal based on the
control signal and the second sine wave signal until the voltages of the
control signal and the second sine wave signal satisfy a preset relationship. This method allows for the output of a corresponding sine wave signal according to
user needs, and is highly reliable due to its high conversion efficiency.