## ADALM2000硬件设计要点 ### 1. 概述 [[m2000_instru|集11种常用功能于一体的口袋仪器ADALM2000(M2K)]] 具有10种测试测量功能的M2K提供了桌面测量设备的完整功能 - 示波器、波形发生器、逻辑分析仪、协议分析仪、频谱仪、电压源等等,可以在任何地方构建一个电子实验室。 {{ :m2kboard.png |}} 作为参考,M2K的管脚图如下: {{ :adalm2000_pinout.png |}} ADALM2000的管脚图 {{ :adalm2000-pin-wires.png |}} ADALM2000的连线图 ### 2. 架构 #### 2.1 系统框图 {{ :m2kblock.png |}} {{drawio>M2k_block.png}}** ADALM2000功能框图** Analog Discovery 2's high-level block diagram is presented in [[analog_discovery_2:refmanual#figure_2|Fig. 2]] below. The core of the Analog Discovery 2 is the [[https://www.xilinx.com/|Xilinx®]] [[https://www.xilinx.com/products/silicon-devices/fpga/spartan-6.html|Spartan®-6]] FPGA (specifically, the XC6SLX16-1L device). The WaveForms application automatically programs the Discovery’s FPGA at start-up with a configuration file designed to implement a multi-function test and measurement instrument. Once programmed, the FPGA inside the Discovery communicates with the PC-based WaveForms application via a USB 2.0 connection. The WaveForms software works with the FPGA to control all the functional blocks of the Analog Discovery 2, including setting parameters, acquiring data, and transferring and storing data. Signals in the **Analog Input** block, also called the **Scope**, use "SC" indexes to indicate they are related to the scope block. Signals in the **Analog Output** block, also called **AWG**, use “AWG” indexes, and signals in the **Digital** block use a **D** index – all of the instruments offered by the Discovery 2 and WaveForms use the circuits in these three blocks. Signal and equations also use certain naming conventions. Analog voltages are prefixed with a "V" (for voltage), and suffixes and indexes are used in various ways: to specify the location in the signal path (IN, MUX, BUF, ADC, etc.); to indicate the related instrument (SC, AWG, etc.); to indicate the channel (1 or 2); and to indicate the type of signal (P, N, or diff). Referring to the block diagram in [[analog_discovery_2:refmanual#figure_2|Fig. 2]] below: * The** Analog Inputs/Scope** instrument block includes: * **Input Divider and Gain Control**: high bandwidth input adapter/divider. High or low-gain can be selected by the FPGA * **Buffer**: high impedance buffer * **Driver**: provides appropriate signal levels and protection to the ADC. Offset voltage is added for vertical position setting * **Scope Reference and Offset**: generates and buffers reference and offset voltages for the scope stages * **ADC**: the analog-to-digital converter for both scope channels. * The **Arbitrary Outputs/AWG** instrument block includes: * **DAC**: the digital-to-analog converter for both AWG channels * **I/V**: current to bipolar voltage converters * **Out**: output stages * **Audio**: audio amplifiers for headphone * A precision **Oscillator** and a **Clock Generator** provide a high quality clock signal for the AD and DA converters. * The **Digital I/O** block exposes protected access to the FPGA pins assigned for the Digital Pattern Generator and Logic Analyzer. * The **Power Supplies and Control** block generates all internal supply voltages as well as user supply programmable voltages. The control block also monitors the device power consumption for USB compliance when power is supplied via the USB connection. When external power supply is used, the control block allows more power for the user supplies. Under the FPGA control, power for unused functional blocks can be turned off. * The **USB Controller** interfaces with the PC for programming the volatile FPGA memory after power on or when a new configuration is requested. After that, it performs the data transfer between the PC and FPGA. * The **Calibration Memory** stores all calibration parameters. Except for the “Probe Calibration” trimmers in the scope Input divider, the Analog Discovery 2 includes no analog calibration circuitry. Instead, a calibration operation is performed at manufacturing (or by the user), and parameters are stored in memory. The WaveForms software uses these parameters to correct the acquired data and the generated signals In the sections that follow, schematics are not shown separately for identical blocks. For example, the Scope Input Divider and Gain Selection schematic is only shown for channel 1 since the schematic for channel 2 is identical. Indexes are omitted where not relevant. As examples, in equation \ref{4} below, $V_{in diff}$ does not contain the instrument index (which by context is understood to be the Scope), nor the channel index (because the equation applies to both channels 1 and 2). In equation \ref{3}, the type index is also missing because $V_{mux}$ and $V_{in}$ refer to any of //P// (positive), //N// (negative) or //diff// (differential) values. #### 2.2 ADC/DAC AD9963 #### 2.3 模拟输入 ##### 2.3.1 输入分压和增益控制 ##### 2.3.2 缓冲 ##### 2.3.3 ADC驱动 ##### 2.3.4 参考和偏移 #### 2.4 波形产生 ##### 2.4.1 I/V ##### 2.4.2 输出级 #### 2.5 时钟和振荡 #### 2.6 数字I/O ### 2. 示波器部分 {{ :m2kadc.png?1200 |}}** ADALM2000的ADC部分的器件构成 ** {{ :m2kadcsch.png |}}** ADC部分电路原理图 ** //**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 \ref{1}. Furthermore, for distortion-free measurements, the common mode and differential voltages need to fit into the linear range shown in Figs. [[analog_discovery_2:refmanual#figure_12|12]] and [[analog_discovery_2:refmanual#figure_13|13]]. For those applications which scope GND cannot be the USB ground, a USB isolation solution, such as what is described in ADI’s [[http://www.analog.com/en/circuits-from-the-lab/CN0160/vc.html|CN-0160]] 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.// #### 2.1. 示波器输入分压及增益选择 [[analog_discovery_2:refmanual#figure_3|图3]] 示波器的输入端分压及增益的选择 shows the scope input divider and gain selection stage. Two symmetrical R-C dividers provide: * Scope input impedance = 1MOhm || 24pF * Two different attenuations for high-gain/low-gain (10:1) * Controlled capacitance, much higher than the parasitical capacitance of subsequent stages * Constant attenuation and high CMMR over a large frequency range (trimmer adjusted) * Protection for overvoltage (with the ESD diodes of the ADG612 inputs) The maximum voltage rating for scope inputs is limited by C1 thru C24 to: $$-50V 参考电压部分电路原理图 {{ :m2kdac.png?1200 |}}ADALM2000的DAC部分 {{ :m2kzynq.png?1200 |}}ADALM2000的数字信号处理部分 {{ :m2kps.png?1200 |}}ADALM2000的电源部分 {{drawio>dac_block1.png}}ADALM2000 DAC部分的功能框图 ### 重画的原理图 {{:adalm2000.pdf|使用KiCad重画的原理图}}