Data problem for acquisition

  • Thread starter JI567
  • Start date
  • #1
174
0

Homework Statement


Question is determine the maximum amount by which the Analogue to digital converter output can differ from the analogue input when a 8-bit Analogue to digital converter has a full scale input of 2.55 V. It has a specified error of 0.1% full - Scale.

Homework Equations



% resolution = step size/ full scale *100%

The Attempt at a Solution



I just did 0.1% * 2.55 to get the specified error which was 2.5*10^-3. Then I calculated the resolution which was (2.55/2^8-1)*100% = 0.01. So for each resolution the error was 2.5*10^-3. Thus, maximum amount by which it could differ was 0.01*2.5*10^-3 = 2.5*10^-5. Is this correct at all? Please help.....!
 

Answers and Replies

  • #2
berkeman
Mentor
59,078
9,186

Homework Statement


Question is determine the maximum amount by which the Analogue to digital converter output can differ from the analogue input when a 8-bit Analogue to digital converter has a full scale input of 2.55 V. It has a specified error of 0.1% full - Scale.

Homework Equations



% resolution = step size/ full scale *100%

The Attempt at a Solution



I just did 0.1% * 2.55 to get the specified error which was 2.5*10^-3. Then I calculated the resolution which was (2.55/2^8-1)*100% = 0.01. So for each resolution the error was 2.5*10^-3. Thus, maximum amount by which it could differ was 0.01*2.5*10^-3 = 2.5*10^-5. Is this correct at all? Please help.....!
You correctly calculated 0.1% of full scale as 2.55mV. And the resolution is 10mV per step as well. Calculating the overall accuracy is a bit trickier, depending on how you want to define it.

As long as the output of the ADC is monotonic (no missing codes, etc.), then the overall error would be how early/late the output code is versus a swept input voltage. Does your textbook show you a figure of how the overall error is calculated versus the step size of the ADC?
 
  • #3
174
0
You correctly calculated 0.1% of full scale as 2.55mV. And the resolution is 10mV per step as well. Calculating the overall accuracy is a bit trickier, depending on how you want to define it.

As long as the output of the ADC is monotonic (no missing codes, etc.), then the overall error would be how early/late the output code is versus a swept input voltage. Does your textbook show you a figure of how the overall error is calculated versus the step size of the ADC?
Nope no diagrams on textbook. This question is all I was given. How do I calculate the maximum amount? Do I just add up the 2.55 mV and 10 mV?
 
  • #5
174
0
They don't unfortunately....Are you sure its really so complicated? We didn't study those things in the lectures....aren't there some easy formulas to solve this question?
 
  • #6
gneill
Mentor
20,913
2,862
Hi JI567,

While it's not clear to me what the specifications of accuracy and resolution are meant to imply in the context of your course, I was thinking that it might be worthwhile considering what happens when an actual value lands somewhere in a 10 mV step range of the converter but has an error of +/- 2.5 mV associated with it. How far away from the the true value might the ADC's reading be if it has to round up or down to a step? A sketch might help.
 
  • #7
174
0
Hi JI567,

While it's not clear to me what the specifications of accuracy and resolution are meant to imply in the context of your course, I was thinking that it might be worthwhile considering what happens when an actual value lands somewhere in a 10 mV step range of the converter but has an error of +/- 2.5 mV associated with it. How far away from the the true value might the ADC's reading be if it has to round up or down to a step? A sketch might help.
if you are talking about the +/- range then shouldn't it just be 2*2.5 mV?
 
  • #8
gneill
Mentor
20,913
2,862
if you are talking about the +/- range then shouldn't it just be 2*2.5 mV?
What's your reasoning? As I mentioned, a sketch of the situation may be helpful. Look for the worst case situation.
 
  • #9
174
0
What's your reasoning? As I mentioned, a sketch of the situation may be helpful. Look for the worst case situation.
a sketch of what though? Like what on the y axis and what on the x axis?
 
  • #10
gneill
Mentor
20,913
2,862
Sketch one step of the ADC's "stairstep" transfer function (a 10 mV jump between output values). Imagine that a measured value falls somewhere in that range so that the when the ADC does the conversion it must round either up or down to the nearest 10 mV level. But the input value has an error of +/- 2.5 mV associated with it, so for a given actual value it could fall anywhere within a spread of values on the sketch. Find the worst case scenario for the difference between the actual value and the "measured" value.
 
  • #11
174
0
Sketch one step of the ADC's "stairstep" transfer function (a 10 mV jump between output values). Imagine that a measured value falls somewhere in that range so that the when the ADC does the conversion it must round either up or down to the nearest 10 mV level. But the input value has an error of +/- 2.5 mV associated with it, so for a given actual value it could fall anywhere within a spread of values on the sketch. Find the worst case scenario for the difference between the actual value and the "measured" value.
A measured value falls within a range of 10 mV? I mean how am I supposed to sketch it? I don't have any other points or values. Sorry I haven't been taught stairstep transfer function in lectures. But anyways why don't we just write 10mv - 2.5 mv as the measured value for the worst case scenario then? As for the actual value I don't know what it is as its not given in the question.
 
  • #12
gneill
Mentor
20,913
2,862
A measured value falls within a range of 10 mV? I mean how am I supposed to sketch it? I don't have any other points or values.
The resolution of the ADC is 10 mV --- that's the value that you calculated. It can only return values in 10 mV increments. Any input value applied to the ADC will fall within some 10 mV step, and will be rounded to the nearest 10 mV value. So an input of 1.322 V would be rounded to the 1.23 level, while an input of 1.326 would round to the 1.33 level.
Sorry I haven't been taught stairstep transfer function in lectures.
Picture a staircase with a slope of 45 degrees. Each step has a height of 10 mV. Each level corresponds to one of the 28 possible outputs of the ADC.
But anyways why don't we just write 10mv - 2.5 mv as the measured value for the worst case scenario then? As for the actual value I don't know what it is as its not given in the question.
You don't need a particular actual value. You propose some value that will fall somewhere in the ADC's input range. A particular input value isn't important. It's the fact that any input value will be rounded to the nearest 10 mV level.

So yes, 10 mV - 2.5 mV sounds like a reasonable worst-case scenario:

Fig1.gif
 
  • #13
174
0
The resolution of the ADC is 10 mV --- that's the value that you calculated. It can only return values in 10 mV increments. Any input value applied to the ADC will fall within some 10 mV step, and will be rounded to the nearest 10 mV value. So an input of 1.322 V would be rounded to the 1.23 level, while an input of 1.326 would round to the 1.33 level.

Picture a staircase with a slope of 45 degrees. Each step has a height of 10 mV. Each level corresponds to one of the 28 possible outputs of the ADC.

You don't need a particular actual value. You propose some value that will fall somewhere in the ADC's input range. A particular input value isn't important. It's the fact that any input value will be rounded to the nearest 10 mV level.

So yes, 10 mV - 2.5 mV sounds like a reasonable worst-case scenario:

View attachment 77089
Alright that's some new information....so what's the answer to the question? 7.5 mV?
 
  • #14
gneill
Mentor
20,913
2,862
Alright that's some new information....so what's the answer to the question? 7.5 mV?
By Forum rules I can't give you an answer to that... Homework Helpers are not allowed to provide solutions directly. We can provide hints, corrections, and background information to help you arrive at a solution yourself. I can state that I don't find any fault with your reasoning :)
 
  • #15
174
0
By Forum rules I can't give you an answer to that... Homework Helpers are not allowed to provide solutions directly. We can provide hints, corrections, and background information to help you arrive at a solution yourself. I can state that I don't find any fault with your reasoning :)
Why shouldn't the answer be 12.5 mV? I mean isn't that the maximum value obtained? I thought that's what the question was asking for.
 
  • #16
gneill
Mentor
20,913
2,862
Why shouldn't the answer be 12.5 mV? I mean isn't that the maximum value obtained? I thought that's what the question was asking for.
Can you sketch a situation where an input would lead to a 12.5 mV difference? Remember, the ADC will round to the nearest 10 mV level.
 
  • #17
174
0
Can you sketch a situation where an input would lead to a 12.5 mV difference? Remember, the ADC will round to the nearest 10 mV level.
so you mean because the resolution of the ADC is 10 mV the difference can't be higher than 10mV but lower than it?
 
  • #18
gneill
Mentor
20,913
2,862
so you mean because the resolution of the ADC is 10 mV the difference can't be higher than 10mV but lower than it?
Yes, since the possible error in the input value is less than half a step size. There's no input value that would put its error range more than a half-step away, which is what would be required to jump a whole 10 mV away:

Fig2.gif


Slide the actual value and its error range up and down on the stairstep and see what values the extremes of the error range would round to.
 
  • #19
174
0
Yes, since the possible error in the input value is less than half a step size. There's no input value that would put its error range more than a half-step away, which is what would be required to jump a whole 10 mV away:

View attachment 77090

Slide the actual value and its error range up and down on the stairstep and see what values the extremes of the error range would round to.
well lets say at 1 V. For the upper part will it be 1.0025 V? which will be rounded to 1.003? and for the down part it will be 0.9975 so will be rounded to 0.998?
 
  • #20
gneill
Mentor
20,913
2,862
well lets say at 1 V. For the upper part will it be 1.0025 V? which will be rounded to 1.003? and for the down part it will be 0.9975 so will be rounded to 0.998?
10 mV is 0.01 V. So you get two decimal digits in any rounded result. Both of those values would round to 1.00 V, the nearest step.

Fig3.gif
 
  • #21
174
0
10 mV is 0.01 V. So you get two decimal digits in any rounded result. Both of those values would round to 1.00 V, the nearest step.

View attachment 77091
Okay so for this question each resolution of 10 mV has an maximum and minimum error of 2.5 mV. Since the error in input is not half step size so it will always be rounded back to 10 mV so we can't have 12.5 mV. But how are we going to have 7.5 mV? I mean that also gets rounded to 10 mV. so shouldn't the answer just be 10 mV?
 
  • #22
gneill
Mentor
20,913
2,862
Take another look at the image in post #12. If that actual value is nudged upwards just a tiny, tiny bit, what will be the difference between the actual value and the value reported by the ADC if the error happens to be at the top of its range?
 
  • #23
174
0
Take another look at the image in post #12. If that actual value is nudged upwards just a tiny, tiny bit, what will be the difference between the actual value and the value reported by the ADC if the error happens to be at the top of its range?
it gets triggered to the next 10 mV step. The difference will be the actual value + 2.5 mv error - actual value. right?
 
  • #24
gneill
Mentor
20,913
2,862
it gets triggered to the next 10 mV step. The difference will be the actual value + 2.5 mv error - actual value. right?
No, it will be the step value that is reported minus the actual value (well, technically its the difference between the actual value and reported value. The same situation could be set up for the bottom of the error range of the value, resulting in a rounding down to the next lower step).
 
  • #25
174
0
No, it will be the step value that is reported minus the actual value (well, technically its the difference between the actual value and reported value. The same situation could be set up for the bottom of the error range of the value, resulting in a rounding down to the next lower step).
So in the diagram if the actual value is 1.00 V then what's its reported step value?
 

Related Threads on Data problem for acquisition

  • Last Post
Replies
8
Views
2K
  • Last Post
2
Replies
27
Views
1K
Replies
9
Views
2K
Replies
15
Views
1K
Replies
2
Views
1K
Replies
12
Views
9K
Replies
6
Views
738
Replies
2
Views
4K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
4
Views
1K
Top