Share to: share facebook share twitter share wa share telegram print page

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.

External links

Read more information:

Salvia forsskaolei Klasifikasi ilmiah Kerajaan: Plantae (tanpa takson): Angiospermae (tanpa takson): Eudicots Ordo: Lamiales Famili: Lamiaceae Genus: Salvia Spesies: Salvia forsskaolei Nama binomial Salvia forsskaoleiL. Salvia forsskaolei adalah spesies tumbuhan yang tergolong ke dalam famili Lamiaceae. Spesies ini juga merupakan bagian dari ordo Lamiales. Spesies Salvia forsskaolei sendiri merupakan bagian dari genus Salvia.[1] Nama ilmiah dari spesies ini pertama kali diterbitkan oleh …

For the village located within this town, see Canton (village), New York. Town in New York, United StatesCantonTownCanton in 1945 SealMap highlighting Canton's location within St. Lawrence County.CantonLocation of Canton in New YorkCoordinates: 44°35′51″N 75°10′16″W / 44.59750°N 75.17111°W / 44.59750; -75.17111CountryUnited StatesStateNew YorkCountySt. LawrenceEstablished1805Government • Village MayorMichael E. Dalton • Town SupervisorM…

ATSNama resmiAutomobili Turismo e Sport S.p.A.Kantor pusatItaliaPendiriCarlo ChitiGiotto BizzarriniPembalap terkenalPhil HillGiancarlo BaghettiSejarah dalam ajang Formula SatuGelar Konstruktor0Gelar Pembalap0Jumlah lomba5Menang0Posisi pole0Putaran tercepat0Lomba pertamaGrand Prix Belgia 1963Lomba terakhirGrand Prix Italia 1963 ATS (Automobili Turismo e Sport) adalah konstruktor otomotif dan tim balap Italia yang beroperasi antara 1963 dan 1965, dibentuk setelah revolusi istana di Ferrari. ATS 25…

Lower house of the Rhode Island General Assembly This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article relies excessively on references to primary sources. Please improve this article by adding secondary or tertiary sources. Find sources: Rhode Island House of Representatives – news · newspapers · books · scholar · JSTOR (February 2014) (Learn …

Bibisan Ostorhinchus aureus Status konservasiRisiko rendahIUCN193332 TaksonomiKerajaanAnimaliaFilumChordataKelasActinopteriOrdoKurtiformesFamiliApogonidaeGenusOstorhinchusSpesiesOstorhinchus aureus Tata namaSinonim taksonApogon aureus (en) lbs Bibisan ( Ostorhinchus aureus ) adalah spesies ikan yang tersebar luas dalam famili Apogonidae yang ditemukan di Laut Merah dan lepas Afrika Timur hingga Papua Nugini, utara hingga Jepang, dan selatan hingga Australia . Keterangan Ikan ini berwarna tembaga…

State football league of the Brazilian state of Minas Gerais Football leagueCampeonato MineiroFounded1915; 109 years ago (1915)CountryBrazilMinas GeraisConfederationCBFFMFNumber of teams12Relegation toCampeonato Mineiro Módulo IIDomestic cup(s)Copa do BrasilCurrent championsAtlético (49th title) (2024)Most championshipsAtlético (49 titles)TV partnersRede GloboSporTVPremiere FCWebsitefmf.com.brCurrent: 2024 Campeonato Mineiro Campeonato Mineiro is the Brazilian state football…

JaatishwarSutradaraSrijit MukherjiProduserReliance Entertainment dan Rana Sarkar[1]Ditulis olehSrijit MukherjiPemeranProsenjit ChatterjeeJisshu SenguptaSwastika MukherjeeAbir ChatterjeeRahul BanerjeeAnanya ChatterjeeKharaj MukherjeeMamata ShankarRiya SenSrijit MukherjiBiswajit ChakrabortyBharat KaulPenata musikKabir SumanSinematograferSoumik HaldarPenyuntingBodhaditya BanerjeeTanggal rilis 17 Januari 2014 (2014-01-17) (India) Durasi150 menitNegaraIndiaBahasaBengaliAnggaran…

Kronologialbum studio karya Fariz R.M.Dirilis31 Desember 1997StudioFariz R.M. Studio, Bintaro Jaya, JakartaRagunan Sandhora Studio, TebetGenrePopDurasi1:05:35LabelAkurama RecordsProduserDorie KalmasFariz R.M.Kronologi Fariz R.M. Dongeng Negeri Cinta (1997)Dongeng Negeri Cinta1997 Kronologi (1997) Super Medley (1998)Super Medley1998 Kronologi adalah album keenam belas dari musisi Fariz R.M. yang dirilis pada tahun 1997 di bawah label Akurama Records. Album ini diisi oleh sembilan lagu karya F…

CD LugoCalcio Albivermellos (Biancorossi), Luguiño (Il Piccolo Lugo), O Xogo Bonito (Il Bel Gioco) Segni distintivi Uniformi di gara Casa Trasferta Terza divisa Colori sociali Bianco, rosso Dati societari Città Lugo Nazione  Spagna Confederazione UEFA Federazione FEF Campionato Primera División RFEF Fondazione 1953 Presidente Constantino Saqués Pereira Allenatore Paulo Alves Stadio Estadio Anxo Carro(8.000 posti) Sito web www.cdlugo.com Palmarès Si invita a seguire il modello di voce I…

National monument in California, United States Mojave Trails National MonumentCadiz Dunes, Mojave Trails NMShow map of CaliforniaShow map of the United StatesLocationSan Bernardino County, California, U.S.Coordinates34°36′N 116°00′W / 34.6°N 116°W / 34.6; -116Area1,600,000 acres (650,000 ha)AuthorizedFebruary 12, 2016 (2016-Feb-12)Governing bodyBureau of Land ManagementWebsiteMojave Trails National Monument U.S. National Monument Mojave Tr…

Public Park Middle Run Valley Natural AreaMain road-entrance to Middle Run Valley Natural Area, off of Possum Hollow Rd.Location of Middle Run Valley Natural Area in DelawareLocationNew Castle, Delaware, United StatesCoordinates39°43′2″N 75°43′22″W / 39.71722°N 75.72278°W / 39.71722; -75.72278Area850 acres (340 ha)Established1975Named forMiddle RunGoverning bodyNew Castle County, DelawareWebsiteNew Castle County Parks Middle Run, from between Possum …

Once Upon a Time in HollywoodPoster filmSutradaraQuentin TarantinoProduser David Heyman Shannon McIntosh Quentin Tarantino Ditulis olehQuentin TarantinoPemeran Leonardo DiCaprio Brad Pitt Margot Robbie Emile Hirsch Margaret Qualley Timothy Olyphant Austin Butler Dakota Fanning Bruce Dern Al Pacino NaratorKurt RussellSinematograferRobert RichardsonPenyuntingFred Raskin[1]Perusahaanproduksi Columbia Pictures Bona Film Group Heyday Films Visiona Romantica DistributorSony Pictures ReleasingT…

Southern African traditional medicine made from plants For other uses, see Muti (disambiguation). Muthi redirects here. Not to be confused with Muthi Muthi people, Muthi Muthi language, Muthis, or Mutti. This article is part of a series onAlternative medicine General information Alternative medicine History Terminology Alternative veterinary medicine Quackery (health fraud) Rise of modern medicine Pseudoscience Antiscience Skepticism Scientific Therapeutic nihilism Fringe medicine and science Ac…

Demographics of Vietnam[1]Vietnam population pyramid on census day 01/4/2019Population100.300.000 (December 31, 2023)[2]Density300/km²[3]Growth rate0.97% (2021 est.)[4]Birth rate15.2 births/1000 population (2022 est.)[4]Death rate6.1 deaths/1000 population (2022 est.)[4]Life expectancy73.6 years (2022 est.)[4] • male71.1 years (2022 est.) • female76.4 years (2022 est.)Fertility rate2.01 births/woman (2022 est.)…

この項目には、一部のコンピュータや閲覧ソフトで表示できない文字が含まれています(詳細)。 数字の大字(だいじ)は、漢数字の一種。通常用いる単純な字形の漢数字(小字)の代わりに同じ音の別の漢字を用いるものである。 概要 壱万円日本銀行券(「壱」が大字) 弐千円日本銀行券(「弐」が大字) 漢数字には「一」「二」「三」と続く小字と、「壱」「弐」…

SLC22A8 المعرفات الأسماء المستعارة SLC22A8, OAT3, solute carrier family 22 member 8 معرفات خارجية الوراثة المندلية البشرية عبر الإنترنت 607581 MGI: MGI:1336187 HomoloGene: 20901 GeneCards: 9376 علم الوجود الجيني الوظيفة الجزيئية • sodium-independent organic anion transmembrane transporter activity• ‏GO:0022891 transmembrane transporter activity• inorganic anion exchanger activity• نشا…

UNESCO World Heritage Site in Córdoba Province, Argentina Jesuit Block and Estancias of CórdobaUNESCO World Heritage SiteView of the Estancia Alta GraciaLocationCórdoba Province, ArgentinaIncludes Jesuit Block Estancia of Alta Gracia Estancia of Jesús María Estancia of Santa Catalina Estancia of Caroya Estancia of La Candelaría CriteriaCultural: (ii), (iv)Reference995Inscription2000 (24th Session)Area38.12 ha (94.2 acres)Coordinates31°25′14″S 64°11′28″W / ࿯…

周處除三害The Pig, The Snake and The Pigeon正式版海報基本资料导演黃精甫监制李烈黃江豐動作指導洪昰顥编剧黃精甫主演阮經天袁富華陳以文王淨李李仁謝瓊煖配乐盧律銘林孝親林思妤保卜摄影王金城剪辑黃精甫林雍益制片商一種態度電影股份有限公司片长134分鐘产地 臺灣语言國語粵語台語上映及发行上映日期 2023年10月6日 (2023-10-06)(台灣) 2023年11月2日 (2023-11-02)(香港、…

Russian footballer Andrei Bochkov Andrei Bochkov in 2008Personal informationFull name Andrei Mikhailovich BochkovDate of birth (1982-01-13) 13 January 1982 (age 42)Place of birth Volgograd, Russian SFSRHeight 1.74 m (5 ft 8+1⁄2 in)Position(s) MidfielderYouth career0000–2000 FC Olimpia VolgogradSenior career*Years Team Apps (Gls)2000–2002 FC Olimpia Volgograd 78 (7)2003–2004 FC Uralan Elista 41 (3)2004–2007 FC Rostov 80 (3)2008–2009 FC Shinnik Yaroslavl 53 (1)2…

55°40′52″N 12°35′12″E / 55.681208°N 12.586609°E / 55.681208; 12.586609 الوكالة الأوروبية للبيئة   تفاصيل الوكالة الحكومية البلد الدنمارك  تأسست 7 مايو 1990[1]،  و1990[2]  الإحداثيات 55°40′52″N 12°35′12″E / 55.681208°N 12.586609°E / 55.681208; 12.586609   الموظفون 200 (2019)[3]  الإدا…

Kembali kehalaman sebelumnya