出典(authority):フリー百科事典『ウィキペディア(Wikipedia)』「2017/09/07 20:47:20」(JST)
This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. (September 2009) (Learn how and when to remove this template message) |
A square wave is a non-sinusoidal periodic waveform (which can be represented as an infinite summation of sinusoidal waves), in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same duration at minimum and maximum. The transition between minimum to maximum is instantaneous for an ideal square wave; this is not realizable in physical systems. Square waves are often encountered in electronics and signal processing. Its stochastic counterpart is a two-state trajectory. A similar but not necessarily symmetric wave, with arbitrary durations at minimum and maximum, is called a pulse wave (of which the square wave is a special case).
The ratio of the high period to the total period of any rectangular wave is called the duty cycle. A true square wave has a 50% duty cycle (equal high and low periods). The average level of a rectangular wave is also given by the duty cycle, therefore by varying the on and off periods and then averaging these said periods, it is possible to represent any value between the two limiting levels. This is the basis of pulse width modulation.
Square waves are universally encountered in digital switching circuits and are naturally generated by binary (two-level) logic devices. They are used as timing references or "clock signals", because their fast transitions are suitable for triggering synchronous logic circuits at precisely determined intervals. However, as the frequency-domain graph shows, square waves contain a wide range of harmonics; these can generate electromagnetic radiation or pulses of current that interfere with other nearby circuits, causing noise or errors. To avoid this problem in very sensitive circuits such as precision analog-to-digital converters, sine waves are used instead of square waves as timing references.
In musical terms, they are often described as sounding hollow, and are therefore used as the basis for wind instrument sounds created using subtractive synthesis. Additionally, the distortion effect used on electric guitars clips the outermost regions of the waveform, causing it to increasingly resemble a square wave as more distortion is applied.
Simple two-level Rademacher functions are square waves.
The square wave in mathematics has many definitions, which are equivalent except at the discontinuities:
It can be defined as simply the sign function of a periodic function, an example being a sinusoid:
which will be 1 when the sinusoid is positive, −1 when the sinusoid is negative, and 0 at the discontinuities. Any periodic function can substitute the sinusoid in this definition.
A square wave can also be defined with respect to the Heaviside step function u(t) or the rectangular function ⊓(t):
T is 2 for a 50% duty cycle. It can also be defined in a piecewise way:
when
In terms of sine and cosecant with period p and amplitude a:
A square wave can also be generated using the floor function in the following two ways:
Directly:
And indirectly:
where m is the magnitude and ν is the frequency.
Note: y = atan sin x + acot sin x
A square wave can be expressed as the limit case of an infinite series of sinusoidal waves, with fast convergence.
Using Fourier expansion with cycle frequency f over time t, we can represent an ideal square wave with an amplitude of 1 as an infinite series of the form
|
Additive square demo
220 Hz square wave created by harmonics added every second over sine wave
|
Problems playing this file? See media help. |
The ideal square wave contains only components of odd-integer harmonic frequencies (of the form 2π(2k − 1)f). Sawtooth waves and real-world signals contain all integer harmonics.
A curiosity of the convergence of the Fourier series representation of the square wave is the Gibbs phenomenon. Ringing artifacts in non-ideal square waves can be shown to be related to this phenomenon. The Gibbs phenomenon can be prevented by the use of σ-approximation, which uses the Lanczos sigma factors to help the sequence converge more smoothly.
An ideal mathematical square wave changes between the high and the low state instantaneously, and without under- or over-shooting. This is impossible to achieve in physical systems, as it would require infinite bandwidth.
Square waves in physical systems have only finite bandwidth and often exhibit ringing effects similar to those of the Gibbs phenomenon or ripple effects similar to those of the σ-approximation.
For a reasonable approximation to the square-wave shape, at least the fundamental and third harmonic need to be present, with the fifth harmonic being desirable. These bandwidth requirements are important in digital electronics, where finite-bandwidth analog approximations to square-wave-like waveforms are used. (The ringing transients are an important electronic consideration here, as they may go beyond the electrical rating limits of a circuit or cause a badly positioned threshold to be crossed multiple times.)
|
Square wave sound sample
5 seconds of square wave at 1 kHz
|
Problems playing this file? See media help. |
As already mentioned, an ideal square wave has instantaneous transitions between the high and low levels. In practice, this is never achieved because of physical limitations of the system that generates the waveform. The times taken for the signal to rise from the low level to the high level and back again are called the rise time and the fall time respectively.
If the system is overdamped, then the waveform may never actually reach the theoretical high and low levels, and if the system is underdamped, it will oscillate about the high and low levels before settling down. In these cases, the rise and fall times are measured between specified intermediate levels, such as 5% and 95%, or 10% and 90%. The bandwidth of a system is related to the transition times of the waveform; there are formulas allowing one to be determined approximately from the other.
Waveforms
|
|
---|---|
|
,&T_{1}<|t|\leq {1 \over 2}T\end{cases}}}</annotation>
</semantics>
</math>
when
In terms of sine and cosecant with period p and amplitude a:
A square wave can also be generated using the floor function in the following two ways:
Directly:
And indirectly:
where m is the magnitude and ν is the frequency.
Note: y = atan sin x + acot sin x
A square wave can be expressed as the limit case of an infinite series of sinusoidal waves, with fast convergence.
Using Fourier expansion with cycle frequency f over time t, we can represent an ideal square wave with an amplitude of 1 as an infinite series of the form
|
Additive square demo
<audio id="mwe_player_0" controls="" preload="none" style="width:220px" class="kskin" data-durationhint="22.698666666667" data-startoffset="0" data-mwtitle="Additive_220Hz_Square_Wave.wav" data-mwprovider="wikimediacommons">
<source src="//upload.wikimedia.org/wikipedia/commons/transcoded/4/4b/Additive_220Hz_Square_Wave.wav/Additive_220Hz_Square_Wave.wav.ogg" type="audio/ogg; codecs="vorbis"" data-title="Ogg Vorbis" data-shorttitle="Ogg Vorbis" data-transcodekey="ogg" data-width="0" data-height="0" data-bandwidth="61264" /> <source src="//upload.wikimedia.org/wikipedia/commons/4/4b/Additive_220Hz_Square_Wave.wav" type="audio/wav" data-title="Original WAV file (1.54 Mbps)" data-shorttitle="WAV source" data-width="0" data-height="0" data-bandwidth="1536000" /></audio>220 Hz square wave created by harmonics added every second over sine wave
|
Problems playing this file? See media help. |
The ideal square wave contains only components of odd-integer harmonic frequencies (of the form 2π(2k − 1)f). Sawtooth waves and real-world signals contain all integer harmonics.
A curiosity of the convergence of the Fourier series representation of the square wave is the Gibbs phenomenon. Ringing artifacts in non-ideal square waves can be shown to be related to this phenomenon. The Gibbs phenomenon can be prevented by the use of σ-approximation, which uses the Lanczos sigma factors to help the sequence converge more smoothly.
An ideal mathematical square wave changes between the high and the low state instantaneously, and without under- or over-shooting. This is impossible to achieve in physical systems, as it would require infinite bandwidth.
Square waves in physical systems have only finite bandwidth and often exhibit ringing effects similar to those of the Gibbs phenomenon or ripple effects similar to those of the σ-approximation.
For a reasonable approximation to the square-wave shape, at least the fundamental and third harmonic need to be present, with the fifth harmonic being desirable. These bandwidth requirements are important in digital electronics, where finite-bandwidth analog approximations to square-wave-like waveforms are used. (The ringing transients are an important electronic consideration here, as they may go beyond the electrical rating limits of a circuit or cause a badly positioned threshold to be crossed multiple times.)
|
Square wave sound sample
<audio id="mwe_player_1" controls="" preload="none" style="width:220px" class="kskin" data-durationhint="5" data-startoffset="0" data-mwtitle="Square_wave_1000.ogg" data-mwprovider="wikimediacommons">
<source src="//upload.wikimedia.org/wikipedia/commons/9/92/Square_wave_1000.ogg" type="audio/ogg; codecs="vorbis"" data-title="Original Ogg file (108 kbps)" data-shorttitle="Ogg source" data-width="0" data-height="0" data-bandwidth="107944" /></audio>
5 seconds of square wave at 1 kHz
|
Problems playing this file? See media help. |
As already mentioned, an ideal square wave has instantaneous transitions between the high and low levels. In practice, this is never achieved because of physical limitations of the system that generates the waveform. The times taken for the signal to rise from the low level to the high level and back again are called the rise time and the fall time respectively.
If the system is overdamped, then the waveform may never actually reach the theoretical high and low levels, and if the system is underdamped, it will oscillate about the high and low levels before settling down. In these cases, the rise and fall times are measured between specified intermediate levels, such as 5% and 95%, or 10% and 90%. The bandwidth of a system is related to the transition times of the waveform; there are formulas allowing one to be determined approximately from the other.
Waveforms
|
|
---|---|
|
</raw> </toggledisplay>
リンク元 | 「方形波」「square pulse」 |
関連記事 | 「square」「wave」 |
.