Summary of the invention
The purpose of this utility model is the shortcoming at above-mentioned AWG product waveform input mode, provides a kind of human-computer dialogue formula solution, as shown in Figure 1.The core technology of this scheme is the time domain waveform curve that draws on the touch-screen of AWG instrument panel, and show this wavy curve track in real time by LCDs (LCD), after drawn wavy curve is identified, generate a kind of AWG of the voltage signal of same waveform as by the hardware and software of instrument itself.
The utility model is made up of touch-screen and LCD MODULE (LCM), keyboard and digital coding switch module, microcontroller minimum systematic module, data-interface logic module, Direct Digital frequency synthesis (DDS) module, digital-to-analogue (D/A) interface module, digital-to-analogue (D/A) modular converter, algorithm amplification module, as shown in Figure 1.Wherein touch-screen and LCM, keyboard and digital coding switch module are installed on the waveform generator panel.
Touch-screen is connected as the touch screen interface of waveform input equipment with the microcontroller minimum systematic module; LCM is made up of LCD screen and drive circuit board, and the overlapping assembling of touch-screen of LCD screen and same size coincides together the coordinate system of the touch input active zone of touch-screen and the demonstration output active zone that LCD shields; LCM shows that as waveform output equipment is connected with the LCM interface of microcontroller minimum systematic module, is used for showing the track of drawn waveform on the touch-screen, finishes human-computer dialogue.Keyboard also is connected with the I/O interface of microcontroller minimum systematic module as input equipment with the digital coding switch module, is mainly used to the established standards waveform.
The data/address bus that the microcontroller minimum systematic module is drawn is connected with the input port of address bus with the data-interface logic module; The output of data-interface logic module links to each other with the input of DDS module; The output of DDS module links to each other with the input of D/A interface module; The output of D/A interface module is connected with the input of D/A modular converter; The output of D/A modular converter is connected with the input of algorithm amplification module; The output of algorithm amplification module is exactly the BNC socket output of AWG.
Operation principle microcontroller sampling touch-screen draws and shields the wavy curve of demonstration in real time by LCD, after certain algorithm process, obtained the Wave data of this curve, be sent in the DDS module through the data-interface logic module and store, finished wave setting, be i.e. waveform input.By microcontroller DDS is sent control command afterwards, DDS then takes out Wave data successively and delivers to the D/A interface under the control of system clock, generates and the identical output voltage waveforms of the drawn waveform of touch-screen with the algorithm amplification module through the D/A modular converter again.
Existing AWG is many to come input unit to generate wave function and limited " arbitrarily " waveform by button operation, or loaded down with trivial details by the method that connects PC download random waveform.Be difficult to realize with the engineering signal waveform that accurate mathematical analysis formula is expressed for needing on some engineerings and being difficult to.
The disclosed a kind of AWG by touch-screen input random waveform curve of the utility model, its input waveform mode has overcome the shortcoming of only being imported limited type waveforms signal by keyboard to a great extent, has formed complementation with keyboard input reference waveform.Make AWG can generate the engineering signal of more waveforms, improved the degree of AWG output random waveform.
Waveform input method described in the utility model can be according to the demand of on-the-spot test, the attainable most of engineering signal waveform of drawing quickly and easily; Also can be under the support of this machine of AWG software, reference waveforms such as the sine wave that this machine is generated, sawtooth waveforms access and show on LCD, on its reference waveform, add, revise by felt pen and form new random waveform, greatly improved AWG " arbitrarily " degree, form complementation with method, have simple to operate, waveform and import characteristics intuitively by button operation.To scientific research personnel, College Teachers and engineer, method and instrument in particular for the field adjustable engineer provides quick generation test signal waveform make it to follow the tracks of fast fault, the shortening debugging cycle.
Waveform input method described in the utility model and instrument make the output voltage that can fast generate random waveform under the unit condition.Described unit is exactly not connect PC, do not insert other communication bus or network, by the required time domain waveform of drawing of the touch-screen on AWG self instrument panel, and then generates the separate unit AWG of corresponding output waveform.
Embodiment
AWG by touch-screen input random waveform curve described in the utility model as shown in Figure 1.It is made up of touch-screen and LCM, keyboard and digital coding switch module, microcontroller minimum systematic module, data-interface logic module, DDS module, D/A interface module, D/A modular converter, algorithm amplification module.Wherein data-interface logic module, DDS module, D/A interface module are integrated among the fpga chip.
Touch-screen and LCM, keyboard and digital coding switch module are installed on the instrument panel of AWG.Touch-screen that this example uses and LCM are that to adopt commercially available 5.6 inches, pixel be 640 * 480 TFT LCD MODULE (TFT LCM) and 5.6 inches the overlapping installation all-in-one-piece of resistive touch screen finished product module.Accompanying drawing 2 shows in the annexation of touch-screen and LCM and microcontroller minimum systematic module, label 4 is touch-screen and LCD MODULE, the 5th, the microcontroller minimum systematic module, the 6th, the data-interface logic module, label the 7, the 10th, the X electrode of touch-screen, label the 9, the 11st, the Y electrode of touch-screen, the 8th, the overlapping region of the viewing area of LCD display and the touch of touch-screen input.
Microcontroller minimum systematic module employing model is the general arm processor core board of commercially available finished product of OK2440 in this example.The arm processor S3C2440A that comprises a slice Samsung company on the plate, two capacity are that 4M * 16Bit * 4Banks, model are the SDRAM Memory of K4S561632H, a slice capacity is that 256M * 8Bit, model are the NandFlash Memory of K9F1G08U0B, and a slice capacity is that 256MBit, model are components and parts such as the Nor FlashMemory of JS28F320J3D75 and crystal oscillator, DC/DC supply convertor.The S3C2440A chip is a microcontroller chip with touch screen interface, LCM interface, embedded ARM920T microprocessor core.Two 100 core connector body J2, J3 are arranged on the OK2440 plate, they are drawn the resources such as touch screen interface signal, LCM interface control signal, data/address bus, address bus, GPIO, UART bus, I2C bus, spi bus and utilizing camera interface signal of arm processor S3C2440A chip on the plate for the user and use, and this example has used the part leg signal.
Accompanying drawing 3 has provided the annexation of this example with J1 and the relevant pin of J2 with accompanying drawing 4, accompanying drawing 5 usefulness port graphics modes, specifies as follows:
The connector body that J1 draws last data wire and the control line of touch-screen X, Y electrode and LCM.The touch-screen Y electrode two control strip line TSYM (47 pin) that draw, two control line TSXM of TSYP (48 pin) and X electrode (43 pin), TSXP (44 pin) are connected successively with the holding wire (56,57,58,59 pin) of the connector J2 same names of microcontroller minimum system plate module.
J1 draws the data wire VD[23..0 of 24 LCM] (30,29,28,27,26,25,24,23,22,21,20,19,17,16,15,14,13,12,11,10,9,8,7,6 pin), be connected with the holding wire of the same name (41,40,39,38,37,36,35,34,33,32,31,29,28,27,26,25,24,23,22,21,20,19,18,17 pin) of microcontroller minimum system plate module connector J2 successively; 9 control signal wires that J1 draws are by LCD_PWREN (32 pin), LCDVF2 (33 pin), LCDVF1 (34 pin), LCDVF0 (35 pin), VM (36 pin), VFRAME (37 pin), VLINE (38 pin), VCLK (39 pin), the leg signal LCD_PWREN of the same name (47 pin) of the order of LEND (40 pin) and microcontroller minimum systematic module connector J2, LCDVF2 (49 pin), LCDVF1 (50 pin), LCDVF0 (51 pin), VM (45 pin), VFRAME (44 pin), VLINE (43 pin), VCLK (42 pin), LEND (48 pin) signal correspondence is connected.
NRSTOUT signal on the J1 (5 pin) by resistance R 11 and S3C2440A by J2 draw reset signal nRESET (98 pin of J2) be connected.
This example is integrated in the data-interface logic module among the FPGA, and accompanying drawing 2 has provided the connection layout of microcontroller minimum systematic module and FPGA.The microcontroller minimum systematic module is that the method that fpga chip is mapped to the S3C2440A memory space is finished in employing with communicating by letter of FPGA, i.e. method by reference to storage, use address bus, data/address bus and control calling-on signal to visit that data logic interfacing logic module among the FPGA is connected, specifically in conjunction with the accompanying drawings 4 and accompanying drawing 5 realizations be described as follows:
Drawn 16 address wire ADDR[16..1 by J3 in the accompanying drawing 5] (18 of J3---3 pin) receive corresponding 16 I/O pins of FPGA; The 16 data lines ADATA[15..0 that draw by J3] (26 of J3---41 pin) receive 16 corresponding I/O pins of FPGA; 3 control calling-on signal line LnGCS4, LnOE, the LnWE (46,52,53 pin of J3) that J3 draws are connected to corresponding 3 I/O pins of FPGA.The FPGA that this example uses is altera corp, the model fpga chip as EP3C25Q240,240 pins altogether, about 200 of the I/O mouth line that can use for the user can determine that above-mentioned 16 address wires, 16 data lines and 3 control the calling-on signal lines and are connected with the concrete pin of FPGA by the cabling requirement of printed circuit board (PCB) (PCB).By visit FPGA, the S3C2440A processor has been sent to the data-interface logic module after the wavy curve of sampling is converted into Wave data.
In FPGA inside, the output of data-interface logic module links to each other with the input of DDS module.The data-interface logic module may be tailored to 16 bit registers, also may be tailored to RAM or dual port RAM, can require according to the concrete logic of DDS module to determine.
In FPGA inside, the output of DDS module links to each other with the input of D/A interface module; The output of D/A interface module is drawn by the I/O pin of FPGA, and is connected with the input of D/A converter by the PCB line.The figure place of the data wire of D/A interface module determines with the figure place of the concrete D/A converter that uses, and the model of D/A converter and figure place are determined by technical indicators such as the vertical resolution of concrete AWG, high sampling rate and output analog signal bandwidth.
The output of D/A modular converter is connected with the input of algorithm amplification module, and the output of algorithm amplification module is exactly the BNC socket output of AWG.
In fact described touch-screen is not limited to concrete process structure such as resistance-type or condenser type; LCDs also is not limited to the product of concrete displaying principle such as TFT or STN and process structure.
Described microcontroller minimum systematic module can adopt commercially available finished product module, also can make by oneself.Be not limited to the concrete company of microcontroller, concrete model, the concrete model of the size of the memory span that is not limited to expand and memory chip; The optional microcontroller that carries lcd controller and touch screen interface, also optional not with lcd controller, do not expand other LCM control chip and touch screen data acquisition chip and finish control LCM and touch-screen with the microcontroller of touch screen interface.
The number of button and interface mode are also determined by the specification requirement and the operation style of AWG instrument in described keyboard and the digital coding switch module; The also available simulation potentiometer of digital coding switch replaces.
The structure of described DDS inside modules logical circuit is determined by the concrete technical conditions of AWG, as long as can store the random waveform data; Data-interface logic and D/A interface module are not limited to particular circuit configurations, can be realized by the middle and small scale logical circuit, also can be realized by FPGA.
Described fpga chip is not limited to the product of specific company and specific model, is determined by the concrete specification requirement of AWG fully.
Described D/A modular converter is made up of D/A converter and some peripheral circuits, D/A converter is not limited to specific company and specific model, can determine not have direct correlation according to technical indicators such as the vertical resolution of AWG, high sampling rate and simulation output bandwidths with the waveform input mode.
Described algorithm amplification module is not limited to specific composition proposal, can comprise analog filter, biasing circuit, attenuator circuit, amplifying circuit, calibration circuit and conversion switch circuit etc.; Analog filter can be selected elliptic filter or Butterworth filter etc., and particular type and exponent number can determine not have direct correlation with the waveform input mode, as long as can finish waveform generator function described in the utility model by the technical indicator of AWG.
Brief introduction of work principle
AWG by touch-screen input random waveform curve described in the utility model is the electronic type measuring instrument of hardware and software and data processing co-ordination, principle is as follows: application software of the present utility model is made a Pixel Dimensions on the LCD screen be that 512 * 300 waveform is imported soft window, the arbitrary wavy curve that then on window, draws, cooperate the real-time waveform trace that draws on the touch-screen that shows by LCD, so that observe, revise and confirm.After drawn waveform was identified, microcontroller was sampled to wavy curve and is handled, and generated the waveform interface data, sent Wave data to the DDS module stores through the data-interface logic module, had finished the setting of output waveform.Then microcontroller sends control signal, and under the control of system clock, DDS reads Wave data automatically and sends circuit such as follow-up D/A modular converter to, produces the output of relevant voltage waveform.Soft window size also can be determined according to the big or small concrete of LCD screen that reality is used; The wavy curve that draws on the touch-screen must be monodrome time domain or spatial domain function, and this need carry out reasonableness test and treatment for correcting with software.