CN106201947A - The GPIB means of communication based on self-defined bus and communication control unit - Google Patents

The GPIB means of communication based on self-defined bus and communication control unit Download PDF

Info

Publication number
CN106201947A
CN106201947A CN201610510976.2A CN201610510976A CN106201947A CN 106201947 A CN106201947 A CN 106201947A CN 201610510976 A CN201610510976 A CN 201610510976A CN 106201947 A CN106201947 A CN 106201947A
Authority
CN
China
Prior art keywords
instruction
gpib
unit
self
chip microcomputer
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.)
Granted
Application number
CN201610510976.2A
Other languages
Chinese (zh)
Other versions
CN106201947B (en
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.)
Beijing Zhenxing Metrology and Test Institute
Original Assignee
Beijing Zhenxing Metrology and Test Institute
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 Beijing Zhenxing Metrology and Test Institute filed Critical Beijing Zhenxing Metrology and Test Institute
Priority to CN201610510976.2A priority Critical patent/CN106201947B/en
Publication of CN106201947A publication Critical patent/CN106201947A/en
Application granted granted Critical
Publication of CN106201947B publication Critical patent/CN106201947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of GPIB means of communication based on self-defined bus and communication control unit, wherein method includes: gpib interface unit receives, by self-defined bus, the first instruction that test equipment sends, or, receive the second instruction sent from program control computer;When described gpib interface unit receives described first instruction, described first instruction transmission is resolved to CPLD unit, the first instruction after described CPLD unit will resolve sends to single-chip microcomputer, and described single-chip microcomputer sends after the first instruction after described parsing is carried out respective handling after carrying out protocol conversion to gpib interface unit and exports;When described gpib interface unit receives described second instruction, send to single-chip microcomputer after described second instruction is carried out protocol conversion, the second instruction after protocol conversion described in single-chip microcomputer carry out judging and translate after by the transmission of CPLD unit to self-defined bus;The method can extend GPIB communication interface, it is achieved the transmission-receiving function of GPIB according to the demand of test equipment by self-defined bus form.

Description

The GPIB means of communication based on self-defined bus and communication control unit
Technical field
The present invention relates to a kind of GPIB means of communication based on self-defined bus and communication control unit.
Background technology
GPIB communication is the communication interface that a lot of instrument and meter is indispensable, and its agreement observed is IEEE488 standard, Ke Yiyong Article one, bus interconnects some equipment, it is achieved the interconnection of multiple test equipment.GPIB improves transmission speed than serial communication Rate and the most supported number of devices, make our test job become more convenient and efficient.
At present, market has the USB of maturation turn GPIB adapter, have Based PC I the GPIB adapter of PXI, but, as Really equipment do not exist USB interface or be not based on PCI the standard device of PXI, the adapter of these maturations or adapter are with regard to nothing Method meets the ability of extension gpib interface.
Summary of the invention
Brief overview about the present invention given below, in order to the basic reason about certain aspects of the invention is provided Solve.Should be appreciated that this general introduction is not that the exhaustive about the present invention is summarized.It is not intended to determine the key of the present invention Or pith, nor is it intended to limit the scope of the present invention.Its purpose is only to provide some concept in simplified form, with This is as the preamble in greater detail discussed after a while.
For solving the problems referred to above, the present invention proposes a kind of GPIB means of communication based on self-defined bus and Communication Control dress Put.
On the one hand, the present invention provides a kind of GPIB means of communication based on self-defined bus, including:
Gpib interface unit receives, by self-defined bus, the first instruction that test equipment sends, or, receive from journey The second instruction that control computer sends;
When described gpib interface unit receives described first instruction, described first instruction transmission is entered to CPLD unit Row resolves, and the first instruction after described CPLD unit will resolve sends to single-chip microcomputer, and described single-chip microcomputer is to the after described parsing One instruction sends after carrying out respective handling after carrying out protocol conversion to gpib interface unit and exports;
When described gpib interface unit receives described second instruction, send out after described second instruction is carried out protocol conversion Delivering to single-chip microcomputer, the second instruction after protocol conversion described in single-chip microcomputer is sent to certainly by CPLD unit after carrying out judging and translating Definition bus.
On the other hand, the present invention also provides for a kind of GPIB communication control unit based on self-defined bus, including:
Gpib interface unit, for receiving, by self-defined bus, the first instruction that test equipment sends, or, receive The second instruction sent from program control computer;
CPLD unit, first sent for receiving described gpib interface unit instructs and resolves, after resolving First instruction sends to single-chip microcomputer;Or, receive after single-chip microcomputer protocol conversion second and instruct and send to self-defined bus;
Single-chip microcomputer, sends extremely described GPIB after the first instruction after CPLD unit resolves is carried out respective handling and connects Mouth unit exports after carrying out protocol conversion;Or, receive that described gpib interface unit sends second instructs and carries out agreement and turn Change, and send extremely described CPLD unit after carrying out judging and translate by the second instruction after protocol conversion.
The GPIB communicating control method based on self-defined bus of present invention offer and communication control unit, it is possible to according to survey The demand of examination equipment passes through self-defined bus form, extends GPIB communication interface, it is achieved the transmission-receiving function of GPIB.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
The flow chart of GPIB a kind of embodiment of the means of communication based on self-defined bus that Fig. 1 provides for the present invention.
The GPIB means of communication based on self-defined bus that Fig. 2 provides for the present invention receive the first of self-testing device The flow chart of instruction.
The GPIB means of communication based on self-defined bus that Fig. 3 provides for the present invention receive from program control computer The flow chart of two instructions.
The structural representation of GPIB a kind of embodiment of communication control unit based on self-defined bus that Fig. 4 provides for the present invention Figure.
Detailed description of the invention
Embodiments of the invention are described with reference to the accompanying drawings.An accompanying drawing or a kind of embodiment of the present invention are retouched The element stated and feature can combine with the element shown in one or more other accompanying drawings or embodiment and feature. It should be noted that, in order to understand purpose, accompanying drawing and explanation eliminate unrelated to the invention, those of ordinary skill in the art are known Parts and the expression of process and description.
Embodiment one
With reference to Fig. 1, the present embodiment provides a kind of GPIB means of communication based on self-defined bus, including:
Step S101, gpib interface unit receives, by self-defined bus, the first instruction that test equipment sends, or, connect Receive the second instruction sent from program control computer;
Step S102, when described gpib interface unit receives described first instruction, sends described first instruction extremely CPLD unit resolves, and the first instruction after described CPLD unit will resolve sends to single-chip microcomputer, and described single-chip microcomputer is to described The first instruction after parsing sends after carrying out respective handling after carrying out protocol conversion to gpib interface unit and exports;
Step S103, when described gpib interface unit receives described second instruction, assists described second instruction Sending to single-chip microcomputer after view conversion, it is mono-that the second instruction after protocol conversion described in single-chip microcomputer passes through CPLD after carrying out judging and translate Unit sends to self-defined bus
Specifically, the communication of general purpose interface bus (Gerneral Purpose Interface Bus, GPIB) includes connecing Receive and send.
With reference to Fig. 2, when test equipment sends the first instruction, gpib interface unit receives described the by self-defined bus One instruction, described first instruction is sent to CPLD unit, this first finger of CPLD unit resolves by address bus and data/address bus The connotation of order, then pass to single-chip microcomputer, after this first instruction is judged and translates by single-chip microcomputer, send extremely with the form interrupted Gpib interface unit, and by data latch unit, described first instruction is latched, accordingly to ensure stablizing of data Property, gpib interface circuit exports after the first instruction after single-chip microcomputer judges and translates is carried out protocol conversion.
With reference to Fig. 3, when gpib interface unit receives the second instruction from program control computer, the second instruction is carried out Protocol conversion, and produce interrupt signal to single-chip microcomputer, described second instruction is judged and translates by single-chip microcomputer, and passes through data Latch units latches, and the second instruction after single-chip microcomputer will determine that and translates sends to self-defined bus.
Further, CPLD unit provides clock signal and chip selection signal for described gpib interface unit.
The GPIB means of communication based on self-defined bus that the present embodiment provides, it is possible to realize instrument by self-defined bus Or the GPIB communication of equipment, the communication interface of expansion equipment, functional independence, stable performance.
Embodiment two
With reference to Fig. 4, the present embodiment provides a kind of GPIB communication control unit based on self-defined bus, including:
Gpib interface unit 101, for receiving, by self-defined bus, the first instruction that test equipment sends, or, connect Receive the second instruction sent from program control computer;
CPLD unit 102, first sent for receiving described gpib interface unit 101 instructs and resolves, and will solve The first instruction after analysis sends to single-chip microcomputer 103;Or, receive after single-chip microcomputer 103 protocol conversion second and instruct and send To self-defined bus;
Single-chip microcomputer 103, sends to described after the first instruction after CPLD unit 102 resolves is carried out respective handling Gpib interface unit 101 exports after carrying out protocol conversion;Or, receive the second instruction that described gpib interface unit 101 sends And carry out protocol conversion, and send extremely described CPLD unit 102 after carrying out judging and translate by the second instruction after protocol conversion.
Further, CPLD unit 102 is additionally operable to provide clock signal and chip selection signal into described gpib interface unit.
Further, the communication control unit that the present embodiment provides also includes:
Data latch unit 104, for latching accordingly described first instruction;
Reset unit 105, realizes the reset of described communication control unit for producing reset signal;
Buzzer 106, for reporting to the police when described communication control unit occurs abnormal;
Power supply unit 107, is used for as described gpib interface unit, CPLD unit, single-chip microcomputer, data latch unit, reset Unit and described buzzer are powered.
As the optional embodiment of one, the single-chip microcomputer that single-chip microcomputer 103 uses model to be C8051F120.
As the optional embodiment of one, the model that CPLD unit 102 uses is EPM7160S.
As the optional embodiment of one, the chip model that gpib interface unit 101 uses have NAT7210, SN75160BN or SN75162BN.
As the optional embodiment of one, the chip model that data latch unit 104 uses is M74HCT245.
As the optional embodiment of one, power supply unit 107 provides 5V and 3.3V power supply, wherein 3.3V respectively for system Power supply is converted by linear power supply, and the power conversion chip used is LT1764EQ-3.3.
As the optional embodiment of one, reset unit 105 realizes the reset function of system, and the chip model of employing is MAX811_EUS-T。
As the optional embodiment of one, the chip model that buzzer unit 106 uses is NE555 or SP200.
As the optional embodiment of one, self-defined bus can be the most self-defined.
The connection of data/address bus, address bus, read-write and interrupt signal is completed between single-chip microcomputer and CPLD.
Self-defined bus is directly connected to CPLD unit, and to realize, CPLD unit and system peripheral are standby or instrument leads to News.
The GPIB communication control unit based on self-defined bus that the present embodiment provides, it is possible to realized by self-defined bus The GPIB communication of instrument or equipment, the communication interface of expansion equipment, functional independence, stable performance.
Although the present invention of being described in detail and advantage thereof it should be appreciated that without departing from by appended claim Various change can be carried out in the case of the spirit and scope of the present invention limited, substitute and convert.And, the model of the application Enclose the process described by description of being not limited only to, equipment, means, the specific embodiment of method and steps.Common in this area Technical staff will readily appreciate that from the disclosure, can use execution and corresponding reality described herein according to the present invention Execute the essentially identical function of example or obtain the result essentially identical with it, the process that existing and future is the most to be developed, equipment, Means, method or step.Therefore, appended claim is intended in the range of them include such process, equipment, hands Section, method or step.

Claims (8)

1. GPIB means of communication based on self-defined bus, it is characterised in that including:
Gpib interface unit receives, by self-defined bus, the first instruction that test equipment sends, or, receive from program control meter The second instruction that calculation machine sends;
When described gpib interface unit receives described first instruction, described first instruction transmission is solved to CPLD unit Analysis, the first instruction after described CPLD unit will resolve sends to single-chip microcomputer, and described single-chip microcomputer is to the first finger after described parsing Order sends after carrying out respective handling after carrying out protocol conversion to gpib interface unit and exports;
When described gpib interface unit receive described second instruction time, to described second instruction carry out protocol conversion after send to Single-chip microcomputer, the second instruction after protocol conversion described in single-chip microcomputer sends the most self-defined by CPLD unit after carrying out judging and translate Bus.
The GPIB means of communication based on self-defined bus the most according to claim 1, it is characterised in that described CPLD unit Clock signal and chip selection signal is provided for described gpib interface unit.
The GPIB means of communication based on self-defined bus the most according to claim 1, it is characterised in that described single-chip microcomputer pair After the first instruction after described parsing carries out respective handling, with the form interrupted, described first instruction transmission is entered to GPID unit Export after row protocol conversion.
The GPIB means of communication based on self-defined bus the most according to claim 3, it is characterised in that described single-chip microcomputer pair After the first instruction after described parsing carries out respective handling, also include:
By data latch unit, described first instruction is latched accordingly.
The GPIB means of communication based on self-defined bus the most according to claim 1, it is characterised in that described gpib interface Unit sends to single-chip microcomputer with the form interrupted after described second instruction is carried out protocol conversion.
6. a GPIB communication control unit based on self-defined bus, it is characterised in that including:
Gpib interface unit, for receiving, by self-defined bus, the first instruction that test equipment sends, or, receive from journey The second instruction that control computer sends;
CPLD unit, first sent for receiving described gpib interface unit instructs and resolves, first after resolving Instruction sends to single-chip microcomputer;Or, receive after single-chip microcomputer protocol conversion second and instruct and send to self-defined bus;
Single-chip microcomputer, sends to described gpib interface list after the first instruction after CPLD unit resolves is carried out respective handling Unit exports after carrying out protocol conversion;Or, receive the transmission of described gpib interface unit second instructs and carries out protocol conversion, and Send to described CPLD unit after carrying out judging and translating by the second instruction after protocol conversion.
GPIB communication control unit based on self-defined bus the most according to claim 6, it is characterised in that described CPLD Unit is additionally operable to provide clock signal and chip selection signal into described gpib interface unit.
GPIB communication control unit based on self-defined bus the most according to claim 6, it is characterised in that described communication Control device also to include:
Data latch unit, for latching accordingly described first instruction;
Reset unit, realizes the reset of described communication control unit for producing reset signal;
Buzzer, for reporting to the police when described communication control unit occurs abnormal;
Power supply unit, for for described gpib interface unit, CPLD unit, single-chip microcomputer, data latch unit, reset unit and Described buzzer is powered.
CN201610510976.2A 2016-06-30 2016-06-30 The GPIB means of communication and communication control unit based on self-defined bus Active CN106201947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610510976.2A CN106201947B (en) 2016-06-30 2016-06-30 The GPIB means of communication and communication control unit based on self-defined bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610510976.2A CN106201947B (en) 2016-06-30 2016-06-30 The GPIB means of communication and communication control unit based on self-defined bus

Publications (2)

Publication Number Publication Date
CN106201947A true CN106201947A (en) 2016-12-07
CN106201947B CN106201947B (en) 2019-08-27

Family

ID=57464564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610510976.2A Active CN106201947B (en) 2016-06-30 2016-06-30 The GPIB means of communication and communication control unit based on self-defined bus

Country Status (1)

Country Link
CN (1) CN106201947B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11481344B2 (en) * 2019-06-19 2022-10-25 Mitsubishi Electric Corporation Instruction conversion device, method, and program

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004732A (en) * 2007-01-19 2007-07-25 北京天航信民航通信网络发展有限公司 Hand held device
CN101034386A (en) * 2007-04-03 2007-09-12 中国电子科技集团公司第十四研究所 GPIB interface card based on software
CN201072549Y (en) * 2007-01-19 2008-06-11 北京天航信民航通信网络发展有限公司 GPIB-USB test instrument controller
CN201084145Y (en) * 2007-10-19 2008-07-09 陕西海泰电子有限责任公司 USB-GPIB interface converter
US20090259321A1 (en) * 2008-04-15 2009-10-15 Franco Stellari System and Method for Virtual Control of Laboratory Equipment
CN202261414U (en) * 2011-06-21 2012-05-30 桂林电子科技大学 GPIB/CAN interface conversion device
CN103514137A (en) * 2013-09-26 2014-01-15 周平 Embedded controller assembly of VXI plate structure custom bus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004732A (en) * 2007-01-19 2007-07-25 北京天航信民航通信网络发展有限公司 Hand held device
CN201072549Y (en) * 2007-01-19 2008-06-11 北京天航信民航通信网络发展有限公司 GPIB-USB test instrument controller
CN101034386A (en) * 2007-04-03 2007-09-12 中国电子科技集团公司第十四研究所 GPIB interface card based on software
CN201084145Y (en) * 2007-10-19 2008-07-09 陕西海泰电子有限责任公司 USB-GPIB interface converter
US20090259321A1 (en) * 2008-04-15 2009-10-15 Franco Stellari System and Method for Virtual Control of Laboratory Equipment
CN202261414U (en) * 2011-06-21 2012-05-30 桂林电子科技大学 GPIB/CAN interface conversion device
CN103514137A (en) * 2013-09-26 2014-01-15 周平 Embedded controller assembly of VXI plate structure custom bus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张熙等: ""基于CPLD的GPIB控制器的设计与实现"", 《测控技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11481344B2 (en) * 2019-06-19 2022-10-25 Mitsubishi Electric Corporation Instruction conversion device, method, and program

Also Published As

Publication number Publication date
CN106201947B (en) 2019-08-27

Similar Documents

Publication Publication Date Title
US7953828B2 (en) Distributed networked data acquisition device
US9639447B2 (en) Trace data export to remote memory using remotely generated reads
CN105653461B (en) A kind of single USB interfaces turn the converting system of more UART debugging interfaces
CN101840368B (en) JTAG (Joint Test Action Group) real-time on-chip debug method and system of multicore processor
CN101882108A (en) Embedded software automatic test system and method thereof
CN103248537A (en) FC-AE-1553 based mixed avionics system tester
CN103226506A (en) Chip-embedded USB to JTAG debugging device and debugging method
CN104102160B (en) Controller area network (CAN) bus signal transceiving analysis tool
CN103744769A (en) Rapid error positioning method of power supply of server based on complex programmable logic device (CPLD)
CN110401586A (en) A kind of bus communication, device, equipment and readable storage medium storing program for executing
CN105653410A (en) Device and method based on printing and outputting of debugging information of Phytium platform, and computer
CN101299207B (en) Microprocessor system bus and microprocessor interface bus converting device and method
CN207319223U (en) Computing switching device based on PCIE X16-MXM
CN106201947A (en) The GPIB means of communication based on self-defined bus and communication control unit
CN201751896U (en) ARINC429 bus testing device
US20200387659A1 (en) Point-to-point module connection interface for integrated circuit generation
CN206039399U (en) Embedded hardware systems with debugging facility
CN100504723C (en) USB data acquisition apparatus for power supply
CN111026620A (en) Data visualization Processing system and method based on Processing
CN105573957B (en) A kind of measuring instrument programmable interface converting system and method
CN204028612U (en) A kind of CAN signal transmitting and receiving instrument
CN112486877B (en) Outfield guarantee and test platform of generalized FC conversion interface module
CN208225049U (en) A kind of computer data is to passing on-line unit
US20030101394A1 (en) Method and apparatus for testing electronic components
CN107436776A (en) Programming system and method for burn-recording

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant