April 2003

There are comments on thisThere are comments on this
  Intelligent Systems
Table of Contents

EMBEDDED SYSTEMS

Designing Sensor Signal Conditioning with
Programmable Analog ICs

A new breed of programmable analog ICs is bringing greater design flexibility to sensor signal conditioning applications, allowing manufacturers to differentiate products while slashing parts inventory by using a single chip and board layout for multiple applications.

Steve Harrold, Anadigm Inc.

figure

Programmable system-on-a-chip (SoC) components let manufacturers target multiple applications and multiple interfaces with one version of a circuit board and one set of components. The commercial advantages of programmable SoCs include economies of scale that reduce costs and let differentiated products quickly come to market. The use of these devices has changed from being a quick and easy way of prototyping new designs to being an essential tool in the battle for rapidly changing markets.

Until now, the main drawback of programmable SoC components was that they did not serve the analog portions of the systems in which they worked. Particularly in systems involving sensors, analog circuitry was more or less a permanent fact of life because most sensors delivered analog signals and because A/D converters (ADCs) required a conditioned input signal if good performance was to be obtained.

Signal conditioning took two forms. The first limited bandwidth of input signals to less than half the ADC sampling frequency to block noise and aliasing of unwanted high-frequency signals. The second form amplified and level-shifted the signal so that it was compatible with the full-scale input range of the ADC to obtain maximum dynamic range and minimum noise in the digitized signal.

For example, suppose you supply signal conditioning circuitry to two different customers. If customer A is using a sensor from company X and customer B insists on using a sensor from company Y, the signal characteristics will probably be different, and the analog circuitry will require modifications. Once, this meant that two entirely different boards were required to implement signal conditioning. But with the advent of programmable analog ICs, the same device can be used to implement both.

Programmable Parameters
Programmable analog means different things to different people, and IC suppliers have chosen various ways of providing programmability. At the simplest level, fixed-function chips with a programmable parameter can be used to accommodate minor changes in the analog specification. Many circuits have performance parameters (e.g., the gain or bandwidth of an amplifier or the corner frequency of a low-pass filter) that depend on the bias currents. Programming a reference current from which other circuit currents are derived lets you control the circuit parameter.

You can use various methods to program the reference current. It can be as simple as using an external resistor, or you can achieve more precise control by defining the current with a DAC. You can download the inputs to the DAC from a PROM at powerup, or a program running on a microprocessor can control the inputs. To obtain nonvolatility and programmability, you have to use floating-gate transistors to define the reference current. These devices have a threshold voltage that can be electrically programmed to a value that will be stable for years or until reprogrammed.

Programmable Configuration
For those applications that require circuit parameters and functionality to be redefined, you’ll need to use more complex implementation methods to confer programmability and configurability. For example, one application may require a low-pass filter to be placed in front of a gain stage, while another may require higher gain but no filter. Alternatively, a band-pass filter may be required in place of a low-pass filter.

You can’t achieve this level of control simply by adjusting a bias current. Instead, you have to provide a means of altering the signal flow through the IC. One way of doing this is to build circuits from a collection of building blocks, defining the rouÆing between the blocks using programmable switches (or antifuses). The building blocks are themselves built up from a collection of components (e.g., op amps, resistors, capacitors, and switches).

Using this approach, you can define a gain stage (see Figure 1) using an op amp, with one resistor connected between the signal source and the op amp inverting input (the input network) and another resistor connected between the op amp output and inverting input (the feedback network).

figure
Figure 1. Using a configurable building block for a programmable analog IC, you can change circuit parameters or functionality by changing switch settings with data stored in the memory.

Connecting extra parallel resistors to the feedback network will reduce the gain of the stage. Alternatively, connecting a capacitor in place of the feedback resistor will create a low-pass filter. Configuration data that are generally downloaded from a PROM define the OPEN/CLOSED states of the switches between and inside the blocks (and thus the IC functionality and the circuit parameters).

IC suppliers have devised various ways of creating configurable programmable analog ICs. The simplest uses traditional analog components in the input and feedback networks (resistors and capacitors—inductors are too large for integration except for micrüwave frequencies). This option creates a continuous-time circuit, so-called because input signals are continuously used and output signals are continuously valid. Continuous-time circuits are well suited to prefiltering to prevent aliasing when an ADC samples the signal. The downside is that the parameters of filters implemented in this way usually depend on RC time constants, and resistors and capacitors implemented in ICs have notoriously large tolerances, making it difficult to achieve consistent filter performance. One way to alleviate the problem is to modify the circuit so that time constants depend on an amplifier’s transconductance rather than a resistance. Lattice Semiconductor combines this technique with capacitor trimming to achieve filters with less than ±5% variation on their ispPAC chips.

By adding diodes to the components in the input and feedback networks, you can create building blocks whose output depends on the logarithm or antilog of the input signal. Zetex has exploited this to create TRAC, a configurable programmable analog IC aimed at signal processing applications. Complex tasks (e.g., multiplication and division) are reduced to simple addition and subtraction in the log domain. Differentiation and integration functions can also be implemented, although these require external components to define the time constants.

You can significantly improve the accuracy and consistency of time constants in a circuit by using switched-capacitor (SC) techniques (see Figure 2).

figure
Figure 2. In this illustration of a switched-capacitor in operation, the capacitor is alternately charged by the input signal and then discharged into the load every clock cycle. The current in the load has an average value equal to the flow through a resistor R = (fc×C)–1.

The switches are toggled according to the state of a clock signal (fc), and in doing so, the capacitor is alternately charged to the input voltage and then discharged. The average current is equal to I = fcCV, which is the same as would flow in a resistor of value R = 1/(fcC). In other words, the SC circuit can emulate a resistor, provided the clock frequency is higher than the signal frequency.

figure
Figure 3. With this switched-capacitor integrator, the integration time constant is set by the capacitor ratio, which can be defined with better than 1% accuracy. Changes in the power supply voltage, temperature, or aging have no effect on the time constant.
It might appear that this is increasing circuit complexity for little reward, but if the SC is combined with an op amp and a capacitor, then an integrator is created with an integration-constant determined by fc(Cin/Cfb) (see Figure 3). The integrator characteristics depend on the ratio ýf two capacitances, and the ratio can be defined accurately (typically to better than 1%) on an IC. Gain stages created using SCs instead of resistors will show the same accuracy, with the additional advantage that polarity can be changed simply by swapping the connections of the switch connected to the input side of the capacitor.

In fact, you can easily create SC building blocks that implement a wide range of functions, all with characteristics that depend on capacitor ratios, and thus all immune to variations in supply voltages and temperature or to aging effects. Examples include summing gain stages, oscillators, filters, rectifiers, integrators, and differentiators. You can make changes to the capacitor ratio by connecting more capacitors in parallel in the input or feedback networks.

There is a downside, though: the input signal is sampled by a SC, so it’s prone to the same aliasing effects as an ADC. A continuous-time prefilter is required to ensure there are no high-frequency components above fc/2 in the signal being passed to the SC. The good news, however, is that the requirements on the filter aren’t usually too severe because the clock frequency must be well above the signal frequency for the SC-resistor equivalence to be valid, and a simple RC filter is often sufficient.

Dynamic Reconfigurability
At the top of the complexity and capability tree, the most advanced programmable analog ICs allow both functionality and circuit parameters to be changed at startup and on the fly. Dynamic reconfiguration means that you can build systems that allow the analog circuitry to be adapted to the requirements of a particular sensor and adapt to the aging of sensor properties or to temperature-dependent changes.

In addition (or alternatively), if the reconfiguration is done quickly enough, one piece of programmable hardware can replace multiple blocks of fixed-function hardware. This hardware multiplexing might, for example, be used in a telephone dual-tone multifrequency detector or a multisensor data logging interface. In the first case (see Figure 4), you can sequentially reprogram one filter with many different configurations, rather than using independent filters to detect the frequency of a tone. In the second example (see Figure 5), you can connect different sensors to different input pins and then sequentially reprogram the hardware to route and process individual signals according to the requirements of each sensor. Generally speaking, this capability lets you cut costs significantly.

figure
Figure 4. In a hardware-multiplexed dual-tone multifrequency (DTMF) detector, the microprocessor loops through a set of different filter characteristics until the comparator output indicates that a tone has been detected. Changing the software can accommodate different frequency standards used in different countries.

figure
Figure 5. With this multisensor data logger, you can optimize the signal conditioning circuitry for each sensor by loading appropriate configuration data before a reading is logged. With this approach, you can easily compensate for aging effects, such as a loss in sensor sensitivity with time.

The AN220E04 FPAA from Anadigm is a good example of an IC offering this level of programmability. Reconfiguration can be under the control of internal resources only or controlled by signals received from an external microprocessor or microcontroller. An onchip ADC
Click for larger image
Click for larger image Figure 6. This figure shows how you can achieve sensor linearization using dynamic reconfiguration. You adjust the gain of the analog amplifier according to the input signal level so that you obtain a linear temperature/voltage characteristic. You can obtain identical characteristics from different sensors by using appropriate compensation data.
and a look-up table can be used to control the value of the feedback capacitor and the gain of a gain stage. The signal from a nonlinear sensor can thus be amplified by an amount dependent on the signal level, compensating for any nonlinearities (see Figure 6).

In the latter case, the microcontroller can download a succession of configuration data as required by the system algorithm. The download typically takes 50 µs, depending on the number of changes required. The new configuration is then activated by an EXECUTE command, which requires just one clock cycle. The micro can calculate new configuration data on the fly, or (for micros with limited speed and memory) it can simply download precalculated data. Software tools are available to assist in the generation of the data streams.

Conclusion
Company Information

Lattice Semiconductor
Hillsboro, OR
503-268-8000

Zetex Semiconductors
Chadderton, Oldham
OL98NP, U.K.
44 161 622 4444
hq@zetex.com

Programmable analog ICs offer an attractive way of reducing costs where differentiated performance and/or functionality are required on a board aimed at different products. These ICs also introduce a new paradigm to design engineers.

Sensor signals are often digitized as early as possible in the signal path to take advantage of the flexibility of programmable digital ICs. Now this flexibility can be obtained in the analog world without recourse to expensive ADCs and DSP chips. Using just one board that can be programmed for a multitude of applications and customers, flexible and accurate performance can be obtained in the analog world as well as the digital.


Steve Harrold is Analog IC Engineering Manager, Anadigm Inc., Crewe, Cheshire, U.K.; 44 1270 531 997, steve.harrold@anadigm.com.


Reader Comments

I've just started receiving "Sensors". I was especially pleased to see this article "Designing Sensor Signal Conditioning with Programmable Analog ICs." in it.

The author correctly eschews the benefits of field-programmable analog arrays. My current project relies on this aspect of design. However, it is regrettable he's not aware of the Cypress MicroSystems PSoC (Programmable System on Chip). Not only does it have 4 CT (continuous time) analog blocks and 8 SC (switched capacitor) analog blocks, it has 8 digital blocks (for timer, PWMs, CRC generators, UARTs, SPI, etc) and a 8 bit embedded microcomputer as well.

The analog CT blocks can be configured as INSAMPs, PGAs, Invertors and more. The SC blocks can be configured as LPFs, HPFs, BPFs, ADCs (6, 11, 12 and 13 bit), DACs (6, 8 and 9 bit) and more.

For example on a single part, it is possible to configure 4 DACs and a ADC with a 8-input mux. The part can be programmed in one configuration and be modified on-the-fly by the program to another configuration as needed.

If that isn't enough, they have a 28 pin version with all these internal blocks and 24 pins of I/O and costs under $4 in moderate quantities.

Their development environment sells for under $250. If you'd like more information link to Cypress Microsystems.

Len Poma
Senior Hardware and Software Design Engineer

MORE!
For further reading on this and related topics, see these Sensors articles.

"The System on a Chip," September 2002
"Creating a PWM Output Sensor Using a Field-Programmable Analog Array," May 1998
"Signal Conditioning a Pressure Sensor with a Field-Programmable Analog Array," November 1997





 
E-NEWSLETTERS
SUBSCRIBE NOW!
Sensors Daily
  Industrial Automation
  Wireless & M2M
  Product Picks





Home | About Us | Site Index | Privacy Policy
© 2006 Questex Media Group, Inc.. All rights reserved.
Reproduction in whole or in part is prohibited.
Please send any technical comments or questions to our webmaster.