外文翻译---AT89CX051微控制器的模拟-数字变换器应用
《外文翻译---AT89CX051微控制器的模拟-数字变换器应用》由会员分享,可在线阅读,更多相关《外文翻译---AT89CX051微控制器的模拟-数字变换器应用(10页珍藏版)》请在毕设资料网上搜索。
1、附录 1 外文文献及中文翻译 Analog-to-Digital Conversion Utilizing the AT89CX051 Microcontrollers The Atmel AT89C1051 and AT89C2051.microcontrollers feature on-chip Flash,low pin count, wide operating voltage,range and an integral analog comparator.This application note describes two low-cost analog-to-digital c
2、onversiontechniques which utilize the analog comparato r in the AT89C1051 and AT89C2051 microcontrollers. RC Analog-to-Digital Converter This conversion method offers. An extremely low component count at the expense of accuracy and conversion time. In the example presented below,resolution is better
3、 than 50 millivolts, accuracy is somewhat less than a tenth of a Volt and conversion time is seven milliseconds or less. As shown in Figure 1, the RC analog-todigital. conversion method requires only two resistors and a capacitor in addition to the AT89CX051 microcontroller. A microcontroller output
4、 (pin 11), which swings from approximately ground to VCC, alternately charges and discharges the capacitor connected to the non-inverting input of the internal comparator (pin 12). The microcontroller measures the time required for the voltage on the capacitor to match the unknown voltage applied to
5、 the inverting input of the internal comparator (pin 13).The unknown voltage is a function of the measured time. The HP5082-7300 LED displays shown in Figure 1 are not required for the conversion, but are utilized by the software to implement a simple two-digit voltmeter.The result of the analog-to-
6、digital conversion is displayed in volts and tenths of a volt on the two displays. The voltmeter application does not utilize the full resolution of the RC conversion software,but serves to demonstrate the method as well as providing a tool for debug. The waveformfor a typical capacitor charge/disch
7、arge cycle is shown in Figure2. The discharge portion of the curve is identical to the charge portion rotated about the line VC = VCC/2. The equations and discussion below apply to the charge portion of the cycle, except where indicated. The voltage on the capacitoras a function of time is given by
8、the exponential equation: VC=VCC(1-e-t/RC) (1) where VC is the voltage on the capacitor at time t, VCC is the supply voltage and RC is the product of the values of the resistor and capacitor. Note that voltage is expressed in Volts, time in seconds, resistance in Ohms and capacitance in Farads. The
9、product RC is also known as the “time constant” of the network and affects the shape of the waveform. The waveform is steepest when capacitor charging or discharging begins and flattens with time. The first problem with the RC conversion method is the difficulty of solving the exponential equation w
10、ithout utilizing floating point calculations and transcendental functions. On a compressed time scale, the exponential curve appears straight over much of its length, suggesting that it might be approximated by a line. This scheme fails due to the continuous variation in slope over the length of the
11、 curve, which produces significant error. It also does not address the problemwhere the curve rolls off severely near the asymptote at VCC. The microcontroller need not solve the exponential equation in real time if a lookup table is used to map pre-calculated values to each sampled time interval. T
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 外文 翻译 at89cx051 控制器 模拟 摹拟 数字 变换器 应用 利用 运用
