Gas ultrasonic flow rate metering unit based on DSP
Technical field:
Gas ultrasonic flow rate metering unit based on DSP, relate to gas ultrasonic flow rate metering cell fabrication techniques, relate in particular to gas ultrasonic flow rate metering technology, be applicable to gas operating mode and mark condition flow are monitored in real time and measured based on digital signal processor DSP.
Background technology:
Existing gas ultrasonic flowmeter both domestic and external, great majority adopt single-chip microcomputer as core processor, and its arithmetic speed and precision all do not reach desirable requirement, even and do not have analog/digital sampling input and digital-to-analog conversion output or have resolution also lower.In addition, the storage space of existing gas ultrasonic flowmeter is less, only can preserve a spot of service data.The output port of flowmeter is also less, can't be applied to the complicated system integration and measure field, and the on-the-spot nothing demonstration of external most of gas ultrasonic flowmeter, as want to check that the necessary connection traffic in addition of data calculates, this has also just increased user's use cost and complicacy.
Summary of the invention:
Deficiency at existing gas ultrasonic flowmeter, the utility model proposes and have that processing power is strong, operational precision is high, memory capacity is big, man-machine interface is abundant, is the multi-channel gas ultrasonic flow rate metering unit of digital signal processor based on DSP (Digital Signal Processor).
The utility model metering units is carried set every circuit, multiplex communication interface, A/D conversion circuit, D/A conversion circuit, user-machine interface circuit, emulation and program download interface through the circuit web joint and is formed by DSP digital signal processor, FLASH storer, power reset and power down protection circuit, clock circuit, light.Wherein: because the built-in special-purpose Float Point Unit of Floating-point DSP, comparing fixed DSP, to have arithmetic speed faster, precision is higher, advantages such as the dynamic operation scope is bigger, therefore, the utility model metering units adopts the Floating-point DSP digital signal processor, is used for control and the data processing and the computing of metering units; Power reset and power down protection circuit are used to provide required power supply of metering units and reset signal, also have power down protection real time data function in addition; Clock circuit is used to provide clock reference; Emulation and program download interface are used for procedure simulation and burning; The FLASH storer is used for the storage of program and data; The user-machine interface circuit can connect Liquid Crystal Module and show relevant informations such as real time data and keyboard input; A/D conversion circuit is used for the sampling input of analog quantitys such as temperature, pressure; D/A conversion circuit is used for real-time measuring data is exported in 4~20mA electric current loop mode; Light is used for carrying out photoelectricity with peripheral interface every circuit and isolates; The multiplex communication interface is used for the data communication with upper and lower computer.
During the utility model work; power reset and power down protection circuit provide required power supply of metering units and reset signal; hardware automatically load be solidificated in the FLASH storer gas ultrasonic flow rate metering software to DSP internal processes memory block and move; gas ultrasonic flow rate metering software is embedded based on the canonical algorithm among the GB/T 18604-2001 " measuring gas discharge with the gas ultrasonic flowmeter "; after the DSP digital signal processor obtains ultrasonic sampled value by the multiplex communication interface circuit with serial communication mode; according to the canonical algorithm in the measuring software; by DSP digital signal processor high speed analysis and calculating; obtain ultrasonic real-time working condition data; the temperature of reading in again by A/D conversion circuit; force value compensation and according to component; temperature; the compensation of the compressibility factor that conversion pressure goes out is converted into mark condition real time data with condition real time data.Real time data can show on Liquid Crystal Module through the user-machine interface circuit, can export in 4~20mA electric current loop mode by D/A conversion circuit, also can export with frequency/pulse mode by the built-in Timer of DSP digital signal processor.Power reset and power down protection circuit can take place to guarantee under the situation of unexpected power down that current data do not lose in system, and record power down time and data.The high-capacity FLASH storer that carries of the plate service data of metering units such as record that can save historical data for a long time, cut off the power supply in addition.Can realize that by the multiplex communication interface multiple host and metering units carry out communication, thereby realize the setting of parameter, monitoring, inquiry and the download etc. of data.Because the utility model metering units is simple for structure, and soft, hardware integrated level height, has not only effectively improved the precision of gas ultrasonic flow rate metering, and had very strong real-time.
Description of drawings:
Fig. 1 is a structural representation of the present utility model
Among the figure: power reset and power down protection circuit 1, clock circuit 2, emulation and program download interface 3, FLASH storer 4; DSP digital signal processor 5, user-machine interface circuit 6, A/D conversion circuit 7; D/A conversion circuit 8, light be every circuit 9, multiplex communication interface 10.
Embodiment:
Do below in conjunction with 1 pair of the utility model of accompanying drawing and to describe in further detail.
The utility model metering units is carried set with DSP digital signal processor 5 through the circuit web joint respectively every circuit 9, multiplex communication interface 10 and is formed by power reset and power down protection circuit 1, clock circuit 2, emulation and program download interface 3, FLASH storer 4, user-machine interface circuit 6, A/D conversion circuit 7, D/A conversion circuit 8, light.Wherein DSP digital signal processor 5 is selected the TMS320C6713 floating type digital signal processor of TI Texas Instrument for use; FLASH storer 4 is selected the TE28F256 of Intel Intel for use, and it has the 32MB storage space, the erasing and writing life more than 100,000 times; A/D conversion circuit 7 is selected the ADS1112 of TI Texas Instrument for use, and it has the resolution of 16-bit, full scale 0.01% non-linear; D/A conversion circuit 8 is selected the AD5667 of ADI Analog Devices Inc for use, and it has the resolution of 16-bit and the internal reference voltage of low-temperature coefficient; Multiplex communication interface 10 selects for use state to rise microelectronic GM8142, and its SPI Serial Peripheral Interface (SPI) with DSP digital signal processor 5 is extended to 4 tunnel UART universal asynchronous receiving-transmitting interfaces independently.After metering units powers on; power reset and power down protection circuit 1 provide required power supply of metering units and power-on reset signal; hardware automatically load be solidificated in the FLASH storer 4 gas ultrasonic flow rate metering software to Floating-point DSP digital signal processor 5 internal processes memory blocks and operation; gas ultrasonic flow rate metering software is embedded based on the canonical algorithm in " GB/T 18604-2001 measures gas discharge with the gas ultrasonic flowmeter "; after DSP digital signal processor 5 obtains ultrasonic sampled value by multiplex communication interface circuit 10 with serial communication mode; according to the canonical algorithm in the measuring software; by DSP digital signal processor 5 high speed analysiss and calculating; ultrasonic sampled value is converted into the operating mode data on flows of gas; as: flow velocity; operating mode instantaneous flow and other real-time working condition data; the temperature of reading in again by A/D conversion circuit 7; the force value compensation obtains marking condition instantaneous delivery data, also can compensate to obtain the more mark condition instantaneous delivery data of pin-point accuracy grade by the mark condition flow that component information calculates above the Real Time Compression factor pair.Real time data can show by external Liquid Crystal Module through user-machine interface circuit 6, can export in 4~20mA electric current loop mode by D/A conversion circuit 8, also can export every circuit 9 through light with frequency/pulse mode by DSP digital signal processing 5 built-in Timer.Power reset and power down protection circuit 1 can take place to guarantee under the situation of unexpected power down that current data do not lose in system, and record power down time and data.The high-capacity FLASH storer 4 that carries of plate system's service datas such as record that can save historical data for a long time, cut off the power supply in addition.Can realize that by multiplex communication interface 10 multiple host and metering units carry out communication, thereby realize the setting of parameter, monitoring, inquiry and the download etc. of data.
The utility model metering units is simple for structure, and software and hardware integrated level height has not only effectively improved the precision of gas ultrasonic flow rate metering, and had very strong real-time, can be widely used in the gas dosing field, can obtain good economic benefit and social benefit.