Home

 

Measurement and Instrumentation Lab.

Project Report.

Successive Approximation ADC.

 

Table of contents.

  1. Objective.
  2. Introduction
  3. Different techniques of analog to digital conversion.
  4. Principal.
  5. Designing and component details.
  6. PCB design.
  7. Problems.
  8. Layout.
  9. Helped by:
  10. References.
  11. Cost and Expenses.
  12. Operating Manual, Lab Instructions.

OBJECTIVE.

Objective of the project was to make a LAB Apparatus which would give the students of third Year Electrical Engineering a better understanding of Analog to Digital conversion in general, with a deep insight into the operation of Successive Approximation Technique Analog to Digital Converter.
Due to the reason that it was to be used as a LAB Apparatus, we had to make the outlook of the project as an instrument. Two analog Voltmeters are an indication of that. Large display is used to make it easy for the student to take readings. Binary output provides another way of interpreting the result.
The students will have to observe the step by step process of conversion, calculate the digital equivalent, and then calculate the QUANTIZATION NOISE.
We have worked, under the direction of Dr. Muhammad Jahangir Ikram, to make it work and look like an Instrument of international standards. Though due to financial and technical restraints we could not achieve that but the users and the teaching faculty still approved it.

INTRODUCTION

For the past twenty years or so, due to the rapid growth of semiconductor technology, more and more emphasis is being laid on digital systems because of their relative advantages over analog systems. Not only are digital systems more immune to noise and distortion, they are also more economical than analog systems and increasing the number of bits in the system can increase precision simply. Analog to Digital conversion of a signal is the first step towards transformation of a system from continuous domain to discrete domain.

Needless to say, almost all information that we generate or perceive is inherently analog in nature. Processing and Transmission of this information signal in analog form has certain drawbacks in terms of distortion and interference over a transmission medium and the introduction of both external as well as internal noise. Digital systems do not suffer from this drawback and are hence ideally suited for information processing. But, until recently, digital systems required costly systems and large bandwidths. Nowadays, these hassles are no longer there except in the most high-speed systems. Technology barrier for audio systems has almost entirely been removed, and soon, with the introduction of HDTV, all video signals would be digital as well.

Analog to digital conversion of information signal is the first step towards digitizing a system. After this, the digital counterpart of the information is processed in a digital system the output of which can be reconstructed in analog form by digital to analog converter. This is shown schematically below:

ANALOG SYSTEM

Analog Input Signal à Analog Processing System à Analog Output Signal

DIGITAL SYSTEM

Analog Input Signal à A/D Conversion à Digital Processing System à D/A Conversion à Analog Output Signal

DEFINING TERMS

RESOLUTION:

Resolution of a converter represents the number of digital bits obtained at the output of the converter, higher the number of bits, greater the accuracy. Our design has an 8-bit resolution.

CONVERSION TIME:

It is the time required, in seconds, for completion of one conversion. Generally speaking, this depends on the frequency of the clock used. In our design, it has an upper limit of 3.7ms or 270 samples/second.

ANALOG TO DIGITAL CONVERSION TECHNIQUES

All A/D converters are hybrids of analog and digital systems, and essentially all employ compurgator and counter circuits. They all return a number in binary form that is directly proportional to the input analog voltage.

Digital output = k x Analog Input

When the input is zero, the output is zero and it is some number for a reference voltage, either applied separately or integrated in the circuitry of the A/D converter.
We now describe some of the most common A/D conversion Techniques. The one that we have used will be described in the end.
There are basically five A/D Conversion Techniques.

  1. Single Slope A/D Converter.
  2. Dual Slope A/D Converters
  3. Staircase A/D Converters
  4. Successive Approximation A/D Converters
  5. Flash A/D Converters

Single Slope A/D converters

Single Slope A/D converters employ a ramp generator whose output increases linearly with time. This ramp voltage is applied to one of the inputs of a voltage comparator whose other input is connected to the input analog voltage to be digitized. The output of the comparator controls a counter circuit, which counts clock pulses of a certain frequency. The comparator continuously compares the two voltages (the input voltage and the ramp voltage generated by the A/D converter) and outputs an enable signal for the counter as long as the input voltage is greater than the voltage of the ramp generator. As soon as the ramp voltage rises above the input voltage, the comparator generates a disable signal for the counter, which immediately stops counting. The count on the counter is a measure of the time required for the disable signal to appear. Since the count is a measure of time, the final count represents the time required for the ramp voltage to increase from zero & reach a voltage level equal to the input voltage. The higher the input voltage, the longer will be the duration of the enable signal and larger will be the count on the counter.

 

 

Dual Slope Converters

Dual Slope converters have essentially the same principle as a single slope converter. Here, the input voltage controls the slope of the ramp generator. The ramp rises with a slope proportional to the input voltage. The circuitry is such that after a fixed time t0, the ramp generator stops generating this positive ramp & generates a negative ramp of a fixed slope. The output of the ramp generator drops from what ever maximum voltage level reached at the end of the positive ramp towards zero linearly at a rate that is independent of the input voltage. Right from the start of the positive ramp generation process, a counter measures the time interval like in Single slope converter and stops as soon as the output of the ramp generator drops to zero. The output count is a measure of the total time required for the process. The time t0 is fixed. The time required for the voltage level to drop to zero depends on the final voltage level reached at the end of the positive ramp generation cycle, which in turn depends on the slope of the ramp, and hence the input voltage. The total count therefore is a linear function of the input voltage. This approach is shown graphically below.

 

 

Successive Approximation Converters.

Successive approximation starts with an approximation of the input voltage and compares the analog level of this approximation with the input voltage. If it is higher, then the approximation is lowered otherwise it is increased. This approximation starts with the most significant bit (MSB) & proceeds towards the LSB. For an eight-bit system, the eighth bit is changed first from 0 to 1. If the output is larger than input voltage, it is set back to 0 and then the next bit is changed, otherwise it is left as it is and the next bit is tested. This technique is faster than single & dual slope conversion techniques & requires a maximum of 64 approximations to complete conversion.

Flash Converters

These are the fastest types of A/D converters. No counting process is performed, instead a number of digital levels are already fixed in the circuitry and they are compared with the input voltage. A logic circuit analyses the output of the comparator circuits and determines which digital voltage level is closest to the input voltage. Since no counting or ramp generation is involved, the time required for conversion is very small.
Flash converter circuits require a very large number of comparators. An n-bit flash converter requires 2^n - 1 comparators and the logic circuitry will have 2^n -1 inputs and n outputs. For an 8-bit system, 255 comparators will be required and the logic circuitry will have 255 inputs and 8 outputs. Due to this complexity, Flash converters are very expensive.
A more common approach is to use the half-flash technique. For an 8-bit system, two 4-bit flash converters are connected, one for the upper 4-bits and one for the lower four bits. One converter generates the MSB, the output of which is D/A converted and subtracted from Vin and fed into the other converter which generates lower 4 bits. This system requires 30 comparators compared to 255 for a full-flash system.

STAIRCASE A/D CONVERTERS

Staircase A/D converters employ almost the same technique as single slope A/D converters. The major difference is that they do not have any ramp generator mechanisms. Instead, as we shall see, they have a staircase type of ramp that is generated due to its circuitry.
The principle of operation is very simple. The A/D converter has a voltage incrementer circuit whose output is incremented by a small amount every clock cycle. This voltage converter has known Digital values. As soon as the generated voltage just becomes greater than the input voltage, the incrementing process is halted and the digital value corresponding to the generated voltage becomes the output. The following flowchart shows this process.

 

The following graph shows the V generated voltage as a function of time together with the input voltage.

 

Circuit Implementation of Successive approximation ADC.

Circuit Blocks.

  1. Clock, using NE555 timer IC.
  2. Binary counter and decoder unit, CD4017
  3. OR-Gates and Latches, 74LS32 and 74LS175.
  4. Buffer 74LS245.
  5. Digital to analog converter, DAC0808, with voltage to current converter, LF351.
  6. Comparator, LF351.
  7. Hexadecimal display unit.
  8. Analog Voltmeters.
  9. Power supply.

THE CLOCK UNIT:

A simple monostable multivibrator using a 555 timer IC constitutes the clock IC. Generally, the accuracy of A/D converters do not depend on the timing accuracy or the duty cycle of the clock pulse used since the time interval is not measured in staircase converters (in case of Single Slope and Dual Slope converters, accuracy does depend on the stability of the clock frequency). In case of Successive approximation converters, only the number of pulses matters, not their frequency because their number is what is counted and converted. Therefore there is no need for a highly stable crystal clock circuit and a 555 timer IC provides sufficient rise time and fall time for proper triggering of digital counter IC’s.
We have used the IC in a monostable mode i.e. when a trigger pulse is applied it triggers the IC, which gives a pulse of fixed duration, triggering the circuit.
The figure below shows the circuitry used to construct the clock. Note that although the accuracy of the converter does not depend on the frequency or the duty-cycle, the conversion time does depend on the clock frequency used. Higher the frequency, smaller would be the conversion time. Generally speaking, all types of converters complete a conversion within a specified number of clock cycles. Using a clock of higher frequency can therefore speed up the conversion process. High frequency clocks have other disadvantages like the rise & fall time might not be fast enough for proper triggering of the counter circuits etc. Most counters IC’s available commercially can operate with a few MHz, the 74HC and 74HCT series can operate at clock frequency of up to 50MHz. A 555 timer can produce a stable clock pulse of up to 500kHz (manufacturers designated preferred upper limit of operation). An 8-bit Successive approximation would require a maximum of 8 clock cycles for a conversion process to complete. Hence the maximum conversion rate achievable with the circuitry used is roughly 62500 conversions per second, this is what usually required by most audio systems, but more than enough for typical data acquisition applications.

BINARY COUNTER / Decoder:

A single chip, CD4017 of 10 bit CMOS binary counter and Decoder is used. This counter has added feature of counts enable, Master reset, clock inhibit and carryout. Presets are used to reset the whole system and hence the preset enable pin is connected to count 10 and Master Reset of the circuit using an OR gates. This is a CMOS IC and can operate up to 13.8MHz.

Count frequency 13.8 MHz.
Active high decoded outputs
Carry output
Trigger on high to low or low to high.
Cascadable.

OR – GATES AND LATCHES.

The output of the counter and the comparetor are checked in the OR-Gates. The output of the OR-Gate is latched. The Latched data is then available for the display. The OR-Gate is 74LS32, which are a very common MSI chip, and the LATCH is 74LS175. It is 4- Bit bistable latch, with two enable inputs. We needed a latch with independent enable pins; therefore we could only use 2 – Bits out of 4 available.

BUFFER 74LS241.

The output of the circuit is buffered by this IC, which I Octal Buffer / Line driver. It has Non inverted 3 state outputs. It has PNP inputs, which reduce DC Loading. It may also be used for out put resistance as low as 133 ohms.
The need of the buffer arises when we need many loads such as LED’s to be driven by the circuit. The logic circuits always have very low fan out. This buffer is used to drive BINARY OUPUT LED’s and the HEXADECIMAL OUTPUT DISPLAY.
This chip has two independent 4-bit drivers, which have enable. Noise margin of the chip is increased to 400mV.

THE COMPARATOR:

The function of a comparator is to compare the input voltage with that generated by the D/A converter. Its circuitry is very simple, just a simple operational amplifier used in open loop mode with a diode & resistor network at the output so that when the output of the operation amplifier goes to -Vcc, the diode-resistor network forwards zero volts. Offset voltages of the op-amp should be minimized with an offset null method, but this method is impossible to implement is the open loop mode. Offset voltages would cause errors in output but at the most by one LSB. The IC used is LF351, which has FET, inputs and therefore draws very little current. The frequency bandwidth product is about 2MHz. The DAC Data sheet recommends this chip, as it does not have OFFSET problems as are in u741 series.

In the above circuit, if V (generated) is less than Vin, output at Enable/CC is low and as V (generated) just becomes greater than Vin, the output goes high.

DIGITAL TO ANALOG CONVERTER:

The digital to analog converter generates the analog counterpart of the digital output of the binary no. At the latch. Thus if the digital count increases, the output of the D/A converter increases as a step. This generated voltage is compared with the input voltage by the comparator.
The DAC used is an IC chip DAC0808. This approach, although very simple, requires high precision and stability at the power supply Vcc. All IC’s used in the circuits are TTL IC’s and would operate only for Vcc = 5v. Vcc acts as Vref, the reference voltage level. It has a conversion time of 150ns. Specification sheets are attached.

HEXADECIMAL DISPLAY UNIT.

The display is hexadecimal. We wanted it to be decimal output but we could not make it. There were IC’s, that we found in the data sheets, could do the task at hand, but unfortunately they were unavailable in the local market. We contacted the manufacturer TEXAS INSTRUMENTS, USA about their product. They informed us that the chip is obsolete and will not be available. We were left with only one option and that was to get an EPROM and program it to display the required output, the solution using discrete AND / OR Gates was discarded due to its complexity and financial constraints.
We finally came up with this Hexadecimal output system. We used 74LS47 BCD to Seven Segment Display Drivers. It also has some flaws, which could have been improved. The output is not true hexadecimal as it cannot display A, B, C, D, E & F. It is only a code, which we have printed onto the panel for user’s convenience. We also designed a circuit, which would show when the output is a code of hexadecimal system.

ANALOG VOLTMETERS.

We faced a lot of problems in acquiring these analog voltmeters. At first when we surveyed HALL Road we could not find any such voltmeter for Panel use. We were directed to scientific equipment market in "Purani Anarkali", where we did find these meters, and bought two of them immediately. Unfortunately we did not check the accuracy level and loading effect of these meters. When checked back at home they had an input resistance of 180 ohms. We again started our search and this time had to go to "Brandreth Rd." where we found the Panel meters of the required range. They were of course expensive, each of it costing Rs. 250.

PCB Design.

PCB was one of the hardest part of the project. We started designing the PCB using Microsim’s PCBoards. We had to learn it from the scratch. Its autorouter feature was the main attraction in using this software. But due to its Evaluation restriction and the complexity of our circuit posed a lot of problems
We then started searching for software, which resulted in PROTEL’s PCB, which has Schemetic program as well. We tried a lot but could not make the autorouter work. Though it made good manual PCB’s but we thought that best results would be obtained if we use autorouter. We then bought ORCAD EXPRESS which had PCB design option. This too went into the drain when we came to know that it needed an additional package for PCB design.
At last we contacted our seniors and one of them gave us CADSTAR, fully functional autorouter. This too had problems, as it was a copied version. It worked though, autorouter worked in WIN95 environment and the printing worked in the WIN3.11 Environment.
The result of this effort is that we now have good software, good experience and a good PCB.

Problems.

  1. During the research part of the project, we faced difficulty in obtaining a circuit, in which we were helped out by Dr. Muhammad Jahangir Ikram, the project Advisor.
  2. Getting a level triggered JK flip-flop proved to be impossible. The result was that we shifted to LATCH, which had it’s own problems. It was a 4-Bit LATCH with 2-Enable only. We needed independent Enable system. This was over come by using 4 LATCHES instead of two.
  3. Above all we had to display our result in DECIMAL form, from the binary output. This also proved to be impossible for us, though now when we think of it, it was not that difficult. We could have used EPROM, Micro Controllers or EEPROM.
  4. PCB did make us very uncomfortable, getting the software, learning it, and then finding out that it cannot help you is not very soothing.
  5. Soldering the double-sided PCB was not an easy job either. Due to the reason that connections were present on both the sides, IC socket use was difficult.
  6. Analog voltmeter was a headache. They made us go to the places where we nervier would have gone, PURANI ANARKALI, BRANDERTH Rd. etc.
  7. The biggest problem was of the finance. We had to buy the basic hardware for the electronics work, e.g. Solder Iron, Digital Multi meter, Breadboard, etc.

Helped by:

We were helped by a number of people. They include

  1. Dr. Muhammad Jahangir Ikram. He was our project director. He guided us with the basic circuitry and the principal. He also guided us about the layout of the panel.
  2. Mr. Tahir Rabbani Shah. He helped us in simulating the circuit on WORKBENCH. He also guided us in the component selection.
  3. Mr. Ali Raza Butt. He helped us in circuit implementation, working, and drilling of the PCB.
  4. Mr. Hamid Rahim Sheikh. He gave us the software for the PCB

 

Layout.

The layout of the panel was suggested by Dr. Muhammad Jahangir Ikram. The panel was designed using TINY CAD. It was printed on the EPSON STYLUS 400 Color Printer. We then wrapped a protective cover of clear plastic sheet on it, so that it may not be damaged. Individual papers were glued together to make the panel diagram.

The panel has following components.

  1. Variable input analog voltage. This is provided by a potentiometer of 100Kohms in series with a 100Kohms-fixed resistor. Maximum output voltage can only be 2.5 V.
  2. Analog voltage meter (0v to 3v). This meter has input impedance of about 10Kohms, which is not acceptable. Hence its input is buffered using LF351.
  3. Binary out put LED’s. These LED’s give binary combination at the output representing the digital approximation of the input voltage.
  4. Hexadecimal display. It shows the hexadecimal out put of the digital output voltage.
  5. Analog volt meter. It shows the analog equivalent voltage of the digital out put from the circuit.
  6. Master reset. It is to reset the whole system to a predefined value.
  7. Clock Advance. This button would advance the clock and next bit would be checked
  8. Power. This is to power the circuit. It is NOT FUSED.

Reference:

  1. Electronic Circuit Design and Application.
    By: U.Tietze and Ch.Schenk. (1991)
  2. Guide book of Electronic Circuits
    By: Jhon Markus (1974)
  3. Basic electrical measurement and Caliberation
    By:Lawrence M.Thompson
    Instrument Society of America.

 

COST OF THE PROJECT.

Item

Cost.

Analog meters

2*250 Rs. = 500 Rs.

PCB design

= 600 Rs.

Power supply

60+40+20+40+60+40=260 Rs.

Display System

250+150+20+80=500 Rs.

Main circuit board.

800+100+300=1200Rs

Equipment for checking

400+250=750Rs.

Faulty components / Equipment

200+500=700Rs.

Panel and Casing

=500 Rs.

Software

=1200 Rs.

Print outs

=1000 Rs.

Total

=7210 Rs.