dmercer

ADALM1000 Analog Inputs and Outputs

Blog Post created by dmercer Employee on May 16, 2015

The ADALM1000 (M1K) active learning module combines analog voltage and current output sources on the same pin as analog voltage and current measurement instruments. A very simplified block diagram of one of the two analog channels is shown in figure 1. This single pin for both analog sourcing and measurements is unique and not generally typical of small portable USB based hardware such as the Analog Discovery module.

m1k_analog_input_f1.png

Figure 1 ALM1000 analog input/output diagram

The analog input and output connections to the ALM1000 are made though the 6/8 pin single row female header (on 0.1” centers) connector. The Channel A and B analog pins are on the two outside end pins. In the current production version there are two additional optional input only pins that are not populated on the installed 6 pin header, shown with white circles around them in figure 2. The user can optionally populate these extra two pin locations to allow separate access to the analog output and input functions which by default share the common analog channel pin.

m1k_analog_input_f2.png

Figure 2 Analog I/O connector

There are extra switches not shown in the figure 1 diagram which allow the voltage measuring “oscilloscope” hardware (volt meter) to be brought out along with the 1 MΩ input load resistor to a separate pin from the analog output source. Note figure 3 extracted from revision D schematic.

m1k_analog_input_f3a.png

Figure 3 Detail of analog input switching

As we can see from figure 3 switch S1 disconnects the CH A/B pins from the output drivers, putting that channel in the high impedance mode. Normally, S4 is closed connecting the analog input buffer (voltmeter in figure 1) to the CH A/B pins. It is also important to note that the white circle pin is connected to CH A/B when S4 is closed. If S4 is opened then the analog input buffer is disconnected from the CH A/B pins and is now only available at the pin with the white circle.

The signals and power supplies that ADALM1000 can generate are limited by the +5 V USB power available from the computer. The analog inputs can measure 0 to +5 volt signals. Generally, this is not an issue when measuring the characteristics of simple passive two terminal devices and simple circuits powered from the provided +5 V supply. However, LC resonate circuits such as oscillators, DC-DC boost converters and other circuits can readily generate voltages beyond their input power supply voltage. To use the ALM1000 to experiment with a broader range of electronic circuits and systems we would like to be able to measure a wider range of input voltages.


This limitation on the allowable voltages that can be measured can be expanded through the use of an external resistor voltage divider. To properly design an input voltage attenuator we first need to understand the input characteristics of the ALM1000. A simulation schematic of the equivalent input circuit of the ALM1000 is shown in figure 4. RIN and CIN represent the analog input circuitry of the ALM1000. V1 represents the fixed +5 V power supply. VIN represents the voltage to be measured.

m1k_analog_input_f3.png

Figure 4 Channel Simulation Equivalent Circuit


This input attenuator circuit works in conjunction with the internal 1 MΩ input resistance, RIN, of the ALM1000 when in the “high Z” measurement mode. Resistor R1 is the input of the divider. R2 can be connected to either ground or to the +2.5 V or +5 V supply to inject an offset to allow the measurement of negative voltages. Depending on the resistor values chosen, various ranges can be produced. For example, with R2 equal to 500 KΩ and connected to +5 V and R1 set to 1 MΩ the divider factor will be 4X with an offset such that 0 V in will result in +2.5 V as seen by the ALM1000, -10 V seen as 0V and +10 V seen as +5 V. This range is only valid for ideal resistors and will vary depending on resistor tolerance and the actual value of the +5V supply. Any differences can be calculated out with software calibration. The Python program ALICE provides user settable input gain and offset to accommodate any input attenuator that might be added in front of the ALM1000.


The input capacitance, CIN,  of the analog inputs in the high Z mode is approximately 380 pF (for the ALM1000 rev D design). This capacitance with relatively high resistance levels can significantly lower the frequency response of the resistor divider. A frequency compensation capacitor is needed across the input resistors R1. Using Spice simulation and empirical testing it was found that for the example case with R1 = 500 KΩ and R2 = 1 MΩ, a total of about 130 pF was needed to compensate the divider. A 100 pF in parallel with 27 pF (total of 127 pF) or two 68 pF capacitors in parallel (total of 136 pF) provides nearly optimal compensation depending on component tolerances. The effective input impedance for the above example will be 1.333 MΩ and 96 pF.


Also supported in ALICE, we can open switch S4 in figure 3 and use the white circle pin as the scope input. Now we see a much lower capacitance because instead of having the combined capacitance of three off switches and one on switch we have just the off capacitance of a single switch, S4. The typical capacitance in this configuration is approximately 90 pF (for the ALM1000 rev D design). The simulation schematic of the equivalent circuit of a white circle pin is shown in figure 5. The only difference between this and figure 4 is the values for the capacitors. CIN is now 90 pF and a 30 pF value for C2 results in perfect compensation in simulation.

m1k_analog_input_f4a.png

Figure 5 White circle Pin Simulation Equivalent Circuit


An adjustable trimmer capacitor, such as the one pictured in figure 6, could of course be used for one of the capacitors to more precisely adjust the compensation.

m1k_analog_input_f4.png

Figure 6, 4 pF – 32 pF trimmer capacitor


Another variation on this input network is of course to insert a series capacitor to provide AC coupling. If we use a 1 MΩ resistor connected between CH A, for example, and the +5 V power supply the DC voltage seen at the input will be around 2.5 V based on the internal 1 MΩ resistor to ground. Depending on the desired low frequency cut off point and the parallel resistance, 500 KΩ, an appropriate series capacitor can be chosen. In the schematic, figure 7, a ridiculously large 47 uF cap was chosen which gives a sub 1 Hz high pass frequency.

image007.png

Figure 7, AC coupling example

image008.png

 

Figure 8 AC coupling simulation (red - input, green - output)

From figure 8 we can see that the red input signal is of the same amplitude but now centered on 2.5V as the green output signal seen at the CH A input pin.

I’ve attached a zip file containing the two Simetrix (ADIsimPE) schematic files for the ALM1000 input equivalent circuits to this blog.

As always I welcome comments and suggestions from the user community out there.

Doug

Attachments

Outcomes