1、 Chapter 5 Data Acquisition Circuits Prof. Dehan Luo第五章第五章 数据采集电路数据采集电路Section One Sample and hold (第一节第一节 采样与保持)采样与保持)1、Architecture of data acquisition systems2、Sample & hold and Basic S/H circuit3、S/H response characteristics Section Two Multiplexing circuits(第二节第二节 多路开关电路)多路开关电路)1、Multiplexers2、
2、FET analog switchesSection Three Analog to digital converters(第三节第三节 模数转换器)模数转换器)1、 Single slope or ramp2、 Successive approximation3、Dual slope4、Parallel or flashSection Four Digital to analog converters (第四节第四节 数模转换器)数模转换器)1、Binary weighted ladder2、R-2R ladder3、Pulse width modulation Intelligent Se
3、nsors System 5-1 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSection One Sample and hold 第一节第一节 采样与保持采样与保持Architecture of data acquisition systems Intelligent Sensors System 5-2 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan
4、 LuoSample & hold and Basic S/H circuit1、A Sample and hold (S/H) circuit hastwo basic operating modes(采样与采样与保持电路有两种基本工作方式)保持电路有两种基本工作方式)(a)Sample mode: The output follows the input(b)Hold mode: The output is held constant until sample mode is resumed (输出保持不变直到采样方式恢复)(输出保持不变直到采样方式恢复)2、The main applic
5、ation of S/H circuitsis to hold the input signal to anADC constant during conversion(采样保持电路主要应用是使加到(采样保持电路主要应用是使加到ADC上的上的 信号在信号在AD转换期间保持不变)转换期间保持不变) Intelligent Sensors System 5-3 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSample & hold and Basic S/H circuit
6、 (Cont.)(续)(续)3、Basic S/H circuit (基本(基本采样与保持电路)采样与保持电路)(1) Basic elements (基本元件)(基本元件): Voltage followers(电压跟随器),电压跟随器), FET switch(场效应开关(场效应开关)(2) Operation(工作原理)(工作原理)IC1 provides low Zout version of input signalQ1 passes the signal during sample and disconnects during holdC preserves the value d
7、uring holdIC2 is a high Zin op-amp to minimize capacitor discharge during hold Intelligent Sensors System 5-4 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSample & hold and Basic S/H circuit (Cont.)(续)(续)3、S/H Response parameters(采样采样/保持电路响应参数保持电路响应参数)(1)Apert
8、ure time: time required for the switch to open (50ns)(2)Droop: capacitor discharge (3)Acquisition time: switch operation plus capacitor charging time Intelligent Sensors System 5-5 School of Information Engineering开关断开时间电容放电时间开关闭合电容充电 Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSample & hold
9、and Basic S/H circuit (Cont.)(续)(续)4、Considerations for choosing C(电容(电容C的选择)的选择)(1)C should be large enough to minimize droop caused by leakage currents in Q1 and IC2(电容(电容C应大的足以使因应大的足以使因Q1和和 IC2漏电流而引起的放电为最小)漏电流而引起的放电为最小)(2)C should be small enough to track fast signals since it forms a low-pass fi
10、lter with Q1s ON resistance! (电容(电容C应小的足以快速跟应小的足以快速跟 踪低通滤波器输出信号,低通滤波器与踪低通滤波器输出信号,低通滤波器与Q1的导通电阻有关)的导通电阻有关)(3)In practice, the slew rate of the entire circuit is determined by IC1s output current and Q1s ON resistance(实践中,工作周期(实践中,工作周期 由由IC1的输出电流和的输出电流和Q1的导通电阻确定)的导通电阻确定) Intelligent Sensors System 5-6
11、 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSection Two Multiplexing circuits(第二节第二节 多路开关电路多路开关电路)MultiplexersA multiplexer is a circuit that allows you to select any of several inputs, as specified by digital control signals(多路开关是由数字控制信号确定多路输入多路开关是由数字控制信号确定
12、多路输入信号中任一路接通的电路信号中任一路接通的电路)Since analog switches are bi-directional, this circuit could also be used as a de-multiplexer!(由于模拟开关是双向的,由于模拟开关是双向的,它也可以用于反向多路开关它也可以用于反向多路开关) It could also be uses as a digital MUX since logic levels are just voltages(它也可以用于数字多路开关,因为逻辑电平是电压)(它也可以用于数字多路开关,因为逻辑电平是电压) Intell
13、igent Sensors System 5-7 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoMultiplexing circuits (Cont.) (多路开关电路)多路开关电路)(续)(续)FET analog switches(1)N-channel enhancement-mode MOS-FET(采用(采用N型通到型通到MOS-FET 场效应管)场效应管)(2)When Gate is grounded or negative, the FET is non
14、-conducting and Drain-source resistance in the order of 10,000M (当门极接地或为负电平时,场效应管截止(当门极接地或为负电平时,场效应管截止, (3)Bringing the Gate to +15V puts the drain source channel into conduction and Drain-source resistance in the order of 100. (门极加(门极加15V电压,使源极场效应管导通电压,使源极场效应管导通,此时,源极电阻为此时,源极电阻为100数量级)数量级) Intellig
15、ent Sensors System 5-8 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSection Three Analog to digital converters(第三节第三节 模数转换器)模数转换器)Single slope or ramp1、 Composed of three basic elements(三个基本元件组成)(三个基本元件组成)(1) A binary counter(二进制计数器(二进制计数器)(2) A digital-to-ana
16、log converter(数模转换器)(数模转换器)(3) An analog comparator (模拟电压比较器)模拟电压比较器) Intelligent Sensors System 5-9 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSingle slope or ramp(Cont.)(续)(续)2、Operation(工作过程)(工作过程)Counter is resetAnalog input is sampledWhile VA VB counter
17、 incrementsWhen VA=VB counter stops and binary code is available at the output(当(当V VA A=V=VB B ,计数器停止计数,计数器停止计数,输出端输出二进制数输出端输出二进制数)3、Characteristics(特点)(特点)Relatively slow since conversion time could be up to 2N, where N is the resolution of the ADC(由于转化次数可能达到(由于转化次数可能达到2N ,速度较慢,速度较慢,N是是ADC分辨率)分辨率)
18、 Intelligent Sensors System 5-10 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSuccessive approximation ADC (连续逼近式连续逼近式ADC) 1、 Basic architecture and elements (基本结构和元件)基本结构和元件)A digital-to-analog converterAn analog comparatorA control logic module(控制逻辑模块)(控制逻辑模
19、块)A successive approx. register(连续逼近式寄存器)连续逼近式寄存器) Intelligent Sensors System 5-11 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSuccessive approximation ADC (连续逼近式连续逼近式ADC)(续)(续) 2、Operation is based on a binary search (基于二进制搜索比较的工作过程)(基于二进制搜索比较的工作过程)(1) Initi
20、ally, the register provides an output corresponding to half the range (10000)(初始时,初始时, 寄存器提供输出寄存器提供输出 范围的一半值)范围的一半值)(2) If the analog input is greater, then MSB=1, else MSB=0 (输入大于寄(输入大于寄 存器值,最高位存器值,最高位MSB=1否则否则MSB=0)(3)The register performs the same operation from MSB to LSB (寄存器从最高位到最低位重复执行这一过程)寄存
21、器从最高位到最低位重复执行这一过程) Intelligent Sensors System 5-12 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSuccessive approximation ADC (连续逼近式连续逼近式ADC)(续)(续) 3、Characteristics(特点)(特点)(1) Conversion requires only N steps, where N is the resolution of the ADC(转换只需要(转换只需要N步
22、,步, N是是ADC分辨率)分辨率)(2) Conversion times of s are typical(典型的转换时间是微秒级)(典型的转换时间是微秒级) Intelligent Sensors System 5-13 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoDual slope ADC(双斜坡(双积分)(双斜坡(双积分)A/D转换器)转换器) 1、Architecture(电路结构)(电路结构) Intelligent Sensors System 5-1
23、4 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoDual slope ADC(双斜坡(双积分)(双斜坡(双积分)A/D转换器)转换器)(续)(续) 2、Basic elementsAn integrator(积分器)(积分器)A zero-crossing detector(过零检测器)(过零检测器)A binary counter(二进制计数器)(二进制计数器)Logic gates and switches(逻辑门和开关)(逻辑门和开关) Intelligent S
24、ensors System 5-15 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoDual slope ADC(双斜坡(双积分)(双斜坡(双积分)A/D转换器)转换器)(续)(续) 3、Characteristics(1)Very high resolution, but also slower (30 conversions/sec)(高分辨率,但速度慢,(高分辨率,但速度慢,30次次/秒)秒)(2) Insensitive to clock drift, RC dr
25、ifts and high-frequency noise( 对时钟漂移,对时钟漂移,RC漂移,漂移, 和高频噪声不敏感)和高频噪声不敏感)(3)Widely used in digital multi-meters广泛用于数字式万用表广泛用于数字式万用表) Intelligent Sensors System 5-15 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoDual slope ADC(双斜坡(双积分)(双斜坡(双积分)A/D转换器)转换器)(续)(续) 4、
26、Operation(1)Counter is reset and switch is connected to the analog input(计数器被复位,计数器被复位,开关被连接到模拟输入)开关被连接到模拟输入)(2)The integrator generates a negative ramp whose slope is proportional to the analog input (积分器积分器产生负斜坡,其斜率正产生负斜坡,其斜率正比于输入)比于输入) Intelligent Sensors System 5-16 School of Information Enginee
27、ring Chapter 5 Data Acquisition Circuits Prof. Dehan LuoDual slope ADC(双斜坡(双积分)(双斜坡(双积分)A/D转换器)转换器)(续)(续) 4、 Operation(3)The comparator goes HIGH, enabling clock pulses into the counter(比较器输出变为高电平,(比较器输出变为高电平,使输入脉冲进入计数器)使输入脉冲进入计数器)(4)When counter overflows, it resets to zero and the control circuit
28、switches the switch to a reference negative voltage(当计数器溢出时,被复位为零,(当计数器溢出时,被复位为零,控制电路切换开关到负参考电压端)控制电路切换开关到负参考电压端)(a)This causes the integrator to generate a positive slope ramp(b)When this ramp reaches zero, the comparator goes low and stops the counter, whose value represents the analog input Intel
29、ligent Sensors System 5-16 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoParallel or flash ADC (并联或快速(并联或快速A/D转换器)转换器) 1、Architecture(电路结构)(电路结构)2、Basic elements(基本元件)基本元件)A multiple voltage divider(多倍电压分压器)(多倍电压分压器)A set of comparators(一组电压比较器)(一组电压比较器) A prio
30、rity encoder(优先权编码器)(优先权编码器) Intelligent Sensors System 5-17 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoParallel or flash ADC (并联或快速(并联或快速A/D转换器)转换器)(续)(续) 3 、Operation(1)Analog input applied to all comparators(模拟输入加到比较器)(模拟输入加到比较器)(2)Priority encoder conver
31、tscomparator pattern into binary(优先编码器转换比较器输出为二进制数)优先编码器转换比较器输出为二进制数)4、Characteristics (1) Very fast (e.g., 8-bit ADCs capable of 20 million conversions/sec)(转换速度非常快)(转换速度非常快) (2)Very expensive for large N since the number of comparators is 2N-1(由于使用(由于使用2N-1个比较器,所以非常贵)个比较器,所以非常贵) Intelligent Sensor
32、s System 5-18 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoSection Four Digital to Analog converters(第四节第四节 数模转换器)数模转换器)Binary weighted ladder (二进制加权梯形电路)二进制加权梯形电路)1、Architecture Based on the summing op-amp circuit from chapter 4(基于第四章中的求和放大器)基于第四章中的求和放大器)(1)E
33、ach input resistor is twice the value of the previous one(每个电阻值是前一个电阻值的两倍)(每个电阻值是前一个电阻值的两倍)(2)Inputs are weighted according to their resistors (输入根据其电阻值被加权)(输入根据其电阻值被加权) Intelligent Sensors System 5-19 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoBinary weight
34、ed ladder (二进制加权梯形电路)二进制加权梯形电路)(续)(续)2、 Characteristics(1)The lowest value resistor R affects the MSB and must have the highest precision(最低位电阻影响最高位,(最低位电阻影响最高位,必须有高精度)必须有高精度)(2)This circuit is impractical for large N since it would require high precision resistors for a wide range (本电路对大(本电路对大N不实用,
35、因为在大范围中需要高精度电阻)不实用,因为在大范围中需要高精度电阻) Intelligent Sensors System 5-20 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoR-2R ladder (R-2R梯形电路)梯形电路)1、 Basic architecture and elements (1)2 N resistors ( 2N个电阻个电阻 )(2)An op-amp (一个运算放大器)(一个运算放大器)(3)N switches (N个开关)个开关) I
36、ntelligent Sensors System 5-21 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoR-2R ladder (R-2R梯形电路)梯形电路)(续)(续)2、Operation(1)SwitchesWhen bit Ik=1, the corresponding switch is connected to VREFWhen bit Ik=0, the corresponding switch is connected to GND(2)Assume
37、all the legs but one are grounded(a)The one connected to VREF will generate a current that flows towards the inverting input of the op-amp (接入接入VREF引脚产生电流流入运算放大器反相端)引脚产生电流流入运算放大器反相端)(b)This current is halved by the resistor network at each node (该电流在每个节点被二分之一分流)(该电流在每个节点被二分之一分流)(c)Therefore, the cur
38、rent contribution of each input is weighted by its position in the binary number (因此,每个输入电流由其所在位置的二进制数加权(因此,每个输入电流由其所在位置的二进制数加权 Intelligent Sensors System 5-22 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoR-2R ladder (R-2R梯形电路)梯形电路)(续)(续)3、The R-2R operation i
39、s better understood by redrawing the resistor network(重画(重画电路更容易理解电路更容易理解R-2R电路的工作)电路的工作)(1)In (b) only the MSB is ON(图(图b中只有最中只有最 高位高位MSB接通接通) (2)In (c) only the next bit to the MSB is ON (图(图c中只有次高位接通)中只有次高位接通) Intelligent Sensors System 5-23 School of Information Engineering Chapter 5 Data Acquis
40、ition Circuits Prof. Dehan LuoPulse Width Modulation1、 Basic architecture and components (1)A digital line(数字链数字链/数字脉冲)数字脉冲)(2)An RC low-pass filter(RC低通滤波器)低通滤波器) Intelligent Sensors System 5-24 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoPulse Width Modulat
41、ion (Cont.)(续)(续)2、Operation(1)The digital line is used to generate a train of pulses of fixed frequency(数字链用于产生固定频率的脉冲链)(数字链用于产生固定频率的脉冲链)(2)The width (duty cycle) of the pulse is made proportional to the desired analog output(脉冲宽度(占空比)想要的模拟输出)(脉冲宽度(占空比)想要的模拟输出)(3)The pulse train is then passed thro
42、ugh a low-pass filter, which generates an output voltage proportional to the average time spent in the HIGH state(脉冲链正通过低通滤波器,产生一个正脉冲链正通过低通滤波器,产生一个正 比于高平状态平均时间的输出电压)比于高平状态平均时间的输出电压) Intelligent Sensors System 5-25 School of Information Engineering Chapter 5 Data Acquisition Circuits Prof. Dehan LuoR
43、eferences1、D. C. Ramsay, 1996, Principles of Engineering Instrumentation, Arnold, London, UK2、 H. R. Taylor, 1997, Data Acquisition for Sensor Systems, Chapman and Hall, London, UK.3、P. Horowitz and W. Hill, 1989, The Art of Electronics, 2ndEd., Cambridge University Press, Cambridge, UK4、 J. Brignell and N. White, 1996, Intelligent Sensor Systems,2nd Ed., IOP, Bristol, UK.5、R. S. Figliola and D.E. Beasley, Theory and design of Mechanical Measurements, 3rd Ed., Wiley, New York. Intelligent Sensors System 5-26 School of Information Engineering