CN202956754U - Virtual instrument based on USB (universal serial bus) bus - Google Patents

Virtual instrument based on USB (universal serial bus) bus Download PDF

Info

Publication number
CN202956754U
CN202956754U CN 201220722302 CN201220722302U CN202956754U CN 202956754 U CN202956754 U CN 202956754U CN 201220722302 CN201220722302 CN 201220722302 CN 201220722302 U CN201220722302 U CN 201220722302U CN 202956754 U CN202956754 U CN 202956754U
Authority
CN
China
Prior art keywords
circuit
converter
switching value
microcontroller
virtual instrument
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 201220722302
Other languages
Chinese (zh)
Inventor
吴东艳
李艳苹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Heilongjiang Institute of Technology
Original Assignee
Heilongjiang Institute of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Heilongjiang Institute of Technology filed Critical Heilongjiang Institute of Technology
Priority to CN 201220722302 priority Critical patent/CN202956754U/en
Application granted granted Critical
Publication of CN202956754U publication Critical patent/CN202956754U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Microcomputers (AREA)

Abstract

The utility model aims to solve the problems of the existing virtual instrument, and relates to a virtual instrument based on a USB bus, which belongs to the field of virtual instrument. The virtual instrument comprises a singlechip, a D/A converter, a switching value output circuit and a switching value input circuit, wherein the singlechip includes a microcontroller with a 8051 kernel, an A/D converter, a channel selection circuit and a USB interface circuit; a digital signal output end of the A/D convertor is connected with a digital signal input end of the microcontroller with the 8051 kernel; a digital signal output end of the microcontroller with the 8051 kernel is connected with a digital signal input end of the D/A converter; the switching value output circuit is used for outputting a switching valve; the switching value input circuit is used for providing a switching value; the microcontroller with the 8051 kernel is communicated with a universal computer through the USB interface; and the channel selection circuit is connected with a control end of both of the A/D converter and the D/A converter. The virtual instrument provided by the utility model is used for outputting four paths of excitation signals, PWM (pulse width modulation) waves with variable duty ratio, and four paths of switching signals.

Description

Virtual instrument based on usb bus
Technical field
The utility model relates to the virtual instrument based on usb bus, belongs to the virtual instrument field.
Background technology
The progress of science and technology and social development have proposed the requirement of more renewals to test.In the face of all trades and professions, various test assignment, no longer may develop corresponding special test equipment for it.While, because Digital Signal Processing and computer technology develops rapidly, becomes a reality virtual instrument.Virtual instrument is by multi-purpose computer and functionalization combination of hardware by application program, the user can operate by friendly graphical interfaces this computing machine, just as own defining in operation, a self-designed single instrument, thereby complete collection to tested amount, analysis, judgement, demonstration, data storage etc.The appearance of virtual instrument technique, thoroughly broken traditional instrument and defined by producer, the pattern that the user can't change.Virtual instrument system can be widely used in the various fields such as communication, robotization, semiconductor, aviation, electronics, electric power, biochemical pharmacy, commercial production.Many science and engineering Specialties of China university " virtual instrument " this subject.
Multi-purpose computer and functionalization hardware could be realized real virtual instrument by interface bus.The bus interface that the virtual instrument computing machine is connected with peripheral hardware has various ways.The implementation of existing virtual instrument adopts PCI, isa bus, have the plug trouble, and expansion slot is limited; Adopt RS232 universal serial bus transmission speed serial port number slow and main frame less; Adopting VXI, PXI bus request to configure special cabinet and controller, be applicable to the occasion that precision prescribed is high, is a kind of high price system, often exceeds general enterprises and user's ability to bear.The problem that directly the virtual instrument mode of plug-in card exists in the computer-internal bus expansion slot is also a lot: during as plug-in card, need shut down and open cabinet; Cooling and electromagnetic compatible environment in computer cabinet is difficult to meet the testing tool requirement; The upgrading of computer-internal bus is too fast, and plug-in card is difficult to catch up with its updating speed; And notebook PC inner space environment is poorer etc.
Summary of the invention
The utility model purpose is the problem existed in order to solve existing virtual instrument, and a kind of virtual instrument based on usb bus is provided.
Virtual instrument based on usb bus described in the utility model, it comprises single-chip microcomputer, D/A converter, switching value output circuit and switching value input circuit,
Single-chip microcomputer comprises microcontroller, A/D converter, channel selection circuit and the usb circuit of 8051 kernels,
The digital signal output end of A/D converter is connected with the digital signal input end of the microcontroller of 8051 kernels;
The digital signal output end of the microcontroller of 8051 kernels is connected with the digital signal input end of D/A converter;
The switching value output terminal of the microcontroller of 8051 kernels is connected with the switching value input end of switching value output circuit;
The switching value output terminal of switching value input circuit is connected with the switching value input end of the microcontroller of 8051 kernels;
The USB input/output terminal of the microcontroller of 8051 kernels is connected with the USB input/output terminal of usb circuit;
The analog signal selection control end of channel selection circuit is connected with the selection control end of A/D converter;
The pumping signal of channel selection circuit selects control end to be connected with the selection control end of D/A converter.
Advantage of the present utility model:
1. utilize the basic configuration general-purpose serial bus USB (Universal Serial Bus) of multi-purpose computer to build virtual instrument.
2. hardware module does not need external power supply, utilizes the usb bus power supply, can conveniently form portable instrument.
3. the virtual instrument of realizing easy easy-to-use, transfer rate is fast, system cost is cheap, have outstanding extensibility.
4. utilize the virtual instrument of this project development, can develop easily many kinds of experiment contents, as various wave filter amplitude versus frequency characte experiments, operational amplifier experiment, RLC test experiments etc., can be " virtual instrument " this subject simultaneously experimental facilities is provided.
The accompanying drawing explanation
Fig. 1 is the structural representation of the virtual instrument based on usb bus described in the utility model;
Fig. 2 is the connecting circuit figure of D/A converter and single-chip microcomputer.
Embodiment
Embodiment one: below in conjunction with Fig. 1, present embodiment is described, the described virtual instrument based on usb bus of present embodiment, it comprises single-chip microcomputer 1, D/A converter 2, switching value output circuit 3 and switching value input circuit 4,
Single-chip microcomputer 1 comprises microcontroller 1-1, A/D converter 1-2, channel selection circuit 1-3 and the usb circuit 1-4 of 8051 kernels,
The digital signal output end of A/D converter 1-2 is connected with the digital signal input end of the microcontroller 1-1 of 8051 kernels;
The digital signal output end of the microcontroller 1-1 of 8051 kernels is connected with the digital signal input end of D/A converter 2;
The switching value output terminal of the microcontroller 1-1 of 8051 kernels is connected with the switching value input end of switching value output circuit 3;
The switching value output terminal of switching value input circuit 4 is connected with the switching value input end of the microcontroller 1-1 of 8051 kernels;
The USB input/output terminal of the microcontroller 1-1 of 8051 kernels is connected with the USB input/output terminal of usb circuit 1-4;
The analog signal selection control end of channel selection circuit 1-3 is connected with the selection control end of A/D converter 1-2;
The pumping signal of channel selection circuit 1-3 selects control end to be connected with the selection control end of D/A converter 2.
A/D converter 1-2 gathers multichannel analog signals, and by single-chip microcomputer 1, built-in channel selection circuit 1-3 controls and gathers a certain road simulating signal,
D/A converter 2 involves the four-way switch signal for the PWM that exports four tunnel pumping signals, variable duty ratio.
Multi-purpose computer 7 communicates by the microcontroller 1-1 of usb circuit 1-4 and 8051 kernels.
Embodiment two: present embodiment is described further embodiment one, and it also comprises reference source circuit 5, and the output terminal of reference source circuit 5 is connected with the reference source input end of the microcontroller 1-1 of 8051 kernels.
Embodiment three: present embodiment is described further embodiment one or two, it also comprises DC/DC power converting circuit 6, and the DC power output end of DC/DC power converting circuit 6 is connected with the DC power supply end of the microcontroller 1-1 of 8051 kernels.
Embodiment four: present embodiment is described further embodiment one, two or three, and single-chip microcomputer 1 adopts the single-chip microcomputer that model is C8051F320 to realize.
C8051F320 is a complete small-sized SOC (system on a chip) (SOC).Can be without any need for outer member (comprising resistance and crystal oscillator) owing to utilizing this chip to be designed, thereby be the ideal chose of small-sized USB application.
Built-in A/D converter 1-2, temperature sensor, electrification reset/detection of power loss device and 17 passage difference input MUX---channel selection circuit 1-3, provide 17 circuit-switched data acquisition channels and 1 road temperature acquisition passage,
The switching value input is by P2.6, P2.2, P0.1, the input of P2.0 pin of C8051F320, and the switching value of signal output has four tunnels, and P0.0, P2.7, P2.3 and the output of P2.1 pin of C8051F320 are arranged.
Embodiment five: below in conjunction with Fig. 2, present embodiment is described, present embodiment is described further embodiment one, and D/A converter 2 adopts the TLC5620 analog to digital converter of TI company.
As shown in Figure 2, TLC5620 digital control passes through that 4 road universal serial bus realize, this bus compatible CMOS for TLC5620 and C8051F320 interface circuit.The command word of 11 comprises 8 bit data positions, and 2 DAC select position and 1 scope position, and it is 1 times or 2 times that the latter is used for selecting output area.The DAC register adopts two buffer memorys, allows a whole set of new value to be written in equipment.When by LDAC, realizing the DAC output valve, upgrade.The input of digital quantity adopts smith trigger, thereby has avoided strong noise.Sent the order that produces the pumping signal type by host computer, control C8051F320 by P1.1 mouth serial output digital quantity, by the DACA-DACD pin signal output waveform of TLC5620.Produce excitation signal waveforms sine wave, triangular wave, pulsating wave, sawtooth wave etc. are arranged.
Embodiment six: present embodiment is described further embodiment one, and switching value output circuit 3 adopts four LED lamps to realize.
Four pins of C8051F320 are set to recommend output, directly drive four LED lamps.

Claims (6)

1. the virtual instrument based on usb bus, is characterized in that, it comprises single-chip microcomputer (1), D/A converter (2), switching value output circuit (3) and switching value input circuit (4),
Single-chip microcomputer (1) comprises microcontroller (1-1), A/D converter (1-2), channel selection circuit (1-3) and the usb circuit (1-4) of 8051 kernels,
The digital signal output end of A/D converter (1-2) is connected with the digital signal input end of the microcontroller (1-1) of 8051 kernels;
The digital signal output end of the microcontroller of 8051 kernels (1-1) is connected with the digital signal input end of D/A converter (2);
The switching value output terminal of the microcontroller of 8051 kernels (1-1) is connected with the switching value input end of switching value output circuit (3);
The switching value output terminal of switching value input circuit (4) is connected with the switching value input end of the microcontroller (1-1) of 8051 kernels;
The USB input/output terminal of the microcontroller of 8051 kernels (1-1) is connected with the USB input/output terminal of usb circuit (1-4);
The analog signal selection control end of channel selection circuit (1-3) is connected with the selection control end of A/D converter (1-2);
The pumping signal of channel selection circuit (1-3) selects control end to be connected with the selection control end of D/A converter (2).
2. the virtual instrument based on usb bus according to claim 1, is characterized in that, it also comprises reference source circuit (5), and the output terminal of reference source circuit (5) is connected with the reference source input end of the microcontroller (1-1) of 8051 kernels.
3. the virtual instrument based on usb bus according to claim 1, it is characterized in that, it also comprises DC/DC power converting circuit (6), and the DC power output end of DC/DC power converting circuit (6) is connected with the DC power supply end of the microcontroller (1-1) of 8051 kernels.
4. the virtual instrument based on usb bus according to claim 1, is characterized in that, single-chip microcomputer (1) adopts the single-chip microcomputer that model is C8051F320 to realize.
5. the virtual instrument based on usb bus according to claim 1, is characterized in that, D/A converter (2) adopts the TLC5620 analog to digital converter of TI company.
6. the virtual instrument based on usb bus according to claim 1, is characterized in that, switching value output circuit (3) adopts four LED lamps to realize.
CN 201220722302 2012-12-25 2012-12-25 Virtual instrument based on USB (universal serial bus) bus Expired - Fee Related CN202956754U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201220722302 CN202956754U (en) 2012-12-25 2012-12-25 Virtual instrument based on USB (universal serial bus) bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201220722302 CN202956754U (en) 2012-12-25 2012-12-25 Virtual instrument based on USB (universal serial bus) bus

Publications (1)

Publication Number Publication Date
CN202956754U true CN202956754U (en) 2013-05-29

Family

ID=48462314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201220722302 Expired - Fee Related CN202956754U (en) 2012-12-25 2012-12-25 Virtual instrument based on USB (universal serial bus) bus

Country Status (1)

Country Link
CN (1) CN202956754U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104062934A (en) * 2014-06-17 2014-09-24 珠海翔翼航空技术有限公司 Simulator universal single-board controller and control method based on USB bus transfer
CN106707900A (en) * 2017-03-09 2017-05-24 吉林大学 Data acquisition card with DC-DC (Direct Current-Direct Current) power supply and magnetic decoupling isolation structure
CN114296532A (en) * 2022-01-14 2022-04-08 中车大连电力牵引研发中心有限公司 RIOM case and network control system thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104062934A (en) * 2014-06-17 2014-09-24 珠海翔翼航空技术有限公司 Simulator universal single-board controller and control method based on USB bus transfer
CN106707900A (en) * 2017-03-09 2017-05-24 吉林大学 Data acquisition card with DC-DC (Direct Current-Direct Current) power supply and magnetic decoupling isolation structure
CN114296532A (en) * 2022-01-14 2022-04-08 中车大连电力牵引研发中心有限公司 RIOM case and network control system thereof
CN114296532B (en) * 2022-01-14 2024-06-11 中车大连电力牵引研发中心有限公司 RIOM machine box and network control system thereof

Similar Documents

Publication Publication Date Title
CN201382850Y (en) Test device for liquid crystal display module
CN203520727U (en) Portable STM32 one-chip microcomputer teaching experiment instrument
CN101793931B (en) High-pressure transducer testing system
CN103885868B (en) The test macro of simulation USB hot plug process and device
CN203179327U (en) Integrated practical training platform for Internet of Things
CN202956754U (en) Virtual instrument based on USB (universal serial bus) bus
CN104778885A (en) Digital circuit experiment system and method based on programmable logic device
CN104778887B (en) A kind of modularization single-chip microcomputer comprehensive exploitation experimental box and its application
CN204269745U (en) A kind of Portable multifunctional tester of integrated display screen
CN202502660U (en) Programmable digital logic circuit basic experiment plate
CN200993840Y (en) USB single-chip computer simulating experimental instrument
CN203117688U (en) Multifunctional signal generator based on ARM and DDS technologies
CN202650370U (en) Design and teaching platform for embedded system
CN201352395Y (en) Singlechip testing board capable of being programmed and debugged online
Asadi et al. Programming the ARM® Cortex®-M4-based STM32F4 microcontrollers with simulink®
CN102520652A (en) Multifunctional control module for automobile instruments
CN202372821U (en) Multifunctional control module for novel automobile instrument
CN210925146U (en) Course extensible comprehensive teaching experiment platform
CN202258050U (en) Novel digital electronic technology and single chip comprehensive experiment box
CN104882053B (en) A kind of multifunction teaching instrument
CN203025276U (en) Tester of capacitive touch screen module
CN204516202U (en) A kind of Digital Circuit Experiment System based on programmable logic device (PLD)
CN203165312U (en) Open type single-chip microcomputer experimental board
CN110610639A (en) Course extensible comprehensive teaching experiment platform
CN112098740A (en) Intelligent comprehensive test instrument

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130529

Termination date: 20141225

EXPY Termination of patent right or utility model