Square wave

Square wave
Sine, square, triangle, and sawtooth waveforms
Sine, square, triangle, and sawtooth waveforms
General information
General definition
Fields of applicationElectronics, synthesizers
Domain, codomain and image
Domain
Codomain
Basic features
ParityOdd
Period1
AntiderivativeTriangle wave
Fourier series

A square wave is a non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same duration at minimum and maximum. In an ideal square wave, the transitions between minimum and maximum are instantaneous.

The square wave is a special case of a pulse wave which allows arbitrary durations at minimum and maximum amplitudes. The ratio of the high period to the total period of a pulse wave is called the duty cycle. A true square wave has a 50% duty cycle (equal high and low periods).

Square waves are often encountered in electronics and signal processing, particularly digital electronics and digital signal processing. Its stochastic counterpart is a two-state trajectory.

Origin and uses

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. They also make up the "beeping" alerts used in many household, commercial, and industrial contexts. 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.

Definitions

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 sinusoid: which will be 1 when the sinusoid is positive, −1 when the sinusoid is negative, and 0 at the discontinuities. Here, T is the period of the square wave and f is its frequency, which are related by the equation f = 1/T.

A square wave can also be defined with respect to the Heaviside step function u(t) or the rectangular function Π(t):

A square wave can also be generated using the floor function directly: and indirectly:

Using the fourier series (below) one can show that the floor function may be written in trigonometric form[1]

Fourier analysis

The six arrows represent the first six terms of the Fourier series of a square wave. The two circles at the bottom represent the exact square wave (blue) and its Fourier-series approximation (purple).
(Odd) harmonics of a 1000 Hz square wave
Graph showing the first 3 terms of the Fourier series of a square wave

Using Fourier expansion with cycle frequency f over time t, an ideal square wave with an amplitude of 1 can be represented as an infinite sum of sinusoidal waves:

The ideal square wave contains only components of odd-integer harmonic frequencies (of the form 2π(2k − 1)f).

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.

Animation of the additive synthesis of a square wave with an increasing number of harmonics

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.)

Characteristics of imperfect square waves

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.

See also

References

  1. ^ "Partial sum formula". www.wolframalpha.com. Archived from the original on 22 January 2023. Retrieved 9 July 2023.

Read other articles:

2018 video gameSemblanceDeveloper(s)NyamakopPublisher(s)Good Shepherd EntertainmentEngineUnityPlatform(s)macOS, Windows, Nintendo SwitchReleaseJuly 24, 2018Genre(s)Puzzle-platformMode(s)Single-player Semblance is a puzzle-platform game developed by Nyamakop, a South African game development studio, and published by Good Shepherd Entertainment.[1] It was released on July 24, 2018 for Microsoft Windows, OS X and Nintendo Switch.[2][3][4] Gameplay Semblance is a 2...

 

  Eucalipto de Gunn TaxonomíaReino: PlantaeDivisión: MagnoliophytaClase: MagnoliopsidaSubclase: RosidaeOrden: MyrtalesFamilia: MyrtaceaeSubfamilia: MyrtoideaeTribu: EucalypteaeGénero: EucalyptusEspecie: Eucalyptus gunniiHook.f.Distribución DistributionSubespecies E. gunnii subsp. archeri E. gunnii subsp. divaricata E. gunnii subsp. gunnii [editar datos en Wikidata] Eucalyptus gunnii, el Eucalipto de Gunn,[1]​ Gunnii o eucalipto sidra, es una especie de Eucalyptus end...

 

Proposed referendum on the Brexit withdrawal agreement Part of a series of articles onBrexit Withdrawal of the United Kingdom from the European Union Glossary of terms Background European Communities Act 1975 EC membership referendum UK rebate Bruges speech No. No. No. Maastricht Rebels Black Wednesday European Union (Amendment) Act 2008 European Union Act 2011 UK opt-outs from EU legislation Euroscepticism in the UK UK opinion polling on EU membership Campaigns for a referendum People's Pled...

اضغط هنا للاطلاع على كيفية قراءة التصنيف أركوصورات الشكلالعصر: اللوبانجي–الحاضر, 260–0 مليون سنة قك ك أ س د ف بر ث ج ط ب ن إعادة تشكيل لتمساح أولي فرغوسي قاطور أمريكيقاطور أمريكي التصنيف العلمي النطاق: حقيقيات النوى المملكة: حيوانات الشعبة: الحبليات غير مصنف: الفقاريات (غي...

 

جدل مدفار (محلة) تقسيم إداري البلد  اليمن المحافظة محافظة إب المديرية مديرية إب العزلة عزلة المقاطن القرية قرية الجبجب السكان التعداد السكاني 2004 السكان 136   • الذكور 73   • الإناث 63   • عدد الأسر 18   • عدد المساكن 18 معلومات أخرى التوقيت توقيت اليمن (+3 غرينيتش) تعدي...

 

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أغسطس 2020) تشين لين 陳璘 معلومات شخصية الميلاد 1543مينغ الصين تاريخ الوفاة 1607 الجنسية صيني الخدمة العسكرية الرتبة أدميرال المعارك والحروب معركة نوريانغ تعديل مصدري - تعد...

Ministerio de Desarrollo Agrario y Riego LocalizaciónPaís PerúInformación generalSigla MIDAGRIJurisdicción PerúTipo MinisterioSede Av. La Universidad Nº200 - Distrito de La Molina - Lima, Av. Alameda del Corregidor Nº155 - Distrito de La Molina - LimaOrganizaciónMinistro Jennifer Contreras ÁlvarezComposición Viceministerio de Desarrollo e Infraestructura Agraria y Riego del Perú y Viceministerio de Políticas Agrarias del PerúDepende de Poder Ejecutivo(Consejo de Ministros)E...

 

2014 United Kingdom local elections ← 2013 22 May 2014 2015 → 161 councils in England 5 directly-elected mayors All 11 councils in Northern Ireland   First party Second party Third party   Leader Ed Miliband David Cameron Nick Clegg Party Labour Conservative Liberal Democrats Leader since 25 September 2010 6 December 2005 18 December 2007 Popular vote 31%[a] 29% 13% Swing 2%[b] 4% 1% Councils 82 41 6 Councils +/– 6 11 2 Councill...

 

حكومة عبد الله اليافي الثانيةمعلومات عامةالبلد  لبنانقائد الدولة بشارة الخوريرئيس الحكومة عبد الله اليافيالتكوين 7 يونيو 1951النهاية 11 فبراير 1952المدة 310 يومحكومة حسين العويني الأولىحكومة سامي الصلح الثالثةتعديل - تعديل مصدري جزء من سلسلة مقالات سياسة لبنانلبنان ا...

Italian auto racing team This article uses bare URLs, which are uninformative and vulnerable to link rot. Please consider converting them to full citations to ensure the article remains verifiable and maintains a consistent citation style. Several templates and tools are available to assist in formatting, such as reFill (documentation) and Citation bot (documentation). (September 2022) (Learn how and when to remove this template message) This article needs to be updated. Please help update th...

 

Dell logo This list of Dell ownership activities delineates mergers, acquisitions, divestitures, and stakes of Dell. Acquisitions and mergers Date Company Industry Country Transaction value References September 8, 1999 ConvergeNet Technologies Data storage  United States $340,688,000 [1] September 30, 1999 NetSage Software  United States $10,000,000 [2] May 31, 2002 Plural [3] IT services provider  United States — [4] May 8, 2006 Alienware Comp...

 

مقاطعة كونيكو     الإحداثيات 31°25′32″N 86°59′38″W / 31.425555555556°N 86.993888888889°W / 31.425555555556; -86.993888888889  [1] تاريخ التأسيس 13 فبراير 1818  تقسيم إداري  البلد الولايات المتحدة[2]  التقسيم الأعلى ألاباما  العاصمة إيفرغرين[3]  خصائص جغرافية  المساحة ...

Запрос «Rostrum» перенаправляется сюда; см. также другие значения. Разнообразие форм клюва (морфологические адаптации), которые обеспечивают у одних птиц — хватание добычи, иногда её расчленение, у других — долбление, рытьё и т. д., а также сложные манипуляции Кл...

 

Software licensing for multiple users or computers This article may lack focus or may be about more than one topic. In particular, it appears that the vast majority of this article is about volume licensing as it pertains to Microsoft products, and specifically Microsoft Windows. Volume licensing as a general concept may still meet WP:NOTABILITY guidelines. Please help improve this article, possibly by splitting the article and/or by introducing a disambiguation page, or discuss this issue on...

 

У этого термина существуют и другие значения, см. танковая армия. 2-я танковая армия 2. Panzerarmee Внешнее обозначение 2-й танковой армии Годы существования 1940—1945 Страна  Германия Входит в сухопутные войска Тип танковая армия Функция танковые войска Прозвища Танковая групп...

Season of television series Season of television series CharmedSeason 4DVD coverStarring Alyssa Milano Rose McGowan Holly Marie Combs Brian Krause Julian McMahon Dorian Gregory Country of originUnited StatesNo. of episodes22ReleaseOriginal networkThe WBOriginal releaseOctober 4, 2001 (2001-10-04) –May 16, 2002 (2002-05-16)Season chronology← PreviousSeason 3Next →Season 5List of episodes The fourth season of Charmed, an American supernatural drama television seri...

 

Disambiguazione – Jormungand rimanda qui. Se stai cercando l'omonima serie manga, vedi Jormungand (manga). Questa voce o sezione sugli argomenti creature leggendarie e mitologia norrena non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Thor e Hymir mentre affrontano il Miðgarðsormr. Miðgarðsorm...

 

US Supreme Court justice from 1957 to 1962 Charles Evans WhittakerCharles Evans Whittaker, c. 1956Associate Justice of the Supreme Court of the United StatesIn officeMarch 25, 1957 – March 31, 1962Nominated byDwight D. EisenhowerPreceded byStanley Forman ReedSucceeded byByron WhiteJudge of the United States Court of Appeals for the Eighth CircuitIn officeJune 5, 1956 – March 24, 1957Nominated byDwight D. EisenhowerPreceded byJohn Caskie ColletSucceeded byMarion Cha...

66°46′41″N 33°23′43″E / 66.77806°N 33.39528°E / 66.77806; 33.39528 Kandalaksha Coast The Kandalaksha Coast (Russian: Кандалакшский берег) is a coastal area in Murmansk Oblast in northwest Russia. It is located on the northern side of the White Sea, between Kandalaksha and mouth of Varzuga River. The major rivers flowing to the sea at the coast are the Umba and the Niva. Administratively, the Kandalaksha Coast is shared between Kandalakshsk...

 

Virgen de las Uvas. Andrea Celesti (Venecia, 1637 - Venecia, 1712) fue un pintor italiano activo durante el Barroco. Biografía Moisés salvado de las aguas. Recibió sus primeras lecciones de Matteo Ponzoni; posteriormente fue alumno de Sebastiano Mazzoni. Sin embargo, no compartió la misma sensibilidad de su maestro, pues siempre se sintió atraído por el naturalismo practicado por los tenebristas de comienzos del XVII. Los primeros trabajos conocidos de Celesti ya nos lo revelan como un ...

 

Strategi Solo vs Squad di Free Fire: Cara Menang Mudah!