|
Measurement and
Instrumentation Lab.
Project Report.
Table of contents.
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. 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.
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. 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 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.
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 ICs. 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.
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 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. HEXADECIMAL DISPLAY UNIT. The display is hexadecimal. We wanted it to be decimal output but we
could not make it. There were ICs, 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. 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 Microsims
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 Problems. Helped by: We were helped by a number of people. They include
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.
Reference:
By: U.Tietze and Ch.Schenk. (1991) By: Jhon Markus (1974) By:Lawrence M.Thompson Instrument Society of America. COST OF THE PROJECT.
|