1. Technical Field
The present disclosure generally relates to waveform generators, and particularly to a square wave generator of an electronic device.
2. Description of Related Art
A square wave in electronics is a kind of non-sinusoidal waveform. An ideal square wave alternates regularly and instantaneously between two levels. Because the fast transitions of the square wave are suitable for triggering synchronous logic circuits at precisely determined intervals, it is widely used as a timing reference or a clock signal in signal processing. However, because of poor designs, traditional square wave generators often need to monitor many factors when generating square waves. Monitoring the factors will cause errors in the periodic repetition of the square waves. Thus, the periods of the square waves are not accurate.
Therefore, an improved electronic device including a square wave generator capable of generating a substantially ideal square waveform is needed in the industry to address the aforementioned deficiency.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments of the electronic device and the square wave generator. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
Referring to
The square wave generator 100 includes a sawtooth wave generator 20 and a convertor 30. The sawtooth wave generator 20 is configured for generating a sawtooth wave. The convertor 30 is configured for generating the square wave based on the sawtooth wave.
Referring to
In the embodiment, the switching unit 21 includes a trigger U1 and a field-effect transistor (FET) Q. The trigger U1 is a Schmitt trigger. The FET Q is an N-Channel depletion-mode insulated-gate transistor. The input terminal 24 of the trigger U1 is connected to the first terminal 22 of the capacitor C, and the output terminal 25 of the trigger U1 is connected to the gate of the FET Q. The source of the FET Q is grounded, and the drain of the FET Q is connected to the first terminal 22 of the capacitor C. In other embodiments, the FET Q may be a bipolar junction transistor (BJT).
The convertor 30 includes a comparator U2. The non-inverting input terminal 31 of the comparator U2 is connected to the first terminal 22 of the capacitor C. The inverting input terminal 32 of the comparator U2 is connected to a reference power supply V1. The power terminal 34 of the comparator U2 is connected to the power source V2. The output terminal 33 of the comparator U2 is connected to the processing module 200 of the electronic device 800.
The output of the comparator U2 is labeled as Vo. The reference power supply V1 supplies a reference voltage that is also labeled as V1 and lower than voltage V2. The trigger U1 is configured with a first threshold voltage V3 (see
Referring also to
To sum up, the sawtooth wave generator 20 generates a sawtooth wave, and the convertor 30 monitors the sawtooth wave to generate the square wave. Because the sawtooth wave ramps upward to form a slope and then sharply drops, only the slope of the sawtooth wave needs to be monitored, thus the periods of the square wave is more accurate.
It is to be understood, however, that even though numerous characteristics and advantages of the present disclosure have been set forth in the foregoing description, together with details of the structure and function of the disclosure, the disclosure is illustrative only, and changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
| Number | Date | Country | Kind |
|---|---|---|---|
| 2008 1 0305407 | Nov 2008 | CN | national |
| Number | Name | Date | Kind |
|---|---|---|---|
| 4071776 | Isham, II | Jan 1978 | A |
| 4131807 | Korver | Dec 1978 | A |
| 4319204 | Weldon et al. | Mar 1982 | A |
| 4347560 | Seiersen | Aug 1982 | A |
| 4600295 | Suzuki | Jul 1986 | A |
| 4746842 | Ponte et al. | May 1988 | A |
| 5045800 | Kung | Sep 1991 | A |
| Number | Date | Country | |
|---|---|---|---|
| 20100109736 A1 | May 2010 | US |