Académique Documents
Professionnel Documents
Culture Documents
by Adrian S. Nastase
1/24/2015, retrieved from: http://masteringelectronicsdesign.com/an-adc-and-dac-least-significant-bit-lsb/
Articles on Internet and books show how to calculate the Least Significant Bit (LSB),
but they take into consideration either the voltage reference (Vref) or the full scale
(FS) of the ADC or DAC. Many times this leads to confusion, as a few messages I
received from my readers show. Therefore, this article shows both ways of defining
the LSB, so that people will have a clear understanding how to treat an ADCs
(Analog-to-Digital-Converter) or DACs (Digital-to-Analog-Converter) LSB.
What is an LSB? The LSB is the smallest level that an ADC can convert, or is the
smallest increment a DAC outputs. Both converters are used at the boundaries
between the analog and digital realms, making it possible for the analog circuits to
talk to the digital ones and backwards.
To define an LSB, lets not look, for the moment, at articles or text books. One of
the recommendations I make is this: When in doubt, read the manufacturers data
sheet. So, let us look in an ADC data sheet. The manufacturer writes in the data
sheet all the information one needs about that particular component. Sure, nothing
is perfect in this world, some info we need might not be there, but in the case of the
LSB, I still have yet to see an ADC or DAC data sheet without the LSB definition in
some form or another.
The ADC needs a voltage reference to convert an analog signal into a digital word.
Depending on the number of bits it has, the ADC divides the voltage reference in
small levels called counts. For example, if this is an 8-bit ADC, the counts will look
like those in Figure 1. In an 8-bit ADC there are 28 = 256 counts.
Figure 1
One count is 1 LSB, and is defined as follows:
(1)
Figure 2
In our 8-bit ADC example, if the voltage reference is Vref = 5V, then the LSB and FS are:
(5)
As you can see, and ADC can never reach its Vref but, as the number of bits is higher, it gets
very close to its reference voltage. The same can be said about a DAC.
Moreover, from equation (1), we can write the mathematical relation between Vref and LSB as
follows:
(6)
If we replace Vref in equation (3), and after calculations, we can write the definition of the LSB
as a function of the ADCs full-scale, as in equation (7).
(7)
This is the trouble, as the LSB has two definitions, equations (1) and (7). Both of them are valid,
and some authors are ambiguous or confused about them. I have seen articles in which Vref is
considered the component full-scale, which is the premise that generates subsequent wrong
definitions.
Therefore, all one needs to remember about the LSB is its definition, as follows:
(8)
>>> <<<
Here are some data sheet examples:
AD7823, 8-Bit ADC, manufacturer Analog Devices
If Vref = 2.5 V then
1LSB = 9.766 mV,
FS = Vref 1 LSB = 2.490234 V
Thank you for this post. I needed to convert lsb to fs and searched on google. Boom, the
second article on the first page. Thank you for doing this. Great website also.
Reply
2. naveen says:
September 21, 2010 at 4:18 am
Thank you for this article. It has cleared all my doubts regarding LSB.
Reply
3. Adrian S. Nastase says:
September 21, 2010 at 5:56 pm
Naveen and Chris. Thank you for your comments. I am glad you liked this article and the
website in general.
Reply
4. vic says:
December 21, 2011 at 11:08 am
I have been looking for clear explanation of this for some time. thank you very much for
creating this article.
Reply
5. Ash says:
December 14, 2012 at 12:20 pm
what if input signal range is given in stead of reference voltage and full scale voltage
ex: 0-10 v
Reply
o
Use equation 7 in this article to determine the least significant bit. At minimum,
you need to know the number of bits the ADC is made for. If full scale is FS =
10V and the number of bits is, say, N = 12, LSB = FS / (2^N -1) which is 2.442
mV.
The input signal range will not help you because you need to know the ADC
resolution to determine the LSB.
Reply
8. sunil says:
August 16, 2014 at 5:55 pm
10 bit dac has a full scale output of 5v. if lsb changes by one bit what will be the change
in output voltge
Reply
o
DAC has a voltage reference Vref = 5V, then the least significant bit is given by
equation 1 in this article: LSB = Vref / 2^N = 5V / 2^10 = 4.883 mV.
Then the fulls scale, FS is given by equation 3: FS = Vref 1 LSB = 5V 4.883
mV = 4.99512 V.
Then the change in the output voltage by 1 LSB is deltaV = 4.883 mV.
Reply