Pulse-density modulation

Pulse-density modulation, or PDM, is a form of modulation used to represent an analog signal with a binary signal. In a PDM signal, specific amplitude values are not encoded into codewords of pulses of different weight as they would be in pulse-code modulation (PCM); rather, the relative density of the pulses corresponds to the analog signal's amplitude. The output of a 1-bit DAC is the same as the PDM encoding of the signal.

Description

In a pulse-density modulation bitstream, a 1 corresponds to a pulse of positive polarity (+A), and a 0 corresponds to a pulse of negative polarity (−A). Mathematically, this can be represented as

where x[n] is the bipolar bitstream (either −A or +A), and a[n] is the corresponding binary bitstream (either 0 or 1).

A run consisting of all 1s would correspond to the maximum (positive) amplitude value, all 0s would correspond to the minimum (negative) amplitude value, and alternating 1s and 0s would correspond to a zero amplitude value. The continuous amplitude waveform is recovered by low-pass filtering the bipolar PDM bitstream.

Examples

A single period of the trigonometric sine function, sampled 100 times and represented as a PDM bitstream, is:

0101011011110111111111111111111111011111101101101010100100100000010000000000000000000001000010010101

An example of PDM of 100 samples of one period of a sine wave. 1s represented by blue, 0s represented by white, overlaid with the sine wave.

Two periods of a higher frequency sine wave would appear as:

0101101111111111111101101010010000000000000100010011011101111111111111011010100100000000000000100101

A second example of PDM of 100 samples of two periods of a sine wave of twice the frequency

In pulse-density modulation, a high density of 1s occurs at the peaks of the sine wave, while a low density of 1s occurs at the troughs of the sine wave.

Analog-to-digital conversion

A PDM bitstream is encoded from an analog signal through the process of a 1-bit delta-sigma modulation. This process uses a one-bit quantizer that produces either a 1 or 0 depending on the amplitude of the analog signal. A 1 or 0 corresponds to a signal that is all the way up or all the way down, respectively. Because in the real world, analog signals are rarely all the way in one direction, there is a quantization error, the difference between the 1 or 0 and the actual amplitude it represents. This error is fed back negatively in the ΔΣ process loop. In this way, every error successively influences every other quantization measurement and its error. This has the effect of averaging out the quantization error.

Digital-to-analog conversion

The process of decoding a PDM signal into an analog one is simple: one only has to pass the PDM signal through a low-pass filter. This works because the function of a low-pass filter is essentially to average the signal. The average amplitude of pulses is measured by the density of those pulses over time, thus a low-pass filter is the only step required in the decoding process.

Relationship to PWM

Pulse-width modulation (PWM) is a special case of PDM where the switching frequency is fixed and all the pulses corresponding to one sample are contiguous in the digital signal. The method for demodulation to an analogue signal remains the same, but the representation of a 50% signal with a resolution of 8-bits, a PWM waveform will turn on for 128 clock cycles and then off for the remaining 128 cycles. With PDM and the same clock rate the signal would alternate between on and off every other cycle. The average obtained by a low-pass filter is 50% of the maximum signal level for both waveforms, but the PDM signal switches more often. For 100% or 0% level, they are the same, with the signal permanently on or off respectively.

Relationship to biology

Notably, one of the ways animal nervous systems represent sensory and other information is through rate coding whereby the magnitude of the signal is related to the rate of firing of the sensory neuron.[citation needed] In direct analogy, each neural event – called an action potential – represents one bit (pulse), with the rate of firing of the neuron representing the pulse density.

Algorithm

Pulse-density modulation of a sine wave using this algorithm

The following digital model of pulse-density modulation can be obtained from a digital model of a 1st-order 1-bit delta-sigma modulator. Consider a signal in the discrete time domain as the input to a first-order delta-sigma modulator, with the output. In the discrete frequency domain, where the Z-transform has been applied to the amplitude time-series to yield , the output of the delta-sigma modulator's operation is represented by

where is the frequency-domain quantization error of the delta-sigma modulator. Rearranging terms, we obtain

The factor represents a high-pass filter, so it is clear that contributes less to the output at low frequencies and more at high frequencies. This demonstrates the noise shaping effect of the delta-sigma modulator: the quantization noise is "pushed" out of the low frequencies up into the high-frequency range.

Using the inverse Z-transform, we may convert this into a difference equation relating the input of the delta-sigma modulator to its output in the discrete time domain,

There are two additional constraints to consider: first, at each step the output sample is chosen so as to minimize the "running" quantization error Second, is represented as a single bit, meaning it can take on only two values. We choose for convenience, allowing us to write

Rearranging to solve for yields:

This, finally, gives a formula for the output sample in terms of the input sample . The quantization error of each sample is fed back into the input for the following sample.

The following pseudo-code implements this algorithm to convert a pulse-code modulation signal into a PDM signal:

// Encode samples into pulse-density modulation
// using a first-order sigma-delta modulator

function pdm(real[0..s] x, real qe = 0) // initial running error is zero
    var int[0..s] y
  
    for n from 0 to s do
        qe := qe + x[n]
        if qe > 0 then
            y[n] := 1
        else
            y[n] := −1
        qe := qe - y[n]
  
    return y, qe // return output and running error

Applications

PDM is the encoding used in Sony's Super Audio CD (SACD) format, under the name Direct Stream Digital.

PDM is also the output of some MEMS microphones.[1]

Some systems transmit PDM stereo audio over a single data wire. The rising edge of the master clock indicates a bit from the left channel, while the falling edge of the master clock indicates a bit from the right channel.[2][3][4]

See also

References

  1. ^ Fried, Limor (2018-01-10). "Adafruit PDM Microphone Breakout". Adafruit Learning System. Archived from the original on 2022-12-08. Retrieved 2023-06-30.
  2. ^ Thomas Kite. "Understanding PDM Digital Audio" (PDF). 2012. The "PDM Microphones" section on p. 6.
  3. ^ Maxim Integrated. "PDM Input Class D Audio Power Amplifier" (PDF). 2013. Figure 1 on p. 5; and the "Digital Audio Interface" section on p. 13.
  4. ^ Knowles. "SPK0641 Digital, CMOS MEMS Microphone" (PDF).

Further reading

Read other articles:

Bindlach Lambang kebesaranLetak Bindlach di Bayreuth NegaraJermanNegara bagianBayernWilayahOberfrankenKreisBayreuthSubdivisions7 OrtsteilePemerintahan • MayorHermann Hübner (CSU)Luas • Total37,60 km2 (1,450 sq mi)Ketinggian362 m (1,188 ft)Populasi (2013-12-31)[1] • Total7.233 • Kepadatan1,9/km2 (5,0/sq mi)Zona waktuWET/WMPET (UTC+1/+2)Kode pos95463Kode area telepon09208Pelat kendaraanBTSitus webwww.bin...

 

Kaisarea FilipiCaesarea PhilippiReruntuhan Kaisarea FilipiLokasi di Dataran Tinggi GolanLokasiDataran Tinggi GolanKoordinat33°14′46″N 35°41′36″E / 33.246111°N 35.693333°E / 33.246111; 35.693333JenispemukimanSejarahBudayaRomawi Kaisarea Filipi (Inggris: Caesarea Philippicode: en is deprecated ; Yunani Kuno Καισαρεία Φιλίππεια; atau Caesarea Paneas; Yunani: Καισαρεία Πανειάς) adalah sebuah kota Romawi kuno yang terletak di ba...

 

Multi-disciplinary social science research method For frame analysis in digital videos, see video content analysis. Frame analysis (also called framing analysis) is a multi-disciplinary social science research method used to analyze how people understand situations and activities. Frame analysis looks at images, stereotypes, metaphors, actors, messages, and more. It examines how important these factors are and how and why they are chosen.[1] The concept is generally attributed to the ...

26th Infantry Division Assietta26th Infantry Division Assietta insigniaActive1935 - 1943Country Kingdom of ItalyBranch Royal Italian ArmyTypeInfantrySizeDivisionGarrison/HQAstiEngagementsSecond Italo-Abyssinian WarWorld War IIInsigniaIdentificationsymbol Assietta Division gorget patchesMilitary unit The 26th Infantry Division Assietta (Italian: 26ª Divisione di fanteria Assietta) was a infantry division of the Royal Italian Army during World War II. The Assietta was classified as ...

 

PopeJohn V of AlexandriaPaus ke-72Awal masa kepausan25 August 1147Akhir masa kepausan29 April 1166PendahuluMichael VPenerusMark IIIInformasi pribadiLahirMesirWafat29 April 1166MesirMakamMonastery of Saint Macarius the GreatKewarganegaraanMesirDenominasiKristen KoptikKediamanThe Hanging Church Paus Yohanes V dari Aleksandria adalah Paus Aleksandria ke-72 & Patriarkh Tahta St. Markus. lbsDaftar Paus Ortodoks Koptik Aleksandria Markus I Anianus Avilius Kedron Primus Justus Eumenes Markianos ...

 

Artikel ini mendokumentasikan suatu wabah penyakit terkini. Informasi mengenai hal itu dapat berubah dengan cepat jika informasi lebih lanjut tersedia; laporan berita dan sumber-sumber primer lainnya mungkin tidak bisa diandalkan. Pembaruan terakhir untuk artikel ini mungkin tidak mencerminkan informasi terkini mengenai wabah penyakit ini untuk semua bidang. Artikel utama: Pandemi koronavirus 2019–2020 Pandemi koronavirus di Italia Kasus terkonfirmasi menurut provinsi (per 100rb) Prevalensi...

1983 film by J. Sasikumar ArabikkadalPosterDirected byJ. SasikumarScreenplay byVijayan KaroteStory byJ. SasikumarProduced byAlambathara DivakaranStarringMadhuSrividyaMohanlalRatheeshCinematographyR. R. RajkumarEdited byK. SankunniMusic byM. K. ArjunanProductioncompanySabari InternationalDistributed byVijaya MoviesRelease date 8 July 1983 (1983-07-08) CountryIndiaLanguageMalayalam Arabikkadal (transl. Arabian Sea) is a 1983 Indian Malayalam-language film directed by J. Sas...

 

ScreamSutradara Wes Craven (1–4) Matt Bettinelli-Olpin (5–6) Tyler Gillett (5–6) Produser Cathy Konrad (1–3) Cary Woods (1) Wes Craven (2, 4) Marianne Maddalena (2–3) Kevin Williamson (3–4) Iya Labunka (4) James Vanderbilt (5–6) Paul Neinstein (5–6) William Sherak (5–6) Ditulis oleh Kevin Williamson (1–2, 4) Ehren Kruger (3) James Vanderbilt (5–6) Guy Busick (5–6) Penata musik Marco Beltrami (1–4) Brian Tyler (5–6) Sven Faulconer (6) Perusahaanproduksi Woods ...

 

Bagian dari seri Biologi mengenai Evolusi Pengenalan Mekanisme dan Proses Adaptasi Hanyutan genetika Aliran gen Mutasi Seleksi alam Spesiasi Riset dan sejarah Bukti Sejarah evolusi kehidupan Sejarah Sintesis modern Efek sosial Teori dan fakta Keberatan / Kontroversi Bidang Kladistika Genetika ekologi Perkembangan evolusioner Evolusi manusia Evolusi molekuler Filogenetika Genetika populasi Portal Biologi ·lbs Dalam biologi evolusioner, perlombaan senjata evolusioner adalah persaingan evolusi...

Abdullah KamilMeninggal11 Juli 1991YogyakartaKebangsaanIndonesiaPekerjaanDiplomatDikenal atasDuta Besar RI untuk PBBSuami/istriAcharaAnakHalimah Agustina Kamil Abdullah Kamil (lahir sekitar tahun 1919 – meninggal di Yogyakarta, 11 Juli 1991)[1][2] adalah seorang diplomat Indonesia.[3] Ia pernah ditugaskan sebagai Duta Besar Luar Biasa dan Berkuasa Penuh Republik Indonesia di berbagai negara sahabat, yaitu Austria, Yugoslavia, Tunisia, serta Malaysia. Dari tahun 1979...

 

Disambiguazione – Se stai cercando altri significati, vedi Brandão (disambigua). Brandão Nazionalità  Brasile Altezza 189 cm Peso 79 kg Calcio Ruolo Allenatore (ex attaccante) Termine carriera 1º gennaio 2018 - giocatore Carriera Squadre di club1 1998-2000 ADAP/Galo Maringá18 (5)2000-2001 União Bandeirante26 (7)2001-2002 Iraty20 (7)2002→  São Caetano23 (10)2002-2009 Šachtar140 (65)2009-2011 Olympique Marsiglia65 (16)2011→  Cruzeiro6 (0)20...

 

Human settlement in EnglandSaxteadChurch of All Saints, SaxteadSaxteadLocation within SuffolkPopulation335 (2011 census)Civil parishSaxteadDistrictEast SuffolkShire countySuffolkRegionEastCountryEnglandSovereign stateUnited Kingdom List of places UK England Suffolk 52°14′30″N 1°18′33″E / 52.24163°N 1.30914°E / 52.24163; 1.30914 Saxtead is a village and civil parish in the East Suffolk district, in the county of Suffolk, England. Saxtead give...

Elizabeth KolbertLahir06 Juli 1961 (umur 62)KebangsaanAmerika SerikatAlmamaterUniversitas YalePekerjaanJurnalis dan penulisSuami/istriJohn KleinerPenghargaan National Magazine Award (2006) National Magazine Award (2010) Heinz Award (2010) Pulitzer Prize (2015) Elizabeth Kolbert (lahir di Bronx, New York, 6 Juli 1961) adalah jurnalis dan penulis Amerika Serikat. Ia juga merupakan dosen tamu di Kolese Williams. Elizabeth dikenal melalui bukunya The Sixth Extinction: An Unnatural History y...

 

Airport serving Utqiaġvik, Alaska, United States For the airports located in Oklahoma City, see Wiley Post Airport and Will Rogers World Airport. For the seaplane base in Seattle, see Will Rogers–Wiley Post Memorial Seaplane Base. Wiley Post–Will Rogers International AirportIATA: BRWICAO: PABRFAA LID: BRWSummaryAirport typePublicOwnerState of Alaska DOT&PF – Northern RegionLocationUtqiaġvik, AlaskaElevation AMSL44 ft / 13 mCoordinates71°17′08″N 156°45′58″W...

 

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Oktober 2022. Kejaksaan Negeri Prabumulih merupakan Lembaga Pemerintah yang melaksanakan kekuasaan Negara di bidang Penuntutan serta Kewenangan Lain berdasarkan Undang-Undang Republik Indonesia Kejaksaan Republik Indonesia, yang berkedudukan di Prabumulih, Provinsi ...

Italian actress (born 1936) Anna Maria Sandri. Anna Maria Sandri (born 10 August 1936), credited under the name Maria Sandri, is an Italian actress who portrayed the daughter of a Bedouin sheikh, Mabrouka ben Yussef, in The Black Tent.[1] Selected filmography La morte civile (1942) Who is Without Sin (1952) Captain Phantom (1953) High School (1954) The Red and the Black (1954) Square Fortune (1955) The Black Tent (1956) References ^ Timeout.com[permanent dead link] External li...

 

Autonomous municipal corporation granted a royal charter in the Kingdom of Scotland. Falkland in Fife, created a royal burgh in 1458 A royal burgh (/ˈbʌrə/ BURR-ə) was a type of Scottish burgh which had been founded by, or subsequently granted, a royal charter. Although abolished by law in 1975, the term is still used by many former royal burghs.[1] Most royal burghs were either created by the Crown, or upgraded from another status, such as burgh of barony. As discrete classes of ...

 

Keeper of DarknessPoster filmNama lainTradisional陀地驅魔人Sederhana陀地驱魔人MandarinTuó Dì Qū Mó RénKantonTo4 Dei2 Keoi1 Mo1 Jan4 SutradaraNick CheungProduserClaudie ChungLaw Chi-leungCheung Chi-kwongSkenarioYeung Sin-lingPemeranNick CheungAmber KuoLouis CheungSisley ChoiXing YuPhilip KeungKarena LamPenata musikMark LuiSinematograferChan Chi-yingPenyuntingFire LeePerusahaanproduksiOne Cool Film ProductionUnited Filmmakers Organisation (UFO)DistributorEdko FilmsTan...

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada Oktober 2016. WikiReaderWikiReader menampilkan keyboardPembuatOpenmokoBerat120 gCPUEpson S1C33 E07microcontrollerPenyimpananMicroSDLayarMonokrom layar sentuh WikiReader adalah proyek pengembangan peranti untuk menampilkan versi hanya teks Wikipedia pada perangkat se...

 

BrurayOld Norse nameBrurayLocationBrurayBruray shown within ShetlandOS grid referenceHU689720Coordinates60°25′34″N 0°45′00″W / 60.426°N 0.750°W / 60.426; -0.750Physical geographyIsland groupShetlandArea55 hectares (0.21 sq mi)Area rank189= [1]Highest elevation53 metres (174 ft)AdministrationSovereign stateUnited KingdomCountryScotlandCouncil areaShetland IslandsDemographicsPopulation24Population rank63[2] [1...