CN104391815A - Universal USB (Universal Serial Bus) interface unit of data communication system - Google Patents

Universal USB (Universal Serial Bus) interface unit of data communication system Download PDF

Info

Publication number
CN104391815A
CN104391815A CN201410697914.8A CN201410697914A CN104391815A CN 104391815 A CN104391815 A CN 104391815A CN 201410697914 A CN201410697914 A CN 201410697914A CN 104391815 A CN104391815 A CN 104391815A
Authority
CN
China
Prior art keywords
usb
usb interface
circuit
universal
communication system
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.)
Pending
Application number
CN201410697914.8A
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.)
Harbin Jindu Solar Energy Technology Co Ltd
Original Assignee
Harbin Jindu Solar Energy Technology Co Ltd
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 Harbin Jindu Solar Energy Technology Co Ltd filed Critical Harbin Jindu Solar Energy Technology Co Ltd
Priority to CN201410697914.8A priority Critical patent/CN104391815A/en
Publication of CN104391815A publication Critical patent/CN104391815A/en
Pending legal-status Critical Current

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
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention relates to a universal USB (Universal Serial Bus) interface unit of a data communication system. The universal USB interface unit comprises a single-chip computer module, a UBS protocol conversion module, a USB interface circuit part, a reset and suspension recovery circuit and an expansion port circuit, wherein a USB interface circuit is realized by a microcontroller and a PDI (picture description instruction) USBD (USB driver) (12) and a corresponding peripheral circuit which is used for mainly realizing the connection with the USB and the data transmission with a USB bus; the functions of the suspension and rest of the bus, the status indication of USB communication, anti-interference and the like are inspected; in addition, in order to be convenient for the hardware commissioning of the USB interface, the system is additionally provided with a RS232 (Recommend Standard 232) interface, therefore the configuration and status of the USB interface can be sent out by two interfaces. According to the universal USB interface unit provided by the invention, a WinDriver is served as a driving procedure development tool to get rid of the difficult problems for core drive development, and too much knowledge does not need to know on an operating system and a bottom driving principal, therefore an effective scheme with low cost, good stability and high performance cost ratio can be provided for quickly developing an external drive.

Description

A kind of data communication system Universal USB interface arrangement
Technical field
the present invention relates to the Universal USB interface arrangement in a kind of data communication system, especially based on the Universal USB interface arrangement of single-chip microcomputer design.
Background technology
in the every profession and trade of commercial production and scientific research, PC or industrial computer is usually utilized to gather various data.This wherein has a lot of place to need to gather various data, as liquid level, temperature, pressure, frequency etc.Now conventional communication mode is data collecting plate card, and conventional has A/D card and 422, the bus boards such as 485.Board is adopted not only trouble to be installed, easily by the interference of cabinet environment, and due to a lot of equipment can not be mounted by the restriction of computer slot quantity and address, interrupt resources.
the appearance of USB (universal serial bus) (USB), well solves these problems above.It not only solves the inadequate problem of 1/O socket, and establishes a method connecting and access peripheral hardware.These methods can effectively reduce overall cost, reduce hardware conflicts.Therefore, we can utilize usb bus interface to be relatively easy to realize the multipoint data communication system of low cost, high reliability.USB was suggested in nineteen ninety-five, and the alliance be made up of seven leading companies of Computers and Communication industry is defined and promoted.Same year, this Alliance Establishment implementer forum (hereinafter referred to as USB-IF) accelerates the exploitation that USB marks the high-quality compatible equipment in Huaihe River.In 1996, USB-IF disclosed USB specification 1.0, and this is first the mark Huaihe River for all USB products proposition design request.1998, further to before the standard of version set forth and on the basis expanded, issued 1.1 specifications of USB standard.The USB2.0 of the 3rd version is published on 1999.Afterwards, along with the universal of USB and popularization, the member of USB increases always continuously, has nowadays been that very huge popularization has been organized.Go through the development of 8 years, USB technology is own through very ripe, have also been obtained the extensive support of each hardware of IT industry and software vendor.Especially strengthen in the operating system of Microsoft company after its WIN98 after supporting the system of USB, usb bus develops rapidly.At present, the protocol version of usb bus reaches 2.0, and the top speed of support reaches 480Mbps, considerably beyond the data rate of general parallel bus.
along with the development of usb bus, the application development of usb bus interface in the peripherals of embedded system and PC is very fast.The market of computer peripheral use the equipment such as the digital camera of USB interface, scanner, portable hard drive, mouse, keyboard be seen everywhere.But USB interface industrial control field, data communication system and can only application in instrument and meter also rare.The design proposes the data communication system based on usb bus interface.
Summary of the invention
the object of the invention is to design the Universal USB interface arrangement in the communication of a kind of data among systems.The design passes through the design of PDIUSBD12 chip and AT89C52 chip microcontroller USB interface, the communication of data acquisition system (DAS) and intercomputer.
the object of the present invention is achieved like this:
a kind of data communication system Universal USB interface arrangement, it is made up of with hang-up restoring circuit and Extended Capabilities Port circuit one-chip computer module, usb protocol modular converter, usb circuit part, reset.
described one-chip computer module adopts AT89C52 single-chip microcomputer to complete initialization, data acquisition, transmission data send the function of PDIUSBDI2 to as control core; Described PDIUSBD12 is the core of usb protocol modulus of conversion, and the data received are sent to USB port after conversion; Usb circuit part finishing equipment detects and anti-jamming circuit; Reset and hang up powering on and hand-reset of restoring circuit disposal system, detect the suspended state of PDIUSBDI2 and wake up or the single-chip microcomputer that resets when it recovers from suspended state; Extended Capabilities Port is used for being connected and system debug with data communication system.
described PDIUSBD 12 can use the connected mode of address multiplexed data bus with 89C52; The ALE of PDIUSBDI2 is as address latch signal, and AO connects high level, and the address of 89C52 is directly connected with the data bus of PDIUSBD 12 with data bus, and the address lowest order that ALE latches is equivalent to AO; Triggered by external interrupt between PDIUSBD12 and 89C52, the external interrupt of interrupt pin INT N and 89C52 is connected, and when the interrupt register of PDIUSBD12 has one to be 1, INT N output low level, triggers the external interrupt of 89C52; In the interrupt service routine of 89C52, identify interruption by detecting the interrupt register of PDIUSBD12, and carry out the process that responds; The VDD of plant-grid connection PDIUSBDI2, VOUT3.3 end unsettled (connect and move back misfortune electric capacity), uses 5V power supply; Access the VDD of PDIUSBD12 during power supply PI, VOUT3.3 holds, and uses 3.3V power supply.
design feature of the present invention and beneficial effect:
1, this utility model is for Universal USB interface, realizes the communication between data acquisition system (DAS) and computing machine, and cost is low, good stability, and cost performance is high;
2, adopt WinDriver as Driver Development instrument, broken away from the difficult point that core drives exploitation, do not need to understand too many to the principle of operating system and bottom layer driving, provide scheme effectively for fast Development peripheral hardware drives.
Accompanying drawing explanation
fig. 1 is system principle structural drawing of the present invention.
fig. 2 is usb circuit schematic diagram of the present invention.
fig. 3 is main program flow chart of the present invention.
Embodiment
below in conjunction with accompanying drawing, principle of the present invention and concrete annexation are described in more detail:
embodiment 1
composition graphs 1, Fig. 1 is system principle structural drawing of the present invention;
a kind of data communication system Universal USB interface arrangement, it is made up of with hang-up restoring circuit and Extended Capabilities Port circuit one-chip computer module, usb protocol modular converter, usb circuit part, reset.
described one-chip computer module adopts AT89C52 single-chip microcomputer to complete initialization, data acquisition, transmission data send the function of PDIUSBDI2 to as control core; Described PDIUSBD12 is the core of usb protocol modulus of conversion, and the data received are sent to USB port after conversion; Usb circuit part finishing equipment detects and anti-jamming circuit; Reset and hang up powering on and hand-reset of restoring circuit disposal system, detect the suspended state of PDIUSBDI2 and wake up or the single-chip microcomputer that resets when it recovers from suspended state; Extended Capabilities Port is used for being connected and system debug with data communication system.
described PDIUSBD 12 can use the connected mode of address multiplexed data bus with 89C52; The ALE of PDIUSBDI2 is as address latch signal, and AO connects high level, and the address of 89C52 is directly connected with the data bus of PDIUSBD 12 with data bus, and the address lowest order that ALE latches is equivalent to AO; Triggered by external interrupt between PDIUSBD12 and 89C52, the external interrupt of interrupt pin INT N and 89C52 is connected, and when the interrupt register of PDIUSBD12 has one to be 1, INT N output low level, triggers the external interrupt of 89C52; In the interrupt service routine of 89C52, identify interruption by detecting the interrupt register of PDIUSBD12, and carry out the process that responds; The VDD of plant-grid connection PDIUSBDI2, VOUT3.3 end unsettled (connect and move back misfortune electric capacity), uses 5V power supply; Access the VDD of PDIUSBD12 during power supply PI, VOUT3.3 holds, and uses 3.3V power supply.
embodiment 2
fig. 2 is usb circuit schematic diagram of the present invention;
data line D12DP and D12DM of USB meets D+ and D-of PDIUSBD12 respectively, external 18 ohm of build-out resistors; When USB cable disconnects the connection with main frame, D+ and D mono-is in suspended state, in a noisy environment, the state of D ten and D mono-may change due to induced noise, SIE take for sometimes be the restoring signal that produces of main frame thus make PDIUSBD12 mistake exit suspended state; D+ is connect the pull down resistor of a 1M, and D-connects the pull-up resistor of a 1M.
embodiment 3
fig. 3 is main program flow chart of the present invention;
major cycle checks event flag and enters corresponding subroutine and is further processed.In major cycle, first MCU carries out initialization to its all of the port, memory block, timer and interrupt service routine, and MCU will reconnect USB afterwards, comprises and Soft Connect register is set to ON; After initialization, enter circulation, the various state of poll; When be polled to detect set up bag time, its confirm to set up mark one of before whether be interrupted the set of service routine institute; If set up mark to be set, it will send a device requests to protocol layer and process.

Claims (3)

1. a data communication system Universal USB interface arrangement, is characterized in that: it is made up of with hang-up restoring circuit and Extended Capabilities Port circuit one-chip computer module, usb protocol modular converter, usb circuit part, reset.
2. a data communication system Universal USB interface arrangement, is characterized in that: described one-chip computer module adopts AT89C52 single-chip microcomputer to complete initialization, data acquisition, transmission data send the function of PDIUSBDI2 to as control core; Described PDIUSBD12 is the core of usb protocol modulus of conversion, and the data received are sent to USB port after conversion; Usb circuit part finishing equipment detects and anti-jamming circuit; Reset and hang up powering on and hand-reset of restoring circuit disposal system, detect the suspended state of PDIUSBDI2 and wake up or the single-chip microcomputer that resets when it recovers from suspended state; Extended Capabilities Port is used for being connected and system debug with data communication system.
3. a kind of data communication system Universal USB interface according to claim 1, is characterized in that: described PDIUSBD 12 can use the connected mode of address multiplexed data bus with 89C52; The ALE of PDIUSBDI2 is as address latch signal, and AO connects high level, and the address of 89C52 is directly connected with the data bus of PDIUSBD 12 with data bus, and the address lowest order that ALE latches is equivalent to AO; Triggered by external interrupt between PDIUSBD12 and 89C52, the external interrupt of interrupt pin INT N and 89C52 is connected, and when the interrupt register of PDIUSBD12 has one to be 1, INT N output low level, triggers the external interrupt of 89C52; In the interrupt service routine of 89C52, identify interruption by detecting the interrupt register of PDIUSBD12, and carry out the process that responds; The VDD of plant-grid connection PDIUSBDI2, VOUT3.3 end unsettled (connect and move back misfortune electric capacity), uses 5V power supply; Access the VDD of PDIUSBD12 during power supply PI, VOUT3.3 holds, and uses 3.3V power supply.
CN201410697914.8A 2014-11-28 2014-11-28 Universal USB (Universal Serial Bus) interface unit of data communication system Pending CN104391815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410697914.8A CN104391815A (en) 2014-11-28 2014-11-28 Universal USB (Universal Serial Bus) interface unit of data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410697914.8A CN104391815A (en) 2014-11-28 2014-11-28 Universal USB (Universal Serial Bus) interface unit of data communication system

Publications (1)

Publication Number Publication Date
CN104391815A true CN104391815A (en) 2015-03-04

Family

ID=52609722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410697914.8A Pending CN104391815A (en) 2014-11-28 2014-11-28 Universal USB (Universal Serial Bus) interface unit of data communication system

Country Status (1)

Country Link
CN (1) CN104391815A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2580905Y (en) * 2002-12-06 2003-10-22 清华大学 Multichannel AD collector based on USB
CN1808343A (en) * 2005-09-20 2006-07-26 马义德 Programmable communication converter
US20070169153A1 (en) * 2006-01-18 2007-07-19 Realfine (Shenzhen) Electronics Co., Ltd. Embeded USB interface circuit in AV device for recording programs

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2580905Y (en) * 2002-12-06 2003-10-22 清华大学 Multichannel AD collector based on USB
CN1808343A (en) * 2005-09-20 2006-07-26 马义德 Programmable communication converter
US20070169153A1 (en) * 2006-01-18 2007-07-19 Realfine (Shenzhen) Electronics Co., Ltd. Embeded USB interface circuit in AV device for recording programs

Similar Documents

Publication Publication Date Title
CN207367115U (en) A kind of server master board and server based on Feiteng processor
US9645954B2 (en) Embedded microcontroller and buses
CN101581964B (en) Computer system and peripheral equipment drive method
CN109032989A (en) A kind of server master board framework based on Shen prestige processor and bridge piece
CN104021101A (en) USB interface system and implementation method based on LPC1768 platform
CN211956463U (en) I/O (input/output) bridge piece based on Feiteng processor
CN110968352A (en) PCIE equipment resetting system and server system
CN211505789U (en) PCIE board card testing arrangement
CN204440389U (en) A kind of data communication system Universal USB interface arrangement
CN203133695U (en) BMC (backboard management controller) card based on AST2300 control chip
CN102981675A (en) Multi-point touch data processing method and multi-point touch data processing system thereof
CN105279110A (en) Host system identification method by USB (universal serial port) equipment, and USB equipment
WO2023016379A1 (en) Computer system, control method based on pcie device, and related device
CN104391815A (en) Universal USB (Universal Serial Bus) interface unit of data communication system
CN203658990U (en) Debugging device for central processing unit
CN204086415U (en) Fault wave recording device
CN202995719U (en) USB (universal serial bus) interface extension equipment and electronic terminal
CN103207850B (en) The transmission system of heterogeneous device
CN202939599U (en) ARINC429 bus test equipment
CN202153320U (en) Machine frame server based on loongson 3A central processing unit (CUP)
CN105786743A (en) Universal USB interface of data communication system
CN104123257A (en) Universal serial bus devices, communication method, and computer readable storage medium
CN207008014U (en) A kind of test board of server logic Control card
CN206133359U (en) Minimum system board based on does FT soar 1500A chip
CN102221650B (en) Testing module for adapter element

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150304

WD01 Invention patent application deemed withdrawn after publication