# 4-bit successive approximation

Discussion in 'General Electronics Chat' started by kaznov, Apr 18, 2012.

1. ### kaznov Thread Starter Member

Mar 10, 2012
30
0
guys how I would use the plot attached for a 5 bit converter if the input signal is 2.25 V and the input range is from -5 to +5 V

I know that I would divide the 5 bit segmants to 1/2, 1/4, 1/8, 1/16 and 1/32 respectively and I know that if I get a value higher than 2.25 would correspond to 0 and if lower than 2.25 would giive me 1 in term of digital code , but how would i calculate !

File size:
225.7 KB
Views:
39
2. ### t_n_k AAC Fanatic!

Mar 6, 2009
5,448
783
Hello kaznov,

Your threads look more like homework problems than material for electronic chats. It might be construed as "deceptive" and ultimately prove unhelpful to you if this really is homework. Start your threads on the Homework Forum if this is true. Keep in mind that conditions apply for help with homework.

Regards,

t_n_k

3. ### jegues Well-Known Member

Sep 13, 2010
735
43
You question isn't very clear, so I'll just give you some general information of successive approximation.

So if you want to use say a 5 bit converter, your first guess should be in the middle of the range. (i.e. 10000)

The next thing you do is compare your guess to the analog value you are trying to convert.

If your guess is to low, you make your guess higher, like so,

11000

01000

And this is done until all 5 bits have been determined.

This adding and clearing of individual bits within the 5 bit string can be done with OR and XOR statements in conjunction with a comparator comapring the analog signal you wish to convert. This can all be accomplished within software (aside from the comparator) if you are using say a MCU to do the conversion.

If not, I'm sure there is a way you can achieve the same result using hardware.

Hope this helps,

Cheers!

Last edited: Apr 18, 2012