Analog Discovery 2 Reference Manual
Analog Discovery 2 Reference Manual
The Digilent Analog Discovery 2™, developed in conjunction with Analog Devices®, is a multi-function instrument that
allows users to measure, visualize, generate, record, and control mixed signal circuits of all kinds. The low-cost Analog
Discovery 2 is small enough to fit in your pocket, but powerful enough to replace a stack of lab equipment, providing
engineering students, hobbyists, and electronics enthusiasts the freedom to work with analog and digital circuits in virtually any
environment, in or out of the lab.
(https://reference.digilentinc.com/_media/reference/instrumentation/analog-discovery-2/analog-discovery-2-0.png)
Download This Reference Manual
(https://reference.digilentinc.com/_media/reference/instrumentation/analog-discovery-2/ad2_rm.pdf)
Features
The analog and digital inputs and outputs can be connected to a circuit using simple wire probes; alternatively, the Analog
Discovery BNC Adapter and BNC probes can be used to connect and utilize the inputs and outputs. Driven by the free
WaveForms software, the Analog Discovery 2 can be configured to work as any one of several traditional instruments, which
include:
Two-channel oscilloscope (1MΩ, ±25V, differential, 14-bit, 100MS/s, 30MHz+ bandwidth - with the Analog Discovery
BNC Adapter Board)
Two-channel arbitrary function generator (±5V, 14-bit, 100MS/s, 12MHz+ bandwidth - with the Analog Discovery
BNC Adapter Board)
Stereo audio amplifier to drive external headphones or speakers with replicated AWG signals
16-channel digital logic analyzer (3.3V CMOS, 100MS/s)1) 2)
16-channel pattern generator (3.3V CMOS, 100MS/s)3) 4)
16-channel virtual digital I/O including buttons, switches, and LEDs – perfect for logic training applications 5) 6)
Two input/output digital trigger signals for linking multiple instruments (3.3V CMOS)7)
Two programmable power supplies (0…+5V , 0…-5V). The maximum available output current and power depend on
the Analog Discovery 2 powering choice:
250mW max for each supply or 500mW total when powered through USB
2.1W max for each supply when powered by an auxiliary supply
700mA maximum current for each supply
Single channel voltmeter (AC, DC, ±25V)
Network analyzer – Bode, Nyquist, Nichols transfer diagrams of a circuit. Range: 1Hz to 10MHz
Spectrum Analyzer – power spectrum and spectral measurements (noise floor, SFDR, SNR, THD, etc.)
Digital Bus Analyzers (SPI, I²C, UART, Parallel, CAN)
The Analog Discovery 2 was designed for students in typical university-based circuits and electronics classes. Its features and
specifications, as well as the additional requirements of operating from USB or external power, maintaining the small and
portable form factor, the robustness to withstand student use in a variety of environments, and low-cost are based directly on
feedback that was obtained from numerous professors from several universities. Meeting all of these requirements proved
challenging; however, the task ultimately generated some new and innovative circuits. This document describes the Analog
Discovery 2's circuits, with the intent of providing a better understanding of its electrical functions, operations, and a more
detailed description of the hardware’s features and limitations. It is not intended to provide enough information to enable
complete duplication of the Analog Discovery 2, or to allow users to design custom configurations for programmable parts in
the design.
Analog Discovery 2 is the next generation of the very popular Analog Discovery. The main improvements are:
Ability to use an external power supply and consequently deliver more power to user supplies. When USB-powered, the
Analog Discovery 2 delivers the same power as the Analog Discovery.
New enclosure with enhanced design and improved connector reliability.
Improved signal/noise and crosstalk performances for both the scope and waveform generator.
Better defined bandwidth for both the scope and waveform generator.
Pinout Diagram
to be the Scope), nor the channel index (because the equation applies to both channels 1 and 2). In equation 3, the type index is
also missing because V mux and V refer to any of P (positive), N (negative) or diff (differential) values.
in
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_2.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
2. Scope
Important Note: Unlike traditional inexpensive scopes, the Analog Discovery 2 inputs are fully differential. However, a GND () connection to the
circuit under test is needed to provide a stable common mode voltage. The Analog Discovery 2 GND () reference is connected to the USB GND ().
Depending on the PC powering scheme, and other PC connections (Ethernet, audio, etc. – which might also be grounded) the Analog Discovery 2
GND () reference might be connected to the whole GND () system and ultimately to the power network protection (earth ground). The circuit under
test might also be connected to earth or possibly floating. For safety reasons, it is the user’s responsibility to understand the powering and grounding
scheme and make sure that there is a common GND () reference between the Analog Discovery 2 and the circuit under test, and that the common
mode and differential voltages do not exceed the limits shown in equation 1. Furthermore, for distortion-free measurements, the common mode and
differential voltages need to fit into the linear range shown in Figs. 12 (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_12) and 13
(https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_13). For those applications which scope GND () cannot be the USB ground, a
USB isolation solution, such as what is described in ADI’s CN-0160 (http://www.analog.com/en/circuits-from-the-lab/CN0160/vc.html) can be
used; however, this will limit things to USB full speed (12 Mbps), and will impact the update rate (screen refresh rates, not sample rates) of the
Analog Discovery 2.
The maximum swing of the input signal to avoid signal distortion by opening the ADG612 ESD diodes is (for both low-gain
and high-gain):
Vmux R6
= = 0.019 (3)
Vin R1 + R4 + R6
Vmux R4 + R6
= = 0.212 (5)
Vin R1 + R4 + R6
Vbuf
= 1 (9)
Vmux
R79
Vref SC = Vref 1V 2 ⋅ (1 + ) = 2V (10)
R80
R77
0 ≤ Vof f SC = VoutAD5643 ⋅ (1 + ) < 4.044V (11)
R78
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_5.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_6.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
VADCdif f R9 R17
= = = 1.77 (13)
Vbuf dif f R8 R16
VADCdif f R9 R17
= = = 1 (14)
Vof f SC − Vref SC R3 R22
VCM
= 1 (15)
VADCP + VADCN /2
The ADF4360-9 Clock Generator PLL with Integrated VCO is configured for generating a 200 MHz () differential clock for
the ADC () and a 100 MHz () single-ended clock for the DAC ().
Analog Devices ADIsimPLL software was used for designing the clock generator (see Fig. 7
(https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_7)). The PLL filter is optimized for constant frequency (low
Loop Bandwidth = 50 kHz () and Phase Margin = 60°). Simulation results are shown below. The Phase jitter using a brick wall
filter (10.0 kHz () to 100 kHz ()) is 0.04° rms.
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_7.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_8.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_9.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_10.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
Figure 10. ADC - digital section. []
VADC dif f
Low gain = = 0.034
Vin dif f
VADC dif f
H igh gain = = 0.375 (20)
Vin dif f
Combining the ADC () input voltage range shown in 19 with V of f SC at the midrange of 11 (scope vertical position at 0), the
Vin range is:
To cover component value tolerances and to allow software calibration, only the ranges below are specified.
With the 14-bit ADC (), the absolute resolution of the scope is:
58.6V
at low gain : = 3.58mV
14
2
5.3V
at high gain : = 0.32mV (23)
14
2
The effect of the offset setting (scope vertical position) can be calculated from 10, 11 and 14:
The vertical position setting moves the signals vertically on the scope screen (relative to vertical screen center) by V of f eqin
:
To be visible on the scope screen and not distorted, a signal should be included in all the solid line polygons of a figure (linear
range = geometrical intersection of the surfaces).
Only the differential input voltage is shown on the scope screen. The common mode voltage information is removed by the
differential structure of the Analog Discovery 2 scope. A signal overpassing the linear range will be distorted on the scope
screen, i.e. the graphical representation will be clamped. In the diagrams below, a signal outside the linear range will be clamped
to the closest point in the linear range. The clamping point is not necessarily at the scope screen top or bottom edge, as
explained below.
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_11.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
Figure 11. Scope input signal range. Scale - Low gain, in terms of - VinP and VinN (left), VinDiff and VinCM (right). Size - Full range (up),
detail (down). []
The dashed rectangles represent the display area on the scope screen. There are three dashed rectangles in each diagram: the
middle one corresponds to the vertical position set to 0 (VoffSc = 2.022V in equation 11. The left one shows the display area
when vertical position is set to maximum (VoffSc = 4.044V), and the right one corresponds to the minimum (negative) vertical
position (VoffSc = 0V). Any intermediate vertical position is possible, moving the displayable area (virtual dashed rectangle) to
any intermediate position. A signal crossing the long side of the dashed rectangle exceeds the displayable input voltage range
causing the ADC () to saturate (either at zero or at Full Scale). This is represented on the scope screen with dashed line warning
to the user.
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_12.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
Figure 12. Scope input signal range. Scale - High gain, in terms of - VinP and VinN (left), VinDiff and VinCM (right). Size - Full range (up),
detail (down). []
A signal keeping within the dashed rectangle but crossing any solid line overrides electrical limits of intermediate circuits in the
signal path (see the legend of the figures). This results in distorting the signal without saturating the ADC (). The software has
no information about this situation and cannot warn the user with specific signal representation. It is the user’s responsibility to
understand and avoid such situations.
For low gain (Fig. 11) (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_11), the simple condition to stay in the
linear range is to keep both positive and negative inputs V , V inP in the ±26V range (as shown by equation 2).
inN
For high gain (Fig. 12) (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_12), by combining equations 7 and 5,
both positive and negative inputs in must stay in the range:
Additionally, the differential input signal (combined with the equivalent offset voltage – vertical position) is visible only within
the range:
Note the difference between typical parameter values considered by the figures and the safer min/max values used for the
equations.
Figure 13 (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_13) shows an example of a signal distorted due to
a common mode input voltage that is too large. The grey line is the reference, not distorted, signal. The differential input
voltage is a 4Vpp triangle on top of a -5V DC component. The common mode input voltage is 10V. The vertical position of
the scope is set to 5V and high gain is selected. The yellow line shows an identical signal, except the common mode input
voltage is 15V.
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_13.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
(https://reference.digilentinc.com/_detail/analog_discovery_2/ad2_15.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
Figure 14. Scope spectral characteristic diagram. Low gain (up), high gain (down). []
As shown above, the measurements in Fig. 14 were taken with a coax cable and a Digilent Discovery BNC adapter. This is the
optimal setup that allows maximal Analog Discovery spectral performance. The wire kit included with the Analog Discovery 2
is a cheap, easy-to-use probing solution. However, the wire kit reduces the bandwidth of the scope and is susceptible to
inducing noise and crosstalk from adjacent circuits. Fig. 21
(https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_21) shows the spectral characteristic diagram for the AWG
connected to the scope with the wire kit.
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_15.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
R41
Vref 1V _AW G = Vref 1V 2_AW G ⋅ = 1V (28)
R39 + R41
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_17.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
Vref 1V _AW G
IoutAW GF S = 32 ⋅ (29)
Rset
For high-gain:
1V
IoutAW GF S_H G = 32 ⋅ = 4mA (30)
8kΩ
For low-gain:
1V
IoutAW GF S_H G = 32 ⋅ = 1mA (31)
32kΩ
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_18.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
Where:
D
{AU } = ∈ [ 0 … 1) ; − normalized unipolar DAC input number
N
2
14 14
D ∈ [0 … 2 ) = [0 … 2 − 1] ; − integer unipolar DAC input number (34)
VAudioF S HG
= IoutAW GF S HG
⋅ R142 = 496mV
VAudioF S LG
= IoutAW GF S LG
⋅ R142 = 124mV (36)
(https://reference.digilentinc.com/_detail/analog_discovery_2/ad2_19.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
1 1 1 1 1
+ + = + (37)
R140 R141 R144 R147 R149
R141 R141
VoutAW G = −VAudio ⋅ + (2 ⋅ Vof f AW G − Vref 1V 2AW G ) ⋅ (38)
R144 R140
The first term in equation 38 represents the actual wave amplitude, with a range of:
−1.36V < 1.25V < VACoutAW G LG < 1.25V < 1.36V (39)
Low-gain is used to generate low amplitude signals with improved accuracy. Any amplitude of the output signal is derivable by
combining LowGain/HighGain setting (rough) with the digital signal amplitude (fine).
With the 14-bit DAC (), the absolute resolution of the AWG AC component is:
2.72V
at Low Gain : = 166μV
14
2
10.9V
at H igh Gain : = 665μV (40)
14
2
The second term in equation 38 shows the DC component (AWG offset), with a range of (for either LowGain or HighGain):
AD8067 is supplied with ±5.5V ; to avoid saturation the user should keep the sum of AC and DC components in 38 to:
Only bolded ranges are used in equations 39, 41, and 42, for providing tolerance margins.
The R145 PTC thermistor provides thermal protection in case of an output shortcut.
3.5. Audio
A stereo audio output combines the two AWG channels (Fig. 20)
(https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_20). AD8592 (http://www.analog.com/en/audiovideo-
products/audio-amplifiers/ad8592/products/product.html) was used for its features:
Single-supply operation: 2.5 V to 6 V
High output current: ±250 mA
Low shutdown supply current: 100 nA
Low supply current: 750 μA/Amp
Very low input bias current
A single 3.3V supply is used.
The first term in equation 43 is the audio signal. The second term is the common mode DC component, removed by AC
coupling.
The audio signal range is:
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_20.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_21.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
Figure 21. AWG spectral characteristics. With Analog Discovery BNC Adapter and BNC cable from AWG to Scope (up). With the wire kit
(down). []
4. Calibration Memory
The analog circuitry described in previous chapters includes passive and active electronic components. The datasheet specs
show parameters (resistance, capacitance, offsets, bias currents, etc.) as typical values and tolerances. The equations in previous
chapters consider typical values. Component tolerances affect DC, AC, and CMMR performances of the Analog Discovery 2.
To minimize these effects, the design uses:
0.1% resistors and 1% capacitors in all the critical analog signal paths
Capacitive trimmers for balancing the Scope Input Divider and Gain Selection
No other mechanical trimmers (as these are big, expensive, unreliable and affected by vibrations, aging, and temperature
drifts)
Software calibration, at manufacturing
User software calibration, as an option
A software calibration is performed on each device as a part of the manufacturing test. AWG signals are passed to a reference
instrument and reference signals are connected to the Scope inputs. A set of measurements is used to identify all the DC errors
(Gain, Offset) of each analog stage. Correction (Calibration) parameters are computed and stored in the Calibration Memory,
on the Analog Discovery 2 device, as Factory Calibration. The WaveForms software allows the user performing an in-house
calibration and overwrite the Calibration Data. Returning to Factory Calibration is always possible.
The WaveForms Software reads the calibration parameters from the connected Analog Discovery 2 and uses them to correct
both generated and acquired signals.
5. Digital I/O
Figure 22 (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_22) shows half of the Digital I/O pin circuitry
(the other half is symmetrical). J3 is the Analog Discovery 2 user signal connector.
General purpose FPGA I/O pins are used for Analog Discovery 2 Digital I/O. FPGA pins are set to SLOW slew rate and
4mA drive strength, with no internal pull.
PTC thermistors provide thermal protection in case of shortcuts. Schottky Diodes double the internal FPGA ESD protection
diodes for increasing the acceptable current in case of overvoltage. Nominal resistance of the PTCs (220Ω) and parasitical
capacitance of the Schottky diodes (2.2pF) and FPGA pins (10pF) limit the bandwidth of the input pins. For output pins, the
PTCs and the load impedance limit the bandwidth and power.
Input and output pins are LVCMOS3V3. Inputs are 5V tolerant. Overvoltage up to ±20V is supported.
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_22.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
The Analog Discovery 2 exhibits two main powering modes: USB and External. Temporary modes (Racing OFF, USB OFF
and Racing) are explained here for design clarifications, but have no importance for the user observed behavior.
Racing OFF – immediately after reset, before FPGA is programmed, if an external power supply is attached and in the
right range (PWRGD = HIGH).
USB OFF – immediately after reset, before FPGA is programmed, if external power supply is missing or out-of-range
(PWRGD = LOW).
USB – all the power is drained from the Vbus (IC21 = ON, IC26 = OFF). The external power supply is either missing
or out of the right voltage range. The power available for both User Supplies is limited to 0.7W.
Racing – when external power supply is in the right voltage range (PWRGD = HIGH), before WaveForms stops the
USB Power Controller. During racing mode, both USB Power Controller (IC21) and External Power controller (IC26)
are ON, the device drains power from whatever supply has a higher voltage (D28 and D29 work as a maxim voltage
detector). The Racing mode is temporary, it ends when the FPGA is configured and communicates with the WaveForms
software. During Racing mode, the power available for User Supplies is limited.
External – the device is powered from an external supply (via the 5V DC connector and IC26). Vext is in the range
shown by equation 45 (PWRGD = HIGH, and WaveForms already stopped the USB Power Controller (IC21). The
User Supplies current and power limits are increased to 700mA or 2.1W each. The only circuit still supplied from the
USB VBUS is the USB controller (IC41).
At Power ON, the FPGA is not programmed, EN_VBUS is HiZ, the pulldown resistor R246 turns Q1 OFF, IC21 is ON via
R174. The Analog Discovery 2 starts in USB OFF mode (when PWRGD = LOW) or Racing OFF mode (when PWRGD =
HIGH). The WaveForms software first configures the FPGA, and the device turns into USB or Racing mode, depending on
presence/absence of correct external supply voltage. The FPGA continuously monitors the voltage at the 5V DC connector.
When detecting the Racing mode (PWRGD = HIGH), WaveForms sends the command to drive EN_VBUS HIGH, turning
the USB Power Controller (IC21) OFF, thus switching to External mode.
If external Power Supply is attached after WaveForms started and runs several instruments, the device steps seamlessly trough
USB → Racing → External modes. Running instruments are not affected, except User Supplies get more available power.
However, removing the external power supply during External mode is not seamless. Only the USB controller keeps working
(as supplied from the USB port). The FPGA gets unpowered and loses configuration data. The device stops all the instruments,
EN_VBUS go HiZ, which leads to the USB OFF mode. WaveForms will prompt the user to select the device, which will re-
program the FPGA. All the instruments can then be run, in the USB mode.
An ADM1177 (http://www.analog.com/en/power-management/power-monitors/adm1177/products/product.html) Hot Swap
Controller and Digital Power Monitor with Soft Start Pin is used to provide USB power compliance during USB and Racing
modes (IC21 in Fig. 23) (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_23).
Remarkable ADM1177 features are:
Safe live board insertion and removal
Supply voltages from 3.15 V to 16.5 V
Precision current sense amplifier
12-bit ADC () for current and voltage read
Adjustable analog current limit with circuit breaker
±3% accurate hot swap current limit level
Fast response limits peak fault current
Automatic retry or latch-off on current fault
Programmable hot swap timing via TIMER pin
Soft start pin for reference adjustment and programming of initial current ramp rate
I2C fast mode-compliant interface (400 kHz () maximum)
When enabled, (in USB or Racing modes), IC21 limits the current consumed from the USB port to:
100mV 100mV
Ilimit = = = 1A (46)
R173 0.1Ω
For a maximum time of:
ms
tcool = 550 [ms/μF ] ⋅ C80 = 550 [ ] ⋅ 0.47μF = 258.5ms (48)
μF
To avoid high inrush currents at hot swap, Soft Start circuitry limits the current slope to:
dIlimit 10μA 1 mA
= ⋅ = 212 (49)
dt C81 10 ⋅ R173 ms
If the current drops below Ilimit before t f ault , normal operation begins.
Similarly, IC26 (in Racing or External modes), limits the current consumed from the external power supply to:
100mV 100mV
Ilimit = = = 2.78A (50)
R247 0.036Ω
tf ault and t cool are same as for IC21, and the current slope limit is:
dIlimit 10μA 1 mA
= ⋅ = 591 (51)
dt C432 10 ⋅ R247 ms
The Analog Discovery 2 user pins are overvoltage protected. Overvoltage (or ESD) diodes short when a user pin is overdriven
by the external circuitry (Circuit Under Test), back powering the input/output block and all the circuits sharing the same
internal power supply. If the back-powered energy is higher than the used energy, the bi-directional power supply recovers the
difference and delivers it to the previous node in the power chain. Eventually, the back-powering energy could arrive to the
USB VBUS, raising the voltage above the 5V nominal value. D28 in Fig. 23
(https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_23) protects the PC USB port against such a situation.
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_25.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
R253 10kΩ
VI set = = = 0.5V (52)
1 1 1 1 1 1
+ + + +
R253 R254 R255 10kΩ 1.74kΩ 22.6kΩ
VI set 0.5V
Ilimit = = = 290mA (53)
40 ⋅ R21 40 ⋅ 0.043Ω
During External and OFF modes, SET_ILIM_USR pin is driven HiZ by the FPGA. The voltage at the ISET pin of IC27 is:
VI set 2.5V
Ilimit = = = 1.45A (55)
40 ⋅ R21 40 ⋅ 0.043Ω
If the consumed current does not fall below I limit before t f ault , IC21 turns off Q2. A hot swap retry is initiated after:
1 1 1 1
+ = + (60)
R188 R193 R265 R266
1 1 1 1
+ = + (61)
R187 R270 R72 R190
R188 R188
VOU T +_U SR = VF B ⋅ − VSET +_U SR ⋅ = 5.33V − 4.87 ⋅ VSET +_U SR (62)
R266 R193
R187 R187
VOU T −_U SR
= −VF B ⋅ + VSET −_U SR
⋅ = −5.33V + 4.87 ⋅ VSET −_U SR
(63)
R270 R190
Where:
IC43 (Fig. 18) (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_18) generates the setting voltages in the range:
The margins allow for compensating the components’ tolerances. After calibration, the WaveForms SW only allows the ranges
0 to +/-5V respectively. Even so, output voltages below absolute value of 0.5V are not guaranteed. With light loads, such
voltages might exhibit significant ripple (~15mV).
Each supply can be disabled by the FPGA.
(https://reference.digilentinc.com/_detail/analog_discovery_2/ad2_28.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
Figure 27. 3.3V internal analog power supply. []
(https://reference.digilentinc.com/_detail/analog_discovery_2/ad2_29.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_29.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
Choosing R 181
= 10.2k\Omega :
3.3V − 0.8V
R180 = ⋅ 10.2kΩ = 31.87kΩ (69)
0.8V
Closest standard value is R 180
= 31.6k\Omega
The 5.5V and -5.5V supplies Fig. 30 (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_30) are created with a
Sepic-Cuk topology, built around a single ADP1612 (http://www.analog.com/en/power-management/switching-regulators-
integrated-fet-switches/adp1612/products/product.html) Step-Up DC-to DC converter. Both Sepic and Cuk converters are
connected to the same switching pin of the regulator. Only the positive Sepic output is regulated, while the negative output
tracks the positive one. This is an accepted behavior, since similar load currents are expected on both positive and negative rails.
(https://reference.digilentinc.com/_detail/analog_discovery_2/ad2_31.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
5.5V − 1.235V
R184 = ⋅ 13.7kΩ = 47.31kΩ (71)
1.235V
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_31.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
(https://reference.digilentinc.com/_detail/analog_discovery_2/ad2_34.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
7. USB Controller
The USB interface performs two tasks:
Programming the FPGA: There is no non-volatile FPGA configuration memory on the Analog Discovery. The
WaveForms software identifies the connected device and downloads an appropriate .bit file at power-up, via a Digilent
USB-JTAG interface. Adept run-time is used for low level protocols.
Data exchange: All instrument configuration data, acquired data and status information is handled via a Digilent
synchronous parallel bus and USB interface. Speed up to 20MB/sec. is reached, depending on USB port type and load as
well as PC performance.
8. FPGA
The core of the Analog Discovery 2 is the Xilinx Spartan-6 (http://www.xilinx.com/products/silicon-devices/fpga/spartan-
6/index.htm) FPGA circuit XC6SLX16-1L. The configured logic performs:
Clock management (12 MHz () and 60 MHz () for USB communication, 100 MHz () for data sampling)
Acquisition control and Data Storage (Scope and Logic Analyzer)
Analog Signal synthesis (look-up tables, AM/FM modulation for AWG)
Digital signal synthesis (for pattern generator)
Trigger system (trigger detection and distribution for all instruments )
Power supplies control and instruments enabling
Power and temperature monitoring
Calibration memory control
Communication with the PC (settings, status data)
Block and Distributed RAM () of the FPGA are used for signal synthesis and acquisition. Multiple configuration files are
available through the WaveForms software to allocate the RAM () resources according to the application.
Detail of the trigger system is shown in Fig. 35 (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_35). Each
instrument generates a trigger signal when a trigger condition is met. Each trigger signal (including external triggers) can trigger
any instrument and drive the external trigger outputs. This way, all the instruments can synchronize to each other.
(https://reference.digilentinc.com/_detail/analog_discovery_2/figure_35.png?id=reference%3Ainstrumentation%3Aanalog-discovery-
2%3Areference-manual)
9.8. Voltmeters°
Channels (shared with scope): 2
Channel type: differential
Measurements: DC, AC, True RMS54).
Resolution: 14-bit
Accuracy (scale ≤0.5V/div): ±5mV
Accuracy (scale ≥1V/div): ±50mV
Input impedance: 1MΩ || 24pF
Input range: ±25V (±50V diff)
Input protected to: ±50V
*³The Network Analyzer instrument in WaveForms uses a channel of Analog Outputs (AWG) and all Analog Inputs (Scope)
hardware resources. When it starts running, all other instruments using the same HW resources (competing instruments: AWG,
Scope, Voltmeters, Spectrum Analyzer) are forced to a BUSY state. When running a competing instrument, the Network
Analyzer is forced to a BUSY state
°This instrument in WaveForms uses Analog Inputs (Scope) Hardware resources competing with other WaveForms
instruments (Scope, Spectrum Analyzer, Network Analyzer, Voltmeter). When it starts running, the competing instruments are
forced to a BUSY state. When running a competing instrument, this instrument is forced to a BUSY state.
°°This instrument in WaveForms uses Analog Inputs (Scope) Hardware resources competing with other WaveForms
instruments (Scope, Spectrum Analyzer, Network Analyzer, Voltmeter). When it starts running, the competing instruments are
forced to a BUSY state. When running a competing instrument, this instrument is forced to a BUSY state.
Written by Mircea Dabacan, PhD, Technical University of Cluj-Napoca Romania
1) These 16 digital lines are shared by the Logic Analyzer, Pattern Generator and Digital I/O. They are always inputs, some of
them can be set to be outputs also. Digital I/O has precedence in case of output conflict with the Pattern Generator.
2) When inputs, these lines can be set to be 1.8V CMOS compatible.
3) These 16 digital lines are shared by the Logic Analyzer, Pattern Generator and Digital I/O. They are always inputs, some of
them can be set to be outputs also. Digital I/O has precedence in case of output conflict with the Pattern Generator.
4) When inputs, these lines can be set to be 1.8V CMOS compatible.
5) These 16 digital lines are shared by the Logic Analyzer, Pattern Generator and Digital I/O. They are always inputs, some of
them can be set to be outputs also. Digital I/O has precedence in case of output conflict with the Pattern Generator.
6) When inputs, these lines can be set to be 1.8V CMOS compatible.
7) When inputs, these lines can be set to be 1.8V CMOS compatible.
8) See note in section 2. Scope
9) High Gain: ±2.6V differential input voltage range.
10) Low Gain: ±29V differential input voltage range.
11) High Gain or Low Gain is used in the analog signal input path for rough scaling. “Digital Zooming” is used for multiple
scope scales.
12) The Scope bandwidth depends on probes. The Analog Discovery wire kit is an affordable, easy-to-use solution, but it limits
the frequency, noise, and crosstalk performances (see Figure 21
(https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_21), down). With coax probes and Analog Discovery BNC
adapter, the 0.5dB Scope bandwidth is 10 MHz () (see Fig. 15).
13) The Scope bandwidth depends on probes. The Analog Discovery wire kit is an affordable, easy-to-use solution, but it limits
the frequency, noise, and crosstalk performances (see Figure 21
(https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_21), down). With coax probes and Analog Discovery BNC
adapter, the 0.5dB Scope bandwidth is 10 MHz () (see Fig. 15).
14) As shown in Fig. 12, a ±50V differential input signal does not fit in a single scope screen (ADC () range). However, Vertical
Position setting allows visualization of either +50V or -50V levels.
15) Default Scope buffer size is 8kSamples/channel. The WaveForms Device Manager provides alternate FPGA configuration
files, with different resource allocation. With no memory allocated to the Digital I/O and reduced memory assigned to the
AWG, the scope buffer size can be chosen to be 16kSamples/channel.
16) Trigger Detectors and Trigger Distribution Networks are implemented in the FPGA. This allows real time triggering and
cross-triggering of different instruments within the Analog Discovery device. Using external Trigger inputs/outputs, cross-
triggering between multiple Analog Discovery devices is possible.
17) Trigger Detectors and Trigger Distribution Networks are implemented in the FPGA. This allows real time triggering and
cross-triggering of different instruments within the Analog Discovery device. Using external Trigger inputs/outputs, cross-
triggering between multiple Analog Discovery devices is possible.
18) Real time sampling modes are implemented in the FPGA. The ADC () always works at 100MS/s. When a lower sampling
rate is required, (108/N samples/sec), N ADC () samples are used to build a single recorded sample, either by averaging or
decimating. In the Min/Max mode, every 2N samples are used to calculate and store a pair of Min/Max values. The stored
sample rate is reduced by half in Min/Max mode.
19) In mixed signal mode, the scope and Digital I/O acquisition blocks use the same reference clock, for synchronization.
20) This functionality is implemented by WaveForms software in the PC, using the buffered data from the FPGA. After a
acquiring a complete data buffer at the FPGA level and uploading it to the PC, the data is processed and displayed, while a new
acquisition is started.
21) This functionality is implemented by WaveForms software in the PC, using the buffered data from the FPGA. After a
acquiring a complete data buffer at the FPGA level and uploading it to the PC, the data is processed and displayed, while a new
acquisition is started.
22) This functionality is implemented by WaveForms software, in the PC.
23) This functionality is implemented by WaveForms software, in the PC.
24) The AWG DAC () always works at 100MS/s. When a lower sampling rate is required, (108/N samples/sec), each sample is
the frequency, noise, and crosstalk performances. With coax probes and Analog Discovery BNC adapter, the 0.5dB AWG
bandwidth is 4MHz (see Figure 21 (https://reference.digilentinc.com/analog_discovery_2/refmanual#figure_21)).
29) Default AWG buffer size is 4kSamples/channel. The WaveForms Device Manager provides alternate FPGA configuration
files, with different resources allocation. With no memory allocated to the Digital I/O and reduced memory assigned to the
Scope, the AWG buffer size can be 16kSamples/channel.
30) Real time implemented in the FPGA configuration.
31) This functionality is implemented by WaveForms software, in the PC.
32) All digital I/O pins are always available as inputs, to be acquired and displayed in the Logic Analyzer and Static I/O. The
user selects which pins are also used as outputs, by the Pattern Generator or Static I/O. When a signal is driven by both Pattern
Generator and Static I/O, the Static I/O has priority, except if Static I/O attempts to drive a HiZ value.
33) Default Logic Analyzer buffer size is 4kSamples/channel. The WaveForms Device Manager provides alternate FPGA
configuration files, with different resource allocation. With no memory allocated to the Scope and AWG, the Logic Analyzer
buffer size can be chosen to be 16kSamples/channel.
34) Trigger Detectors and Trigger Distribution Networks are implemented in the FPGA. This allows real time triggering and
cross-triggering of different instruments within the Analog Discovery device. Using external Trigger inputs/outputs, cross-
triggering between multiple Analog Discovery devices is possible.
35) Trigger Detectors and Trigger Distribution Networks are implemented in the FPGA. This allows real time triggering and
cross-triggering of different instruments within the Analog Discovery device. Using external Trigger inputs/outputs, cross-
triggering between multiple Analog Discovery devices is possible.
36) This functionality is implemented by WaveForms software in the PC, using the buffered data from the FPGA. After a
acquiring a complete data buffer at the FPGA level and uploading it to the PC, the data is processed and displayed, while a new
acquisition is started.
37) This functionality is implemented by WaveForms software, in the PC.
38) All digital I/O pins are always available as inputs, to be acquired and displayed in the Logic Analyzer and Static I/O. The
user selects which pins are also used as outputs, by the Pattern Generator or Static I/O. When a signal is driven by both Pattern
Generator and Static I/O, the Static I/O has priority, except if Static I/O attempts to drive a HiZ value.
39) Real time implemented in the FPGA configuration.
40) Default Pattern Generator buffer size is 1kSamples/channel. The WaveForms Device Manager provides alternate FPGA
configuration files, with different resources allocation. With no memory allocated to the Scope and AWG, the Pattern
Generator buffer size can be 16kSamples/channel.
41) This functionality is implemented by WaveForms software, in the PC.
42) This functionality is implemented by WaveForms software, in the PC.
43) All digital I/O pins are always available as inputs, to be acquired and displayed in the Logic Analyzer and Static I/O. The
user selects which pins are also used as outputs, by the Pattern Generator or Static I/O. When a signal is driven by both Pattern
Generator and Static I/O, the Static I/O has priority, except if Static I/O attempts to drive a HiZ value.
44) This functionality is implemented by WaveForms software, in the PC.
45) This functionality is implemented by WaveForms software, in the PC.
46) WaveForms allows setting the user voltages in the range 0V…5V respectively -0V…-5V. However, voltages below 0.5V,
respectively above -0.5V might have excessive ripple and should be used with caution.
47) This limit results from the overall device power balance: the power available from the USB port, minus the power internally
used by the device, moderated by the user power supplies efficiency. The balance of 500mW is available for both user supplies
to share.
48) This limit results from the structure of each user power supply (positive and negative). It is not conditioned by the load
degree of the complementary user supply.
49) This limit results from the structure of each user power supply (positive and negative). It is not conditioned by the load
degree of the complementary user supply.
50) This limit results from the structure of each user power supply (positive and negative). It is not conditioned by the load
cross-triggering of different instruments within the Analog Discovery device. Using external Trigger inputs/outputs, cross-
triggering between multiple Analog Discovery devices is possible.
63) Trigger Detectors and Trigger Distribution Networks are implemented in the FPGA. This allows real time triggering and
cross-triggering of different instruments within the Analog Discovery device. Using external Trigger inputs/outputs, cross-
triggering between multiple Analog Discovery devices is possible.
64) This functionality is implemented by WaveForms software, in the PC.
65) This functionality is implemented by WaveForms software, in the PC.
Last Name
Email Address
Submit
Connect With Us
(https://twitter.com/digilentinc)
(https://www.facebook.com/Digilent)
(https://www.youtube.com/user/DigilentInc)
(https://instagram.com/digilentinc)
(https://github.com/digilent)
(https://www.reddit.com/r/digilent)
(https://www.linkedin.com/company/1454013)
(https://www.flickr.com/photos/127815101@N07)