CN204740457U - Serial signal collection system - Google Patents

Serial signal collection system Download PDF

Info

Publication number
CN204740457U
CN204740457U CN201520271582.7U CN201520271582U CN204740457U CN 204740457 U CN204740457 U CN 204740457U CN 201520271582 U CN201520271582 U CN 201520271582U CN 204740457 U CN204740457 U CN 204740457U
Authority
CN
China
Prior art keywords
chip
usb
serial
chip microcomputer
pin
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
CN201520271582.7U
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.)
BEIJING ELECTRONIC SCIENCE AND TECHNOLOGY INSTITUTE
Original Assignee
BEIJING ELECTRONIC SCIENCE AND TECHNOLOGY 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 ELECTRONIC SCIENCE AND TECHNOLOGY INSTITUTE filed Critical BEIJING ELECTRONIC SCIENCE AND TECHNOLOGY INSTITUTE
Priority to CN201520271582.7U priority Critical patent/CN204740457U/en
Application granted granted Critical
Publication of CN204740457U publication Critical patent/CN204740457U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Microcomputers (AREA)

Abstract

The utility model relates to a data acquisition field especially relates to a serial signal collection system, including data acquisition module, USB communication module and RS232 serial ports communication module, data acquisition module is connected with USB communication module and serial ports communication module electricity, data acquisition module is STC12C5202AD singlechip or STC12C5204AD singlechip, USB communication module is including being used for the USB serial ports that converts RS232 usb signal's USB communication conversion chip into and be used for being connected with upper electromechanics, and the chip is changed in USB communication and the USB serial ports is electric is connected, the DB9 serial ports that the RS232 serial communication module includes RS232 serial communication conversion chip and is used for being connected with upper electromechanics, RS232 serial communication conversion chip is connected with DB9 serial ports electricity. The utility model discloses an adoption modularized design is connected data acquisition module respectively with USB communication module and serial ports communication module electricity, reduced the volume of capture card, has reduced the consumption to the expansibility ability has been increased.

Description

A kind of serial signal harvester
Technical field
The utility model relates to data collecting field, particularly relates to a kind of serial signal harvester.
Background technology
Data acquisition technology is a kind of data automatic identification technology, refer to from sensor or miscellaneous equipment by required simulating signal is converted to digital signal and automatic recording to the process in computing machine or other equipment.Because data acquisition technology can make many abstract analog quantity digitizings, and then provide its value, or by signal transacting, this analog quantity is analyzed.Compared with simulation system, digital display circuit has that precision is high, high reliability, and therefore, the application of data acquisition technology is more and more extensive.As analog quantitys such as temperature, pressure, position, flows, electrical signal simulation amount (as voltage, electric current or electric pulse etc.) can be converted into by dissimilar sensor, give analog-digital converter (ADC) by suitable signal condition by signal again, make it be converted to the digital signal that can process further and give digital signal processor or microprocessor.Otherwise the digital signal that digital signal processor or microprocessor are produced by digital analog converter (DAC) is converted to simulating signal, then is exported by signal condition.
Along with the development of science and technology and the widespread use of data acquisition technology, people propose more and more higher requirement to data acquisition system (DAS), at present, the capture card that in correlation technique, volume is comparatively large, power consumption is higher, expansion merit is poor can not meet the demand of people, is further improved.
Utility model content
To achieve these goals, the utility model provides, and a kind of tubular helix transporting device, to solve the problem.
The utility model provides a kind of serial signal harvester, comprises data acquisition module, usb communication module and serial communication modular; Data acquisition module is electrically connected with usb communication module and RS232 serial communication modular; Data acquisition module is STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer; Usb communication module comprises the usb communication conversion chip for RS232 being converted to usb signal and is used for the USB serial ports that is electrically connected with host computer, and usb communication conversion chip is connected with USB serial port power; RS232 serial communication modular comprises RS232 serial communication switch chip and the DB9 serial port for being electrically connected with host computer, and RS232 serial communication switch chip is electrically connected with DB9 serial port.
Further, usb communication conversion chip is PL2303-HX chip, the TXD pin of PL2303-HX chip is electrically connected with the RXD pin of STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer, and the RXD pin of PL2303-HX chip is electrically connected with the TXD pin of STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer.
Further, RS232 serial communication switch chip is MAX232 chip, the TXD pin of MAX232 chip is electrically connected with the RXD pin of STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer, and the RXD pin of MAX232 chip is electrically connected with the TXD pin of STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer.
Compared with prior art the beneficial effects of the utility model are: by adopting modular design, data acquisition module is electrically connected with usb communication module and RS232 serial communication modular respectively, reduce the volume of capture card, reduce power consumption, and add scalability.
Accompanying drawing explanation
Fig. 1 is structured flowchart of the present utility model;
Fig. 2 is circuit diagram of the present utility model;
Fig. 3 is the circuit diagram of the utility model STC12C5202D single-chip microcomputer;
Fig. 4 is the inner structure block diagram of the utility model STC12C5204AD single-chip microcomputer;
Fig. 5 is the pinouts of the utility model STC12C5204AD single-chip microcomputer;
Fig. 6 is the circuit diagram of the utility model PL2303-HX chip;
Fig. 7 is the pin figure of the utility model PL2303-HX chip;
Fig. 8 is the circuit diagram of the utility model RS232 serial communication modular.
Fig. 9 is the cut-away view of the utility model MAX232 chip;
Figure 10 is the utility model MAX232 chip pin figure.
Embodiment
Also by reference to the accompanying drawings the utility model is described in further detail below by specific embodiment.
Shown in ginseng Fig. 1 to Figure 10, Fig. 1 is structured flowchart of the present utility model; Fig. 2 is circuit diagram of the present utility model; Fig. 3 is the circuit diagram of the utility model STC12C5202D single-chip microcomputer; Fig. 4 is the inner structure block diagram of the utility model STC12C5204AD single-chip microcomputer; Fig. 5 is the pinouts of the utility model STC12C5204AD single-chip microcomputer; Fig. 6 is the circuit diagram of the utility model PL2303-HX chip; Fig. 7 is the pin figure of the utility model PL2303-HX chip; Fig. 8 is the circuit diagram of the utility model RS232 serial communication modular; Fig. 9 is the cut-away view of the utility model MAX232 chip; Figure 10 is the utility model MAX232 chip pin figure.
Present embodiments provide a kind of serial signal harvester, comprise data acquisition module 10, usb communication module 20 and RS232 serial communication modular 30; Data acquisition module 10 is electrically connected with usb communication module 20 and serial communication modular 30; Data acquisition module 10 is STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer; Usb communication module 20 comprises the usb communication conversion chip for RS232 being converted to usb signal and is used for the USB serial ports that is electrically connected with host computer, and usb communication conversion chip is connected with USB serial port power; RS232 serial communication modular 30 comprises RS232 serial communication switch chip and the DB9 serial port for being electrically connected with host computer, and RS232 serial communication switch chip is electrically connected with DB9 serial port.
Data acquisition module, by adopting modular design, is electrically connected with usb communication module and RS232 serial communication modular, reduces the volume of capture card, reduce power consumption, and add scalability by data collector that the present embodiment provides respectively.
In the present embodiment, data acquisition module 10 can adopt STCl2C5204AD single-chip microcomputer or STC12C5202AD single-chip microcomputer.There is a lot of register STC12C5201AD series monolithic inside, and its A/D changes related register and mainly contains P1ASF, ADC_CONTR, ADC_RES, IE, IP and IPH.To be first " 1 " by the corresponding position in P1ASF special function register when the mouth which mouth of choice for use is changed as A/D, corresponding mouth is set to analog functuion, such as: P10ASF is set to " 1 ", then this mouth can be used as A/D and changes mouth use, if be set to " 0XFF " by P1ASF accordingly, represents that these all mouths all can be used as A/D and change mouth use.
ADC_CONTR register is A/D conversion and control register, when ADC_POWER is wherein " 1 ", represents and opens A/D converter power supply; Four kinds of combinations of SPEED1 and SPEED0 will determine the speed of A/D conversion, represent that conversion is the fastest when they are all " 1 ", be change once 70 clock period.ADC_FLAG position is A/D EOC zone bit, and after converting, it is " 1 ".ADC_START is conversion startup control bit, and when being set to " 1 ", it starts conversion, is " 0 " after EOC.The effect that remaining CHS2, CHS1 and CHS0 tri-bit pattern is got up determines that current what will change is the data of which passage to single-chip microcomputer, when being all " 0 " as them, represent that single-chip microcomputer is about to select P1.0 passage to carry out A/D conversion, when they are all " 1 ", represent that single-chip microcomputer is about to select P1.7 passage to carry out A/D conversion.The effect of register ADC_RES is the most-significant byte digital signal after storage single-chip microcomputer carries out A/D conversion.
STCl2C5204AD single-chip microcomputer is a kind of high speed, low energy consumption, a new generation 8051 single-chip microcomputer that antijamming capability is strong, the completely compatible tradition 8051 of instruction code.8,8 tunnel A/D converter, 2 road PWM in sheet, there are 23 I/O pin, meet Systematical control requirement.Feature is low-power consumption, strong interference immunity, cheap, and I/0 driving force can reach 20mA; ISP (in-system programmable components)/IAP (able to programme in application), without the need to Special programming and dedicated emulated device, by the direct download user program of serial ports.
The advantage of STC12C5204AD comprises:
(1) high-antistatic (esd protection), the light mistake of complete machine 20,000 volts of electrostatic are surveyed;
(2) the light 4KV of mistake fast-pulse disturbs (EFT test);
(3) Width funtion, is not afraid of power jitter;
(4) wide temperature range ,-40 DEG C ~ 85 DEG C;
(5) encryption is strong, cannot decipher;
(6) 5 clock/machine cycles, available low frequency crystal oscillator, significantly reduces EMI.
In the present embodiment, usb communication conversion chip is PL2303-HX chip, the TXD pin of PL2303-HX chip is electrically connected with the RXD pin of STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer, and the RXD pin of PL2303-HX chip is electrically connected with the TXD pin of STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer.
PL2303-HX chip is that the integrated RS232 of height that Prolific company produces turns usb signal conversion chip, and this chip provides the solution that a RS232 full duplex asynchronous serial communication interface quick and precisely connects with USB functional interface.This built-in chip type USB function control device, USB transceiver, oscillator and the UART with whole modem control signals, only need external several electric capacity just can realize the mutual conversion of usb signal and RS232 signal, can be embedded into easily in various equipment and go, this chip is as the bidirectional transducer of a kind of USB/RS232, and it can receive usb signal from main frame and be converted into RS232 signal and send to peripheral hardware on the one hand; On the other hand it can be converted to usb signal format transmission and returns main frame from the peripheral hardware Received signal strength of RS232 and go.These work are all completed automatically by this chip and peripheral circuit thereof, without the need to considering firmware design.
In the present embodiment, RS232 serial communication switch chip is MAX232 chip, the TXD pin of MAX232 chip is electrically connected with the RXD pin of STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer, and the RXD pin of MAX232 chip is electrically connected with the TXD pin of STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer.
Serial communication modular 30 is made up of download program serial ports DB9 and MAX232 chip, and its function realizes the mutual conversion between single-chip microcomputer signal (TTL signal) and RS232 signal.This chip only needs the electric capacity of additional 4 0.1uF just can realize function switching signal.TTL/CMOS data convert RS-232 data to from T1IN input and deliver to computer DB9 plug from T1OUT; The RS-232 data of DB9 plug export from R2OUT after R1IN input converts TTL/CMOS data to.
MAX232 chip can be used for realizing PC and single-chip data transmits.MAX232 chip is the single supply level transferring chip that U.S. letter (MAXIM) company aims at the design of rs-232 standard serial ports, uses+5V single power supply.The operating circuit of MAX232 chip only needs 4 electric capacity (see Fig. 6), pin using function is as follows: form a charge pump circuit by 1,2,3,4,5,6 pin and 4 electric capacity, function produces+12v and-12v two power supplys, is supplied to the needs of RS-232 serial ports level.Two data channel are formed by 7,8,9,10,11,12,13,14 pin, function is data ALT-CH alternate channels, wherein 13 pin (R1IN), 12 pin (R1OUT), 11 pin (T1IN), 14 pin (T1OUT) are the first data channel, and 8 pin (R2IN), 9 pin (R2OUT), 10 pin (T2IN), 7 pin (T2OUT) are the second data channel.15 pin GND, 16 pin VCC (+5V) form power supply, and function is power supply.
In the present embodiment, the function of usb communication module 20 is the mutual conversions realizing single-chip microcomputer signal (TTL signal) and usb signal, single-chip microcomputer signal is converted into corresponding usb signal after RXD enters into PL2303-HX chips, then sends to computing machine or other external unit by USB serial ports.Send from the TXD pin of single-chip microcomputer after being converted into corresponding TTL signal after computing machine or external unit send signal to PL2303-HX chip by USB serial ports.
The utility model adopts two kinds of serial communication modes, can select USB standard interface, also can select RS232.If select USB standard interface, USB need be connected with computer, for circuit board is powered.Because single-chip microcomputer directly cannot read the level of USB, employ PL2303-HX chip and USB level is changed.After USB level signal enters PL2303-HX chip, level after conversion sends to single-chip microcomputer RXD pin by TXD pin, analog to digital conversion is carried out in single-chip microcomputer inside, digital quantity conversion obtained sends to the RXD pin of PL2303-HX by single-chip microcomputer TXD pin, through conversion, send to upper computer end by USB.Same, use RS232 serial ports to communicate.Need to carry out level conversion by MAX232, by TXD pin, the level after conversion is sent to single-chip microcomputer RXD pin, analog to digital conversion is carried out in single-chip microcomputer inside, digital quantity conversion obtained sends to the RXD pin of MAX232 by single-chip microcomputer TXD pin, through conversion, send to upper computer end by RS232.
In the present embodiment, single-chip microcomputer firmware program can be write on Keil uvision2, and STC-ISP-V480 carries out burning.Data acquisition system (DAS) user interface can design on LabWindows/CVI platform, makes the signal of collection intuitively can show and can show voltage or Temperature Quantity.Can to " 0 "-" 7 " by designed interface, 8 passages carry out real-time data acquisition, can autosensing port and passage, carry out 8 circuit-switched data collections and change into voltage display (if serviceability temperature sensor also can displays temperature amount), completing measured value and measure.Gather several groups of data and carry out data mean value calculating, to proofread with measured data, calculating error values.This data collector can realize the collection of multichannel data, communicated with computing machine by USB (universal serial bus), the various control commands that the measurement control software enabling equipment receive host computer sends, and by data transfer to host computer, utilize the data processing software of host computer just can to the data analysis process received.
A series of detailed description listed is above only illustrating for feasibility embodiment of the present utility model; they are also not used to limit protection domain of the present utility model, all do not depart from the utility model skill equivalent implementations of doing of spirit or change all should be included within protection domain of the present utility model.
To those skilled in the art, obvious the utility model is not limited to the details of above-mentioned one exemplary embodiment, and when not deviating from spirit of the present utility model or essential characteristic, can realize the utility model in other specific forms.Therefore, no matter from which point, all should embodiment be regarded as exemplary, and be nonrestrictive, scope of the present utility model is limited by claims instead of above-mentioned explanation, and all changes be therefore intended in the implication of the equivalency by dropping on claim and scope are included in the utility model.

Claims (3)

1. a serial signal harvester, is characterized in that, comprises data acquisition module, usb communication module and RS232 serial communication modular; Described data acquisition module is electrically connected with described usb communication module and serial communication modular; Described data acquisition module is STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer; Described usb communication module comprises the usb communication conversion chip for RS232 being converted to usb signal and is used for the USB serial ports that is electrically connected with host computer, and described usb communication conversion chip is connected with described USB serial port power; Described RS232 serial communication modular comprises RS232 serial communication switch chip and the DB9 serial port for being electrically connected with host computer, and described RS232 serial communication switch chip is electrically connected with described DB9 serial port.
2. a kind of serial signal harvester according to claim 1, it is characterized in that, described usb communication conversion chip is PL2303-HX chip, the TXD pin of described PL2303-HX chip is electrically connected with the RXD pin of described STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer, and the RXD pin of described PL2303-HX chip is electrically connected with the TXD pin of described STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer.
3. a kind of serial signal harvester according to claim 1 and 2, it is characterized in that, described RS232 serial communication switch chip is MAX232 chip, the TXD pin of described MAX232 chip is electrically connected with the RXD pin of described STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer, and the RXD pin of described MAX232 chip is electrically connected with the TXD pin of described STC12C5202AD single-chip microcomputer or STC12C5204AD single-chip microcomputer.
CN201520271582.7U 2015-04-29 2015-04-29 Serial signal collection system Expired - Fee Related CN204740457U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201520271582.7U CN204740457U (en) 2015-04-29 2015-04-29 Serial signal collection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201520271582.7U CN204740457U (en) 2015-04-29 2015-04-29 Serial signal collection system

Publications (1)

Publication Number Publication Date
CN204740457U true CN204740457U (en) 2015-11-04

Family

ID=54422185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201520271582.7U Expired - Fee Related CN204740457U (en) 2015-04-29 2015-04-29 Serial signal collection system

Country Status (1)

Country Link
CN (1) CN204740457U (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107145462A (en) * 2017-04-26 2017-09-08 浙江大学 A kind of synchronous serial signal acquisition and control device based on usb bus
WO2018058961A1 (en) * 2016-09-28 2018-04-05 深圳喜乐航科技有限公司 Announcement broadcast apparatus and system for aircraft

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018058961A1 (en) * 2016-09-28 2018-04-05 深圳喜乐航科技有限公司 Announcement broadcast apparatus and system for aircraft
CN107145462A (en) * 2017-04-26 2017-09-08 浙江大学 A kind of synchronous serial signal acquisition and control device based on usb bus
CN107145462B (en) * 2017-04-26 2019-10-11 浙江大学 A kind of synchronous serial signal acquisition and control device based on usb bus

Similar Documents

Publication Publication Date Title
CN103471656B (en) One realizes sensor multilevel cascade connection device and method
CN204740457U (en) Serial signal collection system
CN105259841B (en) A kind of industrial many reference amounts data acquisition unit
CN203785709U (en) Multi-sensor data concentration acquisition system
CN108507591A (en) Multichannel MEMS gyroscope demarcates test data collection device and acquisition method
CN203179279U (en) Remote transparent data acquisition and transmission system based on optical fiber
CN201795814U (en) Integrated temperature and humidity monitoring device
CN201237769Y (en) Multifunctional computer wireless remote controller
CN208366386U (en) A kind of multi-path data acquiring system
CN203881830U (en) Parameter detecting instrument based on Android phone
CN102520652A (en) Multifunctional control module for automobile instruments
CN202372821U (en) Multifunctional control module for novel automobile instrument
CN2684272Y (en) Modularized data acquisition unit
CN105824396A (en) Desktop type computer intelligent control and management method
CN204389714U (en) A kind of weather monitoring instrument realizing Temperature and Humidity based on SHT2X chip
CN210720558U (en) Low-cost portable voltage measurement device
CN209529104U (en) Detachable pen and the pulse diagnosis system of feeling the pulse
CN201569925U (en) Temperature detecting and controlling system
CN107145462B (en) A kind of synchronous serial signal acquisition and control device based on usb bus
CN201111712Y (en) Automatic switching system of connection data gathering sensor
CN212873488U (en) High-speed wireless data acquisition card
CN213482327U (en) Current test circuit
CN202975766U (en) Data acquisition system of high-precision portable data acquisition instrument
CN109186816A (en) A kind of microminiature digital pressure sensor
CN201867633U (en) Outdoor analog acquisition module used in low temperature environment

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: 20151104

Termination date: 20160429