CN102854376A - Digital voltmeter and measuring method thereof - Google Patents

Digital voltmeter and measuring method thereof Download PDF

Info

Publication number
CN102854376A
CN102854376A CN2012103763744A CN201210376374A CN102854376A CN 102854376 A CN102854376 A CN 102854376A CN 2012103763744 A CN2012103763744 A CN 2012103763744A CN 201210376374 A CN201210376374 A CN 201210376374A CN 102854376 A CN102854376 A CN 102854376A
Authority
CN
China
Prior art keywords
digital voltmeter
module
digital
processing module
modular converter
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
CN2012103763744A
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.)
University of Shanghai for Science and Technology
Original Assignee
University of Shanghai for Science and Technology
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 University of Shanghai for Science and Technology filed Critical University of Shanghai for Science and Technology
Priority to CN2012103763744A priority Critical patent/CN102854376A/en
Publication of CN102854376A publication Critical patent/CN102854376A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

The invention discloses a digital voltmeter and a measuring method thereof. The digital voltmeter comprises an input circuit module, an analog to digital (A/D) conversion module, a single chip microcomputer processing module and a display module which are connected in sequence. The input circuit module sends obtained analog voltage to the A/D conversion module, the A/D conversion module converts the analog voltage into digital signals and sends the digital signals to the single chip microcomputer processing module, and the single chip microcomputer processing module enables results obtained by treatment to be displayed through the display module. The digital voltmeter and the measuring method of the digital voltmeter have the advantages of being high in precision and sensitivity, reliable in performance, simple in circuit, low in cost and high in intelligence level.

Description

A kind of digital voltmeter and measuring method thereof
Technical field
The invention belongs to field of measuring technique, relate to a kind of voltage table, relate in particular to a kind of digital voltmeter; Simultaneously, the invention still further relates to the measuring method of above-mentioned digital voltmeter.
Background technology
Digital voltmeter (Digital Voltmeter) is called for short DVM, and it is to adopt Digital Measuring Technique, and continuous analog quantity (DC input voitage) is converted to discontinuous, discrete digital form and the instrument that is shown.Traditional needle dc voltmeter function singleness, precision are low, can not satisfy the demand of digital times, adopt the digital voltmeter of single-chip microcomputer, and be high by precision, antijamming capability is strong, and strong, the integrated convenience of extensibility also can be carried out real-time Communication for Power with PC.
At present, the digital voltmeter by various monolithic a/d converters consist of has been widely used in the intelligent measuring fields such as electronics and electrotechnical measurement, industrial automation instrument, Auto-Test System, and powerful vitality is shown.Meanwhile, by the various general and special digital instrument and meter that the DVM expansion forms, also electric weight and non-electrical quantity measuring technology are brought up to brand-new level.
Summary of the invention
Technical matters to be solved by this invention is: a kind of digital voltmeter is provided, has that precision is high, sensitivity is strong, dependable performance, circuit is simple, cost is low, intelligent level is high characteristics.
In addition, the invention still further relates to a kind of measuring method of digital voltmeter, have that precision is high, sensitivity is strong, dependable performance, circuit is simple, cost is low, intelligent level is high characteristics.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of digital voltmeter, described digital voltmeter comprise input circuit module, A/D modular converter, single chip processing module, the display module that connects successively; Described input circuit module is sent to the A/D modular converter with the aanalogvoltage that obtains; Described A/D modular converter is converted to digital signal with aanalogvoltage, and digital signal is sent to single chip processing module; Described single chip processing module is shown the result that processing obtains by display module.
As a preferred embodiment of the present invention, described single chip processing module comprises singlechip chip, reset circuit, clock circuit; Reset circuit, clock circuit are connected with singlechip chip respectively; The RST pin of singlechip chip provides an external reset signal input port; It is effective that reset signal is designed to high level, and the effective duration of high level is 2 more than the machine cycle; The working time benchmark of singlechip chip is provided by clock circuit, connects a crystal oscillator and two electric capacity at pin XTAL1 and the pin XYAL2 of singlechip chip, consists of described clock circuit, and two electric capacity have the fine setting effect to oscillation frequency.
As a preferred embodiment of the present invention, described aanalogvoltage has different dividing potential drops through slide rheostat in ISIS 6 Professiona environment Bututs.
As a preferred embodiment of the present invention, described A/D modular converter adopts the ADC0808 chip that has one by one approximation theory, and Keil C51 programmed environment is used in the program design of A/D modular converter.
As a preferred embodiment of the present invention, described single chip processing module adopts the AT89C51 chip, and Keil C51 programmed environment is used in the single chip processing module program design.
As a preferred embodiment of the present invention, described display module is the LED display module, comprises the demonstration charactron of 4 common anodes; Keil C51 programmed environment is used in described LED display module program design.
A kind of measuring method of above-mentioned digital voltmeter, described method comprises the steps:
S1, initial value is set;
S2, startup A/D modular converter carry out the A/D conversion;
Whether S3, judgement conversion finish, if turn to step 4, otherwise continue conversion;
S4, read the A/D transformation result;
S5, the subroutine of transferring the side-play amount of tabling look-up are tabled look-up;
S6, transfer display subroutine and show;
S7, judge whether to have turned all passages, if turn to step S1, otherwise turn to step S2.
Beneficial effect of the present invention is: the digital voltmeter that the present invention proposes has that precision is high, sensitivity strong, a dependable performance, circuit is simple, cost is low, intelligent level is high characteristics.
Description of drawings
Fig. 1 is the composition schematic diagram of digital voltmeter of the present invention.
Fig. 2 is the reset circuit schematic diagram in the digital voltmeter of the present invention.
Fig. 3 is the clock circuit schematic diagram in the digital voltmeter of the present invention.
Fig. 4 is AT89C51 pin schematic diagram.
Fig. 5 is ADC0808 pin schematic diagram.
Fig. 6 is ADC0808 inner structure schematic diagram.
Fig. 7 is ADC0808 flow path switch schematic diagram.
Fig. 8 is digital voltmeter master control program design cycle schematic diagram.
Fig. 9 is A/D converted measurement program schematic diagram.
Figure 10 is the schematic flow sheet of display routine.
Embodiment
Describe the preferred embodiments of the present invention in detail below in conjunction with accompanying drawing.
Embodiment one
See also Fig. 1, the present invention has disclosed a kind of digital voltmeter, and described digital voltmeter comprises input circuit module 1, A/D modular converter 2, single chip processing module 3, the LED display module 4 that connects successively; Described input circuit module 1 is sent to A/D modular converter 2 with the aanalogvoltage that obtains; Described A/D modular converter 2 is converted to digital signal with aanalogvoltage, and digital signal is sent to single chip processing module 3; Described single chip processing module 3 is shown the result that processing obtains by LED display module 4.Particularly, after aanalogvoltage switches to different bleeder circuits through slide rheostat, deliver to A/D modular converter 2 and carry out the A/D conversion, then deliver to and carry out the data processing in the single chip processing module 3.Data after the processing are delivered to demonstration in the LED display module 4 by the P0 port transmission.
As shown in Figure 1, aanalogvoltage is through slide rheostat different dividing potential drops to be arranged in ISIS 6 Professiona environment Bututs, and what adopt in the present embodiment is 8 tunnel dividing potential drops, selects a road in eight paths or circulation to show by button by the road; A certain road, this road voltage is sent into the ADC0808 respective channel, scm software arranges ADC0808 and begins the A/D conversion, the EOC port of EOC ADC0808 produces high level, and the EO port with ADC0808 is set to high level simultaneously, and the result deposited such as ram in slice after single-chip microcomputer will be changed.System accesses counting subroutine, saving result is converted into 0.00-5.00V is kept at respectively ram in slice; The system call display subroutine, data lookup table after will transforming outputs to the LED display circuit, and relevant voltage is shown, and program enters next circulation.
In the hardware design of digital voltmeter of the present invention, comprise single main circuit design, A/D modular converter circuit design and display circuit design.
The single main circuit design comprises the design of reset circuit and clock circuit; Single chip processing module comprises singlechip chip, reset circuit, clock circuit.In the present embodiment, singlechip chip (chip of namely data after the analog to digital conversion being processed) adopts the AT89C51 chip, and the AT89C51 chip is a kind of low-voltage, high performance CMOS eight bit microprocessors, has very strong bit addressing, position processing power.The pin of AT89C51 chip sees also shown in Figure 4.
Reset circuit as shown in Figure 2, the RST pin of singlechip chip provides an external reset signal input port for main frame.Reset signal is that high level is effective, and the effective duration of high level is 2 more than the machine cycle, and the reset mode of single-chip microcomputer can be finished by the hand-reset mode.Clock circuit as shown in Figure 3, the time reference of singlechip chip work is provided by clock circuit, meets the clock circuit that a crystal oscillator and two electric capacity have just consisted of single-chip microcomputer, capacitor C in the circuit at the XTAL1 of singlechip chip and two pins of XYAL2 1And C 2Oscillation frequency is had the fine setting effect, and usually getting (30 ± 10) pF quartz crystal selection 6MHz or 12MHz can.
In the present embodiment, singlechip chip is 8 bit processors, and when input voltage was 5.00V, output data value was 255(FFH), so the numerical resolution of single-chip microcomputer maximum is 0.0196V(5/255).This ultimate resolution (precision) that has determined this voltage table reaches 0.0196V.The direct current input impedance 1M Ω of ADC0808 can satisfy general voltage tester needs.In addition, ADC0808 can directly work under the frequency of 2MHz after tested, can save frequency divider 14024 like this.
The conversion accuracy of A/D converter is of crucial importance to metering circuit, and its parameters relationship is to the metering circuit performance.In the present embodiment, the A/D modular converter uses the ADC0808 chip, and the ADC0808 chip is that sampling resolution is eight, the device that carries out mould/number conversion with approximation theory one by one.The pin of ADC0808 chip sees also Fig. 5, and the inner structure of ADC0808 chip sees also Fig. 6.Successive approximation A/D modular converter belongs to Direct-type A/D modular converter, and it can directly be converted to the digital code of output to the aanalogvoltage of input, and does not need through intermediate variable.A/D flow path switch schematic diagram as shown in Figure 7, the present invention adopts the biproduct A/D converter, its performance is more stable, conversion accuracy is high, has very high antijamming capability, circuit structure is simple.Conversion accuracy is being had relatively high expectations, and the less demanding occasion of slewing rate such as voltage measurement are being widely used.
In addition, LED display module 4 is made of the LED charactron of four common anodes.
In the Software for Design of digital voltmeter of the present invention, comprise master control program design, the program design of A/D converted measurement and display subroutine design.The master control program design cycle sees also Fig. 8, and control flow comprises: (1) arranges initial value; (2) start the A/D modular converter and carry out the A/D conversion; (3) judge whether conversion finishes, if turn to step 4, otherwise continue conversion; (4) read the A/D transformation result; (5) subroutine of transferring the side-play amount of tabling look-up is tabled look-up; (6) transferring display subroutine shows; (7) judge whether to have turned eight passages one time, if turn to step 1, otherwise turn to step 2.
Wherein, master routine is write corresponding program according to hardware circuit, realizes the several functions of collection, conversion, processing, demonstration of voltage, thereby realizes the effect of measuring voltage.
A/D converted measurement program design flow process sees also Fig. 9, and the display subroutine design cycle sees also Figure 10.
The function that the present invention will realize has:
(1) can measure 8 road interior dc voltage values of 0~5V scope.
(2) show in turn that on 4 LED charactrons the selection of each road magnitude of voltage or single channel shows, wherein 3 LED charactrons show magnitudes of voltage, and indication range is 0.00V~5.00V, and 1 LED charactron shows way, and 8 the tunnel are respectively 1-8.
(3) measuring minimum resolution is 0.02V.
Adopt Keil uVision2 compiler to carry out source program compiling and artificial debugging, carry out simultaneously designing and producing of hardware circuit board, carry out the software and hardware uniting and adjustment after the burned program, carry out at last the contrast test of port voltage, require test comparison Plays magnitude of voltage to adopt digital multimeter to record.
Embodiment two
The difference of the present embodiment and embodiment one is, the characteristics of the present embodiment also are the combination of its software and hardware, in ISIS 6Professiona software environment, carry out the structure Butut, ISIS 6 Professiona softwares are copyings that it not only has other eda tool software, can also emulation single-chip microcomputer and peripheral components.Present best emulation single-chip microcomputer and the instrument of peripheral components.It is from schematic diagram Butut, code debugging to single-chip microcomputer and peripheral circuit collaborative simulation, and a key switches to the PCB design, has really realized the complete design from the concept to the product.At present with circuit simulating software, the three-in-one design platform of PCB design software and dummy model simulation software, its processor model supports 8051, HC11, PIC10/12/16/18/24/30/DsPIC33, AVR, ARM, 8086 and MSP430 etc., be about to increase Cortex and DSP series processors in 2010, and continue to increase other series processors models.In compilation phase, it also supports the multiple compilers such as IAR, Keil and MPLAB.The function that ISIS 6 Professiona softwares have: principle Butut; The automatic or manual wiring of PCB; The SPICE circuit simulation.
The present invention carries out the Programming of single-chip microcomputer in Keil C51 Integrated Development Environment, Keil C51 Integrated Development Environment mainly is comprised of menu bar, toolbar, source file editor, engineering window and output window five parts.Toolbar is one group of LnkTools icon, mainly comprises the basic document toolbar, builds toolbar and debugging acid hurdle, the basic operations such as that the basic document toolbar comprises is newly-built, open, copy, stickup.Build toolbar and comprise that mainly file compiling, file destination compiling connect, all file destination compiling connection, targets option and target selection windows.The debugging acid field mainly comprises the basic operation of some artificial debugging source programs at last, such as single step, reset, full speed running etc.Below toolbar, acquiescence has three windows.The engineering window on the left side comprises target (target), group (group) and the item file of an engineering.The right is the source file editor, and editor is exactly in fact a file editor, we can be here to source file edit, revise, stickup etc.Following be output window, and the result after the source file compiling is presented in the output window, can occur by or the prompting of mistake (comprising type of error and line number).If by could generate the file destination of " HEX " form, be used for emulation or burning/recording chip.
The design of hardware aspect is carried out in the debugging of software aspect again, and advantage of the present invention is to utilize software and hardware combining, makes design result more directly perceived, clear.Simple and easy digital voltmeter should be in 0.02V with the absolute error that " standard " digital voltmeter records.
Here description of the invention and application is illustrative, is not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of disclosed embodiment and change is possible, and the various parts of the replacement of embodiment and equivalence are known for those those of ordinary skill in the art.Those skilled in the art are noted that in the situation that do not break away from spirit of the present invention or essential characteristic, and the present invention can be with other form, structure, layout, ratio, and realize with other assembly, material and parts.In the situation that do not break away from the scope of the invention and spirit, can carry out other distortion and change to disclosed embodiment here.

Claims (7)

1. a digital voltmeter is characterized in that, described digital voltmeter comprises input circuit module, A/D modular converter, single chip processing module, the display module that connects successively;
Described input circuit module is sent to the A/D modular converter with the aanalogvoltage that obtains;
Described A/D modular converter is converted to digital signal with aanalogvoltage, and digital signal is sent to single chip processing module;
Described single chip processing module is shown the result that processing obtains by display module.
2. digital voltmeter according to claim 1 is characterized in that:
Described single chip processing module comprises singlechip chip, reset circuit, clock circuit; Reset circuit, clock circuit are connected with singlechip chip respectively;
The RST pin of singlechip chip provides an external reset signal input port; It is effective that reset signal is designed to high level, and the effective duration of high level is 2 more than the machine cycle;
The working time benchmark of singlechip chip is provided by clock circuit, connects a crystal oscillator and two electric capacity at pin XTAL1 and the pin XYAL2 of singlechip chip, consists of described clock circuit, and two electric capacity have the fine setting effect to oscillation frequency.
3. digital voltmeter according to claim 1 is characterized in that:
Described aanalogvoltage has different dividing potential drops through slide rheostat in ISIS 6Professiona environment Butut.
4. digital voltmeter according to claim 1 is characterized in that:
Described A/D modular converter adopts the ADC0808 chip that has one by one approximation theory, and Keil C51 programmed environment is used in the program design of A/D modular converter.
5. digital voltmeter according to claim 1 is characterized in that:
Described single chip processing module adopts the AT89C51 chip, and Keil C51 programmed environment is used in the single chip processing module program design.
6. digital voltmeter according to claim 1 is characterized in that:
Described display module is the LED display module, comprises the demonstration charactron of 4 common anodes; Keil C51 programmed environment is used in described LED display module program design.
7. the measuring method of the described digital voltmeter of claim 1 is characterized in that, described method comprises the steps:
S1, initial value is set;
S2, startup A/D modular converter carry out the A/D conversion;
Whether S3, judgement conversion finish, if turn to step 4, otherwise continue conversion;
S4, read the A/D transformation result;
S5, the subroutine of transferring the side-play amount of tabling look-up are tabled look-up;
S6, transfer display subroutine and show;
S7, judge whether to have turned all passages, if turn to step S1, otherwise turn to step S2.
CN2012103763744A 2012-09-28 2012-09-28 Digital voltmeter and measuring method thereof Pending CN102854376A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012103763744A CN102854376A (en) 2012-09-28 2012-09-28 Digital voltmeter and measuring method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012103763744A CN102854376A (en) 2012-09-28 2012-09-28 Digital voltmeter and measuring method thereof

Publications (1)

Publication Number Publication Date
CN102854376A true CN102854376A (en) 2013-01-02

Family

ID=47401132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012103763744A Pending CN102854376A (en) 2012-09-28 2012-09-28 Digital voltmeter and measuring method thereof

Country Status (1)

Country Link
CN (1) CN102854376A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117038A (en) * 2013-03-01 2013-05-22 丹阳市巨贸康健器材有限公司 Double-bit nixie tube displaying system for molecular sieve type oxygenerator
CN103983831A (en) * 2014-05-14 2014-08-13 国家电网公司 Voltmeter and voltmeter pen special for protecting pressure plate
CN104181384A (en) * 2014-09-01 2014-12-03 苏州博众精工科技有限公司 Dual-integral direct-current voltage meter
CN105067866A (en) * 2015-08-14 2015-11-18 武汉华中数控股份有限公司 General voltage test device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080094056A1 (en) * 2006-10-20 2008-04-24 Premier Image Technology Corp. Device and method for detecting battery voltage level
CN201569699U (en) * 2009-11-30 2010-09-01 上海第二工业大学 Voltage collector
CN201583589U (en) * 2009-12-10 2010-09-15 西安理工大学 Digital voltmeter
CN201926696U (en) * 2010-12-17 2011-08-10 西安理工大学 Digital voltmeter
CN102207517A (en) * 2011-03-28 2011-10-05 河南新天科技股份有限公司 Method for testing mean current of circuits by Farad capacitor
CN202256477U (en) * 2011-01-05 2012-05-30 南京信息工程大学 Digital voltmeter adaptable for automatically switching range

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080094056A1 (en) * 2006-10-20 2008-04-24 Premier Image Technology Corp. Device and method for detecting battery voltage level
CN201569699U (en) * 2009-11-30 2010-09-01 上海第二工业大学 Voltage collector
CN201583589U (en) * 2009-12-10 2010-09-15 西安理工大学 Digital voltmeter
CN201926696U (en) * 2010-12-17 2011-08-10 西安理工大学 Digital voltmeter
CN202256477U (en) * 2011-01-05 2012-05-30 南京信息工程大学 Digital voltmeter adaptable for automatically switching range
CN102207517A (en) * 2011-03-28 2011-10-05 河南新天科技股份有限公司 Method for testing mean current of circuits by Farad capacitor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117038A (en) * 2013-03-01 2013-05-22 丹阳市巨贸康健器材有限公司 Double-bit nixie tube displaying system for molecular sieve type oxygenerator
CN103983831A (en) * 2014-05-14 2014-08-13 国家电网公司 Voltmeter and voltmeter pen special for protecting pressure plate
CN104181384A (en) * 2014-09-01 2014-12-03 苏州博众精工科技有限公司 Dual-integral direct-current voltage meter
CN105067866A (en) * 2015-08-14 2015-11-18 武汉华中数控股份有限公司 General voltage test device
CN105067866B (en) * 2015-08-14 2017-10-31 武汉华中数控股份有限公司 A kind of common voltage test device

Similar Documents

Publication Publication Date Title
CN106680697A (en) Test detector of digital signal processor
CN101806857B (en) Online fault diagnostic apparatus for circuit board
CN204832267U (en) Chip test platform
CN103176161B (en) Automatic electric quantity calibrating system and automatic electric quantity calibrating method
CN102455701B (en) Programmable logic controller (PLC) automatic testing platform using programmable relay structure
CN101281231A (en) Method for testing locomotive general-purpose circuit board function
CN103853060B (en) The controller and control method of electronic switch, electronic switch and electronic equipment
CN102854376A (en) Digital voltmeter and measuring method thereof
CN101893684B (en) BIST general basic test module based on system on chip SOC and test system thereof and test method applying same
CN103684453A (en) Test method for mass production of integrated chips of analog digital converter
CN203688055U (en) Weighing instrument of dynamic rail weighter
CN204886925U (en) Full sign indicating number test module of digital analog converter and full sign indicating number test system of digital analog converter
CN110208687A (en) A kind of debugging system and method for analog circuit parameters calibration
CN115606099A (en) Method for the time-synchronous input and/or output of signals with selectable sampling rates
CN106933215B (en) PXI bus-based universal equivalent device for external interface of telemetry system
CN103532550A (en) Current frequency converter test method based on virtual instrument
CN101718558B (en) Laser gyroscope strapdown inertia navigation system output conversion device based on reusable IP core
CN102902234A (en) Industrial control instrument device with modularized hardware and configurable software and method
US9032129B2 (en) Advanced energy profiler
CN101526567A (en) Intelligent digitizing potential ratio resistance measuring instrument and work process thereof
CN101109638B (en) Optic fiber gyroscope analogue quantity angular velocity output circuit with zeroing function
CN104155891A (en) I<2>C-based networked transmitter and communication implementation method thereof
CN213875999U (en) Digital direct current electric energy meter calibration device
CN2529222Y (en) Digital vibration noise measuring instrument
CN208833877U (en) Amplitude-frequency characteristic tester and amplitude-frequency characteristic test macro

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130102