Learning the basics of data conversion

By Mark Patrick, Mouser Electronics

Data conversion is fundamental to our modern world, from smart sensors to smart home automation and power supplies. in this article, Mark Patrick, Mouser Electronics, explains how data conversion between the analogue and digital domains is achieved, and explores popular converter architectures. Equipped with this information, readers will have a better understanding of the technology and terminology, and the key data sheet specifications to review when selecting a device.

Converting analogue signals to digital signals and vice versa is essential in an increasingly connected world. We use analogue measurements to garner data about parameters such as temperature, humidity, and air pressure. But we need to convert these analogue signals for processing in the digital domain. Processing information digitally is a convenient, quick, and power-efficient process, for which low-cost microcontrollers are ideal.

Equally, we may need to convert digital signals into analogue signals. Indeed, some applications use both conversion methods: for example, in home automation systems. Analogue human speech is converted into a digital audio stream, which is then interpreted by a cloud-based machine learning algorithm. The answer or the desired music is then sent back to the speaker for conversion to the analogue domain. This is achieved using data converters.

Understanding data converters

Data converters are classified as either analogue to digital (ADC) or digital to analogue (DAC). A simple, functional block diagram of an industrial process closed loop controller featuring an ADC and a DAC is shown in Figure 1. Note that the input and output of the ADC and DAC are supported by signal conditioning functions. Signal conditioning may involve using low pass filters on the ADC input, for example, to remove any high-frequency signal artifacts that might interfere with the ADC’s conversion accuracy. Alternatively, signal conditioning may be applied to limit the input range of the acquired analogue signal to prevent damage to the ADC.

Figure 1: The use of an ADC and a DAC in an industrial process loop controller (Source: Analog Devices)

Where multiple analogue sensor elements are required, the input to the ADC can be multiplexed to provide a cost-efficient control circuit design. The design might require a programmable gain amplifier to accommodate different analogue input ranges from multiple sensors (Figure 2).

Figure 2: A complete analogue to digital to analogue control loop with a microcontroller or microprocessor (Source: Analog Devices)

ADC and DAC functions may be designed using a discrete component approach. However, the most time-efficient and PCB space-effective method is to select an integrated circuit (IC) that typically includes the ADC or DAC functions, a multiplexer, and some signal conditioning components.

The data conversion process

Data conversion essentially involves two distinct processes: sampling and quantisation. Sampling determines how faithfully the digital output signal represents the input analogue signal. It is typically quoted as the number of samples per second (s/s). A slow sampling rate is sufficient for slow-changing analogue signals, but a more rapidly changing input requires a faster sampling rate. On the far right of Figure 3you can see that the analogue input signal is changing more quickly than the sampling rate, resulting in a loss of conversion accuracy.

Figure 3: The impact of sampling rate on the reproduction of a digital output signal (Source: Kuphaldt – http://www.ibiblio.org/))

Quantization determines the analogue value for each digital bit and the resolution of the ADC. For example, an 8-bit ADC can represent the input signal in 256 levels, but a 16-bit ADC improves the resolution to 65,536 steps, so each digital bit represents 256 analogue values ​​compared to an 8-bit ADC. In general, the use case determines the selection criteria for the ADC’s resolution and sampling rate (Figure 4). Digital-to-analogue conversion uses the same principles of sampling and quantisation.

Figure 4: The quantisation process determines the value of each digital bit and the ADC’s resolution (Source Analog Devices)

Common converter architecture

ADC Architecture

The principal factors influencing ADC architecture are cost (simplicity of design), resolution, or linearity. Each use case will require different architecture attributes, but here are four of the most common.

A flash architecture converts an analogue signal into the digital domain using a parallel array of clocked comparators. Each comparator is fed with the input signal and a set fraction of a reference voltage from a resistor ladder (Figure 8). A flash architecture achieves conversion within one clock cycle, but it requires eight comparators for an 8-bit ADC, which also imposes a high input capacitance.

Figure 8: The outline architecture of a flash ADC (Source: Analog Devices)

A pipelined architecture uses typically a two-stage conversion process, each consisting of a sample and hold, a DAC, and an ADC. The first sample becomes the most significant bit (MSB). It is then fed back and subtracted from the input signal and the residual signal is sampled. This process is repeated for each bit from MSB to LSB. The pipeline model can accommodate a wide dynamic range of input signals and achieve high resolution, but it is not as fast as a flash ADC and introduces conversion latency.

Successive approximation register (SAR) architecture compares the input signal against a known reference voltage, using successively smaller reference voltages for each digital bit (Figure 9). If the analogue input is greater than the reference, a bit is set. Otherwise, it remains at zero and continues to the next bit. SAR ADCs are compact because they only require a single comparator, and they have no pipelining delay. However, the DAC linearity and any comparator noise can affect accuracy.

Figure 9: An outline of the SAR analogue-to-digital converter (Source: Analog Devices)

A sigma-delta architecture creates a sigma-delta modulator using an integrator, comparator, and a one-bit DAC (Figure 10). This modulator subtracts a value from the DAC and feeds the result to the integrator. The comparator converts the integrator output to a single-bit digital output, which is fed back to the input. This architecture yields a high resolution and can operate at a fast ‘oversampling’ rate.

Figure 10: The architecture of a sigma-delta ADC (Source: Analog Devices)

Common DAC architecture

Typically, the simplest form of DAC uses string architecture. This deploys a string of precision resistors to create a voltage divider, converting a digital input to an analogue output (Figure 11). It can be prone to resistance-matching issues.

Figure 11: DAC binary-weighted string architecture (Source: Analog Devices)

An R-2R ladder architecture requires just two resistor values ​​in a 2:1 ratio (Figure 12). This architecture suits voltage or current output configurations and avoids the resistance-matching problems associated with string architecture.

Figure 12: The basic architecture of an R-2R ladder DAC (Source: Analog Devices)

String and R-2R architectures use a fixed reference voltage and a fixed gain. However, the multiplying DAC (MDAC) architecture provides a digitally variable gain to a wide dynamic range analogue signal. It uses an R-2R ladder and a programmable gain op-amp. This gives the MDAC the ability to function as a DAC-based attenuator or amplifier and is ideally suited to high bandwidth AC or varying DC signals.

Conclusion

Data conversion is a key skill for engineers today, because it underpins so many of the automated systems on which our world depends. An understanding of popular converter architectures and the common terminology associated with data conversion will aid appropriate product selection.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
slot dana slot mahjong slot thailand slot maxwin slot pg soft gaming88 slot kamboja sv388 slot server jepang akun pro jepang slot server kamboja akun pro kamboja slot mahjong slot ovo slot pg soft digmaan sabung ayam online slot mania slot zeus joker123 slot gacor slot jepang slot zeus akun vip slot pragmatic slot bet 100 sv388 mahjong ways pg soft slot maxwin zeus slot slot88 sv388 slot zeus slot princess sv388 pg soft mahjong ways slot zeus starlight princess joker123 slot thailand sv388 slot dana digmaan slot olympus starlight princess slot thailand slot gacor pgsoft slot zeus mahjong ways sv388 slot pragmatic starlight princess sv388 slot pragmatic slot pg soft starlight princess rtp slot thailand slot slot kamboja slot88 joker123 slot kamboja nolimit city slot thailand slot thailand slot thailand server thailand joker123 mahjong ways slot dana slot thailand fafaslot sv388 slot zeus joker123 sv388 slot thailand pg soft mahjong ways slot zeus starlight princess rtp slot slot mania sabung ayam online slot zeus slot pragmatic slot pgsoft slot gacor 777 slot88 sv388 sabung ayam online 66kbet ying77 dewaslot ladangtoto gaming88 slot thailand slot maxwin gaming88 slot123 mahjong ways starlight princess joker123 slot pg zseus slot servee thailand 66kbet gaming88 ying77 ladangtoto dewaslot sabung ayam online slot thailand slot77 slot thailand server thailand slot88 slot maxwin slot thailand server thailand slot88 66kbet ladangtoto ying77 slot thailand slot mahjong slot88 slot zeus pg soft slot gacor maxwin sv388 joker123 ladangtoto 66kbet ying77 ladangtoto slot thailand slot thailand server thailand slot maxwin slot88 pragmatic play judi bola live casino sv388 sbobet mahjong ways pragmaticplay sv388 sv388 pragmatic play slot gacor maxwin pg soft gates of olympus mahjong ways 2 starlight princess gates of olympus joker123 sv388 pg soft slot mahjong slot dana sv388 fafaslot idn poker joker123 mahjong ways slot88 slot maxwin slot dana joker123 sabung ayam online slot gacor maxwin mahjong ways 2 pg soft pragmatic play slot zeus sabung ayam online pg soft pragmatic slot petir slot olympus slot mania fafaslot slot mania fafaslot habanero ladangtoto ying77 66kbet gaming88 slot thailand server thailand sabung ayam online slot mania slot mahjong slot bet 200 slot dana slot hoki slot x500 slot pgsoft ladangtoto slot thailand slot kamboja slot jepang slot amerika slot mahjong slot gacor 2023 slot x500 slot88 slot thailand joker123 slot mahjong sabung ayam online slot zeus slot dana slot ovo slot habanero slot jdb slot thailand slot dana slot mahjong slot zeus slot pragmatic starlight princess sabung ayam online slot ovo slot gopay slot thailand slot vietnam slot kamboja slot mahjong slot pragmatic slot pgsoft slot x500 slot petir ladangtoto slot server kamboja nolimit city digmaan slot thailand dewaslot digmaan sv388 slot joker123 mahjong ways 2 slot zeus starlight princess slot88 pg soft slot olympus 66kbet ladang toto ying77 gaming88 dewaslot slot mahjong ladang toto pg soft 66kbet ying77 ladangtoto dewaslot scv388 sabung ayam online slot dana slot thailand mahjong ways sabung ayam joker123 starlight princess slot sabung ayam online live casino ladangtoto 66kbet 66k ladangtoto 66k ladangtoto digmaan slot pragmatic slot jepang slot china slot kamboja slot rusia slot malaysia slot amerika slot thailand slot zeus slot ovo slot dana slot gopay sicbo online roulette online joker123 slot mahjong tembak ikan online joker123 live casino slot123 66k ying77 ladangtoto sabung ayam online 66k ying77 ladangtoto live casino online sabung ayam online 66k ying77 ladangtoto slot thailand ladangtoto ladangtoto sv388 ladangtoto ladangtoto ladangtoto sv388 ladangtoto sv388 66kbet ying77 gaming88 dewaslot ladangtoto ladangtoto ying77 dewaslot 66kbet ying77 66kbet ladangtoto dewaslot gaming88 slot thailand slot zeus ladangtoto ying77 ladangtoto gaming88 dewaslot ying77 66k bet ladangtoto gaming88 ladangtoto 66k bet ying77bet sv388 66kbet ying77 ladangtoto 66k one ladangtoto ying77 slot maxwin 66k bet ying77bet ladangtoto slot zeus ying77 66k bet slot thailand slot thailand server thailand slot thailand server thailand server thailand server thailand slot thailand slot thailand server thailand slot thailand slot thailand server thailand slot thailand slot thailand slot thailand slot thailand slot thailand slot thailand slot thailand slot thailand slot thailand slot gacor ladangtoto2 slot thailand server thailand ying77 bet ying77 ladangtoto 66k bet ladangtoto ladangtoto ying77 slot gacor server thailand slot88 slot gacor slot thailand slot88 slot thailand ying77 ying77 powergaming88 slot thailand sv388 joker123 slot88 ladangtoto ladangtoto ladangtoto sv388 sabung ayam online slot thailand slot maxwin sv388 pg soft mahjong ways sv388 mahjong ways 2 sv388 slot thailand server thailand powergaming88 66k bet slot sv388 ladangtoto slot zeus slot gacor dewaslot ladangtoto 66k bet slot thailand slot spaceman sabung ayam online slot dana slot dana sabung ayam online sabung ayam online sabung ayam inline sicbo dragon tiger slot thailand slot thailand slot thailand slot mahjong pg soft slot pragmatic slotzeus sv388 digmaan slot thailand slot thailand slot thailand slot thailand slot88 slot thailand slot pgsoft slot slot mahjong zeus slot digmaan slot mania slot pulsa jdb slot slot777 slot shopee slot thailand fafaslot nolimit city slot princess fafaslot fafa slot slot princess slot gopay slot toto slot server thailand slot thailand slot77 slot gacor slot server thailand slot thailand akun gacor slot maxwin slot gacor slot thailand slot kakek zeus Joker123 Mahjong Ways 2 Sv388 Sbobet Slot Dana Slot Thailand slot macau slot thailand slot thailand slot88 situs slot wwg slot wm casino tembak ikan slot thailand slot wala meron slot thailand 66k bet slot daftar judi slot online indonesia slot mahjong ways mahjong ways slot gacor slot mawin slot gacor slot gacor slot thailand slot thailand slot gacor slot gacor slot gacor slot gacor slot thailand slot gacor judi slot slot thailand slot thailand slot thailand slot mahjong ways 2 slot demo pragmatic slot demo pg soft demo slot pragmatic slot gacor 4d slot pg soft pgslot pgsoft pgsoft sv388 slot88 pgsoft slot thailand slot88 slot thailand slot gacor slot ovo slot dana Situs Daftar Judi Slot Mahjong Ways 1 dan 2 PG Soft Online PG Soft : Daftar Situs Judi Slot Online Gacor Slot Kakek Zeus Daftar Link Slot Olympus Terbaru Slot Dana Daftar Judi Slot Online Indonesia Paling Gacor di Indonesia Sabung Ayam Online Sv388 Daftar Situs Judi Slot Online SLOT88 SLOT PG SOFT GACOR Bandar Slot Daftar Situs Judi Online Terbaik & Terpercaya Gacor power gaming lucky neko slot gacor slot gacor slot88 slot kakek slot pg slot kakek zeus slot dana slot maxwin slot server luar negeri slot thailand Link Daftar Situs Judi Slot Deposit Dana 20RB Tanpa Potongan Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Link Daftar Situs Judi Slot Deposit Dana 20RB Tanpa Potongan Slot Pragmatic - Link Alternatif Judi Slot Online Gacor Kakek Zeus Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Daftar Slot Dana Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play lucky Neko Daftar & Login Slot PG Judi Slot 88 Online Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Power Gaming : Situs Slot Gacor Online RTP Pragmatic Play Slot Mahjong Ways 2 Mudah Jackpot Paus di PG Soft Hari ini 2023 Lucky Neko Situs Slot Gacor Pgsoft Hari Ini SITUS SABUNG AYAM SV388 ONLINE DAFTAR LINK LOGIN APK AGEN SV388 Daftar Judi Slot Online Indonesia Paling Gacor di Indonesia powergaming88 ladangtoto link slot gacor server thailand ladangtoto ladangtoto https://pelalawankab.go.id/portal/js/products/slot-thailand/ slot zeus slot thailand slot server thailand ladangtoto https://slot-thailand.ppak.co.id/ link server thailand login ladangtoto ladangtoto terbaru slot pg soft mahjong ways login gacor88 https://ladangtoto.bintangara.tabalongkab.go.id/ situs slot thailand gacor88 link alternatif https://dprd.sikkakab.go.id/ slot gacor gacor88 indoslot cara login daftar ladangtoto login ladangtoto ladangtoto ying77 https://server-thailand.rumahsakitakgani.co.id/ https://slot-nolimit-city.rumahsakitakgani.co.id/ https://ladangtoto.nbagroup.co.id/ slot link server thailand link alternatif ladangtoto ladangtoto resmi link alternatif ladangtoto 2 ladangtoto login slot server thailand maxwin 66kbet gacor hari ini daftar dewaslot ladangtoto slot mahjong ways 2 gacor slot thailand asli daftar ladangtoto slot idn gacor rtp ladangtoto 66kbet link tergacor slot77 login https://ladangtoto.ap9.co.id/ games online easy win ladangtoto link alternatif akses ladangtoto ladangtoto login resmi ladangtoto2 ladangtoto resmi gacor situs bandar ladangtoto 66kbet starlight princess login ladangtoto resmi https://kinokuniya.co.id/modules/ladangtoto/ bandar togel ladangtoto https://slot-mahjong.dp3ap2kb.tabalongkab.go.id/ 66kbet 66kone ladangtoto slot777 gacor slot mahjong ways terbaik ladangtoto rtp maxwin https://slot-thailand.dp3ap2kb.tabalongkab.go.id/ slot gacor mahjong pg soft slot gacor thailand gampang menang 66kbet Link Starlight slot777 Ying77 Slot Zeus Ying77 Anti Rungkad GB777 slot thailand ying77 akun pro link alternatif ok88slot link ok88slot mahjong ways https://joker123.abhatigroup.com/ https://pg-slot.abhatigroup.com/ RajaJp Official https://raja88.abhatigroup.com/ https://ladangtoto.alfabeauty.co.id/ https://66kbet.abhatigroup.com/ https://ladangtoto.pt-kcb.co.id/ https://ok88.sasakala.id Fun77toto Terbaru Fox77 Terlengkap Slot Thailand Link Ladangtoto Withdraw Togel Official PGSlot Resmi raja88jp resmi link slot gacor ok88 888slot maxwin slot777 situs slot gacor server thailand ladangtoto bandar togel joker gaming https://ying77.smkrifaiyahkesesi.sch.id/ https://slot88.nasuha.uinjambi.ac.id/ https://slot-dewa.pn-tanjungpinangkota.go.id/ https://stietribuana.ac.id/wp-includes/js/products/slot%20thailand/ https://stietribuana.ac.id/wp-includes/js/products/ladangtoto/ https://ladangtoto.stikesbantul.ac.id/ https://bkd.keeromkab.go.id/ https://indonesia.nasuha.uinjambi.ac.id/ https://ladangtoto.nasuha.uinjambi.ac.id/ https://ladangtoto.maimonides.edu/ https://ladangtoto.bisablog.com/ https://berita.dp3ap2kb.tabalongkab.go.id/