CN1304922C - Circuit interface for high-speed CCD camera - Google Patents

Circuit interface for high-speed CCD camera Download PDF

Info

Publication number
CN1304922C
CN1304922C CNB200510075009XA CN200510075009A CN1304922C CN 1304922 C CN1304922 C CN 1304922C CN B200510075009X A CNB200510075009X A CN B200510075009XA CN 200510075009 A CN200510075009 A CN 200510075009A CN 1304922 C CN1304922 C CN 1304922C
Authority
CN
China
Prior art keywords
data
isp1581
cpld
interface
dma
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
CNB200510075009XA
Other languages
Chinese (zh)
Other versions
CN1687870A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CNB200510075009XA priority Critical patent/CN1304922C/en
Publication of CN1687870A publication Critical patent/CN1687870A/en
Application granted granted Critical
Publication of CN1304922C publication Critical patent/CN1304922C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The present invention discloses a circuit interface used for a high speed charge coupling camera, which belongs to the field of data transmission devices. A USB2.0 is adopted as a data interface between a high speed camera and a computer, the USB2.0 is connected with a programmable logic device (CPLD) acting as a control sensor, and a bus of the USB2.0 is connected with a bus of the data address of a single-chip computer. In addition, an IO port of the CPLD is connected with a DMA port of the USB2.0, so the high speed transmission between the CPLD and the USB2.0 is realized. An FIFO is additionally expanded beyond an interface chip of the USB2.0, so acquisition cards of the system are left out. In this way, the cost is saved, and the system reliability is improved. Furthermore, the goal of avoiding USB2.0 from interrupting now and then in the transmission procedures resulting in data loss is achieved.

Description

The circuit interface that is used for high-speed CCD camera
Technical field
The invention belongs to the data transmission device field, particularly a kind of circuit interface that is used for high-speed CCD camera.
Technical background
CCD (charge-coupled image sensor) is a kind of electrooptical device, uses the integrated circuit technology manufacturing, mainly is made up of photosensitive unit, input structure, export structure.At present, CCD is widely used in equipment such as the digital camera, robotic vision system, video game machine, scanner, facsimile recorder in the security system, and can be used as the alternative method of film camera in uranology, spectroscopy and the crystallography research.Simultaneously CCD is also constantly opening up new application at traffic identification, TV and computer peripheral equipment, toy, wired and aspects such as RF video conference and Internet access device.
High-speed CCD is a class comparatively special in the various CCD products, and its frame per second can reach hundreds of even thousands of frame per second, is the strong instrument of research high speed processes.High-speed CCD camera is the product that development of semiconductor arrives certain phase, is emerging in recent years a kind of technology.The high-speed CCD chip is the core component of high speed camera, has only the fewer companies of a few countries to produce at present.By the characteristics of CCD as can be known, the CCD application system is if operate as normal, must be by means of the optical system of necessity, suitable peripheral drive circuit and some peripherals such as signal processing circuit and interface circuit, and interface circuit is a wherein very important part, and the image that interface circuit is taken high speed camera is exported to Computer Storage and handled.Can think that data interface circuit is the bridge between high speed camera and the computing machine.Data transfer rate is very high because high speed camera has, and general design is difficult to meet the demands, and the data-interface of high speed camera and PC normally adopts the special image capture card to connect and compose by the pci bus of PC at present.
Summary of the invention
The purpose of this invention is to provide a kind of circuit interface that is used for high-speed charge coupled camera.The data-interface of described high speed camera and PC is to adopt USB2.0 to constitute, it is characterized in that: described high-speed charge coupled camera adopts USB 2.0 interface chip ISP1581 as data-interface, and ISP1581 links to each other with the programmable logic device (CPLD) of making the control sensor; The initial configuration of ISP1581 adopts single chip computer AT 89S52 to realize, the data address bus of AT89S52 is linked to each other with the bus of ISP1581, and the IO mouth of CPLD linked to each other with the DMA mouth of ISP1581, CPLD is the DMA main frame, ISP1581 is the DMA slave, realizes the high speed DMA transmission between CPLD and the ISP1581.
Also and meet push-up storage FIFO, avoid losing of data with this, and when computing machine can't in time be taken data away, data are cushioned between described CPLD and the ISP1581.
The model of described CPLD is: M4A5-128/64.
The invention has the beneficial effects as follows and adopt USB2.0, thereby in system, saved capture card, promptly saved the reliability that cost has improved system again, realize high-speed transfer by CPLD as the interface between high speed camera and the computing machine.In addition, the present invention outside USB 2.0 interface chips additional extension FIFO, can reach like this and avoid in USB 2.0 transmission courses interrupting once in a while the loss of data that causes.
Description of drawings
Fig. 1 is USB 2.0 interface circuit connection layout.
Fig. 2 is USB 2.0 interface spread F IFO circuit diagrams.
The FIFO width mode of extension figure of Fig. 3 for adopting in USB 2.0 circuit.
Fig. 4 is the DMA sequential chart of ISP1581.
Embodiment
The invention provides a kind of circuit interface that is used for high-speed charge coupled camera, the data-interface of general high speed camera and PC is to adopt the special image capture card to connect and compose by the pci bus of PC.In USB shown in Figure 1 2.0 interface circuit connection layout, USB 2.0 interfaces adopt chip I SP1581 as data-interface, and ISP1581 links to each other with the programmable logic device (CPLD) of making the control sensor; The initial configuration of ISP1581 adopts single chip computer AT 89S52 to realize, the data address bus of AT89S52 is linked to each other with the bus of ISP1581, and the IO mouth of CPLD linked to each other with the DMA mouth of ISP1581, CPLD is the DMA main frame, ISP1581 is the DMA slave, realizes the high speed DMA transmission between CPLD and the ISP1581.ISP1581 has two sets of data interface: MCU (single-chip microcomputer) interfaces, high speed DMA (direct memory access) interface.The MCU interface is used to dispose the ISP1581 internal register, and initialization USB 2.0 communications are the communication than jogging speed; Start DMA interface and be used for high speed data transfer, control by CPLD; The model of CPLD is: M4A5-128/64.
In USB 2.0 interface spread F IFO circuit diagrams shown in Figure 2, between CPLD and ISP1581, also and meet push-up storage FIFO, avoid losing of data with this, and when computing machine can't in time be taken data away, data are cushioned.The digital picture that the high-speed CCD chip is photographed is sent to computing machine, and the data rate of the image sequence that photographs is 120Mbps, and because digital image stream itself requires the data transmission continous-stable.This just requires interface circuit to have the transmission speed greater than 120Mbps of continous-stable.Though USB 2.0 has the bandwidth of 480Mbps in theory.But because problem such as protocol overhead, its speed can not reach theoretical value far away, and because problem such as computer system is busy, and the DREQ of ISP1581 will step-down, of short duration interruption DMA transmission.This short interruption does not influence for non real-time transmission application, but will cause loss of data for real-time application.Therefore the extra push-up storage FIFO that adds in circuit transmits the unstable obliterated data problem that is caused thereby solved USB 2.0.FIFO model as buffering is IDT7206, is asynchronous operation type FIFO, i.e. the read-write of FIFO can be carried out simultaneously, does not need to consider the synchronous of read and write.The width of IDT7206 is 9bits, and the degree of depth is 16K.Because the DMA between CPLD and ISP1581 is 16bits, therefore need expand the width of FIFO, make it width and expand to 18bits, the actual 16bits that uses wherein, 2bits abandons in addition.In the width expander graphs of FIFO shown in Figure 3, the control of FIFO there are four road most important signal: WR, RD, FF, FE.WR is the FIFO write signal, and on the rising edge of WR, DATA IN bus data can be written into FIFO, and FIFO internal data pointer adds one automatically simultaneously.RD is the FIFO read signal, and on the rising edge of RD, the interior data of FIFO can be latched to DATA OUT bus and get on, and FIFO internal data pointer subtracts one automatically simultaneously.The read-write operation of FIFO can carry out simultaneously, and can not cause the confusion of the data pointer of FIFO inside.FF is the abbreviation of Full Flag, if the FIFO internal data has reached the limit of FIFO memory space, the FF signal can be put low level by FIFO, if continue to the FIFO write data this moment, data can not enter FIFO, and data can be lost automatically.EF is the abbreviation of empty sign, if the FIFO internal data all is read out, data pointer points to zero, and the EF signal can be put low level by FIFO, if continue from the FIFO read data this moment, the data on the FIFO output data bus are wrong.The interface line of ISP1581 and MCU has: 8 bit address data multiplex bus AD[0:7], address latch signal ALE, read enable signal RD, write enable signal WR, add the look-at-me INTn that an ISP1581 notice MCU removes read data.
In the DMA of ISP1581 shown in Figure 4 sequential.Single-chip microcomputer does not participate in high-speed transfer, and high-speed transfer realizes by the DMA (direct memory access) between CPLD#2 and ISP1581.CPLD#2 is the direct memory access main frame in the high-speed transfer process, and ISP1581 is DMA SLAVE.Transmission course is initiated by the ISP1581 as DMA SLAVE, and the DMA process is controlled by DMA MASTER.During the transmission beginning, at first send the DMA request by ISP1581, ISP1581 pulls into high level with DREQ and represents to have the DMA request, at this time needing CPLD#2 to provide DMA replys, if CPLD#2 has been ready to transmission, then CPLD#2 drags down answer signal DACK, afterwards by CPLD#2 control DIOR (reading)/DIOW (writing) and DATA[15:0] carry out the DMA read-write operation.

Claims (3)

1. circuit interface that is used for high-speed charge coupled camera, the data-interface of described high speed camera and PC is to adopt USB2.0 to constitute, it is characterized in that: described high-speed charge coupled camera adopts USB 2.0 interface chip ISP1581 as data-interface, and ISP1581 links to each other with the programmable logic device (CPLD) of making the control sensor; The initial configuration of ISP1581 adopts single chip computer AT 89852 to realize, the data address bus of AT89852 is linked to each other with the bus of ISP1581, and the IO mouth of CPLD linked to each other with the DMA mouth of ISP1581, CPLD is the DMA main frame, ISP1581 is the DMA slave, realizes the high speed DMA transmission between CPLD and the ISP1581.
2. according to the described circuit interface that is used for high-speed charge coupled camera of claim 1, it is characterized in that: go back and connect push-up storage FIFO between described CPLD and the ISP1581, avoid losing of data with this, and when computing machine can't in time be taken data away, data are cushioned.
3. according to the described circuit interface that is used for high-speed charge coupled camera of claim 1, it is characterized in that: the model of described CPLD is: M4A5-128/64.
CNB200510075009XA 2005-06-07 2005-06-07 Circuit interface for high-speed CCD camera Expired - Fee Related CN1304922C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510075009XA CN1304922C (en) 2005-06-07 2005-06-07 Circuit interface for high-speed CCD camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510075009XA CN1304922C (en) 2005-06-07 2005-06-07 Circuit interface for high-speed CCD camera

Publications (2)

Publication Number Publication Date
CN1687870A CN1687870A (en) 2005-10-26
CN1304922C true CN1304922C (en) 2007-03-14

Family

ID=35305912

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510075009XA Expired - Fee Related CN1304922C (en) 2005-06-07 2005-06-07 Circuit interface for high-speed CCD camera

Country Status (1)

Country Link
CN (1) CN1304922C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866329A (en) * 2010-05-07 2010-10-20 刘兰平 Criminal investigation image processing CCD control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1379337A (en) * 2001-04-02 2002-11-13 华邦电子股份有限公司 Converter and transmission method from DMA to general-purpose serial bus
CN2684278Y (en) * 2003-10-27 2005-03-09 北京海鑫科金信息技术有限公司 Scan imaging living body palm print collecting instrument having USB interface
WO2005024641A1 (en) * 2003-08-28 2005-03-17 Symbol Technologies, Inc. Multi-interface data acquisition system and method for use thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1379337A (en) * 2001-04-02 2002-11-13 华邦电子股份有限公司 Converter and transmission method from DMA to general-purpose serial bus
WO2005024641A1 (en) * 2003-08-28 2005-03-17 Symbol Technologies, Inc. Multi-interface data acquisition system and method for use thereof
CN2684278Y (en) * 2003-10-27 2005-03-09 北京海鑫科金信息技术有限公司 Scan imaging living body palm print collecting instrument having USB interface

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101866329A (en) * 2010-05-07 2010-10-20 刘兰平 Criminal investigation image processing CCD control system

Also Published As

Publication number Publication date
CN1687870A (en) 2005-10-26

Similar Documents

Publication Publication Date Title
CN107249101A (en) A kind of sample of high-resolution image and processing unit
CN105573951B (en) A kind of ahb bus interface system for data stream transmitting
CN100361523C (en) A real-time acquisition system for digital camera
CN206162501U (en) Data conversion equipment, chip, and image system
WO2009031737A1 (en) Universal high-speed real-time monitoring device for embedded systems
US7779194B2 (en) Data modification module
CN110087037A (en) A kind of the EtherCAT main website and working method of integrated camera
CN101901278B (en) High-speed data acquisition card and data acquisition method
CN101793557B (en) Real-time data acquisition system and method of high-resolution imaging instrument
CN103246754A (en) High-speed digital signal acquiring and storing system
CN106851183A (en) Multi-channel video processing system and method based on FPGA
CN1304922C (en) Circuit interface for high-speed CCD camera
CN103399839A (en) Media peripheral interface, electronic device, and communication method
CN2845007Y (en) High speed data collecting card
Vido et al. Automotive Vision Grabber: FPGA design, cameras and data transfer over PCIe
CN108134912A (en) A kind of video flow converting method
CN201957164U (en) Camera image transmitting device
KR20080000559A (en) Low-power solid state storage controller for cell phones and other portable appliances
CN114302087A (en) MIPI data transmission mode conversion method and device and electronic equipment
Malviya et al. Tiny I2C protocol for camera command exchange in CSI-2: a review
CN203522895U (en) SOPC (system-on-a-programmable-chip)-based binocular video stitching device
CN211860280U (en) Building video acquisition monitoring system based on CMOS image sensor
CN210016555U (en) High definition video acquisition system based on FPGA
CN205005137U (en) FPGA's real -time image acquisition with remove device of making an uproar and handling
JPH09293049A (en) Computer system and serial interface used in same system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070314

Termination date: 20120607