Application description AN1014 AM 462: processor interface circuit for the conversion of PWM signals into 4 20mA (current loop interface)

Similar documents
Current loop output (4...20mA) for a volt pressure transmitter

CAV444 C/V transmitter IC with adjustable output voltage for capacitive input signals

TL494 Pulse - Width- Modulation Control Circuits

TL494M PULSE-WIDTH-MODULATION CONTROL CIRCUIT

Advanced Regulating Pulse Width Modulators

INTEGRATED CIRCUITS. AN109 Microprocessor-compatible DACs Dec

Differential Amplifier : input. resistance. Differential amplifiers are widely used in engineering instrumentation

XR-4151 Voltage-to-Frequency Converter

TL494 PULSE-WIDTH-MODULATION CONTROL CIRCUITS

Assignment 11. 1) Using the LM741 op-amp IC a circuit is designed as shown, then find the output waveform for an input of 5kHz

TL494 PULSE-WIDTH-MODULATION CONTROL CIRCUITS

TL594C, TL594I, TL594Y PULSE-WIDTH-MODULATION CONTROL CIRCUITS

Lead Free. (Note 2) Note: 1. RoHS revision Glass and High Temperature Solder Exemptions Applied, see EU Directive Annex Notes 5 and 7.

Precision amplifier for bridge circuits AM467 PRINCIPLE FUNCTION

Active Filters - Revisited

PJ494 Switchmode Pulse Width Modulation Control Circuit

Summer 2015 Examination

Advanced Regulating Pulse Width Modulators

Current Mode PWM Controller

CHAPTER 7 HARDWARE IMPLEMENTATION

TL494C, TL494I, TL494M, TL494Y PULSE-WIDTH-MODULATION CONTROL CIRCUITS

ADC0808/ADC Bit µp Compatible A/D Converters with 8-Channel Multiplexer

LINEAR IC APPLICATIONS

Linear IC s and applications

Using Magnetic Sensors for Absolute Position Detection and Feedback. Kevin Claycomb University of Evansville

Current Mode PWM Controller

TL594 PULSE-WIDTH-MODULATION CONTROL CIRCUITS

3 Circuit Theory. 3.2 Balanced Gain Stage (BGS) Input to the amplifier is balanced. The shield is isolated

Single Supply, Rail to Rail Low Power FET-Input Op Amp AD820

Current Mode PWM Controller

TL594 PULSE-WIDTH-MODULATION CONTROL CIRCUIT

FDD spindle motor driver

Department of Mechanical and Aerospace Engineering. MAE334 - Introduction to Instrumentation and Computers. Final Examination.

Advanced Regulating Pulse Width Modulators

ES /2 DMM. Features. General Description. Absolute Maximum Ratings

Application Note AN-1052

ML4818 Phase Modulation/Soft Switching Controller

LF353 Wide Bandwidth Dual JFET Input Operational Amplifier

Voltage-Current Regulator TLE 4305

Designing and Implementing of 72V/150V Closed loop Boost Converter for Electoral Vehicle

D100L Series. 100 Hz to 100 khz Low Noise Fixed Frequency. 4- and 8- Pole Low-Pass Filters

Design Document. Analog PWM Amplifier. Reference: DD00004

Low Cost 100 g Single Axis Accelerometer with Analog Output ADXL190*

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Linear Integrated Circuit Subject Code:

Department of Mechanical and Aerospace Engineering. MAE334 - Introduction to Instrumentation and Computers. Final Examination.

TSM1013. Constant voltage and constant current controller for battery chargers and adapters. Description. Features. Applications

Section 6 Chapter 2: Operational Amplifiers

DS V EconoReset PIN ASSIGNMENT FEATURES PIN DESCRIPTION PIN 1 GROUND PIN 2 RESET PIN 3 V CC PIN 4 GROUND (SOT 223 ONLY)

UNISONIC TECHNOLOGIES CO., LTD

Combo Hot Swap/Load Share Controller Allows the Use of Standard Power Modules in Redundant Power Systems

High Speed PWM Controller

TFT-LCD DC/DC Converter with Integrated Backlight LED Driver

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

SG2524 SG3524 REGULATING PULSE WIDTH MODULATORS

NJM2355 TWO OUTPUT HIGH VOLTAGE SWITCHING REGULATOR

LINEAR INTEGRATED CIRCUIT

10-Bit µp-compatible D/A converter

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Linear Integrated Circuits Applications

TS6001. A 7ppm/ C, 0.08% Precision +2.5V Voltage Reference in SOT23 FEATURES DESCRIPTION APPLICATIONS TYPICAL APPLICATION CIRCUIT

8-Bit A/D Converter AD673 REV. A FUNCTIONAL BLOCK DIAGRAM

FDD spindle motor driver

High Speed PWM Controller

Current-mode PWM controller

ADC0808/ADC Bit µp Compatible A/D Converters with 8-Channel Multiplexer

YB1506 Step-up DC-DC Converter, White LED Driver

AT431 Adjustable Precision Shunt Regulators

Homework Assignment 03

ABSOLUTE MAXIMUM RATINGS (Unless otherwise noted,all is over operating free air temperature Range) Characteristic Symbol Value Unit

ISOlinear Architecture. Silicon Labs CMOS Isolator. Figure 1. ISOlinear Design Architecture. Table 1. Circuit Performance mv 0.

DESIGN TIP DT Variable Frequency Drive using IR215x Self-Oscillating IC s. By John Parry

1) Consider the circuit shown in figure below. Compute the output waveform for an input of 5kHz

UNISONIC TECHNOLOGIES CO., LTD

UNISONIC TECHNOLOGIES CO., LTD TL594

Single Supply, Rail to Rail Low Power FET-Input Op Amp AD820

FDD spindle motor driver

Quad Picoampere Input Current Bipolar Op Amp AD704

SG2525A SG3525A REGULATING PULSE WIDTH MODULATORS

LM13700 Dual Operational Transconductance Amplifiers with Linearizing Diodes and Buffers

EXPERIMENT 1: Characteristics of Passive and Active Filters

Shock sensor PKGS series Application manual of peripheral circuit Feb. 3, 2003 Example circuit for charge sensitivity type shock sensor.

Analog Electronics. Lecture. Op-amp Circuits and Active Filters. Muhammad Amir Yousaf

BA Features. General Description. Applications. Marking Information. 3W Mono Filterless Class D Audio Power Amplifier

TL082 Wide Bandwidth Dual JFET Input Operational Amplifier

EE283 Electrical Measurement Laboratory Laboratory Exercise #7: Digital Counter

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

Dimensions in inches (mm) .268 (6.81).255 (6.48) .390 (9.91).379 (9.63) .045 (1.14).030 (.76) 4 Typ. Figure 1. Typical application circuit.

FDI Hz to 20 khz Resistor Programmable. 14 Pin DIP Quadrature Oscillator. Description

LM13700 Dual Operational Transconductance Amplifiers with Linearizing Diodes and Buffers

Qualified for Automotive Applications. Product Validation according to AEC-Q100/101

Spectrum analyzer for frequency bands of 8-12, and MHz

CHAPTER 6 DIGITAL INSTRUMENTS

Quad Picoampere Input Current Bipolar Op Amp AD704

EUP V/12V Synchronous Buck PWM Controller DESCRIPTION FEATURES APPLICATIONS. Typical Application Circuit. 1

LM13600 Dual Operational Transconductance Amplifiers with Linearizing Diodes and Buffers

DS1802 Dual Audio Taper Potentiometer With Pushbutton Control

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET REV. NO. : REV.

IL8190 TECHNICAL DATA PRECISION AIR - CORE TACH / SPEEDO DRIVER WITH RETURN TO ZERO DESCRIPTION FEATURES

S. Square Enterprise Company Limited Pro-Wave Electronics Corporation

HAL , 508, 509, HAL Hall Effect Sensor Family

6-Bit A/D converter (parallel outputs)

Transcription:

his article describes a simple interface circuit for the conversion of a PWM (pulse width modulation) signal into a standard current signal (4...0mA). It explains how a processor is connected up to the industrial analog network which then transmits the processor signals to the process control system (PLC). he simple interface requires a processor PWM output signal, a low pass filter and a voltage-to-current converter. Besides outlining the basic possibilities for D/A conversion the article will also explain how a digital processor output (PWM) is converted into a current signal using a simple low pass filter; suitable dimensions are suggested to this end. he industrial current interface IC AM46 acts as a voltage-to-current converter whose use for the 4...0mA interface in a 3-wire version shall be exemplified herein. NB: he following descriptions can be applied by analogy to all voltage-to-current converter ICs produced by Analog Microelectronics GmbH (AM400, AM40, AM4, AM44, AM460 and AM46) [] and can also be adapted to suit the -wire current interface using the press release [] and the applications not [3]. As a typical industrial application a basic configuration is first determined (Figure ), in which a measurement signal is processed in a follow-on processor after signal conditioning. his is then to be transmitted to a receiver as analog information for a PLC or a DDC. When using such system many users ask the question: How do I convert the digital processor signal into an adequate current signal of, for example, 4...0mA? V = 5V Regulator 4V Measurement signal µp D A Voltage-to-current converter 4...0mA Figure : ypical industrial application: connecting up a microprocessor to the 4...0mA current loop signal for a PLC system he following attempts to provide some answers, giving examples of a solution for the 4...0mA (life-zero) signal and assistance in the dimensioning of an interface circuit such as this. /

D/A conversion oday there are suitable, inexpensive microprocessors available for almost all types of application. hey are appropriate for signal compensation, for example, for linearization, for control and, where required, also for the identification of measurement channels or products identification. he internal routines and processes are all digital. In order to transmit signals in cost-sensitive industrial applications, their digital results (output signal) must be converted into analog values. Should an analog current signal of 4...0mA be necessary for the PLC or DCD systems, for example, the conversion from measurement to current signal takes place in several consecutive stages. First the measurement signal has to be amplified, digitized (A/D conversion) and, after conditioning in the processor, converted back into an adequate voltage signal (D/A conversion). Following conversion and any filtering which may be necessary the analog voltage signal is to transform into a current and to calibrate to the desired current output values. Measurement signal D µp AM46 4...0mA A Measurement signal D µp PWM AM46 4...0mA Low pass filter Figure : Possible interface configurations for signal conversion using AM46 for the 4...0mA network If a D/A converter is integrated in the processor (Figure ) and provided that the signal has been suitably filtered and the resolution is sufficient for the measurement accuracy, the analog DC voltage output signal has to be transformed into the required current. As this cannot usually be done using a passive resistor network due to the offset value of 4mA, then a voltage-controlled current source must then be assembled or a suitable IC (such as AM46) used which at best can be directly connected up to the D/A converter without much adjustment having to be made []. /

If there is no D/A converter integrated in the processor and if no further component can be used for reasons of cost, the digital processor output signal has to be turned into a DC signal using other methods. In many cases a PWM output installed as hardware in the processor can help, to convert the processor signal into the required current. In pulse width modulation part of the processor a square-wave voltage is generated in which the ratio of turn-on time to length of period is varied according to the digital measurement. If neither a D/A converter nor a hardware PWM output are available, as is often the case with low-cost RISC processors, the PWM signal can be generated using software together with a processor I/O output. Here, a timer-controlled interrupt routine can be used. o generate the PWM signal the output is switched on and off by software within a period, where pulse width t p is equivalent to the digitized measurement value. PWM signal As the I/O output of a processor normally produces discrete voltages (e.g. U = 0/ 3.3V or 0/ 5V) with a clock frequency of f = /t clk in its output registers and as the I/O output is now equivalent to the PWM signal, the PWM signal has a pulse height or PWM amplitude of U. he ratio of turn-on and period length tp/ is expressed as a duty cycle (see Figure 3). he temporal development of the duty cycle is equivalent to the measurement information processed in the processor. If this information is to be resolved with 0 bits, for example, then = 04 t clk. must apply. U t clk t p t Figure 3: Definition of the designation "PWM pulse" 3/ tp = 0

Figure 4: Various duty cycles with pulse width modulation Example: If the hexadecimal information in the processor is 006A, for example, and the clock rate of the processor t clk = µsec, then the relevant PWM signal is generated with a pulse width of tp = 06µsec, provided that the internal processor prescalers are set to. With a 0-bit word in the processor the following duty cycle is obtained (see Figure 4): t p = 06 04 0.0 Filtering o convert the PWM signal into an analog voltage signal a mathematical average is usually calculated with the help of a low pass filter. In the following description of the filtering and dimensioning of the necessary low pass filter components it is assumed that a PWM signal is present at the digital signal conditioning circuit (processor) output. 4/

In doing so the pulse width modulated signal must fulfill the quasi-static condition f m << f p (f m = change in measurement value, f p = /tp) to be able to be converted by the low pass filter into a DC value (see Figure 5). he square-wave signal U obtained from the processor (PWM signal) is filtered in a low pass, resulting in an averaged DC output signal (U) which is proportional to the duty cycle tp/. he following applies: t + 0 U = U t 0 () t dt U = U tp he filtered PWM signal is equivalent to the voltage U which is then to be converted into the standard signal of 4...0mA. With a duty cycle of 0.5, for example, an output voltage of.5v is set in a 5-volt system (mathematical average). V=5V 6...35V Low pass µp AM46 filter U U z.b. 4...0mA U R U t C t DC Signal with residual ripple U Figure 5: Connecting up a processor with a PWM output to the 4...0mA supply with the help of a voltage-controlled current source (AM46) he above formulae provide no information as to the dimensioning of the low pass circuitry or its behavior regarding the errors in the current signal. he question thus remains: 5/

How do I dimension the low pass filter subject to the resulting errors in the current output signal? Or: what must be done so that the effect of the PWM on the current output signal error is negligible and which disturbance variables play a role in the dimensioning of the setup? Dimensioning In principle it is assumed that the low pass filter has little or no effect on the overall error of the output current. his means that the disturbances resulting from the filtering of the low pass (residual ripple) should be as minimal as possible. he PWM amplitude is expressed by U and the residual ripple at U by U. With a suitable analysis and given condition of: U << U, it can be shown that U is at its greatest (max U ) when: tp = () U It then follows for max U that: max U = () 4 R C his means that besides PWM amplitude U the residual ripple is dependent on PWM period length and on the dimensioning of the low pass components R and C. If a low pass resistor R is present, an offset U Off is determined by the input bias current (I INPU ) of the voltage-controlled current source (e.g. voltage-to-current converter AM46) at the IC input. his offset also has an error percentage of I out in the output current: U Off = I R (3) INPU It can be deduced that with regard to resistor R the offset (3) and the residual ripple () exhibit a contradirectional behavior which in calculating R and C is tantamount to an optimization problem. One practically relevant, given condition for the calculation is that both error percentages in the output current have the same value. Based on equations () and (3) the search for a local minimum regarding the offset and residual ripple results in the following equation for resistor R: max U R = (4) I INPU Capacitance C is calculated as: C = I INPU U 4 max U (5) 6/

With R and C determined the low pass filter is now set under the condition that the error percentages resulting from the offset and residual ripple are the same ( I OU ). Regardless of the concrete dimensioning the dissipation factor of capacitance C (tanδ) and the temperature coefficient must possibly be taken into account as conditions governing practical implementation; together with the size and cost of the capacitors to be used, the temperature coefficient can also influence the characteristics of the system. he low pass cutoff frequency f g (the 3dB point of the RC filter), which can be used to transmit any alteration in the PWM signal (f m ), is: f g = (6) π R C. U U tp = U f p fg = π R C U U U f g f time range frequency range U 3 U f g f U Figure 6: Residual ripple depending on the low pass cutoff frequency heoretically it is clear from Figure 6 that the residual ripple and low pass cutoff frequency are coupled variables. he smaller the residual ripple, the smaller the cutoff frequency. 7/

It follows from equations (4) and (5) that: max U = U π f g (7) where it is obvious that with a given max U the cutoff frequency f g is also determined. Example: t clk = µsec, = 04 t clk, residual ripple max U (filtering error percentage at the output signal) and the offset percentage should both be 0.%, signal at the PWM output = 5V, output signal at AM46 is I out = 4 0mA. As a general rule the input bias current is I Input 0nA for all voltage-to-current converter ICs by Analog Microelectronics (AM400, AM40, AM4, AM44, AM460 and AM46) in accordance with []. Using the data given above and equations (4) and (5): 5mV R = = 500kΩ 9 0 0 A and 9 6 0 0 A 5V 04 0 sec C = = 5nF 6 4 5 0 V Applying the values in equation (7), the low pass cutoff frequency is calculated as: 5mV f g = = 0. 6Hz 5V π 04µ sec It should be taken into account that the following also applies: low pass cutoff frequency f g < f it. Here f it is the transmission frequency of the follow-on IC which in the case of AM46 is given as ca. 50kHz. As AM46 is a purely analog IC, the output signal resolution which can be achieved is wholly dependent on the temporal behavior of the PWM signal and thus chiefly on the clock frequency of the processor. If higher demands are made of the residual ripple, filters with other transmission characteristics, such as Chebyshev, Bessel or Butterworth filters, can be deployed. 8/

AM46: An industrial voltage-to-current converter IC V CVREF C V REF R 3 R 4 V CVSE V INP OP 3 AM46 V BG 3 5 6 V SE Voltage reference V OP I 0 9 8 V S R 0 D 4 5 6 4 R 5 I OU R V INDAI R V OUAD Ground Figure 7: 3-wire application using AM46 as a voltage-to-current converter IC with a 4...0mA current output AM46 (Figure 7) is a voltage-to-current converter IC designed as a multistage amplifier with a number of additional and protective functions which can be used optionally, providing a high degree of flexibility and functionality. he IC is modular throughout. All function blocks can be individually accessed via the relevant pins and connected up externally or operated separately. AM46 contains the following functional units:. An operational amplifier stage his amplifier stage (OP) is suitable for ground-referenced input signals of 0 to VCC 5V. Amplification is set using two external resistors. he operational amplifier stage output has been designed so that it can be set right down to zero if the load requires. OP is voltage limited, protecting follow-on stages even when overvoltage occurs at the front end of the device.. A voltage/current converter stage At the back end of the device the voltage/current converter stage translates the input voltage into a freely selectable output current of between 0 and 0mA. In doing so the converter output stage activates an external resistor (Figure 6) which ensures that power is dissipated outside the IC. he output current range for the current offset and final current value can be easily set using two external voltage dividers. 3. A bandgap reference 9/

he reference voltage source included in AM46 enables external components, such as sensors and microprocessors etc., to be supplied with voltage. Reference voltage V REF can be set via pin VSE to V REF = 5V/0V. Using two external resistors (inserted between pins VREF and VSE and pins VSE and GND) intermediate values can also be set. 4. An operational amplifier A second operational amplifier (OP) can be used as a current or voltage source to power external components. OP's positive input is connected internally to voltage V BG, enabling the output current or voltage to be set within a wide range using one or two external resistors. he IC also includes internal circuitry protecting the amplifier stage OP against overvoltage, integrated protection against reverse polarity with regard to the output stage (V/I converter) across the entire voltage range and an output current limiter which protects the IC against destruction. Using just a minimum of external circuitry an industrial output stage can be realized which is fully protected. 3,3 V V CVREF C V REF R 3 R 4 PWM R R 7 V CVSE R 6 V INP AM46 OP 3 V BG 3 5 6 V SE Voltage reference V OP I 0 9 8 V S R 0 D C 4 R 5 6 4 R 5 I OU 4...0 ma R Ground Figure 7: Interface circuit: PWM to the 4..0mA output signal in 3-wire operation 0/

Conclusion he digital output signal of a processor whose clock rate and I/O output voltage are given with respect to the PWM output can be converted fairly easily into a 4...0mA current signal using a simple low pass filter and a voltage-controlled current source (taking AM46 as an example). he dimensioning of the low pass circuitry, described herein in detail, illustrates how the PWM signal is transformed into a 4...0mA current signal. With the help of the derived equations the interface circuit can be easily adapted to suit the conditions the user requires. In the description of this particular application the dimensioning of the low pass filter is demonstrated using a 3-wire circuit by way of example. With reference to the relevant data sheets [] these dimensions can be easily applied to -wire variants as with the exception of a domestic current supply limit (max. 4mA) in -wire operation the output circuitry in - or 3-wire operation has no further effect on the interface circuitry. Further reading: All information is available at www.analogmicro.de [] Data sheets for the voltage-to-current converter ICs AM400, AM40, AM4, AM44, AM460 and AM46 [] Data sheet AM46: see Applications [3] Press release PR0: Voltage-to-current converter IC for -wire current loop applications [4] Application note AN00: Current loop output (4...0mA) for a 0.5...4.5V pressure transmitter /